-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ZetaChain) Add support for ZetaEVM mainnet (#3670)
* feat(ZetaChain): Add `new-cosmos-chain` command * feat(ZetaChain): Add `NativeZetaChain` mainnet * feat(ZetaChain): Add support for custom Cosmos chain * feat(ZetaChain): Add `SignerInfo` to the Cosmos.proto protocol * feat(ZetaChain): Fix zetachain params in registry.json * feat(ZetaChain): Add mobile tests * [CI] Trigger CI * feat(ZetaChain): Update JSON Public Key Type * feat(ZetaChain): Fix `accountPath` in `registry.json` * feat(ZetaChain): Fix rustfmt * feat(ZetaChain): Add ZetaEVM chain * feat(ZetaChain): Add mobile tests * feat(ZetaChain): Fix Swift test * feat(ZetaChain): Slightly refactor NativeEvmos and NativeInjective public key types * feat(ZetaChain): Fix C++ test
- Loading branch information
1 parent
d02cb7d
commit ca1a2d2
Showing
9 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
// Copyright © 2017 Trust Wallet. | ||
// | ||
// This is a GENERATED FILE, changes made here MAY BE LOST. | ||
// Generated one-time (codegen/bin/cointests) | ||
// | ||
|
||
#include "TestUtilities.h" | ||
#include <TrustWalletCore/TWCoinTypeConfiguration.h> | ||
#include <gtest/gtest.h> | ||
|
||
|
||
TEST(TWZetaEVMCoinType, TWCoinType) { | ||
const auto coin = TWCoinTypeZetaEVM; | ||
const auto symbol = WRAPS(TWCoinTypeConfigurationGetSymbol(coin)); | ||
const auto id = WRAPS(TWCoinTypeConfigurationGetID(coin)); | ||
const auto name = WRAPS(TWCoinTypeConfigurationGetName(coin)); | ||
const auto chainId = WRAPS(TWCoinTypeChainId(coin)); | ||
const auto txId = WRAPS(TWStringCreateWithUTF8Bytes("0x04cb1201857de29af97b755e51c888454fb96c1f3bb3c1329bb94d5353d5c19e")); | ||
const auto txUrl = WRAPS(TWCoinTypeConfigurationGetTransactionURL(coin, txId.get())); | ||
const auto accId = WRAPS(TWStringCreateWithUTF8Bytes("0x85539A58F9c88DdDccBaBBfc660968323Fd1e167")); | ||
const auto accUrl = WRAPS(TWCoinTypeConfigurationGetAccountURL(coin, accId.get())); | ||
|
||
assertStringsEqual(id, "zetaevm"); | ||
assertStringsEqual(name, "Zeta EVM"); | ||
assertStringsEqual(symbol, "ZETA"); | ||
ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(coin), 18); | ||
ASSERT_EQ(TWCoinTypeBlockchain(coin), TWBlockchainEthereum); | ||
ASSERT_EQ(TWCoinTypeP2shPrefix(coin), 0x0); | ||
ASSERT_EQ(TWCoinTypeStaticPrefix(coin), 0x0); | ||
assertStringsEqual(chainId, "7000"); | ||
assertStringsEqual(txUrl, "https://explorer.zetachain.com/evm/tx/0x04cb1201857de29af97b755e51c888454fb96c1f3bb3c1329bb94d5353d5c19e"); | ||
assertStringsEqual(accUrl, "https://explorer.zetachain.com/address/0x85539A58F9c88DdDccBaBBfc660968323Fd1e167"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters