api

package
v3.7.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package api is a generated protocol buffer package.

It is generated from these files:

github.com/bottos-project/bottos/api/transaction.proto
github.com/bottos-project/bottos/api/basic-transaction.proto
github.com/bottos-project/bottos/api/chain.proto

It has these top-level messages:

Transaction
BasicTransaction
SendTransactionResponse
GetTransactionRequest
GetTransactionResponse
GetBlockRequest
GetBlockResponse
GetInfoRequest
GetInfoResponse
GetAccountRequest
GetAccountResponse
GetKeyValueRequest
GetKeyValueResponse
GetAbiRequest
GetAbiResponse
GetTransferCreditRequest
GetTransferCreditResponse

Package api is a generated protocol buffer package.

It is generated from these files:

github.com/bottos-project/bottos/api/transaction.proto
github.com/bottos-project/bottos/api/basic-transaction.proto
github.com/bottos-project/bottos/api/chain.proto

It has these top-level messages:

Transaction
BasicTransaction
SendTransactionResponse
GetTransactionRequest
GetTransactionResponse
GetBlockRequest
GetBlockResponse
GetInfoRequest
GetInfoResponse
GetAccountRequest
GetAccountResponse
GetKeyValueRequest
GetKeyValueResponse
GetAbiRequest
GetAbiResponse
GetTransferCreditRequest
GetTransferCreditResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterChainHandler

func RegisterChainHandler(s server.Server, hdlr ChainHandler, opts ...server.HandlerOption)

Types

type BasicTransaction

type BasicTransaction struct {
	Version     uint32 `protobuf:"varint,1,opt,name=version" json:"version"`
	CursorNum   uint64 `protobuf:"varint,2,opt,name=cursor_num,json=cursorNum" json:"cursor_num"`
	CursorLabel uint32 `protobuf:"varint,3,opt,name=cursor_label,json=cursorLabel" json:"cursor_label"`
	Lifetime    uint64 `protobuf:"varint,4,opt,name=lifetime" json:"lifetime"`
	Sender      string `protobuf:"bytes,5,opt,name=sender" json:"sender"`
	Contract    string `protobuf:"bytes,6,opt,name=contract" json:"contract"`
	Method      string `protobuf:"bytes,7,opt,name=method" json:"method"`
	Param       []byte `protobuf:"bytes,8,opt,name=param,proto3" json:"param"`
	SigAlg      uint32 `protobuf:"varint,9,opt,name=sig_alg,json=sigAlg" json:"sig_alg"`
}

BasicTransaction definition for serialization

func (*BasicTransaction) Descriptor

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

func (*BasicTransaction) GetContract

func (m *BasicTransaction) GetContract() string

func (*BasicTransaction) GetCursorLabel

func (m *BasicTransaction) GetCursorLabel() uint32

func (*BasicTransaction) GetCursorNum

func (m *BasicTransaction) GetCursorNum() uint64

func (*BasicTransaction) GetLifetime

func (m *BasicTransaction) GetLifetime() uint64

func (*BasicTransaction) GetMethod

func (m *BasicTransaction) GetMethod() string

func (*BasicTransaction) GetParam

func (m *BasicTransaction) GetParam() []byte

func (*BasicTransaction) GetSender

func (m *BasicTransaction) GetSender() string

func (*BasicTransaction) GetSigAlg

func (m *BasicTransaction) GetSigAlg() uint32

func (*BasicTransaction) GetVersion

func (m *BasicTransaction) GetVersion() uint32

func (*BasicTransaction) ProtoMessage

func (*BasicTransaction) ProtoMessage()

func (*BasicTransaction) Reset

func (m *BasicTransaction) Reset()

func (*BasicTransaction) String

func (m *BasicTransaction) String() string

type Chain

type Chain struct {
	ChainHandler
}

func (*Chain) GetAbi

func (h *Chain) GetAbi(ctx context.Context, in *GetAbiRequest, out *GetAbiResponse) error

func (*Chain) GetAccount

func (h *Chain) GetAccount(ctx context.Context, in *GetAccountRequest, out *GetAccountResponse) error

func (*Chain) GetBlock

func (h *Chain) GetBlock(ctx context.Context, in *GetBlockRequest, out *GetBlockResponse) error

