Documentation ¶
Overview ¶
* Copyright (C) 2018 The ZeepinChain Authors * This file is part of The ZeepinChain library. * * The ZeepinChain is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The ZeepinChain is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with The ZeepinChain. If not, see <http://www.gnu.org/licenses/>.
Index ¶
Constants ¶
const ( EMBED_PARAM_TYPE_BOOL = "boolean" EMBED_PARAM_TYPE_STRING = "string" EMBED_PARAM_TYPE_INTEGER = "integer" EMBED_PARAM_TYPE_ARRAY = "array" EMBED_PARAM_TYPE_BYTE_ARRAY = "bytearray" EMBED_PARAM_TYPE_VOID = "void" EMBED_PARAM_TYPE_ANY = "any" )
const ( NATIVE_PARAM_TYPE_BOOL = "bool" NATIVE_PARAM_TYPE_BYTE = "byte" NATIVE_PARAM_TYPE_INTEGER = "int" NATIVE_PARAM_TYPE_STRING = "string" NATIVE_PARAM_TYPE_BYTEARRAY = "bytearray" NATIVE_PARAM_TYPE_ARRAY = "array" NATIVE_PARAM_TYPE_ADDRESS = "address" NATIVE_PARAM_TYPE_UINT256 = "uint256" NATIVE_PARAM_TYPE_STRUCT = "struct" )
Variables ¶
var DefAbiMgr = NewAbiMgr()
Functions ¶
This section is empty.
Types ¶
type AbiMgr ¶
type AbiMgr struct { Path string // contains filtered or unexported fields }
func (*AbiMgr) GetNativeAbi ¶
func (this *AbiMgr) GetNativeAbi(address string) *NativeContractAbi
type EmbedContractAbi ¶
type EmbedContractAbi struct { Address string `json:"hash"` EntryPoint string `json:"entrypoint"` Functions []*EmbededContractFunctionAbi `json:"functions"` Events []*EmbededContractEventAbi `json:"events"` }
func (*EmbedContractAbi) GetEvent ¶
func (this *EmbedContractAbi) GetEvent(evt string) *EmbededContractEventAbi
func (*EmbedContractAbi) GetFunc ¶
func (this *EmbedContractAbi) GetFunc(method string) *EmbededContractFunctionAbi
type EmbededContractEventAbi ¶
type EmbededContractEventAbi struct { Name string `json:"name"` Parameters []*EmbededContractParamsAbi `json:"parameters"` ReturnType string `json:"returntype"` }
type EmbededContractFunctionAbi ¶
type EmbededContractFunctionAbi struct { Name string `json:"name"` Parameters []*EmbededContractParamsAbi `json:"parameters"` ReturnType string `json:"returntype"` }
type NativeContractAbi ¶
type NativeContractAbi struct { Address string `json:"hash"` Functions []*NativeContractFunctionAbi `json:"functions"` Events []*NativeContractEventAbi `json:"events"` }
func (*NativeContractAbi) GetEvent ¶
func (this *NativeContractAbi) GetEvent(name string) *NativeContractEventAbi
func (*NativeContractAbi) GetFunc ¶
func (this *NativeContractAbi) GetFunc(name string) *NativeContractFunctionAbi
type NativeContractEventAbi ¶
type NativeContractEventAbi struct { Name string `json:"name"` Parameters []*NativeContractParamAbi `json:"parameters"` }
type NativeContractFunctionAbi ¶
type NativeContractFunctionAbi struct { Name string `json:"name"` Parameters []*NativeContractParamAbi `json:"parameters"` ReturnType string `json:"returnType"` }
type NativeContractParamAbi ¶
type NativeContractParamAbi struct { Name string `json:"name"` Type string `json:"type"` SubType []*NativeContractParamAbi `json:"subType"` }