Documentation ¶
Index ¶
- Constants
- Variables
- 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
- func ParseUFix64(s string) (uint64, error)
- type AccountKeyType
- type Address
- type AddressType
- type AnyResourceType
- type AnyStructType
- type AnyType
- type Array
- type ArrayType
- type AuthAccountContractsType
- type AuthAccountKeysType
- type AuthAccountType
- type BlockType
- type Bool
- type BoolType
- type Bytes
- type BytesType
- type Capability
- type CapabilityPathType
- type CapabilityType
- type Character
- type CharacterType
- type CompositeType
- type ConstantSizedArrayType
- type Contract
- type ContractInterfaceType
- func (t *ContractInterfaceType) ID() string
- func (t *ContractInterfaceType) InterfaceFields() []Field
- func (t *ContractInterfaceType) InterfaceInitializers() [][]Parameter
- func (t *ContractInterfaceType) InterfaceTypeLocation() common.Location
- func (t *ContractInterfaceType) InterfaceTypeQualifiedIdentifier() string
- type ContractType
- type DeployedContractType
- type Dictionary
- type DictionaryType
- type Enum
- type EnumType
- type Event
- type EventType
- type Field
- type Fix64
- type Fix64Type
- type FixedPointType
- type FunctionType
- 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 IntegerType
- type InterfaceType
- type KeyValuePair
- type Link
- type MetaType
- type NeverType
- type NumberType
- type NumberValue
- type Optional
- type OptionalType
- type Parameter
- type Path
- type PathType
- type PrivatePathType
- type PublicAccountContractsType
- type PublicAccountKeysType
- type PublicAccountType
- type PublicPathType
- type ReferenceType
- type Resource
- type ResourceInterfaceType
- func (t *ResourceInterfaceType) ID() string
- func (t *ResourceInterfaceType) InterfaceFields() []Field
- func (t *ResourceInterfaceType) InterfaceInitializers() [][]Parameter
- func (t *ResourceInterfaceType) InterfaceTypeLocation() common.Location
- func (t *ResourceInterfaceType) InterfaceTypeQualifiedIdentifier() string
- type ResourceType
- type RestrictedType
- type SignedFixedPointType
- type SignedIntegerType
- type SignedNumberType
- type StoragePathType
- type String
- type StringType
- type Struct
- type StructInterfaceType
- func (t *StructInterfaceType) ID() string
- func (t *StructInterfaceType) InterfaceFields() []Field
- func (t *StructInterfaceType) InterfaceInitializers() [][]Parameter
- func (t *StructInterfaceType) InterfaceTypeLocation() common.Location
- func (t *StructInterfaceType) InterfaceTypeQualifiedIdentifier() string
- type StructType
- type Type
- type TypeValue
- 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 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
View Source
const Version = "v0.24.2"
Variables ¶
View Source
var Int128MemoryUsage = common.NewCadenceBigIntMemoryUsage(16)
View Source
var Int16MemoryUsage = common.NewCadenceNumberMemoryUsage(int(unsafe.Sizeof(Int16(0))))
View Source
var Int256MemoryUsage = common.NewCadenceBigIntMemoryUsage(32)
View Source
var Int32MemoryUsage = common.NewCadenceNumberMemoryUsage(int(unsafe.Sizeof(Int32(0))))
View Source
var Int64MemoryUsage = common.NewCadenceNumberMemoryUsage(int(unsafe.Sizeof(Int64(0))))
View Source
var Int8MemoryUsage = common.NewCadenceNumberMemoryUsage(int(unsafe.Sizeof(Int8(0))))
View Source
var UInt128MemoryUsage = common.NewCadenceBigIntMemoryUsage(16)
View Source
var UInt16MemoryUsage = common.NewCadenceNumberMemoryUsage(int(unsafe.Sizeof(UInt16(0))))
View Source
var UInt256MemoryUsage = common.NewCadenceBigIntMemoryUsage(32)
View Source
var UInt32MemoryUsage = common.NewCadenceNumberMemoryUsage(int(unsafe.Sizeof(UInt32(0))))
View Source
var UInt64MemoryUsage = common.NewCadenceNumberMemoryUsage(int(unsafe.Sizeof(UInt64(0))))
View Source
var UInt8MemoryUsage = common.NewCadenceNumberMemoryUsage(int(unsafe.Sizeof(UInt8(0))))
Functions ¶
func CastToArray ¶
func CastToString ¶
func CastToUInt16 ¶
func CastToUInt8 ¶
func ParseUFix64 ¶ added in v0.24.0
Types ¶
type AccountKeyType ¶ added in v0.24.0
type AccountKeyType struct{}
AccountKeyType
func NewAccountKeyType ¶ added in v0.24.0
func NewAccountKeyType() AccountKeyType
func NewMeteredAccountKeyType ¶ added in v0.24.0
func NewMeteredAccountKeyType( gauge common.MemoryGauge, ) AccountKeyType
func (AccountKeyType) ID ¶ added in v0.24.0
func (AccountKeyType) ID() string
type Address ¶
type Address [AddressLength]byte
func BytesToAddress ¶
func BytesToMeteredAddress ¶ added in v0.24.0
func BytesToMeteredAddress(memoryGauge common.MemoryGauge, b []byte) Address
func NewAddress ¶
func NewAddress(b [AddressLength]byte) Address
func NewMeteredAddress ¶ added in v0.24.0
func NewMeteredAddress(memoryGauge common.MemoryGauge, b [AddressLength]byte) Address
func (Address) MeteredType ¶ added in v0.24.0
func (Address) MeteredType(gauge common.MemoryGauge) Type
type AddressType ¶
type AddressType struct{}
func NewAddressType ¶ added in v0.24.0
func NewAddressType() AddressType
func NewMeteredAddressType ¶ added in v0.24.0
func NewMeteredAddressType(gauge common.MemoryGauge) AddressType
func (AddressType) ID ¶
func (AddressType) ID() string
type AnyResourceType ¶
type AnyResourceType struct{}
func NewAnyResourceType ¶ added in v0.24.0
func NewAnyResourceType() AnyResourceType
func NewMeteredAnyResourceType ¶ added in v0.24.0
func NewMeteredAnyResourceType(gauge common.MemoryGauge) AnyResourceType
func (AnyResourceType) ID ¶
func (AnyResourceType) ID() string
type AnyStructType ¶
type AnyStructType struct{}
func NewAnyStructType ¶ added in v0.24.0
func NewAnyStructType() AnyStructType
func NewMeteredAnyStructType ¶ added in v0.24.0
func NewMeteredAnyStructType(gauge common.MemoryGauge) AnyStructType
func (AnyStructType) ID ¶
func (AnyStructType) ID() string
type AnyType ¶
type AnyType struct{}
func NewAnyType ¶ added in v0.24.0
func NewAnyType() AnyType
func NewMeteredAnyType ¶ added in v0.24.0
func NewMeteredAnyType(gauge common.MemoryGauge) AnyType
type Array ¶
func NewMeteredArray ¶ added in v0.24.0
func (Array) MeteredType ¶ added in v0.24.0
func (v Array) MeteredType(_ common.MemoryGauge) Type
type AuthAccountContractsType ¶ added in v0.24.0
type AuthAccountContractsType struct{}
AuthAccountContractsType
func NewAuthAccountContractsType ¶ added in v0.24.0
func NewAuthAccountContractsType() AuthAccountContractsType
func NewMeteredAuthAccountContractsType ¶ added in v0.24.0
func NewMeteredAuthAccountContractsType( gauge common.MemoryGauge, ) AuthAccountContractsType
func (AuthAccountContractsType) ID ¶ added in v0.24.0
func (AuthAccountContractsType) ID() string
type AuthAccountKeysType ¶ added in v0.24.0
type AuthAccountKeysType struct{}
AuthAccountKeysType
func NewAuthAccountKeysType ¶ added in v0.24.0
func NewAuthAccountKeysType() AuthAccountKeysType
func NewMeteredAuthAccountKeysType ¶ added in v0.24.0
func NewMeteredAuthAccountKeysType( gauge common.MemoryGauge, ) AuthAccountKeysType
func (AuthAccountKeysType) ID ¶ added in v0.24.0
func (AuthAccountKeysType) ID() string
type AuthAccountType ¶ added in v0.7.0
type AuthAccountType struct{}
AuthAccountType
func NewAuthAccountType ¶ added in v0.24.0
func NewAuthAccountType() AuthAccountType
func NewMeteredAuthAccountType ¶ added in v0.24.0
func NewMeteredAuthAccountType( gauge common.MemoryGauge, ) AuthAccountType
func (AuthAccountType) ID ¶ added in v0.7.0
func (AuthAccountType) ID() string
type BlockType ¶ added in v0.7.0
type BlockType struct{}
func NewBlockType ¶ added in v0.24.0
func NewBlockType() BlockType
func NewMeteredBlockType ¶ added in v0.24.0
func NewMeteredBlockType( gauge common.MemoryGauge, ) BlockType
type Bool ¶
type Bool bool
func NewMeteredBool ¶ added in v0.24.0
func NewMeteredBool(memoryGauge common.MemoryGauge, b bool) Bool
func (Bool) MeteredType ¶ added in v0.24.0
func (Bool) MeteredType(gauge common.MemoryGauge) Type
type BoolType ¶
type BoolType struct{}
func NewBoolType ¶ added in v0.24.0
func NewBoolType() BoolType
func NewMeteredBoolType ¶ added in v0.24.0
func NewMeteredBoolType(gauge common.MemoryGauge) BoolType
type Bytes ¶
type Bytes []byte
func (Bytes) MeteredType ¶ added in v0.24.0
func (Bytes) MeteredType(gauge common.MemoryGauge) Type
type BytesType ¶
type BytesType struct{}
func NewBytesType ¶ added in v0.24.0
func NewBytesType() BytesType
func NewMeteredBytesType ¶ added in v0.24.0
func NewMeteredBytesType(gauge common.MemoryGauge) BytesType
type Capability ¶ added in v0.10.0
func NewCapability ¶ added in v0.24.0
func NewCapability(path Path, address Address, borrowType Type) Capability
func NewMeteredCapability ¶ added in v0.24.0
func NewMeteredCapability(gauge common.MemoryGauge, path Path, address Address, borrowType Type) Capability
func (Capability) MeteredType ¶ added in v0.24.0
func (v Capability) MeteredType(gauge common.MemoryGauge) Type
func (Capability) String ¶ added in v0.12.0
func (v Capability) String() string
func (Capability) ToGoValue ¶ added in v0.10.0
func (Capability) ToGoValue() interface{}
func (Capability) Type ¶ added in v0.10.0
func (v Capability) Type() Type
type CapabilityPathType ¶ added in v0.11.0
type CapabilityPathType struct{}
func NewCapabilityPathType ¶ added in v0.24.0
func NewCapabilityPathType() CapabilityPathType
func NewMeteredCapabilityPathType ¶ added in v0.24.0
func NewMeteredCapabilityPathType( gauge common.MemoryGauge, ) CapabilityPathType
func (CapabilityPathType) ID ¶ added in v0.11.0
func (CapabilityPathType) ID() string
type CapabilityType ¶ added in v0.7.0
type CapabilityType struct {
BorrowType Type
}
func NewCapabilityType ¶ added in v0.24.0
func NewCapabilityType(borrowType Type) CapabilityType
func NewMeteredCapabilityType ¶ added in v0.24.0
func NewMeteredCapabilityType( gauge common.MemoryGauge, borrowType Type, ) CapabilityType
func (CapabilityType) ID ¶ added in v0.7.0
func (t CapabilityType) ID() string
type Character ¶ added in v0.24.0
type Character string
Character represents a Cadence character, which is a Unicode extended grapheme cluster. Hence, use a Go string to be able to hold multiple Unicode code points (Go runes). It should consist of exactly one grapheme cluster
func NewCharacter ¶ added in v0.24.0
func NewMeteredCharacter ¶ added in v0.24.0
func NewMeteredCharacter( memoryGauge common.MemoryGauge, memoryUsage common.MemoryUsage, stringConstructor func() string, ) (Character, error)
func (Character) MeteredType ¶ added in v0.24.0
func (Character) MeteredType(gauge common.MemoryGauge) Type
type CharacterType ¶ added in v0.7.0
type CharacterType struct{}
func NewCharacterType ¶ added in v0.24.0
func NewCharacterType() CharacterType
func NewMeteredCharacterType ¶ added in v0.24.0
func NewMeteredCharacterType(gauge common.MemoryGauge) CharacterType
func (CharacterType) ID ¶ added in v0.7.0
func (CharacterType) ID() string
type CompositeType ¶
type ConstantSizedArrayType ¶
func NewConstantSizedArrayType ¶ added in v0.24.0
func NewConstantSizedArrayType( size uint, elementType Type, ) ConstantSizedArrayType
func NewMeteredConstantSizedArrayType ¶ added in v0.24.0
func NewMeteredConstantSizedArrayType( gauge common.MemoryGauge, size uint, elementType Type, ) ConstantSizedArrayType
func (ConstantSizedArrayType) Element ¶
func (t ConstantSizedArrayType) Element() Type
func (ConstantSizedArrayType) ID ¶
func (t ConstantSizedArrayType) ID() string
type Contract ¶ added in v0.6.0
type Contract struct { ContractType *ContractType Fields []Value }
func NewContract ¶ added in v0.6.0
func NewMeteredContract ¶ added in v0.24.0
func (Contract) MeteredType ¶ added in v0.24.0
func (v Contract) MeteredType(_ common.MemoryGauge) Type
func (Contract) WithType ¶ added in v0.6.0
func (v Contract) WithType(typ *ContractType) Contract
type ContractInterfaceType ¶ added in v0.7.0
type ContractInterfaceType struct { Location common.Location QualifiedIdentifier string Fields []Field Initializers [][]Parameter }
func NewContractInterfaceType ¶ added in v0.24.0
func NewMeteredContractInterfaceType ¶ added in v0.24.0
func NewMeteredContractInterfaceType( gauge common.MemoryGauge, location common.Location, qualifiedIdentifer string, fields []Field, initializers [][]Parameter, ) *ContractInterfaceType
func (*ContractInterfaceType) ID ¶ added in v0.7.0
func (t *ContractInterfaceType) ID() string
func (*ContractInterfaceType) InterfaceFields ¶ added in v0.7.0
func (t *ContractInterfaceType) InterfaceFields() []Field
func (*ContractInterfaceType) InterfaceInitializers ¶ added in v0.7.0
func (t *ContractInterfaceType) InterfaceInitializers() [][]Parameter
func (*ContractInterfaceType) InterfaceTypeLocation ¶ added in v0.12.0
func (t *ContractInterfaceType) InterfaceTypeLocation() common.Location
func (*ContractInterfaceType) InterfaceTypeQualifiedIdentifier ¶ added in v0.12.0
func (t *ContractInterfaceType) InterfaceTypeQualifiedIdentifier() string
type ContractType ¶ added in v0.6.0
type ContractType struct { Location common.Location QualifiedIdentifier string Fields []Field Initializers [][]Parameter }
func NewContractType ¶ added in v0.24.0
func NewMeteredContractType ¶ added in v0.24.0
func NewMeteredContractType( gauge common.MemoryGauge, location common.Location, qualifiedIdentifer string, fields []Field, initializers [][]Parameter, ) *ContractType
func (*ContractType) CompositeFields ¶ added in v0.6.0
func (t *ContractType) CompositeFields() []Field
func (*ContractType) CompositeInitializers ¶ added in v0.6.0
func (t *ContractType) CompositeInitializers() [][]Parameter
func (*ContractType) CompositeTypeLocation ¶ added in v0.12.0
func (t *ContractType) CompositeTypeLocation() common.Location
func (*ContractType) CompositeTypeQualifiedIdentifier ¶ added in v0.12.0
func (t *ContractType) CompositeTypeQualifiedIdentifier() string
func (*ContractType) ID ¶ added in v0.6.0
func (t *ContractType) ID() string
type DeployedContractType ¶ added in v0.24.0
type DeployedContractType struct{}
DeployedContractType
func NewDeployedContractType ¶ added in v0.24.0
func NewDeployedContractType() DeployedContractType
func NewMeteredDeployedContractType ¶ added in v0.24.0
func NewMeteredDeployedContractType( gauge common.MemoryGauge, ) DeployedContractType
func (DeployedContractType) ID ¶ added in v0.24.0
func (DeployedContractType) ID() string
type Dictionary ¶
type Dictionary struct { DictionaryType Type Pairs []KeyValuePair }
func NewDictionary ¶
func NewDictionary(pairs []KeyValuePair) Dictionary
func NewMeteredDictionary ¶ added in v0.24.0
func NewMeteredDictionary( gauge common.MemoryGauge, size int, constructor func() ([]KeyValuePair, error), ) (Dictionary, error)
func (Dictionary) MeteredType ¶ added in v0.24.0
func (v Dictionary) MeteredType(_ common.MemoryGauge) Type
func (Dictionary) String ¶ added in v0.12.0
func (v Dictionary) String() string
func (Dictionary) ToGoValue ¶
func (v Dictionary) ToGoValue() interface{}
func (Dictionary) Type ¶
func (v Dictionary) Type() Type
func (Dictionary) WithType ¶ added in v0.19.0
func (v Dictionary) WithType(dictionaryType DictionaryType) Dictionary
type DictionaryType ¶
func NewDictionaryType ¶ added in v0.24.0
func NewDictionaryType( keyType Type, elementType Type, ) DictionaryType
func NewMeteredDictionaryType ¶ added in v0.24.0
func NewMeteredDictionaryType( gauge common.MemoryGauge, keyType Type, elementType Type, ) DictionaryType
func (DictionaryType) ID ¶
func (t DictionaryType) ID() string
type Enum ¶ added in v0.14.0
Enum
func NewMeteredEnum ¶ added in v0.24.0
func (Enum) MeteredType ¶ added in v0.24.0
func (v Enum) MeteredType(_ common.MemoryGauge) Type
type EnumType ¶ added in v0.14.0
type EnumType struct { Location common.Location QualifiedIdentifier string RawType Type Fields []Field Initializers [][]Parameter }
EnumType
func NewEnumType ¶ added in v0.24.0
func NewMeteredEnumType ¶ added in v0.24.0
func (*EnumType) CompositeFields ¶ added in v0.14.0
func (*EnumType) CompositeInitializers ¶ added in v0.14.0
func (*EnumType) CompositeTypeLocation ¶ added in v0.14.0
func (*EnumType) CompositeTypeQualifiedIdentifier ¶ added in v0.14.0
type Event ¶
func NewMeteredEvent ¶ added in v0.24.0
func (Event) MeteredType ¶ added in v0.24.0
func (v Event) MeteredType(_ common.MemoryGauge) Type
type EventType ¶
type EventType struct { Location common.Location QualifiedIdentifier string Fields []Field Initializer []Parameter }
func NewEventType ¶ added in v0.24.0
func NewMeteredEventType ¶ added in v0.24.0
func (*EventType) CompositeFields ¶
func (*EventType) CompositeInitializers ¶
func (*EventType) CompositeTypeLocation ¶ added in v0.12.0
func (*EventType) CompositeTypeQualifiedIdentifier ¶ added in v0.12.0
type Fix64 ¶
type Fix64 int64
func NewFix64FromParts ¶ added in v0.5.0
func NewMeteredFix64 ¶ added in v0.24.0
func (Fix64) MeteredType ¶ added in v0.24.0
func (Fix64) MeteredType(gauge common.MemoryGauge) Type
func (Fix64) ToBigEndianBytes ¶ added in v0.5.0
type Fix64Type ¶
type Fix64Type struct{}
func NewFix64Type ¶ added in v0.24.0
func NewFix64Type() Fix64Type
func NewMeteredFix64Type ¶ added in v0.24.0
func NewMeteredFix64Type(gauge common.MemoryGauge) Fix64Type
type FixedPointType ¶ added in v0.7.0
type FixedPointType struct{}
func NewFixedPointType ¶ added in v0.24.0
func NewFixedPointType() FixedPointType
func NewMeteredFixedPointType ¶ added in v0.24.0
func NewMeteredFixedPointType(gauge common.MemoryGauge) FixedPointType
func (FixedPointType) ID ¶ added in v0.7.0
func (FixedPointType) ID() string
type FunctionType ¶ added in v0.24.0
type FunctionType struct { Parameters []Parameter ReturnType Type // contains filtered or unexported fields }
func NewFunctionType ¶ added in v0.24.0
func NewFunctionType( typeID string, parameters []Parameter, returnType Type, ) *FunctionType
func NewMeteredFunctionType ¶ added in v0.24.0
func NewMeteredFunctionType( gauge common.MemoryGauge, typeID string, parameters []Parameter, returnType Type, ) *FunctionType
func (*FunctionType) ID ¶ added in v0.24.0
func (t *FunctionType) ID() string
func (*FunctionType) WithID ¶ added in v0.24.0
func (t *FunctionType) WithID(id string) *FunctionType
type Int ¶
func NewIntFromBig ¶
func NewMeteredIntFromBig ¶ added in v0.24.0
func NewMeteredIntFromBig( memoryGauge common.MemoryGauge, memoryUsage common.MemoryUsage, bigIntConstructor func() *big.Int, ) Int
func (Int) MeteredType ¶ added in v0.24.0
func (Int) MeteredType(gauge common.MemoryGauge) Type
func (Int) ToBigEndianBytes ¶ added in v0.5.0
type Int128 ¶
func NewMeteredInt128FromBig ¶ added in v0.24.0
func (Int128) MeteredType ¶ added in v0.24.0
func (Int128) MeteredType(gauge common.MemoryGauge) Type
func (Int128) ToBigEndianBytes ¶ added in v0.5.0
type Int128Type ¶
type Int128Type struct{}
func NewInt128Type ¶ added in v0.24.0
func NewInt128Type() Int128Type
func NewMeteredInt128Type ¶ added in v0.24.0
func NewMeteredInt128Type(gauge common.MemoryGauge) Int128Type
func (Int128Type) ID ¶
func (Int128Type) ID() string
type Int16 ¶
type Int16 int16
func NewMeteredInt16 ¶ added in v0.24.0
func NewMeteredInt16(memoryGauge common.MemoryGauge, v int16) Int16
func (Int16) MeteredType ¶ added in v0.24.0
func (Int16) MeteredType(gauge common.MemoryGauge) Type
func (Int16) ToBigEndianBytes ¶ added in v0.5.0
type Int16Type ¶
type Int16Type struct{}
func NewInt16Type ¶ added in v0.24.0
func NewInt16Type() Int16Type
func NewMeteredInt16Type ¶ added in v0.24.0
func NewMeteredInt16Type(gauge common.MemoryGauge) Int16Type
type Int256 ¶
func NewMeteredInt256FromBig ¶ added in v0.24.0
func (Int256) MeteredType ¶ added in v0.24.0
func (Int256) MeteredType(gauge common.MemoryGauge) Type
func (Int256) ToBigEndianBytes ¶ added in v0.5.0
type Int256Type ¶
type Int256Type struct{}
func NewInt256Type ¶ added in v0.24.0
func NewInt256Type() Int256Type
func NewMeteredInt256Type ¶ added in v0.24.0
func NewMeteredInt256Type(gauge common.MemoryGauge) Int256Type
func (Int256Type) ID ¶
func (Int256Type) ID() string
type Int32 ¶
type Int32 int32
func NewMeteredInt32 ¶ added in v0.24.0
func NewMeteredInt32(memoryGauge common.MemoryGauge, v int32) Int32
func (Int32) MeteredType ¶ added in v0.24.0
func (Int32) MeteredType(gauge common.MemoryGauge) Type
func (Int32) ToBigEndianBytes ¶ added in v0.5.0
type Int32Type ¶
type Int32Type struct{}
func NewInt32Type ¶ added in v0.24.0
func NewInt32Type() Int32Type
func NewMeteredInt32Type ¶ added in v0.24.0
func NewMeteredInt32Type(gauge common.MemoryGauge) Int32Type
type Int64 ¶
type Int64 int64
func NewMeteredInt64 ¶ added in v0.24.0
func NewMeteredInt64(memoryGauge common.MemoryGauge, v int64) Int64
func (Int64) MeteredType ¶ added in v0.24.0
func (Int64) MeteredType(gauge common.MemoryGauge) Type
func (Int64) ToBigEndianBytes ¶ added in v0.5.0
type Int64Type ¶
type Int64Type struct{}
func NewInt64Type ¶ added in v0.24.0
func NewInt64Type() Int64Type
func NewMeteredInt64Type ¶ added in v0.24.0
func NewMeteredInt64Type(gauge common.MemoryGauge) Int64Type
type Int8 ¶
type Int8 int8
func NewMeteredInt8 ¶ added in v0.24.0
func NewMeteredInt8(memoryGauge common.MemoryGauge, v int8) Int8
func (Int8) MeteredType ¶ added in v0.24.0
func (Int8) MeteredType(gauge common.MemoryGauge) Type
func (Int8) ToBigEndianBytes ¶ added in v0.5.0
type Int8Type ¶
type Int8Type struct{}
func NewInt8Type ¶ added in v0.24.0
func NewInt8Type() Int8Type
func NewMeteredInt8Type ¶ added in v0.24.0
func NewMeteredInt8Type(gauge common.MemoryGauge) Int8Type
type IntType ¶
type IntType struct{}
func NewIntType ¶ added in v0.24.0
func NewIntType() IntType
func NewMeteredIntType ¶ added in v0.24.0
func NewMeteredIntType(gauge common.MemoryGauge) IntType
type IntegerType ¶ added in v0.7.0
type IntegerType struct{}
func NewIntegerType ¶ added in v0.24.0
func NewIntegerType() IntegerType
func NewMeteredIntegerType ¶ added in v0.24.0
func NewMeteredIntegerType(gauge common.MemoryGauge) IntegerType
func (IntegerType) ID ¶ added in v0.7.0
func (IntegerType) ID() string
type InterfaceType ¶ added in v0.7.0
type KeyValuePair ¶
func NewMeteredKeyValuePair ¶ added in v0.24.0
func NewMeteredKeyValuePair(gauge common.MemoryGauge, key, value Value) KeyValuePair
type Link ¶ added in v0.7.0
type Link struct { TargetPath Path // TODO: a future version might want to export the whole type BorrowType string }
func NewMeteredLink ¶ added in v0.24.0
func NewMeteredLink(gauge common.MemoryGauge, targetPath Path, borrowType string) Link
func (Link) MeteredType ¶ added in v0.24.0
func (v Link) MeteredType(_ common.MemoryGauge) Type
type MetaType ¶ added in v0.4.0
type MetaType struct{}
func NewMetaType ¶ added in v0.24.0
func NewMetaType() MetaType
func NewMeteredMetaType ¶ added in v0.24.0
func NewMeteredMetaType(gauge common.MemoryGauge) MetaType
type NeverType ¶ added in v0.7.0
type NeverType struct{}
func NewMeteredNeverType ¶ added in v0.24.0
func NewMeteredNeverType(gauge common.MemoryGauge) NeverType
func NewNeverType ¶ added in v0.24.0
func NewNeverType() NeverType
type NumberType ¶ added in v0.7.0
type NumberType struct{}
func NewMeteredNumberType ¶ added in v0.24.0
func NewMeteredNumberType(gauge common.MemoryGauge) NumberType
func NewNumberType ¶ added in v0.24.0
func NewNumberType() NumberType
func (NumberType) ID ¶ added in v0.7.0
func (NumberType) ID() string
type NumberValue ¶ added in v0.5.0
type Optional ¶
type Optional struct {
Value Value
}
func NewMeteredOptional ¶ added in v0.24.0
func NewMeteredOptional(memoryGauge common.MemoryGauge, value Value) Optional
func NewOptional ¶
func (Optional) MeteredType ¶ added in v0.24.0
func (o Optional) MeteredType(gauge common.MemoryGauge) Type
type OptionalType ¶
type OptionalType struct {
Type Type
}
func NewMeteredOptionalType ¶ added in v0.24.0
func NewMeteredOptionalType(gauge common.MemoryGauge, typ Type) OptionalType
func NewOptionalType ¶ added in v0.24.0
func NewOptionalType(typ Type) OptionalType
func (OptionalType) ID ¶
func (t OptionalType) ID() string
type Path ¶ added in v0.10.0
func NewMeteredPath ¶ added in v0.24.0
func NewMeteredPath(gauge common.MemoryGauge, domain, identifier string) Path
func (Path) MeteredType ¶ added in v0.24.0
func (Path) MeteredType(gauge common.MemoryGauge) Type
type PathType ¶ added in v0.7.0
type PathType struct{}
func NewMeteredPathType ¶ added in v0.24.0
func NewMeteredPathType( gauge common.MemoryGauge, ) PathType
func NewPathType ¶ added in v0.24.0
func NewPathType() PathType
type PrivatePathType ¶ added in v0.11.0
type PrivatePathType struct{}
func NewMeteredPrivatePathType ¶ added in v0.24.0
func NewMeteredPrivatePathType( gauge common.MemoryGauge, ) PrivatePathType
func NewPrivatePathType ¶ added in v0.24.0
func NewPrivatePathType() PrivatePathType
func (PrivatePathType) ID ¶ added in v0.11.0
func (PrivatePathType) ID() string
type PublicAccountContractsType ¶ added in v0.24.0
type PublicAccountContractsType struct{}
PublicAccountContractsType
func NewMeteredPublicAccountContractsType ¶ added in v0.24.0
func NewMeteredPublicAccountContractsType( gauge common.MemoryGauge, ) PublicAccountContractsType
func NewPublicAccountContractsType ¶ added in v0.24.0
func NewPublicAccountContractsType() PublicAccountContractsType
func (PublicAccountContractsType) ID ¶ added in v0.24.0
func (PublicAccountContractsType) ID() string
type PublicAccountKeysType ¶ added in v0.24.0
type PublicAccountKeysType struct{}
PublicAccountContractsType
func NewMeteredPublicAccountKeysType ¶ added in v0.24.0
func NewMeteredPublicAccountKeysType( gauge common.MemoryGauge, ) PublicAccountKeysType
func NewPublicAccountKeysType ¶ added in v0.24.0
func NewPublicAccountKeysType() PublicAccountKeysType
func (PublicAccountKeysType) ID ¶ added in v0.24.0
func (PublicAccountKeysType) ID() string
type PublicAccountType ¶ added in v0.7.0
type PublicAccountType struct{}
PublicAccountType
func NewMeteredPublicAccountType ¶ added in v0.24.0
func NewMeteredPublicAccountType( gauge common.MemoryGauge, ) PublicAccountType
func NewPublicAccountType ¶ added in v0.24.0
func NewPublicAccountType() PublicAccountType
func (PublicAccountType) ID ¶ added in v0.7.0
func (PublicAccountType) ID() string
type PublicPathType ¶ added in v0.11.0
type PublicPathType struct{}
func NewMeteredPublicPathType ¶ added in v0.24.0
func NewMeteredPublicPathType( gauge common.MemoryGauge, ) PublicPathType
func NewPublicPathType ¶ added in v0.24.0
func NewPublicPathType() PublicPathType
func (PublicPathType) ID ¶ added in v0.11.0
func (PublicPathType) ID() string
type ReferenceType ¶ added in v0.7.0
func NewMeteredReferenceType ¶ added in v0.24.0
func NewMeteredReferenceType( gauge common.MemoryGauge, authorized bool, typ Type, ) ReferenceType
func NewReferenceType ¶ added in v0.24.0
func NewReferenceType( authorized bool, typ Type, ) ReferenceType
func (ReferenceType) ID ¶ added in v0.7.0
func (t ReferenceType) ID() string
type Resource ¶
type Resource struct { ResourceType *ResourceType Fields []Value }
func NewMeteredResource ¶ added in v0.24.0
func NewResource ¶
func (Resource) MeteredType ¶ added in v0.24.0
func (v Resource) MeteredType(_ common.MemoryGauge) Type
func (Resource) WithType ¶
func (v Resource) WithType(typ *ResourceType) Resource
type ResourceInterfaceType ¶ added in v0.7.0
type ResourceInterfaceType struct { Location common.Location QualifiedIdentifier string Fields []Field Initializers [][]Parameter }
func NewMeteredResourceInterfaceType ¶ added in v0.24.0
func NewMeteredResourceInterfaceType( gauge common.MemoryGauge, location common.Location, qualifiedIdentifer string, fields []Field, initializers [][]Parameter, ) *ResourceInterfaceType
func NewResourceInterfaceType ¶ added in v0.24.0
func (*ResourceInterfaceType) ID ¶ added in v0.7.0
func (t *ResourceInterfaceType) ID() string
func (*ResourceInterfaceType) InterfaceFields ¶ added in v0.7.0
func (t *ResourceInterfaceType) InterfaceFields() []Field
func (*ResourceInterfaceType) InterfaceInitializers ¶ added in v0.7.0
func (t *ResourceInterfaceType) InterfaceInitializers() [][]Parameter
func (*ResourceInterfaceType) InterfaceTypeLocation ¶ added in v0.12.0
func (t *ResourceInterfaceType) InterfaceTypeLocation() common.Location
func (*ResourceInterfaceType) InterfaceTypeQualifiedIdentifier ¶ added in v0.12.0
func (t *ResourceInterfaceType) InterfaceTypeQualifiedIdentifier() string
type ResourceType ¶
type ResourceType struct { Location common.Location QualifiedIdentifier string Fields []Field Initializers [][]Parameter }
func NewMeteredResourceType ¶ added in v0.24.0
func NewMeteredResourceType( gauge common.MemoryGauge, location common.Location, qualifiedIdentifer string, fields []Field, initializers [][]Parameter, ) *ResourceType
func NewResourceType ¶ added in v0.24.0
func (*ResourceType) CompositeFields ¶
func (t *ResourceType) CompositeFields() []Field
func (*ResourceType) CompositeInitializers ¶
func (t *ResourceType) CompositeInitializers() [][]Parameter
func (*ResourceType) CompositeTypeLocation ¶ added in v0.12.0
func (t *ResourceType) CompositeTypeLocation() common.Location
func (*ResourceType) CompositeTypeQualifiedIdentifier ¶ added in v0.12.0
func (t *ResourceType) CompositeTypeQualifiedIdentifier() string
func (*ResourceType) ID ¶
func (t *ResourceType) ID() string
type RestrictedType ¶ added in v0.7.0
type RestrictedType struct { Type Type Restrictions []Type // contains filtered or unexported fields }
func NewMeteredRestrictedType ¶ added in v0.24.0
func NewMeteredRestrictedType( gauge common.MemoryGauge, typeID string, typ Type, restrictions []Type, ) *RestrictedType
func NewRestrictedType ¶ added in v0.24.0
func NewRestrictedType( typeID string, typ Type, restrictions []Type, ) *RestrictedType
func (*RestrictedType) ID ¶ added in v0.7.0
func (t *RestrictedType) ID() string
func (*RestrictedType) WithID ¶ added in v0.7.0
func (t *RestrictedType) WithID(id string) *RestrictedType
type SignedFixedPointType ¶ added in v0.7.0
type SignedFixedPointType struct{}
func NewMeteredSignedFixedPointType ¶ added in v0.24.0
func NewMeteredSignedFixedPointType(gauge common.MemoryGauge) SignedFixedPointType
func NewSignedFixedPointType ¶ added in v0.24.0
func NewSignedFixedPointType() SignedFixedPointType
func (SignedFixedPointType) ID ¶ added in v0.7.0
func (SignedFixedPointType) ID() string
type SignedIntegerType ¶ added in v0.7.0
type SignedIntegerType struct{}
func NewMeteredSignedIntegerType ¶ added in v0.24.0
func NewMeteredSignedIntegerType(gauge common.MemoryGauge) SignedIntegerType
func NewSignedIntegerType ¶ added in v0.24.0
func NewSignedIntegerType() SignedIntegerType
func (SignedIntegerType) ID ¶ added in v0.7.0
func (SignedIntegerType) ID() string
type SignedNumberType ¶ added in v0.7.0
type SignedNumberType struct{}
func NewMeteredSignedNumberType ¶ added in v0.24.0
func NewMeteredSignedNumberType(gauge common.MemoryGauge) SignedNumberType
func NewSignedNumberType ¶ added in v0.24.0
func NewSignedNumberType() SignedNumberType
func (SignedNumberType) ID ¶ added in v0.7.0
func (SignedNumberType) ID() string
type StoragePathType ¶ added in v0.11.0
type StoragePathType struct{}
func NewMeteredStoragePathType ¶ added in v0.24.0
func NewMeteredStoragePathType( gauge common.MemoryGauge, ) StoragePathType
func NewStoragePathType ¶ added in v0.24.0
func NewStoragePathType() StoragePathType
func (StoragePathType) ID ¶ added in v0.11.0
func (StoragePathType) ID() string
type String ¶
type String string
func NewMeteredString ¶ added in v0.24.0
func NewMeteredString( memoryGauge common.MemoryGauge, memoryUsage common.MemoryUsage, stringConstructor func() string, ) (String, error)
func (String) MeteredType ¶ added in v0.24.0
func (String) MeteredType(gauge common.MemoryGauge) Type
type StringType ¶
type StringType struct{}
func NewMeteredStringType ¶ added in v0.24.0
func NewMeteredStringType(gauge common.MemoryGauge) StringType
func NewStringType ¶ added in v0.24.0
func NewStringType() StringType
func (StringType) ID ¶
func (StringType) ID() string
type Struct ¶
type Struct struct { StructType *StructType Fields []Value }
func NewMeteredStruct ¶ added in v0.24.0
func (Struct) MeteredType ¶ added in v0.24.0
func (v Struct) MeteredType(_ common.MemoryGauge) Type
func (Struct) WithType ¶
func (v Struct) WithType(typ *StructType) Struct
type StructInterfaceType ¶ added in v0.7.0
type StructInterfaceType struct { Location common.Location QualifiedIdentifier string Fields []Field Initializers [][]Parameter }
func NewMeteredStructInterfaceType ¶ added in v0.24.0
func NewMeteredStructInterfaceType( gauge common.MemoryGauge, location common.Location, qualifiedIdentifer string, fields []Field, initializers [][]Parameter, ) *StructInterfaceType
func NewStructInterfaceType ¶ added in v0.24.0
func (*StructInterfaceType) ID ¶ added in v0.7.0
func (t *StructInterfaceType) ID() string
func (*StructInterfaceType) InterfaceFields ¶ added in v0.7.0
func (t *StructInterfaceType) InterfaceFields() []Field
func (*StructInterfaceType) InterfaceInitializers ¶ added in v0.7.0
func (t *StructInterfaceType) InterfaceInitializers() [][]Parameter
func (*StructInterfaceType) InterfaceTypeLocation ¶ added in v0.12.0
func (t *StructInterfaceType) InterfaceTypeLocation() common.Location
func (*StructInterfaceType) InterfaceTypeQualifiedIdentifier ¶ added in v0.12.0
func (t *StructInterfaceType) InterfaceTypeQualifiedIdentifier() string
type StructType ¶
type StructType struct { Location common.Location QualifiedIdentifier string Fields []Field Initializers [][]Parameter }
func NewMeteredStructType ¶ added in v0.24.0
func NewMeteredStructType( gauge common.MemoryGauge, location common.Location, qualifiedIdentifer string, fields []Field, initializers [][]Parameter, ) *StructType
func NewStructType ¶ added in v0.24.0
func (*StructType) CompositeFields ¶
func (t *StructType) CompositeFields() []Field
func (*StructType) CompositeInitializers ¶
func (t *StructType) CompositeInitializers() [][]Parameter
func (*StructType) CompositeTypeLocation ¶ added in v0.12.0
func (t *StructType) CompositeTypeLocation() common.Location
func (*StructType) CompositeTypeQualifiedIdentifier ¶ added in v0.12.0
func (t *StructType) CompositeTypeQualifiedIdentifier() string
func (*StructType) ID ¶
func (t *StructType) ID() string
type TypeValue ¶ added in v0.10.0
type TypeValue struct {
StaticType Type
}
func NewMeteredTypeValue ¶ added in v0.24.0
func NewMeteredTypeValue(gauge common.MemoryGauge, staticType Type) TypeValue
func NewTypeValue ¶ added in v0.24.0
func (TypeValue) MeteredType ¶ added in v0.24.0
func (TypeValue) MeteredType(gauge common.MemoryGauge) Type
type UFix64 ¶
type UFix64 uint64
func NewMeteredUFix64 ¶ added in v0.24.0
func NewUFix64FromParts ¶ added in v0.5.0
func (UFix64) MeteredType ¶ added in v0.24.0
func (UFix64) MeteredType(gauge common.MemoryGauge) Type
func (UFix64) ToBigEndianBytes ¶ added in v0.5.0
type UFix64Type ¶
type UFix64Type struct{}
func NewMeteredUFix64Type ¶ added in v0.24.0
func NewMeteredUFix64Type(gauge common.MemoryGauge) UFix64Type
func NewUFix64Type ¶ added in v0.24.0
func NewUFix64Type() UFix64Type
func (UFix64Type) ID ¶
func (UFix64Type) ID() string
type UInt ¶
func NewMeteredUIntFromBig ¶ added in v0.24.0
func NewMeteredUIntFromBig( memoryGauge common.MemoryGauge, memoryUsage common.MemoryUsage, bigIntConstructor func() *big.Int, ) (UInt, error)
func (UInt) MeteredType ¶ added in v0.24.0
func (UInt) MeteredType(gauge common.MemoryGauge) Type
func (UInt) ToBigEndianBytes ¶ added in v0.5.0
type UInt128 ¶
func NewMeteredUInt128FromBig ¶ added in v0.24.0
func NewUInt128 ¶
func (UInt128) MeteredType ¶ added in v0.24.0
func (UInt128) MeteredType(gauge common.MemoryGauge) Type
func (UInt128) ToBigEndianBytes ¶ added in v0.5.0
type UInt128Type ¶
type UInt128Type struct{}
func NewMeteredUInt128Type ¶ added in v0.24.0
func NewMeteredUInt128Type(gauge common.MemoryGauge) UInt128Type
func NewUInt128Type ¶ added in v0.24.0
func NewUInt128Type() UInt128Type
func (UInt128Type) ID ¶
func (UInt128Type) ID() string
type UInt16 ¶
type UInt16 uint16
func NewMeteredUInt16 ¶ added in v0.24.0
func NewMeteredUInt16(gauge common.MemoryGauge, v uint16) UInt16
func (UInt16) MeteredType ¶ added in v0.24.0
func (UInt16) MeteredType(gauge common.MemoryGauge) Type
func (UInt16) ToBigEndianBytes ¶ added in v0.5.0
type UInt16Type ¶
type UInt16Type struct{}
func NewMeteredUInt16Type ¶ added in v0.24.0
func NewMeteredUInt16Type(gauge common.MemoryGauge) UInt16Type
func NewUInt16Type ¶ added in v0.24.0
func NewUInt16Type() UInt16Type
func (UInt16Type) ID ¶
func (UInt16Type) ID() string
type UInt256 ¶
func NewMeteredUInt256FromBig ¶ added in v0.24.0
func NewUInt256 ¶
func (UInt256) MeteredType ¶ added in v0.24.0
func (UInt256) MeteredType(gauge common.MemoryGauge) Type
func (UInt256) ToBigEndianBytes ¶ added in v0.5.0
type UInt256Type ¶
type UInt256Type struct{}
func NewMeteredUInt256Type ¶ added in v0.24.0
func NewMeteredUInt256Type(gauge common.MemoryGauge) UInt256Type
func NewUInt256Type ¶ added in v0.24.0
func NewUInt256Type() UInt256Type
func (UInt256Type) ID ¶
func (UInt256Type) ID() string
type UInt32 ¶
type UInt32 uint32
func NewMeteredUInt32 ¶ added in v0.24.0
func NewMeteredUInt32(gauge common.MemoryGauge, v uint32) UInt32
func (UInt32) MeteredType ¶ added in v0.24.0
func (UInt32) MeteredType(gauge common.MemoryGauge) Type
func (UInt32) ToBigEndianBytes ¶ added in v0.5.0
type UInt32Type ¶
type UInt32Type struct{}
func NewMeteredUInt32Type ¶ added in v0.24.0
func NewMeteredUInt32Type(gauge common.MemoryGauge) UInt32Type
func NewUInt32Type ¶ added in v0.24.0
func NewUInt32Type() UInt32Type
func (UInt32Type) ID ¶
func (UInt32Type) ID() string
type UInt64 ¶
type UInt64 uint64
func NewMeteredUInt64 ¶ added in v0.24.0
func NewMeteredUInt64(gauge common.MemoryGauge, v uint64) UInt64
func (UInt64) MeteredType ¶ added in v0.24.0
func (UInt64) MeteredType(gauge common.MemoryGauge) Type
func (UInt64) ToBigEndianBytes ¶ added in v0.5.0
type UInt64Type ¶
type UInt64Type struct{}
func NewMeteredUInt64Type ¶ added in v0.24.0
func NewMeteredUInt64Type(gauge common.MemoryGauge) UInt64Type
func NewUInt64Type ¶ added in v0.24.0
func NewUInt64Type() UInt64Type
func (UInt64Type) ID ¶
func (UInt64Type) ID() string
type UInt8 ¶
type UInt8 uint8
func NewMeteredUInt8 ¶ added in v0.24.0
func NewMeteredUInt8(gauge common.MemoryGauge, v uint8) UInt8
func (UInt8) MeteredType ¶ added in v0.24.0
func (UInt8) MeteredType(gauge common.MemoryGauge) Type
func (UInt8) ToBigEndianBytes ¶ added in v0.5.0
type UInt8Type ¶
type UInt8Type struct{}
func NewMeteredUInt8Type ¶ added in v0.24.0
func NewMeteredUInt8Type(gauge common.MemoryGauge) UInt8Type
func NewUInt8Type ¶ added in v0.24.0
func NewUInt8Type() UInt8Type
type UIntType ¶
type UIntType struct{}
func NewMeteredUIntType ¶ added in v0.24.0
func NewMeteredUIntType(gauge common.MemoryGauge) UIntType
func NewUIntType ¶ added in v0.24.0
func NewUIntType() UIntType
type Value ¶
type Value interface { Type() Type MeteredType(gauge common.MemoryGauge) Type ToGoValue() interface{} fmt.Stringer // 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 NewMeteredVariableSizedArrayType ¶ added in v0.24.0
func NewMeteredVariableSizedArrayType( gauge common.MemoryGauge, elementType Type, ) VariableSizedArrayType
func NewVariableSizedArrayType ¶ added in v0.24.0
func NewVariableSizedArrayType( elementType Type, ) VariableSizedArrayType
func (VariableSizedArrayType) Element ¶
func (t VariableSizedArrayType) Element() Type
func (VariableSizedArrayType) ID ¶
func (t VariableSizedArrayType) ID() string
type Void ¶
type Void struct{}
func NewMeteredVoid ¶ added in v0.24.0
func NewMeteredVoid(memoryGauge common.MemoryGauge) Void
func (Void) MeteredType ¶ added in v0.24.0
func (Void) MeteredType(gauge common.MemoryGauge) Type
type VoidType ¶
type VoidType struct{}
func NewMeteredVoidType ¶ added in v0.24.0
func NewMeteredVoidType(gauge common.MemoryGauge) VoidType
func NewVoidType ¶ added in v0.24.0
func NewVoidType() VoidType
type Word16 ¶
type Word16 uint16
func NewMeteredWord16 ¶ added in v0.24.0
func NewMeteredWord16(gauge common.MemoryGauge, v uint16) Word16
func (Word16) MeteredType ¶ added in v0.24.0
func (Word16) MeteredType(gauge common.MemoryGauge) Type
func (Word16) ToBigEndianBytes ¶ added in v0.5.0
type Word16Type ¶
type Word16Type struct{}
func NewMeteredWord16Type ¶ added in v0.24.0
func NewMeteredWord16Type(gauge common.MemoryGauge) Word16Type
func NewWord16Type ¶ added in v0.24.0
func NewWord16Type() Word16Type
func (Word16Type) ID ¶
func (Word16Type) ID() string
type Word32 ¶
type Word32 uint32
func NewMeteredWord32 ¶ added in v0.24.0
func NewMeteredWord32(gauge common.MemoryGauge, v uint32) Word32
func (Word32) MeteredType ¶ added in v0.24.0
func (Word32) MeteredType(gauge common.MemoryGauge) Type
func (Word32) ToBigEndianBytes ¶ added in v0.5.0
type Word32Type ¶
type Word32Type struct{}
func NewMeteredWord32Type ¶ added in v0.24.0
func NewMeteredWord32Type(gauge common.MemoryGauge) Word32Type
func NewWord32Type ¶ added in v0.24.0
func NewWord32Type() Word32Type
func (Word32Type) ID ¶
func (Word32Type) ID() string
type Word64 ¶
type Word64 uint64
func NewMeteredWord64 ¶ added in v0.24.0
func NewMeteredWord64(gauge common.MemoryGauge, v uint64) Word64
func (Word64) MeteredType ¶ added in v0.24.0
func (Word64) MeteredType(gauge common.MemoryGauge) Type
func (Word64) ToBigEndianBytes ¶ added in v0.5.0
type Word64Type ¶
type Word64Type struct{}
func NewMeteredWord64Type ¶ added in v0.24.0
func NewMeteredWord64Type(gauge common.MemoryGauge) Word64Type
func NewWord64Type ¶ added in v0.24.0
func NewWord64Type() Word64Type
func (Word64Type) ID ¶
func (Word64Type) ID() string
type Word8 ¶
type Word8 uint8
func NewMeteredWord8 ¶ added in v0.24.0
func NewMeteredWord8(gauge common.MemoryGauge, v uint8) Word8
func (Word8) MeteredType ¶ added in v0.24.0
func (Word8) MeteredType(gauge common.MemoryGauge) Type
func (Word8) ToBigEndianBytes ¶ added in v0.5.0
type Word8Type ¶
type Word8Type struct{}
func NewMeteredWord8Type ¶ added in v0.24.0
func NewMeteredWord8Type(gauge common.MemoryGauge) Word8Type
func NewWord8Type ¶ added in v0.24.0
func NewWord8Type() Word8Type
Directories ¶
Path | Synopsis |
---|---|
encoding
|
|
json
Package json implements the JSON-Cadence specification: https://github.com/onflow/flow/blob/master/docs/json-cadence-spec.md
|
Package json implements the JSON-Cadence specification: https://github.com/onflow/flow/blob/master/docs/json-cadence-spec.md |
Package fixedpoint provides constants, as well as formatting, conversion, and checking functionality for Cadence fixed-point number types
|
Package fixedpoint provides constants, as well as formatting, conversion, and checking functionality for Cadence fixed-point number types |
languageserver
module
|
|
ast
Package ast contains all AST nodes for Cadence.
|
Package ast contains all AST nodes for Cadence. |
cmd/minifier
* Cadence - The resource-oriented smart contract programming language * * Copyright 2019-2022 Dapper Labs, Inc.
|
* Cadence - The resource-oriented smart contract programming language * * Copyright 2019-2022 Dapper Labs, Inc. |
compiler/wasm
WebAssembly (https://webassembly.org/) is an open standard for portable executable programs.
|
WebAssembly (https://webassembly.org/) is an open standard for portable executable programs. |
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
|
|
utils
|
|
Click to show internal directories.
Click to hide internal directories.