ccprotos

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

README

Use following line to update protos:


protoc --proto_path=<GOPATH>/src/hyperledger.abchain.org/protos --proto_path=<CWD> --go_out=. *.proto

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	QueryToken_Formats_name = map[int32]string{
		0: "NUMBER",
		1: "ENCODED",
	}
	QueryToken_Formats_value = map[string]int32{
		"NUMBER":  0,
		"ENCODED": 1,
	}
)

Enum value maps for QueryToken_Formats.

View Source
var File_tokentx_proto protoreflect.FileDescriptor
View Source
var NewMultiTokenContext mtokenEvt

NewMultiTokenContext is the global implement

View Source
var NewTransferEvent transferEvt

NewTransferEvent is the global implement

View Source
var NewTransferResult transferResult

NewTransferResult is the global implement

Functions

This section is empty.

Types

type AccountData

type AccountData struct {
	Balance  []byte      `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` //the amount of user owned token
	LastFund *FuncRecord `protobuf:"bytes,2,opt,name=lastFund,proto3" json:"lastFund,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountData) Descriptor deprecated

func (*AccountData) Descriptor() ([]byte, []int)

Deprecated: Use AccountData.ProtoReflect.Descriptor instead.

func (*AccountData) GetBalance

func (x *AccountData) GetBalance() []byte

func (*AccountData) GetLastFund

func (x *AccountData) GetLastFund() *FuncRecord

func (*AccountData) ProtoMessage

func (*AccountData) ProtoMessage()

func (*AccountData) ProtoReflect added in v0.2.3

func (x *AccountData) ProtoReflect() protoreflect.Message

func (*AccountData) Reset

func (x *AccountData) Reset()

func (*AccountData) String

func (x *AccountData) String() string

type AccountData_s

type AccountData_s struct {
	// contains filtered or unexported fields
}

func (*AccountData_s) GetObject

func (n *AccountData_s) GetObject() interface{}

func (*AccountData_s) Load

func (n *AccountData_s) Load(interface{}) error

func (*AccountData_s) LoadFromPB

func (n *AccountData_s) LoadFromPB(p *AccountData)

func (*AccountData_s) Save

func (n *AccountData_s) Save() interface{}

func (*AccountData_s) ToPB

func (n *AccountData_s) ToPB() *AccountData

type Assign

type Assign struct {
	Amount []byte         `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	To     *protos.TxAddr `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*Assign) Descriptor deprecated

func (*Assign) Descriptor() ([]byte, []int)

Deprecated: Use Assign.ProtoReflect.Descriptor instead.

func (*Assign) GetAmount

func (x *Assign) GetAmount() []byte

func (*Assign) GetTo

func (x *Assign) GetTo() *protos.TxAddr

func (*Assign) ProtoMessage

func (*Assign) ProtoMessage()

func (*Assign) ProtoReflect added in v0.2.3

func (x *Assign) ProtoReflect() protoreflect.Message

func (*Assign) Reset

func (x *Assign) Reset()

func (*Assign) String

func (x *Assign) String() string

type BaseToken

type BaseToken struct {
	TotalTokens []byte `protobuf:"bytes,1,opt,name=totalTokens,proto3" json:"totalTokens,omitempty"`
	// contains filtered or unexported fields
}

func (*BaseToken) Descriptor deprecated

func (*BaseToken) Descriptor() ([]byte, []int)

Deprecated: Use BaseToken.ProtoReflect.Descriptor instead.

func (*BaseToken) GetTotalTokens

func (x *BaseToken) GetTotalTokens() []byte

func (*BaseToken) MsgDetail

func (m *BaseToken) MsgDetail() interface{}

func (*BaseToken) ProtoMessage

func (*BaseToken) ProtoMessage()

func (*BaseToken) ProtoReflect added in v0.2.3

func (x *BaseToken) ProtoReflect() protoreflect.Message

func (*BaseToken) Reset

func (x *BaseToken) Reset()

func (*BaseToken) String

func (x *BaseToken) String() string

type FuncRecord

type FuncRecord struct {
	Noncekey []byte `protobuf:"bytes,1,opt,name=noncekey,proto3" json:"noncekey,omitempty"`
	IsSend   bool   `protobuf:"varint,2,opt,name=isSend,proto3" json:"isSend,omitempty"`
	// contains filtered or unexported fields
}

func (*FuncRecord) Descriptor deprecated

func (*FuncRecord) Descriptor() ([]byte, []int)

Deprecated: Use FuncRecord.ProtoReflect.Descriptor instead.

func (*FuncRecord) GetIsSend

func (x *FuncRecord) GetIsSend() bool

func (*FuncRecord) GetNoncekey

func (x *FuncRecord) GetNoncekey() []byte

func (*FuncRecord) ProtoMessage

func (*FuncRecord) ProtoMessage()

func (*FuncRecord) ProtoReflect added in v0.2.3

func (x *FuncRecord) ProtoReflect() protoreflect.Message

func (*FuncRecord) Reset

func (x *FuncRecord) Reset()

func (*FuncRecord) String

func (x *FuncRecord) String() string

type FuncRecord_s

type FuncRecord_s struct {
	Noncekey []byte
	IsSend   bool
}

func (*FuncRecord_s) LoadFromPB

func (n *FuncRecord_s) LoadFromPB(p *FuncRecord)

func (*FuncRecord_s) MarshalJSON

func (n *FuncRecord_s) MarshalJSON() ([]byte, error)

func (*FuncRecord_s) ToPB

func (n *FuncRecord_s) ToPB() *FuncRecord

type MultiTokenMsg

type MultiTokenMsg struct {
	TokenName string `protobuf:"bytes,1,opt,name=tokenName,proto3" json:"tokenName,omitempty"`
	//	bytes tokenMsg = 2;
	//
	// Types that are assignable to Msg:
	//	*MultiTokenMsg_Fund
	//	*MultiTokenMsg_Query
	//	*MultiTokenMsg_Init
	Msg isMultiTokenMsg_Msg `protobuf_oneof:"msg"`
	// contains filtered or unexported fields
}

func (*MultiTokenMsg) Descriptor deprecated

func (*MultiTokenMsg) Descriptor() ([]byte, []int)

Deprecated: Use MultiTokenMsg.ProtoReflect.Descriptor instead.

func (*MultiTokenMsg) GetAddresses

func (m *MultiTokenMsg) GetAddresses() []*tx.Address

func (*MultiTokenMsg) GetFund

func (x *MultiTokenMsg) GetFund() *SimpleFund

func (*MultiTokenMsg) GetInit

func (x *MultiTokenMsg) GetInit() *BaseToken

func (*MultiTokenMsg) GetMsg

func (m *MultiTokenMsg) GetMsg() isMultiTokenMsg_Msg

func (*MultiTokenMsg) GetQuery

func (x *MultiTokenMsg) GetQuery() *QueryToken

func (*MultiTokenMsg) GetTokenName

func (x *MultiTokenMsg) GetTokenName() string

func (*MultiTokenMsg) MsgDetail

func (m *MultiTokenMsg) MsgDetail() interface{}

func (*MultiTokenMsg) ProtoMessage

func (*MultiTokenMsg) ProtoMessage()

func (*MultiTokenMsg) ProtoReflect added in v0.2.3

func (x *MultiTokenMsg) ProtoReflect() protoreflect.Message

func (*MultiTokenMsg) Reset

func (x *MultiTokenMsg) Reset()

func (*MultiTokenMsg) String

func (x *MultiTokenMsg) String() string

type MultiTokenMsg_Fund

type MultiTokenMsg_Fund struct {
	Fund *SimpleFund `protobuf:"bytes,3,opt,name=fund,proto3,oneof"`
}

type MultiTokenMsg_Init

type MultiTokenMsg_Init struct {
	Init *BaseToken `protobuf:"bytes,5,opt,name=init,proto3,oneof"`
}

type MultiTokenMsg_Query

type MultiTokenMsg_Query struct {
	Query *QueryToken `protobuf:"bytes,4,opt,name=query,proto3,oneof"`
}

type MultiTokenRecord added in v0.2.3

type MultiTokenRecord struct {
	Noncekey  []byte `protobuf:"bytes,1,opt,name=noncekey,proto3" json:"noncekey,omitempty"`
	TokenName string `protobuf:"bytes,2,opt,name=tokenName,proto3" json:"tokenName,omitempty"`
	// contains filtered or unexported fields
}

func (*MultiTokenRecord) Descriptor deprecated added in v0.2.3

func (*MultiTokenRecord) Descriptor() ([]byte, []int)

Deprecated: Use MultiTokenRecord.ProtoReflect.Descriptor instead.

func (*MultiTokenRecord) GetNoncekey added in v0.2.3

func (x *MultiTokenRecord) GetNoncekey() []byte

func (*MultiTokenRecord) GetTokenName added in v0.2.3

func (x *MultiTokenRecord) GetTokenName() string

func (*MultiTokenRecord) ProtoMessage added in v0.2.3

func (*MultiTokenRecord) ProtoMessage()

func (*MultiTokenRecord) ProtoReflect added in v0.2.3

func (x *MultiTokenRecord) ProtoReflect() protoreflect.Message

func (*MultiTokenRecord) Reset added in v0.2.3

func (x *MultiTokenRecord) Reset()

func (*MultiTokenRecord) String added in v0.2.3

func (x *MultiTokenRecord) String() string

type NonceData

type NonceData struct {
	Txid     string      `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"`
	Amount   []byte      `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	FromLast *FuncRecord `protobuf:"bytes,3,opt,name=fromLast,proto3" json:"fromLast,omitempty"`
	ToLast   *FuncRecord `protobuf:"bytes,4,opt,name=toLast,proto3" json:"toLast,omitempty"`
	// Types that are assignable to Other:
	//	*NonceData_NonceTime
	//	*NonceData_Noncekey
	Other isNonceData_Other `protobuf_oneof:"other"`
	// contains filtered or unexported fields
}

func (*NonceData) Descriptor deprecated

func (*NonceData) Descriptor() ([]byte, []int)

Deprecated: Use NonceData.ProtoReflect.Descriptor instead.

func (*NonceData) GetAmount

func (x *NonceData) GetAmount() []byte

func (*NonceData) GetFromLast

func (x *NonceData) GetFromLast() *FuncRecord

func (*NonceData) GetNonceTime

func (x *NonceData) GetNonceTime() *timestamp.Timestamp

func (*NonceData) GetNoncekey

func (x *NonceData) GetNoncekey() []byte

func (*NonceData) GetOther

func (m *NonceData) GetOther() isNonceData_Other

func (*NonceData) GetToLast

func (x *NonceData) GetToLast() *FuncRecord

func (*NonceData) GetTxid

func (x *NonceData) GetTxid() string

func (*NonceData) ProtoMessage

func (*NonceData) ProtoMessage()

func (*NonceData) ProtoReflect added in v0.2.3

func (x *NonceData) ProtoReflect() protoreflect.Message

func (*NonceData) Reset

func (x *NonceData) Reset()

func (*NonceData) String

func (x *NonceData) String() string

type NonceData_NonceTime

type NonceData_NonceTime struct {
	NonceTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=nonceTime,proto3,oneof"`
}

