src: sed s/CNS/Registry/g (error msgs)

This commit is contained in:
zramsay 2023-01-11 12:21:31 -05:00
parent 9f9322d88e
commit 8d703e580b
No known key found for this signature in database
GPG Key ID: FECD2DBFAE9DBE63
27 changed files with 80 additions and 80 deletions

View File

@ -13,9 +13,9 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, privateKey, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(chainId, 'Invalid Registry Chain ID.');
if (!address && privateKey) {
address = new Account(Buffer.from(privateKey, 'hex')).getCosmosAddress();

View File

@ -23,10 +23,10 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, privateKey, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(privateKey, 'Invalid Transaction Key.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(chainId, 'Invalid Registry Chain ID.');
const account = new Account(Buffer.from(privateKey, 'hex'));
const bidderAddress = account.formattedCosmosAddress;

View File

@ -18,10 +18,10 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, privateKey, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(privateKey, 'Invalid Transaction Key.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
const fee = getGasAndFees(argv, cnsConfig);

View File

@ -14,9 +14,9 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(config as string)
const { restEndpoint, gqlEndpoint, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
const result = await registry.getAuctionsByIds([id as string]);

View File

@ -16,10 +16,10 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, privateKey, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(privateKey, 'Invalid Transaction Key.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
const fee = getGasAndFees(argv, cnsConfig);

View File

@ -22,10 +22,10 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, privateKey, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(privateKey, 'Invalid Transaction Key.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
const fee = getGasAndFees(argv, cnsConfig);

View File

@ -14,9 +14,9 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
const result = await registry.lookupAuthorities([name], true);

View File

@ -22,10 +22,10 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, privateKey, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(privateKey, 'Invalid Transaction Key.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
const fee = getGasAndFees(argv, cnsConfig);

View File

@ -14,10 +14,10 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, privateKey, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(privateKey, 'Invalid Transaction Key.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
const fee = getGasAndFees(argv, cnsConfig);

View File

@ -27,10 +27,10 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(config as string)
const { restEndpoint, gqlEndpoint, privateKey, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(privateKey, 'Invalid Transaction Key.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
const fee = getGasAndFees(argv, cnsConfig);

View File

@ -14,10 +14,10 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, privateKey, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(privateKey, 'Invalid Transaction Key.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
const fee = getGasAndFees(argv, cnsConfig);

View File

@ -14,9 +14,9 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(config as string)
const { restEndpoint, gqlEndpoint, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);

View File

@ -17,9 +17,9 @@ export const builder = {
export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);

View File

@ -20,10 +20,10 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, privateKey, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(privateKey, 'Invalid Transaction Key.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
const fee = getGasAndFees(argv, cnsConfig);

View File

@ -25,10 +25,10 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, privateKey, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(privateKey, 'Invalid Transaction Key.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
const fee = getGasAndFees(argv, cnsConfig);

View File

@ -28,10 +28,10 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, privateKey, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(privateKey, 'Invalid Transaction Key.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
const fee = getGasAndFees(argv, cnsConfig);

View File

@ -28,10 +28,10 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, privateKey, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(privateKey, 'Invalid Transaction Key.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
const fee = getGasAndFees(argv, cnsConfig);

View File

@ -14,10 +14,10 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, privateKey, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(privateKey, 'Invalid Transaction Key.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
const fee = getGasAndFees(argv, cnsConfig);

View File

@ -20,9 +20,9 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
const result = await registry.lookupNames([name], argv.history as boolean);

View File

@ -14,9 +14,9 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);

View File

@ -16,10 +16,10 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, privateKey, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(privateKey, 'Invalid Transaction Key.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
const fee = getGasAndFees(argv, cnsConfig);

View File

@ -14,9 +14,9 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(config as string)
const { restEndpoint, gqlEndpoint, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);
const result = await registry.getRecordsByIds([id as string]);

View File

@ -29,9 +29,9 @@ export const handler = async (argv: Arguments) => {
const { restEndpoint, gqlEndpoint, chainId } = getConnectionInfo(argv, cnsConfig);
const { type, name, bondId, all } = argv;
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);

View File

@ -22,11 +22,11 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(config as string)
const { restEndpoint, gqlEndpoint, userKey, bondId, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(userKey, 'Invalid User Key.');
assert(bondId, 'Invalid Bond ID.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(chainId, 'Invalid Registry Chain ID.');
let file = null;
if (filename) {

View File

@ -6,14 +6,14 @@ import { getConfig, getConnectionInfo } from '../../util';
export const command = 'status';
export const desc = 'Get CNS status.';
export const desc = 'Get Registry status.';
export const handler = async (argv: Arguments) => {
const { services: { cns } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, chainId } = getConnectionInfo(argv, cns);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(chainId, 'Invalid Registry Chain ID.');
const registry = new Registry(gqlEndpoint, restEndpoint, chainId);

View File

@ -28,10 +28,10 @@ export const handler = async (argv: Arguments) => {
const { services: { cns: cnsConfig } } = getConfig(argv.config as string)
const { restEndpoint, gqlEndpoint, privateKey, chainId } = getConnectionInfo(argv, cnsConfig);
assert(restEndpoint, 'Invalid CNS REST endpoint.');
assert(gqlEndpoint, 'Invalid CNS GQL endpoint.');
assert(restEndpoint, 'Invalid Registry REST endpoint.');
assert(gqlEndpoint, 'Invalid Registry GQL endpoint.');
assert(privateKey, 'Invalid Transaction Key.');
assert(chainId, 'Invalid CNS Chain ID.');
assert(chainId, 'Invalid Registry Chain ID.');
const account = new Account(Buffer.from(privateKey, 'hex'));
const fromAddress = account.formattedCosmosAddress;

View File

@ -2,7 +2,7 @@ import yargs from 'yargs';
export const command = 'cns';
export const desc = 'CNS tools';
export const desc = 'Laconic Registry Tools';
exports.builder = (yargs: yargs.Argv) => {
return yargs