rpcpb

package
v3.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: LGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package rpcpb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
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",
	}
	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,
	}
)

Enum value maps for TxReceipt_StatusCode.

View Source
var (
	TransactionResponse_Status_name = map[int32]string{
		0: "PENDING",
		1: "PACKED",
		2: "IRREVERSIBLE",
	}
	TransactionResponse_Status_value = map[string]int32{
		"PENDING":      0,
		"PACKED":       1,
		"IRREVERSIBLE": 2,
	}
)

Enum value maps for TransactionResponse_Status.

View Source
var (
	Signature_Algorithm_name = map[int32]string{
		0: "UNKNOWN",
		1: "SECP256K1",
		2: "ED25519",
	}
	Signature_Algorithm_value = map[string]int32{
		"UNKNOWN":   0,
		"SECP256K1": 1,
		"ED25519":   2,
	}
)

Enum value maps for Signature_Algorithm.

View Source
var (
	BlockResponse_Status_name = map[int32]string{
		0: "PENDING",
		1: "IRREVERSIBLE",
	}
	BlockResponse_Status_value = map[string]int32{
		"PENDING":      0,
		"IRREVERSIBLE": 1,
	}
)

Enum value maps for BlockResponse_Status.

View Source
var (
	RawBlockResponse_Status_name = map[int32]string{
		0: "PENDING",
		1: "IRREVERSIBLE",
	}
	RawBlockResponse_Status_value = map[string]int32{
		"PENDING":      0,
		"IRREVERSIBLE": 1,
	}
)

Enum value maps for RawBlockResponse_Status.

View Source
var (
	ListContractStorageRequest_StorageType_name = map[int32]string{
		0: "KV",
		1: "MAP",
	}
	ListContractStorageRequest_StorageType_value = map[string]int32{
		"KV":  0,
		"MAP": 1,
	}
)

Enum value maps for ListContractStorageRequest_StorageType.

View Source
var (
	Event_Topic_name = map[int32]string{
		0: "CONTRACT_RECEIPT",
		1: "CONTRACT_EVENT",
	}
	Event_Topic_value = map[string]int32{
		"CONTRACT_RECEIPT": 0,
		"CONTRACT_EVENT":   1,
	}
)

Enum value maps for Event_Topic.

View Source
var ApiService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "rpcpb.ApiService",
	HandlerType: (*ApiServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetNodeInfo",
			Handler:    _ApiService_GetNodeInfo_Handler,
		},
		{
			MethodName: "GetChainInfo",
			Handler:    _ApiService_GetChainInfo_Handler,
		},
		{
			MethodName: "GetRAMInfo",
			Handler:    _ApiService_GetRAMInfo_Handler,
		},
		{
			MethodName: "GetTxByHash",
			Handler:    _ApiService_GetTxByHash_Handler,
		},
		{
			MethodName: "GetTxReceiptByTxHash",
			Handler:    _ApiService_GetTxReceiptByTxHash_Handler,
		},
		{
			MethodName: "GetBlockByHash",
			Handler:    _ApiService_GetBlockByHash_Handler,
		},
		{
			MethodName: "GetBlockByNumber",
			Handler:    _ApiService_GetBlockByNumber_Handler,
		},
		{
			MethodName: "GetRawBlockByNumber",
			Handler:    _ApiService_GetRawBlockByNumber_Handler,
		},
		{
			MethodName: "GetBlockHeaderByRange",
			Handler:    _ApiService_GetBlockHeaderByRange_Handler,
		},
		{
			MethodName: "GetAccount",
			Handler:    _ApiService_GetAccount_Handler,
		},
		{
			MethodName: "GetTokenBalance",
			Handler:    _ApiService_GetTokenBalance_Handler,
		},
		{
			MethodName: "GetToken721Balance",
			Handler:    _ApiService_GetToken721Balance_Handler,
		},
		{
			MethodName: "GetToken721Metadata",
			Handler:    _ApiService_GetToken721Metadata_Handler,
		},
		{
			MethodName: "GetToken721Owner",
			Handler:    _ApiService_GetToken721Owner_Handler,
		},
		{
			MethodName: "GetGasRatio",
			Handler:    _ApiService_GetGasRatio_Handler,
		},
		{
			MethodName: "GetProducerVoteInfo",
			Handler:    _ApiService_GetProducerVoteInfo_Handler,
		},
		{
			MethodName: "GetContract",
			Handler:    _ApiService_GetContract_Handler,
		},
		{
			MethodName: "GetContractVote",
			Handler:    _ApiService_GetContractVote_Handler,
		},
		{
			MethodName: "GetContractStorage",
			Handler:    _ApiService_GetContractStorage_Handler,
		},
		{
			MethodName: "GetBatchContractStorage",
			Handler:    _ApiService_GetBatchContractStorage_Handler,
		},
		{
			MethodName: "ListContractStorage",
			Handler:    _ApiService_ListContractStorage_Handler,
		},
		{
			MethodName: "GetContractStorageFields",
			Handler:    _ApiService_GetContractStorageFields_Handler,
		},
		{
			MethodName: "SendTransaction",
			Handler:    _ApiService_SendTransaction_Handler,
		},
		{
			MethodName: "ExecTransaction",
			Handler:    _ApiService_ExecTransaction_Handler,
		},
		{
			MethodName: "GetVoterBonus",
			Handler:    _ApiService_GetVoterBonus_Handler,
		},
		{
			MethodName: "GetCandidateBonus",
			Handler:    _ApiService_GetCandidateBonus_Handler,
		},
		{
			MethodName: "GetTokenInfo",
			Handler:    _ApiService_GetTokenInfo_Handler,
		},
		{
			MethodName: "GetBlockTxsByContract",
			Handler:    _ApiService_GetBlockTxsByContract_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Subscribe",
			Handler:       _ApiService_Subscribe_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "rpc/pb/rpc.proto",
}

ApiService_ServiceDesc is the grpc.ServiceDesc for ApiService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_rpc_pb_rpc_proto protoreflect.FileDescriptor

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 RegisterApiServiceHandlerServer

func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ApiServiceServer) error

RegisterApiServiceHandlerServer registers the http handlers for service ApiService to "mux". UnaryRPC :call ApiServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterApiServiceHandlerFromEndpoint instead.

func RegisterApiServiceServer

func RegisterApiServiceServer(s grpc.ServiceRegistrar, 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"`
	// vote information
	VoteInfos []*VoteInfo `protobuf:"bytes,8,rep,name=vote_infos,json=voteInfos,proto3" json:"vote_infos,omitempty"`
	// contains filtered or unexported fields
}

The message defines account struct.

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetBalance

func (x *Account) GetBalance() float64

func (*Account) GetFrozenBalances

func (x *Account) GetFrozenBalances() []*FrozenBalance

func (*Account) GetGasInfo

func (x *Account) GetGasInfo() *Account_GasInfo

func (*Account) GetGroups

func (x *Account) GetGroups() map[string]*Account_Group

func (*Account) GetName

func (x *Account) GetName() string

func (*Account) GetPermissions

func (x *Account) GetPermissions() map[string]*Account_Permission

func (*Account) GetRamInfo

func (x *Account) GetRamInfo() *Account_RAMInfo

func (*Account) GetVoteInfos

func (x *Account) GetVoteInfos() []*VoteInfo

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

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"`
	// contains filtered or unexported fields
}

The message defines account gas information.

func (*Account_GasInfo) Descriptor deprecated

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

Deprecated: Use Account_GasInfo.ProtoReflect.Descriptor instead.

func (*Account_GasInfo) GetCurrentTotal

func (x *Account_GasInfo) GetCurrentTotal() float64

func (*Account_GasInfo) GetIncreaseSpeed

func (x *Account_GasInfo) GetIncreaseSpeed() float64

func (*Account_GasInfo) GetLimit

func (x *Account_GasInfo) GetLimit() float64

func (*Account_GasInfo) GetPledgeGas

func (x *Account_GasInfo) GetPledgeGas() float64

func (*Account_GasInfo) GetPledgedInfo

func (x *Account_GasInfo) GetPledgedInfo() []*Account_PledgeInfo

func (*Account_GasInfo) GetTransferableGas

func (x *Account_GasInfo) GetTransferableGas() float64

func (*Account_GasInfo) ProtoMessage

func (*Account_GasInfo) ProtoMessage()

func (*Account_GasInfo) ProtoReflect

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

func (*Account_GasInfo) Reset

func (x *Account_GasInfo) Reset()

func (*Account_GasInfo) String

func (x *Account_GasInfo) String() string

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"`
	// contains filtered or unexported fields
}

The message defines a permission group.

func (*Account_Group) Descriptor deprecated

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

Deprecated: Use Account_Group.ProtoReflect.Descriptor instead.

func (*Account_Group) GetItems

func (x *Account_Group) GetItems() []*Account_Item

func (*Account_Group) GetName

func (x *Account_Group) GetName() string

func (*Account_Group) ProtoMessage

func (*Account_Group) ProtoMessage()

func (*Account_Group) ProtoReflect

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

func (*Account_Group) Reset

func (x *Account_Group) Reset()

func (*Account_Group) String

func (x *Account_Group) String() string

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"`
	// contains filtered or unexported fields
}

The message defines permission item.

func (*Account_Item) Descriptor deprecated

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

Deprecated: Use Account_Item.ProtoReflect.Descriptor instead.

func (*Account_Item) GetId

func (x *Account_Item) GetId() string

func (*Account_Item) GetIsKeyPair

func (x *Account_Item) GetIsKeyPair() bool

func (*Account_Item) GetPermission

func (x *Account_Item) GetPermission() string

func (*Account_Item) GetWeight

func (x *Account_Item) GetWeight() int64

func (*Account_Item) ProtoMessage

func (*Account_Item) ProtoMessage()

func (*Account_Item) ProtoReflect

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

func (*Account_Item) Reset

func (x *Account_Item) Reset()

func (*Account_Item) String

func (x *Account_Item) String() string

type Account_Permission

type Account_Permission struct {

	// permission name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// permission groups
	GroupNames []string `protobuf:"bytes,2,rep,name=group_names,json=groupNames,proto3" json:"group_names,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"`
	// contains filtered or unexported fields
}

The message defines the permission struct.

func (*Account_Permission) Descriptor deprecated

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

Deprecated: Use Account_Permission.ProtoReflect.Descriptor instead.

func (*Account_Permission) GetGroupNames

func (x *Account_Permission) GetGroupNames() []string

func (*Account_Permission) GetItems

func (x *Account_Permission) GetItems() []*Account_Item

func (*Account_Permission) GetName

func (x *Account_Permission) GetName() string

func (*Account_Permission) GetThreshold

func (x *Account_Permission) GetThreshold() int64

func (*Account_Permission) ProtoMessage

func (*Account_Permission) ProtoMessage()

