diff --git a/.changeset/sixty-birds-learn.md b/.changeset/sixty-birds-learn.md new file mode 100644 index 000000000..568219102 --- /dev/null +++ b/.changeset/sixty-birds-learn.md @@ -0,0 +1,6 @@ +--- +'@xchainjs/xchain-cosmos': patch +'@xchainjs/xchain-kujira': patch +--- + +New RPC backup endpoint diff --git a/packages/xchain-cosmos/__e2e__/cosmos-client.e2e.ts b/packages/xchain-cosmos/__e2e__/cosmos-client.e2e.ts index faba6eec8..e2e4f76db 100644 --- a/packages/xchain-cosmos/__e2e__/cosmos-client.e2e.ts +++ b/packages/xchain-cosmos/__e2e__/cosmos-client.e2e.ts @@ -124,7 +124,10 @@ describe('Cosmos client e2e', () => { const signer = await DirectSecp256k1HdWallet.fromMnemonic(process.env.PHRASE_MAINNET as string, { hdPaths: [makeCosmoshubPath(senderIndex)], }) - const signingClient = await SigningStargateClient.connectWithSigner(getDefaultClientUrls()[Network.Mainnet], signer) + const signingClient = await SigningStargateClient.connectWithSigner( + getDefaultClientUrls()[Network.Mainnet][0], + signer, + ) const messages: EncodeObject[] = unsignedTx.body.messages.map((message) => { return { typeUrl: '/cosmos.bank.v1beta1.MsgSend', value: signingClient.registry.decode(message) } diff --git a/packages/xchain-cosmos/src/utils.ts b/packages/xchain-cosmos/src/utils.ts index a23b275e8..effb9ca10 100644 --- a/packages/xchain-cosmos/src/utils.ts +++ b/packages/xchain-cosmos/src/utils.ts @@ -17,8 +17,8 @@ const TESTNET_EXPLORER_URL = 'https://explorer.theta-testnet.polypore.xyz' export const getDefaultClientUrls = (): Record => { return { [Network.Testnet]: ['https://rpc.sentry-02.theta-testnet.polypore.xyz'], - [Network.Stagenet]: ['https://rpc.cosmos.directory/cosmoshub'], - [Network.Mainnet]: ['https://rpc.cosmos.directory/cosmoshub'], + [Network.Stagenet]: ['https://cosmos-rpc.publicnode.com', 'https://rpc.cosmos.directory/cosmoshub'], + [Network.Mainnet]: ['https://cosmos-rpc.publicnode.com', 'https://rpc.cosmos.directory/cosmoshub'], } } diff --git a/packages/xchain-kujira/src/utils.ts b/packages/xchain-kujira/src/utils.ts index 7cab0020c..e5d22f4cc 100644 --- a/packages/xchain-kujira/src/utils.ts +++ b/packages/xchain-kujira/src/utils.ts @@ -11,12 +11,14 @@ export const getDefaultClientUrls = (): Record => { return { [Network.Testnet]: ['https://kujira-testnet-rpc.polkachu.com'], [Network.Stagenet]: [ + 'https://kujira-rpc.publicnode.com', 'https://rpc.cosmos.directory/kujira', 'https://kujira-rpc.polkachu.com', 'https://kujira.rpc.ghostinnet.com', 'https://kujira-rpc.ibs.team', ], [Network.Mainnet]: [ + 'https://kujira-rpc.publicnode.com', 'https://rpc.cosmos.directory/kujira', 'https://kujira-rpc.polkachu.com', 'https://kujira.rpc.ghostinnet.com',