Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTokenServer(s *grpc.Server, srv TokenServer)
- type LocalLogs
- func (*LocalLogs) Descriptor() ([]byte, []int)
- func (m *LocalLogs) GetActionType() int32
- func (m *LocalLogs) GetSymbol() string
- func (m *LocalLogs) GetTxHash() string
- func (m *LocalLogs) GetTxIndex() string
- func (*LocalLogs) ProtoMessage()
- func (m *LocalLogs) Reset()
- func (m *LocalLogs) String() string
- func (m *LocalLogs) XXX_DiscardUnknown()
- func (m *LocalLogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LocalLogs) XXX_Merge(src proto.Message)
- func (m *LocalLogs) XXX_Size() int
- func (m *LocalLogs) XXX_Unmarshal(b []byte) error
- type LocalToken
- func (*LocalToken) Descriptor() ([]byte, []int)
- func (m *LocalToken) GetCategory() int32
- func (m *LocalToken) GetCreatedHeight() int64
- func (m *LocalToken) GetCreatedTime() int64
- func (m *LocalToken) GetCreator() string
- func (m *LocalToken) GetIntroduction() string
- func (m *LocalToken) GetName() string
- func (m *LocalToken) GetOwner() string
- func (m *LocalToken) GetPrecision() int32
- func (m *LocalToken) GetPrepareCreateHeight() int64
- func (m *LocalToken) GetPrepareCreateTime() int64
- func (m *LocalToken) GetPrice() int64
- func (m *LocalToken) GetRevokedHeight() int64
- func (m *LocalToken) GetRevokedTime() int64
- func (m *LocalToken) GetStatus() int32
- func (m *LocalToken) GetSymbol() string
- func (m *LocalToken) GetTotal() int64
- func (m *LocalToken) GetTotalTransferTimes() int64
- func (*LocalToken) ProtoMessage()
- func (m *LocalToken) Reset()
- func (m *LocalToken) String() string
- func (m *LocalToken) XXX_DiscardUnknown()
- func (m *LocalToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LocalToken) XXX_Merge(src proto.Message)
- func (m *LocalToken) XXX_Size() int
- func (m *LocalToken) XXX_Unmarshal(b []byte) error
- type ReceiptToken
- func (*ReceiptToken) Descriptor() ([]byte, []int)
- func (m *ReceiptToken) GetOwner() string
- func (m *ReceiptToken) GetStatus() int32
- func (m *ReceiptToken) GetSymbol() string
- func (*ReceiptToken) ProtoMessage()
- func (m *ReceiptToken) Reset()
- func (m *ReceiptToken) String() string
- func (m *ReceiptToken) XXX_DiscardUnknown()
- func (m *ReceiptToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceiptToken) XXX_Merge(src proto.Message)
- func (m *ReceiptToken) XXX_Size() int
- func (m *ReceiptToken) XXX_Unmarshal(b []byte) error
- type ReceiptTokenAmount
- func (*ReceiptTokenAmount) Descriptor() ([]byte, []int)
- func (m *ReceiptTokenAmount) GetCurrent() *Token
- func (m *ReceiptTokenAmount) GetPrev() *Token
- func (*ReceiptTokenAmount) ProtoMessage()
- func (m *ReceiptTokenAmount) Reset()
- func (m *ReceiptTokenAmount) String() string
- func (m *ReceiptTokenAmount) XXX_DiscardUnknown()
- func (m *ReceiptTokenAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceiptTokenAmount) XXX_Merge(src proto.Message)
- func (m *ReceiptTokenAmount) XXX_Size() int
- func (m *ReceiptTokenAmount) XXX_Unmarshal(b []byte) error
- type ReplyAccountTokenAssets
- func (*ReplyAccountTokenAssets) Descriptor() ([]byte, []int)
- func (m *ReplyAccountTokenAssets) GetTokenAssets() []*TokenAsset
- func (*ReplyAccountTokenAssets) ProtoMessage()
- func (m *ReplyAccountTokenAssets) Reset()
- func (m *ReplyAccountTokenAssets) String() string
- func (m *ReplyAccountTokenAssets) XXX_DiscardUnknown()
- func (m *ReplyAccountTokenAssets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyAccountTokenAssets) XXX_Merge(src proto.Message)
- func (m *ReplyAccountTokenAssets) XXX_Size() int
- func (m *ReplyAccountTokenAssets) XXX_Unmarshal(b []byte) error
- type ReplyAddrRecvForTokens
- func (*ReplyAddrRecvForTokens) Descriptor() ([]byte, []int)
- func (m *ReplyAddrRecvForTokens) GetTokenRecvs() []*TokenRecv
- func (*ReplyAddrRecvForTokens) ProtoMessage()
- func (m *ReplyAddrRecvForTokens) Reset()
- func (m *ReplyAddrRecvForTokens) String() string
- func (m *ReplyAddrRecvForTokens) XXX_DiscardUnknown()
- func (m *ReplyAddrRecvForTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyAddrRecvForTokens) XXX_Merge(src proto.Message)
- func (m *ReplyAddrRecvForTokens) XXX_Size() int
- func (m *ReplyAddrRecvForTokens) XXX_Unmarshal(b []byte) error
- type ReplyTokenLogs
- func (*ReplyTokenLogs) Descriptor() ([]byte, []int)
- func (m *ReplyTokenLogs) GetLogs() []*LocalLogs
- func (*ReplyTokenLogs) ProtoMessage()
- func (m *ReplyTokenLogs) Reset()
- func (m *ReplyTokenLogs) String() string
- func (m *ReplyTokenLogs) XXX_DiscardUnknown()
- func (m *ReplyTokenLogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyTokenLogs) XXX_Merge(src proto.Message)
- func (m *ReplyTokenLogs) XXX_Size() int
- func (m *ReplyTokenLogs) XXX_Unmarshal(b []byte) error
- type ReplyTokens
- func (*ReplyTokens) Descriptor() ([]byte, []int)
- func (m *ReplyTokens) GetTokens() []*LocalToken
- func (*ReplyTokens) ProtoMessage()
- func (m *ReplyTokens) Reset()
- func (m *ReplyTokens) String() string
- func (m *ReplyTokens) XXX_DiscardUnknown()
- func (m *ReplyTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyTokens) XXX_Merge(src proto.Message)
- func (m *ReplyTokens) XXX_Size() int
- func (m *ReplyTokens) XXX_Unmarshal(b []byte) error
- type ReqAccountTokenAssets
- func (*ReqAccountTokenAssets) Descriptor() ([]byte, []int)
- func (m *ReqAccountTokenAssets) GetAddress() string
- func (m *ReqAccountTokenAssets) GetExecer() string
- func (*ReqAccountTokenAssets) ProtoMessage()
- func (m *ReqAccountTokenAssets) Reset()
- func (m *ReqAccountTokenAssets) String() string
- func (m *ReqAccountTokenAssets) XXX_DiscardUnknown()
- func (m *ReqAccountTokenAssets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqAccountTokenAssets) XXX_Merge(src proto.Message)
- func (m *ReqAccountTokenAssets) XXX_Size() int
- func (m *ReqAccountTokenAssets) XXX_Unmarshal(b []byte) error
- type ReqAddrTokens
- func (*ReqAddrTokens) Descriptor() ([]byte, []int)
- func (m *ReqAddrTokens) GetAddr() string
- func (m *ReqAddrTokens) GetCount() int32
- func (m *ReqAddrTokens) GetDirection() int32
- func (m *ReqAddrTokens) GetFromKey() string
- func (m *ReqAddrTokens) GetStatus() int32
- func (m *ReqAddrTokens) GetToken() []string
- func (*ReqAddrTokens) ProtoMessage()
- func (m *ReqAddrTokens) Reset()
- func (m *ReqAddrTokens) String() string
- func (m *ReqAddrTokens) XXX_DiscardUnknown()
- func (m *ReqAddrTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqAddrTokens) XXX_Merge(src proto.Message)
- func (m *ReqAddrTokens) XXX_Size() int
- func (m *ReqAddrTokens) XXX_Unmarshal(b []byte) error
- type ReqTokenBalance
- func (*ReqTokenBalance) Descriptor() ([]byte, []int)
- func (m *ReqTokenBalance) GetAddresses() []string
- func (m *ReqTokenBalance) GetExecer() string
- func (m *ReqTokenBalance) GetTokenSymbol() string
- func (*ReqTokenBalance) ProtoMessage()
- func (m *ReqTokenBalance) Reset()
- func (m *ReqTokenBalance) String() string
- func (m *ReqTokenBalance) XXX_DiscardUnknown()
- func (m *ReqTokenBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqTokenBalance) XXX_Merge(src proto.Message)
- func (m *ReqTokenBalance) XXX_Size() int
- func (m *ReqTokenBalance) XXX_Unmarshal(b []byte) error
- type ReqTokenTx
- func (*ReqTokenTx) Descriptor() ([]byte, []int)
- func (m *ReqTokenTx) GetAddr() string
- func (m *ReqTokenTx) GetCount() int32
- func (m *ReqTokenTx) GetDirection() int32
- func (m *ReqTokenTx) GetFlag() int32
- func (m *ReqTokenTx) GetHeight() int64
- func (m *ReqTokenTx) GetIndex() int64
- func (m *ReqTokenTx) GetSymbol() string
- func (*ReqTokenTx) ProtoMessage()
- func (m *ReqTokenTx) Reset()
- func (m *ReqTokenTx) String() string
- func (m *ReqTokenTx) XXX_DiscardUnknown()
- func (m *ReqTokenTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqTokenTx) XXX_Merge(src proto.Message)
- func (m *ReqTokenTx) XXX_Size() int
- func (m *ReqTokenTx) XXX_Unmarshal(b []byte) error
- type ReqTokens
- func (*ReqTokens) Descriptor() ([]byte, []int)
- func (m *ReqTokens) GetQueryAll() bool
- func (m *ReqTokens) GetStatus() int32
- func (m *ReqTokens) GetSymbolOnly() bool
- func (m *ReqTokens) GetTokens() []string
- func (*ReqTokens) ProtoMessage()
- func (m *ReqTokens) Reset()
- func (m *ReqTokens) String() string
- func (m *ReqTokens) XXX_DiscardUnknown()
- func (m *ReqTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqTokens) XXX_Merge(src proto.Message)
- func (m *ReqTokens) XXX_Size() int
- func (m *ReqTokens) XXX_Unmarshal(b []byte) error
- type Token
- func (*Token) Descriptor() ([]byte, []int)
- func (m *Token) GetCategory() int32
- func (m *Token) GetCreator() string
- func (m *Token) GetIntroduction() string
- func (m *Token) GetName() string
- func (m *Token) GetOwner() string
- func (m *Token) GetPrice() int64
- func (m *Token) GetStatus() int32
- func (m *Token) GetSymbol() string
- func (m *Token) GetTotal() int64
- func (*Token) ProtoMessage()
- func (m *Token) Reset()
- func (m *Token) String() string
- func (m *Token) XXX_DiscardUnknown()
- func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Token) XXX_Merge(src proto.Message)
- func (m *Token) XXX_Size() int
- func (m *Token) XXX_Unmarshal(b []byte) error
- type TokenAccountResult
- type TokenAction
- func (*TokenAction) Descriptor() ([]byte, []int)
- func (m *TokenAction) GetGenesis() *types.AssetsGenesis
- func (m *TokenAction) GetTokenBurn() *TokenBurn
- func (m *TokenAction) GetTokenFinishCreate() *TokenFinishCreate
- func (m *TokenAction) GetTokenMint() *TokenMint
- func (m *TokenAction) GetTokenPreCreate() *TokenPreCreate
- func (m *TokenAction) GetTokenRevokeCreate() *TokenRevokeCreate
- func (m *TokenAction) GetTransfer() *types.AssetsTransfer
- func (m *TokenAction) GetTransferToExec() *types.AssetsTransferToExec
- func (m *TokenAction) GetTy() int32
- func (m *TokenAction) GetValue() isTokenAction_Value
- func (m *TokenAction) GetWithdraw() *types.AssetsWithdraw
- func (*TokenAction) ProtoMessage()
- func (m *TokenAction) Reset()
- func (m *TokenAction) String() string
- func (m *TokenAction) XXX_DiscardUnknown()
- func (m *TokenAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenAction) XXX_Merge(src proto.Message)
- func (*TokenAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *TokenAction) XXX_Size() int
- func (m *TokenAction) XXX_Unmarshal(b []byte) error
- type TokenAction_Genesis
- type TokenAction_TokenBurn
- type TokenAction_TokenFinishCreate
- type TokenAction_TokenMint
- type TokenAction_TokenPreCreate
- type TokenAction_TokenRevokeCreate
- type TokenAction_Transfer
- type TokenAction_TransferToExec
- type TokenAction_Withdraw
- type TokenAsset
- func (*TokenAsset) Descriptor() ([]byte, []int)
- func (m *TokenAsset) GetAccount() *types.Account
- func (m *TokenAsset) GetSymbol() string
- func (*TokenAsset) ProtoMessage()
- func (m *TokenAsset) Reset()
- func (m *TokenAsset) String() string
- func (m *TokenAsset) XXX_DiscardUnknown()
- func (m *TokenAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenAsset) XXX_Merge(src proto.Message)
- func (m *TokenAsset) XXX_Size() int
- func (m *TokenAsset) XXX_Unmarshal(b []byte) error
- type TokenBurn
- func (*TokenBurn) Descriptor() ([]byte, []int)
- func (m *TokenBurn) GetAmount() int64
- func (m *TokenBurn) GetSymbol() string
- func (*TokenBurn) ProtoMessage()
- func (m *TokenBurn) Reset()
- func (m *TokenBurn) String() string
- func (m *TokenBurn) XXX_DiscardUnknown()
- func (m *TokenBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenBurn) XXX_Merge(src proto.Message)
- func (m *TokenBurn) XXX_Size() int
- func (m *TokenBurn) XXX_Unmarshal(b []byte) error
- type TokenClient
- type TokenFinishCreate
- func (*TokenFinishCreate) Descriptor() ([]byte, []int)
- func (m *TokenFinishCreate) GetOwner() string
- func (m *TokenFinishCreate) GetSymbol() string
- func (*TokenFinishCreate) ProtoMessage()
- func (m *TokenFinishCreate) Reset()
- func (m *TokenFinishCreate) String() string
- func (m *TokenFinishCreate) XXX_DiscardUnknown()
- func (m *TokenFinishCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenFinishCreate) XXX_Merge(src proto.Message)
- func (m *TokenFinishCreate) XXX_Size() int
- func (m *TokenFinishCreate) XXX_Unmarshal(b []byte) error
- type TokenMint
- func (*TokenMint) Descriptor() ([]byte, []int)
- func (m *TokenMint) GetAmount() int64
- func (m *TokenMint) GetSymbol() string
- func (*TokenMint) ProtoMessage()
- func (m *TokenMint) Reset()
- func (m *TokenMint) String() string
- func (m *TokenMint) XXX_DiscardUnknown()
- func (m *TokenMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenMint) XXX_Merge(src proto.Message)
- func (m *TokenMint) XXX_Size() int
- func (m *TokenMint) XXX_Unmarshal(b []byte) error
- type TokenPreCreate
- func (*TokenPreCreate) Descriptor() ([]byte, []int)
- func (m *TokenPreCreate) GetCategory() int32
- func (m *TokenPreCreate) GetIntroduction() string
- func (m *TokenPreCreate) GetName() string
- func (m *TokenPreCreate) GetOwner() string
- func (m *TokenPreCreate) GetPrice() int64
- func (m *TokenPreCreate) GetSymbol() string
- func (m *TokenPreCreate) GetTotal() int64
- func (*TokenPreCreate) ProtoMessage()
- func (m *TokenPreCreate) Reset()
- func (m *TokenPreCreate) String() string
- func (m *TokenPreCreate) XXX_DiscardUnknown()
- func (m *TokenPreCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenPreCreate) XXX_Merge(src proto.Message)
- func (m *TokenPreCreate) XXX_Size() int
- func (m *TokenPreCreate) XXX_Unmarshal(b []byte) error
- type TokenRecv
- func (*TokenRecv) Descriptor() ([]byte, []int)
- func (m *TokenRecv) GetRecv() int64
- func (m *TokenRecv) GetToken() string
- func (*TokenRecv) ProtoMessage()
- func (m *TokenRecv) Reset()
- func (m *TokenRecv) String() string
- func (m *TokenRecv) XXX_DiscardUnknown()
- func (m *TokenRecv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenRecv) XXX_Merge(src proto.Message)
- func (m *TokenRecv) XXX_Size() int
- func (m *TokenRecv) XXX_Unmarshal(b []byte) error
- type TokenRevokeCreate
- func (*TokenRevokeCreate) Descriptor() ([]byte, []int)
- func (m *TokenRevokeCreate) GetOwner() string
- func (m *TokenRevokeCreate) GetSymbol() string
- func (*TokenRevokeCreate) ProtoMessage()
- func (m *TokenRevokeCreate) Reset()
- func (m *TokenRevokeCreate) String() string
- func (m *TokenRevokeCreate) XXX_DiscardUnknown()
- func (m *TokenRevokeCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenRevokeCreate) XXX_Merge(src proto.Message)
- func (m *TokenRevokeCreate) XXX_Size() int
- func (m *TokenRevokeCreate) XXX_Unmarshal(b []byte) error
- type TokenServer
- type TokenType
- func (t *TokenType) CreateTx(action string, msg json.RawMessage) (*types.Transaction, error)
- func (t *TokenType) GetLogMap() map[int64]*types.LogInfo
- func (t *TokenType) GetName() string
- func (t *TokenType) GetPayload() types.Message
- func (t *TokenType) GetTypeMap() map[string]int32
- func (t *TokenType) RPC_Default_Process(action string, msg interface{}) (*types.Transaction, error)
Constants ¶
View Source
const ( // ActionTransfer for transfer ActionTransfer = 4 // ActionGenesis for genesis ActionGenesis = 5 // ActionWithdraw for Withdraw ActionWithdraw = 6 // TokenActionPreCreate for token pre create TokenActionPreCreate = 7 // TokenActionFinishCreate for token finish create TokenActionFinishCreate = 8 // TokenActionRevokeCreate for token revoke create TokenActionRevokeCreate = 9 // TokenActionTransferToExec for token transfer to exec TokenActionTransferToExec = 11 // TokenActionMint for token mint TokenActionMint = 12 // TokenActionBurn for token burn TokenActionBurn = 13 )
View Source
const ( // TokenStatusPreCreated token pre create status TokenStatusPreCreated = iota // TokenStatusCreated token create status TokenStatusCreated // TokenStatusCreateRevoked token revoke status TokenStatusCreateRevoked )
token status
View Source
const ( // TyLogPreCreateToken log for pre create token TyLogPreCreateToken = 211 // TyLogFinishCreateToken log for finish create token TyLogFinishCreateToken = 212 // TyLogRevokeCreateToken log for revoke create token TyLogRevokeCreateToken = 213 // TyLogTokenTransfer log for token tranfer TyLogTokenTransfer = 313 // TyLogTokenGenesis log for token genesis TyLogTokenGenesis = 314 // TyLogTokenDeposit log for token deposit TyLogTokenDeposit = 315 // TyLogTokenExecTransfer log for token exec transfer TyLogTokenExecTransfer = 316 // TyLogTokenExecWithdraw log for token exec withdraw TyLogTokenExecWithdraw = 317 // TyLogTokenExecDeposit log for token exec deposit TyLogTokenExecDeposit = 318 // TyLogTokenExecFrozen log for token exec frozen TyLogTokenExecFrozen = 319 // TyLogTokenExecActive log for token exec active TyLogTokenExecActive = 320 // TyLogTokenGenesisTransfer log for token genesis rransfer TyLogTokenGenesisTransfer = 321 // TyLogTokenGenesisDeposit log for token genesis deposit TyLogTokenGenesisDeposit = 322 // TyLogTokenMint log for token mint TyLogTokenMint = 323 // TyLogTokenBurn log for token burn TyLogTokenBurn = 324 )
View Source
const ( // TokenNameLenLimit token name length limit TokenNameLenLimit = 128 // TokenSymbolLenLimit token symbol length limit TokenSymbolLenLimit = 16 // TokenIntroLenLimit token introduction length limit TokenIntroLenLimit = 1024 )
View Source
const ( // CategoryMintBurnSupport support mint & burn CategoryMintBurnSupport = 1 << iota )
Variables ¶
View Source
var ( // TokenX token name TokenX = "token" // ForkTokenBlackListX fork const ForkTokenBlackListX = "ForkTokenBlackList" // ForkBadTokenSymbolX fork const ForkBadTokenSymbolX = "ForkBadTokenSymbol" // ForkTokenPriceX fork const ForkTokenPriceX = "ForkTokenPrice" // ForkTokenSymbolWithNumberX fork const ForkTokenSymbolWithNumberX = "ForkTokenSymbolWithNumber" // ForkTokenCheckX fork check impl bug ForkTokenCheckX = "ForkTokenCheck" )
View Source
var ( // ErrTokenNameLen error token name length ErrTokenNameLen = errors.New("ErrTokenNameLength") // ErrTokenSymbolLen error token symbol length ErrTokenSymbolLen = errors.New("ErrTokenSymbolLength") // ErrTokenTotalOverflow error token total Overflow ErrTokenTotalOverflow = errors.New("ErrTokenTotalOverflow") // ErrTokenSymbolUpper error token total Overflow ErrTokenSymbolUpper = errors.New("ErrTokenSymbolUpper") // ErrTokenIntroLen error token introduction length ErrTokenIntroLen = errors.New("ErrTokenIntroductionLen") // ErrTokenExist error token symbol exist already ErrTokenExist = errors.New("ErrTokenSymbolExistAlready") // ErrTokenNotPrecreated error token not pre created ErrTokenNotPrecreated = errors.New("ErrTokenNotPrecreated") // ErrTokenCreatedApprover error token created approver ErrTokenCreatedApprover = errors.New("ErrTokenCreatedApprover") // ErrTokenRevoker error token revoker ErrTokenRevoker = errors.New("ErrTokenRevoker") // ErrTokenCanotRevoked error token canot revoked with wrong status ErrTokenCanotRevoked = errors.New("ErrTokenCanotRevokedWithWrongStatus") // ErrTokenOwner error token symbol owner not match ErrTokenOwner = errors.New("ErrTokenSymbolOwnerNotMatch") // ErrTokenHavePrecreated error owner have token pre create yet ErrTokenHavePrecreated = errors.New("ErrOwnerHaveTokenPrecreateYet") // ErrTokenBlacklist error token blacklist ErrTokenBlacklist = errors.New("ErrTokenBlacklist") // ErrTokenNotExist error token symbol not exist ErrTokenNotExist = errors.New("ErrTokenSymbolNotExist") )
Functions ¶
func RegisterTokenServer ¶
func RegisterTokenServer(s *grpc.Server, srv TokenServer)
Types ¶
type LocalLogs ¶
type LocalLogs struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` TxIndex string `protobuf:"bytes,2,opt,name=txIndex,proto3" json:"txIndex,omitempty"` ActionType int32 `protobuf:"varint,3,opt,name=actionType,proto3" json:"actionType,omitempty"` TxHash string `protobuf:"bytes,4,opt,name=txHash,proto3" json:"txHash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LocalLogs) Descriptor ¶
func (*LocalLogs) GetActionType ¶
func (*LocalLogs) GetTxIndex ¶
func (*LocalLogs) ProtoMessage ¶
func (*LocalLogs) ProtoMessage()
func (*LocalLogs) XXX_DiscardUnknown ¶
func (m *LocalLogs) XXX_DiscardUnknown()
func (*LocalLogs) XXX_Marshal ¶
func (*LocalLogs) XXX_Unmarshal ¶
type LocalToken ¶
type LocalToken struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"` Introduction string `protobuf:"bytes,3,opt,name=introduction,proto3" json:"introduction,omitempty"` Total int64 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` Price int64 `protobuf:"varint,5,opt,name=price,proto3" json:"price,omitempty"` Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"` Creator string `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty"` Status int32 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"` CreatedHeight int64 `protobuf:"varint,9,opt,name=createdHeight,proto3" json:"createdHeight,omitempty"` CreatedTime int64 `protobuf:"varint,10,opt,name=createdTime,proto3" json:"createdTime,omitempty"` PrepareCreateHeight int64 `protobuf:"varint,11,opt,name=prepareCreateHeight,proto3" json:"prepareCreateHeight,omitempty"` PrepareCreateTime int64 `protobuf:"varint,12,opt,name=prepareCreateTime,proto3" json:"prepareCreateTime,omitempty"` Precision int32 `protobuf:"varint,13,opt,name=precision,proto3" json:"precision,omitempty"` // 如果需要这个项可以单独做一个域存储 TotalTransferTimes int64 `protobuf:"varint,14,opt,name=totalTransferTimes,proto3" json:"totalTransferTimes,omitempty"` RevokedHeight int64 `protobuf:"varint,15,opt,name=revokedHeight,proto3" json:"revokedHeight,omitempty"` RevokedTime int64 `protobuf:"varint,16,opt,name=revokedTime,proto3" json:"revokedTime,omitempty"` Category int32 `protobuf:"varint,17,opt,name=category,proto3" json:"category,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
local
func (*LocalToken) Descriptor ¶
func (*LocalToken) Descriptor() ([]byte, []int)
func (*LocalToken) GetCategory ¶
func (m *LocalToken) GetCategory() int32
func (*LocalToken) GetCreatedHeight ¶
func (m *LocalToken) GetCreatedHeight() int64
func (*LocalToken) GetCreatedTime ¶
func (m *LocalToken) GetCreatedTime() int64
func (*LocalToken) GetCreator ¶
func (m *LocalToken) GetCreator() string
func (*LocalToken) GetIntroduction ¶
func (m *LocalToken) GetIntroduction() string
func (*LocalToken) GetName ¶
func (m *LocalToken) GetName() string
func (*LocalToken) GetOwner ¶
func (m *LocalToken) GetOwner() string
func (*LocalToken) GetPrecision ¶
func (m *LocalToken) GetPrecision() int32
func (*LocalToken) GetPrepareCreateHeight ¶
func (m *LocalToken) GetPrepareCreateHeight() int64
func (*LocalToken) GetPrepareCreateTime ¶
func (m *LocalToken) GetPrepareCreateTime() int64
func (*LocalToken) GetPrice ¶
func (m *LocalToken) GetPrice() int64
func (*LocalToken) GetRevokedHeight ¶
func (m *LocalToken) GetRevokedHeight() int64
func (*LocalToken) GetRevokedTime ¶
func (m *LocalToken) GetRevokedTime() int64
func (*LocalToken) GetStatus ¶
func (m *LocalToken) GetStatus() int32
func (*LocalToken) GetSymbol ¶
func (m *LocalToken) GetSymbol() string
func (*LocalToken) GetTotal ¶
func (m *LocalToken) GetTotal() int64
func (*LocalToken) GetTotalTransferTimes ¶
func (m *LocalToken) GetTotalTransferTimes() int64
func (*LocalToken) ProtoMessage ¶
func (*LocalToken) ProtoMessage()
func (*LocalToken) Reset ¶
func (m *LocalToken) Reset()
func (*LocalToken) String ¶
func (m *LocalToken) String() string
func (*LocalToken) XXX_DiscardUnknown ¶
func (m *LocalToken) XXX_DiscardUnknown()
func (*LocalToken) XXX_Marshal ¶
func (m *LocalToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LocalToken) XXX_Merge ¶
func (m *LocalToken) XXX_Merge(src proto.Message)
func (*LocalToken) XXX_Size ¶
func (m *LocalToken) XXX_Size() int
func (*LocalToken) XXX_Unmarshal ¶
func (m *LocalToken) XXX_Unmarshal(b []byte) error
type ReceiptToken ¶
type ReceiptToken struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
log
func (*ReceiptToken) Descriptor ¶
func (*ReceiptToken) Descriptor() ([]byte, []int)
func (*ReceiptToken) GetOwner ¶
func (m *ReceiptToken) GetOwner() string
func (*ReceiptToken) GetStatus ¶
func (m *ReceiptToken) GetStatus() int32
func (*ReceiptToken) GetSymbol ¶
func (m *ReceiptToken) GetSymbol() string
func (*ReceiptToken) ProtoMessage ¶
func (*ReceiptToken) ProtoMessage()
func (*ReceiptToken) Reset ¶
func (m *ReceiptToken) Reset()
func (*ReceiptToken) String ¶
func (m *ReceiptToken) String() string
func (*ReceiptToken) XXX_DiscardUnknown ¶
func (m *ReceiptToken) XXX_DiscardUnknown()
func (*ReceiptToken) XXX_Marshal ¶
func (m *ReceiptToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReceiptToken) XXX_Merge ¶
func (m *ReceiptToken) XXX_Merge(src proto.Message)
func (*ReceiptToken) XXX_Size ¶
func (m *ReceiptToken) XXX_Size() int
func (*ReceiptToken) XXX_Unmarshal ¶
func (m *ReceiptToken) XXX_Unmarshal(b []byte) error
type ReceiptTokenAmount ¶
type ReceiptTokenAmount struct { Prev *Token `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"` Current *Token `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReceiptTokenAmount) Descriptor ¶
func (*ReceiptTokenAmount) Descriptor() ([]byte, []int)
func (*ReceiptTokenAmount) GetCurrent ¶
func (m *ReceiptTokenAmount) GetCurrent() *Token
func (*ReceiptTokenAmount) GetPrev ¶
func (m *ReceiptTokenAmount) GetPrev() *Token
func (*ReceiptTokenAmount) ProtoMessage ¶
func (*ReceiptTokenAmount) ProtoMessage()
func (*ReceiptTokenAmount) Reset ¶
func (m *ReceiptTokenAmount) Reset()
func (*ReceiptTokenAmount) String ¶
func (m *ReceiptTokenAmount) String() string
func (*ReceiptTokenAmount) XXX_DiscardUnknown ¶
func (m *ReceiptTokenAmount) XXX_DiscardUnknown()
func (*ReceiptTokenAmount) XXX_Marshal ¶
func (m *ReceiptTokenAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReceiptTokenAmount) XXX_Merge ¶
func (m *ReceiptTokenAmount) XXX_Merge(src proto.Message)
func (*ReceiptTokenAmount) XXX_Size ¶
func (m *ReceiptTokenAmount) XXX_Size() int
func (*ReceiptTokenAmount) XXX_Unmarshal ¶
func (m *ReceiptTokenAmount) XXX_Unmarshal(b []byte) error
type ReplyAccountTokenAssets ¶
type ReplyAccountTokenAssets struct { TokenAssets []*TokenAsset `protobuf:"bytes,1,rep,name=tokenAssets,proto3" json:"tokenAssets,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReplyAccountTokenAssets) Descriptor ¶
func (*ReplyAccountTokenAssets) Descriptor() ([]byte, []int)
func (*ReplyAccountTokenAssets) GetTokenAssets ¶
func (m *ReplyAccountTokenAssets) GetTokenAssets() []*TokenAsset
func (*ReplyAccountTokenAssets) ProtoMessage ¶
func (*ReplyAccountTokenAssets) ProtoMessage()
func (*ReplyAccountTokenAssets) Reset ¶
func (m *ReplyAccountTokenAssets) Reset()
func (*ReplyAccountTokenAssets) String ¶
func (m *ReplyAccountTokenAssets) String() string
func (*ReplyAccountTokenAssets) XXX_DiscardUnknown ¶
func (m *ReplyAccountTokenAssets) XXX_DiscardUnknown()
func (*ReplyAccountTokenAssets) XXX_Marshal ¶
func (m *ReplyAccountTokenAssets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyAccountTokenAssets) XXX_Merge ¶
func (m *ReplyAccountTokenAssets) XXX_Merge(src proto.Message)
func (*ReplyAccountTokenAssets) XXX_Size ¶
func (m *ReplyAccountTokenAssets) XXX_Size() int
func (*ReplyAccountTokenAssets) XXX_Unmarshal ¶
func (m *ReplyAccountTokenAssets) XXX_Unmarshal(b []byte) error
type ReplyAddrRecvForTokens ¶
type ReplyAddrRecvForTokens struct { TokenRecvs []*TokenRecv `protobuf:"bytes,1,rep,name=tokenRecvs,proto3" json:"tokenRecvs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReplyAddrRecvForTokens) Descriptor ¶
func (*ReplyAddrRecvForTokens) Descriptor() ([]byte, []int)
func (*ReplyAddrRecvForTokens) GetTokenRecvs ¶
func (m *ReplyAddrRecvForTokens) GetTokenRecvs() []*TokenRecv
func (*ReplyAddrRecvForTokens) ProtoMessage ¶
func (*ReplyAddrRecvForTokens) ProtoMessage()
func (*ReplyAddrRecvForTokens) Reset ¶
func (m *ReplyAddrRecvForTokens) Reset()
func (*ReplyAddrRecvForTokens) String ¶
func (m *ReplyAddrRecvForTokens) String() string
func (*ReplyAddrRecvForTokens) XXX_DiscardUnknown ¶
func (m *ReplyAddrRecvForTokens) XXX_DiscardUnknown()
func (*ReplyAddrRecvForTokens) XXX_Marshal ¶
func (m *ReplyAddrRecvForTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyAddrRecvForTokens) XXX_Merge ¶
func (m *ReplyAddrRecvForTokens) XXX_Merge(src proto.Message)
func (*ReplyAddrRecvForTokens) XXX_Size ¶
func (m *ReplyAddrRecvForTokens) XXX_Size() int
func (*ReplyAddrRecvForTokens) XXX_Unmarshal ¶
func (m *ReplyAddrRecvForTokens) XXX_Unmarshal(b []byte) error
type ReplyTokenLogs ¶
type ReplyTokenLogs struct { Logs []*LocalLogs `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReplyTokenLogs) Descriptor ¶
func (*ReplyTokenLogs) Descriptor() ([]byte, []int)
func (*ReplyTokenLogs) GetLogs ¶
func (m *ReplyTokenLogs) GetLogs() []*LocalLogs
func (*ReplyTokenLogs) ProtoMessage ¶
func (*ReplyTokenLogs) ProtoMessage()
func (*ReplyTokenLogs) Reset ¶
func (m *ReplyTokenLogs) Reset()
func (*ReplyTokenLogs) String ¶
func (m *ReplyTokenLogs) String() string
func (*ReplyTokenLogs) XXX_DiscardUnknown ¶
func (m *ReplyTokenLogs) XXX_DiscardUnknown()
func (*ReplyTokenLogs) XXX_Marshal ¶
func (m *ReplyTokenLogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyTokenLogs) XXX_Merge ¶
func (m *ReplyTokenLogs) XXX_Merge(src proto.Message)
func (*ReplyTokenLogs) XXX_Size ¶
func (m *ReplyTokenLogs) XXX_Size() int
func (*ReplyTokenLogs) XXX_Unmarshal ¶
func (m *ReplyTokenLogs) XXX_Unmarshal(b []byte) error
type ReplyTokens ¶
type ReplyTokens struct { Tokens []*LocalToken `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReplyTokens) Descriptor ¶
func (*ReplyTokens) Descriptor() ([]byte, []int)
func (*ReplyTokens) GetTokens ¶
func (m *ReplyTokens) GetTokens() []*LocalToken
func (*ReplyTokens) ProtoMessage ¶
func (*ReplyTokens) ProtoMessage()
func (*ReplyTokens) Reset ¶
func (m *ReplyTokens) Reset()
func (*ReplyTokens) String ¶
func (m *ReplyTokens) String() string
func (*ReplyTokens) XXX_DiscardUnknown ¶
func (m *ReplyTokens) XXX_DiscardUnknown()
func (*ReplyTokens) XXX_Marshal ¶
func (m *ReplyTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyTokens) XXX_Merge ¶
func (m *ReplyTokens) XXX_Merge(src proto.Message)
func (*ReplyTokens) XXX_Size ¶
func (m *ReplyTokens) XXX_Size() int
func (*ReplyTokens) XXX_Unmarshal ¶
func (m *ReplyTokens) XXX_Unmarshal(b []byte) error
type ReqAccountTokenAssets ¶
type ReqAccountTokenAssets struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Execer string `protobuf:"bytes,2,opt,name=execer,proto3" json:"execer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqAccountTokenAssets) Descriptor ¶
func (*ReqAccountTokenAssets) Descriptor() ([]byte, []int)
func (*ReqAccountTokenAssets) GetAddress ¶
func (m *ReqAccountTokenAssets) GetAddress() string
func (*ReqAccountTokenAssets) GetExecer ¶
func (m *ReqAccountTokenAssets) GetExecer() string
func (*ReqAccountTokenAssets) ProtoMessage ¶
func (*ReqAccountTokenAssets) ProtoMessage()
func (*ReqAccountTokenAssets) Reset ¶
func (m *ReqAccountTokenAssets) Reset()
func (*ReqAccountTokenAssets) String ¶
func (m *ReqAccountTokenAssets) String() string
func (*ReqAccountTokenAssets) XXX_DiscardUnknown ¶
func (m *ReqAccountTokenAssets) XXX_DiscardUnknown()
func (*ReqAccountTokenAssets) XXX_Marshal ¶
func (m *ReqAccountTokenAssets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqAccountTokenAssets) XXX_Merge ¶
func (m *ReqAccountTokenAssets) XXX_Merge(src proto.Message)
func (*ReqAccountTokenAssets) XXX_Size ¶
func (m *ReqAccountTokenAssets) XXX_Size() int
func (*ReqAccountTokenAssets) XXX_Unmarshal ¶
func (m *ReqAccountTokenAssets) XXX_Unmarshal(b []byte) error
type ReqAddrTokens ¶
type ReqAddrTokens struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Token []string `protobuf:"bytes,3,rep,name=token,proto3" json:"token,omitempty"` Direction int32 `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"` Count int32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` FromKey string `protobuf:"bytes,6,opt,name=fromKey,proto3" json:"fromKey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqAddrTokens) Descriptor ¶
func (*ReqAddrTokens) Descriptor() ([]byte, []int)
func (*ReqAddrTokens) GetAddr ¶
func (m *ReqAddrTokens) GetAddr() string
func (*ReqAddrTokens) GetCount ¶
func (m *ReqAddrTokens) GetCount() int32
func (*ReqAddrTokens) GetDirection ¶
func (m *ReqAddrTokens) GetDirection() int32
func (*ReqAddrTokens) GetFromKey ¶
func (m *ReqAddrTokens) GetFromKey() string
func (*ReqAddrTokens) GetStatus ¶
func (m *ReqAddrTokens) GetStatus() int32
func (*ReqAddrTokens) GetToken ¶
func (m *ReqAddrTokens) GetToken() []string
func (*ReqAddrTokens) ProtoMessage ¶
func (*ReqAddrTokens) ProtoMessage()
func (*ReqAddrTokens) Reset ¶
func (m *ReqAddrTokens) Reset()
func (*ReqAddrTokens) String ¶
func (m *ReqAddrTokens) String() string
func (*ReqAddrTokens) XXX_DiscardUnknown ¶
func (m *ReqAddrTokens) XXX_DiscardUnknown()
func (*ReqAddrTokens) XXX_Marshal ¶
func (m *ReqAddrTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqAddrTokens) XXX_Merge ¶
func (m *ReqAddrTokens) XXX_Merge(src proto.Message)
func (*ReqAddrTokens) XXX_Size ¶
func (m *ReqAddrTokens) XXX_Size() int
func (*ReqAddrTokens) XXX_Unmarshal ¶
func (m *ReqAddrTokens) XXX_Unmarshal(b []byte) error
type ReqTokenBalance ¶
type ReqTokenBalance struct { Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` TokenSymbol string `protobuf:"bytes,2,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"` Execer string `protobuf:"bytes,3,opt,name=execer,proto3" json:"execer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqTokenBalance) Descriptor ¶
func (*ReqTokenBalance) Descriptor() ([]byte, []int)
func (*ReqTokenBalance) GetAddresses ¶
func (m *ReqTokenBalance) GetAddresses() []string
func (*ReqTokenBalance) GetExecer ¶
func (m *ReqTokenBalance) GetExecer() string
func (*ReqTokenBalance) GetTokenSymbol ¶
func (m *ReqTokenBalance) GetTokenSymbol() string
func (*ReqTokenBalance) ProtoMessage ¶
func (*ReqTokenBalance) ProtoMessage()
func (*ReqTokenBalance) Reset ¶
func (m *ReqTokenBalance) Reset()
func (*ReqTokenBalance) String ¶
func (m *ReqTokenBalance) String() string
func (*ReqTokenBalance) XXX_DiscardUnknown ¶
func (m *ReqTokenBalance) XXX_DiscardUnknown()
func (*ReqTokenBalance) XXX_Marshal ¶
func (m *ReqTokenBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqTokenBalance) XXX_Merge ¶
func (m *ReqTokenBalance) XXX_Merge(src proto.Message)
func (*ReqTokenBalance) XXX_Size ¶
func (m *ReqTokenBalance) XXX_Size() int
func (*ReqTokenBalance) XXX_Unmarshal ¶
func (m *ReqTokenBalance) XXX_Unmarshal(b []byte) error
type ReqTokenTx ¶
type ReqTokenTx struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` //表示取所有/from/to/其他的hash列表 Flag int32 `protobuf:"varint,2,opt,name=flag,proto3" json:"flag,omitempty"` Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` Direction int32 `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"` Height int64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"` Index int64 `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"` Addr string `protobuf:"bytes,7,opt,name=addr,proto3" json:"addr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqTokenTx) Descriptor ¶
func (*ReqTokenTx) Descriptor() ([]byte, []int)
func (*ReqTokenTx) GetAddr ¶
func (m *ReqTokenTx) GetAddr() string
func (*ReqTokenTx) GetCount ¶
func (m *ReqTokenTx) GetCount() int32
func (*ReqTokenTx) GetDirection ¶
func (m *ReqTokenTx) GetDirection() int32
func (*ReqTokenTx) GetFlag ¶
func (m *ReqTokenTx) GetFlag() int32
func (*ReqTokenTx) GetHeight ¶
func (m *ReqTokenTx) GetHeight() int64
func (*ReqTokenTx) GetIndex ¶
func (m *ReqTokenTx) GetIndex() int64
func (*ReqTokenTx) GetSymbol ¶
func (m *ReqTokenTx) GetSymbol() string
func (*ReqTokenTx) ProtoMessage ¶
func (*ReqTokenTx) ProtoMessage()
func (*ReqTokenTx) Reset ¶
func (m *ReqTokenTx) Reset()
func (*ReqTokenTx) String ¶
func (m *ReqTokenTx) String() string
func (*ReqTokenTx) XXX_DiscardUnknown ¶
func (m *ReqTokenTx) XXX_DiscardUnknown()
func (*ReqTokenTx) XXX_Marshal ¶
func (m *ReqTokenTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqTokenTx) XXX_Merge ¶
func (m *ReqTokenTx) XXX_Merge(src proto.Message)
func (*ReqTokenTx) XXX_Size ¶
func (m *ReqTokenTx) XXX_Size() int
func (*ReqTokenTx) XXX_Unmarshal ¶
func (m *ReqTokenTx) XXX_Unmarshal(b []byte) error
type ReqTokens ¶
type ReqTokens struct { QueryAll bool `protobuf:"varint,1,opt,name=queryAll,proto3" json:"queryAll,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Tokens []string `protobuf:"bytes,3,rep,name=tokens,proto3" json:"tokens,omitempty"` SymbolOnly bool `protobuf:"varint,4,opt,name=symbolOnly,proto3" json:"symbolOnly,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
query
func (*ReqTokens) Descriptor ¶
func (*ReqTokens) GetQueryAll ¶
func (*ReqTokens) GetSymbolOnly ¶
func (*ReqTokens) ProtoMessage ¶
func (*ReqTokens) ProtoMessage()
func (*ReqTokens) XXX_DiscardUnknown ¶
func (m *ReqTokens) XXX_DiscardUnknown()
func (*ReqTokens) XXX_Marshal ¶
func (*ReqTokens) XXX_Unmarshal ¶
type Token ¶
type Token struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"` Introduction string `protobuf:"bytes,3,opt,name=introduction,proto3" json:"introduction,omitempty"` Total int64 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` Price int64 `protobuf:"varint,5,opt,name=price,proto3" json:"price,omitempty"` Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"` Creator string `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty"` Status int32 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"` Category int32 `protobuf:"varint,9,opt,name=category,proto3" json:"category,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
state db
func (*Token) Descriptor ¶
func (*Token) GetCategory ¶
func (*Token) GetCreator ¶
func (*Token) GetIntroduction ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) XXX_DiscardUnknown ¶
func (m *Token) XXX_DiscardUnknown()
func (*Token) XXX_Marshal ¶
func (*Token) XXX_Unmarshal ¶
type TokenAccountResult ¶
type TokenAccountResult struct { Token string `json:"Token,omitempty"` Currency int32 `json:"currency,omitempty"` Balance string `json:"balance,omitempty"` Frozen string `json:"frozen,omitempty"` Addr string `json:"addr,omitempty"` }
TokenAccountResult about token account result
type TokenAction ¶
type TokenAction struct { // Types that are valid to be assigned to Value: // *TokenAction_TokenPreCreate // *TokenAction_TokenFinishCreate // *TokenAction_TokenRevokeCreate // *TokenAction_Transfer // *TokenAction_Withdraw // *TokenAction_Genesis // *TokenAction_TransferToExec // *TokenAction_TokenMint // *TokenAction_TokenBurn Value isTokenAction_Value `protobuf_oneof:"value"` Ty int32 `protobuf:"varint,7,opt,name=Ty,proto3" json:"Ty,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
action
func (*TokenAction) Descriptor ¶
func (*TokenAction) Descriptor() ([]byte, []int)
func (*TokenAction) GetGenesis ¶
func (m *TokenAction) GetGenesis() *types.AssetsGenesis
func (*TokenAction) GetTokenBurn ¶
func (m *TokenAction) GetTokenBurn() *TokenBurn
func (*TokenAction) GetTokenFinishCreate ¶
func (m *TokenAction) GetTokenFinishCreate() *TokenFinishCreate
func (*TokenAction) GetTokenMint ¶
func (m *TokenAction) GetTokenMint() *TokenMint
func (*TokenAction) GetTokenPreCreate ¶
func (m *TokenAction) GetTokenPreCreate() *TokenPreCreate
func (*TokenAction) GetTokenRevokeCreate ¶
func (m *TokenAction) GetTokenRevokeCreate() *TokenRevokeCreate
func (*TokenAction) GetTransfer ¶
func (m *TokenAction) GetTransfer() *types.AssetsTransfer
func (*TokenAction) GetTransferToExec ¶
func (m *TokenAction) GetTransferToExec() *types.AssetsTransferToExec
func (*TokenAction) GetTy ¶
func (m *TokenAction) GetTy() int32
func (*TokenAction) GetValue ¶
func (m *TokenAction) GetValue() isTokenAction_Value
func (*TokenAction) GetWithdraw ¶
func (m *TokenAction) GetWithdraw() *types.AssetsWithdraw
func (*TokenAction) ProtoMessage ¶
func (*TokenAction) ProtoMessage()
func (*TokenAction) Reset ¶
func (m *TokenAction) Reset()
func (*TokenAction) String ¶
func (m *TokenAction) String() string
func (*TokenAction) XXX_DiscardUnknown ¶
func (m *TokenAction) XXX_DiscardUnknown()
func (*TokenAction) XXX_Marshal ¶
func (m *TokenAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenAction) XXX_Merge ¶
func (m *TokenAction) XXX_Merge(src proto.Message)
func (*TokenAction) XXX_OneofFuncs ¶
func (*TokenAction) 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.
func (*TokenAction) XXX_Size ¶
func (m *TokenAction) XXX_Size() int
func (*TokenAction) XXX_Unmarshal ¶
func (m *TokenAction) XXX_Unmarshal(b []byte) error
type TokenAction_Genesis ¶
type TokenAction_Genesis struct {
Genesis *types.AssetsGenesis `protobuf:"bytes,6,opt,name=genesis,proto3,oneof"`
}
type TokenAction_TokenBurn ¶
type TokenAction_TokenBurn struct {
TokenBurn *TokenBurn `protobuf:"bytes,10,opt,name=tokenBurn,proto3,oneof"`
}
type TokenAction_TokenFinishCreate ¶
type TokenAction_TokenFinishCreate struct {
TokenFinishCreate *TokenFinishCreate `protobuf:"bytes,2,opt,name=tokenFinishCreate,proto3,oneof"`
}
type TokenAction_TokenMint ¶
type TokenAction_TokenMint struct {
TokenMint *TokenMint `protobuf:"bytes,9,opt,name=tokenMint,proto3,oneof"`
}
type TokenAction_TokenPreCreate ¶
type TokenAction_TokenPreCreate struct {
TokenPreCreate *TokenPreCreate `protobuf:"bytes,1,opt,name=tokenPreCreate,proto3,oneof"`
}
type TokenAction_TokenRevokeCreate ¶
type TokenAction_TokenRevokeCreate struct {
TokenRevokeCreate *TokenRevokeCreate `protobuf:"bytes,3,opt,name=tokenRevokeCreate,proto3,oneof"`
}
type TokenAction_Transfer ¶
type TokenAction_Transfer struct {
Transfer *types.AssetsTransfer `protobuf:"bytes,4,opt,name=transfer,proto3,oneof"`
}
type TokenAction_TransferToExec ¶
type TokenAction_TransferToExec struct {
TransferToExec *types.AssetsTransferToExec `protobuf:"bytes,8,opt,name=transferToExec,proto3,oneof"`
}
type TokenAction_Withdraw ¶
type TokenAction_Withdraw struct {
Withdraw *types.AssetsWithdraw `protobuf:"bytes,5,opt,name=withdraw,proto3,oneof"`
}
type TokenAsset ¶
type TokenAsset struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Account *types.Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TokenAsset) Descriptor ¶
func (*TokenAsset) Descriptor() ([]byte, []int)
func (*TokenAsset) GetAccount ¶
func (m *TokenAsset) GetAccount() *types.Account
func (*TokenAsset) GetSymbol ¶
func (m *TokenAsset) GetSymbol() string
func (*TokenAsset) ProtoMessage ¶
func (*TokenAsset) ProtoMessage()
func (*TokenAsset) Reset ¶
func (m *TokenAsset) Reset()
func (*TokenAsset) String ¶
func (m *TokenAsset) String() string
func (*TokenAsset) XXX_DiscardUnknown ¶
func (m *TokenAsset) XXX_DiscardUnknown()
func (*TokenAsset) XXX_Marshal ¶
func (m *TokenAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenAsset) XXX_Merge ¶
func (m *TokenAsset) XXX_Merge(src proto.Message)
func (*TokenAsset) XXX_Size ¶
func (m *TokenAsset) XXX_Size() int
func (*TokenAsset) XXX_Unmarshal ¶
func (m *TokenAsset) XXX_Unmarshal(b []byte) error
type TokenBurn ¶
type TokenBurn struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TokenBurn) Descriptor ¶
func (*TokenBurn) ProtoMessage ¶
func (*TokenBurn) ProtoMessage()
func (*TokenBurn) XXX_DiscardUnknown ¶
func (m *TokenBurn) XXX_DiscardUnknown()
func (*TokenBurn) XXX_Marshal ¶
func (*TokenBurn) XXX_Unmarshal ¶
type TokenClient ¶
type TokenClient interface { // token 对外提供服务的接口 //区块链接口 GetTokenBalance(ctx context.Context, in *ReqTokenBalance, opts ...grpc.CallOption) (*types.Accounts, error) }
TokenClient is the client API for Token service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTokenClient ¶
func NewTokenClient(cc *grpc.ClientConn) TokenClient
type TokenFinishCreate ¶
type TokenFinishCreate struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TokenFinishCreate) Descriptor ¶
func (*TokenFinishCreate) Descriptor() ([]byte, []int)
func (*TokenFinishCreate) GetOwner ¶
func (m *TokenFinishCreate) GetOwner() string
func (*TokenFinishCreate) GetSymbol ¶
func (m *TokenFinishCreate) GetSymbol() string
func (*TokenFinishCreate) ProtoMessage ¶
func (*TokenFinishCreate) ProtoMessage()
func (*TokenFinishCreate) Reset ¶
func (m *TokenFinishCreate) Reset()
func (*TokenFinishCreate) String ¶
func (m *TokenFinishCreate) String() string
func (*TokenFinishCreate) XXX_DiscardUnknown ¶
func (m *TokenFinishCreate) XXX_DiscardUnknown()
func (*TokenFinishCreate) XXX_Marshal ¶
func (m *TokenFinishCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenFinishCreate) XXX_Merge ¶
func (m *TokenFinishCreate) XXX_Merge(src proto.Message)
func (*TokenFinishCreate) XXX_Size ¶
func (m *TokenFinishCreate) XXX_Size() int
func (*TokenFinishCreate) XXX_Unmarshal ¶
func (m *TokenFinishCreate) XXX_Unmarshal(b []byte) error
type TokenMint ¶
type TokenMint struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TokenMint) Descriptor ¶
func (*TokenMint) ProtoMessage ¶
func (*TokenMint) ProtoMessage()
func (*TokenMint) XXX_DiscardUnknown ¶
func (m *TokenMint) XXX_DiscardUnknown()
func (*TokenMint) XXX_Marshal ¶
func (*TokenMint) XXX_Unmarshal ¶
type TokenPreCreate ¶
type TokenPreCreate struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"` Introduction string `protobuf:"bytes,3,opt,name=introduction,proto3" json:"introduction,omitempty"` Total int64 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` Price int64 `protobuf:"varint,5,opt,name=price,proto3" json:"price,omitempty"` Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"` Category int32 `protobuf:"varint,7,opt,name=category,proto3" json:"category,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
创建token,支持最大精确度是8位小数,即存入数据库的实际总额需要放大1e8倍
func (*TokenPreCreate) Descriptor ¶
func (*TokenPreCreate) Descriptor() ([]byte, []int)
func (*TokenPreCreate) GetCategory ¶
func (m *TokenPreCreate) GetCategory() int32
func (*TokenPreCreate) GetIntroduction ¶
func (m *TokenPreCreate) GetIntroduction() string
func (*TokenPreCreate) GetName ¶
func (m *TokenPreCreate) GetName() string
func (*TokenPreCreate) GetOwner ¶
func (m *TokenPreCreate) GetOwner() string
func (*TokenPreCreate) GetPrice ¶
func (m *TokenPreCreate) GetPrice() int64
func (*TokenPreCreate) GetSymbol ¶
func (m *TokenPreCreate) GetSymbol() string
func (*TokenPreCreate) GetTotal ¶
func (m *TokenPreCreate) GetTotal() int64
func (*TokenPreCreate) ProtoMessage ¶
func (*TokenPreCreate) ProtoMessage()
func (*TokenPreCreate) Reset ¶
func (m *TokenPreCreate) Reset()
func (*TokenPreCreate) String ¶
func (m *TokenPreCreate) String() string
func (*TokenPreCreate) XXX_DiscardUnknown ¶
func (m *TokenPreCreate) XXX_DiscardUnknown()
func (*TokenPreCreate) XXX_Marshal ¶
func (m *TokenPreCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenPreCreate) XXX_Merge ¶
func (m *TokenPreCreate) XXX_Merge(src proto.Message)
func (*TokenPreCreate) XXX_Size ¶
func (m *TokenPreCreate) XXX_Size() int
func (*TokenPreCreate) XXX_Unmarshal ¶
func (m *TokenPreCreate) XXX_Unmarshal(b []byte) error
type TokenRecv ¶
type TokenRecv struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Recv int64 `protobuf:"varint,2,opt,name=recv,proto3" json:"recv,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TokenRecv) Descriptor ¶
func (*TokenRecv) ProtoMessage ¶
func (*TokenRecv) ProtoMessage()
func (*TokenRecv) XXX_DiscardUnknown ¶
func (m *TokenRecv) XXX_DiscardUnknown()
func (*TokenRecv) XXX_Marshal ¶
func (*TokenRecv) XXX_Unmarshal ¶
type TokenRevokeCreate ¶
type TokenRevokeCreate struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TokenRevokeCreate) Descriptor ¶
func (*TokenRevokeCreate) Descriptor() ([]byte, []int)
func (*TokenRevokeCreate) GetOwner ¶
func (m *TokenRevokeCreate) GetOwner() string
func (*TokenRevokeCreate) GetSymbol ¶
func (m *TokenRevokeCreate) GetSymbol() string
func (*TokenRevokeCreate) ProtoMessage ¶
func (*TokenRevokeCreate) ProtoMessage()
func (*TokenRevokeCreate) Reset ¶
func (m *TokenRevokeCreate) Reset()
func (*TokenRevokeCreate) String ¶
func (m *TokenRevokeCreate) String() string
func (*TokenRevokeCreate) XXX_DiscardUnknown ¶
func (m *TokenRevokeCreate) XXX_DiscardUnknown()
func (*TokenRevokeCreate) XXX_Marshal ¶
func (m *TokenRevokeCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenRevokeCreate) XXX_Merge ¶
func (m *TokenRevokeCreate) XXX_Merge(src proto.Message)
func (*TokenRevokeCreate) XXX_Size ¶
func (m *TokenRevokeCreate) XXX_Size() int
func (*TokenRevokeCreate) XXX_Unmarshal ¶
func (m *TokenRevokeCreate) XXX_Unmarshal(b []byte) error
type TokenServer ¶
type TokenServer interface { // token 对外提供服务的接口 //区块链接口 GetTokenBalance(context.Context, *ReqTokenBalance) (*types.Accounts, error) }
TokenServer is the server API for Token service.
type TokenType ¶
type TokenType struct {
types.ExecTypeBase
}
TokenType 执行器基类结构体
func (*TokenType) CreateTx ¶
func (t *TokenType) CreateTx(action string, msg json.RawMessage) (*types.Transaction, error)
CreateTx token 创建合约
func (*TokenType) GetPayload ¶
GetPayload 获取token action
func (*TokenType) GetTypeMap ¶
GetTypeMap 根据action的name获取type
func (*TokenType) RPC_Default_Process ¶
func (t *TokenType) RPC_Default_Process(action string, msg interface{}) (*types.Transaction, error)
RPC_Default_Process rpc 默认处理
Click to show internal directories.
Click to hide internal directories.