Documentation ¶
Overview ¶
Package ccprotos is a generated protocol buffer package.
It is generated from these files:
tokentx.proto
It has these top-level messages:
SimpleFund QueryToken QueryTransfer QueryGlobal BaseToken Assign FuncRecord AccountData NonceData TokenGlobalData MultiTokenMsg
Index ¶
- Variables
- type AccountData
- type AccountData_s
- type Assign
- type BaseToken
- type FuncRecord
- type FuncRecord_s
- type MultiTokenMsg
- func (*MultiTokenMsg) Descriptor() ([]byte, []int)
- func (m *MultiTokenMsg) GetAddresses() []*tx.Address
- func (m *MultiTokenMsg) GetFund() *SimpleFund
- func (m *MultiTokenMsg) GetInit() *BaseToken
- func (m *MultiTokenMsg) GetMsg() isMultiTokenMsg_Msg
- func (m *MultiTokenMsg) GetQuery() *QueryToken
- func (m *MultiTokenMsg) GetTokenName() string
- func (m *MultiTokenMsg) MsgDetail() interface{}
- func (*MultiTokenMsg) ProtoMessage()
- func (m *MultiTokenMsg) Reset()
- func (m *MultiTokenMsg) String() string
- func (*MultiTokenMsg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type MultiTokenMsg_Fund
- type MultiTokenMsg_Init
- type MultiTokenMsg_Query
- type NonceData
- func (*NonceData) Descriptor() ([]byte, []int)
- func (m *NonceData) GetAmount() []byte
- func (m *NonceData) GetFromLast() *FuncRecord
- func (m *NonceData) GetNonceTime() *google_protobuf.Timestamp
- func (m *NonceData) GetNoncekey() []byte
- func (m *NonceData) GetOther() isNonceData_Other
- func (m *NonceData) GetToLast() *FuncRecord
- func (m *NonceData) GetTxid() string
- func (*NonceData) ProtoMessage()
- func (m *NonceData) Reset()
- func (m *NonceData) String() string
- func (*NonceData) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type NonceData_NonceTime
- type NonceData_Noncekey
- type NonceData_s
- type NonceKey
- type QueryGlobal
- type QueryToken
- type QueryToken_Formats
- type QueryTransfer
- type SimpleFund
- func (*SimpleFund) Descriptor() ([]byte, []int)
- func (m *SimpleFund) GetAddresses() []*tx.Address
- func (m *SimpleFund) GetAmount() []byte
- func (m *SimpleFund) GetFrom() *protos.TxAddr
- func (m *SimpleFund) GetTo() *protos.TxAddr
- func (m *SimpleFund) MsgDetail() interface{}
- func (*SimpleFund) ProtoMessage()
- func (m *SimpleFund) Reset()
- func (m *SimpleFund) String() string
- type TokenGlobalData
- type TokenGlobalData_s
Constants ¶
This section is empty.
Variables ¶
View Source
var NewTransferEvent transferEvt
View Source
var QueryToken_Formats_name = map[int32]string{
0: "NUMBER",
1: "ENCODED",
}
View Source
var QueryToken_Formats_value = map[string]int32{
"NUMBER": 0,
"ENCODED": 1,
}
Functions ¶
This section is empty.
Types ¶
type AccountData ¶
type AccountData struct { Balance []byte `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` LastFund *FuncRecord `protobuf:"bytes,2,opt,name=lastFund" json:"lastFund,omitempty"` }
func (*AccountData) Descriptor ¶
func (*AccountData) Descriptor() ([]byte, []int)
func (*AccountData) GetBalance ¶
func (m *AccountData) GetBalance() []byte
func (*AccountData) GetLastFund ¶
func (m *AccountData) GetLastFund() *FuncRecord
func (*AccountData) ProtoMessage ¶
func (*AccountData) ProtoMessage()
func (*AccountData) Reset ¶
func (m *AccountData) Reset()
func (*AccountData) String ¶
func (m *AccountData) String() string
type AccountData_s ¶
type AccountData_s struct {
// contains filtered or unexported fields
}
func (*AccountData_s) GetObject ¶
func (n *AccountData_s) GetObject() interface{}
func (*AccountData_s) Load ¶
func (n *AccountData_s) Load(interface{}) error
func (*AccountData_s) LoadFromPB ¶
func (n *AccountData_s) LoadFromPB(p *AccountData)
func (*AccountData_s) Save ¶
func (n *AccountData_s) Save() interface{}
func (*AccountData_s) ToPB ¶
func (n *AccountData_s) ToPB() *AccountData
type Assign ¶
type Assign struct { Amount []byte `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` To *protos.TxAddr `protobuf:"bytes,2,opt,name=to" json:"to,omitempty"` }
func (*Assign) Descriptor ¶
func (*Assign) ProtoMessage ¶
func (*Assign) ProtoMessage()
type BaseToken ¶
type BaseToken struct {
TotalTokens []byte `protobuf:"bytes,1,opt,name=totalTokens,proto3" json:"totalTokens,omitempty"`
}
func (*BaseToken) Descriptor ¶
func (*BaseToken) GetTotalTokens ¶
func (*BaseToken) ProtoMessage ¶
func (*BaseToken) ProtoMessage()
type FuncRecord ¶
type FuncRecord struct { Noncekey []byte `protobuf:"bytes,1,opt,name=noncekey,proto3" json:"noncekey,omitempty"` IsSend bool `protobuf:"varint,2,opt,name=isSend" json:"isSend,omitempty"` }
func (*FuncRecord) Descriptor ¶
func (*FuncRecord) Descriptor() ([]byte, []int)
func (*FuncRecord) GetIsSend ¶
func (m *FuncRecord) GetIsSend() bool
func (*FuncRecord) GetNoncekey ¶
func (m *FuncRecord) GetNoncekey() []byte
func (*FuncRecord) ProtoMessage ¶
func (*FuncRecord) ProtoMessage()
func (*FuncRecord) Reset ¶
func (m *FuncRecord) Reset()
func (*FuncRecord) String ¶
func (m *FuncRecord) String() string
type FuncRecord_s ¶
func (*FuncRecord_s) LoadFromPB ¶
func (n *FuncRecord_s) LoadFromPB(p *FuncRecord)
func (*FuncRecord_s) MarshalJSON ¶
func (n *FuncRecord_s) MarshalJSON() ([]byte, error)
func (*FuncRecord_s) ToPB ¶
func (n *FuncRecord_s) ToPB() *FuncRecord
type MultiTokenMsg ¶
type MultiTokenMsg struct { TokenName string `protobuf:"bytes,1,opt,name=tokenName" json:"tokenName,omitempty"` // bytes tokenMsg = 2; // // Types that are valid to be assigned to Msg: // *MultiTokenMsg_Fund // *MultiTokenMsg_Query // *MultiTokenMsg_Init Msg isMultiTokenMsg_Msg `protobuf_oneof:"msg"` }
func (*MultiTokenMsg) Descriptor ¶
func (*MultiTokenMsg) Descriptor() ([]byte, []int)
func (*MultiTokenMsg) GetAddresses ¶
func (m *MultiTokenMsg) GetAddresses() []*tx.Address
func (*MultiTokenMsg) GetFund ¶
func (m *MultiTokenMsg) GetFund() *SimpleFund
func (*MultiTokenMsg) GetInit ¶
func (m *MultiTokenMsg) GetInit() *BaseToken
func (*MultiTokenMsg) GetMsg ¶
func (m *MultiTokenMsg) GetMsg() isMultiTokenMsg_Msg
func (*MultiTokenMsg) GetQuery ¶
func (m *MultiTokenMsg) GetQuery() *QueryToken
func (*MultiTokenMsg) GetTokenName ¶
func (m *MultiTokenMsg) GetTokenName() string
func (*MultiTokenMsg) MsgDetail ¶
func (m *MultiTokenMsg) MsgDetail() interface{}
func (*MultiTokenMsg) ProtoMessage ¶
func (*MultiTokenMsg) ProtoMessage()
func (*MultiTokenMsg) Reset ¶
func (m *MultiTokenMsg) Reset()
func (*MultiTokenMsg) String ¶
func (m *MultiTokenMsg) String() string
func (*MultiTokenMsg) XXX_OneofFuncs ¶
func (*MultiTokenMsg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type MultiTokenMsg_Fund ¶
type MultiTokenMsg_Fund struct {
Fund *SimpleFund `protobuf:"bytes,3,opt,name=fund,oneof"`
}
type MultiTokenMsg_Init ¶
type MultiTokenMsg_Init struct {
Init *BaseToken `protobuf:"bytes,5,opt,name=init,oneof"`
}
type MultiTokenMsg_Query ¶
type MultiTokenMsg_Query struct {
Query *QueryToken `protobuf:"bytes,4,opt,name=query,oneof"`
}
type NonceData ¶
type NonceData struct { Txid string `protobuf:"bytes,1,opt,name=txid" json:"txid,omitempty"` Amount []byte `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` FromLast *FuncRecord `protobuf:"bytes,3,opt,name=fromLast" json:"fromLast,omitempty"` ToLast *FuncRecord `protobuf:"bytes,4,opt,name=toLast" json:"toLast,omitempty"` // Types that are valid to be assigned to Other: // *NonceData_NonceTime // *NonceData_Noncekey Other isNonceData_Other `protobuf_oneof:"other"` }
func (*NonceData) Descriptor ¶
func (*NonceData) GetFromLast ¶
func (m *NonceData) GetFromLast() *FuncRecord
func (*NonceData) GetNonceTime ¶
func (m *NonceData) GetNonceTime() *google_protobuf.Timestamp
func (*NonceData) GetNoncekey ¶
func (*NonceData) GetToLast ¶
func (m *NonceData) GetToLast() *FuncRecord
func (*NonceData) ProtoMessage ¶
func (*NonceData) ProtoMessage()
type NonceData_NonceTime ¶
type NonceData_NonceTime struct {
NonceTime *google_protobuf.Timestamp `protobuf:"bytes,6,opt,name=nonceTime,oneof"`
}
type NonceData_Noncekey ¶
type NonceData_Noncekey struct {
Noncekey []byte `protobuf:"bytes,7,opt,name=noncekey,proto3,oneof"`
}
type NonceData_s ¶
type NonceData_s struct {
// contains filtered or unexported fields
}
func (*NonceData_s) GetObject ¶
func (n *NonceData_s) GetObject() interface{}
func (*NonceData_s) Load ¶
func (n *NonceData_s) Load(interface{}) error
func (*NonceData_s) LoadFromPB ¶
func (n *NonceData_s) LoadFromPB(p *NonceData)
func (*NonceData_s) Save ¶
func (n *NonceData_s) Save() interface{}
func (*NonceData_s) ToPB ¶
func (n *NonceData_s) ToPB() *NonceData
type QueryGlobal ¶
type QueryGlobal struct { }
func (*QueryGlobal) Descriptor ¶
func (*QueryGlobal) Descriptor() ([]byte, []int)
func (*QueryGlobal) ProtoMessage ¶
func (*QueryGlobal) ProtoMessage()
func (*QueryGlobal) Reset ¶
func (m *QueryGlobal) Reset()
func (*QueryGlobal) String ¶
func (m *QueryGlobal) String() string
type QueryToken ¶
type QueryToken struct { Format QueryToken_Formats `protobuf:"varint,1,opt,name=format,enum=ccprotos.QueryToken_Formats" json:"format,omitempty"` Addr *protos.TxAddr `protobuf:"bytes,2,opt,name=addr" json:"addr,omitempty"` }
func (*QueryToken) Descriptor ¶
func (*QueryToken) Descriptor() ([]byte, []int)
func (*QueryToken) GetAddr ¶
func (m *QueryToken) GetAddr() *protos.TxAddr
func (*QueryToken) GetAddresses ¶
func (m *QueryToken) GetAddresses() []*tx.Address
func (*QueryToken) GetFormat ¶
func (m *QueryToken) GetFormat() QueryToken_Formats
func (*QueryToken) ProtoMessage ¶
func (*QueryToken) ProtoMessage()
func (*QueryToken) Reset ¶
func (m *QueryToken) Reset()
func (*QueryToken) String ¶
func (m *QueryToken) String() string
type QueryToken_Formats ¶
type QueryToken_Formats int32
const ( QueryToken_NUMBER QueryToken_Formats = 0 QueryToken_ENCODED QueryToken_Formats = 1 )
func (QueryToken_Formats) EnumDescriptor ¶
func (QueryToken_Formats) EnumDescriptor() ([]byte, []int)
func (QueryToken_Formats) String ¶
func (x QueryToken_Formats) String() string
type QueryTransfer ¶
type QueryTransfer struct {
Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
}
func (*QueryTransfer) Descriptor ¶
func (*QueryTransfer) Descriptor() ([]byte, []int)
func (*QueryTransfer) GetNonce ¶
func (m *QueryTransfer) GetNonce() []byte
func (*QueryTransfer) ProtoMessage ¶
func (*QueryTransfer) ProtoMessage()
func (*QueryTransfer) Reset ¶
func (m *QueryTransfer) Reset()
func (*QueryTransfer) String ¶
func (m *QueryTransfer) String() string
type SimpleFund ¶
type SimpleFund struct { Amount []byte `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` To *protos.TxAddr `protobuf:"bytes,2,opt,name=to" json:"to,omitempty"` From *protos.TxAddr `protobuf:"bytes,3,opt,name=from" json:"from,omitempty"` }
func (*SimpleFund) Descriptor ¶
func (*SimpleFund) Descriptor() ([]byte, []int)
func (*SimpleFund) GetAddresses ¶
func (m *SimpleFund) GetAddresses() []*tx.Address
the default address extractor in message
func (*SimpleFund) GetAmount ¶
func (m *SimpleFund) GetAmount() []byte
func (*SimpleFund) GetFrom ¶
func (m *SimpleFund) GetFrom() *protos.TxAddr
func (*SimpleFund) GetTo ¶
func (m *SimpleFund) GetTo() *protos.TxAddr
func (*SimpleFund) MsgDetail ¶
func (m *SimpleFund) MsgDetail() interface{}
func (*SimpleFund) ProtoMessage ¶
func (*SimpleFund) ProtoMessage()
func (*SimpleFund) Reset ¶
func (m *SimpleFund) Reset()
func (*SimpleFund) String ¶
func (m *SimpleFund) String() string
type TokenGlobalData ¶
type TokenGlobalData struct { TotalTokens []byte `protobuf:"bytes,10,opt,name=totalTokens,proto3" json:"totalTokens,omitempty"` UnassignedTokens []byte `protobuf:"bytes,11,opt,name=unassignedTokens,proto3" json:"unassignedTokens,omitempty"` }
func (*TokenGlobalData) Descriptor ¶
func (*TokenGlobalData) Descriptor() ([]byte, []int)
func (*TokenGlobalData) GetTotalTokens ¶
func (m *TokenGlobalData) GetTotalTokens() []byte
func (*TokenGlobalData) GetUnassignedTokens ¶
func (m *TokenGlobalData) GetUnassignedTokens() []byte
func (*TokenGlobalData) ProtoMessage ¶
func (*TokenGlobalData) ProtoMessage()
func (*TokenGlobalData) Reset ¶
func (m *TokenGlobalData) Reset()
func (*TokenGlobalData) String ¶
func (m *TokenGlobalData) String() string
type TokenGlobalData_s ¶
type TokenGlobalData_s struct {
// contains filtered or unexported fields
}
func (*TokenGlobalData_s) GetObject ¶
func (n *TokenGlobalData_s) GetObject() interface{}
func (*TokenGlobalData_s) Load ¶
func (n *TokenGlobalData_s) Load(interface{}) error
func (*TokenGlobalData_s) LoadFromPB ¶
func (n *TokenGlobalData_s) LoadFromPB(p *TokenGlobalData)
func (*TokenGlobalData_s) Save ¶
func (n *TokenGlobalData_s) Save() interface{}
func (*TokenGlobalData_s) ToPB ¶
func (n *TokenGlobalData_s) ToPB() *TokenGlobalData
Click to show internal directories.
Click to hide internal directories.