func (*Account_Permission) ProtoReflect

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

func (*Account_Permission) Reset

func (x *Account_Permission) Reset()

func (*Account_Permission) String

func (x *Account_Permission) String() string

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"`
	// contains filtered or unexported fields
}

The message defines account pledged coin information.

func (*Account_PledgeInfo) Descriptor deprecated

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

Deprecated: Use Account_PledgeInfo.ProtoReflect.Descriptor instead.

func (*Account_PledgeInfo) GetAmount

func (x *Account_PledgeInfo) GetAmount() float64

func (*Account_PledgeInfo) GetPledger

func (x *Account_PledgeInfo) GetPledger() string

func (*Account_PledgeInfo) ProtoMessage

func (*Account_PledgeInfo) ProtoMessage()

func (*Account_PledgeInfo) ProtoReflect

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

func (*Account_PledgeInfo) Reset

func (x *Account_PledgeInfo) Reset()

func (*Account_PledgeInfo) String

func (x *Account_PledgeInfo) String() string

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"`
	// contains filtered or unexported fields
}

The message defines account ram information.

func (*Account_RAMInfo) Descriptor deprecated

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

Deprecated: Use Account_RAMInfo.ProtoReflect.Descriptor instead.

func (*Account_RAMInfo) GetAvailable

func (x *Account_RAMInfo) GetAvailable() int64

func (*Account_RAMInfo) GetTotal

func (x *Account_RAMInfo) GetTotal() int64

func (*Account_RAMInfo) GetUsed

func (x *Account_RAMInfo) GetUsed() int64

func (*Account_RAMInfo) ProtoMessage

func (*Account_RAMInfo) ProtoMessage()

func (*Account_RAMInfo) ProtoReflect

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

func (*Account_RAMInfo) Reset

func (x *Account_RAMInfo) Reset()

func (*Account_RAMInfo) String

func (x *Account_RAMInfo) String() string

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"`
	// contains filtered or unexported fields
}

The message defines transaction action struct.

func (*Action) Descriptor deprecated

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

Deprecated: Use Action.ProtoReflect.Descriptor instead.

func (*Action) GetActionName

func (x *Action) GetActionName() string

func (*Action) GetContract

func (x *Action) GetContract() string

func (*Action) GetData

func (x *Action) GetData() string

func (*Action) ProtoMessage

func (*Action) ProtoMessage()

func (*Action) ProtoReflect

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

func (*Action) Reset

func (x *Action) Reset()

func (*Action) String

func (x *Action) String() string

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"`
	// contains filtered or unexported fields
}

The message defines transaction amount limit struct.

func (*AmountLimit) Descriptor deprecated

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

Deprecated: Use AmountLimit.ProtoReflect.Descriptor instead.

func (*AmountLimit) GetToken

func (x *AmountLimit) GetToken() string

func (*AmountLimit) GetValue

func (x *AmountLimit) GetValue() string

func (*AmountLimit) ProtoMessage

func (*AmountLimit) ProtoMessage()

func (*AmountLimit) ProtoReflect

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

func (*AmountLimit) Reset

func (x *AmountLimit) Reset()

func (*AmountLimit) String

func (x *AmountLimit) String() string

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 raw block by number, including block signature etc
	GetRawBlockByNumber(ctx context.Context, in *GetBlockByNumberRequest, opts ...grpc.CallOption) (*RawBlockResponse, error)
	// get batch of block header
	GetBlockHeaderByRange(ctx context.Context, in *GetBlockHeaderByRangeRequest, opts ...grpc.CallOption) (*BlockHeaderByRangeResponse, 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 producer vote infomation
	GetProducerVoteInfo(ctx context.Context, in *GetProducerVoteInfoRequest, opts ...grpc.CallOption) (*GetProducerVoteInfoResponse, error)
	// get contract
	GetContract(ctx context.Context, in *GetContractRequest, opts ...grpc.CallOption) (*Contract, error)
	// get contract vote
	GetContractVote(ctx context.Context, in *GetContractRequest, opts ...grpc.CallOption) (*ContractVote, error)
	// get contract storage
	GetContractStorage(ctx context.Context, in *GetContractStorageRequest, opts ...grpc.CallOption) (*GetContractStorageResponse, error)
	// get batch contract storage
	GetBatchContractStorage(ctx context.Context, in *GetBatchContractStorageRequest, opts ...grpc.CallOption) (*GetBatchContractStorageResponse, error)
	ListContractStorage(ctx context.Context, in *ListContractStorageRequest, opts ...grpc.CallOption) (*ListContractStorageResponse, 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)
	GetVoterBonus(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*VoterBonus, error)
	GetCandidateBonus(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*CandidateBonus, error)
	GetTokenInfo(ctx context.Context, in *GetTokenInfoRequest, opts ...grpc.CallOption) (*TokenInfo, error)
	GetBlockTxsByContract(ctx context.Context, in *GetBlockTxsByContractRequest, opts ...grpc.CallOption) (*BlockTxsByContractResponse, error)
}

ApiServiceClient is the client API for ApiService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewApiServiceClient

func NewApiServiceClient(cc grpc.ClientConnInterface) 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 raw block by number, including block signature etc
	GetRawBlockByNumber(context.Context, *GetBlockByNumberRequest) (*RawBlockResponse, error)
	// get batch of block header
	GetBlockHeaderByRange(context.Context, *GetBlockHeaderByRangeRequest) (*BlockHeaderByRangeResponse, 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 producer vote infomation
	GetProducerVoteInfo(context.Context, *GetProducerVoteInfoRequest) (*GetProducerVoteInfoResponse, error)
	// get contract
	GetContract(context.Context, *GetContractRequest) (*Contract, error)
	// get contract vote
	GetContractVote(context.Context, *GetContractRequest) (*ContractVote, error)
	// get contract storage
	GetContractStorage(context.Context, *GetContractStorageRequest) (*GetContractStorageResponse, error)
	// get batch contract storage
	GetBatchContractStorage(context.Context, *GetBatchContractStorageRequest) (*GetBatchContractStorageResponse, error)
	ListContractStorage(context.Context, *ListContractStorageRequest) (*ListContractStorageResponse, 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
	GetVoterBonus(context.Context, *GetAccountRequest) (*VoterBonus, error)
	GetCandidateBonus(context.Context, *GetAccountRequest) (*CandidateBonus, error)
	GetTokenInfo(context.Context, *GetTokenInfoRequest) (*TokenInfo, error)
	GetBlockTxsByContract(context.Context, *GetBlockTxsByContractRequest) (*BlockTxsByContractResponse, error)
}

ApiServiceServer is the server API for ApiService service. All implementations should embed UnimplementedApiServiceServer for forward compatibility

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"`
	// original info bytes
	OrigInfo string `protobuf:"bytes,13,opt,name=orig_info,json=origInfo,proto3" json:"orig_info,omitempty"`
	// block transactions
	Transactions []*Transaction `protobuf:"bytes,12,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

The message defines the block struct.

func (*Block) Descriptor deprecated

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

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetGasUsage

func (x *Block) GetGasUsage() float64

func (*Block) GetHash

func (x *Block) GetHash() string

func (*Block) GetInfo

func (x *Block) GetInfo() *Block_Info

func (*Block) GetNumber

func (x *Block) GetNumber() int64

func (*Block) GetOrigInfo

func (x *Block) GetOrigInfo() string

func (*Block) GetParentHash

func (x *Block) GetParentHash() string

func (*Block) GetTime

func (x *Block) GetTime() int64

func (*Block) GetTransactions

func (x *Block) GetTransactions() []*Transaction

func (*Block) GetTxCount

func (x *Block) GetTxCount() int64

func (*Block) GetTxMerkleHash

func (x *Block) GetTxMerkleHash() string

func (*Block) GetTxReceiptMerkleHash

func (x *Block) GetTxReceiptMerkleHash() string

func (*Block) GetVersion

func (x *Block) GetVersion() int64

func (*Block) GetWitness

func (x *Block) GetWitness() string

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

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

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

type BlockHeaderByRangeResponse

type BlockHeaderByRangeResponse struct {
	BlockList []*pb.Block `protobuf:"bytes,1,rep,name=block_list,json=blockList,proto3" json:"block_list,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockHeaderByRangeResponse) Descriptor deprecated

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

Deprecated: Use BlockHeaderByRangeResponse.ProtoReflect.Descriptor instead.

func (*BlockHeaderByRangeResponse) GetBlockList

func (x *BlockHeaderByRangeResponse) GetBlockList() []*pb.Block

func (*BlockHeaderByRangeResponse) ProtoMessage

func (*BlockHeaderByRangeResponse) ProtoMessage()

func (*BlockHeaderByRangeResponse) ProtoReflect

func (*BlockHeaderByRangeResponse) Reset

func (x *BlockHeaderByRangeResponse) Reset()

func (*BlockHeaderByRangeResponse) String

func (x *BlockHeaderByRangeResponse) String() string

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"`
	// contains filtered or unexported fields
}

func (*BlockResponse) Descriptor deprecated

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

Deprecated: Use BlockResponse.ProtoReflect.Descriptor instead.

func (*BlockResponse) GetBlock

func (x *BlockResponse) GetBlock() *Block

func (*BlockResponse) GetStatus

func (x *BlockResponse) GetStatus() BlockResponse_Status

func (*BlockResponse) ProtoMessage

func (*BlockResponse) ProtoMessage()

func (*BlockResponse) ProtoReflect

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

func (*BlockResponse) Reset

func (x *BlockResponse) Reset()

func (*BlockResponse) String

func (x *BlockResponse) String() string

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) Descriptor

func (BlockResponse_Status) Enum

func (BlockResponse_Status) EnumDescriptor deprecated

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

Deprecated: Use BlockResponse_Status.Descriptor instead.

func (BlockResponse_Status) Number

func (BlockResponse_Status) String

func (x BlockResponse_Status) String() string

func (BlockResponse_Status) Type

type BlockTxs added in v3.7.1

