api

package
v0.0.0-...-0f10715 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: MIT Imports: 6 Imported by: 1

Documentation

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,proto3" json:"freeNetUsed,omitempty"`
	FreeNetLimit         int64            `protobuf:"varint,2,opt,name=freeNetLimit,proto3" json:"freeNetLimit,omitempty"`
	NetUsed              int64            `protobuf:"varint,3,opt,name=NetUsed,proto3" json:"NetUsed,omitempty"`
	NetLimit             int64            `protobuf:"varint,4,opt,name=NetLimit,proto3" json:"NetLimit,omitempty"`
	AssetNetUsed         map[string]int64 `` /* 166-byte string literal not displayed */
	AssetNetLimit        map[string]int64 `` /* 168-byte string literal not displayed */
	TotalNetLimit        int64            `protobuf:"varint,7,opt,name=TotalNetLimit,proto3" json:"TotalNetLimit,omitempty"`
	TotalNetWeight       int64            `protobuf:"varint,8,opt,name=TotalNetWeight,proto3" json:"TotalNetWeight,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

deprecated

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

func (*AccountNetMessage) XXX_DiscardUnknown

func (m *AccountNetMessage) XXX_DiscardUnknown()

func (*AccountNetMessage) XXX_Marshal

func (m *AccountNetMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountNetMessage) XXX_Merge

func (dst *AccountNetMessage) XXX_Merge(src proto.Message)

func (*AccountNetMessage) XXX_Size

func (m *AccountNetMessage) XXX_Size() int

func (*AccountNetMessage) XXX_Unmarshal

func (m *AccountNetMessage) XXX_Unmarshal(b []byte) error

type AccountPaginated

type AccountPaginated struct {
	Account              *core.Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Offset               int64         `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Limit                int64         `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*AccountPaginated) Descriptor

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

func (*AccountPaginated) GetAccount

func (m *AccountPaginated) GetAccount() *core.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

func (*AccountPaginated) XXX_DiscardUnknown

func (m *AccountPaginated) XXX_DiscardUnknown()

func (*AccountPaginated) XXX_Marshal

func (m *AccountPaginated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountPaginated) XXX_Merge

func (dst *AccountPaginated) XXX_Merge(src proto.Message)

func (*AccountPaginated) XXX_Size

func (m *AccountPaginated) XXX_Size() int

func (*AccountPaginated) XXX_Unmarshal

func (m *AccountPaginated) XXX_Unmarshal(b []byte) error

type AccountResourceMessage

type AccountResourceMessage struct {
	FreeNetUsed          int64            `protobuf:"varint,1,opt,name=freeNetUsed,proto3" json:"freeNetUsed,omitempty"`
	FreeNetLimit         int64            `protobuf:"varint,2,opt,name=freeNetLimit,proto3" json:"freeNetLimit,omitempty"`
	NetUsed              int64            `protobuf:"varint,3,opt,name=NetUsed,proto3" json:"NetUsed,omitempty"`
	NetLimit             int64            `protobuf:"varint,4,opt,name=NetLimit,proto3" json:"NetLimit,omitempty"`
	AssetNetUsed         map[string]int64 `` /* 166-byte string literal not displayed */
	AssetNetLimit        map[string]int64 `` /* 168-byte string literal not displayed */
	TotalNetLimit        int64            `protobuf:"varint,7,opt,name=TotalNetLimit,proto3" json:"TotalNetLimit,omitempty"`
	TotalNetWeight       int64            `protobuf:"varint,8,opt,name=TotalNetWeight,proto3" json:"TotalNetWeight,omitempty"`
	EnergyUsed           int64            `protobuf:"varint,13,opt,name=EnergyUsed,proto3" json:"EnergyUsed,omitempty"`
	EnergyLimit          int64            `protobuf:"varint,14,opt,name=EnergyLimit,proto3" json:"EnergyLimit,omitempty"`
	TotalEnergyLimit     int64            `protobuf:"varint,15,opt,name=TotalEnergyLimit,proto3" json:"TotalEnergyLimit,omitempty"`
	TotalEnergyWeight    int64            `protobuf:"varint,16,opt,name=TotalEnergyWeight,proto3" json:"TotalEnergyWeight,omitempty"`
	StorageUsed          int64            `protobuf:"varint,21,opt,name=storageUsed,proto3" json:"storageUsed,omitempty"`
	StorageLimit         int64            `protobuf:"varint,22,opt,name=storageLimit,proto3" json:"storageLimit,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*AccountResourceMessage) Descriptor

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

func (*AccountResourceMessage) GetAssetNetLimit

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

func (*AccountResourceMessage) GetAssetNetUsed

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

func (*AccountResourceMessage) GetEnergyLimit

func (m *AccountResourceMessage) GetEnergyLimit() int64

func (*AccountResourceMessage) GetEnergyUsed

func (m *AccountResourceMessage) GetEnergyUsed() int64

func (*AccountResourceMessage) GetFreeNetLimit

func (m *AccountResourceMessage) GetFreeNetLimit() int64

func (*AccountResourceMessage) GetFreeNetUsed

func (m *AccountResourceMessage) GetFreeNetUsed() int64

func (*AccountResourceMessage) GetNetLimit

func (m *AccountResourceMessage) GetNetLimit() int64

func (*AccountResourceMessage) GetNetUsed

func (m *AccountResourceMessage) GetNetUsed() int64

func (*AccountResourceMessage) GetStorageLimit

func (m *AccountResourceMessage) GetStorageLimit() int64

func (*AccountResourceMessage) GetStorageUsed

func (m *AccountResourceMessage) GetStorageUsed() int64

func (*AccountResourceMessage) GetTotalEnergyLimit

func (m *AccountResourceMessage) GetTotalEnergyLimit() int64

func (*AccountResourceMessage) GetTotalEnergyWeight

func (m *AccountResourceMessage) GetTotalEnergyWeight() int64

func (*AccountResourceMessage) GetTotalNetLimit

func (m *AccountResourceMessage) GetTotalNetLimit() int64

func (*AccountResourceMessage) GetTotalNetWeight

func (m *AccountResourceMessage) GetTotalNetWeight() int64

func (*AccountResourceMessage) ProtoMessage

func (*AccountResourceMessage) ProtoMessage()

func (*AccountResourceMessage) Reset

func (m *AccountResourceMessage) Reset()

func (*AccountResourceMessage) String

func (m *AccountResourceMessage) String() string

func (*AccountResourceMessage) XXX_DiscardUnknown

func (m *AccountResourceMessage) XXX_DiscardUnknown()

func (*AccountResourceMessage) XXX_Marshal

func (m *AccountResourceMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountResourceMessage) XXX_Merge

func (dst *AccountResourceMessage) XXX_Merge(src proto.Message)

func (*AccountResourceMessage) XXX_Size

func (m *AccountResourceMessage) XXX_Size() int

func (*AccountResourceMessage) XXX_Unmarshal

func (m *AccountResourceMessage) XXX_Unmarshal(b []byte) error

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,proto3" json:"port,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*Address) XXX_DiscardUnknown

func (m *Address) XXX_DiscardUnknown()

func (*Address) XXX_Marshal

func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Address) XXX_Merge

func (dst *Address) XXX_Merge(src proto.Message)