func (*Chain) GetInfo

func (h *Chain) GetInfo(ctx context.Context, in *GetInfoRequest, out *GetInfoResponse) error

func (*Chain) GetKeyValue

func (h *Chain) GetKeyValue(ctx context.Context, in *GetKeyValueRequest, out *GetKeyValueResponse) error

func (*Chain) GetTransaction

func (h *Chain) GetTransaction(ctx context.Context, in *GetTransactionRequest, out *GetTransactionResponse) error

func (*Chain) GetTransferCredit

func (h *Chain) GetTransferCredit(ctx context.Context, in *GetTransferCreditRequest, out *GetTransferCreditResponse) error

func (*Chain) SendTransaction

func (h *Chain) SendTransaction(ctx context.Context, in *Transaction, out *SendTransactionResponse) error

type ChainClient

func NewChainClient

func NewChainClient(serviceName string, c client.Client) ChainClient

type GetAbiRequest

type GetAbiRequest struct {
	Contract string `protobuf:"bytes,1,opt,name=contract" json:"contract"`
}

func (*GetAbiRequest) Descriptor

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

func (*GetAbiRequest) GetContract

func (m *GetAbiRequest) GetContract() string

func (*GetAbiRequest) ProtoMessage

func (*GetAbiRequest) ProtoMessage()

func (*GetAbiRequest) Reset

func (m *GetAbiRequest) Reset()

func (*GetAbiRequest) String

func (m *GetAbiRequest) String() string

type GetAbiResponse

type GetAbiResponse struct {
	Errcode uint32 `protobuf:"varint,1,opt,name=errcode" json:"errcode"`
	Msg     string `protobuf:"bytes,2,opt,name=msg" json:"msg"`
	Result  string `protobuf:"bytes,3,opt,name=result" json:"result"`
}

func (*GetAbiResponse) Descriptor

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

func (*GetAbiResponse) GetErrcode

func (m *GetAbiResponse) GetErrcode() uint32

func (*GetAbiResponse) GetMsg

func (m *GetAbiResponse) GetMsg() string

func (*GetAbiResponse) GetResult

func (m *GetAbiResponse) GetResult() string

func (*GetAbiResponse) ProtoMessage

func (*GetAbiResponse) ProtoMessage()

func (*GetAbiResponse) Reset

func (m *GetAbiResponse) Reset()

func (*GetAbiResponse) String

func (m *GetAbiResponse) String() string

type GetAccountRequest

type GetAccountRequest struct {
	AccountName string `protobuf:"bytes,1,opt,name=account_name,json=accountName" json:"account_name"`
}

func (*GetAccountRequest) Descriptor

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

func (*GetAccountRequest) GetAccountName

func (m *GetAccountRequest) GetAccountName() string

func (*GetAccountRequest) ProtoMessage

func (*GetAccountRequest) ProtoMessage()

func (*GetAccountRequest) Reset

func (m *GetAccountRequest) Reset()

func (*GetAccountRequest) String

func (m *GetAccountRequest) String() string

type GetAccountResponse

type GetAccountResponse struct {
	Errcode uint32                     `protobuf:"varint,1,opt,name=errcode" json:"errcode"`
	Msg     string                     `protobuf:"bytes,2,opt,name=msg" json:"msg"`
	Result  *GetAccountResponse_Result `protobuf:"bytes,3,opt,name=result" json:"result"`
}

func (*GetAccountResponse) Descriptor

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

func (*GetAccountResponse) GetErrcode

func (m *GetAccountResponse) GetErrcode() uint32

func (*GetAccountResponse) GetMsg

func (m *GetAccountResponse) GetMsg() string

func (*GetAccountResponse) GetResult

func (*GetAccountResponse) ProtoMessage

func (*GetAccountResponse) ProtoMessage()

func (*GetAccountResponse) Reset

func (m *GetAccountResponse) Reset()

func (*GetAccountResponse) String

func (m *GetAccountResponse) String() string

type GetAccountResponse_Result

type GetAccountResponse_Result struct {
	AccountName   string `protobuf:"bytes,1,opt,name=account_name,json=accountName" json:"account_name"`
	Pubkey        string `protobuf:"bytes,2,opt,name=pubkey" json:"pubkey"`
	Balance       string `protobuf:"bytes,3,opt,name=balance" json:"balance"`
	StakedBalance string `protobuf:"bytes,4,opt,name=staked_balance,json=stakedBalance" json:"staked_balance"`
}