type BlockTxs struct {

	// block status
	Status BlockResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=rpcpb.BlockResponse_Status" json:"status,omitempty"`
	// block number
	BlockNumber int64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
	// transaction
	TxList []*Transaction `protobuf:"bytes,3,rep,name=tx_list,json=txList,proto3" json:"tx_list,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockTxs) Descriptor deprecated added in v3.7.1

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

Deprecated: Use BlockTxs.ProtoReflect.Descriptor instead.

func (*BlockTxs) GetBlockNumber added in v3.7.1

func (x *BlockTxs) GetBlockNumber() int64

func (*BlockTxs) GetStatus added in v3.7.1

func (x *BlockTxs) GetStatus() BlockResponse_Status

func (*BlockTxs) GetTxList added in v3.7.1

func (x *BlockTxs) GetTxList() []*Transaction

func (*BlockTxs) ProtoMessage added in v3.7.1

func (*BlockTxs) ProtoMessage()

func (*BlockTxs) ProtoReflect added in v3.7.1

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

func (*BlockTxs) Reset added in v3.7.1

func (x *BlockTxs) Reset()

func (*BlockTxs) String added in v3.7.1

func (x *BlockTxs) String() string

type BlockTxsByContractResponse added in v3.7.1

type BlockTxsByContractResponse struct {
	BlocktxList []*BlockTxs `protobuf:"bytes,1,rep,name=blocktx_list,json=blocktxList,proto3" json:"blocktx_list,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockTxsByContractResponse) Descriptor deprecated added in v3.7.1

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

Deprecated: Use BlockTxsByContractResponse.ProtoReflect.Descriptor instead.

func (*BlockTxsByContractResponse) GetBlocktxList added in v3.7.1

func (x *BlockTxsByContractResponse) GetBlocktxList() []*BlockTxs

func (*BlockTxsByContractResponse) ProtoMessage added in v3.7.1

func (*BlockTxsByContractResponse) ProtoMessage()

func (*BlockTxsByContractResponse) ProtoReflect added in v3.7.1

func (*BlockTxsByContractResponse) Reset added in v3.7.1

func (x *BlockTxsByContractResponse) Reset()

func (*BlockTxsByContractResponse) String added in v3.7.1

func (x *BlockTxsByContractResponse) 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"`
	// contains filtered or unexported fields
}

The message defines block extra information

func (*Block_Info) Descriptor deprecated

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

Deprecated: Use Block_Info.ProtoReflect.Descriptor instead.

func (*Block_Info) GetBatchIndex

func (x *Block_Info) GetBatchIndex() []int32

func (*Block_Info) GetMode

func (x *Block_Info) GetMode() int32

func (*Block_Info) GetThread

func (x *Block_Info) GetThread() int32

func (*Block_Info) ProtoMessage

func (*Block_Info) ProtoMessage()

func (*Block_Info) ProtoReflect

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

func (*Block_Info) Reset

func (x *Block_Info) Reset()

func (*Block_Info) String

func (x *Block_Info) String() string

type CandidateBonus

type CandidateBonus struct {

	// the candidate bonus
	Bonus float64 `protobuf:"fixed64,1,opt,name=bonus,proto3" json:"bonus,omitempty"`
	// contains filtered or unexported fields
}

The message defines the getCandidateBonus response.

func (*CandidateBonus) Descriptor deprecated

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

Deprecated: Use CandidateBonus.ProtoReflect.Descriptor instead.

func (*CandidateBonus) GetBonus

func (x *CandidateBonus) GetBonus() float64

func (*CandidateBonus) ProtoMessage

func (*CandidateBonus) ProtoMessage()

func (*CandidateBonus) ProtoReflect

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

func (*CandidateBonus) Reset

func (x *CandidateBonus) Reset()

func (*CandidateBonus) String

func (x *CandidateBonus) String() string

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"`
	// chain id
	ChainId uint32 `protobuf:"varint,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// head block height
	HeadBlock int64 `protobuf:"varint,4,opt,name=head_block,json=headBlock,proto3" json:"head_block,omitempty"`
	// head block hash
	HeadBlockHash string `protobuf:"bytes,5,opt,name=head_block_hash,json=headBlockHash,proto3" json:"head_block_hash,omitempty"`
	// last irreversible block number
	LibBlock int64 `protobuf:"varint,6,opt,name=lib_block,json=libBlock,proto3" json:"lib_block,omitempty"`
	// last irreversible block hash
	LibBlockHash string `protobuf:"bytes,7,opt,name=lib_block_hash,json=libBlockHash,proto3" json:"lib_block_hash,omitempty"`
	// the current witness list
	WitnessList []string `protobuf:"bytes,8,rep,name=witness_list,json=witnessList,proto3" json:"witness_list,omitempty"`
	// the active witness list of lat irreversible block
	LibWitnessList []string `protobuf:"bytes,9,rep,name=lib_witness_list,json=libWitnessList,proto3" json:"lib_witness_list,omitempty"`
	// the pending witness list
	PendingWitnessList []string `protobuf:"bytes,10,rep,name=pending_witness_list,json=pendingWitnessList,proto3" json:"pending_witness_list,omitempty"`
	// the head block time
	HeadBlockTime int64 `protobuf:"varint,11,opt,name=head_block_time,json=headBlockTime,proto3" json:"head_block_time,omitempty"`
	// the last irreversible block time
	LibBlockTime int64 `protobuf:"varint,12,opt,name=lib_block_time,json=libBlockTime,proto3" json:"lib_block_time,omitempty"`
	// contains filtered or unexported fields
}

The message defines chain information response.

func (*ChainInfoResponse) Descriptor deprecated

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

Deprecated: Use ChainInfoResponse.ProtoReflect.Descriptor instead.

func (*ChainInfoResponse) GetChainId

func (x *ChainInfoResponse) GetChainId() uint32

func (*ChainInfoResponse) GetHeadBlock

func (x *ChainInfoResponse) GetHeadBlock() int64

func (*ChainInfoResponse) GetHeadBlockHash

func (x *ChainInfoResponse) GetHeadBlockHash() string

func (*ChainInfoResponse) GetHeadBlockTime

func (x *ChainInfoResponse) GetHeadBlockTime() int64

func (*ChainInfoResponse) GetLibBlock

func (x *ChainInfoResponse) GetLibBlock() int64

func (*ChainInfoResponse) GetLibBlockHash

func (x *ChainInfoResponse) GetLibBlockHash() string

func (*ChainInfoResponse) GetLibBlockTime

func (x *ChainInfoResponse) GetLibBlockTime() int64

func (*ChainInfoResponse) GetLibWitnessList

func (x *ChainInfoResponse) GetLibWitnessList() []string

func (*ChainInfoResponse) GetNetName

func (x *ChainInfoResponse) GetNetName() string

func (*ChainInfoResponse) GetPendingWitnessList

func (x *ChainInfoResponse) GetPendingWitnessList() []string

func (*ChainInfoResponse) GetProtocolVersion

func (x *ChainInfoResponse) GetProtocolVersion() string

func (*ChainInfoResponse) GetWitnessList

func (x *ChainInfoResponse) GetWitnessList() []string

func (*ChainInfoResponse) ProtoMessage

func (*ChainInfoResponse) ProtoMessage()

func (*ChainInfoResponse) ProtoReflect

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

func (*ChainInfoResponse) Reset

func (x *ChainInfoResponse) Reset()

func (*ChainInfoResponse) String

func (x *ChainInfoResponse) String() string

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"`
	// original contract code
	OrigCode string `protobuf:"bytes,6,opt,name=orig_code,json=origCode,proto3" json:"orig_code,omitempty"`
	// contract abis
	Abis []*Contract_ABI `protobuf:"bytes,5,rep,name=abis,proto3" json:"abis,omitempty"`
	// contains filtered or unexported fields
}

The message defines the contract struct.

func (*Contract) Descriptor deprecated

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

Deprecated: Use Contract.ProtoReflect.Descriptor instead.

func (*Contract) GetAbis

func (x *Contract) GetAbis() []*Contract_ABI

func (*Contract) GetCode

func (x *Contract) GetCode() string

func (*Contract) GetId

func (x *Contract) GetId() string

func (*Contract) GetLanguage

func (x *Contract) GetLanguage() string

func (*Contract) GetOrigCode

func (x *Contract) GetOrigCode() string

func (*Contract) GetVersion

func (x *Contract) GetVersion() string

func (*Contract) ProtoMessage

func (*Contract) ProtoMessage()

func (*Contract) ProtoReflect

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

func (*Contract) Reset

func (x *Contract) Reset()

func (*Contract) String

func (x *Contract) String() string

type ContractVote

type ContractVote struct {

	// vote information
	VoteInfos []*VoteInfo `protobuf:"bytes,1,rep,name=vote_infos,json=voteInfos,proto3" json:"vote_infos,omitempty"`
	// contains filtered or unexported fields
}

The message defines the contract vote info

func (*ContractVote) Descriptor deprecated

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

Deprecated: Use ContractVote.ProtoReflect.Descriptor instead.

func (*ContractVote) GetVoteInfos

func (x *ContractVote) GetVoteInfos() []*VoteInfo

func (*ContractVote) ProtoMessage

func (*ContractVote) ProtoMessage()

func (*ContractVote) ProtoReflect

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

func (*ContractVote) Reset

func (x *ContractVote) Reset()

func (*ContractVote) String

func (x *ContractVote) String() string

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"`
	// contains filtered or unexported fields
}

The message defines the ABI struct.

func (*Contract_ABI) Descriptor deprecated

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

Deprecated: Use Contract_ABI.ProtoReflect.Descriptor instead.

func (*Contract_ABI) GetAmountLimit

func (x *Contract_ABI) GetAmountLimit() []*AmountLimit

func (*Contract_ABI) GetArgs

func (x *Contract_ABI) GetArgs() []string

func (*Contract_ABI) GetName

func (x *Contract_ABI) GetName() string

func (*Contract_ABI) ProtoMessage

func (*Contract_ABI) ProtoMessage()

func (*Contract_ABI) ProtoReflect

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

func (*Contract_ABI) Reset

func (x *Contract_ABI) Reset()

func (*Contract_ABI) String

func (x *Contract_ABI) String() string

type EmptyRequest

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

The message defines an empty request.

func (*EmptyRequest) Descriptor deprecated

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

Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.

func (*EmptyRequest) ProtoMessage

func (*EmptyRequest) ProtoMessage()

func (*EmptyRequest) ProtoReflect

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

func (*EmptyRequest) Reset

func (x *EmptyRequest) Reset()

func (*EmptyRequest) String

func (x *EmptyRequest) String() string

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"`
	// contains filtered or unexported fields
}

The message defines event struct.

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetData

func (x *Event) GetData() string

func (*Event) GetTime

func (x *Event) GetTime() int64

func (*Event) GetTopic

func (x *Event) GetTopic() Event_Topic

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

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) Descriptor

func (Event_Topic) Enum

func (x Event_Topic) Enum() *Event_Topic

func (Event_Topic) EnumDescriptor deprecated

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

Deprecated: Use Event_Topic.Descriptor instead.

func (Event_Topic) Number

func (x Event_Topic) Number() protoreflect.EnumNumber

func (Event_Topic) String

func (x Event_Topic) String() string

func (Event_Topic) Type

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"`
	// contains filtered or unexported fields
}

The message defines the account's frozen balance.

func (*FrozenBalance) Descriptor deprecated

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

Deprecated: Use FrozenBalance.ProtoReflect.Descriptor instead.

func (*FrozenBalance) GetAmount

func (x *FrozenBalance) GetAmount() float64

func (*FrozenBalance) GetTime

func (x *FrozenBalance) GetTime() int64

