Skip to content

Commit

Permalink
feat(polygonzkevm): Update to mainnet (#3033)
Browse files Browse the repository at this point in the history
  • Loading branch information
Milerius authored Mar 27, 2023
1 parent 686cdd1 commit dad17b5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ This list is generated from [./registry.json](../registry.json)
| 10000330 | Terra | LUNA | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/terrav2/info/logo.png" width="32" /> | <https://terra.money> |
| 10000553 | Huobi ECO Chain | HT | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/heco/info/logo.png" width="32" /> | <https://www.hecochain.com/en-us> |
| 10001088 | Metis | METIS | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/metis/info/logo.png" width="32" /> | <https://www.metis.io/> |
| 10001101 | Polygon zkEVM | ETH | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/polygonzkevm/info/logo.png" width="32" /> | <https://www.polygon.technology/> |
| 10001284 | Moonbeam | GLMR | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/moonbeam/info/logo.png" width="32" /> | <https://moonbeam.network> |
| 10001285 | Moonriver | MOVR | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/moonriver/info/logo.png" width="32" /> | <https://moonbeam.network/networks/moonriver> |
| 10001422 | Polygon zkEVM | ETH | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/polygonzkevm/info/logo.png" width="32" /> | <https://www.polygon.technology/> |
| 10002020 | Ronin | RON | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ronin/info/logo.png" width="32" /> | <https://whitepaper.axieinfinity.com/technology/ronin-ethereum-sidechain> |
| 10002222 | KavaEvm | KAVA | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/kavaevm/info/logo.png" width="32" /> | <https://www.kava.io/> |
| 10008217 | Klaytn | KLAY | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/klaytn/info/logo.png" width="32" /> | <https://klaytn.foundation> |
Expand Down
8 changes: 4 additions & 4 deletions registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -2127,7 +2127,7 @@
"id": "polygonzkevm",
"name": "Polygon zkEVM",
"displayName": "Polygon zkEVM",
"coinId": 10001422,
"coinId": 10001101,
"slip44": 60,
"symbol": "ETH",
"decimals": 18,
Expand All @@ -2139,17 +2139,17 @@
],
"curve": "secp256k1",
"publicKeyType": "secp256k1Extended",
"chainId": "1422",
"chainId": "1101",
"addressHasher": "keccak256",
"explorer": {
"url": "https://explorer.public.zkevm-test.net",
"url": "https://zkevm.polygonscan.com",
"txPath": "/tx/",
"accountPath": "/address/"
},
"info": {
"url": "https://www.polygon.technology/",
"source": "https://github.com/0xpolygonhermez",
"rpc": "https://rpc.public.zkevm-test.net",
"rpc": "https://zkevm-rpc.com",
"documentation": "https://wiki.polygon.technology/docs/zkEVM/introduction/"
}
},
Expand Down
10 changes: 5 additions & 5 deletions tests/chains/PolygonZkEvm/TWCoinTypeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ TEST(TWPolygonZkEVMCoinType, TWCoinType) {
const auto id = WRAPS(TWCoinTypeConfigurationGetID(coin));
const auto name = WRAPS(TWCoinTypeConfigurationGetName(coin));
const auto chainId = WRAPS(TWCoinTypeChainId(coin));
const auto txId = WRAPS(TWStringCreateWithUTF8Bytes("0xfbe568183495ad2ec95f0232501e86018bff3e4ca52aaa804983b380dc39d523"));
const auto txId = WRAPS(TWStringCreateWithUTF8Bytes("0xc70fd1a45b3130f5515a27d96f01a7f508099fb0b8af52ef432d5e4b2373dccd"));
const auto txUrl = WRAPS(TWCoinTypeConfigurationGetTransactionURL(coin, txId.get()));
const auto accId = WRAPS(TWStringCreateWithUTF8Bytes("0xC5C39Ec2a271d84d67c0e66a68238102A2ec4b98"));
const auto accId = WRAPS(TWStringCreateWithUTF8Bytes("0x81d98c8fda0410ee3e9d7586cb949cd19fa4cf38"));
const auto accUrl = WRAPS(TWCoinTypeConfigurationGetAccountURL(coin, accId.get()));

assertStringsEqual(id, "polygonzkevm");
Expand All @@ -28,9 +28,9 @@ TEST(TWPolygonZkEVMCoinType, TWCoinType) {
ASSERT_EQ(TWCoinTypeBlockchain(coin), TWBlockchainEthereum);
ASSERT_EQ(TWCoinTypeP2shPrefix(coin), 0x0);
ASSERT_EQ(TWCoinTypeStaticPrefix(coin), 0x0);
assertStringsEqual(chainId, "1422");
assertStringsEqual(txUrl, "https://explorer.public.zkevm-test.net/tx/0xfbe568183495ad2ec95f0232501e86018bff3e4ca52aaa804983b380dc39d523");
assertStringsEqual(accUrl, "https://explorer.public.zkevm-test.net/address/0xC5C39Ec2a271d84d67c0e66a68238102A2ec4b98");
assertStringsEqual(chainId, "1101");
assertStringsEqual(txUrl, "https://zkevm.polygonscan.com/tx/0xc70fd1a45b3130f5515a27d96f01a7f508099fb0b8af52ef432d5e4b2373dccd");
assertStringsEqual(accUrl, "https://zkevm.polygonscan.com/address/0x81d98c8fda0410ee3e9d7586cb949cd19fa4cf38");
}

} // namespace TW::TWZksync::tests

0 comments on commit dad17b5

Please sign in to comment.