type NonceData_Noncekey

type NonceData_Noncekey struct {
	Noncekey []byte `protobuf:"bytes,7,opt,name=noncekey,proto3,oneof"`
}

type NonceData_s

type NonceData_s struct {
	// contains filtered or unexported fields
}

func (*NonceData_s) GetObject

func (n *NonceData_s) GetObject() interface{}

func (*NonceData_s) Load

func (n *NonceData_s) Load(interface{}) error

func (*NonceData_s) LoadFromPB

func (n *NonceData_s) LoadFromPB(p *NonceData)

func (*NonceData_s) Save

func (n *NonceData_s) Save() interface{}

func (*NonceData_s) ToPB

func (n *NonceData_s) ToPB() *NonceData

type NonceKey

type NonceKey []byte

func NonceKeyFromString

func NonceKeyFromString(ns string) (NonceKey, error)

func (NonceKey) MarshalJSON

func (n NonceKey) MarshalJSON() ([]byte, error)

type QueryGlobal

type QueryGlobal struct {
	// contains filtered or unexported fields
}

func (*QueryGlobal) Descriptor deprecated

func (*QueryGlobal) Descriptor() ([]byte, []int)

Deprecated: Use QueryGlobal.ProtoReflect.Descriptor instead.

func (*QueryGlobal) ProtoMessage