func (*FrozenBalance) ProtoMessage

func (*FrozenBalance) ProtoMessage()

func (*FrozenBalance) ProtoReflect

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

func (*FrozenBalance) Reset

func (x *FrozenBalance) Reset()

func (*FrozenBalance) String

func (x *FrozenBalance) String() string

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"`
	// contains filtered or unexported fields
}

func (*GasRatioResponse) Descriptor deprecated

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

Deprecated: Use GasRatioResponse.ProtoReflect.Descriptor instead.

func (*GasRatioResponse) GetLowestGasRatio

func (x *GasRatioResponse) GetLowestGasRatio() float64

func (*GasRatioResponse) GetMedianGasRatio

func (x *GasRatioResponse) GetMedianGasRatio() float64

func (*GasRatioResponse) ProtoMessage

func (*GasRatioResponse) ProtoMessage()

func (*GasRatioResponse) ProtoReflect

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

func (*GasRatioResponse) Reset

func (x *GasRatioResponse) Reset()

func (*GasRatioResponse) String

func (x *GasRatioResponse) String() string

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"`
	// contains filtered or unexported fields
}

The message defines the get account request.

func (*GetAccountRequest) Descriptor deprecated

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

Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.

func (*GetAccountRequest) GetByLongestChain

func (x *GetAccountRequest) GetByLongestChain() bool

func (*GetAccountRequest) GetName

func (x *GetAccountRequest) GetName() string

func (*GetAccountRequest) ProtoMessage

func (*GetAccountRequest) ProtoMessage()

func (*GetAccountRequest) ProtoReflect

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

func (*GetAccountRequest) Reset

func (x *GetAccountRequest) Reset()

func (*GetAccountRequest) String

func (x *GetAccountRequest) String() string

type GetBatchContractStorageRequest

type GetBatchContractStorageRequest struct {

	// contract id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// the batch query
	KeyFields []*GetBatchContractStorageRequest_KeyField `protobuf:"bytes,2,rep,name=key_fields,json=keyFields,proto3" json:"key_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"`
	// contains filtered or unexported fields
}

The message defines get batch contract storage request.

func (*GetBatchContractStorageRequest) Descriptor deprecated

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

Deprecated: Use GetBatchContractStorageRequest.ProtoReflect.Descriptor instead.

func (*GetBatchContractStorageRequest) GetByLongestChain

func (x *GetBatchContractStorageRequest) GetByLongestChain() bool

func (*GetBatchContractStorageRequest) GetId

func (*GetBatchContractStorageRequest) GetKeyFields

func (*GetBatchContractStorageRequest) ProtoMessage

func (*GetBatchContractStorageRequest) ProtoMessage()

func (*GetBatchContractStorageRequest) ProtoReflect

func (*GetBatchContractStorageRequest) Reset

func (x *GetBatchContractStorageRequest) Reset()

func (*GetBatchContractStorageRequest) String

type GetBatchContractStorageRequest_KeyField

type GetBatchContractStorageRequest_KeyField struct {

	// the key in StateDB
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// get the value from StateDB, fields is needed if StateDB[key] is a map.(we get StateDB[key][field] in this case)
	Field string `protobuf:"bytes,2,opt,name=field,proto3" json:"field,omitempty"`
	// contains filtered or unexported fields
}

The message defines GetContractStorage request params.

func (*GetBatchContractStorageRequest_KeyField) Descriptor deprecated

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

Deprecated: Use GetBatchContractStorageRequest_KeyField.ProtoReflect.Descriptor instead.

func (*GetBatchContractStorageRequest_KeyField) GetField

func (*GetBatchContractStorageRequest_KeyField) GetKey

func (*GetBatchContractStorageRequest_KeyField) ProtoMessage

func (*GetBatchContractStorageRequest_KeyField) ProtoReflect

func (*GetBatchContractStorageRequest_KeyField) Reset

func (*GetBatchContractStorageRequest_KeyField) String

type GetBatchContractStorageResponse

type GetBatchContractStorageResponse struct {

	// the repeated json string data
	Datas []string `protobuf:"bytes,1,rep,name=datas,proto3" json:"datas,omitempty"`
	// block hash
	BlockHash string `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	// block number
	BlockNumber int64 `protobuf:"varint,3,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
	// contains filtered or unexported fields
}

The message defines get batch contract storage response.

func (*GetBatchContractStorageResponse) Descriptor deprecated

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

Deprecated: Use GetBatchContractStorageResponse.ProtoReflect.Descriptor instead.

func (*GetBatchContractStorageResponse) GetBlockHash

func (x *GetBatchContractStorageResponse) GetBlockHash() string

func (*GetBatchContractStorageResponse) GetBlockNumber

func (x *GetBatchContractStorageResponse) GetBlockNumber() int64

func (*GetBatchContractStorageResponse) GetDatas

func (x *GetBatchContractStorageResponse) GetDatas() []string

func (*GetBatchContractStorageResponse) ProtoMessage

func (*GetBatchContractStorageResponse) ProtoMessage()

func (*GetBatchContractStorageResponse) ProtoReflect

func (*GetBatchContractStorageResponse) Reset

func (*GetBatchContractStorageResponse) String

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"`
	// contains filtered or unexported fields
}

The request message containing the block's hash.

func (*GetBlockByHashRequest) Descriptor deprecated

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

Deprecated: Use GetBlockByHashRequest.ProtoReflect.Descriptor instead.

func (*GetBlockByHashRequest) GetComplete

func (x *GetBlockByHashRequest) GetComplete() bool

func (*GetBlockByHashRequest) GetHash

func (x *GetBlockByHashRequest) GetHash() string

func (*GetBlockByHashRequest) ProtoMessage

func (*GetBlockByHashRequest) ProtoMessage()

func (*GetBlockByHashRequest) ProtoReflect

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

func (*GetBlockByHashRequest) Reset

func (x *GetBlockByHashRequest) Reset()

func (*GetBlockByHashRequest) String

func (x *GetBlockByHashRequest) String() string

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"`
	// contains filtered or unexported fields
}

The request message containing the block's number.

func (*GetBlockByNumberRequest) Descriptor deprecated

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

Deprecated: Use GetBlockByNumberRequest.ProtoReflect.Descriptor instead.

func (*GetBlockByNumberRequest) GetComplete

func (x *GetBlockByNumberRequest) GetComplete() bool

func (*GetBlockByNumberRequest) GetNumber

func (x *GetBlockByNumberRequest) GetNumber() int64

func (*GetBlockByNumberRequest) ProtoMessage

func (*GetBlockByNumberRequest) ProtoMessage()

func (*GetBlockByNumberRequest) ProtoReflect

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

func (*GetBlockByNumberRequest) Reset

func (x *GetBlockByNumberRequest) Reset()

func (*GetBlockByNumberRequest) String

func (x *GetBlockByNumberRequest) String() string

type GetBlockHeaderByRangeRequest

