ccprotos

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: Apache-2.0 Imports: 11 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

Overview

Package ccprotos is a generated protocol buffer package.

It is generated from these files:

tokentx.proto

It has these top-level messages:

SimpleFund
QueryToken
QueryTransfer
QueryGlobal
BaseToken
Assign
FuncRecord
AccountData
NonceData
TokenGlobalData
MultiTokenMsg

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type AccountData

type AccountData struct {
	Balance  []byte      `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
	LastFund *FuncRecord `protobuf:"bytes,2,opt,name=lastFund" json:"lastFund,omitempty"`
}

func (*AccountData) Descriptor

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

func (*AccountData) GetBalance

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

func (*AccountData) GetLastFund

func (m *AccountData) GetLastFund() *FuncRecord

func (*AccountData) ProtoMessage

func (*AccountData) ProtoMessage()

func (*AccountData) Reset

func (m *AccountData) Reset()

func (*AccountData) String

func (m *AccountData) String() string

type AccountData_s

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

func (*AccountData_s) GetObject

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

func (*AccountData_s) Load

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

func (*AccountData_s) LoadFromPB

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

func (*AccountData_s) Save

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

func (*AccountData_s) ToPB

func (n *AccountData_s) ToPB() *AccountData

type Assign

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

func (*Assign) Descriptor

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

func (*Assign) GetAmount

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

func (*Assign) GetTo

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

func (*Assign) ProtoMessage

func (*Assign) ProtoMessage()

func (*Assign) Reset

func (m *Assign) Reset()

func (*Assign) String

func (m *Assign) String() string

type BaseToken

type BaseToken struct {
	TotalTokens []byte `protobuf:"bytes,1,opt,name=totalTokens,proto3" json:"totalTokens,omitempty"`
}

func (*BaseToken) Descriptor

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

func (*BaseToken) GetTotalTokens

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

func (*BaseToken) MsgDetail

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

func (*BaseToken) ProtoMessage

func (*BaseToken) ProtoMessage()

func (*BaseToken) Reset

func (m *BaseToken) Reset()

func (*BaseToken) String

func (m *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" json:"isSend,omitempty"`
}

func (*FuncRecord) Descriptor

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

func (*FuncRecord) GetIsSend

func (m *FuncRecord) GetIsSend() bool

func (*FuncRecord) GetNoncekey

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

func (*FuncRecord) ProtoMessage

func (*FuncRecord) ProtoMessage()

func (*FuncRecord) Reset

func (m *FuncRecord) Reset()

func (*FuncRecord) String

func (m *FuncRecord) String() string

type FuncRecord_s

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" json:"tokenName,omitempty"`
	// 	bytes tokenMsg = 2;
	//
	// Types that are valid to be assigned to Msg:
	//	*MultiTokenMsg_Fund
	//	*MultiTokenMsg_Query
	//	*MultiTokenMsg_Init
	Msg isMultiTokenMsg_Msg `protobuf_oneof:"msg"`
}

func (*MultiTokenMsg) Descriptor

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

func (*MultiTokenMsg) GetAddresses

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

func (*MultiTokenMsg) GetFund

func (m *MultiTokenMsg) GetFund() *SimpleFund

func (*MultiTokenMsg) GetInit

func (m *MultiTokenMsg) GetInit() *BaseToken

func (*MultiTokenMsg) GetMsg

func (m *MultiTokenMsg) GetMsg() isMultiTokenMsg_Msg

func (*MultiTokenMsg) GetQuery

func (m *MultiTokenMsg) GetQuery() *QueryToken

func (*MultiTokenMsg) GetTokenName

func (m *MultiTokenMsg) GetTokenName() string

func (*MultiTokenMsg) MsgDetail

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

func (*MultiTokenMsg) ProtoMessage

func (*MultiTokenMsg) ProtoMessage()

func (*MultiTokenMsg) Reset

func (m *MultiTokenMsg) Reset()

func (*MultiTokenMsg) String

func (m *MultiTokenMsg) String() string

func (*MultiTokenMsg) XXX_OneofFuncs

