| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- package service
- const (
- eth = "eth"
- tron = "tron"
- )
- const (
- okCode = "200"
- okMsg = "success"
- dbErrCode = "1000"
- mnemonicTypeErrCode = "1001"
- mnemonicTypeErrMsg = "MnemonicType must be: 0 or 1"
- mnemonicNameErrCode = "1002"
- mnemonicNameErrMsg = "Mnemonic name cannot be empty"
- GenerateMnemonicErrCode = "1003"
- encryptMnemonicErrCode = "1004"
- mnemonicNotExistErrCode = "1005"
- mnemonicNotExistErrMsg = "User mnemonic does not exist"
- createKeyErrCode = "1006"
- addressErrCode = "1007"
- addressErrMsg = "Address format failed"
- networkErrCode = "1008"
- networkErrMsg = "Network must be eth or tron"
- loadSignerErrCode = "1009"
- unmarshalJEthTxErrCode = "1010"
- checkErcTxErrCode = "1011"
- signEthTxErrCode = "1012"
- marshalJEthTxErrCode = "1013"
- unmarshalJTronTxErrCode = "1014"
- checkTronTxErrCode = "1015"
- signTronTxErrCode = "1016"
- marshalJTronTxErrCode = "1017"
- )
- const (
- ethCoin = "eth"
- trxCoin = "trx"
- usdtCoin = "usdt"
- usdcCoin = "usdc"
- )
|