Skip to content

Commit

Permalink
Merge pull request #408 from crypto-org-chain/feature/add-testnet-cro…
Browse files Browse the repository at this point in the history
…eseid-5

Problem: Update default node endpoint
  • Loading branch information
crypto-matto committed Feb 17, 2023
2 parents 5b013b0 + 07d5404 commit 6d07cb3
Show file tree
Hide file tree
Showing 5 changed files with 827 additions and 680 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog

All notable changes to this project will be documented in this file.
## v1.1.2
- Added CRO `Croeseid-5` Testnet network
- Update CRO `Mainnet` & `Croeseid-4` Testnet network endpoints

## v1.1.1
- Bugfix for `MsgUnjailV2` transaction management
Expand Down
2 changes: 1 addition & 1 deletion lib/e2e/tx-decoder/compare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const README = `
TXDECODER_TENDERMINT_RPC: (Optional) The base URL to Crypto.org Chain Tendermint RPC
TXDECODER_DIFF_OUTPUT_FOLDER: (Optional) Folder to output the differences. Default ./lib/e2e/tx-decoder/diff
`;
const TENDERMINT_RPC_BASEURL = process.env.TXDECODER_TENDERMINT_RPC || 'https://mainnet.crypto.org:26657';
const TENDERMINT_RPC_BASEURL = process.env.TXDECODER_TENDERMINT_RPC || 'https://rpc.mainnet.crypto.org';
const GO_DECODER_PATH = './lib/e2e/tx-decoder/decode-cosmosbase64tx';
const DIFF_OUTPUT_FOLDER = process.env.TXDECODER_DIFF_OUTPUT_FOLDER || './lib/e2e/tx-decoder/diff';

Expand Down
25 changes: 21 additions & 4 deletions lib/src/core/cro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const CroSDK = function (configs: InitConfigurations) {

export class CroNetwork {
public static Mainnet: Network = {
defaultNodeUrl: 'https://mainnet.crypto.org',
defaultNodeUrl: 'https://rpc.mainnet.crypto.org',
chainId: 'crypto-org-chain-mainnet-1',
addressPrefix: 'cro',
validatorAddressPrefix: 'crocncl',
Expand All @@ -152,7 +152,7 @@ export class CroNetwork {
coinType: 394,
account: 0,
},
rpcUrl: 'https://mainnet.crypto.org:26657',
rpcUrl: 'https://rpc.mainnet.crypto.org',
};

public static Testnet: Network = {
Expand Down Expand Up @@ -190,7 +190,7 @@ export class CroNetwork {
};

public static TestnetCroeseid4: Network = {
defaultNodeUrl: 'https://testnet-croeseid-4.crypto.org',
defaultNodeUrl: 'https://rpc-testnet-croeseid-4.crypto.org',
chainId: 'testnet-croeseid-4',
addressPrefix: 'tcro',
validatorAddressPrefix: 'tcrocncl',
Expand All @@ -203,7 +203,24 @@ export class CroNetwork {
coinType: 1,
account: 0,
},
rpcUrl: 'https://testnet-croeseid-4.crypto.org:26657',
rpcUrl: 'https://rpc-testnet-croeseid-4.crypto.org',
};

public static TestnetCroeseid5: Network = {
defaultNodeUrl: 'https://rpc-c5.crypto.org',
chainId: 'testnet-croeseid-5',
addressPrefix: 'tcro',
validatorAddressPrefix: 'tcrocncl',
validatorPubKeyPrefix: 'tcrocnclconspub',
coin: {
baseDenom: 'basetcro',
croDenom: 'tcro',
},
bip44Path: {
coinType: 1,
account: 0,
},
rpcUrl: 'https://rpc-c5.crypto.org',
};
}

Expand Down
Loading

0 comments on commit 6d07cb3

Please sign in to comment.