Documentation ¶
Index ¶
- type ABI
- func (*ABI) Descriptor() ([]byte, []int)
- func (m *ABI) GetAmountLimit() []*Amount
- func (m *ABI) GetArgs() []string
- func (m *ABI) GetName() string
- func (*ABI) ProtoMessage()
- func (m *ABI) Reset()
- func (m *ABI) String() string
- func (m *ABI) XXX_DiscardUnknown()
- func (m *ABI) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ABI) XXX_Merge(src proto.Message)
- func (m *ABI) XXX_Size() int
- func (m *ABI) XXX_Unmarshal(b []byte) error
- type Amount
- func (*Amount) Descriptor() ([]byte, []int)
- func (m *Amount) GetToken() string
- func (m *Amount) GetVal() string
- func (*Amount) ProtoMessage()
- func (m *Amount) Reset()
- func (m *Amount) String() string
- func (a *Amount) ToBytes() []byte
- func (m *Amount) XXX_DiscardUnknown()
- func (m *Amount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Amount) XXX_Merge(src proto.Message)
- func (m *Amount) XXX_Size() int
- func (m *Amount) XXX_Unmarshal(b []byte) error
- 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)
- func (c *Contract) Encode() string
- func (m *Contract) GetCode() string
- func (m *Contract) GetID() string
- func (m *Contract) GetInfo() *Info
- func (*Contract) ProtoMessage()
- func (m *Contract) Reset()
- func (m *Contract) String() string
- func (m *Contract) XXX_DiscardUnknown()
- func (m *Contract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Contract) XXX_Merge(src proto.Message)
- func (m *Contract) XXX_Size() int
- func (m *Contract) XXX_Unmarshal(b []byte) error
- type Cost
- type DataItem
- type FixedAmount
- type Info
- func (*Info) Descriptor() ([]byte, []int)
- func (m *Info) GetAbi() []*ABI
- func (m *Info) GetLang() string
- func (m *Info) GetVersion() string
- func (*Info) ProtoMessage()
- func (m *Info) Reset()
- func (m *Info) String() string
- func (m *Info) XXX_DiscardUnknown()
- func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Info) XXX_Merge(src proto.Message)
- func (m *Info) XXX_Size() int
- func (m *Info) XXX_Unmarshal(b []byte) error
- type PaymentCode
- type VersionCode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ABI) Descriptor ¶
func (*ABI) GetAmountLimit ¶ added in v1.1.0
func (*ABI) ProtoMessage ¶
func (*ABI) ProtoMessage()
func (*ABI) XXX_DiscardUnknown ¶
func (m *ABI) XXX_DiscardUnknown()
func (*ABI) XXX_Unmarshal ¶
type Amount ¶ added in v1.1.0
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Amount) Descriptor ¶ added in v1.1.0
func (*Amount) ProtoMessage ¶ added in v1.1.0
func (*Amount) ProtoMessage()
func (*Amount) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *Amount) XXX_DiscardUnknown()
func (*Amount) XXX_Marshal ¶ added in v1.1.0
func (*Amount) XXX_Unmarshal ¶ added in v1.1.0
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func DecodeContract ¶
DecodeContract static method to decode contract from string
func (*Contract) Descriptor ¶
func (*Contract) ProtoMessage ¶
func (*Contract) ProtoMessage()
func (*Contract) XXX_DiscardUnknown ¶
func (m *Contract) XXX_DiscardUnknown()
func (*Contract) XXX_Marshal ¶
func (*Contract) XXX_Unmarshal ¶
type Cost ¶
Cost ...
func (Cost) IsOverflow ¶
IsOverflow decide if exceed limit
type FixedAmount ¶ added in v1.1.0
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Info) Descriptor ¶
func (*Info) GetVersion ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
func (*Info) XXX_DiscardUnknown ¶
func (m *Info) XXX_DiscardUnknown()
func (*Info) XXX_Unmarshal ¶
type PaymentCode ¶
type PaymentCode int32
PaymentCode payment mode of contract
const ( SelfPay PaymentCode = iota ContractPay )
Payment mode
Click to show internal directories.
Click to hide internal directories.