func (*Address) XXX_Size

func (m *Address) XXX_Size() int

func (*Address) XXX_Unmarshal

func (m *Address) XXX_Unmarshal(b []byte) error

type AddressPrKeyPairMessage

type AddressPrKeyPairMessage struct {
	Address              string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PrivateKey           string   `protobuf:"bytes,2,opt,name=privateKey,proto3" json:"privateKey,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddressPrKeyPairMessage) Descriptor

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

func (*AddressPrKeyPairMessage) GetAddress

func (m *AddressPrKeyPairMessage) GetAddress() string

func (*AddressPrKeyPairMessage) GetPrivateKey

func (m *AddressPrKeyPairMessage) GetPrivateKey() string

func (*AddressPrKeyPairMessage) ProtoMessage

func (*AddressPrKeyPairMessage) ProtoMessage()

func (*AddressPrKeyPairMessage) Reset

func (m *AddressPrKeyPairMessage) Reset()

func (*AddressPrKeyPairMessage) String

func (m *AddressPrKeyPairMessage) String() string

func (*AddressPrKeyPairMessage) XXX_DiscardUnknown

func (m *AddressPrKeyPairMessage) XXX_DiscardUnknown()

func (*AddressPrKeyPairMessage) XXX_Marshal

func (m *AddressPrKeyPairMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddressPrKeyPairMessage) XXX_Merge

func (dst *AddressPrKeyPairMessage) XXX_Merge(src proto.Message)

func (*AddressPrKeyPairMessage) XXX_Size

func (m *AddressPrKeyPairMessage) XXX_Size() int

func (*AddressPrKeyPairMessage) XXX_Unmarshal

func (m *AddressPrKeyPairMessage) XXX_Unmarshal(b []byte) error

type AssetIssueList

type AssetIssueList struct {
	AssetIssue           []*core.AssetIssueContract `protobuf:"bytes,1,rep,name=assetIssue,proto3" json:"assetIssue,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

func (*AssetIssueList) Descriptor

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

func (*AssetIssueList) GetAssetIssue

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

func (*AssetIssueList) ProtoMessage

func (*AssetIssueList) ProtoMessage()

func (*AssetIssueList) Reset

func (m *AssetIssueList) Reset()

func (*AssetIssueList) String

func (m *AssetIssueList) String() string

func (*AssetIssueList) XXX_DiscardUnknown

func (m *AssetIssueList) XXX_DiscardUnknown()

func (*AssetIssueList) XXX_Marshal

func (m *AssetIssueList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AssetIssueList) XXX_Merge

func (dst *AssetIssueList) XXX_Merge(src proto.Message)

func (*AssetIssueList) XXX_Size

func (m *AssetIssueList) XXX_Size() int

func (*AssetIssueList) XXX_Unmarshal

func (m *AssetIssueList) XXX_Unmarshal(b []byte) error

type BlockExtention

type BlockExtention struct {
	Transactions         []*TransactionExtention `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
	BlockHeader          *core.BlockHeader       `protobuf:"bytes,2,opt,name=block_header,json=blockHeader,proto3" json:"block_header,omitempty"`
	Blockid              []byte                  `protobuf:"bytes,3,opt,name=blockid,proto3" json:"blockid,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*BlockExtention) Descriptor

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

func (*BlockExtention) GetBlockHeader

func (m *BlockExtention) GetBlockHeader() *core.BlockHeader

func (*BlockExtention) GetBlockid

func (m *BlockExtention) GetBlockid() []byte

func (*BlockExtention) GetTransactions

func (m *BlockExtention) GetTransactions() []*TransactionExtention

func (*BlockExtention) ProtoMessage

func (*BlockExtention) ProtoMessage()

func (*BlockExtention) Reset

func (m *BlockExtention) Reset()

func (*BlockExtention) String

func (m *BlockExtention) String() string

func (*BlockExtention) XXX_DiscardUnknown

func (m *BlockExtention) XXX_DiscardUnknown()

func (*BlockExtention) XXX_Marshal

func (m *BlockExtention) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockExtention) XXX_Merge

func (dst *BlockExtention) XXX_Merge(src proto.Message)

func (*BlockExtention) XXX_Size

func (m *BlockExtention) XXX_Size() int

func (*BlockExtention) XXX_Unmarshal

func (m *BlockExtention) XXX_Unmarshal(b []byte) error

type BlockLimit

type BlockLimit struct {
	StartNum             int64    `protobuf:"varint,1,opt,name=startNum,proto3" json:"startNum,omitempty"`
	EndNum               int64    `protobuf:"varint,2,opt,name=endNum,proto3" json:"endNum,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*BlockLimit) XXX_DiscardUnknown

func (m *BlockLimit) XXX_DiscardUnknown()

func (*BlockLimit) XXX_Marshal

func (m *BlockLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockLimit) XXX_Merge

func (dst *BlockLimit) XXX_Merge(src proto.Message)

func (*BlockLimit) XXX_Size

func (m *BlockLimit) XXX_Size() int

func (*BlockLimit) XXX_Unmarshal

func (m *BlockLimit) XXX_Unmarshal(b []byte) error

type BlockList

type BlockList struct {
	Block                []*core.Block `protobuf:"bytes,1,rep,name=block,proto3" json:"block,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*BlockList) Descriptor

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

func (*BlockList) GetBlock

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

func (*BlockList) ProtoMessage

func (*BlockList) ProtoMessage()

func (*BlockList) Reset

func (m *BlockList) Reset()

func (*BlockList) String

func (m *BlockList) String() string

func (*BlockList) XXX_DiscardUnknown

func (m *BlockList) XXX_DiscardUnknown()

func (*BlockList) XXX_Marshal

func (m *BlockList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockList) XXX_Merge

func (dst *BlockList) XXX_Merge(src proto.Message)

func (*BlockList) XXX_Size

func (m *BlockList) XXX_Size() int

func (*BlockList) XXX_Unmarshal

func (m *BlockList) XXX_Unmarshal(b []byte) error

type BlockListExtention

type BlockListExtention struct {
	Block                []*BlockExtention `protobuf:"bytes,1,rep,name=block,proto3" json:"block,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*BlockListExtention) Descriptor

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

func (*BlockListExtention) GetBlock

func (m *BlockListExtention) GetBlock() []*BlockExtention

func (*BlockListExtention) ProtoMessage

func (*BlockListExtention) ProtoMessage()

func (*BlockListExtention) Reset

func (m *BlockListExtention) Reset()

func (*BlockListExtention) String

func (m *BlockListExtention) String() string

func (*BlockListExtention) XXX_DiscardUnknown

func (m *BlockListExtention) XXX_DiscardUnknown()

func (*BlockListExtention) XXX_Marshal

func (m *BlockListExtention) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockListExtention) XXX_Merge

func (dst *BlockListExtention) XXX_Merge(src proto.Message)

func (*BlockListExtention) XXX_Size

func (m *BlockListExtention) XXX_Size() int

func (*BlockListExtention) XXX_Unmarshal

func (m *BlockListExtention) XXX_Unmarshal(b []byte) error

type BlockReference

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

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

func (*BlockReference) XXX_DiscardUnknown

func (m *BlockReference) XXX_DiscardUnknown()

func (*BlockReference) XXX_Marshal

func (m *BlockReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockReference) XXX_Merge

func (dst *BlockReference) XXX_Merge(src proto.Message)

func (*BlockReference) XXX_Size

func (m *BlockReference) XXX_Size() int

func (*BlockReference) XXX_Unmarshal

func (m *BlockReference) XXX_Unmarshal(b []byte) error

type BytesMessage

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

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

func (*BytesMessage) XXX_DiscardUnknown

func (m *BytesMessage) XXX_DiscardUnknown()

func (*BytesMessage) XXX_Marshal

func (m *BytesMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BytesMessage) XXX_Merge

func (dst *BytesMessage) XXX_Merge(src proto.Message)

func (*BytesMessage) XXX_Size

func (m *BytesMessage) XXX_Size() int

func (*BytesMessage) XXX_Unmarshal

func (m *BytesMessage) XXX_Unmarshal(b []byte) error

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) (*core.DynamicProperties, error)
	GetNowBlock(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.Block, error)
	GetBlockByNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*core.Block, error)
}

DatabaseClient is the client API for Database service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

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) (*core.DynamicProperties, error)
	GetNowBlock(context.Context, *EmptyMessage) (*core.Block, error)
	GetBlockByNum(context.Context, *NumberMessage) (*core.Block, error)
}

DatabaseServer is the server API for Database service.

type EasyTransferByPrivateMessage

type EasyTransferByPrivateMessage struct {
	PrivateKey           []byte   `protobuf:"bytes,1,opt,name=privateKey,proto3" json:"privateKey,omitempty"`
	ToAddress            []byte   `protobuf:"bytes,2,opt,name=toAddress,proto3" json:"toAddress,omitempty"`
	Amount               int64    `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EasyTransferByPrivateMessage) Descriptor

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

func (*EasyTransferByPrivateMessage) GetAmount

func (m *EasyTransferByPrivateMessage) GetAmount() int64

func (*EasyTransferByPrivateMessage) GetPrivateKey

func (m *EasyTransferByPrivateMessage) GetPrivateKey() []byte

func (*EasyTransferByPrivateMessage) GetToAddress

func (m *EasyTransferByPrivateMessage) GetToAddress() []byte

func (*EasyTransferByPrivateMessage) ProtoMessage

func (*EasyTransferByPrivateMessage) ProtoMessage()

func (*EasyTransferByPrivateMessage) Reset

func (m *EasyTransferByPrivateMessage) Reset()

func (*EasyTransferByPrivateMessage) String

func (*EasyTransferByPrivateMessage) XXX_DiscardUnknown

func (m *EasyTransferByPrivateMessage) XXX_DiscardUnknown()

func (*EasyTransferByPrivateMessage) XXX_Marshal

func (m *EasyTransferByPrivateMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EasyTransferByPrivateMessage) XXX_Merge

func (dst *EasyTransferByPrivateMessage) XXX_Merge(src proto.Message)

func (*EasyTransferByPrivateMessage) XXX_Size

func (m *EasyTransferByPrivateMessage) XXX_Size() int

func (*EasyTransferByPrivateMessage) XXX_Unmarshal

func (m *EasyTransferByPrivateMessage) XXX_Unmarshal(b []byte) error

type EasyTransferMessage

type EasyTransferMessage struct {
	PassPhrase           []byte   `protobuf:"bytes,1,opt,name=passPhrase,proto3" json:"passPhrase,omitempty"`
	ToAddress            []byte   `protobuf:"bytes,2,opt,name=toAddress,proto3" json:"toAddress,omitempty"`
	Amount               int64    `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EasyTransferMessage) Descriptor

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

func (*EasyTransferMessage) GetAmount

func (m *EasyTransferMessage) GetAmount() int64

func (*EasyTransferMessage) GetPassPhrase

func (m *EasyTransferMessage) GetPassPhrase() []byte

func (*EasyTransferMessage) GetToAddress

func (m *EasyTransferMessage) GetToAddress() []byte

func (*EasyTransferMessage) ProtoMessage

func (*EasyTransferMessage) ProtoMessage()

func (*EasyTransferMessage) Reset

func (m *EasyTransferMessage) Reset()

func (*EasyTransferMessage) String

func (m *EasyTransferMessage) String() string

func (*EasyTransferMessage) XXX_DiscardUnknown

func (m *EasyTransferMessage) XXX_DiscardUnknown()

func (*EasyTransferMessage) XXX_Marshal

func (m *EasyTransferMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EasyTransferMessage) XXX_Merge

func (dst *EasyTransferMessage) XXX_Merge(src proto.Message)

func (*EasyTransferMessage) XXX_Size

func (m *EasyTransferMessage) XXX_Size() int

func (*EasyTransferMessage) XXX_Unmarshal

func (m *EasyTransferMessage) XXX_Unmarshal(b []byte) error

type EasyTransferResponse

type EasyTransferResponse struct {
	Transaction          *core.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
	Result               *Return           `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
	Txid                 []byte            `protobuf:"bytes,3,opt,name=txid,proto3" json:"txid,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*EasyTransferResponse) Descriptor

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

func (*EasyTransferResponse) GetResult

func (m *EasyTransferResponse) GetResult() *Return

func (*EasyTransferResponse) GetTransaction

func (m *EasyTransferResponse) GetTransaction() *core.Transaction

func (*EasyTransferResponse) GetTxid

func (m *EasyTransferResponse) GetTxid() []byte

func (*EasyTransferResponse) ProtoMessage

func (*EasyTransferResponse) ProtoMessage()

func (*EasyTransferResponse) Reset

func (m *EasyTransferResponse) Reset()

func (*EasyTransferResponse) String

func (m *EasyTransferResponse) String() string

func (*EasyTransferResponse) XXX_DiscardUnknown

func (m *EasyTransferResponse) XXX_DiscardUnknown()

func (*EasyTransferResponse) XXX_Marshal

func (m *EasyTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EasyTransferResponse) XXX_Merge

func (dst *EasyTransferResponse) XXX_Merge(src proto.Message)

func (*EasyTransferResponse) XXX_Size

func (m *EasyTransferResponse) XXX_Size() int

func (*EasyTransferResponse) XXX_Unmarshal

func (m *EasyTransferResponse) XXX_Unmarshal(b []byte) error

type EmptyMessage

type EmptyMessage struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*EmptyMessage) XXX_DiscardUnknown

func (m *EmptyMessage) XXX_DiscardUnknown()

func (*EmptyMessage) XXX_Marshal

func (m *EmptyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EmptyMessage) XXX_Merge

func (dst *EmptyMessage) XXX_Merge(src proto.Message)

func (*EmptyMessage) XXX_Size

func (m *EmptyMessage) XXX_Size() int

func (*EmptyMessage) XXX_Unmarshal

func (m *EmptyMessage) XXX_Unmarshal(b []byte) error

type ExchangeList

type ExchangeList struct {
	Exchanges            []*core.Exchange `protobuf:"bytes,1,rep,name=exchanges,proto3" json:"exchanges,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*ExchangeList) Descriptor

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

func (*ExchangeList) GetExchanges

func (m *ExchangeList) GetExchanges() []*core.Exchange

func (*ExchangeList) ProtoMessage

func (*ExchangeList) ProtoMessage()

func (*ExchangeList) Reset

func (m *ExchangeList) Reset()

func (*ExchangeList) String

func (m *ExchangeList) String() string

func (*ExchangeList) XXX_DiscardUnknown

func (m *ExchangeList) XXX_DiscardUnknown()

func (*ExchangeList) XXX_Marshal

func (m *ExchangeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExchangeList) XXX_Merge

func (dst *ExchangeList) XXX_Merge(src proto.Message)

func (*ExchangeList) XXX_Size

func (m *ExchangeList) XXX_Size() int

func (*ExchangeList) XXX_Unmarshal

func (m *ExchangeList) XXX_Unmarshal(b []byte) error

type NetworkClient

type NetworkClient interface {
}

NetworkClient is the client API for Network service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewNetworkClient

func NewNetworkClient(cc *grpc.ClientConn) NetworkClient

type NetworkServer

type NetworkServer interface {
}

NetworkServer is the server API for Network service.

type Node

type Node struct {
	Address              *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*Node) XXX_DiscardUnknown

func (m *Node) XXX_DiscardUnknown()

func (*Node) XXX_Marshal

func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Node) XXX_Merge

func (dst *Node) XXX_Merge(src proto.Message)

func (*Node) XXX_Size

func (m *Node) XXX_Size() int

func (*Node) XXX_Unmarshal

func (m *Node) XXX_Unmarshal(b []byte) error

type NodeList

type NodeList struct {
	Nodes                []*Node  `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*NodeList) XXX_DiscardUnknown

func (m *NodeList) XXX_DiscardUnknown()

func (*NodeList) XXX_Marshal

func (m *NodeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeList) XXX_Merge

func (dst *NodeList) XXX_Merge(src proto.Message)

func (*NodeList) XXX_Size

func (m *NodeList) XXX_Size() int

func (*NodeList) XXX_Unmarshal

func (m *NodeList) XXX_Unmarshal(b []byte) error

type NumberMessage

type NumberMessage struct {
	Num                  int64    `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*NumberMessage) XXX_DiscardUnknown

func (m *NumberMessage) XXX_DiscardUnknown()

func (*NumberMessage) XXX_Marshal

func (m *NumberMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NumberMessage) XXX_Merge

func (dst *NumberMessage) XXX_Merge(src proto.Message)

func (*NumberMessage) XXX_Size

func (m *NumberMessage) XXX_Size() int

func (*NumberMessage) XXX_Unmarshal

func (m *NumberMessage) XXX_Unmarshal(b []byte) error

type PaginatedMessage

type PaginatedMessage struct {
	Offset               int64    `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	Limit                int64    `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PaginatedMessage) Descriptor

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

func (*PaginatedMessage) GetLimit

func (m *PaginatedMessage) GetLimit() int64

func (*PaginatedMessage) GetOffset

func (m *PaginatedMessage) GetOffset() int64

func (*PaginatedMessage) ProtoMessage

func (*PaginatedMessage) ProtoMessage()

func (*PaginatedMessage) Reset

func (m *PaginatedMessage) Reset()

func (*PaginatedMessage) String

func (m *PaginatedMessage) String() string

func (*PaginatedMessage) XXX_DiscardUnknown

func (m *PaginatedMessage) XXX_DiscardUnknown()

func (*PaginatedMessage) XXX_Marshal

func (m *PaginatedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PaginatedMessage) XXX_Merge

func (dst *PaginatedMessage) XXX_Merge(src proto.Message)

func (*PaginatedMessage) XXX_Size

func (m *PaginatedMessage) XXX_Size() int

func (*PaginatedMessage) XXX_Unmarshal

func (m *PaginatedMessage) XXX_Unmarshal(b []byte) error

type ProposalList

type ProposalList struct {
	Proposals            []*core.Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*ProposalList) Descriptor

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

func (*ProposalList) GetProposals

func (m *ProposalList) GetProposals() []*core.Proposal

func (*ProposalList) ProtoMessage

func (*ProposalList) ProtoMessage()

func (*ProposalList) Reset

func (m *ProposalList) Reset()

func (*ProposalList) String

func (m *ProposalList) String() string

func (*ProposalList) XXX_DiscardUnknown

func (m *ProposalList) XXX_DiscardUnknown()

func (*ProposalList) XXX_Marshal

func (m *ProposalList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProposalList) XXX_Merge

func (dst *ProposalList) XXX_Merge(src proto.Message)

func (*ProposalList) XXX_Size

func (m *ProposalList) XXX_Size() int

func (*ProposalList) XXX_Unmarshal

func (m *ProposalList) XXX_Unmarshal(b []byte) error

type Return

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

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

func (*Return) XXX_DiscardUnknown

func (m *Return) XXX_DiscardUnknown()

func (*Return) XXX_Marshal

func (m *Return) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Return) XXX_Merge

func (dst *Return) XXX_Merge(src proto.Message)

func (*Return) XXX_Size

func (m *Return) XXX_Size() int

func (*Return) XXX_Unmarshal

func (m *Return) XXX_Unmarshal(b []byte) error

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,proto3" json:"beginInMilliseconds,omitempty"`
	EndInMilliseconds    int64    `protobuf:"varint,2,opt,name=endInMilliseconds,proto3" json:"endInMilliseconds,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*TimeMessage) XXX_DiscardUnknown

func (m *TimeMessage) XXX_DiscardUnknown()

func (*TimeMessage) XXX_Marshal

func (m *TimeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TimeMessage) XXX_Merge

func (dst *TimeMessage) XXX_Merge(src proto.Message)

func (*TimeMessage) XXX_Size

func (m *TimeMessage) XXX_Size() int

func (*TimeMessage) XXX_Unmarshal

func (m *TimeMessage) XXX_Unmarshal(b []byte) error

type TimePaginatedMessage

type TimePaginatedMessage struct {
	TimeMessage          *TimeMessage `protobuf:"bytes,1,opt,name=timeMessage,proto3" json:"timeMessage,omitempty"`
	Offset               int64        `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Limit                int64        `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

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

func (*TimePaginatedMessage) XXX_DiscardUnknown

func (m *TimePaginatedMessage) XXX_DiscardUnknown()

func (*TimePaginatedMessage) XXX_Marshal

func (m *TimePaginatedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TimePaginatedMessage) XXX_Merge

func (dst *TimePaginatedMessage) XXX_Merge(src proto.Message)

func (*TimePaginatedMessage) XXX_Size

func (m *TimePaginatedMessage) XXX_Size() int

func (*TimePaginatedMessage) XXX_Unmarshal

func (m *TimePaginatedMessage) XXX_Unmarshal(b []byte) error

type TransactionExtention

type TransactionExtention struct {
	Transaction          *core.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
	Txid                 []byte            `protobuf:"bytes,2,opt,name=txid,proto3" json:"txid,omitempty"`
	ConstantResult       [][]byte          `protobuf:"bytes,3,rep,name=constant_result,json=constantResult,proto3" json:"constant_result,omitempty"`
	Result               *Return           `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*TransactionExtention) Descriptor

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

