Skip to content

Commit

Permalink
More PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tkporter committed Oct 30, 2023
1 parent ca324a7 commit 8c28e03
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
6 changes: 3 additions & 3 deletions typescript/infra/src/config/agent/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ export class ValidatorConfigHelper extends AgentConfigHelper<ValidatorConfig> {
chainSigner = validator;
break;
case ProtocolType.Cosmos:
if (metadata.prefix === undefined) {
if (metadata.bech32Prefix === undefined) {
throw new Error(
`Prefix for cosmos chain ${this.chainName} is undefined`,
`Bech32 prefix for cosmos chain ${this.chainName} is undefined`,
);
}
chainSigner = {
type: AgentSignerKeyType.Cosmos,
prefix: metadata.prefix,
prefix: metadata.bech32Prefix,
};
break;
// No self-announcement on Sealevel
Expand Down
16 changes: 12 additions & 4 deletions typescript/sdk/src/consts/chainMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -959,9 +959,13 @@ export const neutrontestnet: ChainMetadata = {
reorgPeriod: 0,
estimateBlockTime: 3,
},
rpcUrls: [{ http: 'http://54.149.31.83:26657' }],
// First URL RPC, second REST
rpcUrls: [
{ http: 'http://54.149.31.83:26657' },
{ http: 'http://54.149.31.83:1317' },
],
bech32Prefix: 'dual',
isTestnet: true,
prefix: 'dual',
};

export const neutron: ChainMetadata = {
Expand All @@ -980,9 +984,13 @@ export const neutron: ChainMetadata = {
reorgPeriod: 0,
estimateBlockTime: 3,
},
rpcUrls: [{ http: 'https://rpc-kralum.neutron-1.neutron.org' }],
// First URL RPC, second REST
rpcUrls: [
{ http: 'https://rpc-kralum.neutron-1.neutron.org' },
{ http: 'https://community.nuxian-node.ch:6797/neutron/crpc' },
],
bech32Prefix: 'neutron',
isTestnet: false,
prefix: 'neutron',
};

export const mantapacific: ChainMetadata = {
Expand Down
2 changes: 1 addition & 1 deletion typescript/sdk/src/metadata/chainMetadataTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export const ChainMetadataSchema = z.object({
.optional()
.describe('Whether the chain is considered a testnet or a mainnet.'),
// TODO we should have a better policy for protocol-specific configurations
prefix: z
bech32Prefix: z
.string()
.optional()
.describe('The prefix for a Cosmos address, e.g. osmo'),
Expand Down

0 comments on commit 8c28e03

Please sign in to comment.