Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: change coinType for agoric from 564 to 118 #633

Open
wants to merge 1 commit into
base: release/v1.3.2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rust/apps/cosmos/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ mod tests {
}
{
//general address BLD-0
let root_path = "44'/564'/0'";
let root_path = "44'/118'/0'";
let root_xpub = "xpub6Cy2KXVssRUr6QK68mXztCSpmxK7yd68tCLHniaMVnRBxU8XYoFBSjeZ8hfg3VJDPAh3i8z1uhfpxPMy7Ub3FxyKzWu9RJdcmEkz6PL2cLu";
let hd_path = "44'/564'/0'/0/0";
let hd_path = "44'/118'/0'/0/0";
let address = derive_address(hd_path, root_xpub, root_path, "agoric").unwrap();
assert_eq!("agoric1r0q3ltgz67ldu86l9c6hvmwq5qke3af5h489vm", address);
}
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/account_public_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static const ChainItem_t g_chainTable[] = {
{XPUB_TYPE_SCRT, SECP256K1, "scrt", "M/44'/529'/0'" },
{XPUB_TYPE_CRO, SECP256K1, "cro", "M/44'/394'/0'" },
{XPUB_TYPE_IOV, SECP256K1, "iov", "M/44'/234'/0'" },
{XPUB_TYPE_BLD, SECP256K1, "bld", "M/44'/564'/0'" },
{XPUB_TYPE_BLD, SECP256K1, "bld", "M/44'/118'/0'" },
{XPUB_TYPE_KAVA, SECP256K1, "kava", "M/44'/459'/0'" },
{XPUB_TYPE_TERRA, SECP256K1, "terra", "M/44'/330'/0'" },
{XPUB_TYPE_XRP, SECP256K1, "xrp", "M/44'/144'/0'" },
Expand Down
2 changes: 1 addition & 1 deletion src/ui/gui_chain/others/gui_cosmos.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static const CosmosChain_t g_cosmosChains[COSMOS_CHAINS_LEN] = {
{CHAIN_DVPN, "sent", 118, XPUB_TYPE_COSMOS, "sentinelhub-2"},
{CHAIN_IXO, "ixo", 118, XPUB_TYPE_COSMOS, "ixo-4"},
{CHAIN_NGM, "emoney", 118, XPUB_TYPE_COSMOS, "emoney-3"},
{CHAIN_BLD, "agoric", 564, XPUB_TYPE_BLD, "agoric-3"},
{CHAIN_BLD, "agoric", 118, XPUB_TYPE_BLD, "agoric-3"},
{CHAIN_BOOT, "bostrom", 118, XPUB_TYPE_COSMOS, "bostrom"},
{CHAIN_JUNO, "juno", 118, XPUB_TYPE_COSMOS, "juno-1"},
{CHAIN_STARS, "stars", 118, XPUB_TYPE_COSMOS, "stargaze-1"},
Expand Down