types

package
v0.0.0-...-9f7d4ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*LocalLogs) GetActionType

func (m *LocalLogs) GetActionType() int32

func (*LocalLogs) GetSymbol

func (m *LocalLogs) GetSymbol() string

func (*LocalLogs) GetTxHash

func (m *LocalLogs) GetTxHash() string

func (*LocalLogs) GetTxIndex

func (m *LocalLogs) GetTxIndex() string

func (*LocalLogs) ProtoMessage

func (*LocalLogs) ProtoMessage()

func (*LocalLogs) Reset

func (m *LocalLogs) Reset()

func (*LocalLogs) String

func (m *LocalLogs) String() string

func (*LocalLogs) XXX_DiscardUnknown

func (m *LocalLogs) XXX_DiscardUnknown()

func (*LocalLogs) XXX_Marshal

func (m *LocalLogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LocalLogs) XXX_Merge

func (m *LocalLogs) XXX_Merge(src proto.Message)

func (*LocalLogs) XXX_Size

func (m *LocalLogs) XXX_Size() int

func (*LocalLogs) XXX_Unmarshal

func (m *LocalLogs) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqTokens) GetQueryAll

func (m *ReqTokens) GetQueryAll() bool

func (*ReqTokens) GetStatus

func (m *ReqTokens) GetStatus() int32

func (*ReqTokens) GetSymbolOnly

func (m *ReqTokens) GetSymbolOnly() bool

func (*ReqTokens) GetTokens

func (m *ReqTokens) GetTokens() []string

func (*ReqTokens) ProtoMessage

func (*ReqTokens) ProtoMessage()

func (*ReqTokens) Reset

func (m *ReqTokens) Reset()

func (*ReqTokens) String

func (m *ReqTokens) String() string

func (*ReqTokens) XXX_DiscardUnknown

func (m *ReqTokens) XXX_DiscardUnknown()

func (*ReqTokens) XXX_Marshal

func (m *ReqTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqTokens) XXX_Merge

func (m *ReqTokens) XXX_Merge(src proto.Message)

func (*ReqTokens) XXX_Size

func (m *ReqTokens) XXX_Size() int

func (*ReqTokens) XXX_Unmarshal

func (m *ReqTokens) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Token) GetCategory

func (m *Token) GetCategory() int32

func (*Token) GetCreator

func (m *Token) GetCreator() string

func (*Token) GetIntroduction

func (m *Token) GetIntroduction() string

func (*Token) GetName

func (m *Token) GetName() string

func (*Token) GetOwner

func (m *Token) GetOwner() string

func (*Token) GetPrice

func (m *Token) GetPrice() int64

func (*Token) GetStatus

func (m *Token) GetStatus() int32

func (*Token) GetSymbol

func (m *Token) GetSymbol() string

func (*Token) GetTotal

func (m *Token) GetTotal() int64

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) Reset

func (m *Token) Reset()

func (*Token) String

func (m *Token) String() string

func (*Token) XXX_DiscardUnknown

func (m *Token) XXX_DiscardUnknown()

func (*Token) XXX_Marshal

func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Token) XXX_Merge

func (m *Token) XXX_Merge(src proto.Message)

func (*Token) XXX_Size

func (m *Token) XXX_Size() int

func (*Token) XXX_Unmarshal

func (m *Token) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*TokenBurn) GetAmount

func (m *TokenBurn) GetAmount() int64

func (*TokenBurn) GetSymbol

func (m *TokenBurn) GetSymbol() string

func (*TokenBurn) ProtoMessage

func (*TokenBurn) ProtoMessage()

func (*TokenBurn) Reset

func (m *TokenBurn) Reset()

func (*TokenBurn) String

func (m *TokenBurn) String() string

func (*TokenBurn) XXX_DiscardUnknown

func (m *TokenBurn) XXX_DiscardUnknown()

func (*TokenBurn) XXX_Marshal

func (m *TokenBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenBurn) XXX_Merge

func (m *TokenBurn) XXX_Merge(src proto.Message)

func (*TokenBurn) XXX_Size

func (m *TokenBurn) XXX_Size() int

func (*TokenBurn) XXX_Unmarshal

func (m *TokenBurn) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*TokenMint) GetAmount

func (m *TokenMint) GetAmount() int64

func (*TokenMint) GetSymbol

func (m *TokenMint) GetSymbol() string

func (*TokenMint) ProtoMessage

func (*TokenMint) ProtoMessage()

func (*TokenMint) Reset

func (m *TokenMint) Reset()

func (*TokenMint) String

func (m *TokenMint) String() string

func (*TokenMint) XXX_DiscardUnknown

func (m *TokenMint) XXX_DiscardUnknown()

func (*TokenMint) XXX_Marshal

func (m *TokenMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenMint) XXX_Merge

func (m *TokenMint) XXX_Merge(src proto.Message)

func (*TokenMint) XXX_Size

func (m *TokenMint) XXX_Size() int

func (*TokenMint) XXX_Unmarshal

func (m *TokenMint) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*TokenRecv) GetRecv

func (m *TokenRecv) GetRecv() int64

func (*TokenRecv) GetToken

func (m *TokenRecv) GetToken() string

func (*TokenRecv) ProtoMessage

func (*TokenRecv) ProtoMessage()

func (*TokenRecv) Reset

func (m *TokenRecv) Reset()

func (*TokenRecv) String

func (m *TokenRecv) String() string

func (*TokenRecv) XXX_DiscardUnknown

func (m *TokenRecv) XXX_DiscardUnknown()

func (*TokenRecv) XXX_Marshal

func (m *TokenRecv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenRecv) XXX_Merge

func (m *TokenRecv) XXX_Merge(src proto.Message)

func (*TokenRecv) XXX_Size

func (m *TokenRecv) XXX_Size() int

func (*TokenRecv) XXX_Unmarshal

func (m *TokenRecv) XXX_Unmarshal(b []byte) error

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 NewType

func NewType() *TokenType

NewType 创建执行器类型

func (*TokenType) CreateTx

func (t *TokenType) CreateTx(action string, msg json.RawMessage) (*types.Transaction, error)

CreateTx token 创建合约

func (*TokenType) GetLogMap

func (t *TokenType) GetLogMap() map[int64]*types.LogInfo

GetLogMap 获取log的映射对应关系

func (*TokenType) GetName

func (t *TokenType) GetName() string

GetName 获取执行器名称

func (*TokenType) GetPayload

func (t *TokenType) GetPayload() types.Message

GetPayload 获取token action

func (*TokenType) GetTypeMap

func (t *TokenType) GetTypeMap() map[string]int32

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 默认处理

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL