Skip to content

Conversation

@junhoyeo
Copy link
Contributor

@junhoyeo junhoyeo commented May 16, 2022

Complete table of error messages by each module

Error messages

Keyring

module code message
keyring 100 Invalid account in hd path
keyring 101 Invalid address index in hd path
keyring 102 Invalid change in hd path
keyring 110 Coin type already set
keyring 111 Invalid coin type passed in to Ethereum signing (expected 60)
keyring 112 Ethereum signing with Ledger is not yet supported
keyring 120 Invalid keystore
keyring 121 Invalid password
keyring 130 Key Store is empty (merged with Empty key store)
keyring 131 Key store's id is empty
keyring 132 Invalid type of key store
keyring 133 Key store type is mnemonic and it is unlocked. But, mnemonic is not loaded unexpectedly
keyring 134 Key store type is private key and it is unlocked. But, private key is not loaded unexpectedly
keyring 140 Key ring is locked (merged with Keyring is locked)
keyring 141 Key ring is locked or not initialized
keyring 142 Key ring is not loaded or not empty
keyring 143 Key ring is not unlocked
keyring 144 Key ring not initialized
keyring 145 Unexpected type of keyring
keyring 150 Ledger public key not set
keyring 151 Ledger public key is not initialized
keyring 152 Ledger is not compatible with this coinType right now
keyring 200 Index is negative
keyring 201 Invalid index
keyring 202 Invalid kdf
keyring 210 Pub key unmatched
keyring 211 Unsupported type of pub key: ${signature.pub_key.type}
keyring 220 Unknown kdf
keyring 221 Unknown msg type
keyring 222 Unmatched mac
keyring 230 signer not set
keyring 231 Signer mismatched
keyring 232 Unmatched signer in new sign doc
keyring 233 Unmatched signer in sign doc
keyring 234 Chain id in the message is not matched with the requested chain id
keyring 235 Sign options are null
keyring 236 Sign doc is not for ADR-36. But, "isADR36WithString" option is defined
keyring 237 Signing request was for ADR-36. But, accidentally, new sign doc is not for ADR-3
keyring 240 coin type can not be negative
keyring 241 coin type should be integer
keyring 250 empty bip44 path list
keyring 260 invalid length of private key
keyring 261 key doesn't exist
keyring 270 chain id not set
keyring 271 Signature not set
keyring 272 mnemonic not set
keyring 273 name not set
keyring 274 password not set
keyring 275 private key not set

ledger

module code message
ledger 100 Cosmos App not initialized
ledger 101 Flag is null
ledger 102 Device is on screen saver
ledger 110 Unmatched public key
ledger 111 Unknown msg type
ledger 112 Unknown mode: ${mode}
ledger 120 Ledger init aborted
ledger 121 Ledger init timeout

chains

module code message
chains 100 Chain info not set
chains 101 Chain id not set
chains 110 Unknown msg type
chains 111 There is no chain info for ${chainId}
chains 120 Chain is not registered
chains 121 Same chain is already registered
chains 122 Can't remove the embedded chain
chains 130 cosmwasm and secretwasm are not compatible

interaction

module code message
interaction 100 Id is aleady in use
interaction 101 Type should not be empty
interaction 110 Unknown msg type

permission

module code message
permission 100 chain id not set
permission 101 origin not set
permission 110 empty permission type
permission 111 empty permission origin
permission 120 Unknown msg type
permission 130 ${origin} is not permitted

tokens

module code message
tokens 100 Chain id is empty
tokens 101 Contract address is empty
tokens 110 Unknown type of currency
tokens 111 There is no matched secret20
tokens 120 Unknown msg type

updater

module code message
updater 100 Empty chain id
updater 110 Unknown msg type

tx

module code message
tx 100 chain id is empty
tx 101 tx is empty
tx 110 Unknown msg type
tx 120 invalid mode

secret-wasm

module code message
secret-wasm 100 chain id not set
secret-wasm 101 msg not set
secret-wasm 102 ciphertext not set
secret-wasm 103 contract code hash not set
secret-wasm 110 nonce not set
secret-wasm 111 nonce is null
secret-wasm 120 Unknown msg type
secret-wasm 130 Key ring is not initialized

@junhoyeo junhoyeo changed the title Implement KeplrError and replace error instances in background Implement KeplrError and replace error instances in @keplr-wallet/background May 16, 2022
@junhoyeo junhoyeo changed the base branch from master to develop May 16, 2022 10:52
@Thunnini Thunnini merged commit 0f283ad into chainapsis:develop May 16, 2022
@junhoyeo junhoyeo deleted the junhoyeo/keplr-error branch May 17, 2022 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KeplrError type 추가하기

2 participants