pb

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Rpc_NewAccount_FullMethodName         = "/Rpc/NewAccount"
	Rpc_GetInfoByBlockNum_FullMethodName  = "/Rpc/GetInfoByBlockNum"
	Rpc_GetInfoByBlockHash_FullMethodName = "/Rpc/GetInfoByBlockHash"
	Rpc_NewTx_FullMethodName              = "/Rpc/NewTx"
	Rpc_GetTxPool_FullMethodName          = "/Rpc/GetTxPool"
	Rpc_GetInfoByTxHash_FullMethodName    = "/Rpc/GetInfoByTxHash"
	Rpc_Mine_FullMethodName               = "/Rpc/Mine"
	Rpc_NewBlock_FullMethodName           = "/Rpc/NewBlock"
	Rpc_GetAllBlock_FullMethodName        = "/Rpc/GetAllBlock"
	Rpc_GetAllTx_FullMethodName           = "/Rpc/GetAllTx"
	Rpc_GetBalance_FullMethodName         = "/Rpc/GetBalance"
)

Variables

View Source
var File_snakecoin_proto protoreflect.FileDescriptor
View Source
var Rpc_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Rpc",
	HandlerType: (*RpcServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "NewAccount",
			Handler:    _Rpc_NewAccount_Handler,
		},
		{
			MethodName: "GetInfoByBlockNum",
			Handler:    _Rpc_GetInfoByBlockNum_Handler,
		},
		{
			MethodName: "GetInfoByBlockHash",
			Handler:    _Rpc_GetInfoByBlockHash_Handler,
		},
		{
			MethodName: "NewTx",
			Handler:    _Rpc_NewTx_Handler,
		},
		{
			MethodName: "GetTxPool",
			Handler:    _Rpc_GetTxPool_Handler,
		},
		{
			MethodName: "GetInfoByTxHash",
			Handler:    _Rpc_GetInfoByTxHash_Handler,
		},
		{
			MethodName: "Mine",
			Handler:    _Rpc_Mine_Handler,
		},
		{
			MethodName: "NewBlock",
			Handler:    _Rpc_NewBlock_Handler,
		},
		{
			MethodName: "GetAllBlock",
			Handler:    _Rpc_GetAllBlock_Handler,
		},
		{
			MethodName: "GetAllTx",
			Handler:    _Rpc_GetAllTx_Handler,
		},
		{
			MethodName: "GetBalance",
			Handler:    _Rpc_GetBalance_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "snakecoin.proto",
}

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

Functions

func RegisterRpcServer

func RegisterRpcServer(s grpc.ServiceRegistrar, srv RpcServer)

Types

type GetAllBlockReq

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

func (*GetAllBlockReq) Descriptor deprecated

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

Deprecated: Use GetAllBlockReq.ProtoReflect.Descriptor instead.

func (*GetAllBlockReq) ProtoMessage

func (*GetAllBlockReq) ProtoMessage()

func (*GetAllBlockReq) ProtoReflect

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

func (*GetAllBlockReq) Reset

func (x *GetAllBlockReq) Reset()

func (*GetAllBlockReq) String

func (x *GetAllBlockReq) String() string

type GetAllBlockResp