func (*QueryGlobal) ProtoMessage()

func (*QueryGlobal) ProtoReflect added in v0.2.3

func (x *QueryGlobal) ProtoReflect() protoreflect.Message

func (*QueryGlobal) Reset

func (x *QueryGlobal) Reset()

func (*QueryGlobal) String

func (x *QueryGlobal) String() string

type QueryToken

type QueryToken struct {
	Format QueryToken_Formats `protobuf:"varint,1,opt,name=format,proto3,enum=ccprotos.QueryToken_Formats" json:"format,omitempty"`
	Addr   *protos.TxAddr     `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryToken) Descriptor deprecated

func (*QueryToken) Descriptor() ([]byte, []int)

Deprecated: Use QueryToken.ProtoReflect.Descriptor instead.

func (*QueryToken) GetAddr

func (x *QueryToken) GetAddr() *protos.TxAddr

func (*QueryToken) GetAddresses

func (m *QueryToken) GetAddresses() []*tx.Address

func (*QueryToken) GetFormat

func (x *QueryToken) GetFormat() QueryToken_Formats

func (*QueryToken) ProtoMessage

func (*QueryToken) ProtoMessage()

func (*QueryToken) ProtoReflect added in v0.2.3

func (x *QueryToken) ProtoReflect() protoreflect.Message

func (*QueryToken) Reset

func (x *QueryToken) Reset()

func (*QueryToken) String

func (x *QueryToken) String() string

type QueryToken_Formats

type QueryToken_Formats int32
const (
	QueryToken_NUMBER  QueryToken_Formats = 0 //only raw numbers (into bytes)
	QueryToken_ENCODED QueryToken_Formats = 1 //encoded Protobuffer
)

func (QueryToken_Formats) Descriptor added in v0.2.3

func (QueryToken_Formats) Enum added in v0.2.3

func (QueryToken_Formats) EnumDescriptor deprecated

func (QueryToken_Formats) EnumDescriptor() ([]byte, []int)

Deprecated: Use QueryToken_Formats.Descriptor instead.

func (QueryToken_Formats) Number added in v0.2.3

func (QueryToken_Formats) String

func (x QueryToken_Formats) String() string

func (QueryToken_Formats) Type added in v0.2.3

type QueryTransfer

type QueryTransfer struct {
	Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryTransfer) Descriptor deprecated

func (*QueryTransfer) Descriptor() ([]byte, []int)

Deprecated: Use QueryTransfer.ProtoReflect.Descriptor instead.

func (*QueryTransfer) GetNonce

func (x *QueryTransfer) GetNonce() []byte

func (*QueryTransfer) ProtoMessage

func (*QueryTransfer) ProtoMessage()

func (*QueryTransfer) ProtoReflect added in v0.2.3

func (x *QueryTransfer) ProtoReflect() protoreflect.Message

func (*QueryTransfer) Reset

func (x *QueryTransfer) Reset()

func (*QueryTransfer) String

func (x *QueryTransfer) String() string

type SimpleFund

type SimpleFund struct {
	Amount []byte         `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	To     *protos.TxAddr `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	From   *protos.TxAddr `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	// contains filtered or unexported fields
}

