Documentation
¶
Index ¶
- type ABI
- type Address
- type AddressAny
- type AddressExt
- type AddressOpt
- type AliasDeclaration
- type AliasRef
- type BitsN
- type Bool
- type Builder
- type Callable
- type Cell
- type CellOf
- type Coins
- type Declaration
- type DefaultValue
- type EnumDeclaration
- type EnumMember
- type EnumRef
- type Field
- type Generic
- type GetMethod
- type IncomingExternal
- type IncomingMessage
- type Int
- type IntN
- type Kind
- type Map
- type NullLiteral
- type Nullable
- type OutgoingMessage
- type Parameter
- type Prefix
- type Remaining
- type Slice
- type StructDeclaration
- type StructRef
- type Tensor
- type ThrownError
- type TupleAny
- type TupleWith
- type Ty
- func NewAddressAnyType() Ty
- func NewAddressExtType() Ty
- func NewAddressOptType() Ty
- func NewAddressType() Ty
- func NewAliasType(name string, typeArgs ...Ty) Ty
- func NewBitsNType(n int) Ty
- func NewBoolType() Ty
- func NewCellOfType(of Ty) Ty
- func NewCellType() Ty
- func NewCoinsType() Ty
- func NewEnumType(name string) Ty
- func NewGenericType(nameT string) Ty
- func NewIntNType(n int) Ty
- func NewMapType(key, value Ty) Ty
- func NewNullableType(of Ty) Ty
- func NewRemainingType() Ty
- func NewStructType(name string, typeArgs ...Ty) Ty
- func NewTensorType(of ...Ty) Ty
- func NewTupleWithType(of ...Ty) Ty
- func NewUIntNType(n int) Ty
- func NewUnionType(prefixLen int, prefixEatIntPlace bool, variants ...UnionVariant) Ty
- func NewVarInt16Type() Ty
- func NewVarInt32Type() Ty
- func NewVarIntType(n int) Ty
- func NewVarUInt16Type() Ty
- func NewVarUInt32Type() Ty
- func NewVarUIntType(n int) Ty
- type UintN
- type Union
- type UnionVariant
- type VarIntN
- type VarUintN
- type Void
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ABI ¶
type ABI struct {
Namespace string `json:"namespace"`
ContractName string `json:"contractName"`
InheritsContract string `json:"inheritsContract,omitempty"`
Author string `json:"author,omitempty"`
Version string `json:"version,omitempty"`
Description string `json:"description,omitempty"`
Declarations []Declaration `json:"declarations"`
IncomingMessages []IncomingMessage `json:"incomingMessages"`
IncomingExternal *IncomingExternal `json:"incomingExternal,omitempty"`
OutgoingMessages []OutgoingMessage `json:"outgoingMessages"`
EmittedMessages []OutgoingMessage `json:"emittedEvents"`
GetMethods []GetMethod `json:"getMethods"`
ThrownErrors []ThrownError `json:"thrownErrors"`
CompilerName string `json:"compilerName"`
CompilerVersion string `json:"compilerVersion"`
CodeBoc64 string `json:"codeBoc64"`
CodeHashes []string `json:"codeHashes,omitempty"`
}
func MustParseABI ¶
func (*ABI) GetGolangContractName ¶
func (*ABI) GetGolangNamespace ¶
type AddressAny ¶
type AddressAny struct{}
type AddressExt ¶
type AddressExt struct{}
type AddressOpt ¶
type AddressOpt struct {
}
type AliasDeclaration ¶
type Declaration ¶
type Declaration struct {
SumType string `json:"kind"`
PayloadType *string `json:"payloadType,omitempty"` // todo: think abt naming
StructDeclaration StructDeclaration
AliasDeclaration AliasDeclaration
EnumDeclaration EnumDeclaration
}
func (Declaration) MarshalJSON ¶
func (d Declaration) MarshalJSON() ([]byte, error)
func (*Declaration) UnmarshalJSON ¶
func (d *Declaration) UnmarshalJSON(b []byte) error
type DefaultValue ¶
type DefaultValue struct {
SumType string `json:"kind"`
IntDefaultValue struct {
V string `json:"v"`
}
BoolDefaultValue struct {
V bool `json:"v"`
}
SliceDefaultValue struct {
Hex string `json:"hex"`
}
AddressDefaultValue struct {
Address string `json:"addr"`
}
TensorDefaultValue struct {
Items []DefaultValue `json:"items"`
}
NullDefaultValue struct{}
}
func (*DefaultValue) MarshalJSON ¶
func (d *DefaultValue) MarshalJSON() ([]byte, error)
func (*DefaultValue) UnmarshalJSON ¶
func (d *DefaultValue) UnmarshalJSON(b []byte) error
type EnumDeclaration ¶
type EnumDeclaration struct {
Name string `json:"name"`
EncodedAs Ty `json:"encodedAs"`
Members []EnumMember `json:"members"`
}
type EnumMember ¶
type Field ¶
type Field struct {
Name string `json:"name"`
IsPayload *bool `json:"isPayload,omitempty"`
Ty Ty `json:"ty"`
DefaultValue *DefaultValue `json:"defaultValue,omitempty"`
Description string `json:"description,omitempty"`
}
type GetMethod ¶
type GetMethod struct {
TvmMethodID int `json:"tvmMethodId"`
Name string `json:"name"`
Parameters []Parameter `json:"parameters"`
ReturnTy Ty `json:"returnTy"`
Description string `json:"description,omitempty"`
}
func (GetMethod) FullResultName ¶
func (GetMethod) GolangFunctionName ¶
func (GetMethod) UsedByIntrospection ¶
type IncomingExternal ¶
type IncomingExternal struct {
BodyTy Ty `json:"bodyTy"`
Description string `json:"description,omitempty"`
}
func (*IncomingExternal) GetMsgName ¶
func (m *IncomingExternal) GetMsgName() (string, error)
type IncomingMessage ¶
type IncomingMessage struct {
BodyTy Ty `json:"bodyTy"`
MinimalMsgValue *big.Int `json:"minimalMsgValue,omitempty"`
Description string `json:"description,omitempty"`
PreferredSendMode int16 `json:"preferredSendMode,omitempty"`
}
func (*IncomingMessage) GetMsgName ¶
func (m *IncomingMessage) GetMsgName() (string, error)
type NullLiteral ¶
type NullLiteral struct{}
type OutgoingMessage ¶
type OutgoingMessage struct {
BodyTy Ty `json:"bodyTy"`
Description string `json:"description,omitempty"`
}
func (*OutgoingMessage) GetMsgName ¶
func (m *OutgoingMessage) GetMsgName() (string, error)
type StructDeclaration ¶
type ThrownError ¶
type Ty ¶
type Ty struct {
SumType string `json:"kind"`
Int *Int
IntN *IntN
UintN *UintN
VarIntN *VarIntN
VarUintN *VarUintN
BitsN *BitsN
Coins *Coins
Bool *Bool
Cell *Cell
Slice *Slice
Builder *Builder
Callable *Callable
Remaining *Remaining
Address *Address
AddressOpt *AddressOpt
AddressExt *AddressExt
AddressAny *AddressAny
Nullable *Nullable
CellOf *CellOf
Tensor *Tensor
TupleWith *TupleWith
Map *Map
EnumRef *EnumRef
AliasRef *AliasRef
StructRef *StructRef
Generic *Generic
Union *Union
TupleAny *TupleAny
NullLiteral *NullLiteral
Void *Void
}
func NewAddressAnyType ¶
func NewAddressAnyType() Ty
func NewAddressExtType ¶
func NewAddressExtType() Ty
func NewAddressOptType ¶
func NewAddressOptType() Ty
func NewAddressType ¶
func NewAddressType() Ty
func NewAliasType ¶
func NewBitsNType ¶
func NewBoolType ¶
func NewBoolType() Ty
func NewCellOfType ¶
func NewCellType ¶
func NewCellType() Ty
func NewCoinsType ¶
func NewCoinsType() Ty
func NewEnumType ¶
func NewGenericType ¶
func NewIntNType ¶
func NewMapType ¶
func NewNullableType ¶
func NewRemainingType ¶
func NewRemainingType() Ty
func NewStructType ¶
func NewTensorType ¶
func NewTupleWithType ¶
func NewUIntNType ¶
func NewUnionType ¶
func NewUnionType(prefixLen int, prefixEatIntPlace bool, variants ...UnionVariant) Ty
func NewVarInt16Type ¶
func NewVarInt16Type() Ty
func NewVarInt32Type ¶
func NewVarInt32Type() Ty
func NewVarIntType ¶
func NewVarUInt16Type ¶
func NewVarUInt16Type() Ty
func NewVarUInt32Type ¶
func NewVarUInt32Type() Ty
func NewVarUIntType ¶
func (*Ty) GetFixedSize ¶
func (*Ty) MarshalJSON ¶
func (*Ty) UnmarshalJSON ¶
type Union ¶
type Union struct {
Variants []UnionVariant `json:"variants"`
}
type UnionVariant ¶
type UnionVariant struct {
PrefixStr string `json:"prefixStr"`
PrefixLen int `json:"prefixLen"`
PrefixEatInPlace bool `json:"prefixEatInPlace,omitempty"`
VariantTy Ty `json:"variantTy"`
}
func NewUnionVariant ¶
func NewUnionVariant(variant Ty, prefixValue string) UnionVariant
Click to show internal directories.
Click to hide internal directories.