Documentation ¶
Index ¶
- Constants
- Variables
- func GetTypeHandler(typ abi.Type, blockchainContext *BlockchainContext) (interfaces.TypeHandler, error)
- func NewAddressHandler(addresses []string) (*addressHandler, error)
- func NewArrayHandler(size int, typ abi.Type, blockchainContext *BlockchainContext) (*arrayHandler, error)
- func NewBoolHandler() *boolHandler
- func NewBytesHandler(typ abi.Type, blockchainContext *BlockchainContext) (*bytesHandler, error)
- func NewFixedBytesHandler(typ abi.Type, blockchainContext *BlockchainContext) (*fixedBytesHandler, error)
- func NewInt16Handler() *int16Handler
- func NewInt32Handler() *int32Handler
- func NewInt64Handler() *int64Handler
- func NewInt8Handler() *int8Handler
- func NewSignedBigIntHandler(bitSize int) *signedBigIntHandler
- func NewSliceHandler(typ abi.Type, blockchainContext *BlockchainContext) (*sliceHandler, error)
- func NewStringHandler() *stringHandler
- func NewUint16Handler() *uint16Handler
- func NewUint32Handler() *uint32Handler
- func NewUint64Handler() *uint64Handler
- func NewUint8Handler() *uint8Handler
- func NewUnsignedBigIntHandler(bitSize int) *unsignedBigIntHandler
- type BlockchainContext
- type Empty
Constants ¶
View Source
const ( BOOL common.TypeIdentifier = "bool" UINT8 common.TypeIdentifier = "uint8" UINT16 common.TypeIdentifier = "uint16" UINT24 common.TypeIdentifier = "uint24" UINT32 common.TypeIdentifier = "uint32" UINT40 common.TypeIdentifier = "uint40" UINT48 common.TypeIdentifier = "uint48" UINT56 common.TypeIdentifier = "uint56" UINT64 common.TypeIdentifier = "uint64" UINT72 common.TypeIdentifier = "uint72" UINT80 common.TypeIdentifier = "uint80" UINT88 common.TypeIdentifier = "uint88" UINT96 common.TypeIdentifier = "uint96" UINT104 common.TypeIdentifier = "uint104" UINT112 common.TypeIdentifier = "uint112" UINT120 common.TypeIdentifier = "uint120" UINT128 common.TypeIdentifier = "uint128" UINT136 common.TypeIdentifier = "uint136" UINT144 common.TypeIdentifier = "uint144" UINT152 common.TypeIdentifier = "uint152" UINT160 common.TypeIdentifier = "uint160" UINT168 common.TypeIdentifier = "uint168" UINT176 common.TypeIdentifier = "uint176" UINT184 common.TypeIdentifier = "uint184" UINT192 common.TypeIdentifier = "uint192" UINT200 common.TypeIdentifier = "uint200" UINT208 common.TypeIdentifier = "uint208" UINT216 common.TypeIdentifier = "uint216" UINT224 common.TypeIdentifier = "uint224" UINT232 common.TypeIdentifier = "uint232" UINT240 common.TypeIdentifier = "uint240" UINT248 common.TypeIdentifier = "uint248" UINT256 common.TypeIdentifier = "uint256" INT8 common.TypeIdentifier = "int8" INT16 common.TypeIdentifier = "int16" INT24 common.TypeIdentifier = "int24" INT32 common.TypeIdentifier = "int32" INT40 common.TypeIdentifier = "int40" INT48 common.TypeIdentifier = "int48" INT56 common.TypeIdentifier = "int56" INT64 common.TypeIdentifier = "int64" INT72 common.TypeIdentifier = "int72" INT80 common.TypeIdentifier = "int80" INT88 common.TypeIdentifier = "int88" INT96 common.TypeIdentifier = "int96" INT104 common.TypeIdentifier = "int104" INT112 common.TypeIdentifier = "int112" INT120 common.TypeIdentifier = "int120" INT128 common.TypeIdentifier = "int128" INT136 common.TypeIdentifier = "int136" INT144 common.TypeIdentifier = "int144" INT152 common.TypeIdentifier = "int152" INT160 common.TypeIdentifier = "int160" INT168 common.TypeIdentifier = "int168" INT176 common.TypeIdentifier = "int176" INT184 common.TypeIdentifier = "int184" INT192 common.TypeIdentifier = "int192" INT200 common.TypeIdentifier = "int200" INT208 common.TypeIdentifier = "int208" INT216 common.TypeIdentifier = "int216" INT224 common.TypeIdentifier = "int224" INT232 common.TypeIdentifier = "int232" INT240 common.TypeIdentifier = "int240" INT248 common.TypeIdentifier = "int248" INT256 common.TypeIdentifier = "int256" STRING common.TypeIdentifier = "string" ADDRESS common.TypeIdentifier = "address" )
View Source
const INT16_BIT_SIZE = 16
View Source
const INT32_BIT_SIZE = 32
View Source
const INT64_BIT_SIZE = 64
View Source
const INT8_BIT_SIZE = 8
View Source
const UINT16_BIT_SIZE = 16
View Source
const UINT32_BIT_SIZE = 32
View Source
const UINT64_BIT_SIZE = 64
View Source
const UINT8_BIT_SIZE = 8
Variables ¶
View Source
var ErrInvalidAddress = errors.New("the provided json does not correspond to a address type")
View Source
var ErrInvalidArray = errors.New("the provided json does not correspond to a array type")
View Source
var ErrInvalidArraySize = errors.New("the provided json does not correspond to a array with size required by this handler")
View Source
var ErrInvalidBool = errors.New("the provided json does not correspond to a boolean type")
View Source
var ErrInvalidBytes = errors.New("the provided json does not correspond to a bytes type")
View Source
var ErrInvalidBytesSize = errors.New("the provided json does not correspond to a bytes with size required by this handler")
View Source
var ErrInvalidElement = errors.New("the provided json does not correspond to a valid element for this array")
View Source
var ErrInvalidFixedBytes = errors.New("the provided json does not correspond to a fixed bytes type")
View Source
var ErrInvalidFixedBytesSize = errors.New("the provided json does not correspond to a fixed bytes with size required by this handler")
View Source
var ErrInvalidInt16 = errors.New("the provided string does not correspond to a int16 type")
View Source
var ErrInvalidInt32 = errors.New("the provided string does not correspond to a int32 type")
View Source
var ErrInvalidInt64 = errors.New("the provided string does not correspond to a int64 type")
View Source
var ErrInvalidInt8 = errors.New("the provided string does not correspond to a int8 type")
View Source
var ErrInvalidSignedBigInt = errors.New("the provided json does not correspond to a Big.Int type")
View Source
var ErrInvalidSlice = errors.New("the provided json does not correspond to a slice type")
View Source
var ErrInvalidSliceSize = errors.New("the provided json does not correspond to a slice with size required by this handler")
View Source
var ErrInvalidString = errors.New("the provided json does not correspond to a string type")
View Source
var ErrInvalidUint16 = errors.New("the provided string does not correspond to a uint16 type")
View Source
var ErrInvalidUint32 = errors.New("the provided string does not correspond to a uint32 type")
View Source
var ErrInvalidUint64 = errors.New("the provided string does not correspond to a uint64 type")
View Source
var ErrInvalidUint8 = errors.New("the provided string does not correspond to a uint8 type")
View Source
var ErrInvalidUnsignedBigInt = errors.New("the provided json does not correspond to a unsigned big int type")
Functions ¶
func GetTypeHandler ¶
func GetTypeHandler(typ abi.Type, blockchainContext *BlockchainContext) (interfaces.TypeHandler, error)
func NewAddressHandler ¶
func NewArrayHandler ¶
func NewArrayHandler(size int, typ abi.Type, blockchainContext *BlockchainContext) (*arrayHandler, error)
func NewBoolHandler ¶
func NewBoolHandler() *boolHandler
func NewBytesHandler ¶
func NewBytesHandler(typ abi.Type, blockchainContext *BlockchainContext) (*bytesHandler, error)
func NewFixedBytesHandler ¶
func NewFixedBytesHandler(typ abi.Type, blockchainContext *BlockchainContext) (*fixedBytesHandler, error)
func NewInt16Handler ¶
func NewInt16Handler() *int16Handler
func NewInt32Handler ¶
func NewInt32Handler() *int32Handler
func NewInt64Handler ¶
func NewInt64Handler() *int64Handler
func NewInt8Handler ¶
func NewInt8Handler() *int8Handler
func NewSignedBigIntHandler ¶
func NewSignedBigIntHandler(bitSize int) *signedBigIntHandler
func NewSliceHandler ¶
func NewSliceHandler(typ abi.Type, blockchainContext *BlockchainContext) (*sliceHandler, error)
func NewStringHandler ¶
func NewStringHandler() *stringHandler
func NewUint16Handler ¶
func NewUint16Handler() *uint16Handler
func NewUint32Handler ¶
func NewUint32Handler() *uint32Handler
func NewUint64Handler ¶
func NewUint64Handler() *uint64Handler
func NewUint8Handler ¶
func NewUint8Handler() *uint8Handler
func NewUnsignedBigIntHandler ¶
func NewUnsignedBigIntHandler(bitSize int) *unsignedBigIntHandler
Types ¶
type BlockchainContext ¶
type BlockchainContext struct {
AvailableAddresses []string
}
func NewBlockchainContext ¶
func NewBlockchainContext(availableAddresses []string) *BlockchainContext
Click to show internal directories.
Click to hide internal directories.