func (*TransactionExtention) GetConstantResult

func (m *TransactionExtention) GetConstantResult() [][]byte

func (*TransactionExtention) GetResult

func (m *TransactionExtention) GetResult() *Return

func (*TransactionExtention) GetTransaction

func (m *TransactionExtention) GetTransaction() *core.Transaction

func (*TransactionExtention) GetTxid

func (m *TransactionExtention) GetTxid() []byte

func (*TransactionExtention) ProtoMessage

func (*TransactionExtention) ProtoMessage()

func (*TransactionExtention) Reset

func (m *TransactionExtention) Reset()

func (*TransactionExtention) String

func (m *TransactionExtention) String() string

func (*TransactionExtention) XXX_DiscardUnknown

func (m *TransactionExtention) XXX_DiscardUnknown()

func (*TransactionExtention) XXX_Marshal

func (m *TransactionExtention) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionExtention) XXX_Merge

func (dst *TransactionExtention) XXX_Merge(src proto.Message)

func (*TransactionExtention) XXX_Size

func (m *TransactionExtention) XXX_Size() int

func (*TransactionExtention) XXX_Unmarshal

func (m *TransactionExtention) XXX_Unmarshal(b []byte) error

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,proto3" json:"limitNum,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*TransactionLimit) XXX_DiscardUnknown

