api

package
v0.0.0-...-c598886 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2018 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package api is a generated protocol buffer package.

It is generated from these files:

api/api.proto

It has these top-level messages:

Return
BlockReference
WitnessList
AssetIssueList
BlockList
TransactionList
NodeList
Node
Address
EmptyMessage
NumberMessage
BytesMessage
TimeMessage
BlockLimit
TransactionLimit
AccountPaginated
TimePaginatedMessage
AccountNetMessage

Index

Constants

This section is empty.

Variables

View Source
var ReturnResponseCode_name = map[int32]string{
	0:  "SUCCESS",
	1:  "SIGERROR",
	2:  "CONTRACT_VALIDATE_ERROR",
	3:  "CONTRACT_EXE_ERROR",
	4:  "BANDWITH_ERROR",
	5:  "DUP_TRANSACTION_ERROR",
	6:  "TAPOS_ERROR",
	7:  "TOO_BIG_TRANSACTION_ERROR",
	8:  "TRANSACTION_EXPIRATION_ERROR",
	9:  "SERVER_BUSY",
	20: "OTHER_ERROR",
}
View Source
var ReturnResponseCode_value = map[string]int32{
	"SUCCESS":                      0,
	"SIGERROR":                     1,
	"CONTRACT_VALIDATE_ERROR":      2,
	"CONTRACT_EXE_ERROR":           3,
	"BANDWITH_ERROR":               4,
	"DUP_TRANSACTION_ERROR":        5,
	"TAPOS_ERROR":                  6,
	"TOO_BIG_TRANSACTION_ERROR":    7,
	"TRANSACTION_EXPIRATION_ERROR": 8,
	"SERVER_BUSY":                  9,
	"OTHER_ERROR":                  20,
}

Functions

func RegisterDatabaseServer

func RegisterDatabaseServer(s *grpc.Server, srv DatabaseServer)

func RegisterNetworkServer

func RegisterNetworkServer(s *grpc.Server, srv NetworkServer)

func RegisterWalletExtensionServer

func RegisterWalletExtensionServer(s *grpc.Server, srv WalletExtensionServer)

func RegisterWalletServer

func RegisterWalletServer(s *grpc.Server, srv WalletServer)

func RegisterWalletSolidityServer

func RegisterWalletSolidityServer(s *grpc.Server, srv WalletSolidityServer)

Types

type AccountNetMessage

type AccountNetMessage struct {
	FreeNetUsed    int64            `protobuf:"varint,1,opt,name=freeNetUsed" json:"freeNetUsed,omitempty"`
	FreeNetLimit   int64            `protobuf:"varint,2,opt,name=freeNetLimit" json:"freeNetLimit,omitempty"`
	NetUsed        int64            `protobuf:"varint,3,opt,name=NetUsed" json:"NetUsed,omitempty"`
	NetLimit       int64            `protobuf:"varint,4,opt,name=NetLimit" json:"NetLimit,omitempty"`
	AssetNetUsed   map[string]int64 `` /* 145-byte string literal not displayed */
	AssetNetLimit  map[string]int64 `` /* 147-byte string literal not displayed */
	TotalNetLimit  int64            `protobuf:"varint,7,opt,name=TotalNetLimit" json:"TotalNetLimit,omitempty"`
	TotalNetWeight int64            `protobuf:"varint,8,opt,name=TotalNetWeight" json:"TotalNetWeight,omitempty"`
}

func (*AccountNetMessage) Descriptor

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

func (*AccountNetMessage) GetAssetNetLimit

func (m *AccountNetMessage) GetAssetNetLimit() map[string]int64

func (*AccountNetMessage) GetAssetNetUsed

func (m *AccountNetMessage) GetAssetNetUsed() map[string]int64

func (*AccountNetMessage) GetFreeNetLimit

func (m *AccountNetMessage) GetFreeNetLimit() int64

func (*AccountNetMessage) GetFreeNetUsed

func (m *AccountNetMessage) GetFreeNetUsed() int64

func (*AccountNetMessage) GetNetLimit

func (m *AccountNetMessage) GetNetLimit() int64

func (*AccountNetMessage) GetNetUsed

func (m *AccountNetMessage) GetNetUsed() int64

func (*AccountNetMessage) GetTotalNetLimit

func (m *AccountNetMessage) GetTotalNetLimit() int64

