Skip to content

Commit

Permalink
Update mainnet.json (#234)
Browse files Browse the repository at this point in the history
* Update mainnet.json

* Upgrade carbon-sdk

* Resolve conflicts

* Update check_configs file with axelar blockchain names

* Remove Optimism chain which is not added to Carbon chain

---------

Co-authored-by: Thong Yuan Yu Sarah <[email protected]>
  • Loading branch information
andrewsoon and sarah-thong authored Oct 30, 2024
1 parent 0c841db commit 31ff2f1
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 31 deletions.
52 changes: 27 additions & 25 deletions configs/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,33 @@
"usdc.1.6.e70e14"
],
"transfer_options": {
"Osmosis": 0,
"Noble": 1,
"Cosmos Hub": 2,
"Evmos": 3,
"Axelar": 4,
"Juno": 5,
"Stride": 6,
"Kujira": 7,
"Terra": 8,
"Comdex": 9,
"Stafihub": 10,
"Persistence Core": 11,
"Stargaze": 12,
"Canto": 13,
"Sommelier": 14,
"IRIS Hub": 15,
"Ethereum": 16,
"Arbitrum": 17,
"Polygon": 18,
"OKC": 19,
"Binance Smart Chain": 20,
"Carbon": 21,
"Neo": 22,
"Neo3": 23,
"Zilliqa": 24
"Mantle": 0,
"Base": 1,
"Osmosis": 2,
"Noble": 3,
"Cosmos Hub": 4,
"Evmos": 5,
"Axelar": 6,
"Juno": 7,
"Stride": 8,
"Kujira": 9,
"Terra": 10,
"Comdex": 11,
"Stafihub": 12,
"Persistence Core": 13,
"Stargaze": 14,
"Canto": 15,
"Sommelier": 16,
"IRIS Hub": 17,
"Ethereum": 18,
"Arbitrum": 19,
"Polygon": 20,
"OKC": 21,
"Binance Smart Chain": 22,
"Carbon": 23,
"Neo": 24,
"Neo3": 25,
"Zilliqa": 26
},
"network_fees": {
"swth": 0,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@cosmjs/tendermint-rpc": "~0.31.3",
"@types/node": "^18.11.9",
"@types/node-fetch": "^2.6.2",
"carbon-js-sdk": "^0.11.20",
"carbon-js-sdk": "^0.11.23",
"long": "^4.0.0",
"node-fetch": "^2.6.1",
"pajv": "^1.2.0",
Expand Down
4 changes: 3 additions & 1 deletion scripts/check_configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,9 @@ async function main() {
const transferOptionsArr = Object.keys(jsonData.transfer_options)
const ibcBridgeNames = sdk.token.getIbcBlockchainNames();
if (!ibcBridgeNames.includes("Carbon")) ibcBridgeNames.push("Carbon");
const validTransferOptionChains = sdk.token.getPolynetworkBlockchainNames().concat(ibcBridgeNames);
const validTransferOptionChains = sdk.token.getPolynetworkBlockchainNames()
.concat(sdk.token.getAxelarBlockchainNames())
.concat(ibcBridgeNames);

const hasInvalidChains = checkValidEntries(transferOptionsArr, validTransferOptionChains);
if (hasInvalidChains.status && hasInvalidChains.entry) {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2251,10 +2251,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/callsite/-/callsite-1.0.0.tgz#280398e5d664bd74038b6f0905153e6e8af1bc20"
integrity sha512-0vdNRFXn5q+dtOqjfFtmtlI9N2eVZ7LMyEV2iKC5mEEFvSg/69Ml6b/WU2qF8W1nLRa0wiSrDT3Y5jOHZCwKPQ==

carbon-js-sdk@^0.11.20:
version "0.11.20"
resolved "https://registry.yarnpkg.com/carbon-js-sdk/-/carbon-js-sdk-0.11.20.tgz#ba9cdaa6fee0b8590d481931de0efa96f699aef3"
integrity sha512-XQph2nhqFHLe5TLLhNKSXpH77NqIlN6oqC2JQOSHD0l4dcrSTC1CyfdBrrTTgGfCA7tns75KxL92d7B2eISKlA==
carbon-js-sdk@^0.11.23:
version "0.11.23"
resolved "https://registry.yarnpkg.com/carbon-js-sdk/-/carbon-js-sdk-0.11.23.tgz#8c35301bbc958df5b08ac1065d170dd34fe0e9c1"
integrity sha512-ngAB7JLb3U+KLjFy+AYiL3tXKRGZrtWGpoFfejkvJoIBko1i25KVIH16G+9HvUqdYlUVU02BgTm80jPKxfX72w==
dependencies:
"@cityofzion/neon-api" "^4.9.0"
"@cityofzion/neon-core" "^4.9.0"
Expand Down

0 comments on commit 31ff2f1

Please sign in to comment.