Documentation
¶
Index ¶
- func AbiToJson(abi *ABI) (string, error)
- func DecodeAbiEx(contractName string, method string, r io.Reader, abi ABI, subStructName string, ...) map[string]interface{}
- func DecodeTableAbiEx(table_name string, r io.Reader, abi ABI, subStructName string, ...) map[string]interface{}
- func EncodeAbiEx(contractName string, method string, w io.Writer, value map[string]interface{}, ...) error
- func MarshalAbiEx(v map[string]interface{}, Abi *ABI, contractName string, method string) ([]byte, error)
- func Setmapval(structmap map[string]interface{}, key string, val interface{})
- func UnmarshalAbiEx(contractName string, Abi *ABI, method string, data []byte) map[string]interface{}
- type ABI
- type ABIAction
- type ABIStruct
- type ABIStructs
- type ByIndex
- type ByPair
- type FeildMap
- func (o *FeildMap) Delete(key string)
- func (o *FeildMap) Get(key string) (interface{}, bool)
- func (o *FeildMap) GetStringPair() []StringPair
- func (o *FeildMap) GetStringVal(key string) (string, bool)
- func (o *FeildMap) Keys() []string
- func (o FeildMap) MarshalJSON() ([]byte, error)
- func (o *FeildMap) Set(key string, value interface{})
- func (o *FeildMap) Sort(lessFunc func(a *Pair, b *Pair) bool)
- func (o *FeildMap) SortKeys(sortFunc func(keys []string))
- func (o *FeildMap) UnmarshalJSON(b []byte) error
- type KeyIndex
- type Pair
- type StringPair
- type TableStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeAbiEx ¶
func DecodeAbiEx(contractName string, method string, r io.Reader, abi ABI, subStructName string, subStructValueName string, mapResultIn *map[string]interface{}) map[string]interface{}
DecodeAbiEx is to encode message
func DecodeTableAbiEx ¶
func DecodeTableAbiEx(table_name string, r io.Reader, abi ABI, subStructName string, subStructValueName string, mapResultIn *map[string]interface{}) map[string]interface{}
DecodeTableAbiEx is to encode message
func EncodeAbiEx ¶
func EncodeAbiEx(contractName string, method string, w io.Writer, value map[string]interface{}, abi ABI, subStructName string) error
EncodeAbiEx is to encode message
Types ¶
type ABI ¶
type ABI struct {
Types []interface{} `json:"types"`
Structs []ABIStruct `json:"structs"`
Actions []ABIAction `json:"actions"`
Tables []TableStruct `json:"tables"`
}
ABI struct for abi
func CreateNativeContractABI ¶
func CreateNativeContractABI() *ABI
type ABIStruct ¶
type ABIStruct struct {
Name string `json:"name"`
Base string `json:"base"`
Fields *FeildMap `json:"fields"`
}
ABIStruct parameter struct for abi Action(Method)
type ABIStructs ¶
type ABIStructs struct {
Structs []struct {
Name string `json:"name"`
Base string `json:"base"`
Fields map[string]string `json:"fields"`
} `json:"structs"`
}
ABIStructs structs for ABI
type FeildMap ¶
type FeildMap struct {
// contains filtered or unexported fields
}
FeildMap struct
func (*FeildMap) GetStringPair ¶
func (o *FeildMap) GetStringPair() []StringPair
GetStringPair get key value pairs
func (*FeildMap) GetStringVal ¶
GetStringVal get string value by key
func (*FeildMap) UnmarshalJSON ¶
UnmarshalJSON function
Click to show internal directories.
Click to hide internal directories.