func (*AccountNetMessage) GetTotalNetWeight

func (m *AccountNetMessage) GetTotalNetWeight() int64

func (*AccountNetMessage) ProtoMessage

func (*AccountNetMessage) ProtoMessage()

func (*AccountNetMessage) Reset

func (m *AccountNetMessage) Reset()

func (*AccountNetMessage) String

func (m *AccountNetMessage) String() string

type AccountPaginated

type AccountPaginated struct {
	Account *protocol1.Account `protobuf:"bytes,1,opt,name=account" json:"account,omitempty"`
	Offset  int64              `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"`
	Limit   int64              `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"`
}

func (*AccountPaginated) Descriptor

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

func (*AccountPaginated) GetAccount

func (m *AccountPaginated) GetAccount() *protocol1.Account

func (*AccountPaginated) GetLimit

func (m *AccountPaginated) GetLimit() int64

func (*AccountPaginated) GetOffset

func (m *AccountPaginated) GetOffset() int64

func (*AccountPaginated) ProtoMessage

func (*AccountPaginated) ProtoMessage()

func (*AccountPaginated) Reset

func (m *AccountPaginated) Reset()

func (*AccountPaginated) String

func (m *AccountPaginated) String() string

type Address

type Address struct {
	Host []byte `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Port int32  `protobuf:"varint,2,opt,name=port" json:"port,omitempty"`
}

Gossip node address

func (*Address) Descriptor

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

func (*Address) GetHost

func (m *Address) GetHost() []byte

func (*Address) GetPort

func (m *Address) GetPort() int32

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) String

func (m *Address) String() string

type AssetIssueList

type AssetIssueList struct {
	AssetIssue []*protocol2.AssetIssueContract `protobuf:"bytes,1,rep,name=assetIssue" json:"assetIssue,omitempty"`
}

func (*AssetIssueList) Descriptor

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

func (*AssetIssueList) GetAssetIssue

func (m *AssetIssueList) GetAssetIssue() []*protocol2.AssetIssueContract

func (*AssetIssueList) ProtoMessage

func (*AssetIssueList) ProtoMessage()

func (*AssetIssueList) Reset

func (m *AssetIssueList) Reset()

func (*AssetIssueList) String

func (m *AssetIssueList) String() string

type BlockLimit

type BlockLimit struct {
	StartNum int64 `protobuf:"varint,1,opt,name=startNum" json:"startNum,omitempty"`
	EndNum   int64 `protobuf:"varint,2,opt,name=endNum" json:"endNum,omitempty"`
}

func (*BlockLimit) Descriptor

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

func (*BlockLimit) GetEndNum

func (m *BlockLimit) GetEndNum() int64

func (*BlockLimit) GetStartNum

func (m *BlockLimit) GetStartNum() int64

func (*BlockLimit) ProtoMessage

func (*BlockLimit) ProtoMessage()

func (*BlockLimit) Reset

func (m *BlockLimit) Reset()

func (*BlockLimit) String

func (m *BlockLimit) String() string

type BlockList

type BlockList struct {
	Block []*protocol1.Block `protobuf:"bytes,1,rep,name=block" json:"block,omitempty"`
}

func (*BlockList) Descriptor

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

func (*BlockList) GetBlock

func (m *BlockList) GetBlock() []*protocol1.Block

func (*BlockList) ProtoMessage

func (*BlockList) ProtoMessage()

func (*BlockList) Reset

func (m *BlockList) Reset()

func (*BlockList) String

func (m *BlockList) String() string

type BlockReference

type BlockReference struct {
	BlockNum  int64  `protobuf:"varint,1,opt,name=block_num,json=blockNum" json:"block_num,omitempty"`
	BlockHash []byte `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
}

func (*BlockReference) Descriptor

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

func (*BlockReference) GetBlockHash

func (m *BlockReference) GetBlockHash() []byte

func (*BlockReference) GetBlockNum

func (m *BlockReference) GetBlockNum() int64

func (*BlockReference) ProtoMessage

func (*BlockReference) ProtoMessage()

func (*BlockReference) Reset

func (m *BlockReference) Reset()

func (*BlockReference) String

func (m *BlockReference) String() string

type BytesMessage

type BytesMessage struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

func (*BytesMessage) Descriptor

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