func (*GetAccountResponse_Result) Descriptor

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

func (*GetAccountResponse_Result) GetAccountName

func (m *GetAccountResponse_Result) GetAccountName() string

func (*GetAccountResponse_Result) GetBalance

func (m *GetAccountResponse_Result) GetBalance() string

func (*GetAccountResponse_Result) GetPubkey

func (m *GetAccountResponse_Result) GetPubkey() string

func (*GetAccountResponse_Result) GetStakedBalance

func (m *GetAccountResponse_Result) GetStakedBalance() string

func (*GetAccountResponse_Result) ProtoMessage

func (*GetAccountResponse_Result) ProtoMessage()

func (*GetAccountResponse_Result) Reset

func (m *GetAccountResponse_Result) Reset()

func (*GetAccountResponse_Result) String

func (m *GetAccountResponse_Result) String() string

type GetBlockRequest

type GetBlockRequest struct {
	BlockNum  uint64 `protobuf:"varint,1,opt,name=block_num,json=blockNum" json:"block_num"`
	BlockHash string `protobuf:"bytes,2,opt,name=block_hash,json=blockHash" json:"block_hash"`
}

func (*GetBlockRequest) Descriptor

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

func (*GetBlockRequest) GetBlockHash

func (m *GetBlockRequest) GetBlockHash() string

func (*GetBlockRequest) GetBlockNum

func (m *GetBlockRequest) GetBlockNum() uint64

func (*GetBlockRequest) ProtoMessage

func (*GetBlockRequest) ProtoMessage()

func (*GetBlockRequest) Reset

func (m *GetBlockRequest) Reset()

func (*GetBlockRequest) String

func (m *GetBlockRequest) String() string

type GetBlockResponse

type GetBlockResponse struct {
	Errcode uint32                   `protobuf:"varint,1,opt,name=errcode" json:"errcode"`
	Msg     string                   `protobuf:"bytes,2,opt,name=msg" json:"msg"`
	Result  *GetBlockResponse_Result `protobuf:"bytes,3,opt,name=result" json:"result"`
}

func (*GetBlockResponse) Descriptor

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

func (*GetBlockResponse) GetErrcode

func (m *GetBlockResponse) GetErrcode() uint32

func (*GetBlockResponse) GetMsg

func (m *GetBlockResponse) GetMsg() string

func (*GetBlockResponse) GetResult

func (m *GetBlockResponse) GetResult() *GetBlockResponse_Result

func (*GetBlockResponse) ProtoMessage

func (*GetBlockResponse) ProtoMessage()

func (*GetBlockResponse) Reset

func (m *GetBlockResponse) Reset()

func (*GetBlockResponse) String

func (m *GetBlockResponse) String() string

type GetBlockResponse_Result

type GetBlockResponse_Result struct {
	PrevBlockHash    string         `protobuf:"bytes,1,opt,name=prev_block_hash,json=prevBlockHash" json:"prev_block_hash"`
	BlockNum         uint64         `protobuf:"varint,2,opt,name=block_num,json=blockNum" json:"block_num"`
	BlockHash        string         `protobuf:"bytes,3,opt,name=block_hash,json=blockHash" json:"block_hash"`
	CursorBlockLabel uint32         `protobuf:"varint,4,opt,name=cursor_block_label,json=cursorBlockLabel" json:"cursor_block_label"`
	BlockTime        uint64         `protobuf:"varint,5,opt,name=block_time,json=blockTime" json:"block_time"`
	TrxMerkleRoot    string         `protobuf:"bytes,6,opt,name=trx_merkle_root,json=trxMerkleRoot" json:"trx_merkle_root"`
	Delegate         string         `protobuf:"bytes,7,opt,name=delegate" json:"delegate"`
	DelegateSign     string         `protobuf:"bytes,8,opt,name=delegate_sign,json=delegateSign" json:"delegate_sign"`
	Trxs             []*Transaction `protobuf:"bytes,9,rep,name=trxs" json:"trxs"`
}

func (*GetBlockResponse_Result) Descriptor

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

