const.go 1019 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package service
  2. const (
  3. eth = "eth"
  4. tron = "tron"
  5. )
  6. const (
  7. okCode = "200"
  8. okMsg = "success"
  9. dbErrCode = "1000"
  10. mnemonicTypeErrCode = "1001"
  11. mnemonicTypeErrMsg = "MnemonicType must be: 0 or 1"
  12. mnemonicNameErrCode = "1002"
  13. mnemonicNameErrMsg = "Mnemonic name cannot be empty"
  14. GenerateMnemonicErrCode = "1003"
  15. encryptMnemonicErrCode = "1004"
  16. mnemonicNotExistErrCode = "1005"
  17. mnemonicNotExistErrMsg = "User mnemonic does not exist"
  18. createKeyErrCode = "1006"
  19. addressErrCode = "1007"
  20. addressErrMsg = "Address format failed"
  21. networkErrCode = "1008"
  22. networkErrMsg = "Network must be eth or tron"
  23. loadSignerErrCode = "1009"
  24. unmarshalJEthTxErrCode = "1010"
  25. checkErcTxErrCode = "1011"
  26. signEthTxErrCode = "1012"
  27. marshalJEthTxErrCode = "1013"
  28. unmarshalJTronTxErrCode = "1014"
  29. checkTronTxErrCode = "1015"
  30. signTronTxErrCode = "1016"
  31. marshalJTronTxErrCode = "1017"
  32. )
  33. const (
  34. ethCoin = "eth"
  35. trxCoin = "trx"
  36. usdtCoin = "usdt"
  37. usdcCoin = "usdc"
  38. )