func (m *TransactionLimit) XXX_DiscardUnknown()

func (*TransactionLimit) XXX_Marshal

func (m *TransactionLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionLimit) XXX_Merge

func (dst *TransactionLimit) XXX_Merge(src proto.Message)

func (*TransactionLimit) XXX_Size

func (m *TransactionLimit) XXX_Size() int

func (*TransactionLimit) XXX_Unmarshal

func (m *TransactionLimit) XXX_Unmarshal(b []byte) error

type TransactionList

type TransactionList struct {
	Transaction          []*core.Transaction `protobuf:"bytes,1,rep,name=transaction,proto3" json:"transaction,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*TransactionList) Descriptor

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

func (*TransactionList) GetTransaction

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

func (*TransactionList) ProtoMessage

func (*TransactionList) ProtoMessage()

func (*TransactionList) Reset

func (m *TransactionList) Reset()

func (*TransactionList) String

func (m *TransactionList) String() string

func (*TransactionList) XXX_DiscardUnknown

func (m *TransactionList) XXX_DiscardUnknown()

func (*TransactionList) XXX_Marshal

func (m *TransactionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionList) XXX_Merge

func (dst *TransactionList) XXX_Merge(src proto.Message)

func (*TransactionList) XXX_Size

func (m *TransactionList) XXX_Size() int

func (*TransactionList) XXX_Unmarshal

func (m *TransactionList) XXX_Unmarshal(b []byte) error

type TransactionListExtention

type TransactionListExtention struct {
	Transaction          []*TransactionExtention `protobuf:"bytes,1,rep,name=transaction,proto3" json:"transaction,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*TransactionListExtention) Descriptor

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

func (*TransactionListExtention) GetTransaction

func (m *TransactionListExtention) GetTransaction() []*TransactionExtention

func (*TransactionListExtention) ProtoMessage

func (*TransactionListExtention) ProtoMessage()

func (*TransactionListExtention) Reset

func (m *TransactionListExtention) Reset()

func (*TransactionListExtention) String

func (m *TransactionListExtention) String() string

func (*TransactionListExtention) XXX_DiscardUnknown

func (m *TransactionListExtention) XXX_DiscardUnknown()

func (*TransactionListExtention) XXX_Marshal

func (m *TransactionListExtention) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionListExtention) XXX_Merge