func (*GetBlockResponse_Result) GetBlockHash

func (m *GetBlockResponse_Result) GetBlockHash() string

func (*GetBlockResponse_Result) GetBlockNum

func (m *GetBlockResponse_Result) GetBlockNum() uint64

func (*GetBlockResponse_Result) GetBlockTime

func (m *GetBlockResponse_Result) GetBlockTime() uint64

func (*GetBlockResponse_Result) GetCursorBlockLabel

func (m *GetBlockResponse_Result) GetCursorBlockLabel() uint32

func (*GetBlockResponse_Result) GetDelegate

func (m *GetBlockResponse_Result) GetDelegate() string

func (*GetBlockResponse_Result) GetDelegateSign

func (m *GetBlockResponse_Result) GetDelegateSign() string

func (*GetBlockResponse_Result) GetPrevBlockHash

func (m *GetBlockResponse_Result) GetPrevBlockHash() string

func (*GetBlockResponse_Result) GetTrxMerkleRoot

func (m *GetBlockResponse_Result) GetTrxMerkleRoot() string

func (*GetBlockResponse_Result) GetTrxs

func (m *GetBlockResponse_Result) GetTrxs() []*Transaction

func (*GetBlockResponse_Result) ProtoMessage

func (*GetBlockResponse_Result) ProtoMessage()

func (*GetBlockResponse_Result) Reset

func (m *GetBlockResponse_Result) Reset()

func (*GetBlockResponse_Result) String

func (m *GetBlockResponse_Result) String() string

type GetInfoRequest

type GetInfoRequest struct {
}

func (*GetInfoRequest) Descriptor

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

func (*GetInfoRequest) ProtoMessage

func (*GetInfoRequest) ProtoMessage()

func (*GetInfoRequest) Reset

func (m *GetInfoRequest) Reset()

func (*GetInfoRequest) String

func (m *GetInfoRequest) String() string

type GetInfoResponse

type GetInfoResponse struct {
	Errcode uint32                  `protobuf:"varint,1,opt,name=errcode" json:"errcode"`
	Msg     string                  `protobuf:"bytes,2,opt,name=msg" json:"msg"`
	Result  *GetInfoResponse_Result `protobuf:"bytes,3,opt,name=result" json:"result"`
}

func (*GetInfoResponse) Descriptor

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

func (*GetInfoResponse) GetErrcode

func (m *GetInfoResponse) GetErrcode() uint32

func (*GetInfoResponse) GetMsg

func (m *GetInfoResponse) GetMsg() string

func (*GetInfoResponse) GetResult

func (m *GetInfoResponse) GetResult() *GetInfoResponse_Result

func (*GetInfoResponse) ProtoMessage

func (*GetInfoResponse) ProtoMessage()

func (*GetInfoResponse) Reset

func (m *GetInfoResponse) Reset()

func (*GetInfoResponse) String

func (m *GetInfoResponse) String() string

type GetInfoResponse_Result

type GetInfoResponse_Result struct {
	HeadBlockNum          uint64 `protobuf:"varint,1,opt,name=head_block_num,json=headBlockNum" json:"head_block_num"`
	HeadBlockHash         string `protobuf:"bytes,2,opt,name=head_block_hash,json=headBlockHash" json:"head_block_hash"`
	HeadBlockTime         uint64 `protobuf:"varint,3,opt,name=head_block_time,json=headBlockTime" json:"head_block_time"`
	HeadBlockDelegate     string `protobuf:"bytes,4,opt,name=head_block_delegate,json=headBlockDelegate" json:"head_block_delegate"`
	CursorLabel           uint32 `protobuf:"varint,5,opt,name=cursor_label,json=cursorLabel" json:"cursor_label"`
	LastConsensusBlockNum uint64 `protobuf:"varint,6,opt,name=last_consensus_block_num,json=lastConsensusBlockNum" json:"last_consensus_block_num"`
	ChainId               string `protobuf:"bytes,7,opt,name=chain_id,json=chainId" json:"chain_id"`
}

func (*GetInfoResponse_Result) Descriptor

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

func (*GetInfoResponse_Result) GetChainId

func (m *GetInfoResponse_Result) GetChainId() string

func (*GetInfoResponse_Result) GetCursorLabel

