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
27 changed files with 80 additions and 80 deletions
+3 -3
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();
@@ -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;
@@ -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);
+3 -3
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]);
@@ -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);
+3 -3
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);
+3 -3
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);
+3 -3
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);
+3 -3
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);
+3 -3
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);
+3 -3
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);
+3 -3
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);
+3 -3
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);
@@ -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);
@@ -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);
+3 -3
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);
+3 -3
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);
+3 -3
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);
+3 -3
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);
+3 -3
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);
+3 -3
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);
+3 -3
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]);
+3 -3
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);
+3 -3
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) {
+4 -4
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);
+3 -3
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;
+1 -1
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