Skip to content

Commit

Permalink
fix: kujira tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-chillios committed Oct 25, 2023
1 parent 9d1bd34 commit 4776812
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions packages/swapkit/core/src/client/explorerUrls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const getExplorerTxUrl = ({ chain, txHash }: { txHash: string; chain: Cha
case Chain.Bitcoin:
case Chain.BitcoinCash:
case Chain.Maya:
case Chain.Kujira:
case Chain.THORChain:
return `${baseUrl}/tx/${txHash}`;

Expand Down Expand Up @@ -46,6 +47,7 @@ export const getExplorerAddressUrl = ({ chain, address }: { address: string; cha
case Chain.Maya:
case Chain.Optimism:
case Chain.Polygon:
case Chain.Kujira:
case Chain.THORChain:
return `${baseUrl}/address/${address}`;

Expand Down
10 changes: 5 additions & 5 deletions packages/swapkit/types/src/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export enum DerivationPath {
DOGE = "m/44'/3'/0'/0",
ETH = "m/44'/60'/0'/0",
GAIA = "m/44'/118'/0'/0",
KUJI = "m/44'/931'/0'/0",
KUJI = "m/44'/118'/0'/0",
LTC = "m/84'/2'/0'/0",
MATIC = "m/44'/60'/0'/0",
MAYA = "m/44'/931'/0'/0",
Expand All @@ -56,7 +56,7 @@ export const NetworkDerivationPath: Record<Chain, DerivationPathArray> = {
DOGE: [44, 3, 0, 0, 0],
ETH: [44, 60, 0, 0, 0],
GAIA: [44, 118, 0, 0, 0],
KUJI: [44, 931, 0, 0, 0],
KUJI: [44, 118, 0, 0, 0],
LTC: [84, 2, 0, 0, 0],
MATIC: [44, 60, 0, 0, 0],
MAYA: [44, 931, 0, 0, 0],
Expand Down Expand Up @@ -130,7 +130,7 @@ export enum ChainId {
BitcoinCash = 'bitcoincash',
Cosmos = 'cosmoshub-4',
Dogecoin = 'dogecoin',
Kujira = 'kujira',
Kujira = 'kaiyo-1',
Ethereum = '1',
EthereumHex = '0x1',
Litecoin = 'litecoin',
Expand All @@ -152,7 +152,7 @@ export enum RPCUrl {
Bitcoin = 'https://node-router.thorswap.net/bitcoin',
BitcoinCash = 'https://node-router.thorswap.net/bitcoin-cash',
Cosmos = 'https://node-router.thorswap.net/cosmos/rpc',
Kujira = 'https://kujira.chainapsis.com',
Kujira = 'https://rpc-kujira.synergynodes.com/',
Dogecoin = 'https://node-router.thorswap.net/dogecoin',
Ethereum = 'https://node-router.thorswap.net/ethereum',
Litecoin = 'https://node-router.thorswap.net/litecoin',
Expand All @@ -166,7 +166,7 @@ export enum RPCUrl {

export enum ApiUrl {
Cosmos = 'https://node-router.thorswap.net/cosmos/rest',
Kujira = 'https://kujira-api.chainapsis.com',
Kujira = 'https://lcd-kujira.synergynodes.com/',
MayanodeMainnet = 'https://mayanode.mayachain.info',
MayanodeStagenet = 'https://stagenet.mayanode.mayachain.info',
ThornodeMainnet = 'https://thornode.thorswap.net',
Expand Down
5 changes: 3 additions & 2 deletions packages/toolboxes/cosmos/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ export const getRPC = (chainId: ChainId, stagenet?: boolean) => {
return RPCUrl.Cosmos;
case ChainId.Binance:
return RPCUrl.Binance;
case ChainId.Kujira:
return RPCUrl.Kujira;

case ChainId.THORChain:
return stagenet ? RPCUrl.THORChainStagenet : RPCUrl.THORChain;
case ChainId.Maya:
return stagenet ? RPCUrl.MayaStagenet : RPCUrl.Maya;
case ChainId.Kujira:
return RPCUrl.Kujira;

default:
return RPCUrl.Cosmos;
Expand Down

0 comments on commit 4776812

Please sign in to comment.