func (*SimpleFund) Descriptor deprecated

func (*SimpleFund) Descriptor() ([]byte, []int)

Deprecated: Use SimpleFund.ProtoReflect.Descriptor instead.

func (*SimpleFund) GetAddresses

func (m *SimpleFund) GetAddresses() []*tx.Address

the default address extractor in message

func (*SimpleFund) GetAmount

func (x *SimpleFund) GetAmount() []byte

func (*SimpleFund) GetFrom

func (x *SimpleFund) GetFrom() *protos.TxAddr

func (*SimpleFund) GetTo

func (x *SimpleFund) GetTo() *protos.TxAddr

func (*SimpleFund) MsgDetail

func (m *SimpleFund) MsgDetail() interface{}

func (*SimpleFund) ProtoMessage

func (*SimpleFund) ProtoMessage()

func (*SimpleFund) ProtoReflect added in v0.2.3

func (x *SimpleFund) ProtoReflect() protoreflect.Message

func (*SimpleFund) Reset

func (x *SimpleFund) Reset()

func (*SimpleFund) String

func (x *SimpleFund) String() string

type TokenGlobalData

type TokenGlobalData struct {
	TotalTokens      []byte `protobuf:"bytes,10,opt,name=totalTokens,proto3" json:"totalTokens,omitempty"`
	UnassignedTokens []byte `protobuf:"bytes,11,opt,name=unassignedTokens,proto3" json:"unassignedTokens,omitempty"`
	// contains filtered or unexported fields
}