type GetBlockHeaderByRangeRequest struct {
	Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	End   int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

The request message containing range start and end

func (*GetBlockHeaderByRangeRequest) Descriptor deprecated

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

Deprecated: Use GetBlockHeaderByRangeRequest.ProtoReflect.Descriptor instead.

func (*GetBlockHeaderByRangeRequest) GetEnd

func (x *GetBlockHeaderByRangeRequest) GetEnd() int64

func (*GetBlockHeaderByRangeRequest) GetStart

func (x *GetBlockHeaderByRangeRequest) GetStart() int64

func (*GetBlockHeaderByRangeRequest) ProtoMessage

func (*GetBlockHeaderByRangeRequest) ProtoMessage()

func (*GetBlockHeaderByRangeRequest) ProtoReflect

func (*GetBlockHeaderByRangeRequest) Reset

func (x *GetBlockHeaderByRangeRequest) Reset()

func (*GetBlockHeaderByRangeRequest) String

type GetBlockTxsByContractRequest added in v3.7.1

type GetBlockTxsByContractRequest struct {
	FromBlock  int64  `protobuf:"varint,1,opt,name=from_block,json=fromBlock,proto3" json:"from_block,omitempty"`
	ToBlock    int64  `protobuf:"varint,2,opt,name=to_block,json=toBlock,proto3" json:"to_block,omitempty"`
	Contract   string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"`
	ActionName string `protobuf:"bytes,4,opt,name=action_name,json=actionName,proto3" json:"action_name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockTxsByContractRequest) Descriptor deprecated added in v3.7.1

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

Deprecated: Use GetBlockTxsByContractRequest.ProtoReflect.Descriptor instead.

func (*GetBlockTxsByContractRequest) GetActionName added in v3.7.1

func (x *GetBlockTxsByContractRequest) GetActionName() string

func (*GetBlockTxsByContractRequest) GetContract added in v3.7.1

func (x *GetBlockTxsByContractRequest) GetContract() string

func (*GetBlockTxsByContractRequest) GetFromBlock added in v3.7.1

func (x *GetBlockTxsByContractRequest) GetFromBlock() int64

func (*GetBlockTxsByContractRequest) GetToBlock added in v3.7.1

func (x *GetBlockTxsByContractRequest) GetToBlock() int64

func (*GetBlockTxsByContractRequest) ProtoMessage added in v3.7.1

func (*GetBlockTxsByContractRequest) ProtoMessage()

func (*GetBlockTxsByContractRequest) ProtoReflect added in v3.7.1

func (*GetBlockTxsByContractRequest) Reset added in v3.7.1

func (x *GetBlockTxsByContractRequest) Reset()

func (*GetBlockTxsByContractRequest) String added in v3.7.1

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"`
	// contains filtered or unexported fields
}

The message defines get contract request.

func (*GetContractRequest) Descriptor deprecated

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

Deprecated: Use GetContractRequest.ProtoReflect.Descriptor instead.

func (*GetContractRequest) GetByLongestChain

func (x *GetContractRequest) GetByLongestChain() bool

func (*GetContractRequest) GetId

func (x *GetContractRequest) GetId() string

func (*GetContractRequest) ProtoMessage

func (*GetContractRequest) ProtoMessage()

func (*GetContractRequest) ProtoReflect

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

func (*GetContractRequest) Reset

func (x *GetContractRequest) Reset()

func (*GetContractRequest) String

func (x *GetContractRequest) String() string

type GetContractStorageFieldsRequest

type GetContractStorageFieldsRequest struct {

	// contract id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// get the fields from StateDB
	Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,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"`
	// contains filtered or unexported fields
}

The message defines get contract storage request.

func (*GetContractStorageFieldsRequest) Descriptor deprecated

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

Deprecated: Use GetContractStorageFieldsRequest.ProtoReflect.Descriptor instead.

func (*GetContractStorageFieldsRequest) GetByLongestChain

func (x *GetContractStorageFieldsRequest) GetByLongestChain() bool

func (*GetContractStorageFieldsRequest) GetId

func (*GetContractStorageFieldsRequest) GetKey

func (*GetContractStorageFieldsRequest) ProtoMessage

func (*GetContractStorageFieldsRequest) ProtoMessage()

func (*GetContractStorageFieldsRequest) ProtoReflect

func (*GetContractStorageFieldsRequest) Reset

func (*GetContractStorageFieldsRequest) String

type GetContractStorageFieldsResponse

type GetContractStorageFieldsResponse struct {

	// the fields.
	Fields []string `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
	// block hash
	BlockHash string `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	// block number
	BlockNumber int64 `protobuf:"varint,3,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
	// contains filtered or unexported fields
}

The message defines get contract storage response.

func (*GetContractStorageFieldsResponse) Descriptor deprecated

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

Deprecated: Use GetContractStorageFieldsResponse.ProtoReflect.Descriptor instead.

func (*GetContractStorageFieldsResponse) GetBlockHash

func (x *GetContractStorageFieldsResponse) GetBlockHash() string

func (*GetContractStorageFieldsResponse) GetBlockNumber

func (x *GetContractStorageFieldsResponse) GetBlockNumber() int64

func (*GetContractStorageFieldsResponse) GetFields

func (x *GetContractStorageFieldsResponse) GetFields() []string

func (*GetContractStorageFieldsResponse) ProtoMessage

func (*GetContractStorageFieldsResponse) ProtoMessage()

func (*GetContractStorageFieldsResponse) ProtoReflect

func (*GetContractStorageFieldsResponse) Reset

func (*GetContractStorageFieldsResponse) String

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"`
	// contains filtered or unexported fields
}

The message defines get contract storage request.

func (*GetContractStorageRequest) Descriptor deprecated

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

Deprecated: Use GetContractStorageRequest.ProtoReflect.Descriptor instead.

func (*GetContractStorageRequest) GetByLongestChain

func (x *GetContractStorageRequest) GetByLongestChain() bool

func (*GetContractStorageRequest) GetField

func (x *GetContractStorageRequest) GetField() string

func (*GetContractStorageRequest) GetId

func (x *GetContractStorageRequest) GetId() string

func (*GetContractStorageRequest) GetKey

func (x *GetContractStorageRequest) GetKey() string

func (*GetContractStorageRequest) ProtoMessage

func (*GetContractStorageRequest) ProtoMessage()

func (*GetContractStorageRequest) ProtoReflect

func (*GetContractStorageRequest) Reset

func (x *GetContractStorageRequest) Reset()

func (*GetContractStorageRequest) String

func (x *GetContractStorageRequest) String() string

type GetContractStorageResponse

type GetContractStorageResponse struct {

	// the json string data
	Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// block hash
	BlockHash string `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	// block number
	BlockNumber int64 `protobuf:"varint,3,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
	// contains filtered or unexported fields
}

The message defines get contract storage response.

func (*GetContractStorageResponse) Descriptor deprecated

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

Deprecated: Use GetContractStorageResponse.ProtoReflect.Descriptor instead.

func (*GetContractStorageResponse) GetBlockHash

func (x *GetContractStorageResponse) GetBlockHash() string

func (*GetContractStorageResponse) GetBlockNumber

func (x *GetContractStorageResponse) GetBlockNumber() int64

func (*GetContractStorageResponse) GetData

func (x *GetContractStorageResponse) GetData() string

func (*GetContractStorageResponse) ProtoMessage

func (*GetContractStorageResponse) ProtoMessage()

func (*GetContractStorageResponse) ProtoReflect

func (*GetContractStorageResponse) Reset

func (x *GetContractStorageResponse) Reset()

func (*GetContractStorageResponse) String

func (x *GetContractStorageResponse) String() string

type GetProducerVoteInfoRequest

type GetProducerVoteInfoRequest struct {

	// account name
	Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,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"`
	// contains filtered or unexported fields
}

func (*GetProducerVoteInfoRequest) Descriptor deprecated

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

Deprecated: Use GetProducerVoteInfoRequest.ProtoReflect.Descriptor instead.

func (*GetProducerVoteInfoRequest) GetAccount

func (x *GetProducerVoteInfoRequest) GetAccount() string

func (*GetProducerVoteInfoRequest) GetByLongestChain

func (x *GetProducerVoteInfoRequest) GetByLongestChain() bool

func (*GetProducerVoteInfoRequest) ProtoMessage

func (*GetProducerVoteInfoRequest) ProtoMessage()

func (*GetProducerVoteInfoRequest) ProtoReflect

func (*GetProducerVoteInfoRequest) Reset

func (x *GetProducerVoteInfoRequest) Reset()

func (*GetProducerVoteInfoRequest) String

func (x *GetProducerVoteInfoRequest) String() string

type GetProducerVoteInfoResponse

type GetProducerVoteInfoResponse struct {

	// producer's public key
	Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	// producer's location
	Loc string `protobuf:"bytes,2,opt,name=loc,proto3" json:"loc,omitempty"`
	// producer's url
	Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	// producer's net id
	NetId string `protobuf:"bytes,4,opt,name=net_id,json=netId,proto3" json:"net_id,omitempty"`
	// is producer
	IsProducer bool `protobuf:"varint,5,opt,name=is_producer,json=isProducer,proto3" json:"is_producer,omitempty"`
	// is approved
	Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
	// is online
	Online bool `protobuf:"varint,7,opt,name=online,proto3" json:"online,omitempty"`
	// votes
	Votes float64 `protobuf:"fixed64,8,opt,name=votes,proto3" json:"votes,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProducerVoteInfoResponse) Descriptor deprecated

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

Deprecated: Use GetProducerVoteInfoResponse.ProtoReflect.Descriptor instead.

func (*GetProducerVoteInfoResponse) GetIsProducer

func (x *GetProducerVoteInfoResponse) GetIsProducer() bool

func (*GetProducerVoteInfoResponse) GetLoc

func (x *GetProducerVoteInfoResponse) GetLoc() string

func (*GetProducerVoteInfoResponse) GetNetId

func (x *GetProducerVoteInfoResponse) GetNetId() string

func (*GetProducerVoteInfoResponse) GetOnline

func (x *GetProducerVoteInfoResponse) GetOnline() bool

func (*GetProducerVoteInfoResponse) GetPubkey

func (x *GetProducerVoteInfoResponse) GetPubkey() string

func (*GetProducerVoteInfoResponse) GetStatus

func (x *GetProducerVoteInfoResponse) GetStatus() string

func (*GetProducerVoteInfoResponse) GetUrl

func (x *GetProducerVoteInfoResponse) GetUrl() string

func (*GetProducerVoteInfoResponse) GetVotes

func (x *GetProducerVoteInfoResponse) GetVotes() float64

func (*GetProducerVoteInfoResponse) ProtoMessage

func (*GetProducerVoteInfoResponse) ProtoMessage()

func (*GetProducerVoteInfoResponse) ProtoReflect

func (*GetProducerVoteInfoResponse) Reset

func (x *GetProducerVoteInfoResponse) Reset()

func (*GetProducerVoteInfoResponse) String

func (x *GetProducerVoteInfoResponse) String() string

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"`
	// contains filtered or unexported fields
}

The message defines get token721 balance response.

func (*GetToken721BalanceResponse) Descriptor deprecated

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

Deprecated: Use GetToken721BalanceResponse.ProtoReflect.Descriptor instead.

func (*GetToken721BalanceResponse) GetBalance

func (x *GetToken721BalanceResponse) GetBalance() int64

func (*GetToken721BalanceResponse) GetTokenIDs

func (x *GetToken721BalanceResponse) GetTokenIDs() []string

func (*GetToken721BalanceResponse) ProtoMessage

func (*GetToken721BalanceResponse) ProtoMessage()

func (*GetToken721BalanceResponse) ProtoReflect

func (*GetToken721BalanceResponse) Reset

func (x *GetToken721BalanceResponse) Reset()

func (*GetToken721BalanceResponse) String

func (x *GetToken721BalanceResponse) String() string

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"`
	// contains filtered or unexported fields
}

The message defines get token721 info request.

func (*GetToken721InfoRequest) Descriptor deprecated

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

Deprecated: Use GetToken721InfoRequest.ProtoReflect.Descriptor instead.

func (*GetToken721InfoRequest) GetByLongestChain

func (x *GetToken721InfoRequest) GetByLongestChain() bool

func (*GetToken721InfoRequest) GetToken

func (x *GetToken721InfoRequest) GetToken() string

func (*GetToken721InfoRequest) GetTokenId

func (x *GetToken721InfoRequest) GetTokenId() string

func (*GetToken721InfoRequest) ProtoMessage

func (*GetToken721InfoRequest) ProtoMessage()

func (*GetToken721InfoRequest) ProtoReflect

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

func (*GetToken721InfoRequest) Reset

func (x *GetToken721InfoRequest) Reset()

func (*GetToken721InfoRequest) String

func (x *GetToken721InfoRequest) String() string

type GetToken721MetadataResponse

type GetToken721MetadataResponse struct {

	// token metadata
	Metadata string `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

The message defines get token721 metadata response.

func (*GetToken721MetadataResponse) Descriptor deprecated

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

Deprecated: Use GetToken721MetadataResponse.ProtoReflect.Descriptor instead.

func (*GetToken721MetadataResponse) GetMetadata

func (x *GetToken721MetadataResponse) GetMetadata() string

func (*GetToken721MetadataResponse) ProtoMessage

func (*GetToken721MetadataResponse) ProtoMessage()

func (*GetToken721MetadataResponse) ProtoReflect

func (*GetToken721MetadataResponse) Reset

func (x *GetToken721MetadataResponse) Reset()

func (*GetToken721MetadataResponse) String

func (x *GetToken721MetadataResponse) String() string

type GetToken721OwnerResponse

type GetToken721OwnerResponse struct {

	// token owner
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

The message defines get token721 owner response.

func (*GetToken721OwnerResponse) Descriptor deprecated

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

Deprecated: Use GetToken721OwnerResponse.ProtoReflect.Descriptor instead.

func (*GetToken721OwnerResponse) GetOwner

func (x *GetToken721OwnerResponse) GetOwner() string

func (*GetToken721OwnerResponse) ProtoMessage

func (*GetToken721OwnerResponse) ProtoMessage()

func (*GetToken721OwnerResponse) ProtoReflect

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

func (*GetToken721OwnerResponse) Reset

func (x *GetToken721OwnerResponse) Reset()

func (*GetToken721OwnerResponse) String

func (x *GetToken721OwnerResponse) String() string

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"`
	// contains filtered or unexported fields
}

The message defines get token balance request.

func (*GetTokenBalanceRequest) Descriptor deprecated

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

Deprecated: Use GetTokenBalanceRequest.ProtoReflect.Descriptor instead.

func (*GetTokenBalanceRequest) GetAccount

func (x *GetTokenBalanceRequest) GetAccount() string

