Documentation ¶
Index ¶
- func AddBase64Padding(value string) string
- func EncodeBytes(args ...EncoderParam) (data []byte, err error)
- func ExtractHRP(address string) (string, error)
- func MsgPackStruct(msg interface{}) ([]byte, error)
- func MsgPackUnpackStruct[T interface{}](b []byte, message *T) error
- func NumberFromByte(buf []byte) uint64
- func NumberToByte(i uint64) []byte
- func ToBase64Padded(data []byte) string
- type EncoderDataType
- type EncoderParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBase64Padding ¶
func EncodeBytes ¶
func EncodeBytes(args ...EncoderParam) (data []byte, err error)
func ExtractHRP ¶
func MsgPackStruct ¶
func MsgPackUnpackStruct ¶
func NumberFromByte ¶ added in v1.2.0
func NumberToByte ¶
func ToBase64Padded ¶
Types ¶
type EncoderDataType ¶
type EncoderDataType string
const ( StringEncoderDataType EncoderDataType = "string" ByteEncoderDataType EncoderDataType = "byte" BigNumEncoderDataType EncoderDataType = "bignum" IntEncoderDataType EncoderDataType = "int" HexEncoderDataType EncoderDataType = "hex" BoolEncoderDataType EncoderDataType = "bool" AddressEncoderDataType EncoderDataType = "address" )
type EncoderParam ¶
type EncoderParam struct { Type EncoderDataType Value any }
Click to show internal directories.
Click to hide internal directories.