func (dst *TransactionListExtention) XXX_Merge(src proto.Message)

func (*TransactionListExtention) XXX_Size

func (m *TransactionListExtention) XXX_Size() int

func (*TransactionListExtention) XXX_Unmarshal

func (m *TransactionListExtention) XXX_Unmarshal(b []byte) error

type WalletClient

type WalletClient interface {
	GetAccount(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*core.Account, error)
	GetAccountById(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*core.Account, error)
	// Please use CreateTransaction2 instead of this function.
	CreateTransaction(ctx context.Context, in *core.TransferContract, opts ...grpc.CallOption) (*core.Transaction, error)
	// Use this function instead of CreateTransaction.
	CreateTransaction2(ctx context.Context, in *core.TransferContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	BroadcastTransaction(ctx context.Context, in *core.Transaction, opts ...grpc.CallOption) (*Return, error)
	// Please use UpdateAccount2 instead of this function.
	UpdateAccount(ctx context.Context, in *core.AccountUpdateContract, opts ...grpc.CallOption) (*core.Transaction, error)
	SetAccountId(ctx context.Context, in *core.SetAccountIdContract, opts ...grpc.CallOption) (*core.Transaction, error)
	// Use this function instead of UpdateAccount.
	UpdateAccount2(ctx context.Context, in *core.AccountUpdateContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	// Please use VoteWitnessAccount2 instead of this function.
	VoteWitnessAccount(ctx context.Context, in *core.VoteWitnessContract, opts ...grpc.CallOption) (*core.Transaction, error)
	// modify the consume_user_resource_percent
	UpdateSetting(ctx context.Context, in *core.UpdateSettingContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	// Use this function instead of VoteWitnessAccount.
	VoteWitnessAccount2(ctx context.Context, in *core.VoteWitnessContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	// Please use CreateAssetIssue2 instead of this function.
	CreateAssetIssue(ctx context.Context, in *core.AssetIssueContract, opts ...grpc.CallOption) (*core.Transaction, error)
	// Use this function instead of CreateAssetIssue.
	CreateAssetIssue2(ctx context.Context, in *core.AssetIssueContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	// Please use UpdateWitness2 instead of this function.
	UpdateWitness(ctx context.Context, in *core.WitnessUpdateContract, opts ...grpc.CallOption) (*core.Transaction, error)
	// Use this function instead of UpdateWitness.
	UpdateWitness2(ctx context.Context, in *core.WitnessUpdateContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	// Please use CreateAccount2 instead of this function.
	CreateAccount(ctx context.Context, in *core.AccountCreateContract, opts ...grpc.CallOption) (*core.Transaction, error)
	// Use this function instead of CreateAccount.
	CreateAccount2(ctx context.Context, in *core.AccountCreateContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	// Please use CreateWitness2 instead of this function.
	CreateWitness(ctx context.Context, in *core.WitnessCreateContract, opts ...grpc.CallOption) (*core.Transaction, error)
	// Use this function instead of CreateWitness.
	CreateWitness2(ctx context.Context, in *core.WitnessCreateContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	// Please use TransferAsset2 instead of this function.
	TransferAsset(ctx context.Context, in *core.TransferAssetContract, opts ...grpc.CallOption) (*core.Transaction, error)
	// Use this function instead of TransferAsset.
	TransferAsset2(ctx context.Context, in *core.TransferAssetContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	// Please use ParticipateAssetIssue2 instead of this function.
	ParticipateAssetIssue(ctx context.Context, in *core.ParticipateAssetIssueContract, opts ...grpc.CallOption) (*core.Transaction, error)
	// Use this function instead of ParticipateAssetIssue.
	ParticipateAssetIssue2(ctx context.Context, in *core.ParticipateAssetIssueContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	// Please use FreezeBalance2 instead of this function.
	FreezeBalance(ctx context.Context, in *core.FreezeBalanceContract, opts ...grpc.CallOption) (*core.Transaction, error)
	// Use this function instead of FreezeBalance.
	FreezeBalance2(ctx context.Context, in *core.FreezeBalanceContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	// Please use UnfreezeBalance2 instead of this function.
	UnfreezeBalance(ctx context.Context, in *core.UnfreezeBalanceContract, opts ...grpc.CallOption) (*core.Transaction, error)
	// Use this function instead of UnfreezeBalance.
	UnfreezeBalance2(ctx context.Context, in *core.UnfreezeBalanceContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	// Please use UnfreezeAsset2 instead of this function.
	UnfreezeAsset(ctx context.Context, in *core.UnfreezeAssetContract, opts ...grpc.CallOption) (*core.Transaction, error)
	// Use this function instead of UnfreezeAsset.
	UnfreezeAsset2(ctx context.Context, in *core.UnfreezeAssetContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	// Please use WithdrawBalance2 instead of this function.
	WithdrawBalance(ctx context.Context, in *core.WithdrawBalanceContract, opts ...grpc.CallOption) (*core.Transaction, error)
	// Use this function instead of WithdrawBalance.
	WithdrawBalance2(ctx context.Context, in *core.WithdrawBalanceContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	// Please use UpdateAsset2 instead of this function.
	UpdateAsset(ctx context.Context, in *core.UpdateAssetContract, opts ...grpc.CallOption) (*core.Transaction, error)
	// Use this function instead of UpdateAsset.
	UpdateAsset2(ctx context.Context, in *core.UpdateAssetContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	ProposalCreate(ctx context.Context, in *core.ProposalCreateContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	ProposalApprove(ctx context.Context, in *core.ProposalApproveContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	ProposalDelete(ctx context.Context, in *core.ProposalDeleteContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	BuyStorage(ctx context.Context, in *core.BuyStorageContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	BuyStorageBytes(ctx context.Context, in *core.BuyStorageBytesContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	SellStorage(ctx context.Context, in *core.SellStorageContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	ExchangeCreate(ctx context.Context, in *core.ExchangeCreateContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	ExchangeInject(ctx context.Context, in *core.ExchangeInjectContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	ExchangeWithdraw(ctx context.Context, in *core.ExchangeWithdrawContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	ExchangeTransaction(ctx context.Context, in *core.ExchangeTransactionContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	ListNodes(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*NodeList, error)
	GetAssetIssueByAccount(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*AssetIssueList, error)
	GetAccountNet(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*AccountNetMessage, error)
	GetAccountResource(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*AccountResourceMessage, error)
	GetAssetIssueByName(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.AssetIssueContract, error)
	// Please use GetNowBlock2 instead of this function.
	GetNowBlock(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.Block, error)
	// Use this function instead of GetNowBlock.
	GetNowBlock2(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*BlockExtention, error)
	// Please use GetBlockByNum2 instead of this function.
	GetBlockByNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*core.Block, error)
	// Use this function instead of GetBlockByNum.
	GetBlockByNum2(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*BlockExtention, error)
	GetTransactionCountByBlockNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*NumberMessage, error)
	GetBlockById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Block, error)
	// Please use GetBlockByLimitNext2 instead of this function.
	GetBlockByLimitNext(ctx context.Context, in *BlockLimit, opts ...grpc.CallOption) (*BlockList, error)
	// Use this function instead of GetBlockByLimitNext.
	GetBlockByLimitNext2(ctx context.Context, in *BlockLimit, opts ...grpc.CallOption) (*BlockListExtention, error)
	// Please use GetBlockByLatestNum2 instead of this function.
	GetBlockByLatestNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*BlockList, error)
	// Use this function instead of GetBlockByLatestNum.
	GetBlockByLatestNum2(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*BlockListExtention, error)
	GetTransactionById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Transaction, error)
	DeployContract(ctx context.Context, in *core.CreateSmartContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	GetContract(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.SmartContract, error)
	TriggerContract(ctx context.Context, in *core.TriggerSmartContract, opts ...grpc.CallOption) (*TransactionExtention, error)
	ListWitnesses(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*WitnessList, error)
	ListProposals(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*ProposalList, error)
	GetProposalById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Proposal, error)
	ListExchanges(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*ExchangeList, error)
	GetExchangeById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Exchange, error)
	GetChainParameters(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.ChainParameters, error)
	GetAssetIssueList(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AssetIssueList, error)
	GetPaginatedAssetIssueList(ctx context.Context, in *PaginatedMessage, 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)
	// Warning: do not invoke this interface provided by others.
	// Please use GetTransactionSign2 instead of this function.
	GetTransactionSign(ctx context.Context, in *core.TransactionSign, opts ...grpc.CallOption) (*core.Transaction, error)
	// Warning: do not invoke this interface provided by others.
	// Use this function instead of GetTransactionSign.
	GetTransactionSign2(ctx context.Context, in *core.TransactionSign, opts ...grpc.CallOption) (*TransactionExtention, error)
	// Warning: do not invoke this interface provided by others.
	CreateAddress(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*BytesMessage, error)
	// Warning: do not invoke this interface provided by others.
	EasyTransfer(ctx context.Context, in *EasyTransferMessage, opts ...grpc.CallOption) (*EasyTransferResponse, error)
	// Warning: do not invoke this interface provided by others.
	EasyTransferByPrivate(ctx context.Context, in *EasyTransferByPrivateMessage, opts ...grpc.CallOption) (*EasyTransferResponse, error)
	// Warning: do not invoke this interface provided by others.
	GenerateAddress(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AddressPrKeyPairMessage, error)
	GetTransactionInfoById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.TransactionInfo, error)
}

WalletClient is the client API for Wallet service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewWalletClient

func NewWalletClient(cc *grpc.ClientConn) WalletClient

type WalletExtensionClient

type WalletExtensionClient interface {
	// Please use GetTransactionsFromThis2 instead of this function.
	GetTransactionsFromThis(ctx context.Context, in *AccountPaginated, opts ...grpc.CallOption) (*TransactionList, error)
	// Use this function instead of GetTransactionsFromThis.
	GetTransactionsFromThis2(ctx context.Context, in *AccountPaginated, opts ...grpc.CallOption) (*TransactionListExtention, error)
	// Please use GetTransactionsToThis2 instead of this function.
	GetTransactionsToThis(ctx context.Context, in *AccountPaginated, opts ...grpc.CallOption) (*TransactionList, error)
	// Use this function instead of GetTransactionsToThis.
	GetTransactionsToThis2(ctx context.Context, in *AccountPaginated, opts ...grpc.CallOption) (*TransactionListExtention, error)
}

WalletExtensionClient is the client API for WalletExtension service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewWalletExtensionClient

func NewWalletExtensionClient(cc *grpc.ClientConn) WalletExtensionClient

type WalletExtensionServer

type WalletExtensionServer interface {
	// Please use GetTransactionsFromThis2 instead of this function.
	GetTransactionsFromThis(context.Context, *AccountPaginated) (*TransactionList, error)
	// Use this function instead of GetTransactionsFromThis.
	GetTransactionsFromThis2(context.Context, *AccountPaginated) (*TransactionListExtention, error)
	// Please use GetTransactionsToThis2 instead of this function.
	GetTransactionsToThis(context.Context, *AccountPaginated) (*TransactionList, error)
	// Use this function instead of GetTransactionsToThis.
	GetTransactionsToThis2(context.Context, *AccountPaginated) (*TransactionListExtention, error)
}

WalletExtensionServer is the server API for WalletExtension service.

type WalletServer

type WalletServer interface {
	GetAccount(context.Context, *core.Account) (*core.Account, error)
	GetAccountById(context.Context, *core.Account) (*core.Account, error)
	// Please use CreateTransaction2 instead of this function.
	CreateTransaction(context.Context, *core.TransferContract) (*core.Transaction, error)
	// Use this function instead of CreateTransaction.
	CreateTransaction2(context.Context, *core.TransferContract) (*TransactionExtention, error)
	BroadcastTransaction(context.Context, *core.Transaction) (*Return, error)
	// Please use UpdateAccount2 instead of this function.
	UpdateAccount(context.Context, *core.AccountUpdateContract) (*core.Transaction, error)
	SetAccountId(context.Context, *core.SetAccountIdContract) (*core.Transaction, error)
	// Use this function instead of UpdateAccount.
	UpdateAccount2(context.Context, *core.AccountUpdateContract) (*TransactionExtention, error)
	// Please use VoteWitnessAccount2 instead of this function.
	VoteWitnessAccount(context.Context, *core.VoteWitnessContract) (*core.Transaction, error)
	// modify the consume_user_resource_percent
	UpdateSetting(context.Context, *core.UpdateSettingContract) (*TransactionExtention, error)
	// Use this function instead of VoteWitnessAccount.
	VoteWitnessAccount2(context.Context, *core.VoteWitnessContract) (*TransactionExtention, error)
	// Please use CreateAssetIssue2 instead of this function.
	CreateAssetIssue(context.Context, *core.AssetIssueContract) (*core.Transaction, error)
	// Use this function instead of CreateAssetIssue.
	CreateAssetIssue2(context.Context, *core.AssetIssueContract) (*TransactionExtention, error)
	// Please use UpdateWitness2 instead of this function.
	UpdateWitness(context.Context, *core.WitnessUpdateContract) (*core.Transaction, error)
	// Use this function instead of UpdateWitness.
	UpdateWitness2(context.Context, *core.WitnessUpdateContract) (*TransactionExtention, error)
	// Please use CreateAccount2 instead of this function.
	CreateAccount(context.Context, *core.AccountCreateContract) (*core.Transaction, error)
	// Use this function instead of CreateAccount.
	CreateAccount2(context.Context, *core.AccountCreateContract) (*TransactionExtention, error)
	// Please use CreateWitness2 instead of this function.
	CreateWitness(context.Context, *core.WitnessCreateContract) (*core.Transaction, error)
	// Use this function instead of CreateWitness.
	CreateWitness2(context.Context, *core.WitnessCreateContract) (*TransactionExtention, error)
	// Please use TransferAsset2 instead of this function.
	TransferAsset(context.Context, *core.TransferAssetContract) (*core.Transaction, error)
	// Use this function instead of TransferAsset.
	TransferAsset2(context.Context, *core.TransferAssetContract) (*TransactionExtention, error)
	// Please use ParticipateAssetIssue2 instead of this function.
	ParticipateAssetIssue(context.Context, *core.ParticipateAssetIssueContract) (*core.Transaction, error)
	// Use this function instead of ParticipateAssetIssue.
	ParticipateAssetIssue2(context.Context, *core.ParticipateAssetIssueContract) (*TransactionExtention, error)
	// Please use FreezeBalance2 instead of this function.
	FreezeBalance(context.Context, *core.FreezeBalanceContract) (*core.Transaction, error)
	// Use this function instead of FreezeBalance.
	FreezeBalance2(context.Context, *core.FreezeBalanceContract) (*TransactionExtention, error)
	// Please use UnfreezeBalance2 instead of this function.
	UnfreezeBalance(context.Context, *core.UnfreezeBalanceContract) (*core.Transaction, error)
	// Use this function instead of UnfreezeBalance.
	UnfreezeBalance2(context.Context, *core.UnfreezeBalanceContract) (*TransactionExtention, error)
	// Please use UnfreezeAsset2 instead of this function.
	UnfreezeAsset(context.Context, *core.UnfreezeAssetContract) (*core.Transaction, error)
	// Use this function instead of UnfreezeAsset.
	UnfreezeAsset2(context.Context, *core.UnfreezeAssetContract) (*TransactionExtention, error)
	// Please use WithdrawBalance2 instead of this function.
	WithdrawBalance(context.Context, *core.WithdrawBalanceContract) (*core.Transaction, error)
	// Use this function instead of WithdrawBalance.
	WithdrawBalance2(context.Context, *core.WithdrawBalanceContract) (*TransactionExtention, error)
	// Please use UpdateAsset2 instead of this function.
	UpdateAsset(context.Context, *core.UpdateAssetContract) (*core.Transaction, error)
	// Use this function instead of UpdateAsset.
	UpdateAsset2(context.Context, *core.UpdateAssetContract) (*TransactionExtention, error)
	ProposalCreate(context.Context, *core.ProposalCreateContract) (*TransactionExtention, error)
	ProposalApprove(context.Context, *core.ProposalApproveContract) (*TransactionExtention, error)
	ProposalDelete(context.Context, *core.ProposalDeleteContract) (*TransactionExtention, error)
	BuyStorage(context.Context, *core.BuyStorageContract) (*TransactionExtention, error)
	BuyStorageBytes(context.Context, *core.BuyStorageBytesContract) (*TransactionExtention, error)
	SellStorage(context.Context, *core.SellStorageContract) (*TransactionExtention, error)
	ExchangeCreate(context.Context, *core.ExchangeCreateContract) (*TransactionExtention, error)
	ExchangeInject(context.Context, *core.ExchangeInjectContract) (*TransactionExtention, error)
	ExchangeWithdraw(context.Context, *core.ExchangeWithdrawContract) (*TransactionExtention, error)
	ExchangeTransaction(context.Context, *core.ExchangeTransactionContract) (*TransactionExtention, error)
	ListNodes(context.Context, *EmptyMessage) (*NodeList, error)
	GetAssetIssueByAccount(context.Context, *core.Account) (*AssetIssueList, error)
	GetAccountNet(context.Context, *core.Account) (*AccountNetMessage, error)
	GetAccountResource(context.Context, *core.Account) (*AccountResourceMessage, error)
	GetAssetIssueByName(context.Context, *BytesMessage) (*core.AssetIssueContract, error)
	// Please use GetNowBlock2 instead of this function.
	GetNowBlock(context.Context, *EmptyMessage) (*core.Block, error)
	// Use this function instead of GetNowBlock.
	GetNowBlock2(context.Context, *EmptyMessage) (*BlockExtention, error)
	// Please use GetBlockByNum2 instead of this function.
	GetBlockByNum(context.Context, *NumberMessage) (*core.Block, error)
	// Use this function instead of GetBlockByNum.
	GetBlockByNum2(context.Context, *NumberMessage) (*BlockExtention, error)
	GetTransactionCountByBlockNum(context.Context, *NumberMessage) (*NumberMessage, error)
	GetBlockById(context.Context, *BytesMessage) (*core.Block, error)
	// Please use GetBlockByLimitNext2 instead of this function.
	GetBlockByLimitNext(context.Context, *BlockLimit) (*BlockList, error)
	// Use this function instead of GetBlockByLimitNext.
	GetBlockByLimitNext2(context.Context, *BlockLimit) (*BlockListExtention, error)
	// Please use GetBlockByLatestNum2 instead of this function.
	GetBlockByLatestNum(context.Context, *NumberMessage) (*BlockList, error)
	// Use this function instead of GetBlockByLatestNum.
	GetBlockByLatestNum2(context.Context, *NumberMessage) (*BlockListExtention, error)
	GetTransactionById(context.Context, *BytesMessage) (*core.Transaction, error)
	DeployContract(context.Context, *core.CreateSmartContract) (*TransactionExtention, error)
	GetContract(context.Context, *BytesMessage) (*core.SmartContract, error)
	TriggerContract(context.Context, *core.TriggerSmartContract) (*TransactionExtention, error)
	ListWitnesses(context.Context, *EmptyMessage) (*WitnessList, error)
	ListProposals(context.Context, *EmptyMessage) (*ProposalList, error)
	GetProposalById(context.Context, *BytesMessage) (*core.Proposal, error)
	ListExchanges(context.Context, *EmptyMessage) (*ExchangeList, error)
	GetExchangeById(context.Context, *BytesMessage) (*core.Exchange, error)
	GetChainParameters(context.Context, *EmptyMessage) (*core.ChainParameters, error)
	GetAssetIssueList(context.Context, *EmptyMessage) (*AssetIssueList, error)
	GetPaginatedAssetIssueList(context.Context, *PaginatedMessage) (*AssetIssueList, error)
	TotalTransaction(context.Context, *EmptyMessage) (*NumberMessage, error)
	GetNextMaintenanceTime(context.Context, *EmptyMessage) (*NumberMessage, error)
	// Warning: do not invoke this interface provided by others.
	// Please use GetTransactionSign2 instead of this function.
	GetTransactionSign(context.Context, *core.TransactionSign) (*core.Transaction, error)
	// Warning: do not invoke this interface provided by others.
	// Use this function instead of GetTransactionSign.
	GetTransactionSign2(context.Context, *core.TransactionSign) (*TransactionExtention, error)
	// Warning: do not invoke this interface provided by others.
	CreateAddress(context.Context, *BytesMessage) (*BytesMessage, error)
	// Warning: do not invoke this interface provided by others.
	EasyTransfer(context.Context, *EasyTransferMessage) (*EasyTransferResponse, error)
	// Warning: do not invoke this interface provided by others.
	EasyTransferByPrivate(context.Context, *EasyTransferByPrivateMessage) (*EasyTransferResponse, error)
	// Warning: do not invoke this interface provided by others.
	GenerateAddress(context.Context, *EmptyMessage) (*AddressPrKeyPairMessage, error)
	GetTransactionInfoById(context.Context, *BytesMessage) (*core.TransactionInfo, error)
}

WalletServer is the server API for Wallet service.

type WalletSolidityClient

type WalletSolidityClient interface {
	GetAccount(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*core.Account, error)
	GetAccountById(ctx context.Context, in *core.Account, opts ...grpc.CallOption) (*core.Account, error)
	ListWitnesses(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*WitnessList, error)
	GetAssetIssueList(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AssetIssueList, error)
	GetPaginatedAssetIssueList(ctx context.Context, in *PaginatedMessage, opts ...grpc.CallOption) (*AssetIssueList, error)
	// Please use GetNowBlock2 instead of this function.
	GetNowBlock(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*core.Block, error)
	// Use this function instead of GetNowBlock.
	GetNowBlock2(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*BlockExtention, error)
	// Please use GetBlockByNum2 instead of this function.
	GetBlockByNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*core.Block, error)
	// Use this function instead of GetBlockByNum.
	GetBlockByNum2(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*BlockExtention, error)
	GetTransactionCountByBlockNum(ctx context.Context, in *NumberMessage, opts ...grpc.CallOption) (*NumberMessage, error)
	GetTransactionById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.Transaction, error)
	GetTransactionInfoById(ctx context.Context, in *BytesMessage, opts ...grpc.CallOption) (*core.TransactionInfo, error)
	// Warning: do not invoke this interface provided by others.
	GenerateAddress(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*AddressPrKeyPairMessage, error)
}

WalletSolidityClient is the client API for WalletSolidity service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewWalletSolidityClient

func NewWalletSolidityClient(cc *grpc.ClientConn) WalletSolidityClient

type WalletSolidityServer

type WalletSolidityServer interface {
	GetAccount(context.Context, *core.Account) (*core.Account, error)
	GetAccountById(context.Context, *core.Account) (*core.Account, error)
	ListWitnesses(context.Context, *EmptyMessage) (*WitnessList, error)
	GetAssetIssueList(context.Context, *EmptyMessage) (*AssetIssueList, error)
	GetPaginatedAssetIssueList(context.Context, *PaginatedMessage) (*AssetIssueList, error)
	// Please use GetNowBlock2 instead of this function.
	GetNowBlock(context.Context, *EmptyMessage) (*core.Block, error)
	// Use this function instead of GetNowBlock.
	GetNowBlock2(context.Context, *EmptyMessage) (*BlockExtention, error)
	// Please use GetBlockByNum2 instead of this function.
	GetBlockByNum(context.Context, *NumberMessage) (*core.Block, error)
	// Use this function instead of GetBlockByNum.
	GetBlockByNum2(context.Context, *NumberMessage) (*BlockExtention, error)
	GetTransactionCountByBlockNum(context.Context, *NumberMessage) (*NumberMessage, error)
	GetTransactionById(context.Context, *BytesMessage) (*core.Transaction, error)
	GetTransactionInfoById(context.Context, *BytesMessage) (*core.TransactionInfo, error)
	// Warning: do not invoke this interface provided by others.
	GenerateAddress(context.Context, *EmptyMessage) (*AddressPrKeyPairMessage, error)
}

WalletSolidityServer is the server API for WalletSolidity service.

type WitnessList

type WitnessList struct {
	Witnesses            []*core.Witness `protobuf:"bytes,1,rep,name=witnesses,proto3" json:"witnesses,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*WitnessList) Descriptor

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

func (*WitnessList) GetWitnesses

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

func (*WitnessList) ProtoMessage

func (*WitnessList) ProtoMessage()

func (*WitnessList) Reset

func (m *WitnessList) Reset()

func (*WitnessList) String

func (m *WitnessList) String() string

func (*WitnessList) XXX_DiscardUnknown

func (m *WitnessList) XXX_DiscardUnknown()

func (*WitnessList) XXX_Marshal

func (m *WitnessList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WitnessList) XXX_Merge

func (dst *WitnessList) XXX_Merge(src proto.Message)

func (*WitnessList) XXX_Size

func (m *WitnessList) XXX_Size() int

func (*WitnessList) XXX_Unmarshal

func (m *WitnessList) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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