func (*TokenGlobalData) Descriptor deprecated

func (*TokenGlobalData) Descriptor() ([]byte, []int)

Deprecated: Use TokenGlobalData.ProtoReflect.Descriptor instead.

func (*TokenGlobalData) GetTotalTokens

func (x *TokenGlobalData) GetTotalTokens() []byte

func (*TokenGlobalData) GetUnassignedTokens

func (x *TokenGlobalData) GetUnassignedTokens() []byte

func (*TokenGlobalData) ProtoMessage

func (*TokenGlobalData) ProtoMessage()

func (*TokenGlobalData) ProtoReflect added in v0.2.3

func (x *TokenGlobalData) ProtoReflect() protoreflect.Message

func (*TokenGlobalData) Reset

func (x *TokenGlobalData) Reset()

func (*TokenGlobalData) String

func (x *TokenGlobalData) String() string

type TokenGlobalData_s

type TokenGlobalData_s struct {
	// contains filtered or unexported fields
}

func (*TokenGlobalData_s) GetObject

func (n *TokenGlobalData_s) GetObject() interface{}

func (*TokenGlobalData_s) Load

func (n *TokenGlobalData_s) Load(interface{}) error

func (*TokenGlobalData_s) LoadFromPB

func (n *TokenGlobalData_s) LoadFromPB(p *TokenGlobalData)

func (*TokenGlobalData_s) Save

func (n *TokenGlobalData_s) Save() interface{}

func (*TokenGlobalData_s) ToPB

type TransferResult added in v0.2.3

type TransferResult struct {
	Noncekey []byte                        `protobuf:"bytes,1,opt,name=noncekey,proto3" json:"noncekey,omitempty"`
	From     *TransferResult_AccountStatus `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	To       *TransferResult_AccountStatus `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferResult) Descriptor deprecated added in v0.2.3

func (*TransferResult) Descriptor() ([]byte, []int)

Deprecated: Use TransferResult.ProtoReflect.Descriptor instead.

func (*TransferResult) GetFrom added in v0.2.3

func (*TransferResult) GetNoncekey added in v0.2.3

func (x *TransferResult) GetNoncekey() []byte

func (*TransferResult) GetTo added in v0.2.3

func (*TransferResult) ProtoMessage added in v0.2.3

func (*TransferResult) ProtoMessage()

func (*TransferResult) ProtoReflect added in v0.2.3

func (x *TransferResult) ProtoReflect() protoreflect.Message

func (*TransferResult) Reset added in v0.2.3

func (x *TransferResult) Reset()

func (*TransferResult) String added in v0.2.3

func (x *TransferResult) String() string

type TransferResult_AccountStatus added in v0.2.3

type TransferResult_AccountStatus struct {
	Addr    *protos.TxAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Balance []byte         `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferResult_AccountStatus) Descriptor deprecated added in v0.2.3

func (*TransferResult_AccountStatus) Descriptor() ([]byte, []int)

Deprecated: Use TransferResult_AccountStatus.ProtoReflect.Descriptor instead.

func (*TransferResult_AccountStatus) GetAddr added in v0.2.3

func (*TransferResult_AccountStatus) GetBalance added in v0.2.3

func (x *TransferResult_AccountStatus) GetBalance() []byte

func (*TransferResult_AccountStatus) ProtoMessage added in v0.2.3

func (*TransferResult_AccountStatus) ProtoMessage()

func (*TransferResult_AccountStatus) ProtoReflect added in v0.2.3

func (*TransferResult_AccountStatus) Reset added in v0.2.3

func (x *TransferResult_AccountStatus) Reset()

func (*TransferResult_AccountStatus) String added in v0.2.3

Jump to

Keyboard shortcuts

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