Documentation
¶
Index ¶
- Variables
- func Bech32Address(address string) (string, string, error)
- func CSVRead(filename string) ([][]string, error)
- func DecimalAdd(a, b string) (string, error)
- func DecimalDivRound(a, b string, precision int32) (string, error)
- func DecimalMul(a, b string) (string, error)
- func DecimalSub(a, b string) (string, error)
- func DictDel(service, key string)
- func DictDelGlobal(key string)
- func DictGet(service, key string) (any, bool)
- func DictGetGlobal(key string) (any, bool)
- func DictKeys(service string) []string
- func DictKeysGlobal() []string
- func DictSet(service, key string, val any)
- func DictSetGlobal(key string, val any)
- func Ecrecover(hash, sig string) (string, error)
- func HashTypedData(typedDataJson string) (string, error)
- func HexToAddress(address string) string
- func HexToHash(input string) string
- func Keccak256(data string) string
- func RedisHExpire(r *redis.Client, key string, duration string, fields ...string) ([]int64, error)
- func RedisHGet(r *redis.Client, key, field string) (string, error)
- func RedisHKeys(r *redis.Client, key string) ([]string, error)
- func RedisHSet(r *redis.Client, key string, values ...any) (int64, error)
- func TableInsert(db *gorm.DB, table string, obj map[string]any) error
- func TableSelect(db *gorm.DB, query string, values ...any) ([]map[string]any, error)
- type FetchArgs
- type FetchResp
- type MerkleArgs
- type MerkleTree
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNilDB = gorm.ErrInvalidDB
)
Functions ¶
func DecimalAdd ¶ added in v1.0.8
func DecimalDivRound ¶ added in v1.0.8
func DecimalMul ¶ added in v1.0.8
func DecimalSub ¶ added in v1.0.8
func DictDelGlobal ¶ added in v1.0.15
func DictDelGlobal(key string)
func DictGetGlobal ¶ added in v1.0.14
func DictKeysGlobal ¶ added in v1.0.14
func DictKeysGlobal() []string
func DictSetGlobal ¶ added in v1.0.14
func HashTypedData ¶ added in v1.0.6
func HexToAddress ¶ added in v1.0.6
func RedisHExpire ¶ added in v1.0.16
func RedisHKeys ¶ added in v1.0.17
Types ¶
type MerkleArgs ¶ added in v1.0.9
type MerkleTree ¶ added in v1.0.9
type MerkleTree struct { Root string `json:"root"` Proof map[string][]string `json:"proof"` Amounts map[string]string `json:"amounts"` }
func Merkle ¶ added in v1.0.9
func Merkle(name string, args []MerkleArgs) (*MerkleTree, error)
func TryMerkle ¶ added in v1.0.14
func TryMerkle(name string) (*MerkleTree, bool)
Click to show internal directories.
Click to hide internal directories.