Documentation ¶
Index ¶
- Variables
- type ABI
- type Amount
- func (*Amount) Descriptor() ([]byte, []int)deprecated
- func (a *Amount) Equal(am *Amount) bool
- func (x *Amount) GetToken() string
- func (x *Amount) GetVal() string
- func (*Amount) ProtoMessage()
- func (x *Amount) ProtoReflect() protoreflect.Message
- func (x *Amount) Reset()
- func (x *Amount) String() string
- func (a *Amount) ToBytes() []byte
- type Compiler
- type Contract
- func (c *Contract) ABI(name string) *ABI
- func (c *Contract) B64Decode(str string) error
- func (c *Contract) B64Encode() string
- func (c *Contract) Decode(str string) error
- func (*Contract) Descriptor() ([]byte, []int)deprecated
- func (c *Contract) Encode() string
- func (x *Contract) GetCode() string
- func (x *Contract) GetID() string
- func (x *Contract) GetInfo() *Info
- func (x *Contract) GetOrigCode() string
- func (*Contract) ProtoMessage()
- func (x *Contract) ProtoReflect() protoreflect.Message
- func (x *Contract) Reset()
- func (x *Contract) String() string
- func (c *Contract) VerifySelf() error
- type Cost
- type DataItem
- type FixedAmount
- type Info
- type VersionCode
Constants ¶
This section is empty.
Variables ¶
View Source
var File_core_contract_contract_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ABI ¶
type ABI struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` AmountLimit []*Amount `protobuf:"bytes,3,rep,name=amountLimit,proto3" json:"amountLimit,omitempty"` // contains filtered or unexported fields }
func (*ABI) Descriptor
deprecated
func (*ABI) GetAmountLimit ¶
func (*ABI) ProtoMessage ¶
func (*ABI) ProtoMessage()
func (*ABI) ProtoReflect ¶
func (x *ABI) ProtoReflect() protoreflect.Message
type Amount ¶
type Amount struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Val string `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"` // contains filtered or unexported fields }
func (*Amount) Descriptor
deprecated
func (*Amount) ProtoMessage ¶
func (*Amount) ProtoMessage()
func (*Amount) ProtoReflect ¶
func (x *Amount) ProtoReflect() protoreflect.Message
type Contract ¶
type Contract struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Info *Info `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` OrigCode string `protobuf:"bytes,4,opt,name=origCode,proto3" json:"origCode,omitempty"` // contains filtered or unexported fields }
func DecodeContract ¶
DecodeContract static method to decode contract from string
func (*Contract) Descriptor
deprecated
func (*Contract) GetOrigCode ¶
func (*Contract) ProtoMessage ¶
func (*Contract) ProtoMessage()
func (*Contract) ProtoReflect ¶
func (x *Contract) ProtoReflect() protoreflect.Message
func (*Contract) VerifySelf ¶
VerifySelf verify contract's size
type Cost ¶
Cost ...
func (Cost) IsOverflow ¶
IsOverflow decide if exceed limit
type FixedAmount ¶
FixedAmount the limit amount of token used by contract
type Info ¶
type Info struct { Lang string `protobuf:"bytes,1,opt,name=lang,proto3" json:"lang,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Abi []*ABI `protobuf:"bytes,3,rep,name=abi,proto3" json:"abi,omitempty"` // contains filtered or unexported fields }
func (*Info) Descriptor
deprecated
func (*Info) GetVersion ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
func (*Info) ProtoReflect ¶
func (x *Info) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.