func (*BytesMessage) GetValue

func (m *BytesMessage) GetValue() []byte

func (*BytesMessage) ProtoMessage

func (*BytesMessage) ProtoMessage()

func (*BytesMessage) Reset

func (m *BytesMessage) Reset()

func (*BytesMessage) String

func (m *BytesMessage) String() string

type DatabaseClient

type DatabaseClient interface {
	// for tapos
	GetBlockReference(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*BlockReference, error)
	GetDynamicProperties(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*protocol1.DynamicProperties, error)
	GetNowBlock(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*protocol1.Block, error)
	GetBlockByNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*protocol1.Block, error)
}

func NewDatabaseClient

func NewDatabaseClient(cc *grpc.ClientConn) DatabaseClient

type DatabaseServer

type DatabaseServer interface {
	// for tapos
	GetBlockReference(context.Context, *EmptyMessage) (*BlockReference, error)
	GetDynamicProperties(context.Context, *EmptyMessage) (*protocol1.DynamicProperties, error)
	GetNowBlock(context.Context, *EmptyMessage) (*protocol1.Block, error)
	GetBlockByNum(context.Context, *NumberMessage) (*protocol1.Block, error)
}

type EmptyMessage

type EmptyMessage struct {
}

func (*EmptyMessage) Descriptor

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

func (*EmptyMessage) ProtoMessage

func (*EmptyMessage) ProtoMessage()

func (*EmptyMessage) Reset

func (m *EmptyMessage) Reset()

func (*EmptyMessage) String

func (m *EmptyMessage) String() string

type NetworkClient

type NetworkClient interface {
}

func NewNetworkClient

func NewNetworkClient(cc *grpc.ClientConn) NetworkClient

type NetworkServer

type NetworkServer interface {
}

type Node

type Node struct {
	Address *Address `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
}

Gossip node

func (*Node) Descriptor

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

func (*Node) GetAddress

func (m *Node) GetAddress() *Address

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

type NodeList

type NodeList struct {
	Nodes []*Node `protobuf:"bytes,1,rep,name=nodes" json:"nodes,omitempty"`
}

Gossip node list

func (*NodeList) Descriptor

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

func (*NodeList) GetNodes

func (m *NodeList) GetNodes() []*Node

func (*NodeList) ProtoMessage

func (*NodeList) ProtoMessage()

func (*NodeList) Reset

func (m *NodeList) Reset()

func (*NodeList) String

func (m *NodeList) String() string

type NumberMessage

type NumberMessage struct {
	Num int64 `protobuf:"varint,1,opt,name=num" json:"num,omitempty"`
}

func (*NumberMessage) Descriptor

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

func (*NumberMessage) GetNum

func (m *NumberMessage) GetNum() int64

func (*NumberMessage) ProtoMessage

func (*NumberMessage) ProtoMessage()

func (*NumberMessage) Reset

func (m *NumberMessage) Reset()

func (*NumberMessage) String

func (m *NumberMessage) String() string

type Return

type Return struct {
	Result  bool               `protobuf:"varint,1,opt,name=result" json:"result,omitempty"`
	Code    ReturnResponseCode `protobuf:"varint,2,opt,name=code,enum=protocol.ReturnResponseCode" json:"code,omitempty"`
	Message []byte             `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
}

func (*Return) Descriptor

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

func (*Return) GetCode

func (m *Return) GetCode() ReturnResponseCode

func (*Return) GetMessage

func (m *Return) GetMessage() []byte

func (*Return) GetResult

func (m *Return) GetResult() bool

func (*Return) ProtoMessage

func (*Return) ProtoMessage()

func (*Return) Reset

func (m *Return) Reset()

func (*Return) String

func (m *Return) String() string

type ReturnResponseCode

type ReturnResponseCode int32
const (
	Return_SUCCESS                      ReturnResponseCode = 0
	Return_SIGERROR                     ReturnResponseCode = 1
	Return_CONTRACT_VALIDATE_ERROR      ReturnResponseCode = 2
	Return_CONTRACT_EXE_ERROR           ReturnResponseCode = 3
	Return_BANDWITH_ERROR               ReturnResponseCode = 4
	Return_DUP_TRANSACTION_ERROR        ReturnResponseCode = 5
	Return_TAPOS_ERROR                  ReturnResponseCode = 6
	Return_TOO_BIG_TRANSACTION_ERROR    ReturnResponseCode = 7
	Return_TRANSACTION_EXPIRATION_ERROR ReturnResponseCode = 8
	Return_SERVER_BUSY                  ReturnResponseCode = 9
	Return_OTHER_ERROR                  ReturnResponseCode = 20
)