func (m *GetInfoResponse_Result) GetCursorLabel() uint32

func (*GetInfoResponse_Result) GetHeadBlockDelegate

func (m *GetInfoResponse_Result) GetHeadBlockDelegate() string

func (*GetInfoResponse_Result) GetHeadBlockHash

func (m *GetInfoResponse_Result) GetHeadBlockHash() string

func (*GetInfoResponse_Result) GetHeadBlockNum

func (m *GetInfoResponse_Result) GetHeadBlockNum() uint64

func (*GetInfoResponse_Result) GetHeadBlockTime

func (m *GetInfoResponse_Result) GetHeadBlockTime() uint64

func (*GetInfoResponse_Result) GetLastConsensusBlockNum

func (m *GetInfoResponse_Result) GetLastConsensusBlockNum() uint64

func (*GetInfoResponse_Result) ProtoMessage

func (*GetInfoResponse_Result) ProtoMessage()

func (*GetInfoResponse_Result) Reset

func (m *GetInfoResponse_Result) Reset()

func (*GetInfoResponse_Result) String

func (m *GetInfoResponse_Result) String() string

type GetKeyValueRequest

type GetKeyValueRequest struct {
	Contract string `protobuf:"bytes,1,opt,name=contract" json:"contract"`
	Object   string `protobuf:"bytes,2,opt,name=object" json:"object"`
	Key      string `protobuf:"bytes,3,opt,name=key" json:"key"`
}

func (*GetKeyValueRequest) Descriptor

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

func (*GetKeyValueRequest) GetContract

func (m *GetKeyValueRequest) GetContract() string

func (*GetKeyValueRequest) GetKey

func (m *GetKeyValueRequest) GetKey() string

func (*GetKeyValueRequest) GetObject

func (m *GetKeyValueRequest) GetObject() string

func (*GetKeyValueRequest) ProtoMessage

func (*GetKeyValueRequest) ProtoMessage()

func (*GetKeyValueRequest) Reset

func (m *GetKeyValueRequest) Reset()

func (*GetKeyValueRequest) String

func (m *GetKeyValueRequest) String() string

type GetKeyValueResponse

type GetKeyValueResponse struct {
	Errcode uint32                      `protobuf:"varint,1,opt,name=errcode" json:"errcode"`
	Msg     string                      `protobuf:"bytes,2,opt,name=msg" json:"msg"`
	Result  *GetKeyValueResponse_Result `protobuf:"bytes,3,opt,name=result" json:"result"`
}

func (*GetKeyValueResponse) Descriptor

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

func (*GetKeyValueResponse) GetErrcode

func (m *GetKeyValueResponse) GetErrcode() uint32

func (*GetKeyValueResponse) GetMsg

func (m *GetKeyValueResponse) GetMsg() string

func (*GetKeyValueResponse) GetResult

func (*GetKeyValueResponse) ProtoMessage

func (*GetKeyValueResponse) ProtoMessage()

func (*GetKeyValueResponse) Reset

func (m *GetKeyValueResponse) Reset()

func (*GetKeyValueResponse) String

func (m *GetKeyValueResponse) String() string

type GetKeyValueResponse_Result

type GetKeyValueResponse_Result struct {
	Contract string `protobuf:"bytes,1,opt,name=contract" json:"contract"`
	Object   string `protobuf:"bytes,2,opt,name=object" json:"object"`
	Key      string `protobuf:"bytes,3,opt,name=key" json:"key"`
	Value    string `protobuf:"bytes,4,opt,name=value" json:"value"`
}

func (*GetKeyValueResponse_Result) Descriptor

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

func (*GetKeyValueResponse_Result) GetContract

func (m *GetKeyValueResponse_Result) GetContract() string

func (*GetKeyValueResponse_Result) GetKey

func (m *GetKeyValueResponse_Result) GetKey() string

func (*GetKeyValueResponse_Result) GetObject

func (m *GetKeyValueResponse_Result) GetObject() string

func (*GetKeyValueResponse_Result) GetValue

func (m *GetKeyValueResponse_Result) GetValue() string

func (*GetKeyValueResponse_Result) ProtoMessage

func (*GetKeyValueResponse_Result) ProtoMessage()

func (*GetKeyValueResponse_Result) Reset