func (*MultiTokenMsg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type MultiTokenMsg_Fund

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

type MultiTokenMsg_Init

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

type MultiTokenMsg_Query

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

type NonceData

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

func (*NonceData) Descriptor

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

func (*NonceData) GetAmount

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

func (*NonceData) GetFromLast

func (m *NonceData) GetFromLast() *FuncRecord

func (*NonceData) GetNonceTime

func (m *NonceData) GetNonceTime() *google_protobuf.Timestamp

func (*NonceData) GetNoncekey

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

func (*NonceData) GetOther

func (m *NonceData) GetOther() isNonceData_Other

func (*NonceData) GetToLast

func (m *NonceData) GetToLast() *FuncRecord

func (*NonceData) GetTxid

func (m *NonceData) GetTxid() string

func (*NonceData) ProtoMessage

func (*NonceData) ProtoMessage()

func (*NonceData) Reset

func (m *NonceData) Reset()

func (*NonceData) String

func (m *NonceData) String() string

func (*NonceData) XXX_OneofFuncs

func (*NonceData) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type NonceData_NonceTime

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

type NonceData_Noncekey

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

type NonceData_s

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

func (*NonceData_s) GetObject

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

func (*NonceData_s) Load

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

func (*NonceData_s) LoadFromPB

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

func (*NonceData_s) Save

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

func (*NonceData_s) ToPB

func (n *NonceData_s) ToPB() *NonceData

type 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 {
}

func (*QueryGlobal) Descriptor

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

func (*QueryGlobal) ProtoMessage

func (*QueryGlobal) ProtoMessage()

func (*QueryGlobal) Reset

func (m *QueryGlobal) Reset()

func (*QueryGlobal) String

func (m *QueryGlobal) String() string

type QueryToken

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

func (*QueryToken) Descriptor

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

func (*QueryToken) GetAddr

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

func (*QueryToken) GetAddresses

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

func (*QueryToken) GetFormat

func (m *QueryToken) GetFormat() QueryToken_Formats

func (*QueryToken) ProtoMessage

func (*QueryToken) ProtoMessage()

func (*QueryToken) Reset

func (m *QueryToken) Reset()

func (*QueryToken) String

func (m *QueryToken) String() string

type QueryToken_Formats

type QueryToken_Formats int32
const (
	QueryToken_NUMBER  QueryToken_Formats = 0
	QueryToken_ENCODED QueryToken_Formats = 1
)

func (QueryToken_Formats) EnumDescriptor

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

func (QueryToken_Formats) String

func (x QueryToken_Formats) String() string

type QueryTransfer

type QueryTransfer struct {
	Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
}

func (*QueryTransfer) Descriptor

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

func (*QueryTransfer) GetNonce

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

func (*QueryTransfer) ProtoMessage

func (*QueryTransfer) ProtoMessage()

func (*QueryTransfer) Reset

func (m *QueryTransfer) Reset()

func (*QueryTransfer) String

func (m *QueryTransfer) String() string

type SimpleFund

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

func (*SimpleFund) Descriptor

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

func (*SimpleFund) GetAddresses

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

the default address extractor in message

func (*SimpleFund) GetAmount

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

func (*SimpleFund) GetFrom

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

func (*SimpleFund) GetTo

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

func (*SimpleFund) MsgDetail

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

func (*SimpleFund) ProtoMessage

func (*SimpleFund) ProtoMessage()

func (*SimpleFund) Reset

func (m *SimpleFund) Reset()

func (*SimpleFund) String

func (m *SimpleFund) String() string

type TokenGlobalData

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

func (*TokenGlobalData) Descriptor

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

func (*TokenGlobalData) GetTotalTokens

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

func (*TokenGlobalData) GetUnassignedTokens

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

func (*TokenGlobalData) ProtoMessage

func (*TokenGlobalData) ProtoMessage()

func (*TokenGlobalData) Reset

func (m *TokenGlobalData) Reset()

func (*TokenGlobalData) String

func (m *TokenGlobalData) String() string

type TokenGlobalData_s

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

func (*TokenGlobalData_s) GetObject

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

func (*TokenGlobalData_s) Load

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

func (*TokenGlobalData_s) LoadFromPB

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

func (*TokenGlobalData_s) Save

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

func (*TokenGlobalData_s) ToPB

Jump to

Keyboard shortcuts

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