Documentation ¶
Index ¶
- Variables
- func Address(input interface{}) []byte
- func AddressArray(input interface{}) []byte
- func Bool(input interface{}) []byte
- func BoolArray(input interface{}) []byte
- func Bytes16(input interface{}) []byte
- func Bytes32(input interface{}) []byte
- func CalAddr2DecimalsPrefix(tokenAddr string) []byte
- func CheckPower(power int64) bool
- func ConcatByteSlices(arrays ...[]byte) []byte
- func DivideDot(in string) (left, right string, err error)
- func GetDecimalsFromDB(addr string, db dbm.DB) (int64, error)
- func GetDecimalsFromNode(addr string, nodeAddr string) (int64, error)
- func Int128(input interface{}) []byte
- func Int128Array(input interface{}) []byte
- func Int16(input interface{}) []byte
- func Int16Array(input interface{}) []byte
- func Int256(input interface{}) []byte
- func Int256Array(input interface{}) []byte
- func Int32(input interface{}) []byte
- func Int32Array(input interface{}) []byte
- func Int64(input interface{}) []byte
- func Int64Array(input interface{}) []byte
- func Int8(input interface{}) []byte
- func Int8Array(input interface{}) []byte
- func IsExecAddrMatch(name string, to string) bool
- func IsValidPassWord(password string) bool
- func IsZeroAddress(address common.Address) bool
- func LoadInt64FromDB(key []byte, db dbm.DB) (int64, error)
- func MultiplySpecifyTimes(start float64, time int64) float64
- func Pack(types []string, values []interface{}) []byte
- func QueryTxhashes(prefix []byte, db dbm.DB) []string
- func SignClaim4Evm(hash common.Hash, privateKey *ecdsa.PrivateKey) ([]byte, error)
- func SimpleGetDecimals(addr string) (int64, error)
- func SoliditySHA3(data ...interface{}) []byte
- func SoliditySHA3WithPrefix(data []byte) []byte
- func String(input interface{}) []byte
- func StringArray(input interface{}) []byte
- func ToWei(amount float64, decimal int64) *big.Int
- func Toeth(amount string, decimal int64) float64
- func TrimZeroAndDot(s string) string
- func Uint128(input interface{}) []byte
- func Uint128Array(input interface{}) []byte
- func Uint16(input interface{}) []byte
- func Uint16Array(input interface{}) []byte
- func Uint256(input interface{}) []byte
- func Uint256Array(input interface{}) []byte
- func Uint32(input interface{}) []byte
- func Uint32Array(input interface{}) []byte
- func Uint64(input interface{}) []byte
- func Uint64Array(input interface{}) []byte
- func Uint8(input interface{}) []byte
- func Uint8Array(input interface{}) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Addr2DecimalsKey = []byte("prefix_for_Addr2Decimals")
)
Addr2DecimalsKey ...
View Source
var Decimal2value = map[int]int64{
1: 1e1,
2: 1e2,
3: 1e3,
4: 1e4,
5: 1e5,
6: 1e6,
7: 1e7,
8: 1e8,
9: 1e9,
10: 1e10,
11: 1e11,
}
Functions ¶
func CalAddr2DecimalsPrefix ¶
CalAddr2DecimalsPrefix ...
func ConcatByteSlices ¶
ConcatByteSlices concat byte slices
func GetDecimalsFromDB ¶
GetDecimalsFromDB ...
func GetDecimalsFromNode ¶
GetDecimalsFromNode ...
func IsValidPassWord ¶
IsValidPassWord 密码合法性校验,密码长度在8-30位之间。必须是数字+字母的组合
func IsZeroAddress ¶
IsZeroAddress : checks an Ethereum address and returns a bool which indicates if it is the null address
func LoadInt64FromDB ¶
LoadInt64FromDB ...
func MultiplySpecifyTimes ¶
MultiplySpecifyTimes ...
func SignClaim4Evm ¶
func SimpleGetDecimals ¶
func SoliditySHA3WithPrefix ¶
SoliditySHA3WithPrefix solidity sha3 with prefix
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.