func (m *GetKeyValueResponse_Result) Reset()

func (*GetKeyValueResponse_Result) String

func (m *GetKeyValueResponse_Result) String() string

type GetTransactionRequest

type GetTransactionRequest struct {
	TrxHash string `protobuf:"bytes,1,opt,name=trx_hash,json=trxHash" json:"trx_hash"`
}

func (*GetTransactionRequest) Descriptor

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

func (*GetTransactionRequest) GetTrxHash

func (m *GetTransactionRequest) GetTrxHash() string

func (*GetTransactionRequest) ProtoMessage

func (*GetTransactionRequest) ProtoMessage()

func (*GetTransactionRequest) Reset

func (m *GetTransactionRequest) Reset()

func (*GetTransactionRequest) String

func (m *GetTransactionRequest) String() string

type GetTransactionResponse

type GetTransactionResponse struct {
	Errcode uint32       `protobuf:"varint,1,opt,name=errcode" json:"errcode"`
	Msg     string       `protobuf:"bytes,2,opt,name=msg" json:"msg"`
	Result  *Transaction `protobuf:"bytes,3,opt,name=result" json:"result"`
}

func (*GetTransactionResponse) Descriptor

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

func (*GetTransactionResponse) GetErrcode

func (m *GetTransactionResponse) GetErrcode() uint32

func (*GetTransactionResponse) GetMsg

func (m *GetTransactionResponse) GetMsg() string

func (*GetTransactionResponse) GetResult

func (m *GetTransactionResponse) GetResult() *Transaction

func (*GetTransactionResponse) ProtoMessage

func (*GetTransactionResponse) ProtoMessage()

func (*GetTransactionResponse) Reset

func (m *GetTransactionResponse) Reset()

func (*GetTransactionResponse) String

func (m *GetTransactionResponse) String() string

type GetTransferCreditRequest

type GetTransferCreditRequest struct {
	Name    string `protobuf:"bytes,1,opt,name=name" json:"name"`
	Spender string `protobuf:"bytes,2,opt,name=spender" json:"spender"`
}

func (*GetTransferCreditRequest) Descriptor

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

func (*GetTransferCreditRequest) GetName

func (m *GetTransferCreditRequest) GetName() string

func (*GetTransferCreditRequest) GetSpender

func (m *GetTransferCreditRequest) GetSpender() string

func (*GetTransferCreditRequest) ProtoMessage

func (*GetTransferCreditRequest) ProtoMessage()

func (*GetTransferCreditRequest) Reset

func (m *GetTransferCreditRequest) Reset()

func (*GetTransferCreditRequest) String

func (m *GetTransferCreditRequest) String() string

type GetTransferCreditResponse

type GetTransferCreditResponse struct {
	Errcode uint32                            `protobuf:"varint,1,opt,name=errcode" json:"errcode"`
	Msg     string                            `protobuf:"bytes,2,opt,name=msg" json:"msg"`
	Result  *GetTransferCreditResponse_Result `protobuf:"bytes,3,opt,name=result" json:"result"`
}

func (*GetTransferCreditResponse) Descriptor

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

func (*GetTransferCreditResponse) GetErrcode

func (m *GetTransferCreditResponse) GetErrcode() uint32

func (*GetTransferCreditResponse) GetMsg

func (m *GetTransferCreditResponse) GetMsg() string

func (*GetTransferCreditResponse) GetResult

func (*GetTransferCreditResponse) ProtoMessage

func (*GetTransferCreditResponse) ProtoMessage()

func (*GetTransferCreditResponse) Reset

func (m *GetTransferCreditResponse) Reset()

func (*GetTransferCreditResponse) String

func (m *GetTransferCreditResponse) String() string

type GetTransferCreditResponse_Result

type GetTransferCreditResponse_Result struct {
	Name    string `protobuf:"bytes,1,opt,name=name" json:"name"`
	Spender string `protobuf:"bytes,2,opt,name=spender" json:"spender"`
	Limit   string `protobuf:"bytes,3,opt,name=limit" json:"limit"`
}

func (*GetTransferCreditResponse_Result) Descriptor

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

func (*GetTransferCreditResponse_Result) GetLimit

func (*GetTransferCreditResponse_Result) GetName

func (*GetTransferCreditResponse_Result) GetSpender

