Documentation ¶
Index ¶
- Constants
- func CastToArray(value Value) ([]interface{}, error)
- func CastToInt(value Value) (int, error)
- func CastToString(value Value) (string, error)
- func CastToUInt16(value Value) (uint16, error)
- func CastToUInt8(value Value) (uint8, error)
- func Fuzz(data []byte) int
- type Address
- type AddressType
- type AnyResourceType
- type AnyStructType
- type AnyType
- type Array
- type ArrayType
- type Bool
- type BoolType
- type Bytes
- type BytesType
- type CompositeType
- type ConstantSizedArrayType
- type Dictionary
- type DictionaryType
- type Event
- type EventPointer
- type EventType
- type Field
- type Fix64
- type Fix64Type
- type Function
- type Int
- type Int128
- type Int128Type
- type Int16
- type Int16Type
- type Int256
- type Int256Type
- type Int32
- type Int32Type
- type Int64
- type Int64Type
- type Int8
- type Int8Type
- type IntType
- type KeyValuePair
- type MetaType
- type Optional
- type OptionalType
- type Parameter
- type Resource
- type ResourcePointer
- type ResourceType
- type String
- type StringType
- type Struct
- type StructPointer
- type StructType
- type Type
- type UFix64
- type UFix64Type
- type UInt
- type UInt128
- type UInt128Type
- type UInt16
- type UInt16Type
- type UInt256
- type UInt256Type
- type UInt32
- type UInt32Type
- type UInt64
- type UInt64Type
- type UInt8
- type UInt8Type
- type UIntType
- type Value
- type Variable
- type VariableSizedArrayType
- type Void
- type VoidType
- type Word16
- type Word16Type
- type Word32
- type Word32Type
- type Word64
- type Word64Type
- type Word8
- type Word8Type
Constants ¶
View Source
const AddressLength = 8
Variables ¶
This section is empty.
Functions ¶
func CastToArray ¶
func CastToString ¶
func CastToUInt16 ¶
func CastToUInt8 ¶
Types ¶
type Address ¶
type Address [AddressLength]byte
func BytesToAddress ¶
func NewAddress ¶
func NewAddress(b [AddressLength]byte) Address
type AnyResourceType ¶
type AnyResourceType struct{}
func (AnyResourceType) ID ¶
func (AnyResourceType) ID() string
type AnyStructType ¶
type AnyStructType struct{}
func (AnyStructType) ID ¶
func (AnyStructType) ID() string
type CompositeType ¶
type ConstantSizedArrayType ¶
func (ConstantSizedArrayType) Element ¶
func (v ConstantSizedArrayType) Element() Type
func (ConstantSizedArrayType) ID ¶
func (t ConstantSizedArrayType) ID() string
type Dictionary ¶
type Dictionary struct { Pairs []KeyValuePair // contains filtered or unexported fields }
func NewDictionary ¶
func NewDictionary(pairs []KeyValuePair) Dictionary
func (Dictionary) ToGoValue ¶
func (v Dictionary) ToGoValue() interface{}
func (Dictionary) Type ¶
func (v Dictionary) Type() Type
type DictionaryType ¶
func (DictionaryType) ID ¶
func (t DictionaryType) ID() string
type EventPointer ¶
type EventPointer struct {
TypeName string
}
func (EventPointer) ID ¶
func (t EventPointer) ID() string
type EventType ¶
func (EventType) CompositeFields ¶
func (EventType) CompositeIdentifier ¶
func (EventType) CompositeInitializers ¶
type Function ¶
type Int ¶
func NewIntFromBig ¶
type Int128 ¶
func NewInt128FromBig ¶
type Int256 ¶
func NewInt256FromBig ¶
type KeyValuePair ¶
type OptionalType ¶
type OptionalType struct {
Type Type
}
func (OptionalType) ID ¶
func (t OptionalType) ID() string
type Resource ¶
type Resource struct { ResourceType ResourceType Fields []Value }
func NewResource ¶
func (Resource) WithType ¶
func (v Resource) WithType(typ ResourceType) Resource
type ResourcePointer ¶
type ResourcePointer struct {
TypeName string
}
func (ResourcePointer) ID ¶
func (t ResourcePointer) ID() string
type ResourceType ¶
type ResourceType struct { TypeID string Identifier string Fields []Field Initializers [][]Parameter }
func (ResourceType) CompositeFields ¶
func (t ResourceType) CompositeFields() []Field
func (ResourceType) CompositeIdentifier ¶
func (t ResourceType) CompositeIdentifier() string
func (ResourceType) CompositeInitializers ¶
func (t ResourceType) CompositeInitializers() [][]Parameter
func (ResourceType) ID ¶
func (t ResourceType) ID() string
type Struct ¶
type Struct struct { StructType StructType Fields []Value }
func (Struct) WithType ¶
func (v Struct) WithType(typ StructType) Struct
type StructPointer ¶
type StructPointer struct {
TypeName string
}
func (StructPointer) ID ¶
func (t StructPointer) ID() string
type StructType ¶
type StructType struct { TypeID string Identifier string Fields []Field Initializers [][]Parameter }
func (StructType) CompositeFields ¶
func (t StructType) CompositeFields() []Field
func (StructType) CompositeIdentifier ¶
func (t StructType) CompositeIdentifier() string
func (StructType) CompositeInitializers ¶
func (t StructType) CompositeInitializers() [][]Parameter
func (StructType) ID ¶
func (t StructType) ID() string
type UInt ¶
func NewUIntFromBig ¶
type Value ¶
type Value interface { Type() Type ToGoValue() interface{} // contains filtered or unexported methods }
func MustConvertValue ¶
func MustConvertValue(value interface{}) Value
MustConvertValue converts a Go value to an ABI value or panics if the value cannot be converted.
type VariableSizedArrayType ¶
type VariableSizedArrayType struct {
ElementType Type
}
func (VariableSizedArrayType) Element ¶
func (v VariableSizedArrayType) Element() Type
func (VariableSizedArrayType) ID ¶
func (t VariableSizedArrayType) ID() string
Directories ¶
Path | Synopsis |
---|---|
encoding
|
|
languageserver
module
|
|
test-framework
module
|
|
tools
|
|
batch-script
Module
|
|
constructorcheck
Module
|
|
contract-analyzer
Module
|
|
docgen
Module
|
|
get-contracts
Module
|
|
golangci-lint
Module
|
|
maprange
Module
|
|
maprangecheck
Module
|
|
storage-explorer
Module
|
|
unkeyed
Module
|
Click to show internal directories.
Click to hide internal directories.