type GetAllBlockResp struct {
	Bs []*GetAllBlockResp_Block `protobuf:"bytes,1,rep,name=bs,proto3" json:"bs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllBlockResp) Descriptor deprecated

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

Deprecated: Use GetAllBlockResp.ProtoReflect.Descriptor instead.

func (*GetAllBlockResp) GetBs

func (x *GetAllBlockResp) GetBs() []*GetAllBlockResp_Block

func (*GetAllBlockResp) ProtoMessage

func (*GetAllBlockResp) ProtoMessage()

func (*GetAllBlockResp) ProtoReflect

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

func (*GetAllBlockResp) Reset

func (x *GetAllBlockResp) Reset()

func (*GetAllBlockResp) String

func (x *GetAllBlockResp) String() string

type GetAllBlockResp_Block

type GetAllBlockResp_Block struct {
	Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	Time   string `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
	Txs    string `protobuf:"bytes,3,opt,name=txs,proto3" json:"txs,omitempty"`
	Miner  string `protobuf:"bytes,4,opt,name=miner,proto3" json:"miner,omitempty"`
	Reward string `protobuf:"bytes,5,opt,name=reward,proto3" json:"reward,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllBlockResp_Block) Descriptor deprecated

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

Deprecated: Use GetAllBlockResp_Block.ProtoReflect.Descriptor instead.

func (*GetAllBlockResp_Block) GetMiner

func (x *GetAllBlockResp_Block) GetMiner() string

func (*GetAllBlockResp_Block) GetNumber

func (x *GetAllBlockResp_Block) GetNumber() string

func (*GetAllBlockResp_Block) GetReward

func (x *GetAllBlockResp_Block) GetReward() string

func (*GetAllBlockResp_Block) GetTime

func (x *GetAllBlockResp_Block) GetTime() string

func (*GetAllBlockResp_Block) GetTxs

func (x *GetAllBlockResp_Block) GetTxs() string

func (*GetAllBlockResp_Block) ProtoMessage

func (*GetAllBlockResp_Block) ProtoMessage()

func (*GetAllBlockResp_Block) ProtoReflect

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

func (*GetAllBlockResp_Block) Reset

func (x *GetAllBlockResp_Block) Reset()

func (*GetAllBlockResp_Block) String

func (x *GetAllBlockResp_Block) String() string

type GetAllTxReq

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

func (*GetAllTxReq) Descriptor deprecated

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

Deprecated: Use GetAllTxReq.ProtoReflect.Descriptor instead.

func (*GetAllTxReq) ProtoMessage

func (*GetAllTxReq) ProtoMessage()

func (*GetAllTxReq) ProtoReflect

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

func (*GetAllTxReq) Reset

func (x *GetAllTxReq) Reset()

func (*GetAllTxReq) String

func (x *GetAllTxReq) String() string

type GetAllTxResp

type GetAllTxResp struct {
	Txs []*GetAllTxResp_Tx `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllTxResp) Descriptor deprecated

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

Deprecated: Use GetAllTxResp.ProtoReflect.Descriptor instead.

func (*GetAllTxResp) GetTxs

func (x *GetAllTxResp) GetTxs() []*GetAllTxResp_Tx

func (*GetAllTxResp) ProtoMessage

func (*GetAllTxResp) ProtoMessage()

func (*GetAllTxResp) ProtoReflect

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

func (*GetAllTxResp) Reset

func (x *GetAllTxResp) Reset()

func (*GetAllTxResp) String

func (x *GetAllTxResp) String() string

type GetAllTxResp_Tx

type GetAllTxResp_Tx struct {
	TxHash string `protobuf:"bytes,1,opt,name=txHash,proto3" json:"txHash,omitempty"`
	From   string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	To     string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	Time   string `protobuf:"bytes,5,opt,name=time,proto3" json:"time,omitempty"`
	Block  string `protobuf:"bytes,6,opt,name=block,proto3" json:"block,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllTxResp_Tx) Descriptor deprecated

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

Deprecated: Use GetAllTxResp_Tx.ProtoReflect.Descriptor instead.

func (*GetAllTxResp_Tx) GetAmount

func (x *GetAllTxResp_Tx) GetAmount() string

func (*GetAllTxResp_Tx) GetBlock

func (x *GetAllTxResp_Tx) GetBlock() string

func (*GetAllTxResp_Tx) GetFrom

func (x *GetAllTxResp_Tx) GetFrom() string

func (*GetAllTxResp_Tx) GetTime

func (x *GetAllTxResp_Tx) GetTime() string

func (*GetAllTxResp_Tx) GetTo

func (x *GetAllTxResp_Tx) GetTo() string

func (*GetAllTxResp_Tx) GetTxHash

func (x *GetAllTxResp_Tx) GetTxHash() string

func (*GetAllTxResp_Tx) ProtoMessage

func (*GetAllTxResp_Tx) ProtoMessage()

func (*GetAllTxResp_Tx) ProtoReflect

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

func (*GetAllTxResp_Tx) Reset

func (x *GetAllTxResp_Tx) Reset()

func (*GetAllTxResp_Tx) String

func (x *GetAllTxResp_Tx) String() string

type GetBalanceReq

type GetBalanceReq struct {
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBalanceReq) Descriptor deprecated

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

Deprecated: Use GetBalanceReq.ProtoReflect.Descriptor instead.

func (*GetBalanceReq) GetAddr

func (x *GetBalanceReq) GetAddr() string

func (*GetBalanceReq) ProtoMessage

func (*GetBalanceReq) ProtoMessage()

func (*GetBalanceReq) ProtoReflect

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

func (*GetBalanceReq) Reset

func (x *GetBalanceReq) Reset()

func (*GetBalanceReq) String

func (x *GetBalanceReq) String() string

type GetBalanceResp

type GetBalanceResp struct {
	Balance string `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBalanceResp) Descriptor deprecated

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