func (ReturnResponseCode) EnumDescriptor

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

func (ReturnResponseCode) String

func (x ReturnResponseCode) String() string

type TimeMessage

type TimeMessage struct {
	BeginInMilliseconds int64 `protobuf:"varint,1,opt,name=beginInMilliseconds" json:"beginInMilliseconds,omitempty"`
	EndInMilliseconds   int64 `protobuf:"varint,2,opt,name=endInMilliseconds" json:"endInMilliseconds,omitempty"`
}

func (*TimeMessage) Descriptor

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

func (*TimeMessage) GetBeginInMilliseconds

func (m *TimeMessage) GetBeginInMilliseconds() int64

func (*TimeMessage) GetEndInMilliseconds

func (m *TimeMessage) GetEndInMilliseconds() int64

func (*TimeMessage) ProtoMessage

func (*TimeMessage) ProtoMessage()

func (*TimeMessage) Reset

func (m *TimeMessage) Reset()

func (*TimeMessage) String

func (m *TimeMessage) String() string

type TimePaginatedMessage

type TimePaginatedMessage struct {
	TimeMessage *TimeMessage `protobuf:"bytes,1,opt,name=timeMessage" json:"timeMessage,omitempty"`
	Offset      int64        `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"`
	Limit       int64        `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"`
}

func (*TimePaginatedMessage) Descriptor

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

func (*TimePaginatedMessage) GetLimit

func (m *TimePaginatedMessage) GetLimit() int64

func (*TimePaginatedMessage) GetOffset

func (m *TimePaginatedMessage) GetOffset() int64

func (*TimePaginatedMessage) GetTimeMessage

func (m *TimePaginatedMessage) GetTimeMessage() *TimeMessage

func (*TimePaginatedMessage) ProtoMessage

func (*TimePaginatedMessage) ProtoMessage()

func (*TimePaginatedMessage) Reset

func (m *TimePaginatedMessage) Reset()

func (*TimePaginatedMessage) String

func (m *TimePaginatedMessage) String() string

type TransactionLimit

type TransactionLimit struct {
	TransactionId []byte `protobuf:"bytes,1,opt,name=transactionId,proto3" json:"transactionId,omitempty"`
	LimitNum      int64  `protobuf:"varint,2,opt,name=limitNum" json:"limitNum,omitempty"`
}

func (*TransactionLimit) Descriptor

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

func (*TransactionLimit) GetLimitNum

func (m *TransactionLimit) GetLimitNum() int64

func (*TransactionLimit) GetTransactionId

func (m *TransactionLimit) GetTransactionId() []byte

func (*TransactionLimit) ProtoMessage

func (*TransactionLimit) ProtoMessage()

func (*TransactionLimit) Reset

func (m *TransactionLimit) Reset()

func (*TransactionLimit) String

func (m *TransactionLimit) String() string

type TransactionList

type TransactionList struct {
	Transaction []*protocol1.Transaction `protobuf:"bytes,1,rep,name=transaction" json:"transaction,omitempty"`
}

func (*TransactionList) Descriptor

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

func (*TransactionList) GetTransaction

func (m *TransactionList) GetTransaction() []*protocol1.Transaction

func (*TransactionList) ProtoMessage

func (*TransactionList) ProtoMessage()

func (*TransactionList) Reset

func (m *TransactionList) Reset()

func (*TransactionList) String

func (m *TransactionList) String() string

type WalletClient

