Skip to content

Commit 6d07cb3

Browse files
authored
Merge pull request #408 from crypto-org-chain/feature/add-testnet-croeseid-5
Problem: Update default node endpoint
2 parents 5b013b0 + 07d5404 commit 6d07cb3

File tree

5 files changed

+827
-680
lines changed

5 files changed

+827
-680
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22

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

58
## v1.1.1
69
- Bugfix for `MsgUnjailV2` transaction management

lib/e2e/tx-decoder/compare.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const README = `
2020
TXDECODER_TENDERMINT_RPC: (Optional) The base URL to Crypto.org Chain Tendermint RPC
2121
TXDECODER_DIFF_OUTPUT_FOLDER: (Optional) Folder to output the differences. Default ./lib/e2e/tx-decoder/diff
2222
`;
23-
const TENDERMINT_RPC_BASEURL = process.env.TXDECODER_TENDERMINT_RPC || 'https://mainnet.crypto.org:26657';
23+
const TENDERMINT_RPC_BASEURL = process.env.TXDECODER_TENDERMINT_RPC || 'https://rpc.mainnet.crypto.org';
2424
const GO_DECODER_PATH = './lib/e2e/tx-decoder/decode-cosmosbase64tx';
2525
const DIFF_OUTPUT_FOLDER = process.env.TXDECODER_DIFF_OUTPUT_FOLDER || './lib/e2e/tx-decoder/diff';
2626

lib/src/core/cro.ts

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export const CroSDK = function (configs: InitConfigurations) {
139139

140140
export class CroNetwork {
141141
public static Mainnet: Network = {
142-
defaultNodeUrl: 'https://mainnet.crypto.org',
142+
defaultNodeUrl: 'https://rpc.mainnet.crypto.org',
143143
chainId: 'crypto-org-chain-mainnet-1',
144144
addressPrefix: 'cro',
145145
validatorAddressPrefix: 'crocncl',
@@ -152,7 +152,7 @@ export class CroNetwork {
152152
coinType: 394,
153153
account: 0,
154154
},
155-
rpcUrl: 'https://mainnet.crypto.org:26657',
155+
rpcUrl: 'https://rpc.mainnet.crypto.org',
156156
};
157157

158158
public static Testnet: Network = {
@@ -190,7 +190,7 @@ export class CroNetwork {
190190
};
191191

192192
public static TestnetCroeseid4: Network = {
193-
defaultNodeUrl: 'https://testnet-croeseid-4.crypto.org',
193+
defaultNodeUrl: 'https://rpc-testnet-croeseid-4.crypto.org',
194194
chainId: 'testnet-croeseid-4',
195195
addressPrefix: 'tcro',
196196
validatorAddressPrefix: 'tcrocncl',
@@ -203,7 +203,24 @@ export class CroNetwork {
203203
coinType: 1,
204204
account: 0,
205205
},
206-
rpcUrl: 'https://testnet-croeseid-4.crypto.org:26657',
206+
rpcUrl: 'https://rpc-testnet-croeseid-4.crypto.org',
207+
};
208+
209+
public static TestnetCroeseid5: Network = {
210+
defaultNodeUrl: 'https://rpc-c5.crypto.org',
211+
chainId: 'testnet-croeseid-5',
212+
addressPrefix: 'tcro',
213+
validatorAddressPrefix: 'tcrocncl',
214+
validatorPubKeyPrefix: 'tcrocnclconspub',
215+
coin: {
216+
baseDenom: 'basetcro',
217+
croDenom: 'tcro',
218+
},
219+
bip44Path: {
220+
coinType: 1,
221+
account: 0,
222+
},
223+
rpcUrl: 'https://rpc-c5.crypto.org',
207224
};
208225
}
209226

0 commit comments

Comments
 (0)