func (*GetTokenBalanceRequest) GetByLongestChain

func (x *GetTokenBalanceRequest) GetByLongestChain() bool

func (*GetTokenBalanceRequest) GetToken

func (x *GetTokenBalanceRequest) GetToken() string

func (*GetTokenBalanceRequest) ProtoMessage

func (*GetTokenBalanceRequest) ProtoMessage()

func (*GetTokenBalanceRequest) ProtoReflect

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

func (*GetTokenBalanceRequest) Reset

func (x *GetTokenBalanceRequest) Reset()

func (*GetTokenBalanceRequest) String

func (x *GetTokenBalanceRequest) String() string

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"`
	// contains filtered or unexported fields
}

The message defines get token balance response.

func (*GetTokenBalanceResponse) Descriptor deprecated

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

Deprecated: Use GetTokenBalanceResponse.ProtoReflect.Descriptor instead.

func (*GetTokenBalanceResponse) GetBalance

func (x *GetTokenBalanceResponse) GetBalance() float64

func (*GetTokenBalanceResponse) GetFrozenBalances

func (x *GetTokenBalanceResponse) GetFrozenBalances() []*FrozenBalance

func (*GetTokenBalanceResponse) ProtoMessage

func (*GetTokenBalanceResponse) ProtoMessage()

func (*GetTokenBalanceResponse) ProtoReflect

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

func (*GetTokenBalanceResponse) Reset

func (x *GetTokenBalanceResponse) Reset()

func (*GetTokenBalanceResponse) String

func (x *GetTokenBalanceResponse) String() string

type GetTokenInfoRequest

type GetTokenInfoRequest struct {

	// token symbol
	Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	// get tokeninfo 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"`
	// contains filtered or unexported fields
}

The message defines the get tokeninfo request.

func (*GetTokenInfoRequest) Descriptor deprecated

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

Deprecated: Use GetTokenInfoRequest.ProtoReflect.Descriptor instead.

func (*GetTokenInfoRequest) GetByLongestChain

func (x *GetTokenInfoRequest) GetByLongestChain() bool

func (*GetTokenInfoRequest) GetSymbol

func (x *GetTokenInfoRequest) GetSymbol() string

func (*GetTokenInfoRequest) ProtoMessage

func (*GetTokenInfoRequest) ProtoMessage()

func (*GetTokenInfoRequest) ProtoReflect

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

func (*GetTokenInfoRequest) Reset

func (x *GetTokenInfoRequest) Reset()

func (*GetTokenInfoRequest) String

func (x *GetTokenInfoRequest) String() string

type ListContractStorageRequest

type ListContractStorageRequest struct {

	// contract id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Optional. keys will be in [from, to) and prefixed with `prefix`
	From        string                                 `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	To          string                                 `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	Prefix      string                                 `protobuf:"bytes,4,opt,name=prefix,proto3" json:"prefix,omitempty"`
	StorageType ListContractStorageRequest_StorageType `` /* 126-byte string literal not displayed */
	// max count to return. up to 100
	Limit int64 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"`
	// get data by longest chain's head block or last irreversible block
	ByLongestChain bool `protobuf:"varint,7,opt,name=by_longest_chain,json=byLongestChain,proto3" json:"by_longest_chain,omitempty"`
	// contains filtered or unexported fields
}

func (*ListContractStorageRequest) Descriptor deprecated

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

Deprecated: Use ListContractStorageRequest.ProtoReflect.Descriptor instead.

func (*ListContractStorageRequest) GetByLongestChain

func (x *ListContractStorageRequest) GetByLongestChain() bool

func (*ListContractStorageRequest) GetFrom

func (x *ListContractStorageRequest) GetFrom() string

func (*ListContractStorageRequest) GetId

func (*ListContractStorageRequest) GetLimit

func (x *ListContractStorageRequest) GetLimit() int64

func (*ListContractStorageRequest) GetPrefix

func (x *ListContractStorageRequest) GetPrefix() string

func (*ListContractStorageRequest) GetStorageType

func (*ListContractStorageRequest) GetTo

func (*ListContractStorageRequest) ProtoMessage

func (*ListContractStorageRequest) ProtoMessage()

func (*ListContractStorageRequest) ProtoReflect

func (*ListContractStorageRequest) Reset

func (x *ListContractStorageRequest) Reset()

func (*ListContractStorageRequest) String

func (x *ListContractStorageRequest) String() string

type ListContractStorageRequest_StorageType

type ListContractStorageRequest_StorageType int32
const (
	// written by storage.put(..., ...)
	ListContractStorageRequest_KV ListContractStorageRequest_StorageType = 0
	// written by storage.mapPut(..., ..., ...)
	ListContractStorageRequest_MAP ListContractStorageRequest_StorageType = 1
)

func (ListContractStorageRequest_StorageType) Descriptor

func (ListContractStorageRequest_StorageType) Enum

func (ListContractStorageRequest_StorageType) EnumDescriptor deprecated

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

Deprecated: Use ListContractStorageRequest_StorageType.Descriptor instead.

func (ListContractStorageRequest_StorageType) Number

func (ListContractStorageRequest_StorageType) String

func (ListContractStorageRequest_StorageType) Type

type ListContractStorageResponse

type ListContractStorageResponse struct {
	Datas []*ListContractStorageResponse_Data `protobuf:"bytes,1,rep,name=datas,proto3" json:"datas,omitempty"`
	// block hash
	BlockHash string `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	// block number
	BlockNumber int64 `protobuf:"varint,3,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
	// contains filtered or unexported fields
}

func (*ListContractStorageResponse) Descriptor deprecated

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

Deprecated: Use ListContractStorageResponse.ProtoReflect.Descriptor instead.

func (*ListContractStorageResponse) GetBlockHash

func (x *ListContractStorageResponse) GetBlockHash() string

func (*ListContractStorageResponse) GetBlockNumber

func (x *ListContractStorageResponse) GetBlockNumber() int64

func (*ListContractStorageResponse) GetDatas

func (*ListContractStorageResponse) ProtoMessage

func (*ListContractStorageResponse) ProtoMessage()

func (*ListContractStorageResponse) ProtoReflect

func (*ListContractStorageResponse) Reset

func (x *ListContractStorageResponse) Reset()

func (*ListContractStorageResponse) String

func (x *ListContractStorageResponse) String() string

type ListContractStorageResponse_Data

type ListContractStorageResponse_Data struct {

	// the key in StateDB
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// the value from StateDB
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ListContractStorageResponse_Data) Descriptor deprecated

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

Deprecated: Use ListContractStorageResponse_Data.ProtoReflect.Descriptor instead.

func (*ListContractStorageResponse_Data) GetKey

func (*ListContractStorageResponse_Data) GetValue

func (*ListContractStorageResponse_Data) ProtoMessage

func (*ListContractStorageResponse_Data) ProtoMessage()

func (*ListContractStorageResponse_Data) ProtoReflect

func (*ListContractStorageResponse_Data) Reset

func (*ListContractStorageResponse_Data) String

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"`
	// peer connection count inbound
	PeerCountInbound int32 `protobuf:"varint,3,opt,name=peer_count_inbound,json=peerCountInbound,proto3" json:"peer_count_inbound,omitempty"`
	// peer connection count outbound
	PeerCountOutbound int32 `protobuf:"varint,4,opt,name=peer_count_outbound,json=peerCountOutbound,proto3" json:"peer_count_outbound,omitempty"`
	// contains filtered or unexported fields
}

The message defines network connection information.

func (*NetworkInfo) Descriptor deprecated

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

Deprecated: Use NetworkInfo.ProtoReflect.Descriptor instead.

func (*NetworkInfo) GetId

func (x *NetworkInfo) GetId() string

func (*NetworkInfo) GetPeerCount

func (x *NetworkInfo) GetPeerCount() int32

func (*NetworkInfo) GetPeerCountInbound added in v3.8.4

func (x *NetworkInfo) GetPeerCountInbound() int32

func (*NetworkInfo) GetPeerCountOutbound added in v3.8.4

func (x *NetworkInfo) GetPeerCountOutbound() int32

func (*NetworkInfo) ProtoMessage

func (*NetworkInfo) ProtoMessage()

func (*NetworkInfo) ProtoReflect

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

func (*NetworkInfo) Reset

func (x *NetworkInfo) Reset()

func (*NetworkInfo) String

func (x *NetworkInfo) String() string

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"`
	// code version string
	CodeVersion string `protobuf:"bytes,5,opt,name=code_version,json=codeVersion,proto3" json:"code_version,omitempty"`
	// server time
	ServerTime int64 `protobuf:"varint,6,opt,name=server_time,json=serverTime,proto3" json:"server_time,omitempty"`
	// contains filtered or unexported fields
}

The message containing the node's information.

func (*NodeInfoResponse) Descriptor deprecated

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

Deprecated: Use NodeInfoResponse.ProtoReflect.Descriptor instead.

func (*NodeInfoResponse) GetBuildTime

func (x *NodeInfoResponse) GetBuildTime() string

func (*NodeInfoResponse) GetCodeVersion

func (x *NodeInfoResponse) GetCodeVersion() string

func (*NodeInfoResponse) GetGitHash

func (x *NodeInfoResponse) GetGitHash() string

func (*NodeInfoResponse) GetMode

func (x *NodeInfoResponse) GetMode() string

func (*NodeInfoResponse) GetNetwork

func (x *NodeInfoResponse) GetNetwork() *NetworkInfo

func (*NodeInfoResponse) GetServerTime

func (x *NodeInfoResponse) GetServerTime() int64

func (*NodeInfoResponse) ProtoMessage

func (*NodeInfoResponse) ProtoMessage()

func (*NodeInfoResponse) ProtoReflect

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

func (*NodeInfoResponse) Reset

func (x *NodeInfoResponse) Reset()

func (*NodeInfoResponse) String

func (x *NodeInfoResponse) String() string

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"`
	// contains filtered or unexported fields
}

The message containing blockchain's ram information.

func (*RAMInfoResponse) Descriptor deprecated

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

Deprecated: Use RAMInfoResponse.ProtoReflect.Descriptor instead.

func (*RAMInfoResponse) GetAvailableRam

func (x *RAMInfoResponse) GetAvailableRam() int64

func (*RAMInfoResponse) GetBuyPrice

func (x *RAMInfoResponse) GetBuyPrice() float64

func (*RAMInfoResponse) GetSellPrice

func (x *RAMInfoResponse) GetSellPrice() float64

func (*RAMInfoResponse) GetTotalRam

func (x *RAMInfoResponse) GetTotalRam() int64

func (*RAMInfoResponse) GetUsedRam

func (x *RAMInfoResponse) GetUsedRam() int64

func (*RAMInfoResponse) ProtoMessage

func (*RAMInfoResponse) ProtoMessage()

func (*RAMInfoResponse) ProtoReflect

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