type WalletClient interface {
	GetAccount(ctx context.Context, in *protocol1.Account, opts ...grpc.CallOption) (*protocol1.Account, error)
	CreateTransaction(ctx context.Context, in *protocol2.TransferContract, opts ...grpc.CallOption) (*protocol1.Transaction, error)
	BroadcastTransaction(ctx context.Context, in *protocol1.Transaction, opts ...grpc.CallOption) (*Return, error)
	UpdateAccount(ctx context.Context, in *protocol2.AccountUpdateContract, opts ...grpc.CallOption) (*protocol1.Transaction, error)
	VoteWitnessAccount(ctx context.Context, in *protocol2.VoteWitnessContract, opts ...grpc.CallOption) (*protocol1.Transaction, error)
	CreateAssetIssue(ctx context.Context, in *protocol2.AssetIssueContract, opts ...grpc.CallOption) (*protocol1.Transaction, error)
	UpdateWitness(ctx context.Context, in *protocol2.WitnessUpdateContract, opts ...grpc.CallOption) (*protocol1.Transaction, error)
	CreateAccount(ctx context.Context, in *protocol2.AccountCreateContract, opts ...grpc.CallOption) (*protocol1.Transaction, error)
	CreateWitness(ctx context.Context, in *protocol2.WitnessCreateContract, opts ...grpc.CallOption) (*protocol1.Transaction, error)
	TransferAsset(ctx context.Context, in *protocol2.TransferAssetContract, opts ...grpc.CallOption) (*protocol1.Transaction, error)
	ParticipateAssetIssue(ctx context.Context, in *protocol2.ParticipateAssetIssueContract, opts ...grpc.CallOption) (*protocol1.Transaction, error)
	FreezeBalance(ctx context.Context, in *protocol2.FreezeBalanceContract, opts ...grpc.CallOption) (*protocol1.Transaction, error)
	UnfreezeBalance(ctx context.Context, in *protocol2.UnfreezeBalanceContract, opts ...grpc.CallOption) (*protocol1.Transaction, error)
	UnfreezeAsset(ctx context.Context, in *protocol2.UnfreezeAssetContract, opts ...grpc.CallOption) (*protocol1.Transaction, error)
	WithdrawBalance(ctx context.Context, in *protocol2.WithdrawBalanceContract, opts ...grpc.CallOption) (*protocol1.Transaction, error)
	UpdateAsset(ctx context.Context, in *protocol2.UpdateAssetContract, opts ...grpc.CallOption) (*protocol1.Transaction, error)
	ListNodes(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NodeList, error)
	GetAssetIssueByAccount(ctx context.Context, in *protocol1.Account, opts ...grpc.CallOption) (*AssetIssueList, error)
	GetAccountNet(ctx context.Context, in *protocol1.Account, opts ...grpc.CallOption) (*AccountNetMessage, error)
	GetAssetIssueByName(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*protocol2.AssetIssueContract, error)
	GetNowBlock(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*protocol1.Block, error)
	GetBlockByNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*protocol1.Block, error)
	GetBlockById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*protocol1.Block, error)
	GetBlockByLimitNext(ctx context.Context, in *BlockLimit, opts ...grpc.CallOption) (*BlockList, error)
	GetBlockByLatestNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*BlockList, error)
	GetTransactionById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*protocol1.Transaction, error)
	ListWitnesses(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*WitnessList, error)
	GetAssetIssueList(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AssetIssueList, error)
	TotalTransaction(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NumberMessage, error)
	GetNextMaintenanceTime(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NumberMessage, error)
}

func NewWalletClient

func NewWalletClient(cc *grpc.ClientConn) WalletClient

type WalletExtensionClient

type WalletExtensionClient interface {
	GetTransactionsFromThis(ctx context.Context, in *AccountPaginated, opts ...grpc.CallOption) (*TransactionList, error)
	GetTransactionsToThis(ctx context.Context, in *AccountPaginated, opts ...grpc.CallOption) (*TransactionList, error)
}

func NewWalletExtensionClient

func NewWalletExtensionClient(cc *grpc.ClientConn) WalletExtensionClient

type WalletExtensionServer

type WalletExtensionServer interface {
	GetTransactionsFromThis(context.Context, *AccountPaginated) (*TransactionList, error)
	GetTransactionsToThis(context.Context, *AccountPaginated) (*TransactionList, error)
}

type WalletServer