func (m *GetTransferCreditResponse_Result) GetSpender() string

func (*GetTransferCreditResponse_Result) ProtoMessage

func (*GetTransferCreditResponse_Result) ProtoMessage()

func (*GetTransferCreditResponse_Result) Reset

func (*GetTransferCreditResponse_Result) String

type SendTransactionResponse

type SendTransactionResponse struct {
	Errcode uint32                          `protobuf:"varint,1,opt,name=errcode" json:"errcode"`
	Msg     string                          `protobuf:"bytes,2,opt,name=msg" json:"msg"`
	Result  *SendTransactionResponse_Result `protobuf:"bytes,3,opt,name=result" json:"result"`
}

func (*SendTransactionResponse) Descriptor

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

func (*SendTransactionResponse) GetErrcode

func (m *SendTransactionResponse) GetErrcode() uint32

func (*SendTransactionResponse) GetMsg

func (m *SendTransactionResponse) GetMsg() string

func (*SendTransactionResponse) GetResult

func (*SendTransactionResponse) ProtoMessage

func (*SendTransactionResponse) ProtoMessage()

func (*SendTransactionResponse) Reset

func (m *SendTransactionResponse) Reset()

func (*SendTransactionResponse) String

func (m *SendTransactionResponse) String() string

type SendTransactionResponse_Result

type SendTransactionResponse_Result struct {
	Trx     *Transaction `protobuf:"bytes,1,opt,name=trx" json:"trx"`
	TrxHash string       `protobuf:"bytes,2,opt,name=trx_hash,json=trxHash" json:"trx_hash"`
}

func (*SendTransactionResponse_Result) Descriptor

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

func (*SendTransactionResponse_Result) GetTrx

func (*SendTransactionResponse_Result) GetTrxHash

func (m *SendTransactionResponse_Result) GetTrxHash() string

func (*SendTransactionResponse_Result) ProtoMessage

func (*SendTransactionResponse_Result) ProtoMessage()

func (*SendTransactionResponse_Result) Reset

func (m *SendTransactionResponse_Result) Reset()

func (*SendTransactionResponse_Result) String

type Transaction

type Transaction struct {
	Version     uint32 `protobuf:"varint,1,opt,name=version" json:"version"`
	CursorNum   uint64 `protobuf:"varint,2,opt,name=cursor_num,json=cursorNum" json:"cursor_num"`
	CursorLabel uint32 `protobuf:"varint,3,opt,name=cursor_label,json=cursorLabel" json:"cursor_label"`
	Lifetime    uint64 `protobuf:"varint,4,opt,name=lifetime" json:"lifetime"`
	Sender      string `protobuf:"bytes,5,opt,name=sender" json:"sender"`
	Contract    string `protobuf:"bytes,6,opt,name=contract" json:"contract"`
	Method      string `protobuf:"bytes,7,opt,name=method" json:"method"`
	Param       string `protobuf:"bytes,8,opt,name=param" json:"param"`
	SigAlg      uint32 `protobuf:"varint,9,opt,name=sig_alg,json=sigAlg" json:"sig_alg"`
	Signature   string `protobuf:"bytes,10,opt,name=signature" json:"signature"`
}

Transaction definition for gprc interface

func (*Transaction) Descriptor

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

func (*Transaction) GetContract

func (m *Transaction) GetContract() string

func (*Transaction) GetCursorLabel

func (m *Transaction) GetCursorLabel() uint32

func (*Transaction) GetCursorNum

func (m *Transaction) GetCursorNum() uint64

func (*Transaction) GetLifetime

func (m *Transaction) GetLifetime() uint64

func (*Transaction) GetMethod

func (m *Transaction) GetMethod() string

func (*Transaction) GetParam

func (m *Transaction) GetParam() string

func (*Transaction) GetSender

func (m *Transaction) GetSender() string

func (*Transaction) GetSigAlg

func (m *Transaction) GetSigAlg() uint32

func (*Transaction) GetSignature

func (m *Transaction) GetSignature() string

func (*Transaction) GetVersion

func (m *Transaction) GetVersion() uint32

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) Reset

func (m *Transaction) Reset()

func (*Transaction) String

func (m *Transaction) String() string

Jump to

Keyboard shortcuts

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