Documentation ¶
Index ¶
- Constants
- Variables
- func CastToArray(value Value) ([]any, 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 DecodeFields(hasFields HasFields, s interface{}) error
- func Fuzz(data []byte) int
- func GetFieldsMappedByName(v HasFields) map[string]Value
- func ParseUFix64(s string) (uint64, error)
- type Address
- type Array
- type ArrayType
- type Attachment
- func (v Attachment) GetFieldValues() []Value
- func (v Attachment) GetFields() []Field
- func (v Attachment) MeteredType(_ common.MemoryGauge) Type
- func (v Attachment) String() string
- func (v Attachment) ToGoValue() any
- func (v Attachment) Type() Type
- func (v Attachment) WithType(typ *AttachmentType) Attachment
- type AttachmentType
- func (t *AttachmentType) Base() Type
- func (t *AttachmentType) CompositeFields() []Field
- func (t *AttachmentType) CompositeInitializers() [][]Parameter
- func (t *AttachmentType) CompositeTypeLocation() common.Location
- func (t *AttachmentType) CompositeTypeQualifiedIdentifier() string
- func (t *AttachmentType) Equal(other Type) bool
- func (t *AttachmentType) ID() string
- func (t *AttachmentType) SetCompositeFields(fields []Field)
- type Authorization
- type Bool
- type Bytes
- type BytesType
- type Capability
- type CapabilityType
- type Character
- type CompositeType
- type ConstantSizedArrayType
- type Contract
- type ContractInterfaceType
- func (t *ContractInterfaceType) Equal(other Type) bool
- 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
- func (t *ContractInterfaceType) SetInterfaceFields(fields []Field)
- type ContractType
- func (t *ContractType) CompositeFields() []Field
- func (t *ContractType) CompositeInitializers() [][]Parameter
- func (t *ContractType) CompositeTypeLocation() common.Location
- func (t *ContractType) CompositeTypeQualifiedIdentifier() string
- func (t *ContractType) Equal(other Type) bool
- func (t *ContractType) ID() string
- func (t *ContractType) SetCompositeFields(fields []Field)
- type Dictionary
- type DictionaryType
- type EntitlementMapAuthorization
- type EntitlementSetAuthorization
- type EntitlementSetKind
- type Enum
- type EnumType
- func (t *EnumType) CompositeFields() []Field
- func (t *EnumType) CompositeInitializers() [][]Parameter
- func (t *EnumType) CompositeTypeLocation() common.Location
- func (t *EnumType) CompositeTypeQualifiedIdentifier() string
- func (t *EnumType) Equal(other Type) bool
- func (t *EnumType) ID() string
- func (t *EnumType) SetCompositeFields(fields []Field)
- type Event
- type EventType
- func (t *EventType) CompositeFields() []Field
- func (t *EventType) CompositeInitializers() [][]Parameter
- func (t *EventType) CompositeTypeLocation() common.Location
- func (t *EventType) CompositeTypeQualifiedIdentifier() string
- func (t *EventType) Equal(other Type) bool
- func (t *EventType) ID() string
- func (t *EventType) SetCompositeFields(fields []Field)
- type Field
- type Fix64
- func NewFix64(s string) (Fix64, error)
- func NewFix64FromParts(negative bool, integer int, fraction uint) (Fix64, error)
- func NewMeteredFix64(gauge common.MemoryGauge, constructor func() (string, error)) (Fix64, error)
- func NewMeteredFix64FromRawFixedPointNumber(gauge common.MemoryGauge, n int64) (Fix64, error)
- type Function
- type FunctionPurity
- type FunctionType
- type HasFields
- type InclusiveRange
- type InclusiveRangeType
- type Int
- type Int128
- type Int16
- type Int256
- type Int32
- type Int64
- type Int8
- type InterfaceType
- type IntersectionSet
- type IntersectionType
- type KeyValuePair
- type NumberValue
- type Optional
- type OptionalType
- type Parameter
- type Path
- type PrimitiveType
- type ReferenceType
- type Resource
- type ResourceInterfaceType
- func (t *ResourceInterfaceType) Equal(other Type) bool
- 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
- func (t *ResourceInterfaceType) SetInterfaceFields(fields []Field)
- type ResourceType
- func (t *ResourceType) CompositeFields() []Field
- func (t *ResourceType) CompositeInitializers() [][]Parameter
- func (t *ResourceType) CompositeTypeLocation() common.Location
- func (t *ResourceType) CompositeTypeQualifiedIdentifier() string
- func (t *ResourceType) Equal(other Type) bool
- func (t *ResourceType) ID() string
- func (t *ResourceType) SetCompositeFields(fields []Field)
- type String
- type Struct
- type StructInterfaceType
- func (t *StructInterfaceType) Equal(other Type) bool
- 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
- func (t *StructInterfaceType) SetInterfaceFields(fields []Field)
- type StructType
- func (t *StructType) CompositeFields() []Field
- func (t *StructType) CompositeInitializers() [][]Parameter
- func (t *StructType) CompositeTypeLocation() common.Location
- func (t *StructType) CompositeTypeQualifiedIdentifier() string
- func (t *StructType) Equal(other Type) bool
- func (t *StructType) ID() string
- func (t *StructType) SetCompositeFields(fields []Field)
- type Type
- type TypeID
- type TypeParameter
- type TypeValue
- type UFix64
- func NewMeteredUFix64(gauge common.MemoryGauge, constructor func() (string, error)) (UFix64, error)
- func NewMeteredUFix64FromRawFixedPointNumber(gauge common.MemoryGauge, n uint64) (UFix64, error)
- func NewUFix64(s string) (UFix64, error)
- func NewUFix64FromParts(integer int, fraction uint) (UFix64, error)
- type UInt
- type UInt128
- type UInt16
- type UInt256
- type UInt32
- type UInt64
- type UInt8
- type Unauthorized
- type Value
- type VariableSizedArrayType
- type Void
- type Word128
- type Word16
- type Word256
- type Word32
- type Word64
- type Word8
Constants ¶
View Source
const AddressLength = 8
View Source
const Conjunction = sema.Conjunction
View Source
const Disjunction = sema.Disjunction
View Source
const Version = "v1.0.0-preview.11"
Variables ¶
View Source
var AccountCapabilitiesType = PrimitiveType(interpreter.PrimitiveStaticTypeAccountCapabilities)
View Source
var AccountCapabilityControllerType = PrimitiveType(interpreter.PrimitiveStaticTypeAccountCapabilityController)
View Source
var AccountMappingType = PrimitiveType(interpreter.PrimitiveStaticTypeAccountMapping)
View Source
var AccountType = PrimitiveType(interpreter.PrimitiveStaticTypeAccount)
View Source
var Account_AccountCapabilitiesType = PrimitiveType(interpreter.PrimitiveStaticTypeAccount_AccountCapabilities)
View Source
var Account_CapabilitiesType = PrimitiveType(interpreter.PrimitiveStaticTypeAccount_Capabilities)
View Source
var Account_ContractsType = PrimitiveType(interpreter.PrimitiveStaticTypeAccount_Contracts)
View Source
var Account_InboxType = PrimitiveType(interpreter.PrimitiveStaticTypeAccount_Inbox)
View Source
var Account_KeysType = PrimitiveType(interpreter.PrimitiveStaticTypeAccount_Keys)
View Source
var Account_StorageCapabilitiesType = PrimitiveType(interpreter.PrimitiveStaticTypeAccount_StorageCapabilities)
View Source
var Account_StorageType = PrimitiveType(interpreter.PrimitiveStaticTypeAccount_Storage)
View Source
var AddContractType = PrimitiveType(interpreter.PrimitiveStaticTypeAddContract)
View Source
var AddKeyType = PrimitiveType(interpreter.PrimitiveStaticTypeAddKey)
View Source
var AddressType = PrimitiveType(interpreter.PrimitiveStaticTypeAddress)
View Source
var AnyResourceAttachmentType = PrimitiveType(interpreter.PrimitiveStaticTypeAnyResourceAttachment)
View Source
var AnyResourceType = PrimitiveType(interpreter.PrimitiveStaticTypeAnyResource)
View Source
var AnyStructAttachmentType = PrimitiveType(interpreter.PrimitiveStaticTypeAnyStructAttachment)
View Source
var AnyStructType = PrimitiveType(interpreter.PrimitiveStaticTypeAnyStruct)
View Source
var AnyType = PrimitiveType(interpreter.PrimitiveStaticTypeAny)
View Source
var BlockType = PrimitiveType(interpreter.PrimitiveStaticTypeBlock)
View Source
var BoolType = PrimitiveType(interpreter.PrimitiveStaticTypeBool)
View Source
var BorrowValueType = PrimitiveType(interpreter.PrimitiveStaticTypeBorrowValue)
View Source
var CapabilitiesMappingType = PrimitiveType(interpreter.PrimitiveStaticTypeCapabilitiesMapping)
View Source
var CapabilitiesType = PrimitiveType(interpreter.PrimitiveStaticTypeCapabilities)
View Source
var CapabilityPathType = PrimitiveType(interpreter.PrimitiveStaticTypeCapabilityPath)
View Source
var CharacterType = PrimitiveType(interpreter.PrimitiveStaticTypeCharacter)
View Source
var ClaimInboxCapabilityType = PrimitiveType(interpreter.PrimitiveStaticTypeClaimInboxCapability)
View Source
var ContractsType = PrimitiveType(interpreter.PrimitiveStaticTypeContracts)
View Source
var CopyValueType = PrimitiveType(interpreter.PrimitiveStaticTypeCopyValue)
View Source
var DeployedContractType = PrimitiveType(interpreter.PrimitiveStaticTypeDeployedContract)
View Source
var Fix64Type = PrimitiveType(interpreter.PrimitiveStaticTypeFix64)
View Source
var FixedPointType = PrimitiveType(interpreter.PrimitiveStaticTypeFixedPoint)
View Source
var FixedSizeUnsignedIntegerType = PrimitiveType(interpreter.PrimitiveStaticTypeFixedSizeUnsignedInteger)
View Source
var GetAccountCapabilityControllerType = PrimitiveType(interpreter.PrimitiveStaticTypeGetAccountCapabilityController)
View Source
var GetStorageCapabilityControllerType = PrimitiveType(interpreter.PrimitiveStaticTypeGetStorageCapabilityController)
View Source
var HashableStructType = PrimitiveType(interpreter.PrimitiveStaticTypeHashableStruct)
View Source
var IdentityType = PrimitiveType(interpreter.PrimitiveStaticTypeIdentity)
View Source
var InboxType = PrimitiveType(interpreter.PrimitiveStaticTypeInbox)
View Source
var InsertType = PrimitiveType(interpreter.PrimitiveStaticTypeInsert)
View Source
var Int128MemoryUsage = common.NewCadenceBigIntMemoryUsage(16)
View Source
var Int128Type = PrimitiveType(interpreter.PrimitiveStaticTypeInt128)
View Source
var Int16MemoryUsage = common.NewCadenceNumberMemoryUsage(int(unsafe.Sizeof(Int16(0))))
View Source
var Int16Type = PrimitiveType(interpreter.PrimitiveStaticTypeInt16)
View Source
var Int256MemoryUsage = common.NewCadenceBigIntMemoryUsage(32)
View Source
var Int256Type = PrimitiveType(interpreter.PrimitiveStaticTypeInt256)
View Source
var Int32MemoryUsage = common.NewCadenceNumberMemoryUsage(int(unsafe.Sizeof(Int32(0))))
View Source
var Int32Type = PrimitiveType(interpreter.PrimitiveStaticTypeInt32)
View Source
var Int64MemoryUsage = common.NewCadenceNumberMemoryUsage(int(unsafe.Sizeof(Int64(0))))
View Source
var Int64Type = PrimitiveType(interpreter.PrimitiveStaticTypeInt64)
View Source
var Int8MemoryUsage = common.NewCadenceNumberMemoryUsage(int(unsafe.Sizeof(Int8(0))))
View Source
var Int8Type = PrimitiveType(interpreter.PrimitiveStaticTypeInt8)
View Source
var IntType = PrimitiveType(interpreter.PrimitiveStaticTypeInt)
View Source
var IntegerType = PrimitiveType(interpreter.PrimitiveStaticTypeInteger)
View Source
var IssueAccountCapabilityControllerType = PrimitiveType(interpreter.PrimitiveStaticTypeIssueAccountCapabilityController)
View Source
var IssueStorageCapabilityControllerType = PrimitiveType(interpreter.PrimitiveStaticTypeIssueStorageCapabilityController)
View Source
var KeysType = PrimitiveType(interpreter.PrimitiveStaticTypeKeys)
View Source
var LoadValueType = PrimitiveType(interpreter.PrimitiveStaticTypeLoadValue)
View Source
var MetaType = PrimitiveType(interpreter.PrimitiveStaticTypeMetaType)
View Source
var MutateType = PrimitiveType(interpreter.PrimitiveStaticTypeMutate)
View Source
var NeverType = PrimitiveType(interpreter.PrimitiveStaticTypeNever)
View Source
var NumberType = PrimitiveType(interpreter.PrimitiveStaticTypeNumber)
View Source
var PathType = PrimitiveType(interpreter.PrimitiveStaticTypePath)
View Source
var PrivatePathType = PrimitiveType(interpreter.PrimitiveStaticTypePrivatePath)
View Source
var PublicPathType = PrimitiveType(interpreter.PrimitiveStaticTypePublicPath)
View Source
var PublishCapabilityType = PrimitiveType(interpreter.PrimitiveStaticTypePublishCapability)
View Source
var PublishInboxCapabilityType = PrimitiveType(interpreter.PrimitiveStaticTypePublishInboxCapability)
View Source
var RemoveContractType = PrimitiveType(interpreter.PrimitiveStaticTypeRemoveContract)
View Source
var RemoveType = PrimitiveType(interpreter.PrimitiveStaticTypeRemove)
View Source
var RevokeKeyType = PrimitiveType(interpreter.PrimitiveStaticTypeRevokeKey)
View Source
var SaveValueType = PrimitiveType(interpreter.PrimitiveStaticTypeSaveValue)
View Source
var SignedFixedPointType = PrimitiveType(interpreter.PrimitiveStaticTypeSignedFixedPoint)
View Source
var SignedIntegerType = PrimitiveType(interpreter.PrimitiveStaticTypeSignedInteger)
View Source
var SignedNumberType = PrimitiveType(interpreter.PrimitiveStaticTypeSignedNumber)
View Source
var StorageCapabilitiesType = PrimitiveType(interpreter.PrimitiveStaticTypeStorageCapabilities)
View Source
var StorageCapabilityControllerType = PrimitiveType(interpreter.PrimitiveStaticTypeStorageCapabilityController)
View Source
var StoragePathType = PrimitiveType(interpreter.PrimitiveStaticTypeStoragePath)
View Source
var StorageType = PrimitiveType(interpreter.PrimitiveStaticTypeStorage)
View Source
var StringType = PrimitiveType(interpreter.PrimitiveStaticTypeString)
View Source
var TheBytesType = BytesType{}
View Source
var UFix64Type = PrimitiveType(interpreter.PrimitiveStaticTypeUFix64)
View Source
var UInt128MemoryUsage = common.NewCadenceBigIntMemoryUsage(16)
View Source
var UInt128Type = PrimitiveType(interpreter.PrimitiveStaticTypeUInt128)
View Source
var UInt16MemoryUsage = common.NewCadenceNumberMemoryUsage(int(unsafe.Sizeof(UInt16(0))))
View Source
var UInt16Type = PrimitiveType(interpreter.PrimitiveStaticTypeUInt16)
View Source
var UInt256MemoryUsage = common.NewCadenceBigIntMemoryUsage(32)
View Source
var UInt256Type = PrimitiveType(interpreter.PrimitiveStaticTypeUInt256)
View Source
var UInt32MemoryUsage = common.NewCadenceNumberMemoryUsage(int(unsafe.Sizeof(UInt32(0))))
View Source
var UInt32Type = PrimitiveType(interpreter.PrimitiveStaticTypeUInt32)
View Source
var UInt64MemoryUsage = common.NewCadenceNumberMemoryUsage(int(unsafe.Sizeof(UInt64(0))))
View Source
var UInt64Type = PrimitiveType(interpreter.PrimitiveStaticTypeUInt64)
View Source
var UInt8MemoryUsage = common.NewCadenceNumberMemoryUsage(int(unsafe.Sizeof(UInt8(0))))
View Source
var UInt8Type = PrimitiveType(interpreter.PrimitiveStaticTypeUInt8)
View Source
var UIntType = PrimitiveType(interpreter.PrimitiveStaticTypeUInt)
View Source
var UnpublishCapabilityType = PrimitiveType(interpreter.PrimitiveStaticTypeUnpublishCapability)
View Source
var UnpublishInboxCapabilityType = PrimitiveType(interpreter.PrimitiveStaticTypeUnpublishInboxCapability)
View Source
var UpdateContractType = PrimitiveType(interpreter.PrimitiveStaticTypeUpdateContract)
View Source
var VoidType = PrimitiveType(interpreter.PrimitiveStaticTypeVoid)
View Source
var Word128MemoryUsage = common.NewCadenceBigIntMemoryUsage(16)
View Source
var Word128Type = PrimitiveType(interpreter.PrimitiveStaticTypeWord128)
View Source
var Word16Type = PrimitiveType(interpreter.PrimitiveStaticTypeWord16)
View Source
var Word256MemoryUsage = common.NewCadenceBigIntMemoryUsage(32)
View Source
var Word256Type = PrimitiveType(interpreter.PrimitiveStaticTypeWord256)
View Source
var Word32Type = PrimitiveType(interpreter.PrimitiveStaticTypeWord32)
View Source
var Word64Type = PrimitiveType(interpreter.PrimitiveStaticTypeWord64)
View Source
var Word8Type = PrimitiveType(interpreter.PrimitiveStaticTypeWord8)
Functions ¶
func CastToArray ¶
func CastToString ¶
func CastToUInt16 ¶
func CastToUInt8 ¶
func DecodeFields ¶ added in v0.39.10
DecodeFields decodes a HasFields into a struct
func GetFieldsMappedByName ¶ added in v0.39.6
func ParseUFix64 ¶ added in v0.24.0
Types ¶
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(common.MemoryGauge) Type
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 Attachment ¶ added in v0.36.0
type Attachment struct { AttachmentType *AttachmentType Fields []Value }
func NewAttachment ¶ added in v0.36.0
func NewAttachment(fields []Value) Attachment
func NewMeteredAttachment ¶ added in v0.36.0
func NewMeteredAttachment( gauge common.MemoryGauge, numberOfFields int, constructor func() ([]Value, error), ) (Attachment, error)
func (Attachment) GetFieldValues ¶ added in v0.39.6
func (v Attachment) GetFieldValues() []Value
func (Attachment) GetFields ¶ added in v0.39.6
func (v Attachment) GetFields() []Field
func (Attachment) MeteredType ¶ added in v0.36.0
func (v Attachment) MeteredType(_ common.MemoryGauge) Type
func (Attachment) String ¶ added in v0.36.0
func (v Attachment) String() string
func (Attachment) ToGoValue ¶ added in v0.36.0
func (v Attachment) ToGoValue() any
func (Attachment) Type ¶ added in v0.36.0
func (v Attachment) Type() Type
func (Attachment) WithType ¶ added in v0.36.0
func (v Attachment) WithType(typ *AttachmentType) Attachment
type AttachmentType ¶ added in v0.36.0
type AttachmentType struct { Location common.Location BaseType Type QualifiedIdentifier string Fields []Field Initializers [][]Parameter }
func NewAttachmentType ¶ added in v0.36.0
func NewMeteredAttachmentType ¶ added in v0.36.0
func NewMeteredAttachmentType( gauge common.MemoryGauge, location common.Location, baseType Type, qualifiedIdentifier string, fields []Field, initializers [][]Parameter, ) *AttachmentType
func (*AttachmentType) Base ¶ added in v0.36.0
func (t *AttachmentType) Base() Type
func (*AttachmentType) CompositeFields ¶ added in v0.36.0
func (t *AttachmentType) CompositeFields() []Field
func (*AttachmentType) CompositeInitializers ¶ added in v0.36.0
func (t *AttachmentType) CompositeInitializers() [][]Parameter
func (*AttachmentType) CompositeTypeLocation ¶ added in v0.36.0
func (t *AttachmentType) CompositeTypeLocation() common.Location
func (*AttachmentType) CompositeTypeQualifiedIdentifier ¶ added in v0.36.0
func (t *AttachmentType) CompositeTypeQualifiedIdentifier() string
func (*AttachmentType) Equal ¶ added in v0.36.0
func (t *AttachmentType) Equal(other Type) bool
func (*AttachmentType) ID ¶ added in v0.36.0
func (t *AttachmentType) ID() string
func (*AttachmentType) SetCompositeFields ¶ added in v0.36.0
func (t *AttachmentType) SetCompositeFields(fields []Field)
type Authorization ¶ added in v1.0.0
type Authorization interface { ID() string Equal(auth Authorization) bool // contains filtered or unexported methods }
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 (v Bool) MeteredType(common.MemoryGauge) Type
type Bytes ¶
type Bytes []byte
func (Bytes) MeteredType ¶ added in v0.24.0
func (v Bytes) MeteredType(common.MemoryGauge) Type
type Capability ¶ added in v0.10.0
func NewCapability ¶ added in v0.24.0
func NewCapability( id UInt64, address Address, borrowType Type, ) Capability
func NewMeteredCapability ¶ added in v0.24.0
func NewMeteredCapability( gauge common.MemoryGauge, id UInt64, 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() any
func (Capability) Type ¶ added in v0.10.0
func (v Capability) Type() Type
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) Equal ¶ added in v0.31.1
func (t *CapabilityType) Equal(other Type) bool
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 (v Character) MeteredType(common.MemoryGauge) Type
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) Equal ¶ added in v0.31.1
func (t *ConstantSizedArrayType) Equal(other Type) bool
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) GetFieldValues ¶ added in v0.39.6
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, qualifiedIdentifier string, fields []Field, initializers [][]Parameter, ) *ContractInterfaceType
func (*ContractInterfaceType) Equal ¶ added in v0.31.1
func (t *ContractInterfaceType) Equal(other Type) bool
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
func (*ContractInterfaceType) SetInterfaceFields ¶ added in v0.24.3
func (t *ContractInterfaceType) SetInterfaceFields(fields []Field)
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, qualifiedIdentifier 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) Equal ¶ added in v0.31.1
func (t *ContractType) Equal(other Type) bool
func (*ContractType) ID ¶ added in v0.6.0
func (t *ContractType) ID() string
func (*ContractType) SetCompositeFields ¶ added in v0.24.3
func (t *ContractType) SetCompositeFields(fields []Field)
type Dictionary ¶
type Dictionary struct { DictionaryType *DictionaryType 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() any
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) Equal ¶ added in v0.31.1
func (t *DictionaryType) Equal(other Type) bool
func (*DictionaryType) ID ¶
func (t *DictionaryType) ID() string
type EntitlementMapAuthorization ¶ added in v1.0.0
func NewEntitlementMapAuthorization ¶ added in v1.0.0
func NewEntitlementMapAuthorization(gauge common.MemoryGauge, id common.TypeID) EntitlementMapAuthorization
func (EntitlementMapAuthorization) Equal ¶ added in v1.0.0
func (e EntitlementMapAuthorization) Equal(other Authorization) bool
func (EntitlementMapAuthorization) ID ¶ added in v1.0.0
func (e EntitlementMapAuthorization) ID() string
type EntitlementSetAuthorization ¶ added in v1.0.0
type EntitlementSetAuthorization struct { Entitlements []common.TypeID Kind EntitlementSetKind // contains filtered or unexported fields }
func NewEntitlementSetAuthorization ¶ added in v1.0.0
func NewEntitlementSetAuthorization( gauge common.MemoryGauge, entitlements []common.TypeID, kind EntitlementSetKind, ) *EntitlementSetAuthorization
func (*EntitlementSetAuthorization) Equal ¶ added in v1.0.0
func (e *EntitlementSetAuthorization) Equal(auth Authorization) bool
func (*EntitlementSetAuthorization) ID ¶ added in v1.0.0
func (e *EntitlementSetAuthorization) ID() string
type EntitlementSetKind ¶ added in v1.0.0
type EntitlementSetKind = sema.EntitlementSetKind
type Enum ¶ added in v0.14.0
Enum
func NewMeteredEnum ¶ added in v0.24.0
func (Enum) GetFieldValues ¶ added in v0.39.6
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 }
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
func (*EnumType) SetCompositeFields ¶ added in v0.24.3
type Event ¶
func NewMeteredEvent ¶ added in v0.24.0
func (Event) GetFieldValues ¶ added in v0.39.6
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
func (*EventType) SetCompositeFields ¶ added in v0.24.3
type Fix64 ¶
type Fix64 int64
func NewFix64FromParts ¶ added in v0.5.0
func NewMeteredFix64 ¶ added in v0.24.0
func NewMeteredFix64FromRawFixedPointNumber ¶ added in v0.39.0
func NewMeteredFix64FromRawFixedPointNumber(gauge common.MemoryGauge, n int64) (Fix64, error)
func (Fix64) MeteredType ¶ added in v0.24.0
func (v Fix64) MeteredType(common.MemoryGauge) Type
func (Fix64) ToBigEndianBytes ¶ added in v0.5.0
type Function ¶
type Function struct {
FunctionType *FunctionType
}
Function
func NewFunction ¶ added in v0.30.0
func NewFunction(functionType *FunctionType) Function
func NewMeteredFunction ¶ added in v0.30.0
func NewMeteredFunction(gauge common.MemoryGauge, functionType *FunctionType) Function
func (Function) MeteredType ¶ added in v0.30.0
func (v Function) MeteredType(common.MemoryGauge) Type
type FunctionPurity ¶ added in v0.32.0
type FunctionPurity int
const ( FunctionPurityUnspecified FunctionPurity = iota FunctionPurityView )
func NewFunctionaryPurity ¶ added in v1.0.0
func NewFunctionaryPurity(rawPurity int) (FunctionPurity, error)
type FunctionType ¶ added in v0.24.0
type FunctionType struct { TypeParameters []TypeParameter Parameters []Parameter ReturnType Type Purity FunctionPurity }
func NewFunctionType ¶ added in v0.24.0
func NewFunctionType( purity FunctionPurity, typeParameters []TypeParameter, parameters []Parameter, returnType Type, ) *FunctionType
func NewMeteredFunctionType ¶ added in v0.24.0
func NewMeteredFunctionType( gauge common.MemoryGauge, purity FunctionPurity, typeParameters []TypeParameter, parameters []Parameter, returnType Type, ) *FunctionType
func (*FunctionType) Equal ¶ added in v0.31.1
func (t *FunctionType) Equal(other Type) bool
func (*FunctionType) ID ¶ added in v0.24.0
func (t *FunctionType) ID() string
type InclusiveRange ¶ added in v1.0.0
type InclusiveRange struct { InclusiveRangeType *InclusiveRangeType Start Value End Value Step Value // contains filtered or unexported fields }
func NewInclusiveRange ¶ added in v1.0.0
func NewInclusiveRange(start, end, step Value) *InclusiveRange
func NewMeteredInclusiveRange ¶ added in v1.0.0
func NewMeteredInclusiveRange( gauge common.MemoryGauge, start, end, step Value, ) *InclusiveRange
func (*InclusiveRange) MeteredType ¶ added in v1.0.0
func (v *InclusiveRange) MeteredType(common.MemoryGauge) Type
func (*InclusiveRange) String ¶ added in v1.0.0
func (v *InclusiveRange) String() string
func (*InclusiveRange) ToGoValue ¶
func (v *InclusiveRange) ToGoValue() any
func (*InclusiveRange) Type ¶ added in v1.0.0
func (v *InclusiveRange) Type() Type
func (*InclusiveRange) WithType ¶ added in v1.0.0
func (v *InclusiveRange) WithType(typ *InclusiveRangeType) *InclusiveRange
type InclusiveRangeType ¶ added in v1.0.0
type InclusiveRangeType struct { ElementType Type // contains filtered or unexported fields }
func NewInclusiveRangeType ¶ added in v1.0.0
func NewInclusiveRangeType( elementType Type, ) *InclusiveRangeType
func NewMeteredInclusiveRangeType ¶ added in v1.0.0
func NewMeteredInclusiveRangeType( gauge common.MemoryGauge, elementType Type, ) *InclusiveRangeType
func (*InclusiveRangeType) Equal ¶ added in v1.0.0
func (t *InclusiveRangeType) Equal(other Type) bool
func (*InclusiveRangeType) ID ¶ added in v1.0.0
func (t *InclusiveRangeType) ID() string
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 (v Int) MeteredType(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 (v Int128) MeteredType(common.MemoryGauge) Type
func (Int128) ToBigEndianBytes ¶ added in v0.5.0
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 (v Int16) MeteredType(common.MemoryGauge) Type
func (Int16) ToBigEndianBytes ¶ added in v0.5.0
type Int256 ¶
func NewMeteredInt256FromBig ¶ added in v0.24.0
func (Int256) MeteredType ¶ added in v0.24.0
func (v Int256) MeteredType(common.MemoryGauge) Type
func (Int256) ToBigEndianBytes ¶ added in v0.5.0
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 (v Int32) MeteredType(common.MemoryGauge) Type
func (Int32) ToBigEndianBytes ¶ added in v0.5.0
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 (v Int64) MeteredType(common.MemoryGauge) Type
func (Int64) ToBigEndianBytes ¶ added in v0.5.0
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 (v Int8) MeteredType(common.MemoryGauge) Type
func (Int8) ToBigEndianBytes ¶ added in v0.5.0
type InterfaceType ¶ added in v0.7.0
type IntersectionSet ¶ added in v1.0.0
type IntersectionSet = map[Type]struct{}
type IntersectionType ¶ added in v1.0.0
type IntersectionType struct { Types []Type // contains filtered or unexported fields }
func NewIntersectionType ¶ added in v1.0.0
func NewIntersectionType( types []Type, ) *IntersectionType
func NewMeteredIntersectionType ¶ added in v1.0.0
func NewMeteredIntersectionType( gauge common.MemoryGauge, types []Type, ) *IntersectionType
func (*IntersectionType) Equal ¶ added in v1.0.0
func (t *IntersectionType) Equal(other Type) bool
func (*IntersectionType) ID ¶ added in v1.0.0
func (t *IntersectionType) ID() string
func (*IntersectionType) IntersectionSet ¶ added in v1.0.0
func (t *IntersectionType) IntersectionSet() IntersectionSet
type KeyValuePair ¶
func NewMeteredKeyValuePair ¶ added in v0.24.0
func NewMeteredKeyValuePair(gauge common.MemoryGauge, key, value Value) KeyValuePair
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) Equal ¶ added in v0.31.1
func (t *OptionalType) Equal(other Type) bool
func (*OptionalType) ID ¶
func (t *OptionalType) ID() string
type Path ¶ added in v0.10.0
type Path struct { Domain common.PathDomain Identifier string }
func MustNewPath ¶ added in v1.0.0
func MustNewPath(domain common.PathDomain, identifier string) Path
func NewMeteredPath ¶ added in v0.24.0
func NewMeteredPath(gauge common.MemoryGauge, domain common.PathDomain, identifier string) (Path, error)
func NewPath ¶ added in v0.24.0
func NewPath(domain common.PathDomain, identifier string) (Path, error)
func (Path) MeteredType ¶ added in v0.24.0
func (v Path) MeteredType(common.MemoryGauge) Type
type PrimitiveType ¶ added in v1.0.0
type PrimitiveType interpreter.PrimitiveStaticType
func (PrimitiveType) Equal ¶ added in v1.0.0
func (p PrimitiveType) Equal(other Type) bool
func (PrimitiveType) ID ¶ added in v1.0.0
func (p PrimitiveType) ID() string
type ReferenceType ¶ added in v0.7.0
type ReferenceType struct { Type Type Authorization Authorization }
func NewMeteredReferenceType ¶ added in v0.24.0
func NewMeteredReferenceType( gauge common.MemoryGauge, authorization Authorization, typ Type, ) *ReferenceType
func NewReferenceType ¶ added in v0.24.0
func NewReferenceType( authorization Authorization, typ Type, ) *ReferenceType
func (*ReferenceType) Equal ¶ added in v0.31.1
func (t *ReferenceType) Equal(other Type) bool
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) GetFieldValues ¶ added in v0.39.6
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, qualifiedIdentifier string, fields []Field, initializers [][]Parameter, ) *ResourceInterfaceType
func NewResourceInterfaceType ¶ added in v0.24.0
func (*ResourceInterfaceType) Equal ¶ added in v0.31.1
func (t *ResourceInterfaceType) Equal(other Type) bool
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
func (*ResourceInterfaceType) SetInterfaceFields ¶ added in v0.24.3
func (t *ResourceInterfaceType) SetInterfaceFields(fields []Field)
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, qualifiedIdentifier 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) Equal ¶ added in v0.31.1
func (t *ResourceType) Equal(other Type) bool
func (*ResourceType) ID ¶
func (t *ResourceType) ID() string
func (*ResourceType) SetCompositeFields ¶ added in v0.24.3
func (t *ResourceType) SetCompositeFields(fields []Field)
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 (v String) MeteredType(common.MemoryGauge) Type
type Struct ¶
type Struct struct { StructType *StructType Fields []Value }
func NewMeteredStruct ¶ added in v0.24.0
func (Struct) GetFieldValues ¶ added in v0.39.6
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, qualifiedIdentifier string, fields []Field, initializers [][]Parameter, ) *StructInterfaceType
func NewStructInterfaceType ¶ added in v0.24.0
func (*StructInterfaceType) Equal ¶ added in v0.31.1
func (t *StructInterfaceType) Equal(other Type) bool
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
func (*StructInterfaceType) SetInterfaceFields ¶ added in v0.24.3
func (t *StructInterfaceType) SetInterfaceFields(fields []Field)
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, qualifiedIdentifier 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) Equal ¶ added in v0.31.1
func (t *StructType) Equal(other Type) bool
func (*StructType) ID ¶
func (t *StructType) ID() string
func (*StructType) SetCompositeFields ¶ added in v0.24.3
func (t *StructType) SetCompositeFields(fields []Field)
type TypeID ¶ added in v0.24.4
TypeID is a type which is only known by its type ID. This type should not be used when encoding values, and should only be used for decoding values that were encoded using an older format of the JSON encoding (<v0.3.0)
type TypeParameter ¶ added in v0.39.0
func NewTypeParameter ¶ added in v0.39.0
func NewTypeParameter( name string, typeBound Type, ) TypeParameter
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 (v TypeValue) MeteredType(common.MemoryGauge) Type
type UFix64 ¶
type UFix64 uint64
func NewMeteredUFix64 ¶ added in v0.24.0
func NewMeteredUFix64FromRawFixedPointNumber ¶ added in v0.39.0
func NewMeteredUFix64FromRawFixedPointNumber(gauge common.MemoryGauge, n uint64) (UFix64, error)
func NewUFix64FromParts ¶ added in v0.5.0
func (UFix64) MeteredType ¶ added in v0.24.0
func (v UFix64) MeteredType(common.MemoryGauge) Type
func (UFix64) ToBigEndianBytes ¶ added in v0.5.0
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 (v UInt) MeteredType(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 (v UInt128) MeteredType(common.MemoryGauge) Type
func (UInt128) ToBigEndianBytes ¶ added in v0.5.0
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 (v UInt16) MeteredType(common.MemoryGauge) Type
func (UInt16) ToBigEndianBytes ¶ added in v0.5.0
type UInt256 ¶
func NewMeteredUInt256FromBig ¶ added in v0.24.0
func NewUInt256 ¶
func (UInt256) MeteredType ¶ added in v0.24.0
func (v UInt256) MeteredType(common.MemoryGauge) Type
func (UInt256) ToBigEndianBytes ¶ added in v0.5.0
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 (v UInt32) MeteredType(common.MemoryGauge) Type
func (UInt32) ToBigEndianBytes ¶ added in v0.5.0
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 (v UInt64) MeteredType(common.MemoryGauge) Type
func (UInt64) ToBigEndianBytes ¶ added in v0.5.0
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 (v UInt8) MeteredType(common.MemoryGauge) Type
func (UInt8) ToBigEndianBytes ¶ added in v0.5.0
type Unauthorized ¶ added in v1.0.0
type Unauthorized struct{}
func (Unauthorized) Equal ¶ added in v1.0.0
func (Unauthorized) Equal(other Authorization) bool
func (Unauthorized) ID ¶ added in v1.0.0
func (Unauthorized) ID() string
type Value ¶
type Value interface { Type() Type MeteredType(gauge common.MemoryGauge) Type ToGoValue() any fmt.Stringer // contains filtered or unexported methods }
func GetFieldByName ¶ added in v0.39.6
func MustConvertValue ¶
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) Equal ¶ added in v0.31.1
func (t *VariableSizedArrayType) Equal(other Type) bool
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 (v Void) MeteredType(common.MemoryGauge) Type
type Word128 ¶ added in v0.39.0
func NewMeteredWord128FromBig ¶ added in v0.39.0
func NewWord128 ¶ added in v0.39.0
func (Word128) MeteredType ¶ added in v0.39.0
func (v Word128) MeteredType(common.MemoryGauge) Type
func (Word128) ToBigEndianBytes ¶ added in v0.39.0
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 (v Word16) MeteredType(common.MemoryGauge) Type
func (Word16) ToBigEndianBytes ¶ added in v0.5.0
type Word256 ¶ added in v0.39.0
func NewMeteredWord256FromBig ¶ added in v0.39.0
func NewWord256 ¶ added in v0.39.0
func (Word256) MeteredType ¶ added in v0.39.0
func (v Word256) MeteredType(common.MemoryGauge) Type
func (Word256) ToBigEndianBytes ¶ added in v0.39.0
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 (v Word32) MeteredType(common.MemoryGauge) Type
func (Word32) ToBigEndianBytes ¶ added in v0.5.0
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 (v Word64) MeteredType(common.MemoryGauge) Type
func (Word64) ToBigEndianBytes ¶ added in v0.5.0
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 (v Word8) MeteredType(common.MemoryGauge) Type
func (Word8) ToBigEndianBytes ¶ added in v0.5.0
Directories ¶
Path | Synopsis |
---|---|
encoding
|
|
ccf
Package ccf implements CCF specification
|
Package ccf implements CCF specification |
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 Dapper Labs, Inc.
|
* Cadence - The resource-oriented smart contract programming language * * Copyright Dapper Labs, Inc. |
common
uses the provided function `f` to generate a slice with no duplicates.
|
uses the provided function `f` to generate a slice with no duplicates. |
common/list
Package list implements a doubly linked list.
|
Package list implements a doubly linked list. |
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
|
|
version
Generates a Go file version.go with a constant variableName, which contains the current semantic version as a string literal.
|
Generates a Go file version.go with a constant variableName, which contains the current semantic version as a string literal. |
Click to show internal directories.
Click to hide internal directories.