Documentation ¶
Index ¶
- Variables
- type EstablishTokenPayload
- func (*EstablishTokenPayload) Descriptor() ([]byte, []int)
- func (m *EstablishTokenPayload) GetMonetaryPolicy() *TokenMonetaryPolicy
- func (m *EstablishTokenPayload) GetName() string
- func (m *EstablishTokenPayload) Marshal() (dAtA []byte, err error)
- func (m *EstablishTokenPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *EstablishTokenPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EstablishTokenPayload) ProtoMessage()
- func (m *EstablishTokenPayload) Reset()
- func (m *EstablishTokenPayload) Size() (n int)
- func (m *EstablishTokenPayload) String() string
- func (m *EstablishTokenPayload) Unmarshal(dAtA []byte) error
- func (m *EstablishTokenPayload) XXX_DiscardUnknown()
- func (m *EstablishTokenPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EstablishTokenPayload) XXX_Merge(src proto.Message)
- func (m *EstablishTokenPayload) XXX_Size() int
- func (m *EstablishTokenPayload) XXX_Unmarshal(b []byte) error
- type MintTokenPayload
- func (*MintTokenPayload) Descriptor() ([]byte, []int)
- func (m *MintTokenPayload) GetAmount() uint64
- func (m *MintTokenPayload) GetName() string
- func (m *MintTokenPayload) Marshal() (dAtA []byte, err error)
- func (m *MintTokenPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *MintTokenPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MintTokenPayload) ProtoMessage()
- func (m *MintTokenPayload) Reset()
- func (m *MintTokenPayload) Size() (n int)
- func (m *MintTokenPayload) String() string
- func (m *MintTokenPayload) Unmarshal(dAtA []byte) error
- func (m *MintTokenPayload) XXX_DiscardUnknown()
- func (m *MintTokenPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MintTokenPayload) XXX_Merge(src proto.Message)
- func (m *MintTokenPayload) XXX_Size() int
- func (m *MintTokenPayload) XXX_Unmarshal(b []byte) error
- type ReceiveTokenPayload
- func (*ReceiveTokenPayload) Descriptor() ([]byte, []int)
- func (m *ReceiveTokenPayload) GetLeaves() [][]byte
- func (m *ReceiveTokenPayload) GetProof() *gossip.Proof
- func (m *ReceiveTokenPayload) GetSendTokenTransactionId() string
- func (m *ReceiveTokenPayload) GetTip() []byte
- func (m *ReceiveTokenPayload) GetTreeState() *signatures.TreeState
- func (m *ReceiveTokenPayload) Marshal() (dAtA []byte, err error)
- func (m *ReceiveTokenPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *ReceiveTokenPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ReceiveTokenPayload) ProtoMessage()
- func (m *ReceiveTokenPayload) Reset()
- func (m *ReceiveTokenPayload) Size() (n int)
- func (m *ReceiveTokenPayload) String() string
- func (m *ReceiveTokenPayload) Unmarshal(dAtA []byte) error
- func (m *ReceiveTokenPayload) XXX_DiscardUnknown()
- func (m *ReceiveTokenPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceiveTokenPayload) XXX_Merge(src proto.Message)
- func (m *ReceiveTokenPayload) XXX_Size() int
- func (m *ReceiveTokenPayload) XXX_Unmarshal(b []byte) error
- type SendTokenPayload
- func (*SendTokenPayload) Descriptor() ([]byte, []int)
- func (m *SendTokenPayload) GetAmount() uint64
- func (m *SendTokenPayload) GetDestination() string
- func (m *SendTokenPayload) GetId() string
- func (m *SendTokenPayload) GetName() string
- func (m *SendTokenPayload) Marshal() (dAtA []byte, err error)
- func (m *SendTokenPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *SendTokenPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SendTokenPayload) ProtoMessage()
- func (m *SendTokenPayload) Reset()
- func (m *SendTokenPayload) Size() (n int)
- func (m *SendTokenPayload) String() string
- func (m *SendTokenPayload) Unmarshal(dAtA []byte) error
- func (m *SendTokenPayload) XXX_DiscardUnknown()
- func (m *SendTokenPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendTokenPayload) XXX_Merge(src proto.Message)
- func (m *SendTokenPayload) XXX_Size() int
- func (m *SendTokenPayload) XXX_Unmarshal(b []byte) error
- type SetDataPayload
- func (*SetDataPayload) Descriptor() ([]byte, []int)
- func (m *SetDataPayload) GetPath() string
- func (m *SetDataPayload) GetValue() []byte
- func (m *SetDataPayload) Marshal() (dAtA []byte, err error)
- func (m *SetDataPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *SetDataPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SetDataPayload) ProtoMessage()
- func (m *SetDataPayload) Reset()
- func (m *SetDataPayload) Size() (n int)
- func (m *SetDataPayload) String() string
- func (m *SetDataPayload) Unmarshal(dAtA []byte) error
- func (m *SetDataPayload) XXX_DiscardUnknown()
- func (m *SetDataPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetDataPayload) XXX_Merge(src proto.Message)
- func (m *SetDataPayload) XXX_Size() int
- func (m *SetDataPayload) XXX_Unmarshal(b []byte) error
- type SetOwnershipPayload
- func (*SetOwnershipPayload) Descriptor() ([]byte, []int)
- func (m *SetOwnershipPayload) GetAuthentication() []string
- func (m *SetOwnershipPayload) Marshal() (dAtA []byte, err error)
- func (m *SetOwnershipPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *SetOwnershipPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SetOwnershipPayload) ProtoMessage()
- func (m *SetOwnershipPayload) Reset()
- func (m *SetOwnershipPayload) Size() (n int)
- func (m *SetOwnershipPayload) String() string
- func (m *SetOwnershipPayload) Unmarshal(dAtA []byte) error
- func (m *SetOwnershipPayload) XXX_DiscardUnknown()
- func (m *SetOwnershipPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetOwnershipPayload) XXX_Merge(src proto.Message)
- func (m *SetOwnershipPayload) XXX_Size() int
- func (m *SetOwnershipPayload) XXX_Unmarshal(b []byte) error
- type StakePayload
- func (*StakePayload) Descriptor() ([]byte, []int)
- func (m *StakePayload) GetAmount() uint64
- func (m *StakePayload) GetDstKey() *signatures.PublicKey
- func (m *StakePayload) GetGroupId() string
- func (m *StakePayload) GetVerKey() *signatures.PublicKey
- func (m *StakePayload) Marshal() (dAtA []byte, err error)
- func (m *StakePayload) MarshalTo(dAtA []byte) (int, error)
- func (m *StakePayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StakePayload) ProtoMessage()
- func (m *StakePayload) Reset()
- func (m *StakePayload) Size() (n int)
- func (m *StakePayload) String() string
- func (m *StakePayload) Unmarshal(dAtA []byte) error
- func (m *StakePayload) XXX_DiscardUnknown()
- func (m *StakePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StakePayload) XXX_Merge(src proto.Message)
- func (m *StakePayload) XXX_Size() int
- func (m *StakePayload) XXX_Unmarshal(b []byte) error
- type TokenMonetaryPolicy
- func (*TokenMonetaryPolicy) Descriptor() ([]byte, []int)
- func (m *TokenMonetaryPolicy) GetMaximum() uint64
- func (m *TokenMonetaryPolicy) Marshal() (dAtA []byte, err error)
- func (m *TokenMonetaryPolicy) MarshalTo(dAtA []byte) (int, error)
- func (m *TokenMonetaryPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TokenMonetaryPolicy) ProtoMessage()
- func (m *TokenMonetaryPolicy) Reset()
- func (m *TokenMonetaryPolicy) Size() (n int)
- func (m *TokenMonetaryPolicy) String() string
- func (m *TokenMonetaryPolicy) Unmarshal(dAtA []byte) error
- func (m *TokenMonetaryPolicy) XXX_DiscardUnknown()
- func (m *TokenMonetaryPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenMonetaryPolicy) XXX_Merge(src proto.Message)
- func (m *TokenMonetaryPolicy) XXX_Size() int
- func (m *TokenMonetaryPolicy) XXX_Unmarshal(b []byte) error
- type TokenPayload
- func (*TokenPayload) Descriptor() ([]byte, []int)
- func (m *TokenPayload) GetLeaves() [][]byte
- func (m *TokenPayload) GetProof() *gossip.Proof
- func (m *TokenPayload) GetTip() string
- func (m *TokenPayload) GetTransactionId() string
- func (m *TokenPayload) GetTreeState() *signatures.TreeState
- func (m *TokenPayload) Marshal() (dAtA []byte, err error)
- func (m *TokenPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *TokenPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TokenPayload) ProtoMessage()
- func (m *TokenPayload) Reset()
- func (m *TokenPayload) Size() (n int)
- func (m *TokenPayload) String() string
- func (m *TokenPayload) Unmarshal(dAtA []byte) error
- func (m *TokenPayload) XXX_DiscardUnknown()
- func (m *TokenPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenPayload) XXX_Merge(src proto.Message)
- func (m *TokenPayload) XXX_Size() int
- func (m *TokenPayload) XXX_Unmarshal(b []byte) error
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)
- func (txn *Transaction) EnsureEstablishTokenPayload() (*EstablishTokenPayload, error)
- func (txn *Transaction) EnsureMintTokenPayload() (*MintTokenPayload, error)
- func (txn *Transaction) EnsureReceiveTokenPayload() (*ReceiveTokenPayload, error)
- func (txn *Transaction) EnsureSendTokenPayload() (*SendTokenPayload, error)
- func (txn *Transaction) EnsureSetDataPayload() (*SetDataPayload, error)
- func (txn *Transaction) EnsureSetOwnershipPayload() (*SetOwnershipPayload, error)
- func (txn *Transaction) EnsureStakePayload() (*StakePayload, error)
- func (m *Transaction) GetEstablishTokenPayload() *EstablishTokenPayload
- func (m *Transaction) GetMintTokenPayload() *MintTokenPayload
- func (m *Transaction) GetReceiveTokenPayload() *ReceiveTokenPayload
- func (m *Transaction) GetSendTokenPayload() *SendTokenPayload
- func (m *Transaction) GetSetDataPayload() *SetDataPayload
- func (m *Transaction) GetSetOwnershipPayload() *SetOwnershipPayload
- func (m *Transaction) GetStakePayload() *StakePayload
- func (m *Transaction) GetType() Transaction_Type
- func (m *Transaction) Marshal() (dAtA []byte, err error)
- func (m *Transaction) MarshalTo(dAtA []byte) (int, error)
- func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Transaction) ProtoMessage()
- func (m *Transaction) Reset()
- func (m *Transaction) Size() (n int)
- func (m *Transaction) String() string
- func (m *Transaction) Unmarshal(dAtA []byte) error
- func (m *Transaction) XXX_DiscardUnknown()
- func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Transaction) XXX_Merge(src proto.Message)
- func (m *Transaction) XXX_Size() int
- func (m *Transaction) XXX_Unmarshal(b []byte) error
- type Transaction_Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthTransactions = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTransactions = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTransactions = fmt.Errorf("proto: unexpected end of group") )
View Source
var Transaction_Type_name = map[int32]string{
0: "UNKNOWN",
1: "SETDATA",
2: "SETOWNERSHIP",
3: "ESTABLISHTOKEN",
4: "MINTTOKEN",
5: "SENDTOKEN",
6: "RECEIVETOKEN",
7: "STAKE",
}
View Source
var Transaction_Type_value = map[string]int32{
"UNKNOWN": 0,
"SETDATA": 1,
"SETOWNERSHIP": 2,
"ESTABLISHTOKEN": 3,
"MINTTOKEN": 4,
"SENDTOKEN": 5,
"RECEIVETOKEN": 6,
"STAKE": 7,
}
Functions ¶
This section is empty.
Types ¶
type EstablishTokenPayload ¶
type EstablishTokenPayload struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` MonetaryPolicy *TokenMonetaryPolicy `protobuf:"bytes,2,opt,name=monetary_policy,json=monetaryPolicy,proto3" json:"monetary_policy,omitempty"` }
func (*EstablishTokenPayload) Descriptor ¶
func (*EstablishTokenPayload) Descriptor() ([]byte, []int)
func (*EstablishTokenPayload) GetMonetaryPolicy ¶
func (m *EstablishTokenPayload) GetMonetaryPolicy() *TokenMonetaryPolicy
func (*EstablishTokenPayload) GetName ¶
func (m *EstablishTokenPayload) GetName() string
func (*EstablishTokenPayload) Marshal ¶
func (m *EstablishTokenPayload) Marshal() (dAtA []byte, err error)
func (*EstablishTokenPayload) MarshalTo ¶
func (m *EstablishTokenPayload) MarshalTo(dAtA []byte) (int, error)
func (*EstablishTokenPayload) MarshalToSizedBuffer ¶
func (m *EstablishTokenPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EstablishTokenPayload) ProtoMessage ¶
func (*EstablishTokenPayload) ProtoMessage()
func (*EstablishTokenPayload) Reset ¶
func (m *EstablishTokenPayload) Reset()
func (*EstablishTokenPayload) Size ¶
func (m *EstablishTokenPayload) Size() (n int)
func (*EstablishTokenPayload) String ¶
func (m *EstablishTokenPayload) String() string
func (*EstablishTokenPayload) Unmarshal ¶
func (m *EstablishTokenPayload) Unmarshal(dAtA []byte) error
func (*EstablishTokenPayload) XXX_DiscardUnknown ¶
func (m *EstablishTokenPayload) XXX_DiscardUnknown()
func (*EstablishTokenPayload) XXX_Marshal ¶
func (m *EstablishTokenPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EstablishTokenPayload) XXX_Merge ¶
func (m *EstablishTokenPayload) XXX_Merge(src proto.Message)
func (*EstablishTokenPayload) XXX_Size ¶
func (m *EstablishTokenPayload) XXX_Size() int
func (*EstablishTokenPayload) XXX_Unmarshal ¶
func (m *EstablishTokenPayload) XXX_Unmarshal(b []byte) error
type MintTokenPayload ¶
type MintTokenPayload struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` }
func (*MintTokenPayload) Descriptor ¶
func (*MintTokenPayload) Descriptor() ([]byte, []int)
func (*MintTokenPayload) GetAmount ¶
func (m *MintTokenPayload) GetAmount() uint64
func (*MintTokenPayload) GetName ¶
func (m *MintTokenPayload) GetName() string
func (*MintTokenPayload) Marshal ¶
func (m *MintTokenPayload) Marshal() (dAtA []byte, err error)
func (*MintTokenPayload) MarshalToSizedBuffer ¶
func (m *MintTokenPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MintTokenPayload) ProtoMessage ¶
func (*MintTokenPayload) ProtoMessage()
func (*MintTokenPayload) Reset ¶
func (m *MintTokenPayload) Reset()
func (*MintTokenPayload) Size ¶
func (m *MintTokenPayload) Size() (n int)
func (*MintTokenPayload) String ¶
func (m *MintTokenPayload) String() string
func (*MintTokenPayload) Unmarshal ¶
func (m *MintTokenPayload) Unmarshal(dAtA []byte) error
func (*MintTokenPayload) XXX_DiscardUnknown ¶
func (m *MintTokenPayload) XXX_DiscardUnknown()
func (*MintTokenPayload) XXX_Marshal ¶
func (m *MintTokenPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MintTokenPayload) XXX_Merge ¶
func (m *MintTokenPayload) XXX_Merge(src proto.Message)
func (*MintTokenPayload) XXX_Size ¶
func (m *MintTokenPayload) XXX_Size() int
func (*MintTokenPayload) XXX_Unmarshal ¶
func (m *MintTokenPayload) XXX_Unmarshal(b []byte) error
type ReceiveTokenPayload ¶
type ReceiveTokenPayload struct { SendTokenTransactionId string `` /* 131-byte string literal not displayed */ Tip []byte `protobuf:"bytes,2,opt,name=tip,proto3" json:"tip,omitempty"` TreeState *signatures.TreeState `protobuf:"bytes,3,opt,name=tree_state,json=treeState,proto3" json:"tree_state,omitempty"` Leaves [][]byte `protobuf:"bytes,4,rep,name=Leaves,proto3" json:"Leaves,omitempty"` Proof *gossip.Proof `protobuf:"bytes,5,opt,name=proof,proto3" json:"proof,omitempty"` }
func (*ReceiveTokenPayload) Descriptor ¶
func (*ReceiveTokenPayload) Descriptor() ([]byte, []int)
func (*ReceiveTokenPayload) GetLeaves ¶
func (m *ReceiveTokenPayload) GetLeaves() [][]byte
func (*ReceiveTokenPayload) GetProof ¶
func (m *ReceiveTokenPayload) GetProof() *gossip.Proof
func (*ReceiveTokenPayload) GetSendTokenTransactionId ¶
func (m *ReceiveTokenPayload) GetSendTokenTransactionId() string
func (*ReceiveTokenPayload) GetTip ¶
func (m *ReceiveTokenPayload) GetTip() []byte
func (*ReceiveTokenPayload) GetTreeState ¶
func (m *ReceiveTokenPayload) GetTreeState() *signatures.TreeState
func (*ReceiveTokenPayload) Marshal ¶
func (m *ReceiveTokenPayload) Marshal() (dAtA []byte, err error)
func (*ReceiveTokenPayload) MarshalTo ¶
func (m *ReceiveTokenPayload) MarshalTo(dAtA []byte) (int, error)
func (*ReceiveTokenPayload) MarshalToSizedBuffer ¶
func (m *ReceiveTokenPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ReceiveTokenPayload) ProtoMessage ¶
func (*ReceiveTokenPayload) ProtoMessage()
func (*ReceiveTokenPayload) Reset ¶
func (m *ReceiveTokenPayload) Reset()
func (*ReceiveTokenPayload) Size ¶
func (m *ReceiveTokenPayload) Size() (n int)
func (*ReceiveTokenPayload) String ¶
func (m *ReceiveTokenPayload) String() string
func (*ReceiveTokenPayload) Unmarshal ¶
func (m *ReceiveTokenPayload) Unmarshal(dAtA []byte) error
func (*ReceiveTokenPayload) XXX_DiscardUnknown ¶
func (m *ReceiveTokenPayload) XXX_DiscardUnknown()
func (*ReceiveTokenPayload) XXX_Marshal ¶
func (m *ReceiveTokenPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReceiveTokenPayload) XXX_Merge ¶
func (m *ReceiveTokenPayload) XXX_Merge(src proto.Message)
func (*ReceiveTokenPayload) XXX_Size ¶
func (m *ReceiveTokenPayload) XXX_Size() int
func (*ReceiveTokenPayload) XXX_Unmarshal ¶
func (m *ReceiveTokenPayload) XXX_Unmarshal(b []byte) error
type SendTokenPayload ¶
type SendTokenPayload struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` Destination string `protobuf:"bytes,4,opt,name=destination,proto3" json:"destination,omitempty"` }
func (*SendTokenPayload) Descriptor ¶
func (*SendTokenPayload) Descriptor() ([]byte, []int)
func (*SendTokenPayload) GetAmount ¶
func (m *SendTokenPayload) GetAmount() uint64
func (*SendTokenPayload) GetDestination ¶
func (m *SendTokenPayload) GetDestination() string
func (*SendTokenPayload) GetId ¶
func (m *SendTokenPayload) GetId() string
func (*SendTokenPayload) GetName ¶
func (m *SendTokenPayload) GetName() string
func (*SendTokenPayload) Marshal ¶
func (m *SendTokenPayload) Marshal() (dAtA []byte, err error)
func (*SendTokenPayload) MarshalToSizedBuffer ¶
func (m *SendTokenPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SendTokenPayload) ProtoMessage ¶
func (*SendTokenPayload) ProtoMessage()
func (*SendTokenPayload) Reset ¶
func (m *SendTokenPayload) Reset()
func (*SendTokenPayload) Size ¶
func (m *SendTokenPayload) Size() (n int)
func (*SendTokenPayload) String ¶
func (m *SendTokenPayload) String() string
func (*SendTokenPayload) Unmarshal ¶
func (m *SendTokenPayload) Unmarshal(dAtA []byte) error
func (*SendTokenPayload) XXX_DiscardUnknown ¶
func (m *SendTokenPayload) XXX_DiscardUnknown()
func (*SendTokenPayload) XXX_Marshal ¶
func (m *SendTokenPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendTokenPayload) XXX_Merge ¶
func (m *SendTokenPayload) XXX_Merge(src proto.Message)
func (*SendTokenPayload) XXX_Size ¶
func (m *SendTokenPayload) XXX_Size() int
func (*SendTokenPayload) XXX_Unmarshal ¶
func (m *SendTokenPayload) XXX_Unmarshal(b []byte) error
type SetDataPayload ¶
type SetDataPayload struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` }
func (*SetDataPayload) Descriptor ¶
func (*SetDataPayload) Descriptor() ([]byte, []int)
func (*SetDataPayload) GetPath ¶
func (m *SetDataPayload) GetPath() string
func (*SetDataPayload) GetValue ¶
func (m *SetDataPayload) GetValue() []byte
func (*SetDataPayload) Marshal ¶
func (m *SetDataPayload) Marshal() (dAtA []byte, err error)
func (*SetDataPayload) MarshalToSizedBuffer ¶
func (m *SetDataPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SetDataPayload) ProtoMessage ¶
func (*SetDataPayload) ProtoMessage()
func (*SetDataPayload) Reset ¶
func (m *SetDataPayload) Reset()
func (*SetDataPayload) Size ¶
func (m *SetDataPayload) Size() (n int)
func (*SetDataPayload) String ¶
func (m *SetDataPayload) String() string
func (*SetDataPayload) Unmarshal ¶
func (m *SetDataPayload) Unmarshal(dAtA []byte) error
func (*SetDataPayload) XXX_DiscardUnknown ¶
func (m *SetDataPayload) XXX_DiscardUnknown()
func (*SetDataPayload) XXX_Marshal ¶
func (m *SetDataPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetDataPayload) XXX_Merge ¶
func (m *SetDataPayload) XXX_Merge(src proto.Message)
func (*SetDataPayload) XXX_Size ¶
func (m *SetDataPayload) XXX_Size() int
func (*SetDataPayload) XXX_Unmarshal ¶
func (m *SetDataPayload) XXX_Unmarshal(b []byte) error
type SetOwnershipPayload ¶
type SetOwnershipPayload struct {
Authentication []string `protobuf:"bytes,1,rep,name=authentication,proto3" json:"authentication,omitempty"`
}
func (*SetOwnershipPayload) Descriptor ¶
func (*SetOwnershipPayload) Descriptor() ([]byte, []int)
func (*SetOwnershipPayload) GetAuthentication ¶
func (m *SetOwnershipPayload) GetAuthentication() []string
func (*SetOwnershipPayload) Marshal ¶
func (m *SetOwnershipPayload) Marshal() (dAtA []byte, err error)
func (*SetOwnershipPayload) MarshalTo ¶
func (m *SetOwnershipPayload) MarshalTo(dAtA []byte) (int, error)
func (*SetOwnershipPayload) MarshalToSizedBuffer ¶
func (m *SetOwnershipPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SetOwnershipPayload) ProtoMessage ¶
func (*SetOwnershipPayload) ProtoMessage()
func (*SetOwnershipPayload) Reset ¶
func (m *SetOwnershipPayload) Reset()
func (*SetOwnershipPayload) Size ¶
func (m *SetOwnershipPayload) Size() (n int)
func (*SetOwnershipPayload) String ¶
func (m *SetOwnershipPayload) String() string
func (*SetOwnershipPayload) Unmarshal ¶
func (m *SetOwnershipPayload) Unmarshal(dAtA []byte) error
func (*SetOwnershipPayload) XXX_DiscardUnknown ¶
func (m *SetOwnershipPayload) XXX_DiscardUnknown()
func (*SetOwnershipPayload) XXX_Marshal ¶
func (m *SetOwnershipPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetOwnershipPayload) XXX_Merge ¶
func (m *SetOwnershipPayload) XXX_Merge(src proto.Message)
func (*SetOwnershipPayload) XXX_Size ¶
func (m *SetOwnershipPayload) XXX_Size() int
func (*SetOwnershipPayload) XXX_Unmarshal ¶
func (m *SetOwnershipPayload) XXX_Unmarshal(b []byte) error
type StakePayload ¶
type StakePayload struct { GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` DstKey *signatures.PublicKey `protobuf:"bytes,3,opt,name=dst_key,json=dstKey,proto3" json:"dst_key,omitempty"` VerKey *signatures.PublicKey `protobuf:"bytes,4,opt,name=ver_key,json=verKey,proto3" json:"ver_key,omitempty"` }
func (*StakePayload) Descriptor ¶
func (*StakePayload) Descriptor() ([]byte, []int)
func (*StakePayload) GetAmount ¶
func (m *StakePayload) GetAmount() uint64
func (*StakePayload) GetDstKey ¶
func (m *StakePayload) GetDstKey() *signatures.PublicKey
func (*StakePayload) GetGroupId ¶
func (m *StakePayload) GetGroupId() string
func (*StakePayload) GetVerKey ¶
func (m *StakePayload) GetVerKey() *signatures.PublicKey
func (*StakePayload) Marshal ¶
func (m *StakePayload) Marshal() (dAtA []byte, err error)
func (*StakePayload) MarshalToSizedBuffer ¶
func (m *StakePayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StakePayload) ProtoMessage ¶
func (*StakePayload) ProtoMessage()
func (*StakePayload) Reset ¶
func (m *StakePayload) Reset()
func (*StakePayload) Size ¶
func (m *StakePayload) Size() (n int)
func (*StakePayload) String ¶
func (m *StakePayload) String() string
func (*StakePayload) Unmarshal ¶
func (m *StakePayload) Unmarshal(dAtA []byte) error
func (*StakePayload) XXX_DiscardUnknown ¶
func (m *StakePayload) XXX_DiscardUnknown()
func (*StakePayload) XXX_Marshal ¶
func (m *StakePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StakePayload) XXX_Merge ¶
func (m *StakePayload) XXX_Merge(src proto.Message)
func (*StakePayload) XXX_Size ¶
func (m *StakePayload) XXX_Size() int
func (*StakePayload) XXX_Unmarshal ¶
func (m *StakePayload) XXX_Unmarshal(b []byte) error
type TokenMonetaryPolicy ¶
type TokenMonetaryPolicy struct {
Maximum uint64 `protobuf:"varint,1,opt,name=maximum,proto3" json:"maximum,omitempty"`
}
func (*TokenMonetaryPolicy) Descriptor ¶
func (*TokenMonetaryPolicy) Descriptor() ([]byte, []int)
func (*TokenMonetaryPolicy) GetMaximum ¶
func (m *TokenMonetaryPolicy) GetMaximum() uint64
func (*TokenMonetaryPolicy) Marshal ¶
func (m *TokenMonetaryPolicy) Marshal() (dAtA []byte, err error)
func (*TokenMonetaryPolicy) MarshalTo ¶
func (m *TokenMonetaryPolicy) MarshalTo(dAtA []byte) (int, error)
func (*TokenMonetaryPolicy) MarshalToSizedBuffer ¶
func (m *TokenMonetaryPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TokenMonetaryPolicy) ProtoMessage ¶
func (*TokenMonetaryPolicy) ProtoMessage()
func (*TokenMonetaryPolicy) Reset ¶
func (m *TokenMonetaryPolicy) Reset()
func (*TokenMonetaryPolicy) Size ¶
func (m *TokenMonetaryPolicy) Size() (n int)
func (*TokenMonetaryPolicy) String ¶
func (m *TokenMonetaryPolicy) String() string
func (*TokenMonetaryPolicy) Unmarshal ¶
func (m *TokenMonetaryPolicy) Unmarshal(dAtA []byte) error
func (*TokenMonetaryPolicy) XXX_DiscardUnknown ¶
func (m *TokenMonetaryPolicy) XXX_DiscardUnknown()
func (*TokenMonetaryPolicy) XXX_Marshal ¶
func (m *TokenMonetaryPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenMonetaryPolicy) XXX_Merge ¶
func (m *TokenMonetaryPolicy) XXX_Merge(src proto.Message)
func (*TokenMonetaryPolicy) XXX_Size ¶
func (m *TokenMonetaryPolicy) XXX_Size() int
func (*TokenMonetaryPolicy) XXX_Unmarshal ¶
func (m *TokenMonetaryPolicy) XXX_Unmarshal(b []byte) error
type TokenPayload ¶
type TokenPayload struct { TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` Tip string `protobuf:"bytes,2,opt,name=tip,proto3" json:"tip,omitempty"` TreeState *signatures.TreeState `protobuf:"bytes,3,opt,name=tree_state,json=treeState,proto3" json:"tree_state,omitempty"` Leaves [][]byte `protobuf:"bytes,4,rep,name=leaves,proto3" json:"leaves,omitempty"` Proof *gossip.Proof `protobuf:"bytes,5,opt,name=proof,proto3" json:"proof,omitempty"` }
func (*TokenPayload) Descriptor ¶
func (*TokenPayload) Descriptor() ([]byte, []int)
func (*TokenPayload) GetLeaves ¶
func (m *TokenPayload) GetLeaves() [][]byte
func (*TokenPayload) GetProof ¶
func (m *TokenPayload) GetProof() *gossip.Proof
func (*TokenPayload) GetTip ¶
func (m *TokenPayload) GetTip() string
func (*TokenPayload) GetTransactionId ¶
func (m *TokenPayload) GetTransactionId() string
func (*TokenPayload) GetTreeState ¶
func (m *TokenPayload) GetTreeState() *signatures.TreeState
func (*TokenPayload) Marshal ¶
func (m *TokenPayload) Marshal() (dAtA []byte, err error)
func (*TokenPayload) MarshalToSizedBuffer ¶
func (m *TokenPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TokenPayload) ProtoMessage ¶
func (*TokenPayload) ProtoMessage()
func (*TokenPayload) Reset ¶
func (m *TokenPayload) Reset()
func (*TokenPayload) Size ¶
func (m *TokenPayload) Size() (n int)
func (*TokenPayload) String ¶
func (m *TokenPayload) String() string
func (*TokenPayload) Unmarshal ¶
func (m *TokenPayload) Unmarshal(dAtA []byte) error
func (*TokenPayload) XXX_DiscardUnknown ¶
func (m *TokenPayload) XXX_DiscardUnknown()
func (*TokenPayload) XXX_Marshal ¶
func (m *TokenPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenPayload) XXX_Merge ¶
func (m *TokenPayload) XXX_Merge(src proto.Message)
func (*TokenPayload) XXX_Size ¶
func (m *TokenPayload) XXX_Size() int
func (*TokenPayload) XXX_Unmarshal ¶
func (m *TokenPayload) XXX_Unmarshal(b []byte) error
type Transaction ¶
type Transaction struct { Type Transaction_Type `protobuf:"varint,1,opt,name=type,proto3,enum=v2transactions.Transaction_Type" json:"type,omitempty"` SetDataPayload *SetDataPayload `protobuf:"bytes,2,opt,name=set_data_payload,json=setDataPayload,proto3" json:"set_data_payload,omitempty"` SetOwnershipPayload *SetOwnershipPayload `protobuf:"bytes,3,opt,name=set_ownership_payload,json=setOwnershipPayload,proto3" json:"set_ownership_payload,omitempty"` EstablishTokenPayload *EstablishTokenPayload `` /* 126-byte string literal not displayed */ MintTokenPayload *MintTokenPayload `protobuf:"bytes,5,opt,name=mint_token_payload,json=mintTokenPayload,proto3" json:"mint_token_payload,omitempty"` SendTokenPayload *SendTokenPayload `protobuf:"bytes,6,opt,name=send_token_payload,json=sendTokenPayload,proto3" json:"send_token_payload,omitempty"` ReceiveTokenPayload *ReceiveTokenPayload `protobuf:"bytes,7,opt,name=receive_token_payload,json=receiveTokenPayload,proto3" json:"receive_token_payload,omitempty"` StakePayload *StakePayload `protobuf:"bytes,8,opt,name=stake_payload,json=stakePayload,proto3" json:"stake_payload,omitempty"` }
func (*Transaction) Descriptor ¶
func (*Transaction) Descriptor() ([]byte, []int)
func (*Transaction) EnsureEstablishTokenPayload ¶
func (txn *Transaction) EnsureEstablishTokenPayload() (*EstablishTokenPayload, error)
func (*Transaction) EnsureMintTokenPayload ¶
func (txn *Transaction) EnsureMintTokenPayload() (*MintTokenPayload, error)
func (*Transaction) EnsureReceiveTokenPayload ¶
func (txn *Transaction) EnsureReceiveTokenPayload() (*ReceiveTokenPayload, error)
func (*Transaction) EnsureSendTokenPayload ¶
func (txn *Transaction) EnsureSendTokenPayload() (*SendTokenPayload, error)
func (*Transaction) EnsureSetDataPayload ¶
func (txn *Transaction) EnsureSetDataPayload() (*SetDataPayload, error)
func (*Transaction) EnsureSetOwnershipPayload ¶
func (txn *Transaction) EnsureSetOwnershipPayload() (*SetOwnershipPayload, error)
func (*Transaction) EnsureStakePayload ¶
func (txn *Transaction) EnsureStakePayload() (*StakePayload, error)
func (*Transaction) GetEstablishTokenPayload ¶
func (m *Transaction) GetEstablishTokenPayload() *EstablishTokenPayload
func (*Transaction) GetMintTokenPayload ¶
func (m *Transaction) GetMintTokenPayload() *MintTokenPayload
func (*Transaction) GetReceiveTokenPayload ¶
func (m *Transaction) GetReceiveTokenPayload() *ReceiveTokenPayload
func (*Transaction) GetSendTokenPayload ¶
func (m *Transaction) GetSendTokenPayload() *SendTokenPayload
func (*Transaction) GetSetDataPayload ¶
func (m *Transaction) GetSetDataPayload() *SetDataPayload
func (*Transaction) GetSetOwnershipPayload ¶
func (m *Transaction) GetSetOwnershipPayload() *SetOwnershipPayload
func (*Transaction) GetStakePayload ¶
func (m *Transaction) GetStakePayload() *StakePayload
func (*Transaction) GetType ¶
func (m *Transaction) GetType() Transaction_Type
func (*Transaction) Marshal ¶
func (m *Transaction) Marshal() (dAtA []byte, err error)
func (*Transaction) MarshalToSizedBuffer ¶
func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) Reset ¶
func (m *Transaction) Reset()
func (*Transaction) Size ¶
func (m *Transaction) Size() (n int)
func (*Transaction) String ¶
func (m *Transaction) String() string
func (*Transaction) Unmarshal ¶
func (m *Transaction) Unmarshal(dAtA []byte) error
func (*Transaction) XXX_DiscardUnknown ¶
func (m *Transaction) XXX_DiscardUnknown()
func (*Transaction) XXX_Marshal ¶
func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Transaction) XXX_Merge ¶
func (m *Transaction) XXX_Merge(src proto.Message)
func (*Transaction) XXX_Size ¶
func (m *Transaction) XXX_Size() int
func (*Transaction) XXX_Unmarshal ¶
func (m *Transaction) XXX_Unmarshal(b []byte) error
type Transaction_Type ¶
type Transaction_Type int32
const ( Transaction_UNKNOWN Transaction_Type = 0 Transaction_SETDATA Transaction_Type = 1 Transaction_SETOWNERSHIP Transaction_Type = 2 Transaction_ESTABLISHTOKEN Transaction_Type = 3 Transaction_MINTTOKEN Transaction_Type = 4 Transaction_SENDTOKEN Transaction_Type = 5 Transaction_RECEIVETOKEN Transaction_Type = 6 Transaction_STAKE Transaction_Type = 7 )
func (Transaction_Type) EnumDescriptor ¶
func (Transaction_Type) EnumDescriptor() ([]byte, []int)
func (Transaction_Type) String ¶
func (x Transaction_Type) String() string
Click to show internal directories.
Click to hide internal directories.