type WalletServer interface {
	GetAccount(context.Context, *protocol1.Account) (*protocol1.Account, error)
	CreateTransaction(context.Context, *protocol2.TransferContract) (*protocol1.Transaction, error)
	BroadcastTransaction(context.Context, *protocol1.Transaction) (*Return, error)
	UpdateAccount(context.Context, *protocol2.AccountUpdateContract) (*protocol1.Transaction, error)
	VoteWitnessAccount(context.Context, *protocol2.VoteWitnessContract) (*protocol1.Transaction, error)
	CreateAssetIssue(context.Context, *protocol2.AssetIssueContract) (*protocol1.Transaction, error)
	UpdateWitness(context.Context, *protocol2.WitnessUpdateContract) (*protocol1.Transaction, error)
	CreateAccount(context.Context, *protocol2.AccountCreateContract) (*protocol1.Transaction, error)
	CreateWitness(context.Context, *protocol2.WitnessCreateContract) (*protocol1.Transaction, error)
	TransferAsset(context.Context, *protocol2.TransferAssetContract) (*protocol1.Transaction, error)
	ParticipateAssetIssue(context.Context, *protocol2.ParticipateAssetIssueContract) (*protocol1.Transaction, error)
	FreezeBalance(context.Context, *protocol2.FreezeBalanceContract) (*protocol1.Transaction, error)
	UnfreezeBalance(context.Context, *protocol2.UnfreezeBalanceContract) (*protocol1.Transaction, error)
	UnfreezeAsset(context.Context, *protocol2.UnfreezeAssetContract) (*protocol1.Transaction, error)
	WithdrawBalance(context.Context, *protocol2.WithdrawBalanceContract) (*protocol1.Transaction, error)
	UpdateAsset(context.Context, *protocol2.UpdateAssetContract) (*protocol1.Transaction, error)
	ListNodes(context.Context, *EmptyMessage) (*NodeList, error)
	GetAssetIssueByAccount(context.Context, *protocol1.Account) (*AssetIssueList, error)
	GetAccountNet(context.Context, *protocol1.Account) (*AccountNetMessage, error)
	GetAssetIssueByName(context.Context, *BytesMessage) (*protocol2.AssetIssueContract, error)
	GetNowBlock(context.Context, *EmptyMessage) (*protocol1.Block, error)
	GetBlockByNum(context.Context, *NumberMessage) (*protocol1.Block, error)
	GetBlockById(context.Context, *BytesMessage) (*protocol1.Block, error)
	GetBlockByLimitNext(context.Context, *BlockLimit) (*BlockList, error)
	GetBlockByLatestNum(context.Context, *NumberMessage) (*BlockList, error)
	GetTransactionById(context.Context, *BytesMessage) (*protocol1.Transaction, error)
	ListWitnesses(context.Context, *EmptyMessage) (*WitnessList, error)
	GetAssetIssueList(context.Context, *EmptyMessage) (*AssetIssueList, error)
	TotalTransaction(context.Context, *EmptyMessage) (*NumberMessage, error)
	GetNextMaintenanceTime(context.Context, *EmptyMessage) (*NumberMessage, error)
}

type WalletSolidityClient

type WalletSolidityClient interface {
	GetAccount(ctx context.Context, in *protocol1.Account, opts ...grpc.CallOption) (*protocol1.Account, error)
	ListWitnesses(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*WitnessList, error)
	GetAssetIssueList(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AssetIssueList, error)
	GetNowBlock(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*protocol1.Block, error)
	GetBlockByNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*protocol1.Block, error)
}

func NewWalletSolidityClient

func NewWalletSolidityClient(cc *grpc.ClientConn) WalletSolidityClient

type WalletSolidityServer

type WalletSolidityServer interface {
	GetAccount(context.Context, *protocol1.Account) (*protocol1.Account, error)
	ListWitnesses(context.Context, *EmptyMessage) (*WitnessList, error)
	GetAssetIssueList(context.Context, *EmptyMessage) (*AssetIssueList, error)
	GetNowBlock(context.Context, *EmptyMessage) (*protocol1.Block, error)
	GetBlockByNum(context.Context, *NumberMessage) (*protocol1.Block, error)
}

type WitnessList

type WitnessList struct {
	Witnesses []*protocol1.Witness `protobuf:"bytes,1,rep,name=witnesses" json:"witnesses,omitempty"`
}

func (*WitnessList) Descriptor

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

func (*WitnessList) GetWitnesses

func (m *WitnessList) GetWitnesses() []*protocol1.Witness

func (*WitnessList) ProtoMessage

func (*WitnessList) ProtoMessage()

func (*WitnessList) Reset

func (m *WitnessList) Reset()

func (*WitnessList) String

func (m *WitnessList) String() string

Jump to

Keyboard shortcuts

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