Documentation
¶
Index ¶
- type Contract
- func (*Contract) Descriptor() ([]byte, []int)
- func (m *Contract) GetContractTs() *timestamp.Timestamp
- func (m *Contract) GetFrozenTo() *timestamp.Timestamp
- func (m *Contract) GetIsFrozen() bool
- func (m *Contract) GetStatus() []*Contract_MemberStatus
- func (m *Contract) GetTotalRedeem() []byte
- func (m *Contract) GetTotalWeight() int64
- 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 (m *Contract) XXX_Merge(src proto.Message)
- func (m *Contract) XXX_Size() int
- func (m *Contract) XXX_Unmarshal(b []byte) error
- type Contract_MemberStatus
- func (*Contract_MemberStatus) Descriptor() ([]byte, []int)
- func (m *Contract_MemberStatus) GetMemberID() *protos.TxAddr
- func (m *Contract_MemberStatus) GetTotalRedeem() []byte
- func (m *Contract_MemberStatus) GetWeight() int32
- func (*Contract_MemberStatus) ProtoMessage()
- func (m *Contract_MemberStatus) Reset()
- func (m *Contract_MemberStatus) String() string
- func (m *Contract_MemberStatus) XXX_DiscardUnknown()
- func (m *Contract_MemberStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Contract_MemberStatus) XXX_Merge(src proto.Message)
- func (m *Contract_MemberStatus) XXX_Size() int
- func (m *Contract_MemberStatus) XXX_Unmarshal(b []byte) error
- type Contract_MemberStatus_s
- type Contract_s
- func (con *Contract_s) Find(addr []byte) (Contract_MemberStatus_s, bool)
- func (con *Contract_s) FindAndAccess(addr []byte) (Contract_MemberStatus_s, int)
- func (n *Contract_s) GetObject() interface{}
- func (n *Contract_s) Load(interface{}) error
- func (n *Contract_s) LoadFromPB(p *Contract)
- func (n *Contract_s) Save() interface{}
- func (n *Contract_s) Sorter() memberSort
- func (n *Contract_s) ToPB() *Contract
- type QueryContract
- func (*QueryContract) Descriptor() ([]byte, []int)
- func (m *QueryContract) GetAddresses() []*tx.Address
- func (m *QueryContract) GetContractAddr() *protos.TxAddr
- func (m *QueryContract) GetMemberAddr() *protos.TxAddr
- func (*QueryContract) ProtoMessage()
- func (m *QueryContract) Reset()
- func (m *QueryContract) String() string
- func (m *QueryContract) XXX_DiscardUnknown()
- func (m *QueryContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContract) XXX_Merge(src proto.Message)
- func (m *QueryContract) XXX_Size() int
- func (m *QueryContract) XXX_Unmarshal(b []byte) error
- type RedeemContract
- func (*RedeemContract) Descriptor() ([]byte, []int)
- func (m *RedeemContract) GetAddresses() (addrs []*tx.Address)
- func (m *RedeemContract) GetAmount() []byte
- func (m *RedeemContract) GetContract() *protos.TxAddr
- func (m *RedeemContract) GetRedeems() []*protos.TxAddr
- func (*RedeemContract) ProtoMessage()
- func (m *RedeemContract) Reset()
- func (m *RedeemContract) String() string
- func (m *RedeemContract) XXX_DiscardUnknown()
- func (m *RedeemContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RedeemContract) XXX_Merge(src proto.Message)
- func (m *RedeemContract) XXX_Size() int
- func (m *RedeemContract) XXX_Unmarshal(b []byte) error
- type RedeemResponse
- func (*RedeemResponse) Descriptor() ([]byte, []int)
- func (m *RedeemResponse) GetNonces() [][]byte
- func (m *RedeemResponse) MarshalJSON() ([]byte, error)
- func (*RedeemResponse) ProtoMessage()
- func (m *RedeemResponse) Reset()
- func (m *RedeemResponse) String() string
- func (m *RedeemResponse) XXX_DiscardUnknown()
- func (m *RedeemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RedeemResponse) XXX_Merge(src proto.Message)
- func (m *RedeemResponse) XXX_Size() int
- func (m *RedeemResponse) XXX_Unmarshal(b []byte) error
- type RegContract
- func (*RegContract) Descriptor() ([]byte, []int)
- func (m *RegContract) GetAddresses() []*tx.Address
- func (m *RegContract) GetContractBody() []*RegContract_Member
- func (m *RegContract) GetDelegator() *protos.TxAddr
- func (*RegContract) ProtoMessage()
- func (m *RegContract) Reset()
- func (m *RegContract) String() string
- func (m *RegContract) XXX_DiscardUnknown()
- func (m *RegContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegContract) XXX_Merge(src proto.Message)
- func (m *RegContract) XXX_Size() int
- func (m *RegContract) XXX_Unmarshal(b []byte) error
- type RegContract_Member
- func (*RegContract_Member) Descriptor() ([]byte, []int)
- func (m *RegContract_Member) GetAddr() *protos.TxAddr
- func (m *RegContract_Member) GetWeight() int32
- func (*RegContract_Member) ProtoMessage()
- func (m *RegContract_Member) Reset()
- func (m *RegContract_Member) String() string
- func (m *RegContract_Member) XXX_DiscardUnknown()
- func (m *RegContract_Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegContract_Member) XXX_Merge(src proto.Message)
- func (m *RegContract_Member) XXX_Size() int
- func (m *RegContract_Member) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract struct { TotalRedeem []byte `protobuf:"bytes,3,opt,name=totalRedeem,proto3" json:"totalRedeem,omitempty"` Status []*Contract_MemberStatus `protobuf:"bytes,5,rep,name=status,proto3" json:"status,omitempty"` ContractTs *timestamp.Timestamp `protobuf:"bytes,6,opt,name=contractTs,proto3" json:"contractTs,omitempty"` FrozenTo *timestamp.Timestamp `protobuf:"bytes,8,opt,name=frozenTo,proto3" json:"frozenTo,omitempty"` TotalWeight int64 `protobuf:"varint,9,opt,name=totalWeight,proto3" json:"totalWeight,omitempty"` IsFrozen bool `protobuf:"varint,10,opt,name=isFrozen,proto3" json:"isFrozen,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Contract) Descriptor ¶
func (*Contract) GetContractTs ¶
func (*Contract) GetFrozenTo ¶
func (*Contract) GetIsFrozen ¶
func (*Contract) GetStatus ¶
func (m *Contract) GetStatus() []*Contract_MemberStatus
func (*Contract) GetTotalRedeem ¶
func (*Contract) GetTotalWeight ¶
func (*Contract) ProtoMessage ¶
func (*Contract) ProtoMessage()
func (*Contract) XXX_DiscardUnknown ¶
func (m *Contract) XXX_DiscardUnknown()
func (*Contract) XXX_Marshal ¶
func (*Contract) XXX_Unmarshal ¶
type Contract_MemberStatus ¶
type Contract_MemberStatus struct { Weight int32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"` TotalRedeem []byte `protobuf:"bytes,3,opt,name=totalRedeem,proto3" json:"totalRedeem,omitempty"` MemberID *protos.TxAddr `protobuf:"bytes,5,opt,name=memberID,proto3" json:"memberID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Contract_MemberStatus) Descriptor ¶
func (*Contract_MemberStatus) Descriptor() ([]byte, []int)
func (*Contract_MemberStatus) GetMemberID ¶
func (m *Contract_MemberStatus) GetMemberID() *protos.TxAddr
func (*Contract_MemberStatus) GetTotalRedeem ¶
func (m *Contract_MemberStatus) GetTotalRedeem() []byte
func (*Contract_MemberStatus) GetWeight ¶
func (m *Contract_MemberStatus) GetWeight() int32
func (*Contract_MemberStatus) ProtoMessage ¶
func (*Contract_MemberStatus) ProtoMessage()
func (*Contract_MemberStatus) Reset ¶
func (m *Contract_MemberStatus) Reset()
func (*Contract_MemberStatus) String ¶
func (m *Contract_MemberStatus) String() string
func (*Contract_MemberStatus) XXX_DiscardUnknown ¶
func (m *Contract_MemberStatus) XXX_DiscardUnknown()
func (*Contract_MemberStatus) XXX_Marshal ¶
func (m *Contract_MemberStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Contract_MemberStatus) XXX_Merge ¶
func (m *Contract_MemberStatus) XXX_Merge(src proto.Message)
func (*Contract_MemberStatus) XXX_Size ¶
func (m *Contract_MemberStatus) XXX_Size() int
func (*Contract_MemberStatus) XXX_Unmarshal ¶
func (m *Contract_MemberStatus) XXX_Unmarshal(b []byte) error
type Contract_MemberStatus_s ¶
func (*Contract_MemberStatus_s) LoadFromPB ¶
func (n *Contract_MemberStatus_s) LoadFromPB(p *Contract_MemberStatus)
func (*Contract_MemberStatus_s) ToPB ¶
func (n *Contract_MemberStatus_s) ToPB() *Contract_MemberStatus
type Contract_s ¶
type Contract_s struct {
// contains filtered or unexported fields
}
func (*Contract_s) Find ¶
func (con *Contract_s) Find(addr []byte) (Contract_MemberStatus_s, bool)
func (*Contract_s) FindAndAccess ¶
func (con *Contract_s) FindAndAccess(addr []byte) (Contract_MemberStatus_s, int)
func (*Contract_s) GetObject ¶
func (n *Contract_s) GetObject() interface{}
func (*Contract_s) Load ¶
func (n *Contract_s) Load(interface{}) error
func (*Contract_s) LoadFromPB ¶
func (n *Contract_s) LoadFromPB(p *Contract)
func (*Contract_s) Save ¶
func (n *Contract_s) Save() interface{}
func (*Contract_s) Sorter ¶
func (n *Contract_s) Sorter() memberSort
func (*Contract_s) ToPB ¶
func (n *Contract_s) ToPB() *Contract
type QueryContract ¶
type QueryContract struct { ContractAddr *protos.TxAddr `protobuf:"bytes,1,opt,name=contractAddr,proto3" json:"contractAddr,omitempty"` MemberAddr *protos.TxAddr `protobuf:"bytes,2,opt,name=memberAddr,proto3" json:"memberAddr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryContract) Descriptor ¶
func (*QueryContract) Descriptor() ([]byte, []int)
func (*QueryContract) GetAddresses ¶
func (m *QueryContract) GetAddresses() []*tx.Address
func (*QueryContract) GetContractAddr ¶
func (m *QueryContract) GetContractAddr() *protos.TxAddr
func (*QueryContract) GetMemberAddr ¶
func (m *QueryContract) GetMemberAddr() *protos.TxAddr
func (*QueryContract) ProtoMessage ¶
func (*QueryContract) ProtoMessage()
func (*QueryContract) Reset ¶
func (m *QueryContract) Reset()
func (*QueryContract) String ¶
func (m *QueryContract) String() string
func (*QueryContract) XXX_DiscardUnknown ¶
func (m *QueryContract) XXX_DiscardUnknown()
func (*QueryContract) XXX_Marshal ¶
func (m *QueryContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContract) XXX_Merge ¶
func (m *QueryContract) XXX_Merge(src proto.Message)
func (*QueryContract) XXX_Size ¶
func (m *QueryContract) XXX_Size() int
func (*QueryContract) XXX_Unmarshal ¶
func (m *QueryContract) XXX_Unmarshal(b []byte) error
type RedeemContract ¶
type RedeemContract struct { Contract *protos.TxAddr `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` Amount []byte `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` Redeems []*protos.TxAddr `protobuf:"bytes,5,rep,name=redeems,proto3" json:"redeems,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RedeemContract) Descriptor ¶
func (*RedeemContract) Descriptor() ([]byte, []int)
func (*RedeemContract) GetAddresses ¶
func (m *RedeemContract) GetAddresses() (addrs []*tx.Address)
func (*RedeemContract) GetAmount ¶
func (m *RedeemContract) GetAmount() []byte
func (*RedeemContract) GetContract ¶
func (m *RedeemContract) GetContract() *protos.TxAddr
func (*RedeemContract) GetRedeems ¶
func (m *RedeemContract) GetRedeems() []*protos.TxAddr
func (*RedeemContract) ProtoMessage ¶
func (*RedeemContract) ProtoMessage()
func (*RedeemContract) Reset ¶
func (m *RedeemContract) Reset()
func (*RedeemContract) String ¶
func (m *RedeemContract) String() string
func (*RedeemContract) XXX_DiscardUnknown ¶
func (m *RedeemContract) XXX_DiscardUnknown()
func (*RedeemContract) XXX_Marshal ¶
func (m *RedeemContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RedeemContract) XXX_Merge ¶
func (m *RedeemContract) XXX_Merge(src proto.Message)
func (*RedeemContract) XXX_Size ¶
func (m *RedeemContract) XXX_Size() int
func (*RedeemContract) XXX_Unmarshal ¶
func (m *RedeemContract) XXX_Unmarshal(b []byte) error
type RedeemResponse ¶
type RedeemResponse struct { Nonces [][]byte `protobuf:"bytes,1,rep,name=nonces,proto3" json:"nonces,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RedeemResponse) Descriptor ¶
func (*RedeemResponse) Descriptor() ([]byte, []int)
func (*RedeemResponse) GetNonces ¶
func (m *RedeemResponse) GetNonces() [][]byte
func (*RedeemResponse) MarshalJSON ¶
func (m *RedeemResponse) MarshalJSON() ([]byte, error)
func (*RedeemResponse) ProtoMessage ¶
func (*RedeemResponse) ProtoMessage()
func (*RedeemResponse) Reset ¶
func (m *RedeemResponse) Reset()
func (*RedeemResponse) String ¶
func (m *RedeemResponse) String() string
func (*RedeemResponse) XXX_DiscardUnknown ¶
func (m *RedeemResponse) XXX_DiscardUnknown()
func (*RedeemResponse) XXX_Marshal ¶
func (m *RedeemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RedeemResponse) XXX_Merge ¶
func (m *RedeemResponse) XXX_Merge(src proto.Message)
func (*RedeemResponse) XXX_Size ¶
func (m *RedeemResponse) XXX_Size() int
func (*RedeemResponse) XXX_Unmarshal ¶
func (m *RedeemResponse) XXX_Unmarshal(b []byte) error
type RegContract ¶
type RegContract struct { Delegator *protos.TxAddr `protobuf:"bytes,4,opt,name=delegator,proto3" json:"delegator,omitempty"` ContractBody []*RegContract_Member `protobuf:"bytes,5,rep,name=contractBody,proto3" json:"contractBody,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
user can register a public key only if it has own some pais
func (*RegContract) Descriptor ¶
func (*RegContract) Descriptor() ([]byte, []int)
func (*RegContract) GetAddresses ¶
func (m *RegContract) GetAddresses() []*tx.Address
func (*RegContract) GetContractBody ¶
func (m *RegContract) GetContractBody() []*RegContract_Member
func (*RegContract) GetDelegator ¶
func (m *RegContract) GetDelegator() *protos.TxAddr
func (*RegContract) ProtoMessage ¶
func (*RegContract) ProtoMessage()
func (*RegContract) Reset ¶
func (m *RegContract) Reset()
func (*RegContract) String ¶
func (m *RegContract) String() string
func (*RegContract) XXX_DiscardUnknown ¶
func (m *RegContract) XXX_DiscardUnknown()
func (*RegContract) XXX_Marshal ¶
func (m *RegContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegContract) XXX_Merge ¶
func (m *RegContract) XXX_Merge(src proto.Message)
func (*RegContract) XXX_Size ¶
func (m *RegContract) XXX_Size() int
func (*RegContract) XXX_Unmarshal ¶
func (m *RegContract) XXX_Unmarshal(b []byte) error
type RegContract_Member ¶
type RegContract_Member struct { Addr *protos.TxAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Weight int32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RegContract_Member) Descriptor ¶
func (*RegContract_Member) Descriptor() ([]byte, []int)
func (*RegContract_Member) GetAddr ¶
func (m *RegContract_Member) GetAddr() *protos.TxAddr
func (*RegContract_Member) GetWeight ¶
func (m *RegContract_Member) GetWeight() int32
func (*RegContract_Member) ProtoMessage ¶
func (*RegContract_Member) ProtoMessage()
func (*RegContract_Member) Reset ¶
func (m *RegContract_Member) Reset()
func (*RegContract_Member) String ¶
func (m *RegContract_Member) String() string
func (*RegContract_Member) XXX_DiscardUnknown ¶
func (m *RegContract_Member) XXX_DiscardUnknown()
func (*RegContract_Member) XXX_Marshal ¶
func (m *RegContract_Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegContract_Member) XXX_Merge ¶
func (m *RegContract_Member) XXX_Merge(src proto.Message)
func (*RegContract_Member) XXX_Size ¶
func (m *RegContract_Member) XXX_Size() int
func (*RegContract_Member) XXX_Unmarshal ¶
func (m *RegContract_Member) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.