func (*RAMInfoResponse) Reset

func (x *RAMInfoResponse) Reset()

func (*RAMInfoResponse) String

func (x *RAMInfoResponse) String() string

type RawBlockResponse

type RawBlockResponse struct {

	// transaction status
	Status RawBlockResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=rpcpb.RawBlockResponse_Status" json:"status,omitempty"`
	// block
	Block *pb.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
	// contains filtered or unexported fields
}

func (*RawBlockResponse) Descriptor deprecated

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

Deprecated: Use RawBlockResponse.ProtoReflect.Descriptor instead.

func (*RawBlockResponse) GetBlock

func (x *RawBlockResponse) GetBlock() *pb.Block

func (*RawBlockResponse) GetStatus

func (*RawBlockResponse) ProtoMessage

func (*RawBlockResponse) ProtoMessage()

func (*RawBlockResponse) ProtoReflect

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

func (*RawBlockResponse) Reset

func (x *RawBlockResponse) Reset()

func (*RawBlockResponse) String

func (x *RawBlockResponse) String() string

type RawBlockResponse_Status

type RawBlockResponse_Status int32

The enumeration defines block status.

const (
	// pending in block cache
	RawBlockResponse_PENDING RawBlockResponse_Status = 0
	// irreversible
	RawBlockResponse_IRREVERSIBLE RawBlockResponse_Status = 1
)

func (RawBlockResponse_Status) Descriptor

func (RawBlockResponse_Status) Enum

func (RawBlockResponse_Status) EnumDescriptor deprecated

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

Deprecated: Use RawBlockResponse_Status.Descriptor instead.

func (RawBlockResponse_Status) Number

func (RawBlockResponse_Status) String

func (x RawBlockResponse_Status) String() string

func (RawBlockResponse_Status) Type

type SendTransactionResponse

type SendTransactionResponse struct {

	// the final transaction hash
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// the tx_receipt of execution in advance
	PreTxReceipt *TxReceipt `protobuf:"bytes,2,opt,name=pre_tx_receipt,json=preTxReceipt,proto3" json:"pre_tx_receipt,omitempty"`
	// contains filtered or unexported fields
}

The message defines send transaction response.

func (*SendTransactionResponse) Descriptor deprecated

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

Deprecated: Use SendTransactionResponse.ProtoReflect.Descriptor instead.

func (*SendTransactionResponse) GetHash

func (x *SendTransactionResponse) GetHash() string

func (*SendTransactionResponse) GetPreTxReceipt

func (x *SendTransactionResponse) GetPreTxReceipt() *TxReceipt

func (*SendTransactionResponse) ProtoMessage

func (*SendTransactionResponse) ProtoMessage()

func (*SendTransactionResponse) ProtoReflect

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

func (*SendTransactionResponse) Reset

func (x *SendTransactionResponse) Reset()

func (*SendTransactionResponse) String

func (x *SendTransactionResponse) String() string

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"`
	// contains filtered or unexported fields
}

The message defines signature struct.

func (*Signature) Descriptor deprecated

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetAlgorithm

func (x *Signature) GetAlgorithm() Signature_Algorithm

func (*Signature) GetPublicKey

func (x *Signature) GetPublicKey() []byte

func (*Signature) GetSignature

func (x *Signature) GetSignature() []byte

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

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

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

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) Descriptor

func (Signature_Algorithm) Enum

func (Signature_Algorithm) EnumDescriptor deprecated

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

Deprecated: Use Signature_Algorithm.Descriptor instead.

func (Signature_Algorithm) Number

func (Signature_Algorithm) String

func (x Signature_Algorithm) String() string

func (Signature_Algorithm) Type

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"`
	// contains filtered or unexported fields
}

The message defines subscribe request.

func (*SubscribeRequest) Descriptor deprecated

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

Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead.

func (*SubscribeRequest) GetFilter

func (x *SubscribeRequest) GetFilter() *SubscribeRequest_Filter

func (*SubscribeRequest) GetTopics

func (x *SubscribeRequest) GetTopics() []Event_Topic

func (*SubscribeRequest) ProtoMessage

func (*SubscribeRequest) ProtoMessage()

func (*SubscribeRequest) ProtoReflect

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

func (*SubscribeRequest) Reset

func (x *SubscribeRequest) Reset()

func (*SubscribeRequest) String

func (x *SubscribeRequest) String() string

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"`
	// contains filtered or unexported fields
}

func (*SubscribeRequest_Filter) Descriptor deprecated

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

Deprecated: Use SubscribeRequest_Filter.ProtoReflect.Descriptor instead.

func (*SubscribeRequest_Filter) GetContractId

func (x *SubscribeRequest_Filter) GetContractId() string

func (*SubscribeRequest_Filter) ProtoMessage

func (*SubscribeRequest_Filter) ProtoMessage()

func (*SubscribeRequest_Filter) ProtoReflect

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

func (*SubscribeRequest_Filter) Reset

func (x *SubscribeRequest_Filter) Reset()

func (*SubscribeRequest_Filter) String

func (x *SubscribeRequest_Filter) String() string

type SubscribeResponse

type SubscribeResponse struct {
	Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
	// contains filtered or unexported fields
}

The message defines subscribe response.

func (*SubscribeResponse) Descriptor deprecated

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

Deprecated: Use SubscribeResponse.ProtoReflect.Descriptor instead.

func (*SubscribeResponse) GetEvent

func (x *SubscribeResponse) GetEvent() *Event

func (*SubscribeResponse) ProtoMessage

func (*SubscribeResponse) ProtoMessage()

func (*SubscribeResponse) ProtoReflect

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

func (*SubscribeResponse) Reset

func (x *SubscribeResponse) Reset()

func (*SubscribeResponse) String

func (x *SubscribeResponse) String() string

type TokenInfo

type TokenInfo struct {

	// token symbol
	Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	// token full name
	FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	// token issuer
	Issuer string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// the amount of total supply, the result is total_supply_float multiplied by deciaml
	TotalSupply int64 `protobuf:"varint,4,opt,name=total_supply,json=totalSupply,proto3" json:"total_supply,omitempty"`
	// the amount of current supply, the result is current_supply_float multiplied by deciaml
	CurrentSupply int64 `protobuf:"varint,5,opt,name=current_supply,json=currentSupply,proto3" json:"current_supply,omitempty"`
	// token decimal
	Decimal int32 `protobuf:"varint,6,opt,name=decimal,proto3" json:"decimal,omitempty"`
	// whether the token can be transfered
	CanTransfer bool `protobuf:"varint,7,opt,name=can_transfer,json=canTransfer,proto3" json:"can_transfer,omitempty"`
	// whether the token can only be transfered by issuer
	OnlyIssuerCanTransfer bool `` /* 129-byte string literal not displayed */
	// the amount of total supply
	TotalSupplyFloat float64 `protobuf:"fixed64,9,opt,name=total_supply_float,json=totalSupplyFloat,proto3" json:"total_supply_float,omitempty"`
	// the amount of current supply
	CurrentSupplyFloat float64 `protobuf:"fixed64,10,opt,name=current_supply_float,json=currentSupplyFloat,proto3" json:"current_supply_float,omitempty"`
	// contains filtered or unexported fields
}

The message defines the token information.

func (*TokenInfo) Descriptor deprecated

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

Deprecated: Use TokenInfo.ProtoReflect.Descriptor instead.

func (*TokenInfo) GetCanTransfer

func (x *TokenInfo) GetCanTransfer() bool

func (*TokenInfo) GetCurrentSupply

func (x *TokenInfo) GetCurrentSupply() int64

func (*TokenInfo) GetCurrentSupplyFloat

func (x *TokenInfo) GetCurrentSupplyFloat() float64

func (*TokenInfo) GetDecimal

func (x *TokenInfo) GetDecimal() int32

func (*TokenInfo) GetFullName

func (x *TokenInfo) GetFullName() string

func (*TokenInfo) GetIssuer

func (x *TokenInfo) GetIssuer() string

func (*TokenInfo) GetOnlyIssuerCanTransfer

func (x *TokenInfo) GetOnlyIssuerCanTransfer() bool

func (*TokenInfo) GetSymbol

func (x *TokenInfo) GetSymbol() string

func (*TokenInfo) GetTotalSupply

func (x *TokenInfo) GetTotalSupply() int64

func (*TokenInfo) GetTotalSupplyFloat

func (x *TokenInfo) GetTotalSupplyFloat() float64

func (*TokenInfo) ProtoMessage

func (*TokenInfo) ProtoMessage()

func (*TokenInfo) ProtoReflect

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

func (*TokenInfo) Reset

func (x *TokenInfo) Reset()

func (*TokenInfo) String

