-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: removes
mnemonic-keyring
and reintroduces tezos & cosmos integ…
…rations (#440) Co-authored-by: Gancho Radkov <ganchoradkov@gmail.com>
- Loading branch information
1 parent
68c95a9
commit 46bfda7
Showing
19 changed files
with
255 additions
and
346 deletions.
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
2 changes: 2 additions & 0 deletions
2
advanced/wallets/react-wallet-v2/src/components/ChainAddressMini.tsx
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
13 changes: 11 additions & 2 deletions
13
advanced/wallets/react-wallet-v2/src/components/ChainDataMini.tsx
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,26 @@ | ||
/** | ||
* Types | ||
*/ | ||
export type TCosmosChain = keyof typeof COSMOS_MAINNET_CHAINS | ||
|
||
/** | ||
* Chains | ||
*/ | ||
export const COSMOS_MAINNET_CHAINS = { | ||
'cosmos:cosmoshub-4': { | ||
chainId: 'cosmoshub-4', | ||
name: 'Cosmos Hub', | ||
logo: '/chain-logos/cosmos-cosmoshub-4.png', | ||
rgb: '107, 111, 147', | ||
rpc: '', | ||
namespace: 'cosmos' | ||
} | ||
} | ||
|
||
/** | ||
* Methods | ||
*/ | ||
export const COSMOS_SIGNING_METHODS = { | ||
COSMOS_SIGN_DIRECT: 'cosmos_signDirect', | ||
COSMOS_SIGN_AMINO: 'cosmos_signAmino' | ||
} |
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,49 @@ | ||
type ChainMetadata = { | ||
chainId: string | ||
name: string | ||
logo: string | ||
rgb: string | ||
rpc: string | ||
namespace: string | ||
} | ||
|
||
/** | ||
* Types | ||
*/ | ||
export type TTezosChain = keyof typeof TEZOS_MAINNET_CHAINS | ||
|
||
/** | ||
* Chains | ||
*/ | ||
export const TEZOS_MAINNET_CHAINS: Record<string, ChainMetadata> = { | ||
'tezos:mainnet': { | ||
chainId: 'mainnet', | ||
name: 'Tezos', | ||
logo: '/chain-logos/tezos.svg', | ||
rgb: '44, 125, 247', | ||
rpc: 'https://mainnet.api.tez.ie', | ||
namespace: 'tezos' | ||
} | ||
} | ||
|
||
export const TEZOS_TEST_CHAINS: Record<string, ChainMetadata> = { | ||
'tezos:testnet': { | ||
chainId: 'testnet', | ||
name: 'Tezos Testnet', | ||
logo: '/chain-logos/tezos.svg', | ||
rgb: '44, 125, 247', | ||
rpc: 'https://ghostnet.ecadinfra.com', | ||
namespace: 'tezos' | ||
} | ||
} | ||
|
||
export const TEZOS_CHAINS = { ...TEZOS_MAINNET_CHAINS, ...TEZOS_TEST_CHAINS } | ||
|
||
/** | ||
* Methods | ||
*/ | ||
export const TEZOS_SIGNING_METHODS = { | ||
TEZOS_GET_ACCOUNTS: 'tezos_getAccounts', | ||
TEZOS_SEND: 'tezos_send', | ||
TEZOS_SIGN: 'tezos_sign' | ||
} |
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
Oops, something went wrong.