Deprecated: Use GetBalanceResp.ProtoReflect.Descriptor instead.

func (*GetBalanceResp) GetBalance

func (x *GetBalanceResp) GetBalance() string

func (*GetBalanceResp) ProtoMessage

func (*GetBalanceResp) ProtoMessage()

func (*GetBalanceResp) ProtoReflect

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

func (*GetBalanceResp) Reset

func (x *GetBalanceResp) Reset()

func (*GetBalanceResp) String

func (x *GetBalanceResp) String() string

type GetInfoByBlockHashReq

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

func (*GetInfoByBlockHashReq) Descriptor deprecated

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

Deprecated: Use GetInfoByBlockHashReq.ProtoReflect.Descriptor instead.

func (*GetInfoByBlockHashReq) GetHash

func (x *GetInfoByBlockHashReq) GetHash() string

func (*GetInfoByBlockHashReq) ProtoMessage

func (*GetInfoByBlockHashReq) ProtoMessage()

func (*GetInfoByBlockHashReq) ProtoReflect

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

func (*GetInfoByBlockHashReq) Reset

func (x *GetInfoByBlockHashReq) Reset()

func (*GetInfoByBlockHashReq) String

func (x *GetInfoByBlockHashReq) String() string

type GetInfoByBlockHashResp

type GetInfoByBlockHashResp struct {
	Number         string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	Nonce          string `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Time           string `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
	Txs            string `protobuf:"bytes,4,opt,name=txs,proto3" json:"txs,omitempty"`
	Reward         string `protobuf:"bytes,5,opt,name=reward,proto3" json:"reward,omitempty"`
	Difficulty     string `protobuf:"bytes,6,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
	Coinbase       string `protobuf:"bytes,7,opt,name=coinbase,proto3" json:"coinbase,omitempty"`
	BlockHash      string `protobuf:"bytes,8,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	PrevBlockHash  string `protobuf:"bytes,9,opt,name=prevBlockHash,proto3" json:"prevBlockHash,omitempty"`
	StateTreeRoot  string `protobuf:"bytes,10,opt,name=stateTreeRoot,proto3" json:"stateTreeRoot,omitempty"`
	MerkleTreeRoot string `protobuf:"bytes,11,opt,name=merkleTreeRoot,proto3" json:"merkleTreeRoot,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInfoByBlockHashResp) Descriptor deprecated

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

Deprecated: Use GetInfoByBlockHashResp.ProtoReflect.Descriptor instead.

func (*GetInfoByBlockHashResp) GetBlockHash

func (x *GetInfoByBlockHashResp) GetBlockHash() string

func (*GetInfoByBlockHashResp) GetCoinbase

func (x *GetInfoByBlockHashResp) GetCoinbase() string

func (*GetInfoByBlockHashResp) GetDifficulty

func (x *GetInfoByBlockHashResp) GetDifficulty() string

func (*GetInfoByBlockHashResp) GetMerkleTreeRoot

func (x *GetInfoByBlockHashResp) GetMerkleTreeRoot() string

func (*GetInfoByBlockHashResp) GetNonce

func (x *GetInfoByBlockHashResp) GetNonce() string

func (*GetInfoByBlockHashResp) GetNumber

func (x *GetInfoByBlockHashResp) GetNumber() string

func (*GetInfoByBlockHashResp) GetPrevBlockHash

func (x *GetInfoByBlockHashResp) GetPrevBlockHash() string

func (*GetInfoByBlockHashResp) GetReward

func (x *GetInfoByBlockHashResp) GetReward() string

func (*GetInfoByBlockHashResp) GetStateTreeRoot

func (x *GetInfoByBlockHashResp) GetStateTreeRoot() string

func (*GetInfoByBlockHashResp) GetTime

func (x *GetInfoByBlockHashResp) GetTime() string

func (*GetInfoByBlockHashResp) GetTxs

func (x *GetInfoByBlockHashResp) GetTxs() string

func (*GetInfoByBlockHashResp) ProtoMessage

func (*GetInfoByBlockHashResp) ProtoMessage()

func (*GetInfoByBlockHashResp) ProtoReflect

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

func (*GetInfoByBlockHashResp) Reset

func (x *GetInfoByBlockHashResp) Reset()

func (*GetInfoByBlockHashResp) String

func (x *GetInfoByBlockHashResp) String() string

type GetInfoByBlockNumReq

type GetInfoByBlockNumReq struct {
	Num string `protobuf:"bytes,1,opt,name=num,proto3" json:"num,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInfoByBlockNumReq) Descriptor deprecated

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

Deprecated: Use GetInfoByBlockNumReq.ProtoReflect.Descriptor instead.

func (*GetInfoByBlockNumReq) GetNum

func (x *GetInfoByBlockNumReq) GetNum() string

func (*GetInfoByBlockNumReq) ProtoMessage

func (*GetInfoByBlockNumReq) ProtoMessage()

func (*GetInfoByBlockNumReq) ProtoReflect

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

func (*GetInfoByBlockNumReq) Reset

func (x *GetInfoByBlockNumReq) Reset()

func (*GetInfoByBlockNumReq) String

func (x *GetInfoByBlockNumReq) String() string

type GetInfoByBlockNumResp

type GetInfoByBlockNumResp struct {
	Number         string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	Nonce          string `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Time           string `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
	Txs            string `protobuf:"bytes,4,opt,name=txs,proto3" json:"txs,omitempty"`
	Reward         string `protobuf:"bytes,5,opt,name=reward,proto3" json:"reward,omitempty"`
	Difficulty     string `protobuf:"bytes,6,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
	Coinbase       string `protobuf:"bytes,7,opt,name=coinbase,proto3" json:"coinbase,omitempty"`
	BlockHash      string `protobuf:"bytes,8,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	PrevBlockHash  string `protobuf:"bytes,9,opt,name=prevBlockHash,proto3" json:"prevBlockHash,omitempty"`
	StateTreeRoot  string `protobuf:"bytes,10,opt,name=stateTreeRoot,proto3" json:"stateTreeRoot,omitempty"`
	MerkleTreeRoot string `protobuf:"bytes,11,opt,name=merkleTreeRoot,proto3" json:"merkleTreeRoot,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInfoByBlockNumResp) Descriptor deprecated

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

Deprecated: Use GetInfoByBlockNumResp.ProtoReflect.Descriptor instead.

func (*GetInfoByBlockNumResp) GetBlockHash

func (x *GetInfoByBlockNumResp) GetBlockHash() string

func (*GetInfoByBlockNumResp) GetCoinbase

func (x *GetInfoByBlockNumResp) GetCoinbase() string

func (*GetInfoByBlockNumResp) GetDifficulty

func (x *GetInfoByBlockNumResp) GetDifficulty() string

func (*GetInfoByBlockNumResp) GetMerkleTreeRoot

func (x *GetInfoByBlockNumResp) GetMerkleTreeRoot() string

func (*GetInfoByBlockNumResp) GetNonce

func (x *GetInfoByBlockNumResp) GetNonce() string

func (*GetInfoByBlockNumResp) GetNumber

func (x *GetInfoByBlockNumResp) GetNumber() string

func (*GetInfoByBlockNumResp) GetPrevBlockHash

func (x *GetInfoByBlockNumResp) GetPrevBlockHash() string

func (*GetInfoByBlockNumResp) GetReward

func (x *GetInfoByBlockNumResp) GetReward() string

func (*GetInfoByBlockNumResp) GetStateTreeRoot

func (x *GetInfoByBlockNumResp) GetStateTreeRoot() string

func (*GetInfoByBlockNumResp) GetTime

func (x *GetInfoByBlockNumResp) GetTime() string

func (*GetInfoByBlockNumResp) GetTxs

func (x *GetInfoByBlockNumResp) GetTxs() string

func (*GetInfoByBlockNumResp) ProtoMessage

func (*GetInfoByBlockNumResp) ProtoMessage()

func (*GetInfoByBlockNumResp) ProtoReflect

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

func (*GetInfoByBlockNumResp) Reset

func (x *GetInfoByBlockNumResp) Reset()

func (*GetInfoByBlockNumResp) String

func (x *GetInfoByBlockNumResp) String() string

type GetInfoByTxHashReq

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

func (*GetInfoByTxHashReq) Descriptor deprecated

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

Deprecated: Use GetInfoByTxHashReq.ProtoReflect.Descriptor instead.

func (*GetInfoByTxHashReq) GetHash

func (x *GetInfoByTxHashReq) GetHash() string

func (*GetInfoByTxHashReq) ProtoMessage

func (*GetInfoByTxHashReq) ProtoMessage()

func (*GetInfoByTxHashReq) ProtoReflect

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

func (*GetInfoByTxHashReq) Reset

func (x *GetInfoByTxHashReq) Reset()

func (*GetInfoByTxHashReq) String

func (x *GetInfoByTxHashReq) String() string

type GetInfoByTxHashResp

type GetInfoByTxHashResp struct {
	TxHash string `protobuf:"bytes,1,opt,name=txHash,proto3" json:"txHash,omitempty"`
	From   string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	To     string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	Time   string `protobuf:"bytes,5,opt,name=time,proto3" json:"time,omitempty"`
	Block  string `protobuf:"bytes,6,opt,name=block,proto3" json:"block,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInfoByTxHashResp) Descriptor deprecated

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

Deprecated: Use GetInfoByTxHashResp.ProtoReflect.Descriptor instead.

func (*GetInfoByTxHashResp) GetAmount

func (x *GetInfoByTxHashResp) GetAmount() string

func (*GetInfoByTxHashResp) GetBlock

func (x *GetInfoByTxHashResp) GetBlock() string

func (*GetInfoByTxHashResp) GetFrom

func (x *GetInfoByTxHashResp) GetFrom() string

func (*GetInfoByTxHashResp) GetTime

func (x *GetInfoByTxHashResp) GetTime() string

func (*GetInfoByTxHashResp) GetTo

func (x *GetInfoByTxHashResp) GetTo() string

func (*GetInfoByTxHashResp) GetTxHash

func (x *GetInfoByTxHashResp) GetTxHash() string

func (*GetInfoByTxHashResp) ProtoMessage

func (*GetInfoByTxHashResp) ProtoMessage()

func (*GetInfoByTxHashResp) ProtoReflect

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

func (*GetInfoByTxHashResp) Reset

func (x *GetInfoByTxHashResp) Reset()

func (*GetInfoByTxHashResp) String

func (x *GetInfoByTxHashResp) String() string

type GetTxPoolReq

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

func (*GetTxPoolReq) Descriptor deprecated

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

Deprecated: Use GetTxPoolReq.ProtoReflect.Descriptor instead.

func (*GetTxPoolReq) ProtoMessage

func (*GetTxPoolReq) ProtoMessage()

func (*GetTxPoolReq) ProtoReflect

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

func (*GetTxPoolReq) Reset

func (x *GetTxPoolReq) Reset()

func (*GetTxPoolReq) String

func (x *GetTxPoolReq) String() string

type GetTxPoolResp

type GetTxPoolResp struct {
	Txs []*GetTxPoolResp_Tx `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTxPoolResp) Descriptor deprecated

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

Deprecated: Use GetTxPoolResp.ProtoReflect.Descriptor instead.

func (*GetTxPoolResp) GetTxs

func (x *GetTxPoolResp) GetTxs() []*GetTxPoolResp_Tx

func (*GetTxPoolResp) ProtoMessage

func (*GetTxPoolResp) ProtoMessage()

func (*GetTxPoolResp) ProtoReflect

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

func (*GetTxPoolResp) Reset

func (x *GetTxPoolResp) Reset()

func (*GetTxPoolResp) String

func (x *GetTxPoolResp) String() string

type GetTxPoolResp_Tx

type GetTxPoolResp_Tx struct {
	TxHash string `protobuf:"bytes,1,opt,name=txHash,proto3" json:"txHash,omitempty"`
	From   string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	To     string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	Time   string `protobuf:"bytes,5,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTxPoolResp_Tx) Descriptor deprecated

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

Deprecated: Use GetTxPoolResp_Tx.ProtoReflect.Descriptor instead.

func (*GetTxPoolResp_Tx) GetAmount

func (x *GetTxPoolResp_Tx) GetAmount() string

func (*GetTxPoolResp_Tx) GetFrom

func (x *GetTxPoolResp_Tx) GetFrom() string

func (*GetTxPoolResp_Tx) GetTime

func (x *GetTxPoolResp_Tx) GetTime() string

func (*GetTxPoolResp_Tx) GetTo

func (x *GetTxPoolResp_Tx) GetTo() string

func (*GetTxPoolResp_Tx) GetTxHash

func (x *GetTxPoolResp_Tx) GetTxHash() string

func (*GetTxPoolResp_Tx) ProtoMessage

func (*GetTxPoolResp_Tx) ProtoMessage()

func (*GetTxPoolResp_Tx) ProtoReflect

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

func (*GetTxPoolResp_Tx) Reset

func (x *GetTxPoolResp_Tx) Reset()

func (*GetTxPoolResp_Tx) String

func (x *GetTxPoolResp_Tx) String() string

type MineReq

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

func (*MineReq) Descriptor deprecated

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

Deprecated: Use MineReq.ProtoReflect.Descriptor instead.

func (*MineReq) ProtoMessage

func (*MineReq) ProtoMessage()

func (*MineReq) ProtoReflect

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

func (*MineReq) Reset

func (x *MineReq) Reset()

func (*MineReq) String

func (x *MineReq) String() string

type MineResp

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

func (*MineResp) Descriptor deprecated

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

Deprecated: Use MineResp.ProtoReflect.Descriptor instead.

func (*MineResp) GetNonce

func (x *MineResp) GetNonce() string

func (*MineResp) ProtoMessage

func (*MineResp) ProtoMessage()

func (*MineResp) ProtoReflect

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

func (*MineResp) Reset

func (x *MineResp) Reset()

func (*MineResp) String

func (x *MineResp) String() string

type NewAccountReq

type NewAccountReq struct {
	Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*NewAccountReq) Descriptor deprecated

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

Deprecated: Use NewAccountReq.ProtoReflect.Descriptor instead.

func (*NewAccountReq) GetPassword

func (x *NewAccountReq) GetPassword() string

func (*NewAccountReq) ProtoMessage

func (*NewAccountReq) ProtoMessage()

func (*NewAccountReq) ProtoReflect

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

func (*NewAccountReq) Reset

func (x *NewAccountReq) Reset()

func (*NewAccountReq) String

func (x *NewAccountReq) String() string

type NewAccountResp

type NewAccountResp struct {
	Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	// contains filtered or unexported fields
}

func (*NewAccountResp) Descriptor deprecated

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

Deprecated: Use NewAccountResp.ProtoReflect.Descriptor instead.

func (*NewAccountResp) GetAccount

func (x *NewAccountResp) GetAccount() string

func (*NewAccountResp) ProtoMessage

func (*NewAccountResp) ProtoMessage()

func (*NewAccountResp) ProtoReflect

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

func (*NewAccountResp) Reset

func (x *NewAccountResp) Reset()

func (*NewAccountResp) String

func (x *NewAccountResp) String() string

type NewBlockReq

type NewBlockReq struct {
	Nonce string `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Miner string `protobuf:"bytes,2,opt,name=miner,proto3" json:"miner,omitempty"`
	// contains filtered or unexported fields
}

func (*NewBlockReq) Descriptor deprecated

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

Deprecated: Use NewBlockReq.ProtoReflect.Descriptor instead.

func (*NewBlockReq) GetMiner

func (x *NewBlockReq) GetMiner() string

func (*NewBlockReq) GetNonce

func (x *NewBlockReq) GetNonce() string

func (*NewBlockReq) ProtoMessage

func (*NewBlockReq) ProtoMessage()

func (*NewBlockReq) ProtoReflect

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

func (*NewBlockReq) Reset

func (x *NewBlockReq) Reset()

func (*NewBlockReq) String

func (x *NewBlockReq) String() string

type NewBlockResp

type NewBlockResp struct {
	State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*NewBlockResp) Descriptor deprecated

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

Deprecated: Use NewBlockResp.ProtoReflect.Descriptor instead.

func (*NewBlockResp) GetState

func (x *NewBlockResp) GetState() string

func (*NewBlockResp) ProtoMessage

func (*NewBlockResp) ProtoMessage()

func (*NewBlockResp) ProtoReflect

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

func (*NewBlockResp) Reset

func (x *NewBlockResp) Reset()

func (*NewBlockResp) String

func (x *NewBlockResp) String() string

type NewTxReq

type NewTxReq struct {
	Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
	From     string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	To       string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	Amount   string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*NewTxReq) Descriptor deprecated

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

Deprecated: Use NewTxReq.ProtoReflect.Descriptor instead.

func (*NewTxReq) GetAmount

func (x *NewTxReq) GetAmount() string

func (*NewTxReq) GetFrom

func (x *NewTxReq) GetFrom() string

func (*NewTxReq) GetPassword

func (x *NewTxReq) GetPassword() string

func (*NewTxReq) GetTo

func (x *NewTxReq) GetTo() string

func (*NewTxReq) ProtoMessage

func (*NewTxReq) ProtoMessage()

func (*NewTxReq) ProtoReflect

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

func (*NewTxReq) Reset

func (x *NewTxReq) Reset()

func (*NewTxReq) String

func (x *NewTxReq) String() string

type NewTxResp

type NewTxResp struct {
	State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*NewTxResp) Descriptor deprecated

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

Deprecated: Use NewTxResp.ProtoReflect.Descriptor instead.

func (*NewTxResp) GetState

func (x *NewTxResp) GetState() string

func (*NewTxResp) ProtoMessage

func (*NewTxResp) ProtoMessage()

func (*NewTxResp) ProtoReflect

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

func (*NewTxResp) Reset

func (x *NewTxResp) Reset()

func (*NewTxResp) String

func (x *NewTxResp) String() string

type RpcClient

type RpcClient interface {
	NewAccount(ctx context.Context, in *NewAccountReq, opts ...grpc.CallOption) (*NewAccountResp, error)
	GetInfoByBlockNum(ctx context.Context, in *GetInfoByBlockNumReq, opts ...grpc.CallOption) (*GetInfoByBlockNumResp, error)
	GetInfoByBlockHash(ctx context.Context, in *GetInfoByBlockHashReq, opts ...grpc.CallOption) (*GetInfoByBlockHashResp, error)
	NewTx(ctx context.Context, in *NewTxReq, opts ...grpc.CallOption) (*NewTxResp, error)
	GetTxPool(ctx context.Context, in *GetTxPoolReq, opts ...grpc.CallOption) (*GetTxPoolResp, error)
	GetInfoByTxHash(ctx context.Context, in *GetInfoByTxHashReq, opts ...grpc.CallOption) (*GetInfoByTxHashResp, error)
	Mine(ctx context.Context, in *MineReq, opts ...grpc.CallOption) (*MineResp, error)
	NewBlock(ctx context.Context, in *NewBlockReq, opts ...grpc.CallOption) (*NewBlockResp, error)
	GetAllBlock(ctx context.Context, in *GetAllBlockReq, opts ...grpc.CallOption) (*GetAllBlockResp, error)
	GetAllTx(ctx context.Context, in *GetAllTxReq, opts ...grpc.CallOption) (*GetAllTxResp, error)
	GetBalance(ctx context.Context, in *GetBalanceReq, opts ...grpc.CallOption) (*GetBalanceResp, error)
}

RpcClient is the client API for Rpc 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 NewRpcClient

func NewRpcClient(cc grpc.ClientConnInterface) RpcClient

type RpcServer

RpcServer is the server API for Rpc service. All implementations must embed UnimplementedRpcServer for forward compatibility

type UnimplementedRpcServer

type UnimplementedRpcServer struct {
}

UnimplementedRpcServer must be embedded to have forward compatible implementations.

func (UnimplementedRpcServer) GetAllBlock

func (UnimplementedRpcServer) GetAllTx

func (UnimplementedRpcServer) GetBalance

func (UnimplementedRpcServer) GetInfoByBlockHash

func (UnimplementedRpcServer) GetInfoByBlockNum

func (UnimplementedRpcServer) GetInfoByTxHash

func (UnimplementedRpcServer) GetTxPool

func (UnimplementedRpcServer) Mine

func (UnimplementedRpcServer) NewAccount

func (UnimplementedRpcServer) NewBlock

func (UnimplementedRpcServer) NewTx

type UnsafeRpcServer

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

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

Jump to

Keyboard shortcuts

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