Documentation ¶
Overview ¶
Package rpcpb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterApiServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ApiServiceClient) error
- func RegisterApiServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterApiServiceServer(s *grpc.Server, srv ApiServiceServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)
- func (m *Account) GetBalance() float64
- func (m *Account) GetFrozenBalances() []*FrozenBalance
- func (m *Account) GetGasInfo() *Account_GasInfo
- func (m *Account) GetGroups() map[string]*Account_Group
- func (m *Account) GetName() string
- func (m *Account) GetPermissions() map[string]*Account_Permission
- func (m *Account) GetRamInfo() *Account_RAMInfo
- func (*Account) ProtoMessage()
- func (m *Account) Reset()
- func (m *Account) String() string
- func (m *Account) XXX_DiscardUnknown()
- func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Account) XXX_Merge(src proto.Message)
- func (m *Account) XXX_Size() int
- func (m *Account) XXX_Unmarshal(b []byte) error
- type Account_GasInfo
- func (*Account_GasInfo) Descriptor() ([]byte, []int)
- func (m *Account_GasInfo) GetCurrentTotal() float64
- func (m *Account_GasInfo) GetIncreaseSpeed() float64
- func (m *Account_GasInfo) GetLimit() float64
- func (m *Account_GasInfo) GetPledgeGas() float64
- func (m *Account_GasInfo) GetPledgedInfo() []*Account_PledgeInfo
- func (m *Account_GasInfo) GetTransferableGas() float64
- func (*Account_GasInfo) ProtoMessage()
- func (m *Account_GasInfo) Reset()
- func (m *Account_GasInfo) String() string
- func (m *Account_GasInfo) XXX_DiscardUnknown()
- func (m *Account_GasInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Account_GasInfo) XXX_Merge(src proto.Message)
- func (m *Account_GasInfo) XXX_Size() int
- func (m *Account_GasInfo) XXX_Unmarshal(b []byte) error
- type Account_Group
- func (*Account_Group) Descriptor() ([]byte, []int)
- func (m *Account_Group) GetItems() []*Account_Item
- func (m *Account_Group) GetName() string
- func (*Account_Group) ProtoMessage()
- func (m *Account_Group) Reset()
- func (m *Account_Group) String() string
- func (m *Account_Group) XXX_DiscardUnknown()
- func (m *Account_Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Account_Group) XXX_Merge(src proto.Message)
- func (m *Account_Group) XXX_Size() int
- func (m *Account_Group) XXX_Unmarshal(b []byte) error
- type Account_Item
- func (*Account_Item) Descriptor() ([]byte, []int)
- func (m *Account_Item) GetId() string
- func (m *Account_Item) GetIsKeyPair() bool
- func (m *Account_Item) GetPermission() string
- func (m *Account_Item) GetWeight() int64
- func (*Account_Item) ProtoMessage()
- func (m *Account_Item) Reset()
- func (m *Account_Item) String() string
- func (m *Account_Item) XXX_DiscardUnknown()
- func (m *Account_Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Account_Item) XXX_Merge(src proto.Message)
- func (m *Account_Item) XXX_Size() int
- func (m *Account_Item) XXX_Unmarshal(b []byte) error
- type Account_Permission
- func (*Account_Permission) Descriptor() ([]byte, []int)
- func (m *Account_Permission) GetGroups() []string
- func (m *Account_Permission) GetItems() []*Account_Item
- func (m *Account_Permission) GetName() string
- func (m *Account_Permission) GetThreshold() int64
- func (*Account_Permission) ProtoMessage()
- func (m *Account_Permission) Reset()
- func (m *Account_Permission) String() string
- func (m *Account_Permission) XXX_DiscardUnknown()
- func (m *Account_Permission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Account_Permission) XXX_Merge(src proto.Message)
- func (m *Account_Permission) XXX_Size() int
- func (m *Account_Permission) XXX_Unmarshal(b []byte) error
- type Account_PledgeInfo
- func (*Account_PledgeInfo) Descriptor() ([]byte, []int)
- func (m *Account_PledgeInfo) GetAmount() float64
- func (m *Account_PledgeInfo) GetPledger() string
- func (*Account_PledgeInfo) ProtoMessage()
- func (m *Account_PledgeInfo) Reset()
- func (m *Account_PledgeInfo) String() string
- func (m *Account_PledgeInfo) XXX_DiscardUnknown()
- func (m *Account_PledgeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Account_PledgeInfo) XXX_Merge(src proto.Message)
- func (m *Account_PledgeInfo) XXX_Size() int
- func (m *Account_PledgeInfo) XXX_Unmarshal(b []byte) error
- type Account_RAMInfo
- func (*Account_RAMInfo) Descriptor() ([]byte, []int)
- func (m *Account_RAMInfo) GetAvailable() int64
- func (m *Account_RAMInfo) GetTotal() int64
- func (m *Account_RAMInfo) GetUsed() int64
- func (*Account_RAMInfo) ProtoMessage()
- func (m *Account_RAMInfo) Reset()
- func (m *Account_RAMInfo) String() string
- func (m *Account_RAMInfo) XXX_DiscardUnknown()
- func (m *Account_RAMInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Account_RAMInfo) XXX_Merge(src proto.Message)
- func (m *Account_RAMInfo) XXX_Size() int
- func (m *Account_RAMInfo) XXX_Unmarshal(b []byte) error
- type Action
- func (*Action) Descriptor() ([]byte, []int)
- func (m *Action) GetActionName() string
- func (m *Action) GetContract() string
- func (m *Action) GetData() string
- func (*Action) ProtoMessage()
- func (m *Action) Reset()
- func (m *Action) String() string
- func (m *Action) XXX_DiscardUnknown()
- func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Action) XXX_Merge(src proto.Message)
- func (m *Action) XXX_Size() int
- func (m *Action) XXX_Unmarshal(b []byte) error
- type AmountLimit
- func (*AmountLimit) Descriptor() ([]byte, []int)
- func (m *AmountLimit) GetToken() string
- func (m *AmountLimit) GetValue() string
- func (*AmountLimit) ProtoMessage()
- func (m *AmountLimit) Reset()
- func (m *AmountLimit) String() string
- func (m *AmountLimit) XXX_DiscardUnknown()
- func (m *AmountLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AmountLimit) XXX_Merge(src proto.Message)
- func (m *AmountLimit) XXX_Size() int
- func (m *AmountLimit) XXX_Unmarshal(b []byte) error
- type ApiServiceClient
- type ApiServiceServer
- type ApiService_SubscribeClient
- type ApiService_SubscribeServer
- type Block
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) GetGasUsage() float64
- func (m *Block) GetHash() string
- func (m *Block) GetInfo() *Block_Info
- func (m *Block) GetNumber() int64
- func (m *Block) GetParentHash() string
- func (m *Block) GetTime() int64
- func (m *Block) GetTransactions() []*Transaction
- func (m *Block) GetTxCount() int64
- func (m *Block) GetTxMerkleHash() string
- func (m *Block) GetTxReceiptMerkleHash() string
- func (m *Block) GetVersion() int64
- func (m *Block) GetWitness() string
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (m *Block) String() string
- func (m *Block) XXX_DiscardUnknown()
- func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Block) XXX_Merge(src proto.Message)
- func (m *Block) XXX_Size() int
- func (m *Block) XXX_Unmarshal(b []byte) error
- type BlockResponse
- func (*BlockResponse) Descriptor() ([]byte, []int)
- func (m *BlockResponse) GetBlock() *Block
- func (m *BlockResponse) GetStatus() BlockResponse_Status
- func (*BlockResponse) ProtoMessage()
- func (m *BlockResponse) Reset()
- func (m *BlockResponse) String() string
- func (m *BlockResponse) XXX_DiscardUnknown()
- func (m *BlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockResponse) XXX_Merge(src proto.Message)
- func (m *BlockResponse) XXX_Size() int
- func (m *BlockResponse) XXX_Unmarshal(b []byte) error
- type BlockResponse_Status
- type Block_Info
- func (*Block_Info) Descriptor() ([]byte, []int)
- func (m *Block_Info) GetBatchIndex() []int32
- func (m *Block_Info) GetMode() int32
- func (m *Block_Info) GetThread() int32
- func (*Block_Info) ProtoMessage()
- func (m *Block_Info) Reset()
- func (m *Block_Info) String() string
- func (m *Block_Info) XXX_DiscardUnknown()
- func (m *Block_Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Block_Info) XXX_Merge(src proto.Message)
- func (m *Block_Info) XXX_Size() int
- func (m *Block_Info) XXX_Unmarshal(b []byte) error
- type ChainInfoResponse
- func (*ChainInfoResponse) Descriptor() ([]byte, []int)
- func (m *ChainInfoResponse) GetHeadBlock() int64
- func (m *ChainInfoResponse) GetHeadBlockHash() string
- func (m *ChainInfoResponse) GetLibBlock() int64
- func (m *ChainInfoResponse) GetLibBlockHash() string
- func (m *ChainInfoResponse) GetNetName() string
- func (m *ChainInfoResponse) GetProtocolVersion() string
- func (m *ChainInfoResponse) GetWitnessList() []string
- func (*ChainInfoResponse) ProtoMessage()
- func (m *ChainInfoResponse) Reset()
- func (m *ChainInfoResponse) String() string
- func (m *ChainInfoResponse) XXX_DiscardUnknown()
- func (m *ChainInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainInfoResponse) XXX_Merge(src proto.Message)
- func (m *ChainInfoResponse) XXX_Size() int
- func (m *ChainInfoResponse) XXX_Unmarshal(b []byte) error
- type Contract
- func (*Contract) Descriptor() ([]byte, []int)
- func (m *Contract) GetAbis() []*Contract_ABI
- func (m *Contract) GetCode() string
- func (m *Contract) GetId() string
- func (m *Contract) GetLanguage() string
- func (m *Contract) GetVersion() string
- func (*Contract) ProtoMessage()
- func (m *Contract) Reset()
- func (m *Contract) String() string
- func (m *Contract) XXX_DiscardUnknown()
- func (m *Contract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Contract) XXX_Merge(src proto.Message)
- func (m *Contract) XXX_Size() int
- func (m *Contract) XXX_Unmarshal(b []byte) error
- type Contract_ABI
- func (*Contract_ABI) Descriptor() ([]byte, []int)
- func (m *Contract_ABI) GetAmountLimit() []*AmountLimit
- func (m *Contract_ABI) GetArgs() []string
- func (m *Contract_ABI) GetName() string
- func (*Contract_ABI) ProtoMessage()
- func (m *Contract_ABI) Reset()
- func (m *Contract_ABI) String() string
- func (m *Contract_ABI) XXX_DiscardUnknown()
- func (m *Contract_ABI) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Contract_ABI) XXX_Merge(src proto.Message)
- func (m *Contract_ABI) XXX_Size() int
- func (m *Contract_ABI) XXX_Unmarshal(b []byte) error
- type EmptyRequest
- func (*EmptyRequest) Descriptor() ([]byte, []int)
- func (*EmptyRequest) ProtoMessage()
- func (m *EmptyRequest) Reset()
- func (m *EmptyRequest) String() string
- func (m *EmptyRequest) XXX_DiscardUnknown()
- func (m *EmptyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EmptyRequest) XXX_Merge(src proto.Message)
- func (m *EmptyRequest) XXX_Size() int
- func (m *EmptyRequest) XXX_Unmarshal(b []byte) error
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) GetData() string
- func (m *Event) GetTime() int64
- func (m *Event) GetTopic() Event_Topic
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) String() string
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Event) XXX_Merge(src proto.Message)
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type Event_Topic
- type FrozenBalance
- func (*FrozenBalance) Descriptor() ([]byte, []int)
- func (m *FrozenBalance) GetAmount() float64
- func (m *FrozenBalance) GetTime() int64
- func (*FrozenBalance) ProtoMessage()
- func (m *FrozenBalance) Reset()
- func (m *FrozenBalance) String() string
- func (m *FrozenBalance) XXX_DiscardUnknown()
- func (m *FrozenBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FrozenBalance) XXX_Merge(src proto.Message)
- func (m *FrozenBalance) XXX_Size() int
- func (m *FrozenBalance) XXX_Unmarshal(b []byte) error
- type GasRatioResponse
- func (*GasRatioResponse) Descriptor() ([]byte, []int)
- func (m *GasRatioResponse) GetLowestGasRatio() float64
- func (m *GasRatioResponse) GetMedianGasRatio() float64
- func (*GasRatioResponse) ProtoMessage()
- func (m *GasRatioResponse) Reset()
- func (m *GasRatioResponse) String() string
- func (m *GasRatioResponse) XXX_DiscardUnknown()
- func (m *GasRatioResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GasRatioResponse) XXX_Merge(src proto.Message)
- func (m *GasRatioResponse) XXX_Size() int
- func (m *GasRatioResponse) XXX_Unmarshal(b []byte) error
- type GetAccountRequest
- func (*GetAccountRequest) Descriptor() ([]byte, []int)
- func (m *GetAccountRequest) GetByLongestChain() bool
- func (m *GetAccountRequest) GetName() string
- func (*GetAccountRequest) ProtoMessage()
- func (m *GetAccountRequest) Reset()
- func (m *GetAccountRequest) String() string
- func (m *GetAccountRequest) XXX_DiscardUnknown()
- func (m *GetAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAccountRequest) XXX_Merge(src proto.Message)
- func (m *GetAccountRequest) XXX_Size() int
- func (m *GetAccountRequest) XXX_Unmarshal(b []byte) error
- type GetBlockByHashRequest
- func (*GetBlockByHashRequest) Descriptor() ([]byte, []int)
- func (m *GetBlockByHashRequest) GetComplete() bool
- func (m *GetBlockByHashRequest) GetHash() string
- func (*GetBlockByHashRequest) ProtoMessage()
- func (m *GetBlockByHashRequest) Reset()
- func (m *GetBlockByHashRequest) String() string
- func (m *GetBlockByHashRequest) XXX_DiscardUnknown()
- func (m *GetBlockByHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBlockByHashRequest) XXX_Merge(src proto.Message)
- func (m *GetBlockByHashRequest) XXX_Size() int
- func (m *GetBlockByHashRequest) XXX_Unmarshal(b []byte) error
- type GetBlockByNumberRequest
- func (*GetBlockByNumberRequest) Descriptor() ([]byte, []int)
- func (m *GetBlockByNumberRequest) GetComplete() bool
- func (m *GetBlockByNumberRequest) GetNumber() int64
- func (*GetBlockByNumberRequest) ProtoMessage()
- func (m *GetBlockByNumberRequest) Reset()
- func (m *GetBlockByNumberRequest) String() string
- func (m *GetBlockByNumberRequest) XXX_DiscardUnknown()
- func (m *GetBlockByNumberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBlockByNumberRequest) XXX_Merge(src proto.Message)
- func (m *GetBlockByNumberRequest) XXX_Size() int
- func (m *GetBlockByNumberRequest) XXX_Unmarshal(b []byte) error
- type GetContractRequest
- func (*GetContractRequest) Descriptor() ([]byte, []int)
- func (m *GetContractRequest) GetByLongestChain() bool
- func (m *GetContractRequest) GetId() string
- func (*GetContractRequest) ProtoMessage()
- func (m *GetContractRequest) Reset()
- func (m *GetContractRequest) String() string
- func (m *GetContractRequest) XXX_DiscardUnknown()
- func (m *GetContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetContractRequest) XXX_Merge(src proto.Message)
- func (m *GetContractRequest) XXX_Size() int
- func (m *GetContractRequest) XXX_Unmarshal(b []byte) error
- type GetContractStorageFieldsRequest
- func (*GetContractStorageFieldsRequest) Descriptor() ([]byte, []int)
- func (m *GetContractStorageFieldsRequest) GetByLongestChain() bool
- func (m *GetContractStorageFieldsRequest) GetFields() string
- func (m *GetContractStorageFieldsRequest) GetId() string
- func (*GetContractStorageFieldsRequest) ProtoMessage()
- func (m *GetContractStorageFieldsRequest) Reset()
- func (m *GetContractStorageFieldsRequest) String() string
- func (m *GetContractStorageFieldsRequest) XXX_DiscardUnknown()
- func (m *GetContractStorageFieldsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetContractStorageFieldsRequest) XXX_Merge(src proto.Message)
- func (m *GetContractStorageFieldsRequest) XXX_Size() int
- func (m *GetContractStorageFieldsRequest) XXX_Unmarshal(b []byte) error
- type GetContractStorageFieldsResponse
- func (*GetContractStorageFieldsResponse) Descriptor() ([]byte, []int)
- func (m *GetContractStorageFieldsResponse) GetData() string
- func (*GetContractStorageFieldsResponse) ProtoMessage()
- func (m *GetContractStorageFieldsResponse) Reset()
- func (m *GetContractStorageFieldsResponse) String() string
- func (m *GetContractStorageFieldsResponse) XXX_DiscardUnknown()
- func (m *GetContractStorageFieldsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetContractStorageFieldsResponse) XXX_Merge(src proto.Message)
- func (m *GetContractStorageFieldsResponse) XXX_Size() int
- func (m *GetContractStorageFieldsResponse) XXX_Unmarshal(b []byte) error
- type GetContractStorageRequest
- func (*GetContractStorageRequest) Descriptor() ([]byte, []int)
- func (m *GetContractStorageRequest) GetByLongestChain() bool
- func (m *GetContractStorageRequest) GetField() string
- func (m *GetContractStorageRequest) GetId() string
- func (m *GetContractStorageRequest) GetKey() string
- func (*GetContractStorageRequest) ProtoMessage()
- func (m *GetContractStorageRequest) Reset()
- func (m *GetContractStorageRequest) String() string
- func (m *GetContractStorageRequest) XXX_DiscardUnknown()
- func (m *GetContractStorageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetContractStorageRequest) XXX_Merge(src proto.Message)
- func (m *GetContractStorageRequest) XXX_Size() int
- func (m *GetContractStorageRequest) XXX_Unmarshal(b []byte) error
- type GetContractStorageResponse
- func (*GetContractStorageResponse) Descriptor() ([]byte, []int)
- func (m *GetContractStorageResponse) GetData() string
- func (*GetContractStorageResponse) ProtoMessage()
- func (m *GetContractStorageResponse) Reset()
- func (m *GetContractStorageResponse) String() string
- func (m *GetContractStorageResponse) XXX_DiscardUnknown()
- func (m *GetContractStorageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetContractStorageResponse) XXX_Merge(src proto.Message)
- func (m *GetContractStorageResponse) XXX_Size() int
- func (m *GetContractStorageResponse) XXX_Unmarshal(b []byte) error
- type GetToken721BalanceResponse
- func (*GetToken721BalanceResponse) Descriptor() ([]byte, []int)
- func (m *GetToken721BalanceResponse) GetBalance() int64
- func (m *GetToken721BalanceResponse) GetTokenIDs() []string
- func (*GetToken721BalanceResponse) ProtoMessage()
- func (m *GetToken721BalanceResponse) Reset()
- func (m *GetToken721BalanceResponse) String() string
- func (m *GetToken721BalanceResponse) XXX_DiscardUnknown()
- func (m *GetToken721BalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetToken721BalanceResponse) XXX_Merge(src proto.Message)
- func (m *GetToken721BalanceResponse) XXX_Size() int
- func (m *GetToken721BalanceResponse) XXX_Unmarshal(b []byte) error
- type GetToken721InfoRequest
- func (*GetToken721InfoRequest) Descriptor() ([]byte, []int)
- func (m *GetToken721InfoRequest) GetByLongestChain() bool
- func (m *GetToken721InfoRequest) GetToken() string
- func (m *GetToken721InfoRequest) GetTokenId() string
- func (*GetToken721InfoRequest) ProtoMessage()
- func (m *GetToken721InfoRequest) Reset()
- func (m *GetToken721InfoRequest) String() string
- func (m *GetToken721InfoRequest) XXX_DiscardUnknown()
- func (m *GetToken721InfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetToken721InfoRequest) XXX_Merge(src proto.Message)
- func (m *GetToken721InfoRequest) XXX_Size() int
- func (m *GetToken721InfoRequest) XXX_Unmarshal(b []byte) error
- type GetToken721MetadataResponse
- func (*GetToken721MetadataResponse) Descriptor() ([]byte, []int)
- func (m *GetToken721MetadataResponse) GetMetadata() string
- func (*GetToken721MetadataResponse) ProtoMessage()
- func (m *GetToken721MetadataResponse) Reset()
- func (m *GetToken721MetadataResponse) String() string
- func (m *GetToken721MetadataResponse) XXX_DiscardUnknown()
- func (m *GetToken721MetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetToken721MetadataResponse) XXX_Merge(src proto.Message)
- func (m *GetToken721MetadataResponse) XXX_Size() int
- func (m *GetToken721MetadataResponse) XXX_Unmarshal(b []byte) error
- type GetToken721OwnerResponse
- func (*GetToken721OwnerResponse) Descriptor() ([]byte, []int)
- func (m *GetToken721OwnerResponse) GetOwner() string
- func (*GetToken721OwnerResponse) ProtoMessage()
- func (m *GetToken721OwnerResponse) Reset()
- func (m *GetToken721OwnerResponse) String() string
- func (m *GetToken721OwnerResponse) XXX_DiscardUnknown()
- func (m *GetToken721OwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetToken721OwnerResponse) XXX_Merge(src proto.Message)
- func (m *GetToken721OwnerResponse) XXX_Size() int
- func (m *GetToken721OwnerResponse) XXX_Unmarshal(b []byte) error
- type GetTokenBalanceRequest
- func (*GetTokenBalanceRequest) Descriptor() ([]byte, []int)
- func (m *GetTokenBalanceRequest) GetAccount() string
- func (m *GetTokenBalanceRequest) GetByLongestChain() bool
- func (m *GetTokenBalanceRequest) GetToken() string
- func (*GetTokenBalanceRequest) ProtoMessage()
- func (m *GetTokenBalanceRequest) Reset()
- func (m *GetTokenBalanceRequest) String() string
- func (m *GetTokenBalanceRequest) XXX_DiscardUnknown()
- func (m *GetTokenBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTokenBalanceRequest) XXX_Merge(src proto.Message)
- func (m *GetTokenBalanceRequest) XXX_Size() int
- func (m *GetTokenBalanceRequest) XXX_Unmarshal(b []byte) error
- type GetTokenBalanceResponse
- func (*GetTokenBalanceResponse) Descriptor() ([]byte, []int)
- func (m *GetTokenBalanceResponse) GetBalance() float64
- func (m *GetTokenBalanceResponse) GetFrozenBalances() []*FrozenBalance
- func (*GetTokenBalanceResponse) ProtoMessage()
- func (m *GetTokenBalanceResponse) Reset()
- func (m *GetTokenBalanceResponse) String() string
- func (m *GetTokenBalanceResponse) XXX_DiscardUnknown()
- func (m *GetTokenBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTokenBalanceResponse) XXX_Merge(src proto.Message)
- func (m *GetTokenBalanceResponse) XXX_Size() int
- func (m *GetTokenBalanceResponse) XXX_Unmarshal(b []byte) error
- type NetworkInfo
- func (*NetworkInfo) Descriptor() ([]byte, []int)
- func (m *NetworkInfo) GetId() string
- func (m *NetworkInfo) GetPeerCount() int32
- func (m *NetworkInfo) GetPeerInfo() []*PeerInfo
- func (*NetworkInfo) ProtoMessage()
- func (m *NetworkInfo) Reset()
- func (m *NetworkInfo) String() string
- func (m *NetworkInfo) XXX_DiscardUnknown()
- func (m *NetworkInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NetworkInfo) XXX_Merge(src proto.Message)
- func (m *NetworkInfo) XXX_Size() int
- func (m *NetworkInfo) XXX_Unmarshal(b []byte) error
- type NodeInfoResponse
- func (*NodeInfoResponse) Descriptor() ([]byte, []int)
- func (m *NodeInfoResponse) GetBuildTime() string
- func (m *NodeInfoResponse) GetGitHash() string
- func (m *NodeInfoResponse) GetMode() string
- func (m *NodeInfoResponse) GetNetwork() *NetworkInfo
- func (*NodeInfoResponse) ProtoMessage()
- func (m *NodeInfoResponse) Reset()
- func (m *NodeInfoResponse) String() string
- func (m *NodeInfoResponse) XXX_DiscardUnknown()
- func (m *NodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodeInfoResponse) XXX_Merge(src proto.Message)
- func (m *NodeInfoResponse) XXX_Size() int
- func (m *NodeInfoResponse) XXX_Unmarshal(b []byte) error
- type PeerInfo
- func (*PeerInfo) Descriptor() ([]byte, []int)
- func (m *PeerInfo) GetAddr() string
- func (m *PeerInfo) GetId() string
- func (*PeerInfo) ProtoMessage()
- func (m *PeerInfo) Reset()
- func (m *PeerInfo) String() string
- func (m *PeerInfo) XXX_DiscardUnknown()
- func (m *PeerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeerInfo) XXX_Merge(src proto.Message)
- func (m *PeerInfo) XXX_Size() int
- func (m *PeerInfo) XXX_Unmarshal(b []byte) error
- type RAMInfoResponse
- func (*RAMInfoResponse) Descriptor() ([]byte, []int)
- func (m *RAMInfoResponse) GetAvailableRam() int64
- func (m *RAMInfoResponse) GetBuyPrice() float64
- func (m *RAMInfoResponse) GetSellPrice() float64
- func (m *RAMInfoResponse) GetTotalRam() int64
- func (m *RAMInfoResponse) GetUsedRam() int64
- func (*RAMInfoResponse) ProtoMessage()
- func (m *RAMInfoResponse) Reset()
- func (m *RAMInfoResponse) String() string
- func (m *RAMInfoResponse) XXX_DiscardUnknown()
- func (m *RAMInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RAMInfoResponse) XXX_Merge(src proto.Message)
- func (m *RAMInfoResponse) XXX_Size() int
- func (m *RAMInfoResponse) XXX_Unmarshal(b []byte) error
- type SendTransactionResponse
- func (*SendTransactionResponse) Descriptor() ([]byte, []int)
- func (m *SendTransactionResponse) GetHash() string
- func (*SendTransactionResponse) ProtoMessage()
- func (m *SendTransactionResponse) Reset()
- func (m *SendTransactionResponse) String() string
- func (m *SendTransactionResponse) XXX_DiscardUnknown()
- func (m *SendTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendTransactionResponse) XXX_Merge(src proto.Message)
- func (m *SendTransactionResponse) XXX_Size() int
- func (m *SendTransactionResponse) XXX_Unmarshal(b []byte) error
- type Signature
- func (*Signature) Descriptor() ([]byte, []int)
- func (m *Signature) GetAlgorithm() Signature_Algorithm
- func (m *Signature) GetPublicKey() []byte
- func (m *Signature) GetSignature() []byte
- func (*Signature) ProtoMessage()
- func (m *Signature) Reset()
- func (m *Signature) String() string
- func (m *Signature) XXX_DiscardUnknown()
- func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Signature) XXX_Merge(src proto.Message)
- func (m *Signature) XXX_Size() int
- func (m *Signature) XXX_Unmarshal(b []byte) error
- type Signature_Algorithm
- type SubscribeRequest
- func (*SubscribeRequest) Descriptor() ([]byte, []int)
- func (m *SubscribeRequest) GetFilter() *SubscribeRequest_Filter
- func (m *SubscribeRequest) GetTopics() []Event_Topic
- func (*SubscribeRequest) ProtoMessage()
- func (m *SubscribeRequest) Reset()
- func (m *SubscribeRequest) String() string
- func (m *SubscribeRequest) XXX_DiscardUnknown()
- func (m *SubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubscribeRequest) XXX_Merge(src proto.Message)
- func (m *SubscribeRequest) XXX_Size() int
- func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error
- type SubscribeRequest_Filter
- func (*SubscribeRequest_Filter) Descriptor() ([]byte, []int)
- func (m *SubscribeRequest_Filter) GetContractId() string
- func (*SubscribeRequest_Filter) ProtoMessage()
- func (m *SubscribeRequest_Filter) Reset()
- func (m *SubscribeRequest_Filter) String() string
- func (m *SubscribeRequest_Filter) XXX_DiscardUnknown()
- func (m *SubscribeRequest_Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubscribeRequest_Filter) XXX_Merge(src proto.Message)
- func (m *SubscribeRequest_Filter) XXX_Size() int
- func (m *SubscribeRequest_Filter) XXX_Unmarshal(b []byte) error
- type SubscribeResponse
- func (*SubscribeResponse) Descriptor() ([]byte, []int)
- func (m *SubscribeResponse) GetEvent() *Event
- func (*SubscribeResponse) ProtoMessage()
- func (m *SubscribeResponse) Reset()
- func (m *SubscribeResponse) String() string
- func (m *SubscribeResponse) XXX_DiscardUnknown()
- func (m *SubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubscribeResponse) XXX_Merge(src proto.Message)
- func (m *SubscribeResponse) XXX_Size() int
- func (m *SubscribeResponse) XXX_Unmarshal(b []byte) error
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)
- func (m *Transaction) GetActions() []*Action
- func (m *Transaction) GetAmountLimit() []*AmountLimit
- func (m *Transaction) GetDelay() int64
- func (m *Transaction) GetExpiration() int64
- func (m *Transaction) GetGasLimit() float64
- func (m *Transaction) GetGasRatio() float64
- func (m *Transaction) GetHash() string
- func (m *Transaction) GetPublisher() string
- func (m *Transaction) GetReferredTx() string
- func (m *Transaction) GetSigners() []string
- func (m *Transaction) GetTime() int64
- func (m *Transaction) GetTxReceipt() *TxReceipt
- func (*Transaction) ProtoMessage()
- func (m *Transaction) Reset()
- func (m *Transaction) String() string
- func (m *Transaction) XXX_DiscardUnknown()
- func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Transaction) XXX_Merge(src proto.Message)
- func (m *Transaction) XXX_Size() int
- func (m *Transaction) XXX_Unmarshal(b []byte) error
- type TransactionRequest
- func (*TransactionRequest) Descriptor() ([]byte, []int)
- func (m *TransactionRequest) GetActions() []*Action
- func (m *TransactionRequest) GetAmountLimit() []*AmountLimit
- func (m *TransactionRequest) GetDelay() int64
- func (m *TransactionRequest) GetExpiration() int64
- func (m *TransactionRequest) GetGasLimit() float64
- func (m *TransactionRequest) GetGasRatio() float64
- func (m *TransactionRequest) GetPublisher() string
- func (m *TransactionRequest) GetPublisherSigs() []*Signature
- func (m *TransactionRequest) GetSignatures() []*Signature
- func (m *TransactionRequest) GetSigners() []string
- func (m *TransactionRequest) GetTime() int64
- func (*TransactionRequest) ProtoMessage()
- func (m *TransactionRequest) Reset()
- func (m *TransactionRequest) String() string
- func (m *TransactionRequest) XXX_DiscardUnknown()
- func (m *TransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionRequest) XXX_Merge(src proto.Message)
- func (m *TransactionRequest) XXX_Size() int
- func (m *TransactionRequest) XXX_Unmarshal(b []byte) error
- type TransactionResponse
- func (*TransactionResponse) Descriptor() ([]byte, []int)
- func (m *TransactionResponse) GetStatus() TransactionResponse_Status
- func (m *TransactionResponse) GetTransaction() *Transaction
- func (*TransactionResponse) ProtoMessage()
- func (m *TransactionResponse) Reset()
- func (m *TransactionResponse) String() string
- func (m *TransactionResponse) XXX_DiscardUnknown()
- func (m *TransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionResponse) XXX_Merge(src proto.Message)
- func (m *TransactionResponse) XXX_Size() int
- func (m *TransactionResponse) XXX_Unmarshal(b []byte) error
- type TransactionResponse_Status
- type TxHashRequest
- func (*TxHashRequest) Descriptor() ([]byte, []int)
- func (m *TxHashRequest) GetHash() string
- func (*TxHashRequest) ProtoMessage()
- func (m *TxHashRequest) Reset()
- func (m *TxHashRequest) String() string
- func (m *TxHashRequest) XXX_DiscardUnknown()
- func (m *TxHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxHashRequest) XXX_Merge(src proto.Message)
- func (m *TxHashRequest) XXX_Size() int
- func (m *TxHashRequest) XXX_Unmarshal(b []byte) error
- type TxReceipt
- func (*TxReceipt) Descriptor() ([]byte, []int)
- func (m *TxReceipt) GetGasUsage() float64
- func (m *TxReceipt) GetMessage() string
- func (m *TxReceipt) GetRamUsage() map[string]int64
- func (m *TxReceipt) GetReceipts() []*TxReceipt_Receipt
- func (m *TxReceipt) GetReturns() []string
- func (m *TxReceipt) GetStatusCode() TxReceipt_StatusCode
- func (m *TxReceipt) GetTxHash() string
- func (*TxReceipt) ProtoMessage()
- func (m *TxReceipt) Reset()
- func (m *TxReceipt) String() string
- func (m *TxReceipt) XXX_DiscardUnknown()
- func (m *TxReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxReceipt) XXX_Merge(src proto.Message)
- func (m *TxReceipt) XXX_Size() int
- func (m *TxReceipt) XXX_Unmarshal(b []byte) error
- type TxReceipt_Receipt
- func (*TxReceipt_Receipt) Descriptor() ([]byte, []int)
- func (m *TxReceipt_Receipt) GetContent() string
- func (m *TxReceipt_Receipt) GetFuncName() string
- func (*TxReceipt_Receipt) ProtoMessage()
- func (m *TxReceipt_Receipt) Reset()
- func (m *TxReceipt_Receipt) String() string
- func (m *TxReceipt_Receipt) XXX_DiscardUnknown()
- func (m *TxReceipt_Receipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxReceipt_Receipt) XXX_Merge(src proto.Message)
- func (m *TxReceipt_Receipt) XXX_Size() int
- func (m *TxReceipt_Receipt) XXX_Unmarshal(b []byte) error
- type TxReceipt_StatusCode
Constants ¶
This section is empty.
Variables ¶
var BlockResponse_Status_name = map[int32]string{
0: "PENDING",
1: "IRREVERSIBLE",
}
var BlockResponse_Status_value = map[string]int32{
"PENDING": 0,
"IRREVERSIBLE": 1,
}
var Event_Topic_name = map[int32]string{
0: "CONTRACT_RECEIPT",
1: "CONTRACT_EVENT",
}
var Event_Topic_value = map[string]int32{
"CONTRACT_RECEIPT": 0,
"CONTRACT_EVENT": 1,
}
var Signature_Algorithm_name = map[int32]string{
0: "UNKNOWN",
1: "SECP256K1",
2: "ED25519",
}
var Signature_Algorithm_value = map[string]int32{
"UNKNOWN": 0,
"SECP256K1": 1,
"ED25519": 2,
}
var TransactionResponse_Status_name = map[int32]string{
0: "PENDING",
1: "PACKED",
2: "IRREVERSIBLE",
}
var TransactionResponse_Status_value = map[string]int32{
"PENDING": 0,
"PACKED": 1,
"IRREVERSIBLE": 2,
}
var TxReceipt_StatusCode_name = map[int32]string{
0: "SUCCESS",
1: "GAS_RUN_OUT",
2: "BALANCE_NOT_ENOUGH",
3: "WRONG_PARAMETER",
4: "RUNTIME_ERROR",
5: "TIMEOUT",
6: "WRONG_TX_FORMAT",
7: "DUPLICATE_SET_CODE",
8: "UNKNOWN_ERROR",
}
var TxReceipt_StatusCode_value = map[string]int32{
"SUCCESS": 0,
"GAS_RUN_OUT": 1,
"BALANCE_NOT_ENOUGH": 2,
"WRONG_PARAMETER": 3,
"RUNTIME_ERROR": 4,
"TIMEOUT": 5,
"WRONG_TX_FORMAT": 6,
"DUPLICATE_SET_CODE": 7,
"UNKNOWN_ERROR": 8,
}
Functions ¶
func RegisterApiServiceHandler ¶
func RegisterApiServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterApiServiceHandler registers the http handlers for service ApiService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterApiServiceHandlerClient ¶
func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ApiServiceClient) error
RegisterApiServiceHandlerClient registers the http handlers for service ApiService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ApiServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ApiServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ApiServiceClient" to call the correct interceptors.
func RegisterApiServiceHandlerFromEndpoint ¶
func RegisterApiServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterApiServiceHandlerFromEndpoint is same as RegisterApiServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterApiServiceServer ¶
func RegisterApiServiceServer(s *grpc.Server, srv ApiServiceServer)
Types ¶
type Account ¶
type Account struct { // account name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // account balance Balance float64 `protobuf:"fixed64,2,opt,name=balance,proto3" json:"balance,omitempty"` // gas information GasInfo *Account_GasInfo `protobuf:"bytes,3,opt,name=gas_info,json=gasInfo,proto3" json:"gas_info,omitempty"` // ram information RamInfo *Account_RAMInfo `protobuf:"bytes,4,opt,name=ram_info,json=ramInfo,proto3" json:"ram_info,omitempty"` // account permission Permissions map[string]*Account_Permission `` /* 163-byte string literal not displayed */ // account groups Groups map[string]*Account_Group `` /* 153-byte string literal not displayed */ // frozen balance information FrozenBalances []*FrozenBalance `protobuf:"bytes,7,rep,name=frozen_balances,json=frozenBalances,proto3" json:"frozen_balances,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines account struct.
func (*Account) Descriptor ¶
func (*Account) GetBalance ¶
func (*Account) GetFrozenBalances ¶
func (m *Account) GetFrozenBalances() []*FrozenBalance
func (*Account) GetGasInfo ¶
func (m *Account) GetGasInfo() *Account_GasInfo
func (*Account) GetGroups ¶
func (m *Account) GetGroups() map[string]*Account_Group
func (*Account) GetPermissions ¶
func (m *Account) GetPermissions() map[string]*Account_Permission
func (*Account) GetRamInfo ¶
func (m *Account) GetRamInfo() *Account_RAMInfo
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) XXX_DiscardUnknown ¶
func (m *Account) XXX_DiscardUnknown()
func (*Account) XXX_Marshal ¶
func (*Account) XXX_Unmarshal ¶
type Account_GasInfo ¶
type Account_GasInfo struct { // current total gas amount CurrentTotal float64 `protobuf:"fixed64,1,opt,name=current_total,json=currentTotal,proto3" json:"current_total,omitempty"` TransferableGas float64 `protobuf:"fixed64,2,opt,name=transferable_gas,json=transferableGas,proto3" json:"transferable_gas,omitempty"` PledgeGas float64 `protobuf:"fixed64,3,opt,name=pledge_gas,json=pledgeGas,proto3" json:"pledge_gas,omitempty"` // gas increase speed IncreaseSpeed float64 `protobuf:"fixed64,4,opt,name=increase_speed,json=increaseSpeed,proto3" json:"increase_speed,omitempty"` // gas limit Limit float64 `protobuf:"fixed64,5,opt,name=limit,proto3" json:"limit,omitempty"` // pledge information PledgedInfo []*Account_PledgeInfo `protobuf:"bytes,6,rep,name=pledged_info,json=pledgedInfo,proto3" json:"pledged_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines account gas information.
func (*Account_GasInfo) Descriptor ¶
func (*Account_GasInfo) Descriptor() ([]byte, []int)
func (*Account_GasInfo) GetCurrentTotal ¶
func (m *Account_GasInfo) GetCurrentTotal() float64
func (*Account_GasInfo) GetIncreaseSpeed ¶
func (m *Account_GasInfo) GetIncreaseSpeed() float64
func (*Account_GasInfo) GetLimit ¶
func (m *Account_GasInfo) GetLimit() float64
func (*Account_GasInfo) GetPledgeGas ¶
func (m *Account_GasInfo) GetPledgeGas() float64
func (*Account_GasInfo) GetPledgedInfo ¶
func (m *Account_GasInfo) GetPledgedInfo() []*Account_PledgeInfo
func (*Account_GasInfo) GetTransferableGas ¶
func (m *Account_GasInfo) GetTransferableGas() float64
func (*Account_GasInfo) ProtoMessage ¶
func (*Account_GasInfo) ProtoMessage()
func (*Account_GasInfo) Reset ¶
func (m *Account_GasInfo) Reset()
func (*Account_GasInfo) String ¶
func (m *Account_GasInfo) String() string
func (*Account_GasInfo) XXX_DiscardUnknown ¶
func (m *Account_GasInfo) XXX_DiscardUnknown()
func (*Account_GasInfo) XXX_Marshal ¶
func (m *Account_GasInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Account_GasInfo) XXX_Merge ¶
func (m *Account_GasInfo) XXX_Merge(src proto.Message)
func (*Account_GasInfo) XXX_Size ¶
func (m *Account_GasInfo) XXX_Size() int
func (*Account_GasInfo) XXX_Unmarshal ¶
func (m *Account_GasInfo) XXX_Unmarshal(b []byte) error
type Account_Group ¶
type Account_Group struct { // group name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // permission items Items []*Account_Item `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines a permission group.
func (*Account_Group) Descriptor ¶
func (*Account_Group) Descriptor() ([]byte, []int)
func (*Account_Group) GetItems ¶
func (m *Account_Group) GetItems() []*Account_Item
func (*Account_Group) GetName ¶
func (m *Account_Group) GetName() string
func (*Account_Group) ProtoMessage ¶
func (*Account_Group) ProtoMessage()
func (*Account_Group) Reset ¶
func (m *Account_Group) Reset()
func (*Account_Group) String ¶
func (m *Account_Group) String() string
func (*Account_Group) XXX_DiscardUnknown ¶
func (m *Account_Group) XXX_DiscardUnknown()
func (*Account_Group) XXX_Marshal ¶
func (m *Account_Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Account_Group) XXX_Merge ¶
func (m *Account_Group) XXX_Merge(src proto.Message)
func (*Account_Group) XXX_Size ¶
func (m *Account_Group) XXX_Size() int
func (*Account_Group) XXX_Unmarshal ¶
func (m *Account_Group) XXX_Unmarshal(b []byte) error
type Account_Item ¶
type Account_Item struct { // permission name or key pair id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // whether it's a key pair IsKeyPair bool `protobuf:"varint,2,opt,name=is_key_pair,json=isKeyPair,proto3" json:"is_key_pair,omitempty"` // permission weight Weight int64 `protobuf:"varint,3,opt,name=weight,proto3" json:"weight,omitempty"` // permission Permission string `protobuf:"bytes,4,opt,name=permission,proto3" json:"permission,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines permission item.
func (*Account_Item) Descriptor ¶
func (*Account_Item) Descriptor() ([]byte, []int)
func (*Account_Item) GetId ¶
func (m *Account_Item) GetId() string
func (*Account_Item) GetIsKeyPair ¶
func (m *Account_Item) GetIsKeyPair() bool
func (*Account_Item) GetPermission ¶
func (m *Account_Item) GetPermission() string
func (*Account_Item) GetWeight ¶
func (m *Account_Item) GetWeight() int64
func (*Account_Item) ProtoMessage ¶
func (*Account_Item) ProtoMessage()
func (*Account_Item) Reset ¶
func (m *Account_Item) Reset()
func (*Account_Item) String ¶
func (m *Account_Item) String() string
func (*Account_Item) XXX_DiscardUnknown ¶
func (m *Account_Item) XXX_DiscardUnknown()
func (*Account_Item) XXX_Marshal ¶
func (m *Account_Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Account_Item) XXX_Merge ¶
func (m *Account_Item) XXX_Merge(src proto.Message)
func (*Account_Item) XXX_Size ¶
func (m *Account_Item) XXX_Size() int
func (*Account_Item) XXX_Unmarshal ¶
func (m *Account_Item) XXX_Unmarshal(b []byte) error
type Account_Permission ¶
type Account_Permission struct { // permission name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // permission groups Groups []string `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"` // permission items Items []*Account_Item `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` // permission threshold Threshold int64 `protobuf:"varint,4,opt,name=threshold,proto3" json:"threshold,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines the permission struct.
func (*Account_Permission) Descriptor ¶
func (*Account_Permission) Descriptor() ([]byte, []int)
func (*Account_Permission) GetGroups ¶
func (m *Account_Permission) GetGroups() []string
func (*Account_Permission) GetItems ¶
func (m *Account_Permission) GetItems() []*Account_Item
func (*Account_Permission) GetName ¶
func (m *Account_Permission) GetName() string
func (*Account_Permission) GetThreshold ¶
func (m *Account_Permission) GetThreshold() int64
func (*Account_Permission) ProtoMessage ¶
func (*Account_Permission) ProtoMessage()
func (*Account_Permission) Reset ¶
func (m *Account_Permission) Reset()
func (*Account_Permission) String ¶
func (m *Account_Permission) String() string
func (*Account_Permission) XXX_DiscardUnknown ¶
func (m *Account_Permission) XXX_DiscardUnknown()
func (*Account_Permission) XXX_Marshal ¶
func (m *Account_Permission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Account_Permission) XXX_Merge ¶
func (m *Account_Permission) XXX_Merge(src proto.Message)
func (*Account_Permission) XXX_Size ¶
func (m *Account_Permission) XXX_Size() int
func (*Account_Permission) XXX_Unmarshal ¶
func (m *Account_Permission) XXX_Unmarshal(b []byte) error
type Account_PledgeInfo ¶
type Account_PledgeInfo struct { // the account who pledges Pledger string `protobuf:"bytes,1,opt,name=pledger,proto3" json:"pledger,omitempty"` // pledged amount Amount float64 `protobuf:"fixed64,2,opt,name=amount,proto3" json:"amount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines account pledged coin information.
func (*Account_PledgeInfo) Descriptor ¶
func (*Account_PledgeInfo) Descriptor() ([]byte, []int)
func (*Account_PledgeInfo) GetAmount ¶
func (m *Account_PledgeInfo) GetAmount() float64
func (*Account_PledgeInfo) GetPledger ¶
func (m *Account_PledgeInfo) GetPledger() string
func (*Account_PledgeInfo) ProtoMessage ¶
func (*Account_PledgeInfo) ProtoMessage()
func (*Account_PledgeInfo) Reset ¶
func (m *Account_PledgeInfo) Reset()
func (*Account_PledgeInfo) String ¶
func (m *Account_PledgeInfo) String() string
func (*Account_PledgeInfo) XXX_DiscardUnknown ¶
func (m *Account_PledgeInfo) XXX_DiscardUnknown()
func (*Account_PledgeInfo) XXX_Marshal ¶
func (m *Account_PledgeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Account_PledgeInfo) XXX_Merge ¶
func (m *Account_PledgeInfo) XXX_Merge(src proto.Message)
func (*Account_PledgeInfo) XXX_Size ¶
func (m *Account_PledgeInfo) XXX_Size() int
func (*Account_PledgeInfo) XXX_Unmarshal ¶
func (m *Account_PledgeInfo) XXX_Unmarshal(b []byte) error
type Account_RAMInfo ¶
type Account_RAMInfo struct { // available ram bytes Available int64 `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` // used ram bytes Used int64 `protobuf:"varint,2,opt,name=used,proto3" json:"used,omitempty"` // total ram bytes Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines account ram information.
func (*Account_RAMInfo) Descriptor ¶
func (*Account_RAMInfo) Descriptor() ([]byte, []int)
func (*Account_RAMInfo) GetAvailable ¶
func (m *Account_RAMInfo) GetAvailable() int64
func (*Account_RAMInfo) GetTotal ¶
func (m *Account_RAMInfo) GetTotal() int64
func (*Account_RAMInfo) GetUsed ¶
func (m *Account_RAMInfo) GetUsed() int64
func (*Account_RAMInfo) ProtoMessage ¶
func (*Account_RAMInfo) ProtoMessage()
func (*Account_RAMInfo) Reset ¶
func (m *Account_RAMInfo) Reset()
func (*Account_RAMInfo) String ¶
func (m *Account_RAMInfo) String() string
func (*Account_RAMInfo) XXX_DiscardUnknown ¶
func (m *Account_RAMInfo) XXX_DiscardUnknown()
func (*Account_RAMInfo) XXX_Marshal ¶
func (m *Account_RAMInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Account_RAMInfo) XXX_Merge ¶
func (m *Account_RAMInfo) XXX_Merge(src proto.Message)
func (*Account_RAMInfo) XXX_Size ¶
func (m *Account_RAMInfo) XXX_Size() int
func (*Account_RAMInfo) XXX_Unmarshal ¶
func (m *Account_RAMInfo) XXX_Unmarshal(b []byte) error
type Action ¶
type Action struct { // contract name Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` // action name ActionName string `protobuf:"bytes,2,opt,name=action_name,json=actionName,proto3" json:"action_name,omitempty"` // data Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines transaction action struct.
func (*Action) Descriptor ¶
func (*Action) GetActionName ¶
func (*Action) GetContract ¶
func (*Action) ProtoMessage ¶
func (*Action) ProtoMessage()
func (*Action) XXX_DiscardUnknown ¶
func (m *Action) XXX_DiscardUnknown()
func (*Action) XXX_Marshal ¶
func (*Action) XXX_Unmarshal ¶
type AmountLimit ¶
type AmountLimit struct { // token name Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // limit value Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines transaction amount limit struct.
func (*AmountLimit) Descriptor ¶
func (*AmountLimit) Descriptor() ([]byte, []int)
func (*AmountLimit) GetToken ¶
func (m *AmountLimit) GetToken() string
func (*AmountLimit) GetValue ¶
func (m *AmountLimit) GetValue() string
func (*AmountLimit) ProtoMessage ¶
func (*AmountLimit) ProtoMessage()
func (*AmountLimit) Reset ¶
func (m *AmountLimit) Reset()
func (*AmountLimit) String ¶
func (m *AmountLimit) String() string
func (*AmountLimit) XXX_DiscardUnknown ¶
func (m *AmountLimit) XXX_DiscardUnknown()
func (*AmountLimit) XXX_Marshal ¶
func (m *AmountLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AmountLimit) XXX_Merge ¶
func (m *AmountLimit) XXX_Merge(src proto.Message)
func (*AmountLimit) XXX_Size ¶
func (m *AmountLimit) XXX_Size() int
func (*AmountLimit) XXX_Unmarshal ¶
func (m *AmountLimit) XXX_Unmarshal(b []byte) error
type ApiServiceClient ¶
type ApiServiceClient interface { // get the node information GetNodeInfo(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*NodeInfoResponse, error) // get blockchain information GetChainInfo(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ChainInfoResponse, error) // get current blockchain ram information GetRAMInfo(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*RAMInfoResponse, error) // get transaction by hash GetTxByHash(ctx context.Context, in *TxHashRequest, opts ...grpc.CallOption) (*TransactionResponse, error) // get transaction receipt by transaction hash GetTxReceiptByTxHash(ctx context.Context, in *TxHashRequest, opts ...grpc.CallOption) (*TxReceipt, error) // get block by hash GetBlockByHash(ctx context.Context, in *GetBlockByHashRequest, opts ...grpc.CallOption) (*BlockResponse, error) // get block by number GetBlockByNumber(ctx context.Context, in *GetBlockByNumberRequest, opts ...grpc.CallOption) (*BlockResponse, error) // get account GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*Account, error) // get token balance GetTokenBalance(ctx context.Context, in *GetTokenBalanceRequest, opts ...grpc.CallOption) (*GetTokenBalanceResponse, error) // get token721 balance GetToken721Balance(ctx context.Context, in *GetTokenBalanceRequest, opts ...grpc.CallOption) (*GetToken721BalanceResponse, error) // get token721 metadata GetToken721Metadata(ctx context.Context, in *GetToken721InfoRequest, opts ...grpc.CallOption) (*GetToken721MetadataResponse, error) // get token721 owner GetToken721Owner(ctx context.Context, in *GetToken721InfoRequest, opts ...grpc.CallOption) (*GetToken721OwnerResponse, error) // get gas ratio infomation GetGasRatio(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GasRatioResponse, error) // get contract GetContract(ctx context.Context, in *GetContractRequest, opts ...grpc.CallOption) (*Contract, error) // get contract storage GetContractStorage(ctx context.Context, in *GetContractStorageRequest, opts ...grpc.CallOption) (*GetContractStorageResponse, error) // get contract fields storage GetContractStorageFields(ctx context.Context, in *GetContractStorageFieldsRequest, opts ...grpc.CallOption) (*GetContractStorageFieldsResponse, error) // send transaction SendTransaction(ctx context.Context, in *TransactionRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error) // execute transaction ExecTransaction(ctx context.Context, in *TransactionRequest, opts ...grpc.CallOption) (*TxReceipt, error) // subscribe an event Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (ApiService_SubscribeClient, error) }
ApiServiceClient is the client API for ApiService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewApiServiceClient ¶
func NewApiServiceClient(cc *grpc.ClientConn) ApiServiceClient
type ApiServiceServer ¶
type ApiServiceServer interface { // get the node information GetNodeInfo(context.Context, *EmptyRequest) (*NodeInfoResponse, error) // get blockchain information GetChainInfo(context.Context, *EmptyRequest) (*ChainInfoResponse, error) // get current blockchain ram information GetRAMInfo(context.Context, *EmptyRequest) (*RAMInfoResponse, error) // get transaction by hash GetTxByHash(context.Context, *TxHashRequest) (*TransactionResponse, error) // get transaction receipt by transaction hash GetTxReceiptByTxHash(context.Context, *TxHashRequest) (*TxReceipt, error) // get block by hash GetBlockByHash(context.Context, *GetBlockByHashRequest) (*BlockResponse, error) // get block by number GetBlockByNumber(context.Context, *GetBlockByNumberRequest) (*BlockResponse, error) // get account GetAccount(context.Context, *GetAccountRequest) (*Account, error) // get token balance GetTokenBalance(context.Context, *GetTokenBalanceRequest) (*GetTokenBalanceResponse, error) // get token721 balance GetToken721Balance(context.Context, *GetTokenBalanceRequest) (*GetToken721BalanceResponse, error) // get token721 metadata GetToken721Metadata(context.Context, *GetToken721InfoRequest) (*GetToken721MetadataResponse, error) // get token721 owner GetToken721Owner(context.Context, *GetToken721InfoRequest) (*GetToken721OwnerResponse, error) // get gas ratio infomation GetGasRatio(context.Context, *EmptyRequest) (*GasRatioResponse, error) // get contract GetContract(context.Context, *GetContractRequest) (*Contract, error) // get contract storage GetContractStorage(context.Context, *GetContractStorageRequest) (*GetContractStorageResponse, error) // get contract fields storage GetContractStorageFields(context.Context, *GetContractStorageFieldsRequest) (*GetContractStorageFieldsResponse, error) // send transaction SendTransaction(context.Context, *TransactionRequest) (*SendTransactionResponse, error) // execute transaction ExecTransaction(context.Context, *TransactionRequest) (*TxReceipt, error) // subscribe an event Subscribe(*SubscribeRequest, ApiService_SubscribeServer) error }
ApiServiceServer is the server API for ApiService service.
type ApiService_SubscribeClient ¶
type ApiService_SubscribeClient interface { Recv() (*SubscribeResponse, error) grpc.ClientStream }
type ApiService_SubscribeServer ¶
type ApiService_SubscribeServer interface { Send(*SubscribeResponse) error grpc.ServerStream }
type Block ¶
type Block struct { // block hash Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // block version Version int64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // parent block hash ParentHash string `protobuf:"bytes,3,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"` // transaction merkle tree root hash TxMerkleHash string `protobuf:"bytes,4,opt,name=tx_merkle_hash,json=txMerkleHash,proto3" json:"tx_merkle_hash,omitempty"` // transaction receipt merkle tree root hash TxReceiptMerkleHash string `protobuf:"bytes,5,opt,name=tx_receipt_merkle_hash,json=txReceiptMerkleHash,proto3" json:"tx_receipt_merkle_hash,omitempty"` // block number Number int64 `protobuf:"varint,6,opt,name=number,proto3" json:"number,omitempty"` // block producer witness Witness string `protobuf:"bytes,7,opt,name=witness,proto3" json:"witness,omitempty"` // block timestamp Time int64 `protobuf:"varint,8,opt,name=time,proto3" json:"time,omitempty"` // block gas usage GasUsage float64 `protobuf:"fixed64,9,opt,name=gas_usage,json=gasUsage,proto3" json:"gas_usage,omitempty"` // transaction count TxCount int64 `protobuf:"varint,10,opt,name=tx_count,json=txCount,proto3" json:"tx_count,omitempty"` // extra information Info *Block_Info `protobuf:"bytes,11,opt,name=info,proto3" json:"info,omitempty"` // block transactions Transactions []*Transaction `protobuf:"bytes,12,rep,name=transactions,proto3" json:"transactions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines the block struct.
func (*Block) Descriptor ¶
func (*Block) GetGasUsage ¶
func (*Block) GetInfo ¶
func (m *Block) GetInfo() *Block_Info
func (*Block) GetParentHash ¶
func (*Block) GetTransactions ¶
func (m *Block) GetTransactions() []*Transaction
func (*Block) GetTxCount ¶
func (*Block) GetTxMerkleHash ¶
func (*Block) GetTxReceiptMerkleHash ¶
func (*Block) GetVersion ¶
func (*Block) GetWitness ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) XXX_DiscardUnknown ¶
func (m *Block) XXX_DiscardUnknown()
func (*Block) XXX_Marshal ¶
func (*Block) XXX_Unmarshal ¶
type BlockResponse ¶
type BlockResponse struct { // transaction status Status BlockResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=rpcpb.BlockResponse_Status" json:"status,omitempty"` // block Block *Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockResponse) Descriptor ¶
func (*BlockResponse) Descriptor() ([]byte, []int)
func (*BlockResponse) GetBlock ¶
func (m *BlockResponse) GetBlock() *Block
func (*BlockResponse) GetStatus ¶
func (m *BlockResponse) GetStatus() BlockResponse_Status
func (*BlockResponse) ProtoMessage ¶
func (*BlockResponse) ProtoMessage()
func (*BlockResponse) Reset ¶
func (m *BlockResponse) Reset()
func (*BlockResponse) String ¶
func (m *BlockResponse) String() string
func (*BlockResponse) XXX_DiscardUnknown ¶
func (m *BlockResponse) XXX_DiscardUnknown()
func (*BlockResponse) XXX_Marshal ¶
func (m *BlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockResponse) XXX_Merge ¶
func (m *BlockResponse) XXX_Merge(src proto.Message)
func (*BlockResponse) XXX_Size ¶
func (m *BlockResponse) XXX_Size() int
func (*BlockResponse) XXX_Unmarshal ¶
func (m *BlockResponse) XXX_Unmarshal(b []byte) error
type BlockResponse_Status ¶
type BlockResponse_Status int32
The enumeration defines block status.
const ( // pending in block cache BlockResponse_PENDING BlockResponse_Status = 0 // irreversible BlockResponse_IRREVERSIBLE BlockResponse_Status = 1 )
func (BlockResponse_Status) EnumDescriptor ¶
func (BlockResponse_Status) EnumDescriptor() ([]byte, []int)
func (BlockResponse_Status) String ¶
func (x BlockResponse_Status) String() string
type Block_Info ¶
type Block_Info struct { // pack mode Mode int32 `protobuf:"varint,1,opt,name=mode,proto3" json:"mode,omitempty"` // transaction execution thread number Thread int32 `protobuf:"varint,2,opt,name=thread,proto3" json:"thread,omitempty"` // transaction index of every batch execution BatchIndex []int32 `protobuf:"varint,3,rep,packed,name=batch_index,json=batchIndex,proto3" json:"batch_index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines block extra information
func (*Block_Info) Descriptor ¶
func (*Block_Info) Descriptor() ([]byte, []int)
func (*Block_Info) GetBatchIndex ¶
func (m *Block_Info) GetBatchIndex() []int32
func (*Block_Info) GetMode ¶
func (m *Block_Info) GetMode() int32
func (*Block_Info) GetThread ¶
func (m *Block_Info) GetThread() int32
func (*Block_Info) ProtoMessage ¶
func (*Block_Info) ProtoMessage()
func (*Block_Info) Reset ¶
func (m *Block_Info) Reset()
func (*Block_Info) String ¶
func (m *Block_Info) String() string
func (*Block_Info) XXX_DiscardUnknown ¶
func (m *Block_Info) XXX_DiscardUnknown()
func (*Block_Info) XXX_Marshal ¶
func (m *Block_Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Block_Info) XXX_Merge ¶
func (m *Block_Info) XXX_Merge(src proto.Message)
func (*Block_Info) XXX_Size ¶
func (m *Block_Info) XXX_Size() int
func (*Block_Info) XXX_Unmarshal ¶
func (m *Block_Info) XXX_Unmarshal(b []byte) error
type ChainInfoResponse ¶
type ChainInfoResponse struct { // the name of network, such mainnet or testnet NetName string `protobuf:"bytes,1,opt,name=net_name,json=netName,proto3" json:"net_name,omitempty"` // the iost protocol version ProtocolVersion string `protobuf:"bytes,2,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"` // head block height HeadBlock int64 `protobuf:"varint,3,opt,name=head_block,json=headBlock,proto3" json:"head_block,omitempty"` // head block hash HeadBlockHash string `protobuf:"bytes,4,opt,name=head_block_hash,json=headBlockHash,proto3" json:"head_block_hash,omitempty"` // last irreversible block number LibBlock int64 `protobuf:"varint,5,opt,name=lib_block,json=libBlock,proto3" json:"lib_block,omitempty"` // last irreversible block hash LibBlockHash string `protobuf:"bytes,6,opt,name=lib_block_hash,json=libBlockHash,proto3" json:"lib_block_hash,omitempty"` // the current witness list WitnessList []string `protobuf:"bytes,7,rep,name=witness_list,json=witnessList,proto3" json:"witness_list,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines chain information response.
func (*ChainInfoResponse) Descriptor ¶
func (*ChainInfoResponse) Descriptor() ([]byte, []int)
func (*ChainInfoResponse) GetHeadBlock ¶
func (m *ChainInfoResponse) GetHeadBlock() int64
func (*ChainInfoResponse) GetHeadBlockHash ¶
func (m *ChainInfoResponse) GetHeadBlockHash() string
func (*ChainInfoResponse) GetLibBlock ¶
func (m *ChainInfoResponse) GetLibBlock() int64
func (*ChainInfoResponse) GetLibBlockHash ¶
func (m *ChainInfoResponse) GetLibBlockHash() string
func (*ChainInfoResponse) GetNetName ¶
func (m *ChainInfoResponse) GetNetName() string
func (*ChainInfoResponse) GetProtocolVersion ¶
func (m *ChainInfoResponse) GetProtocolVersion() string
func (*ChainInfoResponse) GetWitnessList ¶
func (m *ChainInfoResponse) GetWitnessList() []string
func (*ChainInfoResponse) ProtoMessage ¶
func (*ChainInfoResponse) ProtoMessage()
func (*ChainInfoResponse) Reset ¶
func (m *ChainInfoResponse) Reset()
func (*ChainInfoResponse) String ¶
func (m *ChainInfoResponse) String() string
func (*ChainInfoResponse) XXX_DiscardUnknown ¶
func (m *ChainInfoResponse) XXX_DiscardUnknown()
func (*ChainInfoResponse) XXX_Marshal ¶
func (m *ChainInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChainInfoResponse) XXX_Merge ¶
func (m *ChainInfoResponse) XXX_Merge(src proto.Message)
func (*ChainInfoResponse) XXX_Size ¶
func (m *ChainInfoResponse) XXX_Size() int
func (*ChainInfoResponse) XXX_Unmarshal ¶
func (m *ChainInfoResponse) XXX_Unmarshal(b []byte) error
type Contract ¶
type Contract struct { // contract id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contract code Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // contract language Language string `protobuf:"bytes,3,opt,name=language,proto3" json:"language,omitempty"` // contract version Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // contract abis Abis []*Contract_ABI `protobuf:"bytes,5,rep,name=abis,proto3" json:"abis,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines the contract struct.
func (*Contract) Descriptor ¶
func (*Contract) GetAbis ¶
func (m *Contract) GetAbis() []*Contract_ABI
func (*Contract) GetLanguage ¶
func (*Contract) GetVersion ¶
func (*Contract) ProtoMessage ¶
func (*Contract) ProtoMessage()
func (*Contract) XXX_DiscardUnknown ¶
func (m *Contract) XXX_DiscardUnknown()
func (*Contract) XXX_Marshal ¶
func (*Contract) XXX_Unmarshal ¶
type Contract_ABI ¶
type Contract_ABI struct { // abi name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // abi arguments Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` // abi amount limt AmountLimit []*AmountLimit `protobuf:"bytes,3,rep,name=amount_limit,json=amountLimit,proto3" json:"amount_limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines the ABI struct.
func (*Contract_ABI) Descriptor ¶
func (*Contract_ABI) Descriptor() ([]byte, []int)
func (*Contract_ABI) GetAmountLimit ¶
func (m *Contract_ABI) GetAmountLimit() []*AmountLimit
func (*Contract_ABI) GetArgs ¶
func (m *Contract_ABI) GetArgs() []string
func (*Contract_ABI) GetName ¶
func (m *Contract_ABI) GetName() string
func (*Contract_ABI) ProtoMessage ¶
func (*Contract_ABI) ProtoMessage()
func (*Contract_ABI) Reset ¶
func (m *Contract_ABI) Reset()
func (*Contract_ABI) String ¶
func (m *Contract_ABI) String() string
func (*Contract_ABI) XXX_DiscardUnknown ¶
func (m *Contract_ABI) XXX_DiscardUnknown()
func (*Contract_ABI) XXX_Marshal ¶
func (m *Contract_ABI) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Contract_ABI) XXX_Merge ¶
func (m *Contract_ABI) XXX_Merge(src proto.Message)
func (*Contract_ABI) XXX_Size ¶
func (m *Contract_ABI) XXX_Size() int
func (*Contract_ABI) XXX_Unmarshal ¶
func (m *Contract_ABI) XXX_Unmarshal(b []byte) error
type EmptyRequest ¶
type EmptyRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines an empty request.
func (*EmptyRequest) Descriptor ¶
func (*EmptyRequest) Descriptor() ([]byte, []int)
func (*EmptyRequest) ProtoMessage ¶
func (*EmptyRequest) ProtoMessage()
func (*EmptyRequest) Reset ¶
func (m *EmptyRequest) Reset()
func (*EmptyRequest) String ¶
func (m *EmptyRequest) String() string
func (*EmptyRequest) XXX_DiscardUnknown ¶
func (m *EmptyRequest) XXX_DiscardUnknown()
func (*EmptyRequest) XXX_Marshal ¶
func (m *EmptyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EmptyRequest) XXX_Merge ¶
func (m *EmptyRequest) XXX_Merge(src proto.Message)
func (*EmptyRequest) XXX_Size ¶
func (m *EmptyRequest) XXX_Size() int
func (*EmptyRequest) XXX_Unmarshal ¶
func (m *EmptyRequest) XXX_Unmarshal(b []byte) error
type Event ¶
type Event struct { // event topic Topic Event_Topic `protobuf:"varint,1,opt,name=topic,proto3,enum=rpcpb.Event_Topic" json:"topic,omitempty"` // event data Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // event time Time int64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines event struct.
func (*Event) Descriptor ¶
func (*Event) GetTopic ¶
func (m *Event) GetTopic() Event_Topic
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_Unmarshal ¶
type Event_Topic ¶
type Event_Topic int32
const ( // contract receipt Event_CONTRACT_RECEIPT Event_Topic = 0 // contract event Event_CONTRACT_EVENT Event_Topic = 1 )
func (Event_Topic) EnumDescriptor ¶
func (Event_Topic) EnumDescriptor() ([]byte, []int)
func (Event_Topic) String ¶
func (x Event_Topic) String() string
type FrozenBalance ¶
type FrozenBalance struct { // balance amount Amount float64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` // free time Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines the account's frozen balance.
func (*FrozenBalance) Descriptor ¶
func (*FrozenBalance) Descriptor() ([]byte, []int)
func (*FrozenBalance) GetAmount ¶
func (m *FrozenBalance) GetAmount() float64
func (*FrozenBalance) GetTime ¶
func (m *FrozenBalance) GetTime() int64
func (*FrozenBalance) ProtoMessage ¶
func (*FrozenBalance) ProtoMessage()
func (*FrozenBalance) Reset ¶
func (m *FrozenBalance) Reset()
func (*FrozenBalance) String ¶
func (m *FrozenBalance) String() string
func (*FrozenBalance) XXX_DiscardUnknown ¶
func (m *FrozenBalance) XXX_DiscardUnknown()
func (*FrozenBalance) XXX_Marshal ¶
func (m *FrozenBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FrozenBalance) XXX_Merge ¶
func (m *FrozenBalance) XXX_Merge(src proto.Message)
func (*FrozenBalance) XXX_Size ¶
func (m *FrozenBalance) XXX_Size() int
func (*FrozenBalance) XXX_Unmarshal ¶
func (m *FrozenBalance) XXX_Unmarshal(b []byte) error
type GasRatioResponse ¶
type GasRatioResponse struct { // lowest gas ratio in head block LowestGasRatio float64 `protobuf:"fixed64,1,opt,name=lowest_gas_ratio,json=lowestGasRatio,proto3" json:"lowest_gas_ratio,omitempty"` // median gas ratio in head block MedianGasRatio float64 `protobuf:"fixed64,2,opt,name=median_gas_ratio,json=medianGasRatio,proto3" json:"median_gas_ratio,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GasRatioResponse) Descriptor ¶
func (*GasRatioResponse) Descriptor() ([]byte, []int)
func (*GasRatioResponse) GetLowestGasRatio ¶
func (m *GasRatioResponse) GetLowestGasRatio() float64
func (*GasRatioResponse) GetMedianGasRatio ¶
func (m *GasRatioResponse) GetMedianGasRatio() float64
func (*GasRatioResponse) ProtoMessage ¶
func (*GasRatioResponse) ProtoMessage()
func (*GasRatioResponse) Reset ¶
func (m *GasRatioResponse) Reset()
func (*GasRatioResponse) String ¶
func (m *GasRatioResponse) String() string
func (*GasRatioResponse) XXX_DiscardUnknown ¶
func (m *GasRatioResponse) XXX_DiscardUnknown()
func (*GasRatioResponse) XXX_Marshal ¶
func (m *GasRatioResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GasRatioResponse) XXX_Merge ¶
func (m *GasRatioResponse) XXX_Merge(src proto.Message)
func (*GasRatioResponse) XXX_Size ¶
func (m *GasRatioResponse) XXX_Size() int
func (*GasRatioResponse) XXX_Unmarshal ¶
func (m *GasRatioResponse) XXX_Unmarshal(b []byte) error
type GetAccountRequest ¶
type GetAccountRequest struct { // account name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // get account by longest chain's head block or last irreversible block ByLongestChain bool `protobuf:"varint,2,opt,name=by_longest_chain,json=byLongestChain,proto3" json:"by_longest_chain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines the get account request.
func (*GetAccountRequest) Descriptor ¶
func (*GetAccountRequest) Descriptor() ([]byte, []int)
func (*GetAccountRequest) GetByLongestChain ¶
func (m *GetAccountRequest) GetByLongestChain() bool
func (*GetAccountRequest) GetName ¶
func (m *GetAccountRequest) GetName() string
func (*GetAccountRequest) ProtoMessage ¶
func (*GetAccountRequest) ProtoMessage()
func (*GetAccountRequest) Reset ¶
func (m *GetAccountRequest) Reset()
func (*GetAccountRequest) String ¶
func (m *GetAccountRequest) String() string
func (*GetAccountRequest) XXX_DiscardUnknown ¶
func (m *GetAccountRequest) XXX_DiscardUnknown()
func (*GetAccountRequest) XXX_Marshal ¶
func (m *GetAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAccountRequest) XXX_Merge ¶
func (m *GetAccountRequest) XXX_Merge(src proto.Message)
func (*GetAccountRequest) XXX_Size ¶
func (m *GetAccountRequest) XXX_Size() int
func (*GetAccountRequest) XXX_Unmarshal ¶
func (m *GetAccountRequest) XXX_Unmarshal(b []byte) error
type GetBlockByHashRequest ¶
type GetBlockByHashRequest struct { // block hash Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // complete means whether including the full transactions and transaction receipts Complete bool `protobuf:"varint,2,opt,name=complete,proto3" json:"complete,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The request message containing the block's hash.
func (*GetBlockByHashRequest) Descriptor ¶
func (*GetBlockByHashRequest) Descriptor() ([]byte, []int)
func (*GetBlockByHashRequest) GetComplete ¶
func (m *GetBlockByHashRequest) GetComplete() bool
func (*GetBlockByHashRequest) GetHash ¶
func (m *GetBlockByHashRequest) GetHash() string
func (*GetBlockByHashRequest) ProtoMessage ¶
func (*GetBlockByHashRequest) ProtoMessage()
func (*GetBlockByHashRequest) Reset ¶
func (m *GetBlockByHashRequest) Reset()
func (*GetBlockByHashRequest) String ¶
func (m *GetBlockByHashRequest) String() string
func (*GetBlockByHashRequest) XXX_DiscardUnknown ¶
func (m *GetBlockByHashRequest) XXX_DiscardUnknown()
func (*GetBlockByHashRequest) XXX_Marshal ¶
func (m *GetBlockByHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockByHashRequest) XXX_Merge ¶
func (m *GetBlockByHashRequest) XXX_Merge(src proto.Message)
func (*GetBlockByHashRequest) XXX_Size ¶
func (m *GetBlockByHashRequest) XXX_Size() int
func (*GetBlockByHashRequest) XXX_Unmarshal ¶
func (m *GetBlockByHashRequest) XXX_Unmarshal(b []byte) error
type GetBlockByNumberRequest ¶
type GetBlockByNumberRequest struct { // block number Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // complete means whether including the full transactions and transaction receipts Complete bool `protobuf:"varint,2,opt,name=complete,proto3" json:"complete,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The request message containing the block's number.
func (*GetBlockByNumberRequest) Descriptor ¶
func (*GetBlockByNumberRequest) Descriptor() ([]byte, []int)
func (*GetBlockByNumberRequest) GetComplete ¶
func (m *GetBlockByNumberRequest) GetComplete() bool
func (*GetBlockByNumberRequest) GetNumber ¶
func (m *GetBlockByNumberRequest) GetNumber() int64
func (*GetBlockByNumberRequest) ProtoMessage ¶
func (*GetBlockByNumberRequest) ProtoMessage()
func (*GetBlockByNumberRequest) Reset ¶
func (m *GetBlockByNumberRequest) Reset()
func (*GetBlockByNumberRequest) String ¶
func (m *GetBlockByNumberRequest) String() string
func (*GetBlockByNumberRequest) XXX_DiscardUnknown ¶
func (m *GetBlockByNumberRequest) XXX_DiscardUnknown()
func (*GetBlockByNumberRequest) XXX_Marshal ¶
func (m *GetBlockByNumberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockByNumberRequest) XXX_Merge ¶
func (m *GetBlockByNumberRequest) XXX_Merge(src proto.Message)
func (*GetBlockByNumberRequest) XXX_Size ¶
func (m *GetBlockByNumberRequest) XXX_Size() int
func (*GetBlockByNumberRequest) XXX_Unmarshal ¶
func (m *GetBlockByNumberRequest) XXX_Unmarshal(b []byte) error
type GetContractRequest ¶
type GetContractRequest struct { // contract id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // get data by longest chain's head block or last irreversible block ByLongestChain bool `protobuf:"varint,2,opt,name=by_longest_chain,json=byLongestChain,proto3" json:"by_longest_chain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines get contract request.
func (*GetContractRequest) Descriptor ¶
func (*GetContractRequest) Descriptor() ([]byte, []int)
func (*GetContractRequest) GetByLongestChain ¶
func (m *GetContractRequest) GetByLongestChain() bool
func (*GetContractRequest) GetId ¶
func (m *GetContractRequest) GetId() string
func (*GetContractRequest) ProtoMessage ¶
func (*GetContractRequest) ProtoMessage()
func (*GetContractRequest) Reset ¶
func (m *GetContractRequest) Reset()
func (*GetContractRequest) String ¶
func (m *GetContractRequest) String() string
func (*GetContractRequest) XXX_DiscardUnknown ¶
func (m *GetContractRequest) XXX_DiscardUnknown()
func (*GetContractRequest) XXX_Marshal ¶
func (m *GetContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetContractRequest) XXX_Merge ¶
func (m *GetContractRequest) XXX_Merge(src proto.Message)
func (*GetContractRequest) XXX_Size ¶
func (m *GetContractRequest) XXX_Size() int
func (*GetContractRequest) XXX_Unmarshal ¶
func (m *GetContractRequest) XXX_Unmarshal(b []byte) error
type GetContractStorageFieldsRequest ¶
type GetContractStorageFieldsRequest struct { // contract id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // get the fields from StateDB Fields string `protobuf:"bytes,2,opt,name=fields,proto3" json:"fields,omitempty"` // get data by longest chain's head block or last irreversible block ByLongestChain bool `protobuf:"varint,3,opt,name=by_longest_chain,json=byLongestChain,proto3" json:"by_longest_chain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines get contract storage request.
func (*GetContractStorageFieldsRequest) Descriptor ¶
func (*GetContractStorageFieldsRequest) Descriptor() ([]byte, []int)
func (*GetContractStorageFieldsRequest) GetByLongestChain ¶
func (m *GetContractStorageFieldsRequest) GetByLongestChain() bool
func (*GetContractStorageFieldsRequest) GetFields ¶
func (m *GetContractStorageFieldsRequest) GetFields() string
func (*GetContractStorageFieldsRequest) GetId ¶
func (m *GetContractStorageFieldsRequest) GetId() string
func (*GetContractStorageFieldsRequest) ProtoMessage ¶
func (*GetContractStorageFieldsRequest) ProtoMessage()
func (*GetContractStorageFieldsRequest) Reset ¶
func (m *GetContractStorageFieldsRequest) Reset()
func (*GetContractStorageFieldsRequest) String ¶
func (m *GetContractStorageFieldsRequest) String() string
func (*GetContractStorageFieldsRequest) XXX_DiscardUnknown ¶
func (m *GetContractStorageFieldsRequest) XXX_DiscardUnknown()
func (*GetContractStorageFieldsRequest) XXX_Marshal ¶
func (m *GetContractStorageFieldsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetContractStorageFieldsRequest) XXX_Merge ¶
func (m *GetContractStorageFieldsRequest) XXX_Merge(src proto.Message)
func (*GetContractStorageFieldsRequest) XXX_Size ¶
func (m *GetContractStorageFieldsRequest) XXX_Size() int
func (*GetContractStorageFieldsRequest) XXX_Unmarshal ¶
func (m *GetContractStorageFieldsRequest) XXX_Unmarshal(b []byte) error
type GetContractStorageFieldsResponse ¶
type GetContractStorageFieldsResponse struct { // the json string data Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines get contract storage response.
func (*GetContractStorageFieldsResponse) Descriptor ¶
func (*GetContractStorageFieldsResponse) Descriptor() ([]byte, []int)
func (*GetContractStorageFieldsResponse) GetData ¶
func (m *GetContractStorageFieldsResponse) GetData() string
func (*GetContractStorageFieldsResponse) ProtoMessage ¶
func (*GetContractStorageFieldsResponse) ProtoMessage()
func (*GetContractStorageFieldsResponse) Reset ¶
func (m *GetContractStorageFieldsResponse) Reset()
func (*GetContractStorageFieldsResponse) String ¶
func (m *GetContractStorageFieldsResponse) String() string
func (*GetContractStorageFieldsResponse) XXX_DiscardUnknown ¶
func (m *GetContractStorageFieldsResponse) XXX_DiscardUnknown()
func (*GetContractStorageFieldsResponse) XXX_Marshal ¶
func (m *GetContractStorageFieldsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetContractStorageFieldsResponse) XXX_Merge ¶
func (m *GetContractStorageFieldsResponse) XXX_Merge(src proto.Message)
func (*GetContractStorageFieldsResponse) XXX_Size ¶
func (m *GetContractStorageFieldsResponse) XXX_Size() int
func (*GetContractStorageFieldsResponse) XXX_Unmarshal ¶
func (m *GetContractStorageFieldsResponse) XXX_Unmarshal(b []byte) error
type GetContractStorageRequest ¶
type GetContractStorageRequest struct { // contract id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // the key in the StateDB Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // get the value from StateDB, field is needed if StateDB[key] is a map.(we get StateDB[key][field] in this case) Field string `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"` // get data by longest chain's head block or last irreversible block ByLongestChain bool `protobuf:"varint,4,opt,name=by_longest_chain,json=byLongestChain,proto3" json:"by_longest_chain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines get contract storage request.
func (*GetContractStorageRequest) Descriptor ¶
func (*GetContractStorageRequest) Descriptor() ([]byte, []int)
func (*GetContractStorageRequest) GetByLongestChain ¶
func (m *GetContractStorageRequest) GetByLongestChain() bool
func (*GetContractStorageRequest) GetField ¶
func (m *GetContractStorageRequest) GetField() string
func (*GetContractStorageRequest) GetId ¶
func (m *GetContractStorageRequest) GetId() string
func (*GetContractStorageRequest) GetKey ¶
func (m *GetContractStorageRequest) GetKey() string
func (*GetContractStorageRequest) ProtoMessage ¶
func (*GetContractStorageRequest) ProtoMessage()
func (*GetContractStorageRequest) Reset ¶
func (m *GetContractStorageRequest) Reset()
func (*GetContractStorageRequest) String ¶
func (m *GetContractStorageRequest) String() string
func (*GetContractStorageRequest) XXX_DiscardUnknown ¶
func (m *GetContractStorageRequest) XXX_DiscardUnknown()
func (*GetContractStorageRequest) XXX_Marshal ¶
func (m *GetContractStorageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetContractStorageRequest) XXX_Merge ¶
func (m *GetContractStorageRequest) XXX_Merge(src proto.Message)
func (*GetContractStorageRequest) XXX_Size ¶
func (m *GetContractStorageRequest) XXX_Size() int
func (*GetContractStorageRequest) XXX_Unmarshal ¶
func (m *GetContractStorageRequest) XXX_Unmarshal(b []byte) error
type GetContractStorageResponse ¶
type GetContractStorageResponse struct { // the json string data Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines get contract storage response.
func (*GetContractStorageResponse) Descriptor ¶
func (*GetContractStorageResponse) Descriptor() ([]byte, []int)
func (*GetContractStorageResponse) GetData ¶
func (m *GetContractStorageResponse) GetData() string
func (*GetContractStorageResponse) ProtoMessage ¶
func (*GetContractStorageResponse) ProtoMessage()
func (*GetContractStorageResponse) Reset ¶
func (m *GetContractStorageResponse) Reset()
func (*GetContractStorageResponse) String ¶
func (m *GetContractStorageResponse) String() string
func (*GetContractStorageResponse) XXX_DiscardUnknown ¶
func (m *GetContractStorageResponse) XXX_DiscardUnknown()
func (*GetContractStorageResponse) XXX_Marshal ¶
func (m *GetContractStorageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetContractStorageResponse) XXX_Merge ¶
func (m *GetContractStorageResponse) XXX_Merge(src proto.Message)
func (*GetContractStorageResponse) XXX_Size ¶
func (m *GetContractStorageResponse) XXX_Size() int
func (*GetContractStorageResponse) XXX_Unmarshal ¶
func (m *GetContractStorageResponse) XXX_Unmarshal(b []byte) error
type GetToken721BalanceResponse ¶
type GetToken721BalanceResponse struct { // token balance Balance int64 `protobuf:"varint,1,opt,name=balance,proto3" json:"balance,omitempty"` // balance information TokenIDs []string `protobuf:"bytes,2,rep,name=tokenIDs,proto3" json:"tokenIDs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines get token721 balance response.
func (*GetToken721BalanceResponse) Descriptor ¶
func (*GetToken721BalanceResponse) Descriptor() ([]byte, []int)
func (*GetToken721BalanceResponse) GetBalance ¶
func (m *GetToken721BalanceResponse) GetBalance() int64
func (*GetToken721BalanceResponse) GetTokenIDs ¶
func (m *GetToken721BalanceResponse) GetTokenIDs() []string
func (*GetToken721BalanceResponse) ProtoMessage ¶
func (*GetToken721BalanceResponse) ProtoMessage()
func (*GetToken721BalanceResponse) Reset ¶
func (m *GetToken721BalanceResponse) Reset()
func (*GetToken721BalanceResponse) String ¶
func (m *GetToken721BalanceResponse) String() string
func (*GetToken721BalanceResponse) XXX_DiscardUnknown ¶
func (m *GetToken721BalanceResponse) XXX_DiscardUnknown()
func (*GetToken721BalanceResponse) XXX_Marshal ¶
func (m *GetToken721BalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetToken721BalanceResponse) XXX_Merge ¶
func (m *GetToken721BalanceResponse) XXX_Merge(src proto.Message)
func (*GetToken721BalanceResponse) XXX_Size ¶
func (m *GetToken721BalanceResponse) XXX_Size() int
func (*GetToken721BalanceResponse) XXX_Unmarshal ¶
func (m *GetToken721BalanceResponse) XXX_Unmarshal(b []byte) error
type GetToken721InfoRequest ¶
type GetToken721InfoRequest struct { // the token name Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // token id TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` // get data by longest chain's head block or last irreversible block ByLongestChain bool `protobuf:"varint,3,opt,name=by_longest_chain,json=byLongestChain,proto3" json:"by_longest_chain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines get token721 info request.
func (*GetToken721InfoRequest) Descriptor ¶
func (*GetToken721InfoRequest) Descriptor() ([]byte, []int)
func (*GetToken721InfoRequest) GetByLongestChain ¶
func (m *GetToken721InfoRequest) GetByLongestChain() bool
func (*GetToken721InfoRequest) GetToken ¶
func (m *GetToken721InfoRequest) GetToken() string
func (*GetToken721InfoRequest) GetTokenId ¶
func (m *GetToken721InfoRequest) GetTokenId() string
func (*GetToken721InfoRequest) ProtoMessage ¶
func (*GetToken721InfoRequest) ProtoMessage()
func (*GetToken721InfoRequest) Reset ¶
func (m *GetToken721InfoRequest) Reset()
func (*GetToken721InfoRequest) String ¶
func (m *GetToken721InfoRequest) String() string
func (*GetToken721InfoRequest) XXX_DiscardUnknown ¶
func (m *GetToken721InfoRequest) XXX_DiscardUnknown()
func (*GetToken721InfoRequest) XXX_Marshal ¶
func (m *GetToken721InfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetToken721InfoRequest) XXX_Merge ¶
func (m *GetToken721InfoRequest) XXX_Merge(src proto.Message)
func (*GetToken721InfoRequest) XXX_Size ¶
func (m *GetToken721InfoRequest) XXX_Size() int
func (*GetToken721InfoRequest) XXX_Unmarshal ¶
func (m *GetToken721InfoRequest) XXX_Unmarshal(b []byte) error
type GetToken721MetadataResponse ¶
type GetToken721MetadataResponse struct { // token metadata Metadata string `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines get token721 metadata response.
func (*GetToken721MetadataResponse) Descriptor ¶
func (*GetToken721MetadataResponse) Descriptor() ([]byte, []int)
func (*GetToken721MetadataResponse) GetMetadata ¶
func (m *GetToken721MetadataResponse) GetMetadata() string
func (*GetToken721MetadataResponse) ProtoMessage ¶
func (*GetToken721MetadataResponse) ProtoMessage()
func (*GetToken721MetadataResponse) Reset ¶
func (m *GetToken721MetadataResponse) Reset()
func (*GetToken721MetadataResponse) String ¶
func (m *GetToken721MetadataResponse) String() string
func (*GetToken721MetadataResponse) XXX_DiscardUnknown ¶
func (m *GetToken721MetadataResponse) XXX_DiscardUnknown()
func (*GetToken721MetadataResponse) XXX_Marshal ¶
func (m *GetToken721MetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetToken721MetadataResponse) XXX_Merge ¶
func (m *GetToken721MetadataResponse) XXX_Merge(src proto.Message)
func (*GetToken721MetadataResponse) XXX_Size ¶
func (m *GetToken721MetadataResponse) XXX_Size() int
func (*GetToken721MetadataResponse) XXX_Unmarshal ¶
func (m *GetToken721MetadataResponse) XXX_Unmarshal(b []byte) error
type GetToken721OwnerResponse ¶
type GetToken721OwnerResponse struct { // token owner Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines get token721 owner response.
func (*GetToken721OwnerResponse) Descriptor ¶
func (*GetToken721OwnerResponse) Descriptor() ([]byte, []int)
func (*GetToken721OwnerResponse) GetOwner ¶
func (m *GetToken721OwnerResponse) GetOwner() string
func (*GetToken721OwnerResponse) ProtoMessage ¶
func (*GetToken721OwnerResponse) ProtoMessage()
func (*GetToken721OwnerResponse) Reset ¶
func (m *GetToken721OwnerResponse) Reset()
func (*GetToken721OwnerResponse) String ¶
func (m *GetToken721OwnerResponse) String() string
func (*GetToken721OwnerResponse) XXX_DiscardUnknown ¶
func (m *GetToken721OwnerResponse) XXX_DiscardUnknown()
func (*GetToken721OwnerResponse) XXX_Marshal ¶
func (m *GetToken721OwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetToken721OwnerResponse) XXX_Merge ¶
func (m *GetToken721OwnerResponse) XXX_Merge(src proto.Message)
func (*GetToken721OwnerResponse) XXX_Size ¶
func (m *GetToken721OwnerResponse) XXX_Size() int
func (*GetToken721OwnerResponse) XXX_Unmarshal ¶
func (m *GetToken721OwnerResponse) XXX_Unmarshal(b []byte) error
type GetTokenBalanceRequest ¶
type GetTokenBalanceRequest struct { // account name Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // the token name Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // get data by longest chain's head block or last irreversible block ByLongestChain bool `protobuf:"varint,3,opt,name=by_longest_chain,json=byLongestChain,proto3" json:"by_longest_chain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines get token balance request.
func (*GetTokenBalanceRequest) Descriptor ¶
func (*GetTokenBalanceRequest) Descriptor() ([]byte, []int)
func (*GetTokenBalanceRequest) GetAccount ¶
func (m *GetTokenBalanceRequest) GetAccount() string
func (*GetTokenBalanceRequest) GetByLongestChain ¶
func (m *GetTokenBalanceRequest) GetByLongestChain() bool
func (*GetTokenBalanceRequest) GetToken ¶
func (m *GetTokenBalanceRequest) GetToken() string
func (*GetTokenBalanceRequest) ProtoMessage ¶
func (*GetTokenBalanceRequest) ProtoMessage()
func (*GetTokenBalanceRequest) Reset ¶
func (m *GetTokenBalanceRequest) Reset()
func (*GetTokenBalanceRequest) String ¶
func (m *GetTokenBalanceRequest) String() string
func (*GetTokenBalanceRequest) XXX_DiscardUnknown ¶
func (m *GetTokenBalanceRequest) XXX_DiscardUnknown()
func (*GetTokenBalanceRequest) XXX_Marshal ¶
func (m *GetTokenBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTokenBalanceRequest) XXX_Merge ¶
func (m *GetTokenBalanceRequest) XXX_Merge(src proto.Message)
func (*GetTokenBalanceRequest) XXX_Size ¶
func (m *GetTokenBalanceRequest) XXX_Size() int
func (*GetTokenBalanceRequest) XXX_Unmarshal ¶
func (m *GetTokenBalanceRequest) XXX_Unmarshal(b []byte) error
type GetTokenBalanceResponse ¶
type GetTokenBalanceResponse struct { // token balance Balance float64 `protobuf:"fixed64,1,opt,name=balance,proto3" json:"balance,omitempty"` // frozen balance information FrozenBalances []*FrozenBalance `protobuf:"bytes,2,rep,name=frozen_balances,json=frozenBalances,proto3" json:"frozen_balances,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines get token balance response.
func (*GetTokenBalanceResponse) Descriptor ¶
func (*GetTokenBalanceResponse) Descriptor() ([]byte, []int)
func (*GetTokenBalanceResponse) GetBalance ¶
func (m *GetTokenBalanceResponse) GetBalance() float64
func (*GetTokenBalanceResponse) GetFrozenBalances ¶
func (m *GetTokenBalanceResponse) GetFrozenBalances() []*FrozenBalance
func (*GetTokenBalanceResponse) ProtoMessage ¶
func (*GetTokenBalanceResponse) ProtoMessage()
func (*GetTokenBalanceResponse) Reset ¶
func (m *GetTokenBalanceResponse) Reset()
func (*GetTokenBalanceResponse) String ¶
func (m *GetTokenBalanceResponse) String() string
func (*GetTokenBalanceResponse) XXX_DiscardUnknown ¶
func (m *GetTokenBalanceResponse) XXX_DiscardUnknown()
func (*GetTokenBalanceResponse) XXX_Marshal ¶
func (m *GetTokenBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTokenBalanceResponse) XXX_Merge ¶
func (m *GetTokenBalanceResponse) XXX_Merge(src proto.Message)
func (*GetTokenBalanceResponse) XXX_Size ¶
func (m *GetTokenBalanceResponse) XXX_Size() int
func (*GetTokenBalanceResponse) XXX_Unmarshal ¶
func (m *GetTokenBalanceResponse) XXX_Unmarshal(b []byte) error
type NetworkInfo ¶
type NetworkInfo struct { // local network ID Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // peer connection count PeerCount int32 `protobuf:"varint,2,opt,name=peer_count,json=peerCount,proto3" json:"peer_count,omitempty"` // peers' information PeerInfo []*PeerInfo `protobuf:"bytes,3,rep,name=peer_info,json=peerInfo,proto3" json:"peer_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines network connection information.
func (*NetworkInfo) Descriptor ¶
func (*NetworkInfo) Descriptor() ([]byte, []int)
func (*NetworkInfo) GetId ¶
func (m *NetworkInfo) GetId() string
func (*NetworkInfo) GetPeerCount ¶
func (m *NetworkInfo) GetPeerCount() int32
func (*NetworkInfo) GetPeerInfo ¶
func (m *NetworkInfo) GetPeerInfo() []*PeerInfo
func (*NetworkInfo) ProtoMessage ¶
func (*NetworkInfo) ProtoMessage()
func (*NetworkInfo) Reset ¶
func (m *NetworkInfo) Reset()
func (*NetworkInfo) String ¶
func (m *NetworkInfo) String() string
func (*NetworkInfo) XXX_DiscardUnknown ¶
func (m *NetworkInfo) XXX_DiscardUnknown()
func (*NetworkInfo) XXX_Marshal ¶
func (m *NetworkInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkInfo) XXX_Merge ¶
func (m *NetworkInfo) XXX_Merge(src proto.Message)
func (*NetworkInfo) XXX_Size ¶
func (m *NetworkInfo) XXX_Size() int
func (*NetworkInfo) XXX_Unmarshal ¶
func (m *NetworkInfo) XXX_Unmarshal(b []byte) error
type NodeInfoResponse ¶
type NodeInfoResponse struct { // build time BuildTime string `protobuf:"bytes,1,opt,name=build_time,json=buildTime,proto3" json:"build_time,omitempty"` // git hash GitHash string `protobuf:"bytes,2,opt,name=git_hash,json=gitHash,proto3" json:"git_hash,omitempty"` // node mode Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"` // network connection information Network *NetworkInfo `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message containing the node's information.
func (*NodeInfoResponse) Descriptor ¶
func (*NodeInfoResponse) Descriptor() ([]byte, []int)
func (*NodeInfoResponse) GetBuildTime ¶
func (m *NodeInfoResponse) GetBuildTime() string
func (*NodeInfoResponse) GetGitHash ¶
func (m *NodeInfoResponse) GetGitHash() string
func (*NodeInfoResponse) GetMode ¶
func (m *NodeInfoResponse) GetMode() string
func (*NodeInfoResponse) GetNetwork ¶
func (m *NodeInfoResponse) GetNetwork() *NetworkInfo
func (*NodeInfoResponse) ProtoMessage ¶
func (*NodeInfoResponse) ProtoMessage()
func (*NodeInfoResponse) Reset ¶
func (m *NodeInfoResponse) Reset()
func (*NodeInfoResponse) String ¶
func (m *NodeInfoResponse) String() string
func (*NodeInfoResponse) XXX_DiscardUnknown ¶
func (m *NodeInfoResponse) XXX_DiscardUnknown()
func (*NodeInfoResponse) XXX_Marshal ¶
func (m *NodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NodeInfoResponse) XXX_Merge ¶
func (m *NodeInfoResponse) XXX_Merge(src proto.Message)
func (*NodeInfoResponse) XXX_Size ¶
func (m *NodeInfoResponse) XXX_Size() int
func (*NodeInfoResponse) XXX_Unmarshal ¶
func (m *NodeInfoResponse) XXX_Unmarshal(b []byte) error
type PeerInfo ¶
type PeerInfo struct { // peer ID Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // peer addr Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines peer information.
func (*PeerInfo) Descriptor ¶
func (*PeerInfo) ProtoMessage ¶
func (*PeerInfo) ProtoMessage()
func (*PeerInfo) XXX_DiscardUnknown ¶
func (m *PeerInfo) XXX_DiscardUnknown()
func (*PeerInfo) XXX_Marshal ¶
func (*PeerInfo) XXX_Unmarshal ¶
type RAMInfoResponse ¶
type RAMInfoResponse struct { // how many bytes have been used UsedRam int64 `protobuf:"varint,1,opt,name=used_ram,json=usedRam,proto3" json:"used_ram,omitempty"` // how many bytes have not been used AvailableRam int64 `protobuf:"varint,2,opt,name=available_ram,json=availableRam,proto3" json:"available_ram,omitempty"` // total ram byte TotalRam int64 `protobuf:"varint,3,opt,name=total_ram,json=totalRam,proto3" json:"total_ram,omitempty"` // User can sell NUM bytes RAM to system to get `NUM * sell_price` IOSTs SellPrice float64 `protobuf:"fixed64,4,opt,name=sell_price,json=sellPrice,proto3" json:"sell_price,omitempty"` // User can spend approximate `NUM * buy_price` IOSTs for NUM bytes RAM BuyPrice float64 `protobuf:"fixed64,5,opt,name=buy_price,json=buyPrice,proto3" json:"buy_price,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message containing blockchain's ram information.
func (*RAMInfoResponse) Descriptor ¶
func (*RAMInfoResponse) Descriptor() ([]byte, []int)
func (*RAMInfoResponse) GetAvailableRam ¶
func (m *RAMInfoResponse) GetAvailableRam() int64
func (*RAMInfoResponse) GetBuyPrice ¶
func (m *RAMInfoResponse) GetBuyPrice() float64
func (*RAMInfoResponse) GetSellPrice ¶
func (m *RAMInfoResponse) GetSellPrice() float64
func (*RAMInfoResponse) GetTotalRam ¶
func (m *RAMInfoResponse) GetTotalRam() int64
func (*RAMInfoResponse) GetUsedRam ¶
func (m *RAMInfoResponse) GetUsedRam() int64
func (*RAMInfoResponse) ProtoMessage ¶
func (*RAMInfoResponse) ProtoMessage()
func (*RAMInfoResponse) Reset ¶
func (m *RAMInfoResponse) Reset()
func (*RAMInfoResponse) String ¶
func (m *RAMInfoResponse) String() string
func (*RAMInfoResponse) XXX_DiscardUnknown ¶
func (m *RAMInfoResponse) XXX_DiscardUnknown()
func (*RAMInfoResponse) XXX_Marshal ¶
func (m *RAMInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RAMInfoResponse) XXX_Merge ¶
func (m *RAMInfoResponse) XXX_Merge(src proto.Message)
func (*RAMInfoResponse) XXX_Size ¶
func (m *RAMInfoResponse) XXX_Size() int
func (*RAMInfoResponse) XXX_Unmarshal ¶
func (m *RAMInfoResponse) XXX_Unmarshal(b []byte) error
type SendTransactionResponse ¶
type SendTransactionResponse struct { // the final transaction hash Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines send transaction response.
func (*SendTransactionResponse) Descriptor ¶
func (*SendTransactionResponse) Descriptor() ([]byte, []int)
func (*SendTransactionResponse) GetHash ¶
func (m *SendTransactionResponse) GetHash() string
func (*SendTransactionResponse) ProtoMessage ¶
func (*SendTransactionResponse) ProtoMessage()
func (*SendTransactionResponse) Reset ¶
func (m *SendTransactionResponse) Reset()
func (*SendTransactionResponse) String ¶
func (m *SendTransactionResponse) String() string
func (*SendTransactionResponse) XXX_DiscardUnknown ¶
func (m *SendTransactionResponse) XXX_DiscardUnknown()
func (*SendTransactionResponse) XXX_Marshal ¶
func (m *SendTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendTransactionResponse) XXX_Merge ¶
func (m *SendTransactionResponse) XXX_Merge(src proto.Message)
func (*SendTransactionResponse) XXX_Size ¶
func (m *SendTransactionResponse) XXX_Size() int
func (*SendTransactionResponse) XXX_Unmarshal ¶
func (m *SendTransactionResponse) XXX_Unmarshal(b []byte) error
type Signature ¶
type Signature struct { // signature algorithm Algorithm Signature_Algorithm `protobuf:"varint,1,opt,name=algorithm,proto3,enum=rpcpb.Signature_Algorithm" json:"algorithm,omitempty"` // signature bytes Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // public key PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines signature struct.
func (*Signature) Descriptor ¶
func (*Signature) GetAlgorithm ¶
func (m *Signature) GetAlgorithm() Signature_Algorithm
func (*Signature) GetPublicKey ¶
func (*Signature) GetSignature ¶
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) XXX_DiscardUnknown ¶
func (m *Signature) XXX_DiscardUnknown()
func (*Signature) XXX_Marshal ¶
func (*Signature) XXX_Unmarshal ¶
type Signature_Algorithm ¶
type Signature_Algorithm int32
The enumeration defines the signature algorithm.
const ( // unknown Signature_UNKNOWN Signature_Algorithm = 0 // secp256k1 Signature_SECP256K1 Signature_Algorithm = 1 // ed25519 Signature_ED25519 Signature_Algorithm = 2 )
func (Signature_Algorithm) EnumDescriptor ¶
func (Signature_Algorithm) EnumDescriptor() ([]byte, []int)
func (Signature_Algorithm) String ¶
func (x Signature_Algorithm) String() string
type SubscribeRequest ¶
type SubscribeRequest struct { Topics []Event_Topic `protobuf:"varint,1,rep,packed,name=topics,proto3,enum=rpcpb.Event_Topic" json:"topics,omitempty"` Filter *SubscribeRequest_Filter `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines subscribe request.
func (*SubscribeRequest) Descriptor ¶
func (*SubscribeRequest) Descriptor() ([]byte, []int)
func (*SubscribeRequest) GetFilter ¶
func (m *SubscribeRequest) GetFilter() *SubscribeRequest_Filter
func (*SubscribeRequest) GetTopics ¶
func (m *SubscribeRequest) GetTopics() []Event_Topic
func (*SubscribeRequest) ProtoMessage ¶
func (*SubscribeRequest) ProtoMessage()
func (*SubscribeRequest) Reset ¶
func (m *SubscribeRequest) Reset()
func (*SubscribeRequest) String ¶
func (m *SubscribeRequest) String() string
func (*SubscribeRequest) XXX_DiscardUnknown ¶
func (m *SubscribeRequest) XXX_DiscardUnknown()
func (*SubscribeRequest) XXX_Marshal ¶
func (m *SubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubscribeRequest) XXX_Merge ¶
func (m *SubscribeRequest) XXX_Merge(src proto.Message)
func (*SubscribeRequest) XXX_Size ¶
func (m *SubscribeRequest) XXX_Size() int
func (*SubscribeRequest) XXX_Unmarshal ¶
func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error
type SubscribeRequest_Filter ¶
type SubscribeRequest_Filter struct { // contract id ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SubscribeRequest_Filter) Descriptor ¶
func (*SubscribeRequest_Filter) Descriptor() ([]byte, []int)
func (*SubscribeRequest_Filter) GetContractId ¶
func (m *SubscribeRequest_Filter) GetContractId() string
func (*SubscribeRequest_Filter) ProtoMessage ¶
func (*SubscribeRequest_Filter) ProtoMessage()
func (*SubscribeRequest_Filter) Reset ¶
func (m *SubscribeRequest_Filter) Reset()
func (*SubscribeRequest_Filter) String ¶
func (m *SubscribeRequest_Filter) String() string
func (*SubscribeRequest_Filter) XXX_DiscardUnknown ¶
func (m *SubscribeRequest_Filter) XXX_DiscardUnknown()
func (*SubscribeRequest_Filter) XXX_Marshal ¶
func (m *SubscribeRequest_Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubscribeRequest_Filter) XXX_Merge ¶
func (m *SubscribeRequest_Filter) XXX_Merge(src proto.Message)
func (*SubscribeRequest_Filter) XXX_Size ¶
func (m *SubscribeRequest_Filter) XXX_Size() int
func (*SubscribeRequest_Filter) XXX_Unmarshal ¶
func (m *SubscribeRequest_Filter) XXX_Unmarshal(b []byte) error
type SubscribeResponse ¶
type SubscribeResponse struct { Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines subscribe response.
func (*SubscribeResponse) Descriptor ¶
func (*SubscribeResponse) Descriptor() ([]byte, []int)
func (*SubscribeResponse) GetEvent ¶
func (m *SubscribeResponse) GetEvent() *Event
func (*SubscribeResponse) ProtoMessage ¶
func (*SubscribeResponse) ProtoMessage()
func (*SubscribeResponse) Reset ¶
func (m *SubscribeResponse) Reset()
func (*SubscribeResponse) String ¶
func (m *SubscribeResponse) String() string
func (*SubscribeResponse) XXX_DiscardUnknown ¶
func (m *SubscribeResponse) XXX_DiscardUnknown()
func (*SubscribeResponse) XXX_Marshal ¶
func (m *SubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubscribeResponse) XXX_Merge ¶
func (m *SubscribeResponse) XXX_Merge(src proto.Message)
func (*SubscribeResponse) XXX_Size ¶
func (m *SubscribeResponse) XXX_Size() int
func (*SubscribeResponse) XXX_Unmarshal ¶
func (m *SubscribeResponse) XXX_Unmarshal(b []byte) error
type Transaction ¶
type Transaction struct { // transaction hash Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // transaction timestamp Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` // expiration timestamp Expiration int64 `protobuf:"varint,3,opt,name=expiration,proto3" json:"expiration,omitempty"` // gas gas_ratio GasRatio float64 `protobuf:"fixed64,4,opt,name=gas_ratio,json=gasRatio,proto3" json:"gas_ratio,omitempty"` // gas limit GasLimit float64 `protobuf:"fixed64,5,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` // delay nanoseconds Delay int64 `protobuf:"varint,6,opt,name=delay,proto3" json:"delay,omitempty"` // action list Actions []*Action `protobuf:"bytes,7,rep,name=actions,proto3" json:"actions,omitempty"` // signer list Signers []string `protobuf:"bytes,8,rep,name=signers,proto3" json:"signers,omitempty"` // publisher Publisher string `protobuf:"bytes,9,opt,name=publisher,proto3" json:"publisher,omitempty"` // referred transaction hash ReferredTx string `protobuf:"bytes,10,opt,name=referred_tx,json=referredTx,proto3" json:"referred_tx,omitempty"` // amount limit AmountLimit []*AmountLimit `protobuf:"bytes,11,rep,name=amount_limit,json=amountLimit,proto3" json:"amount_limit,omitempty"` // transaction receipt TxReceipt *TxReceipt `protobuf:"bytes,12,opt,name=tx_receipt,json=txReceipt,proto3" json:"tx_receipt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines transaction struct.
func (*Transaction) Descriptor ¶
func (*Transaction) Descriptor() ([]byte, []int)
func (*Transaction) GetActions ¶
func (m *Transaction) GetActions() []*Action
func (*Transaction) GetAmountLimit ¶
func (m *Transaction) GetAmountLimit() []*AmountLimit
func (*Transaction) GetDelay ¶
func (m *Transaction) GetDelay() int64
func (*Transaction) GetExpiration ¶
func (m *Transaction) GetExpiration() int64
func (*Transaction) GetGasLimit ¶
func (m *Transaction) GetGasLimit() float64
func (*Transaction) GetGasRatio ¶
func (m *Transaction) GetGasRatio() float64
func (*Transaction) GetHash ¶
func (m *Transaction) GetHash() string
func (*Transaction) GetPublisher ¶
func (m *Transaction) GetPublisher() string
func (*Transaction) GetReferredTx ¶
func (m *Transaction) GetReferredTx() string
func (*Transaction) GetSigners ¶
func (m *Transaction) GetSigners() []string
func (*Transaction) GetTime ¶
func (m *Transaction) GetTime() int64
func (*Transaction) GetTxReceipt ¶
func (m *Transaction) GetTxReceipt() *TxReceipt
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) Reset ¶
func (m *Transaction) Reset()
func (*Transaction) String ¶
func (m *Transaction) String() string
func (*Transaction) XXX_DiscardUnknown ¶
func (m *Transaction) XXX_DiscardUnknown()
func (*Transaction) XXX_Marshal ¶
func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Transaction) XXX_Merge ¶
func (m *Transaction) XXX_Merge(src proto.Message)
func (*Transaction) XXX_Size ¶
func (m *Transaction) XXX_Size() int
func (*Transaction) XXX_Unmarshal ¶
func (m *Transaction) XXX_Unmarshal(b []byte) error
type TransactionRequest ¶
type TransactionRequest struct { // transaction timestamp Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` // expiration timestamp Expiration int64 `protobuf:"varint,2,opt,name=expiration,proto3" json:"expiration,omitempty"` // gas price GasRatio float64 `protobuf:"fixed64,3,opt,name=gas_ratio,json=gasRatio,proto3" json:"gas_ratio,omitempty"` // gas limit GasLimit float64 `protobuf:"fixed64,4,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` // delay nanoseconds Delay int64 `protobuf:"varint,5,opt,name=delay,proto3" json:"delay,omitempty"` // action list Actions []*Action `protobuf:"bytes,6,rep,name=actions,proto3" json:"actions,omitempty"` // amount limit AmountLimit []*AmountLimit `protobuf:"bytes,7,rep,name=amount_limit,json=amountLimit,proto3" json:"amount_limit,omitempty"` // signer list Signers []string `protobuf:"bytes,8,rep,name=signers,proto3" json:"signers,omitempty"` // signatures of signers Signatures []*Signature `protobuf:"bytes,9,rep,name=signatures,proto3" json:"signatures,omitempty"` // publisher Publisher string `protobuf:"bytes,10,opt,name=publisher,proto3" json:"publisher,omitempty"` // signatures of publisher PublisherSigs []*Signature `protobuf:"bytes,11,rep,name=publisher_sigs,json=publisherSigs,proto3" json:"publisher_sigs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines the transaction request.
func (*TransactionRequest) Descriptor ¶
func (*TransactionRequest) Descriptor() ([]byte, []int)
func (*TransactionRequest) GetActions ¶
func (m *TransactionRequest) GetActions() []*Action
func (*TransactionRequest) GetAmountLimit ¶
func (m *TransactionRequest) GetAmountLimit() []*AmountLimit
func (*TransactionRequest) GetDelay ¶
func (m *TransactionRequest) GetDelay() int64
func (*TransactionRequest) GetExpiration ¶
func (m *TransactionRequest) GetExpiration() int64
func (*TransactionRequest) GetGasLimit ¶
func (m *TransactionRequest) GetGasLimit() float64
func (*TransactionRequest) GetGasRatio ¶
func (m *TransactionRequest) GetGasRatio() float64
func (*TransactionRequest) GetPublisher ¶
func (m *TransactionRequest) GetPublisher() string
func (*TransactionRequest) GetPublisherSigs ¶
func (m *TransactionRequest) GetPublisherSigs() []*Signature
func (*TransactionRequest) GetSignatures ¶
func (m *TransactionRequest) GetSignatures() []*Signature
func (*TransactionRequest) GetSigners ¶
func (m *TransactionRequest) GetSigners() []string
func (*TransactionRequest) GetTime ¶
func (m *TransactionRequest) GetTime() int64
func (*TransactionRequest) ProtoMessage ¶
func (*TransactionRequest) ProtoMessage()
func (*TransactionRequest) Reset ¶
func (m *TransactionRequest) Reset()
func (*TransactionRequest) String ¶
func (m *TransactionRequest) String() string
func (*TransactionRequest) XXX_DiscardUnknown ¶
func (m *TransactionRequest) XXX_DiscardUnknown()
func (*TransactionRequest) XXX_Marshal ¶
func (m *TransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionRequest) XXX_Merge ¶
func (m *TransactionRequest) XXX_Merge(src proto.Message)
func (*TransactionRequest) XXX_Size ¶
func (m *TransactionRequest) XXX_Size() int
func (*TransactionRequest) XXX_Unmarshal ¶
func (m *TransactionRequest) XXX_Unmarshal(b []byte) error
type TransactionResponse ¶
type TransactionResponse struct { // transaction status Status TransactionResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=rpcpb.TransactionResponse_Status" json:"status,omitempty"` // transaction Transaction *Transaction `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines transaction response.
func (*TransactionResponse) Descriptor ¶
func (*TransactionResponse) Descriptor() ([]byte, []int)
func (*TransactionResponse) GetStatus ¶
func (m *TransactionResponse) GetStatus() TransactionResponse_Status
func (*TransactionResponse) GetTransaction ¶
func (m *TransactionResponse) GetTransaction() *Transaction
func (*TransactionResponse) ProtoMessage ¶
func (*TransactionResponse) ProtoMessage()
func (*TransactionResponse) Reset ¶
func (m *TransactionResponse) Reset()
func (*TransactionResponse) String ¶
func (m *TransactionResponse) String() string
func (*TransactionResponse) XXX_DiscardUnknown ¶
func (m *TransactionResponse) XXX_DiscardUnknown()
func (*TransactionResponse) XXX_Marshal ¶
func (m *TransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionResponse) XXX_Merge ¶
func (m *TransactionResponse) XXX_Merge(src proto.Message)
func (*TransactionResponse) XXX_Size ¶
func (m *TransactionResponse) XXX_Size() int
func (*TransactionResponse) XXX_Unmarshal ¶
func (m *TransactionResponse) XXX_Unmarshal(b []byte) error
type TransactionResponse_Status ¶
type TransactionResponse_Status int32
The enumeration defines transaction status.
const ( // pending in transaction pool TransactionResponse_PENDING TransactionResponse_Status = 0 // packed in a block that has not been confirmed TransactionResponse_PACKED TransactionResponse_Status = 1 // packed in a block that is irreversible TransactionResponse_IRREVERSIBLE TransactionResponse_Status = 2 )
func (TransactionResponse_Status) EnumDescriptor ¶
func (TransactionResponse_Status) EnumDescriptor() ([]byte, []int)
func (TransactionResponse_Status) String ¶
func (x TransactionResponse_Status) String() string
type TxHashRequest ¶
type TxHashRequest struct { // tx hash Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The request message containing the tx's hash.
func (*TxHashRequest) Descriptor ¶
func (*TxHashRequest) Descriptor() ([]byte, []int)
func (*TxHashRequest) GetHash ¶
func (m *TxHashRequest) GetHash() string
func (*TxHashRequest) ProtoMessage ¶
func (*TxHashRequest) ProtoMessage()
func (*TxHashRequest) Reset ¶
func (m *TxHashRequest) Reset()
func (*TxHashRequest) String ¶
func (m *TxHashRequest) String() string
func (*TxHashRequest) XXX_DiscardUnknown ¶
func (m *TxHashRequest) XXX_DiscardUnknown()
func (*TxHashRequest) XXX_Marshal ¶
func (m *TxHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxHashRequest) XXX_Merge ¶
func (m *TxHashRequest) XXX_Merge(src proto.Message)
func (*TxHashRequest) XXX_Size ¶
func (m *TxHashRequest) XXX_Size() int
func (*TxHashRequest) XXX_Unmarshal ¶
func (m *TxHashRequest) XXX_Unmarshal(b []byte) error
type TxReceipt ¶
type TxReceipt struct { // transaction hash TxHash string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` // gas usage GasUsage float64 `protobuf:"fixed64,2,opt,name=gas_usage,json=gasUsage,proto3" json:"gas_usage,omitempty"` // ram usage RamUsage map[string]int64 `` /* 174-byte string literal not displayed */ // status code StatusCode TxReceipt_StatusCode `protobuf:"varint,4,opt,name=status_code,json=statusCode,proto3,enum=rpcpb.TxReceipt_StatusCode" json:"status_code,omitempty"` // message Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` // transaction returns Returns []string `protobuf:"bytes,6,rep,name=returns,proto3" json:"returns,omitempty"` // transaction receipts Receipts []*TxReceipt_Receipt `protobuf:"bytes,7,rep,name=receipts,proto3" json:"receipts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines the transaction receipt struct.
func (*TxReceipt) Descriptor ¶
func (*TxReceipt) GetGasUsage ¶
func (*TxReceipt) GetMessage ¶
func (*TxReceipt) GetRamUsage ¶
func (*TxReceipt) GetReceipts ¶
func (m *TxReceipt) GetReceipts() []*TxReceipt_Receipt
func (*TxReceipt) GetReturns ¶
func (*TxReceipt) GetStatusCode ¶
func (m *TxReceipt) GetStatusCode() TxReceipt_StatusCode
func (*TxReceipt) ProtoMessage ¶
func (*TxReceipt) ProtoMessage()
func (*TxReceipt) XXX_DiscardUnknown ¶
func (m *TxReceipt) XXX_DiscardUnknown()
func (*TxReceipt) XXX_Marshal ¶
func (*TxReceipt) XXX_Unmarshal ¶
type TxReceipt_Receipt ¶
type TxReceipt_Receipt struct { // function name FuncName string `protobuf:"bytes,1,opt,name=func_name,json=funcName,proto3" json:"func_name,omitempty"` // content Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message defines transaction execution receipt.
func (*TxReceipt_Receipt) Descriptor ¶
func (*TxReceipt_Receipt) Descriptor() ([]byte, []int)
func (*TxReceipt_Receipt) GetContent ¶
func (m *TxReceipt_Receipt) GetContent() string
func (*TxReceipt_Receipt) GetFuncName ¶
func (m *TxReceipt_Receipt) GetFuncName() string
func (*TxReceipt_Receipt) ProtoMessage ¶
func (*TxReceipt_Receipt) ProtoMessage()
func (*TxReceipt_Receipt) Reset ¶
func (m *TxReceipt_Receipt) Reset()
func (*TxReceipt_Receipt) String ¶
func (m *TxReceipt_Receipt) String() string
func (*TxReceipt_Receipt) XXX_DiscardUnknown ¶
func (m *TxReceipt_Receipt) XXX_DiscardUnknown()
func (*TxReceipt_Receipt) XXX_Marshal ¶
func (m *TxReceipt_Receipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxReceipt_Receipt) XXX_Merge ¶
func (m *TxReceipt_Receipt) XXX_Merge(src proto.Message)
func (*TxReceipt_Receipt) XXX_Size ¶
func (m *TxReceipt_Receipt) XXX_Size() int
func (*TxReceipt_Receipt) XXX_Unmarshal ¶
func (m *TxReceipt_Receipt) XXX_Unmarshal(b []byte) error
type TxReceipt_StatusCode ¶
type TxReceipt_StatusCode int32
The enumeration defines transaction receipt status code.
const ( // success TxReceipt_SUCCESS TxReceipt_StatusCode = 0 // run out of gas TxReceipt_GAS_RUN_OUT TxReceipt_StatusCode = 1 // balance not enough TxReceipt_BALANCE_NOT_ENOUGH TxReceipt_StatusCode = 2 // wrong parameter TxReceipt_WRONG_PARAMETER TxReceipt_StatusCode = 3 // runtime error TxReceipt_RUNTIME_ERROR TxReceipt_StatusCode = 4 // run out of time TxReceipt_TIMEOUT TxReceipt_StatusCode = 5 // wrong transaction format TxReceipt_WRONG_TX_FORMAT TxReceipt_StatusCode = 6 // more than one set code action in a transaction TxReceipt_DUPLICATE_SET_CODE TxReceipt_StatusCode = 7 // unknown error TxReceipt_UNKNOWN_ERROR TxReceipt_StatusCode = 8 )
func (TxReceipt_StatusCode) EnumDescriptor ¶
func (TxReceipt_StatusCode) EnumDescriptor() ([]byte, []int)
func (TxReceipt_StatusCode) String ¶
func (x TxReceipt_StatusCode) String() string