func (x *TokenInfo) String() string

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"`
	// chain id
	ChainId uint32 `protobuf:"varint,7,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// action list
	Actions []*Action `protobuf:"bytes,8,rep,name=actions,proto3" json:"actions,omitempty"`
	// signer list
	Signers []string `protobuf:"bytes,9,rep,name=signers,proto3" json:"signers,omitempty"`
	// publisher
	Publisher string `protobuf:"bytes,10,opt,name=publisher,proto3" json:"publisher,omitempty"`
	// referred transaction hash
	ReferredTx string `protobuf:"bytes,11,opt,name=referred_tx,json=referredTx,proto3" json:"referred_tx,omitempty"`
	// amount limit
	AmountLimit []*AmountLimit `protobuf:"bytes,12,rep,name=amount_limit,json=amountLimit,proto3" json:"amount_limit,omitempty"`
	// transaction receipt
	TxReceipt *TxReceipt `protobuf:"bytes,13,opt,name=tx_receipt,json=txReceipt,proto3" json:"tx_receipt,omitempty"`
	// contains filtered or unexported fields
}

The message defines transaction struct.

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetActions

func (x *Transaction) GetActions() []*Action

func (*Transaction) GetAmountLimit

func (x *Transaction) GetAmountLimit() []*AmountLimit

func (*Transaction) GetChainId

func (x *Transaction) GetChainId() uint32

func (*Transaction) GetDelay

func (x *Transaction) GetDelay() int64

func (*Transaction) GetExpiration

func (x *Transaction) GetExpiration() int64

func (*Transaction) GetGasLimit

func (x *Transaction) GetGasLimit() float64

func (*Transaction) GetGasRatio

func (x *Transaction) GetGasRatio() float64

func (*Transaction) GetHash

func (x *Transaction) GetHash() string

func (*Transaction) GetPublisher

func (x *Transaction) GetPublisher() string

func (*Transaction) GetReferredTx

func (x *Transaction) GetReferredTx() string

func (*Transaction) GetSigners

func (x *Transaction) GetSigners() []string

func (*Transaction) GetTime

func (x *Transaction) GetTime() int64

func (*Transaction) GetTxReceipt

func (x *Transaction) GetTxReceipt() *TxReceipt

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

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

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

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"`
	// chain id
	ChainId uint32 `protobuf:"varint,6,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// action list
	Actions []*Action `protobuf:"bytes,7,rep,name=actions,proto3" json:"actions,omitempty"`
	// amount limit
	AmountLimit []*AmountLimit `protobuf:"bytes,8,rep,name=amount_limit,json=amountLimit,proto3" json:"amount_limit,omitempty"`
	// signer list
	Signers []string `protobuf:"bytes,9,rep,name=signers,proto3" json:"signers,omitempty"`
	// signatures of signers
	Signatures []*Signature `protobuf:"bytes,10,rep,name=signatures,proto3" json:"signatures,omitempty"`
	// publisher
	Publisher string `protobuf:"bytes,11,opt,name=publisher,proto3" json:"publisher,omitempty"`
	// signatures of publisher
	PublisherSigs []*Signature `protobuf:"bytes,12,rep,name=publisher_sigs,json=publisherSigs,proto3" json:"publisher_sigs,omitempty"`
	// contains filtered or unexported fields
}

The message defines the transaction request.

func (*TransactionRequest) Descriptor deprecated

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

Deprecated: Use TransactionRequest.ProtoReflect.Descriptor instead.

func (*TransactionRequest) GetActions

func (x *TransactionRequest) GetActions() []*Action

func (*TransactionRequest) GetAmountLimit

func (x *TransactionRequest) GetAmountLimit() []*AmountLimit

func (*TransactionRequest) GetChainId

func (x *TransactionRequest) GetChainId() uint32

func (*TransactionRequest) GetDelay

func (x *TransactionRequest) GetDelay() int64

func (*TransactionRequest) GetExpiration

func (x *TransactionRequest) GetExpiration() int64

func (*TransactionRequest) GetGasLimit

func (x *TransactionRequest) GetGasLimit() float64

func (*TransactionRequest) GetGasRatio

func (x *TransactionRequest) GetGasRatio() float64

func (*TransactionRequest) GetPublisher

func (x *TransactionRequest) GetPublisher() string

func (*TransactionRequest) GetPublisherSigs

func (x *TransactionRequest) GetPublisherSigs() []*Signature

func (*TransactionRequest) GetSignatures

func (x *TransactionRequest) GetSignatures() []*Signature

func (*TransactionRequest) GetSigners

func (x *TransactionRequest) GetSigners() []string

func (*TransactionRequest) GetTime

func (x *TransactionRequest) GetTime() int64

func (*TransactionRequest) ProtoMessage

func (*TransactionRequest) ProtoMessage()

func (*TransactionRequest) ProtoReflect

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

func (*TransactionRequest) Reset

func (x *TransactionRequest) Reset()

func (*TransactionRequest) String

func (x *TransactionRequest) String() string

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"`
	// block number
	BlockNumber int64 `protobuf:"varint,3,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
	// contains filtered or unexported fields
}

The message defines transaction response.

func (*TransactionResponse) Descriptor deprecated

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

Deprecated: Use TransactionResponse.ProtoReflect.Descriptor instead.

func (*TransactionResponse) GetBlockNumber

func (x *TransactionResponse) GetBlockNumber() int64

func (*TransactionResponse) GetStatus

func (*TransactionResponse) GetTransaction

func (x *TransactionResponse) GetTransaction() *Transaction

func (*TransactionResponse) ProtoMessage

func (*TransactionResponse) ProtoMessage()

func (*TransactionResponse) ProtoReflect

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

func (*TransactionResponse) Reset

func (x *TransactionResponse) Reset()

func (*TransactionResponse) String

func (x *TransactionResponse) String() string

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) Descriptor

func (TransactionResponse_Status) Enum

func (TransactionResponse_Status) EnumDescriptor deprecated

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

Deprecated: Use TransactionResponse_Status.Descriptor instead.

func (TransactionResponse_Status) Number

func (TransactionResponse_Status) String

func (TransactionResponse_Status) Type

type TxHashRequest

type TxHashRequest struct {

	// tx hash
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

The request message containing the tx's hash.

func (*TxHashRequest) Descriptor deprecated

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

Deprecated: Use TxHashRequest.ProtoReflect.Descriptor instead.

func (*TxHashRequest) GetHash

func (x *TxHashRequest) GetHash() string

func (*TxHashRequest) ProtoMessage

func (*TxHashRequest) ProtoMessage()

func (*TxHashRequest) ProtoReflect

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

func (*TxHashRequest) Reset

func (x *TxHashRequest) Reset()

func (*TxHashRequest) String

func (x *TxHashRequest) String() string

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"`
	// contains filtered or unexported fields
}

The message defines the transaction receipt struct.

func (*TxReceipt) Descriptor deprecated

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

Deprecated: Use TxReceipt.ProtoReflect.Descriptor instead.

func (*TxReceipt) GetGasUsage

func (x *TxReceipt) GetGasUsage() float64

func (*TxReceipt) GetMessage

func (x *TxReceipt) GetMessage() string

func (*TxReceipt) GetRamUsage

func (x *TxReceipt) GetRamUsage() map[string]int64

func (*TxReceipt) GetReceipts

func (x *TxReceipt) GetReceipts() []*TxReceipt_Receipt

func (*TxReceipt) GetReturns

func (x *TxReceipt) GetReturns() []string

func (*TxReceipt) GetStatusCode

func (x *TxReceipt) GetStatusCode() TxReceipt_StatusCode

func (*TxReceipt) GetTxHash

func (x *TxReceipt) GetTxHash() string

func (*TxReceipt) ProtoMessage

func (*TxReceipt) ProtoMessage()

func (*TxReceipt) ProtoReflect

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

func (*TxReceipt) Reset

func (x *TxReceipt) Reset()

func (*TxReceipt) String

func (x *TxReceipt) String() string

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"`
	// contains filtered or unexported fields
}

The message defines transaction execution receipt.

func (*TxReceipt_Receipt) Descriptor deprecated

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

Deprecated: Use TxReceipt_Receipt.ProtoReflect.Descriptor instead.

func (*TxReceipt_Receipt) GetContent

func (x *TxReceipt_Receipt) GetContent() string

func (*TxReceipt_Receipt) GetFuncName

func (x *TxReceipt_Receipt) GetFuncName() string

func (*TxReceipt_Receipt) ProtoMessage

func (*TxReceipt_Receipt) ProtoMessage()

func (*TxReceipt_Receipt) ProtoReflect

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

func (*TxReceipt_Receipt) Reset

func (x *TxReceipt_Receipt) Reset()

func (*TxReceipt_Receipt) String

func (x *TxReceipt_Receipt) String() string

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) Descriptor

func (TxReceipt_StatusCode) Enum

func (TxReceipt_StatusCode) EnumDescriptor deprecated

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

Deprecated: Use TxReceipt_StatusCode.Descriptor instead.

func (TxReceipt_StatusCode) Number

func (TxReceipt_StatusCode) String

func (x TxReceipt_StatusCode) String() string

func (TxReceipt_StatusCode) Type

type UnimplementedApiServiceServer

type UnimplementedApiServiceServer struct {
}

UnimplementedApiServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedApiServiceServer) ExecTransaction

func (UnimplementedApiServiceServer) GetAccount

func (UnimplementedApiServiceServer) GetBlockByHash

func (UnimplementedApiServiceServer) GetBlockByNumber

func (UnimplementedApiServiceServer) GetBlockTxsByContract added in v3.7.1

func (UnimplementedApiServiceServer) GetCandidateBonus

func (UnimplementedApiServiceServer) GetChainInfo

func (UnimplementedApiServiceServer) GetContract

func (UnimplementedApiServiceServer) GetContractVote

func (UnimplementedApiServiceServer) GetGasRatio

func (UnimplementedApiServiceServer) GetNodeInfo

func (UnimplementedApiServiceServer) GetRAMInfo

func (UnimplementedApiServiceServer) GetRawBlockByNumber

func (UnimplementedApiServiceServer) GetToken721Balance

func (UnimplementedApiServiceServer) GetToken721Metadata

func (UnimplementedApiServiceServer) GetToken721Owner

func (UnimplementedApiServiceServer) GetTokenBalance

func (UnimplementedApiServiceServer) GetTokenInfo

func (UnimplementedApiServiceServer) GetTxByHash

func (UnimplementedApiServiceServer) GetTxReceiptByTxHash

func (UnimplementedApiServiceServer) GetVoterBonus

func (UnimplementedApiServiceServer) SendTransaction

func (UnimplementedApiServiceServer) Subscribe

type UnsafeApiServiceServer added in v3.7.0

type UnsafeApiServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeApiServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ApiServiceServer will result in compilation errors.

type VoteInfo

type VoteInfo struct {

	// option name
	Option string `protobuf:"bytes,1,opt,name=option,proto3" json:"option,omitempty"`
	// votes
	Votes float64 `protobuf:"fixed64,2,opt,name=votes,proto3" json:"votes,omitempty"`
	// cleared votes
	ClearedVotes float64 `protobuf:"fixed64,3,opt,name=cleared_votes,json=clearedVotes,proto3" json:"cleared_votes,omitempty"`
	// contains filtered or unexported fields
}

The message defines the account's vote info.

func (*VoteInfo) Descriptor deprecated

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

Deprecated: Use VoteInfo.ProtoReflect.Descriptor instead.

func (*VoteInfo) GetClearedVotes

func (x *VoteInfo) GetClearedVotes() float64

func (*VoteInfo) GetOption

func (x *VoteInfo) GetOption() string

func (*VoteInfo) GetVotes

func (x *VoteInfo) GetVotes() float64

func (*VoteInfo) ProtoMessage

func (*VoteInfo) ProtoMessage()

func (*VoteInfo) ProtoReflect

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

func (*VoteInfo) Reset

func (x *VoteInfo) Reset()

func (*VoteInfo) String

func (x *VoteInfo) String() string

type VoterBonus

type VoterBonus struct {

	// the totol voter bonus
	Bonus float64 `protobuf:"fixed64,1,opt,name=bonus,proto3" json:"bonus,omitempty"`
	// the voter bonus detail
	Detail map[string]float64 `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

The message defines the getVoterBonus response.

func (*VoterBonus) Descriptor deprecated

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

Deprecated: Use VoterBonus.ProtoReflect.Descriptor instead.

func (*VoterBonus) GetBonus

func (x *VoterBonus) GetBonus() float64

func (*VoterBonus) GetDetail

func (x *VoterBonus) GetDetail() map[string]float64

func (*VoterBonus) ProtoMessage

func (*VoterBonus) ProtoMessage()

func (*VoterBonus) ProtoReflect

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

func (*VoterBonus) Reset

func (x *VoterBonus) Reset()

func (*VoterBonus) String

func (x *VoterBonus) String() string

Jump to

Keyboard shortcuts

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