Documentation ¶
Index ¶
- Variables
- func RegisterAuthServer(s *grpc.Server, srv AuthServer)
- func RegisterBlockGeneratorServer(s *grpc.Server, srv BlockGeneratorServer)
- func RegisterChainServer(s *grpc.Server, srv ChainServer)
- func RegisterConfigServer(s *grpc.Server, srv ConfigServer)
- func RegisterMempoolServer(s *grpc.Server, srv MempoolServer)
- func RegisterProvisionerServer(s *grpc.Server, srv ProvisionerServer)
- func RegisterTransactorServer(s *grpc.Server, srv TransactorServer)
- func RegisterWalletServer(s *grpc.Server, srv WalletServer)
- type AuthClient
- type AuthMock
- type AuthServer
- type BalanceResponse
- func (*BalanceResponse) Descriptor() ([]byte, []int)
- func (m *BalanceResponse) GetLockedBalance() uint64
- func (m *BalanceResponse) GetUnlockedBalance() uint64
- func (*BalanceResponse) ProtoMessage()
- func (m *BalanceResponse) Reset()
- func (m *BalanceResponse) String() string
- func (m *BalanceResponse) XXX_DiscardUnknown()
- func (m *BalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BalanceResponse) XXX_Merge(src proto.Message)
- func (m *BalanceResponse) XXX_Size() int
- func (m *BalanceResponse) XXX_Unmarshal(b []byte) error
- type BidRequest
- func (*BidRequest) Descriptor() ([]byte, []int)
- func (m *BidRequest) GetAmount() uint64
- func (m *BidRequest) GetFee() uint64
- func (m *BidRequest) GetLocktime() uint64
- func (*BidRequest) ProtoMessage()
- func (m *BidRequest) Reset()
- func (m *BidRequest) String() string
- func (m *BidRequest) XXX_DiscardUnknown()
- func (m *BidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BidRequest) XXX_Merge(src proto.Message)
- func (m *BidRequest) XXX_Size() int
- func (m *BidRequest) XXX_Unmarshal(b []byte) error
- type BlockGeneratorClient
- type BlockGeneratorMock
- type BlockGeneratorServer
- type CallContractRequest
- func (*CallContractRequest) Descriptor() ([]byte, []int)
- func (m *CallContractRequest) GetAddress() []byte
- func (m *CallContractRequest) GetData() []byte
- func (m *CallContractRequest) GetFee() uint64
- func (*CallContractRequest) ProtoMessage()
- func (m *CallContractRequest) Reset()
- func (m *CallContractRequest) String() string
- func (m *CallContractRequest) XXX_DiscardUnknown()
- func (m *CallContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CallContractRequest) XXX_Merge(src proto.Message)
- func (m *CallContractRequest) XXX_Size() int
- func (m *CallContractRequest) XXX_Unmarshal(b []byte) error
- type ChainClient
- type ChainMock
- type ChainServer
- type ConfigClient
- type ConfigMock
- type ConfigServer
- type ConsensusTxRequest
- func (*ConsensusTxRequest) Descriptor() ([]byte, []int)
- func (m *ConsensusTxRequest) GetAmount() uint64
- func (m *ConsensusTxRequest) GetLockTime() uint64
- func (*ConsensusTxRequest) ProtoMessage()
- func (m *ConsensusTxRequest) Reset()
- func (m *ConsensusTxRequest) String() string
- func (m *ConsensusTxRequest) XXX_DiscardUnknown()
- func (m *ConsensusTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConsensusTxRequest) XXX_Merge(src proto.Message)
- func (m *ConsensusTxRequest) XXX_Size() int
- func (m *ConsensusTxRequest) XXX_Unmarshal(b []byte) error
- type Direction
- type EmptyRequest
- func (*EmptyRequest) Descriptor() ([]byte, []int)
- func (*EmptyRequest) ProtoMessage()
- func (m *EmptyRequest) Reset()
- func (m *EmptyRequest) String() string
- func (m *EmptyRequest) XXX_DiscardUnknown()
- func (m *EmptyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EmptyRequest) XXX_Merge(src proto.Message)
- func (m *EmptyRequest) XXX_Size() int
- func (m *EmptyRequest) XXX_Unmarshal(b []byte) error
- type GenericResponse
- func (*GenericResponse) Descriptor() ([]byte, []int)
- func (m *GenericResponse) GetResponse() string
- func (*GenericResponse) ProtoMessage()
- func (m *GenericResponse) Reset()
- func (m *GenericResponse) String() string
- func (m *GenericResponse) XXX_DiscardUnknown()
- func (m *GenericResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenericResponse) XXX_Merge(src proto.Message)
- func (m *GenericResponse) XXX_Size() int
- func (m *GenericResponse) XXX_Unmarshal(b []byte) error
- type GetUnconfirmedBalanceRequest
- func (*GetUnconfirmedBalanceRequest) Descriptor() ([]byte, []int)
- func (m *GetUnconfirmedBalanceRequest) GetVk() []byte
- func (*GetUnconfirmedBalanceRequest) ProtoMessage()
- func (m *GetUnconfirmedBalanceRequest) Reset()
- func (m *GetUnconfirmedBalanceRequest) String() string
- func (m *GetUnconfirmedBalanceRequest) XXX_DiscardUnknown()
- func (m *GetUnconfirmedBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUnconfirmedBalanceRequest) XXX_Merge(src proto.Message)
- func (m *GetUnconfirmedBalanceRequest) XXX_Size() int
- func (m *GetUnconfirmedBalanceRequest) XXX_Unmarshal(b []byte) error
- type LoadResponse
- func (*LoadResponse) Descriptor() ([]byte, []int)
- func (m *LoadResponse) GetKey() *PubKey
- func (*LoadResponse) ProtoMessage()
- func (m *LoadResponse) Reset()
- func (m *LoadResponse) String() string
- func (m *LoadResponse) XXX_DiscardUnknown()
- func (m *LoadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoadResponse) XXX_Merge(src proto.Message)
- func (m *LoadResponse) XXX_Size() int
- func (m *LoadResponse) XXX_Unmarshal(b []byte) error
- type LogLevelRequest
- func (*LogLevelRequest) Descriptor() ([]byte, []int)
- func (m *LogLevelRequest) GetLevel() string
- func (*LogLevelRequest) ProtoMessage()
- func (m *LogLevelRequest) Reset()
- func (m *LogLevelRequest) String() string
- func (m *LogLevelRequest) XXX_DiscardUnknown()
- func (m *LogLevelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogLevelRequest) XXX_Merge(src proto.Message)
- func (m *LogLevelRequest) XXX_Size() int
- func (m *LogLevelRequest) XXX_Unmarshal(b []byte) error
- type MempoolClient
- type MempoolMock
- type MempoolServer
- type ProvisionerClient
- type ProvisionerMock
- type ProvisionerServer
- type PubKey
- func (*PubKey) Descriptor() ([]byte, []int)
- func (m *PubKey) GetPublicKey() []byte
- func (*PubKey) ProtoMessage()
- func (m *PubKey) Reset()
- func (m *PubKey) String() string
- func (m *PubKey) XXX_DiscardUnknown()
- func (m *PubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubKey) XXX_Merge(src proto.Message)
- func (m *PubKey) XXX_Size() int
- func (m *PubKey) XXX_Unmarshal(b []byte) error
- type SelectRequest
- func (*SelectRequest) Descriptor() ([]byte, []int)
- func (m *SelectRequest) GetId() string
- func (m *SelectRequest) GetTypes() []TxType
- func (*SelectRequest) ProtoMessage()
- func (m *SelectRequest) Reset()
- func (m *SelectRequest) String() string
- func (m *SelectRequest) XXX_DiscardUnknown()
- func (m *SelectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SelectRequest) XXX_Merge(src proto.Message)
- func (m *SelectRequest) XXX_Size() int
- func (m *SelectRequest) XXX_Unmarshal(b []byte) error
- type SelectResponse
- func (*SelectResponse) Descriptor() ([]byte, []int)
- func (m *SelectResponse) GetResult() []*Tx
- func (*SelectResponse) ProtoMessage()
- func (m *SelectResponse) Reset()
- func (m *SelectResponse) String() string
- func (m *SelectResponse) XXX_DiscardUnknown()
- func (m *SelectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SelectResponse) XXX_Merge(src proto.Message)
- func (m *SelectResponse) XXX_Size() int
- func (m *SelectResponse) XXX_Unmarshal(b []byte) error
- type Session
- func (*Session) Descriptor() ([]byte, []int)
- func (m *Session) GetAccessToken() string
- func (*Session) ProtoMessage()
- func (m *Session) Reset()
- func (m *Session) String() string
- func (m *Session) XXX_DiscardUnknown()
- func (m *Session) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Session) XXX_Merge(src proto.Message)
- func (m *Session) XXX_Size() int
- func (m *Session) XXX_Unmarshal(b []byte) error
- type SessionRequest
- func (*SessionRequest) Descriptor() ([]byte, []int)
- func (m *SessionRequest) GetEdPk() []byte
- func (m *SessionRequest) GetEdSig() []byte
- func (*SessionRequest) ProtoMessage()
- func (m *SessionRequest) Reset()
- func (m *SessionRequest) String() string
- func (m *SessionRequest) XXX_DiscardUnknown()
- func (m *SessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SessionRequest) XXX_Merge(src proto.Message)
- func (m *SessionRequest) XXX_Size() int
- func (m *SessionRequest) XXX_Unmarshal(b []byte) error
- type StakeRequest
- func (*StakeRequest) Descriptor() ([]byte, []int)
- func (m *StakeRequest) GetAmount() uint64
- func (m *StakeRequest) GetFee() uint64
- func (m *StakeRequest) GetLocktime() uint64
- func (*StakeRequest) ProtoMessage()
- func (m *StakeRequest) Reset()
- func (m *StakeRequest) String() string
- func (m *StakeRequest) XXX_DiscardUnknown()
- func (m *StakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StakeRequest) XXX_Merge(src proto.Message)
- func (m *StakeRequest) XXX_Size() int
- func (m *StakeRequest) XXX_Unmarshal(b []byte) error
- type SyncProgressResponse
- func (*SyncProgressResponse) Descriptor() ([]byte, []int)
- func (m *SyncProgressResponse) GetProgress() float32
- func (*SyncProgressResponse) ProtoMessage()
- func (m *SyncProgressResponse) Reset()
- func (m *SyncProgressResponse) String() string
- func (m *SyncProgressResponse) XXX_DiscardUnknown()
- func (m *SyncProgressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SyncProgressResponse) XXX_Merge(src proto.Message)
- func (m *SyncProgressResponse) XXX_Size() int
- func (m *SyncProgressResponse) XXX_Unmarshal(b []byte) error
- type TransactionResponse
- func (*TransactionResponse) Descriptor() ([]byte, []int)
- func (m *TransactionResponse) GetHash() []byte
- func (*TransactionResponse) ProtoMessage()
- func (m *TransactionResponse) Reset()
- func (m *TransactionResponse) String() string
- func (m *TransactionResponse) XXX_DiscardUnknown()
- func (m *TransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionResponse) XXX_Merge(src proto.Message)
- func (m *TransactionResponse) XXX_Size() int
- func (m *TransactionResponse) XXX_Unmarshal(b []byte) error
- type TransactorClient
- type TransactorMock
- func (m *TransactorMock) Bid(ctx context.Context, req *BidRequest) (*TransactionResponse, error)
- func (m *TransactorMock) CallContract(ctx context.Context, req *CallContractRequest) (*TransactionResponse, error)
- func (m *TransactorMock) Stake(ctx context.Context, req *StakeRequest) (*TransactionResponse, error)
- func (m *TransactorMock) Transfer(ctx context.Context, req *TransferRequest) (*TransactionResponse, error)
- type TransactorServer
- type TransferRequest
- func (*TransferRequest) Descriptor() ([]byte, []int)
- func (m *TransferRequest) GetAddress() []byte
- func (m *TransferRequest) GetAmount() uint64
- func (m *TransferRequest) GetFee() uint64
- func (*TransferRequest) ProtoMessage()
- func (m *TransferRequest) Reset()
- func (m *TransferRequest) String() string
- func (m *TransferRequest) XXX_DiscardUnknown()
- func (m *TransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransferRequest) XXX_Merge(src proto.Message)
- func (m *TransferRequest) XXX_Size() int
- func (m *TransferRequest) XXX_Unmarshal(b []byte) error
- type Tx
- func (*Tx) Descriptor() ([]byte, []int)
- func (m *Tx) GetId() string
- func (m *Tx) GetLockTime() uint64
- func (m *Tx) GetType() TxType
- func (*Tx) ProtoMessage()
- func (m *Tx) Reset()
- func (m *Tx) String() string
- func (m *Tx) XXX_DiscardUnknown()
- func (m *Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Tx) XXX_Merge(src proto.Message)
- func (m *Tx) XXX_Size() int
- func (m *Tx) XXX_Unmarshal(b []byte) error
- type TxHistoryResponse
- func (*TxHistoryResponse) Descriptor() ([]byte, []int)
- func (m *TxHistoryResponse) GetRecords() []*TxRecord
- func (*TxHistoryResponse) ProtoMessage()
- func (m *TxHistoryResponse) Reset()
- func (m *TxHistoryResponse) String() string
- func (m *TxHistoryResponse) XXX_DiscardUnknown()
- func (m *TxHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxHistoryResponse) XXX_Merge(src proto.Message)
- func (m *TxHistoryResponse) XXX_Size() int
- func (m *TxHistoryResponse) XXX_Unmarshal(b []byte) error
- type TxRecord
- func (*TxRecord) Descriptor() ([]byte, []int)
- func (m *TxRecord) GetAmount() uint64
- func (m *TxRecord) GetData() []byte
- func (m *TxRecord) GetDirection() Direction
- func (m *TxRecord) GetFee() uint64
- func (m *TxRecord) GetHash() []byte
- func (m *TxRecord) GetHeight() uint64
- func (m *TxRecord) GetObfuscated() bool
- func (m *TxRecord) GetTimestamp() int64
- func (m *TxRecord) GetType() TxType
- func (m *TxRecord) GetUnlockHeight() uint64
- func (*TxRecord) ProtoMessage()
- func (m *TxRecord) Reset()
- func (m *TxRecord) String() string
- func (m *TxRecord) XXX_DiscardUnknown()
- func (m *TxRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxRecord) XXX_Merge(src proto.Message)
- func (m *TxRecord) XXX_Size() int
- func (m *TxRecord) XXX_Unmarshal(b []byte) error
- type TxType
- type UnimplementedAuthServer
- type UnimplementedBlockGeneratorServer
- type UnimplementedChainServer
- type UnimplementedConfigServer
- type UnimplementedMempoolServer
- type UnimplementedProvisionerServer
- type UnimplementedTransactorServer
- func (*UnimplementedTransactorServer) Bid(ctx context.Context, req *BidRequest) (*TransactionResponse, error)
- func (*UnimplementedTransactorServer) CallContract(ctx context.Context, req *CallContractRequest) (*TransactionResponse, error)
- func (*UnimplementedTransactorServer) Stake(ctx context.Context, req *StakeRequest) (*TransactionResponse, error)
- func (*UnimplementedTransactorServer) Transfer(ctx context.Context, req *TransferRequest) (*TransactionResponse, error)
- type UnimplementedWalletServer
- func (*UnimplementedWalletServer) ClearWalletDatabase(ctx context.Context, req *EmptyRequest) (*GenericResponse, error)
- func (*UnimplementedWalletServer) GetAddress(ctx context.Context, req *EmptyRequest) (*LoadResponse, error)
- func (*UnimplementedWalletServer) GetBalance(ctx context.Context, req *EmptyRequest) (*BalanceResponse, error)
- func (*UnimplementedWalletServer) GetTxHistory(ctx context.Context, req *EmptyRequest) (*TxHistoryResponse, error)
- type WalletClient
- type WalletMock
- func (m *WalletMock) ClearWalletDatabase(ctx context.Context, req *EmptyRequest) (*GenericResponse, error)
- func (m *WalletMock) GetAddress(ctx context.Context, req *EmptyRequest) (*LoadResponse, error)
- func (m *WalletMock) GetBalance(ctx context.Context, req *EmptyRequest) (*BalanceResponse, error)
- func (m *WalletMock) GetTxHistory(ctx context.Context, req *EmptyRequest) (*TxHistoryResponse, error)
- type WalletServer
Constants ¶
This section is empty.
Variables ¶
var Direction_name = map[int32]string{
0: "OUT",
1: "IN",
}
var Direction_value = map[string]int32{
"OUT": 0,
"IN": 1,
}
var TxType_name = map[int32]string{
0: "STANDARD",
1: "DISTRIBUTE",
2: "WITHDRAWFEES",
3: "BID",
4: "STAKE",
5: "SLASH",
6: "WITHDRAWSTAKE",
7: "WITHDRAWBID",
}
var TxType_value = map[string]int32{
"STANDARD": 0,
"DISTRIBUTE": 1,
"WITHDRAWFEES": 2,
"BID": 3,
"STAKE": 4,
"SLASH": 5,
"WITHDRAWSTAKE": 6,
"WITHDRAWBID": 7,
}
Functions ¶
func RegisterAuthServer ¶ added in v0.2.8
func RegisterAuthServer(s *grpc.Server, srv AuthServer)
func RegisterBlockGeneratorServer ¶ added in v0.2.4
func RegisterBlockGeneratorServer(s *grpc.Server, srv BlockGeneratorServer)
func RegisterChainServer ¶ added in v0.2.0
func RegisterChainServer(s *grpc.Server, srv ChainServer)
func RegisterConfigServer ¶ added in v0.2.16
func RegisterConfigServer(s *grpc.Server, srv ConfigServer)
func RegisterMempoolServer ¶ added in v0.2.0
func RegisterMempoolServer(s *grpc.Server, srv MempoolServer)
func RegisterProvisionerServer ¶ added in v0.2.4
func RegisterProvisionerServer(s *grpc.Server, srv ProvisionerServer)
func RegisterTransactorServer ¶ added in v0.2.0
func RegisterTransactorServer(s *grpc.Server, srv TransactorServer)
func RegisterWalletServer ¶ added in v0.2.0
func RegisterWalletServer(s *grpc.Server, srv WalletServer)
Types ¶
type AuthClient ¶ added in v0.2.8
type AuthClient interface { CreateSession(ctx context.Context, in *SessionRequest, opts ...grpc.CallOption) (*Session, error) DropSession(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GenericResponse, error) }
AuthClient is the client API for Auth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthClient ¶ added in v0.2.8
func NewAuthClient(cc *grpc.ClientConn) AuthClient
type AuthMock ¶ added in v0.2.8
type AuthMock struct{}
func (*AuthMock) CreateSession ¶ added in v0.2.8
func (*AuthMock) DropSession ¶ added in v0.2.8
func (m *AuthMock) DropSession(ctx context.Context, req *EmptyRequest) (*GenericResponse, error)
type AuthServer ¶ added in v0.2.8
type AuthServer interface { CreateSession(context.Context, *SessionRequest) (*Session, error) DropSession(context.Context, *EmptyRequest) (*GenericResponse, error) }
AuthServer is the server API for Auth service.
type BalanceResponse ¶
type BalanceResponse struct { UnlockedBalance uint64 `protobuf:"fixed64,1,opt,name=unlockedBalance,proto3" json:"unlockedBalance,omitempty"` LockedBalance uint64 `protobuf:"fixed64,2,opt,name=lockedBalance,proto3" json:"lockedBalance,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BalanceResponse) Descriptor ¶
func (*BalanceResponse) Descriptor() ([]byte, []int)
func (*BalanceResponse) GetLockedBalance ¶
func (m *BalanceResponse) GetLockedBalance() uint64
func (*BalanceResponse) GetUnlockedBalance ¶
func (m *BalanceResponse) GetUnlockedBalance() uint64
func (*BalanceResponse) ProtoMessage ¶
func (*BalanceResponse) ProtoMessage()
func (*BalanceResponse) Reset ¶
func (m *BalanceResponse) Reset()
func (*BalanceResponse) String ¶
func (m *BalanceResponse) String() string
func (*BalanceResponse) XXX_DiscardUnknown ¶
func (m *BalanceResponse) XXX_DiscardUnknown()
func (*BalanceResponse) XXX_Marshal ¶
func (m *BalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BalanceResponse) XXX_Merge ¶
func (m *BalanceResponse) XXX_Merge(src proto.Message)
func (*BalanceResponse) XXX_Size ¶
func (m *BalanceResponse) XXX_Size() int
func (*BalanceResponse) XXX_Unmarshal ¶
func (m *BalanceResponse) XXX_Unmarshal(b []byte) error
type BidRequest ¶ added in v0.2.0
type BidRequest struct { Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` Fee uint64 `protobuf:"fixed64,2,opt,name=fee,proto3" json:"fee,omitempty"` Locktime uint64 `protobuf:"fixed64,3,opt,name=locktime,proto3" json:"locktime,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BidRequest) Descriptor ¶ added in v0.2.0
func (*BidRequest) Descriptor() ([]byte, []int)
func (*BidRequest) GetAmount ¶ added in v0.2.0
func (m *BidRequest) GetAmount() uint64
func (*BidRequest) GetFee ¶ added in v0.2.0
func (m *BidRequest) GetFee() uint64
func (*BidRequest) GetLocktime ¶ added in v0.2.0
func (m *BidRequest) GetLocktime() uint64
func (*BidRequest) ProtoMessage ¶ added in v0.2.0
func (*BidRequest) ProtoMessage()
func (*BidRequest) Reset ¶ added in v0.2.0
func (m *BidRequest) Reset()
func (*BidRequest) String ¶ added in v0.2.0
func (m *BidRequest) String() string
func (*BidRequest) XXX_DiscardUnknown ¶ added in v0.2.4
func (m *BidRequest) XXX_DiscardUnknown()
func (*BidRequest) XXX_Marshal ¶ added in v0.2.4
func (m *BidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BidRequest) XXX_Merge ¶ added in v0.2.4
func (m *BidRequest) XXX_Merge(src proto.Message)
func (*BidRequest) XXX_Size ¶ added in v0.2.4
func (m *BidRequest) XXX_Size() int
func (*BidRequest) XXX_Unmarshal ¶ added in v0.2.4
func (m *BidRequest) XXX_Unmarshal(b []byte) error
type BlockGeneratorClient ¶ added in v0.2.4
type BlockGeneratorClient interface {
AutomateBids(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GenericResponse, error)
}
BlockGeneratorClient is the client API for BlockGenerator service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBlockGeneratorClient ¶ added in v0.2.4
func NewBlockGeneratorClient(cc *grpc.ClientConn) BlockGeneratorClient
type BlockGeneratorMock ¶ added in v0.2.4
type BlockGeneratorMock struct{}
func (*BlockGeneratorMock) AutomateBids ¶ added in v0.2.4
func (m *BlockGeneratorMock) AutomateBids(ctx context.Context, req *EmptyRequest) (*GenericResponse, error)
type BlockGeneratorServer ¶ added in v0.2.4
type BlockGeneratorServer interface {
AutomateBids(context.Context, *EmptyRequest) (*GenericResponse, error)
}
BlockGeneratorServer is the server API for BlockGenerator service.
type CallContractRequest ¶ added in v0.2.0
type CallContractRequest struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Fee uint64 `protobuf:"fixed64,3,opt,name=fee,proto3" json:"fee,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CallContractRequest) Descriptor ¶ added in v0.2.0
func (*CallContractRequest) Descriptor() ([]byte, []int)
func (*CallContractRequest) GetAddress ¶ added in v0.2.0
func (m *CallContractRequest) GetAddress() []byte
func (*CallContractRequest) GetData ¶ added in v0.2.0
func (m *CallContractRequest) GetData() []byte
func (*CallContractRequest) GetFee ¶ added in v0.2.0
func (m *CallContractRequest) GetFee() uint64
func (*CallContractRequest) ProtoMessage ¶ added in v0.2.0
func (*CallContractRequest) ProtoMessage()
func (*CallContractRequest) Reset ¶ added in v0.2.0
func (m *CallContractRequest) Reset()
func (*CallContractRequest) String ¶ added in v0.2.0
func (m *CallContractRequest) String() string
func (*CallContractRequest) XXX_DiscardUnknown ¶ added in v0.2.4
func (m *CallContractRequest) XXX_DiscardUnknown()
func (*CallContractRequest) XXX_Marshal ¶ added in v0.2.4
func (m *CallContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CallContractRequest) XXX_Merge ¶ added in v0.2.4
func (m *CallContractRequest) XXX_Merge(src proto.Message)
func (*CallContractRequest) XXX_Size ¶ added in v0.2.4
func (m *CallContractRequest) XXX_Size() int
func (*CallContractRequest) XXX_Unmarshal ¶ added in v0.2.4
func (m *CallContractRequest) XXX_Unmarshal(b []byte) error
type ChainClient ¶ added in v0.2.0
type ChainClient interface { RebuildChain(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GenericResponse, error) GetSyncProgress(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*SyncProgressResponse, error) }
ChainClient is the client API for Chain service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewChainClient ¶ added in v0.2.0
func NewChainClient(cc *grpc.ClientConn) ChainClient
type ChainMock ¶ added in v0.2.0
type ChainMock struct{}
func (*ChainMock) GetSyncProgress ¶ added in v0.2.0
func (m *ChainMock) GetSyncProgress(ctx context.Context, req *EmptyRequest) (*SyncProgressResponse, error)
func (*ChainMock) RebuildChain ¶ added in v0.2.0
func (m *ChainMock) RebuildChain(ctx context.Context, req *EmptyRequest) (*GenericResponse, error)
type ChainServer ¶ added in v0.2.0
type ChainServer interface { RebuildChain(context.Context, *EmptyRequest) (*GenericResponse, error) GetSyncProgress(context.Context, *EmptyRequest) (*SyncProgressResponse, error) }
ChainServer is the server API for Chain service.
type ConfigClient ¶ added in v0.2.16
type ConfigClient interface {
ChangeLogLevel(ctx context.Context, in *LogLevelRequest, opts ...grpc.CallOption) (*GenericResponse, error)
}
ConfigClient is the client API for Config service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewConfigClient ¶ added in v0.2.16
func NewConfigClient(cc *grpc.ClientConn) ConfigClient
type ConfigMock ¶ added in v0.2.16
type ConfigMock struct{}
func (*ConfigMock) ChangeLogLevel ¶ added in v0.2.16
func (m *ConfigMock) ChangeLogLevel(ctx context.Context, req *LogLevelRequest) (*GenericResponse, error)
type ConfigServer ¶ added in v0.2.16
type ConfigServer interface {
ChangeLogLevel(context.Context, *LogLevelRequest) (*GenericResponse, error)
}
ConfigServer is the server API for Config service.
type ConsensusTxRequest ¶
type ConsensusTxRequest struct { Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` LockTime uint64 `protobuf:"fixed64,2,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ConsensusTxRequest) Descriptor ¶
func (*ConsensusTxRequest) Descriptor() ([]byte, []int)
func (*ConsensusTxRequest) GetAmount ¶
func (m *ConsensusTxRequest) GetAmount() uint64
func (*ConsensusTxRequest) GetLockTime ¶
func (m *ConsensusTxRequest) GetLockTime() uint64
func (*ConsensusTxRequest) ProtoMessage ¶
func (*ConsensusTxRequest) ProtoMessage()
func (*ConsensusTxRequest) Reset ¶
func (m *ConsensusTxRequest) Reset()
func (*ConsensusTxRequest) String ¶
func (m *ConsensusTxRequest) String() string
func (*ConsensusTxRequest) XXX_DiscardUnknown ¶
func (m *ConsensusTxRequest) XXX_DiscardUnknown()
func (*ConsensusTxRequest) XXX_Marshal ¶
func (m *ConsensusTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConsensusTxRequest) XXX_Merge ¶
func (m *ConsensusTxRequest) XXX_Merge(src proto.Message)
func (*ConsensusTxRequest) XXX_Size ¶
func (m *ConsensusTxRequest) XXX_Size() int
func (*ConsensusTxRequest) XXX_Unmarshal ¶
func (m *ConsensusTxRequest) XXX_Unmarshal(b []byte) error
type EmptyRequest ¶
type EmptyRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EmptyRequest) Descriptor ¶
func (*EmptyRequest) Descriptor() ([]byte, []int)
func (*EmptyRequest) ProtoMessage ¶
func (*EmptyRequest) ProtoMessage()
func (*EmptyRequest) Reset ¶
func (m *EmptyRequest) Reset()
func (*EmptyRequest) String ¶
func (m *EmptyRequest) String() string
func (*EmptyRequest) XXX_DiscardUnknown ¶
func (m *EmptyRequest) XXX_DiscardUnknown()
func (*EmptyRequest) XXX_Marshal ¶
func (m *EmptyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EmptyRequest) XXX_Merge ¶
func (m *EmptyRequest) XXX_Merge(src proto.Message)
func (*EmptyRequest) XXX_Size ¶
func (m *EmptyRequest) XXX_Size() int
func (*EmptyRequest) XXX_Unmarshal ¶
func (m *EmptyRequest) XXX_Unmarshal(b []byte) error
type GenericResponse ¶
type GenericResponse struct { Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GenericResponse) Descriptor ¶
func (*GenericResponse) Descriptor() ([]byte, []int)
func (*GenericResponse) GetResponse ¶
func (m *GenericResponse) GetResponse() string
func (*GenericResponse) ProtoMessage ¶
func (*GenericResponse) ProtoMessage()
func (*GenericResponse) Reset ¶
func (m *GenericResponse) Reset()
func (*GenericResponse) String ¶
func (m *GenericResponse) String() string
func (*GenericResponse) XXX_DiscardUnknown ¶
func (m *GenericResponse) XXX_DiscardUnknown()
func (*GenericResponse) XXX_Marshal ¶
func (m *GenericResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenericResponse) XXX_Merge ¶
func (m *GenericResponse) XXX_Merge(src proto.Message)
func (*GenericResponse) XXX_Size ¶
func (m *GenericResponse) XXX_Size() int
func (*GenericResponse) XXX_Unmarshal ¶
func (m *GenericResponse) XXX_Unmarshal(b []byte) error
type GetUnconfirmedBalanceRequest ¶ added in v0.2.7
type GetUnconfirmedBalanceRequest struct { Vk []byte `protobuf:"bytes,1,opt,name=vk,proto3" json:"vk,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetUnconfirmedBalanceRequest) Descriptor ¶ added in v0.2.7
func (*GetUnconfirmedBalanceRequest) Descriptor() ([]byte, []int)
func (*GetUnconfirmedBalanceRequest) GetVk ¶ added in v0.2.7
func (m *GetUnconfirmedBalanceRequest) GetVk() []byte
func (*GetUnconfirmedBalanceRequest) ProtoMessage ¶ added in v0.2.7
func (*GetUnconfirmedBalanceRequest) ProtoMessage()
func (*GetUnconfirmedBalanceRequest) Reset ¶ added in v0.2.7
func (m *GetUnconfirmedBalanceRequest) Reset()
func (*GetUnconfirmedBalanceRequest) String ¶ added in v0.2.7
func (m *GetUnconfirmedBalanceRequest) String() string
func (*GetUnconfirmedBalanceRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *GetUnconfirmedBalanceRequest) XXX_DiscardUnknown()
func (*GetUnconfirmedBalanceRequest) XXX_Marshal ¶ added in v0.2.7
func (m *GetUnconfirmedBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUnconfirmedBalanceRequest) XXX_Merge ¶ added in v0.2.7
func (m *GetUnconfirmedBalanceRequest) XXX_Merge(src proto.Message)
func (*GetUnconfirmedBalanceRequest) XXX_Size ¶ added in v0.2.7
func (m *GetUnconfirmedBalanceRequest) XXX_Size() int
func (*GetUnconfirmedBalanceRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *GetUnconfirmedBalanceRequest) XXX_Unmarshal(b []byte) error
type LoadResponse ¶
type LoadResponse struct { Key *PubKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LoadResponse) Descriptor ¶
func (*LoadResponse) Descriptor() ([]byte, []int)
func (*LoadResponse) GetKey ¶
func (m *LoadResponse) GetKey() *PubKey
func (*LoadResponse) ProtoMessage ¶
func (*LoadResponse) ProtoMessage()
func (*LoadResponse) Reset ¶
func (m *LoadResponse) Reset()
func (*LoadResponse) String ¶
func (m *LoadResponse) String() string
func (*LoadResponse) XXX_DiscardUnknown ¶
func (m *LoadResponse) XXX_DiscardUnknown()
func (*LoadResponse) XXX_Marshal ¶
func (m *LoadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoadResponse) XXX_Merge ¶
func (m *LoadResponse) XXX_Merge(src proto.Message)
func (*LoadResponse) XXX_Size ¶
func (m *LoadResponse) XXX_Size() int
func (*LoadResponse) XXX_Unmarshal ¶
func (m *LoadResponse) XXX_Unmarshal(b []byte) error
type LogLevelRequest ¶ added in v0.2.16
type LogLevelRequest struct { Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogLevelRequest) Descriptor ¶ added in v0.2.16
func (*LogLevelRequest) Descriptor() ([]byte, []int)
func (*LogLevelRequest) GetLevel ¶ added in v0.2.16
func (m *LogLevelRequest) GetLevel() string
func (*LogLevelRequest) ProtoMessage ¶ added in v0.2.16
func (*LogLevelRequest) ProtoMessage()
func (*LogLevelRequest) Reset ¶ added in v0.2.16
func (m *LogLevelRequest) Reset()
func (*LogLevelRequest) String ¶ added in v0.2.16
func (m *LogLevelRequest) String() string
func (*LogLevelRequest) XXX_DiscardUnknown ¶ added in v0.2.16
func (m *LogLevelRequest) XXX_DiscardUnknown()
func (*LogLevelRequest) XXX_Marshal ¶ added in v0.2.16
func (m *LogLevelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogLevelRequest) XXX_Merge ¶ added in v0.2.16
func (m *LogLevelRequest) XXX_Merge(src proto.Message)
func (*LogLevelRequest) XXX_Size ¶ added in v0.2.16
func (m *LogLevelRequest) XXX_Size() int
func (*LogLevelRequest) XXX_Unmarshal ¶ added in v0.2.16
func (m *LogLevelRequest) XXX_Unmarshal(b []byte) error
type MempoolClient ¶ added in v0.2.0
type MempoolClient interface { GetUnconfirmedBalance(ctx context.Context, in *GetUnconfirmedBalanceRequest, opts ...grpc.CallOption) (*BalanceResponse, error) SelectTx(ctx context.Context, in *SelectRequest, opts ...grpc.CallOption) (*SelectResponse, error) }
MempoolClient is the client API for Mempool service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMempoolClient ¶ added in v0.2.0
func NewMempoolClient(cc *grpc.ClientConn) MempoolClient
type MempoolMock ¶ added in v0.2.0
type MempoolMock struct{}
func (*MempoolMock) GetUnconfirmedBalance ¶ added in v0.2.0
func (m *MempoolMock) GetUnconfirmedBalance(ctx context.Context, req *GetUnconfirmedBalanceRequest) (*BalanceResponse, error)
func (*MempoolMock) SelectTx ¶ added in v0.2.0
func (m *MempoolMock) SelectTx(ctx context.Context, req *SelectRequest) (*SelectResponse, error)
type MempoolServer ¶ added in v0.2.0
type MempoolServer interface { GetUnconfirmedBalance(context.Context, *GetUnconfirmedBalanceRequest) (*BalanceResponse, error) SelectTx(context.Context, *SelectRequest) (*SelectResponse, error) }
MempoolServer is the server API for Mempool service.
type ProvisionerClient ¶ added in v0.2.4
type ProvisionerClient interface {
AutomateStakes(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GenericResponse, error)
}
ProvisionerClient is the client API for Provisioner service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewProvisionerClient ¶ added in v0.2.4
func NewProvisionerClient(cc *grpc.ClientConn) ProvisionerClient
type ProvisionerMock ¶ added in v0.2.4
type ProvisionerMock struct{}
func (*ProvisionerMock) AutomateStakes ¶ added in v0.2.4
func (m *ProvisionerMock) AutomateStakes(ctx context.Context, req *EmptyRequest) (*GenericResponse, error)
type ProvisionerServer ¶ added in v0.2.4
type ProvisionerServer interface {
AutomateStakes(context.Context, *EmptyRequest) (*GenericResponse, error)
}
ProvisionerServer is the server API for Provisioner service.
type PubKey ¶
type PubKey struct { PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PubKey) Descriptor ¶
func (*PubKey) GetPublicKey ¶
func (*PubKey) ProtoMessage ¶
func (*PubKey) ProtoMessage()
func (*PubKey) XXX_DiscardUnknown ¶
func (m *PubKey) XXX_DiscardUnknown()
func (*PubKey) XXX_Marshal ¶
func (*PubKey) XXX_Unmarshal ¶
type SelectRequest ¶
type SelectRequest struct { Types []TxType `protobuf:"varint,1,rep,packed,name=types,proto3,enum=node.TxType" json:"types,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SelectRequest can specify an ID or a transaction type or none
func (*SelectRequest) Descriptor ¶
func (*SelectRequest) Descriptor() ([]byte, []int)
func (*SelectRequest) GetId ¶
func (m *SelectRequest) GetId() string
func (*SelectRequest) GetTypes ¶
func (m *SelectRequest) GetTypes() []TxType
func (*SelectRequest) ProtoMessage ¶
func (*SelectRequest) ProtoMessage()
func (*SelectRequest) Reset ¶
func (m *SelectRequest) Reset()
func (*SelectRequest) String ¶
func (m *SelectRequest) String() string
func (*SelectRequest) XXX_DiscardUnknown ¶
func (m *SelectRequest) XXX_DiscardUnknown()
func (*SelectRequest) XXX_Marshal ¶
func (m *SelectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SelectRequest) XXX_Merge ¶
func (m *SelectRequest) XXX_Merge(src proto.Message)
func (*SelectRequest) XXX_Size ¶
func (m *SelectRequest) XXX_Size() int
func (*SelectRequest) XXX_Unmarshal ¶
func (m *SelectRequest) XXX_Unmarshal(b []byte) error
type SelectResponse ¶
type SelectResponse struct { //Note: the response was a single string describing the transactions. //It should actually be responsibility of the caller to format the data or handle it otherwise //string msg = 1; Result []*Tx `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SelectResponse) Descriptor ¶
func (*SelectResponse) Descriptor() ([]byte, []int)
func (*SelectResponse) GetResult ¶
func (m *SelectResponse) GetResult() []*Tx
func (*SelectResponse) ProtoMessage ¶
func (*SelectResponse) ProtoMessage()
func (*SelectResponse) Reset ¶
func (m *SelectResponse) Reset()
func (*SelectResponse) String ¶
func (m *SelectResponse) String() string
func (*SelectResponse) XXX_DiscardUnknown ¶
func (m *SelectResponse) XXX_DiscardUnknown()
func (*SelectResponse) XXX_Marshal ¶
func (m *SelectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SelectResponse) XXX_Merge ¶
func (m *SelectResponse) XXX_Merge(src proto.Message)
func (*SelectResponse) XXX_Size ¶
func (m *SelectResponse) XXX_Size() int
func (*SelectResponse) XXX_Unmarshal ¶
func (m *SelectResponse) XXX_Unmarshal(b []byte) error
type Session ¶ added in v0.2.8
type Session struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Session) Descriptor ¶ added in v0.2.8
func (*Session) GetAccessToken ¶ added in v0.2.8
func (*Session) ProtoMessage ¶ added in v0.2.8
func (*Session) ProtoMessage()
func (*Session) XXX_DiscardUnknown ¶ added in v0.2.11
func (m *Session) XXX_DiscardUnknown()
func (*Session) XXX_Marshal ¶ added in v0.2.11
func (*Session) XXX_Unmarshal ¶ added in v0.2.11
type SessionRequest ¶ added in v0.2.8
type SessionRequest struct { EdPk []byte `protobuf:"bytes,1,opt,name=ed_pk,json=edPk,proto3" json:"ed_pk,omitempty"` EdSig []byte `protobuf:"bytes,2,opt,name=ed_sig,json=edSig,proto3" json:"ed_sig,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SessionRequest) Descriptor ¶ added in v0.2.8
func (*SessionRequest) Descriptor() ([]byte, []int)
func (*SessionRequest) GetEdPk ¶ added in v0.2.8
func (m *SessionRequest) GetEdPk() []byte
func (*SessionRequest) GetEdSig ¶ added in v0.2.8
func (m *SessionRequest) GetEdSig() []byte
func (*SessionRequest) ProtoMessage ¶ added in v0.2.8
func (*SessionRequest) ProtoMessage()
func (*SessionRequest) Reset ¶ added in v0.2.8
func (m *SessionRequest) Reset()
func (*SessionRequest) String ¶ added in v0.2.8
func (m *SessionRequest) String() string
func (*SessionRequest) XXX_DiscardUnknown ¶ added in v0.2.11
func (m *SessionRequest) XXX_DiscardUnknown()
func (*SessionRequest) XXX_Marshal ¶ added in v0.2.11
func (m *SessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SessionRequest) XXX_Merge ¶ added in v0.2.11
func (m *SessionRequest) XXX_Merge(src proto.Message)
func (*SessionRequest) XXX_Size ¶ added in v0.2.11
func (m *SessionRequest) XXX_Size() int
func (*SessionRequest) XXX_Unmarshal ¶ added in v0.2.11
func (m *SessionRequest) XXX_Unmarshal(b []byte) error
type StakeRequest ¶ added in v0.2.0
type StakeRequest struct { Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` Fee uint64 `protobuf:"fixed64,2,opt,name=fee,proto3" json:"fee,omitempty"` Locktime uint64 `protobuf:"fixed64,3,opt,name=locktime,proto3" json:"locktime,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StakeRequest) Descriptor ¶ added in v0.2.0
func (*StakeRequest) Descriptor() ([]byte, []int)
func (*StakeRequest) GetAmount ¶ added in v0.2.0
func (m *StakeRequest) GetAmount() uint64
func (*StakeRequest) GetFee ¶ added in v0.2.0
func (m *StakeRequest) GetFee() uint64
func (*StakeRequest) GetLocktime ¶ added in v0.2.0
func (m *StakeRequest) GetLocktime() uint64
func (*StakeRequest) ProtoMessage ¶ added in v0.2.0
func (*StakeRequest) ProtoMessage()
func (*StakeRequest) Reset ¶ added in v0.2.0
func (m *StakeRequest) Reset()
func (*StakeRequest) String ¶ added in v0.2.0
func (m *StakeRequest) String() string
func (*StakeRequest) XXX_DiscardUnknown ¶ added in v0.2.4
func (m *StakeRequest) XXX_DiscardUnknown()
func (*StakeRequest) XXX_Marshal ¶ added in v0.2.4
func (m *StakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StakeRequest) XXX_Merge ¶ added in v0.2.4
func (m *StakeRequest) XXX_Merge(src proto.Message)
func (*StakeRequest) XXX_Size ¶ added in v0.2.4
func (m *StakeRequest) XXX_Size() int
func (*StakeRequest) XXX_Unmarshal ¶ added in v0.2.4
func (m *StakeRequest) XXX_Unmarshal(b []byte) error
type SyncProgressResponse ¶
type SyncProgressResponse struct { Progress float32 `protobuf:"fixed32,1,opt,name=progress,proto3" json:"progress,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SyncProgressResponse) Descriptor ¶
func (*SyncProgressResponse) Descriptor() ([]byte, []int)
func (*SyncProgressResponse) GetProgress ¶
func (m *SyncProgressResponse) GetProgress() float32
func (*SyncProgressResponse) ProtoMessage ¶
func (*SyncProgressResponse) ProtoMessage()
func (*SyncProgressResponse) Reset ¶
func (m *SyncProgressResponse) Reset()
func (*SyncProgressResponse) String ¶
func (m *SyncProgressResponse) String() string
func (*SyncProgressResponse) XXX_DiscardUnknown ¶
func (m *SyncProgressResponse) XXX_DiscardUnknown()
func (*SyncProgressResponse) XXX_Marshal ¶
func (m *SyncProgressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SyncProgressResponse) XXX_Merge ¶
func (m *SyncProgressResponse) XXX_Merge(src proto.Message)
func (*SyncProgressResponse) XXX_Size ¶
func (m *SyncProgressResponse) XXX_Size() int
func (*SyncProgressResponse) XXX_Unmarshal ¶
func (m *SyncProgressResponse) XXX_Unmarshal(b []byte) error
type TransactionResponse ¶ added in v0.2.0
type TransactionResponse struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TransactionResponse) Descriptor ¶ added in v0.2.0
func (*TransactionResponse) Descriptor() ([]byte, []int)
func (*TransactionResponse) GetHash ¶ added in v0.2.0
func (m *TransactionResponse) GetHash() []byte
func (*TransactionResponse) ProtoMessage ¶ added in v0.2.0
func (*TransactionResponse) ProtoMessage()
func (*TransactionResponse) Reset ¶ added in v0.2.0
func (m *TransactionResponse) Reset()
func (*TransactionResponse) String ¶ added in v0.2.0
func (m *TransactionResponse) String() string
func (*TransactionResponse) XXX_DiscardUnknown ¶ added in v0.2.4
func (m *TransactionResponse) XXX_DiscardUnknown()
func (*TransactionResponse) XXX_Marshal ¶ added in v0.2.4
func (m *TransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionResponse) XXX_Merge ¶ added in v0.2.4
func (m *TransactionResponse) XXX_Merge(src proto.Message)
func (*TransactionResponse) XXX_Size ¶ added in v0.2.4
func (m *TransactionResponse) XXX_Size() int
func (*TransactionResponse) XXX_Unmarshal ¶ added in v0.2.4
func (m *TransactionResponse) XXX_Unmarshal(b []byte) error
type TransactorClient ¶ added in v0.2.0
type TransactorClient interface { CallContract(ctx context.Context, in *CallContractRequest, opts ...grpc.CallOption) (*TransactionResponse, error) Transfer(ctx context.Context, in *TransferRequest, opts ...grpc.CallOption) (*TransactionResponse, error) Bid(ctx context.Context, in *BidRequest, opts ...grpc.CallOption) (*TransactionResponse, error) Stake(ctx context.Context, in *StakeRequest, opts ...grpc.CallOption) (*TransactionResponse, error) }
TransactorClient is the client API for Transactor service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTransactorClient ¶ added in v0.2.0
func NewTransactorClient(cc *grpc.ClientConn) TransactorClient
type TransactorMock ¶ added in v0.2.0
type TransactorMock struct{}
func (*TransactorMock) Bid ¶ added in v0.2.0
func (m *TransactorMock) Bid(ctx context.Context, req *BidRequest) (*TransactionResponse, error)
func (*TransactorMock) CallContract ¶ added in v0.2.0
func (m *TransactorMock) CallContract(ctx context.Context, req *CallContractRequest) (*TransactionResponse, error)
func (*TransactorMock) Stake ¶ added in v0.2.0
func (m *TransactorMock) Stake(ctx context.Context, req *StakeRequest) (*TransactionResponse, error)
func (*TransactorMock) Transfer ¶ added in v0.2.0
func (m *TransactorMock) Transfer(ctx context.Context, req *TransferRequest) (*TransactionResponse, error)
type TransactorServer ¶ added in v0.2.0
type TransactorServer interface { CallContract(context.Context, *CallContractRequest) (*TransactionResponse, error) Transfer(context.Context, *TransferRequest) (*TransactionResponse, error) Bid(context.Context, *BidRequest) (*TransactionResponse, error) Stake(context.Context, *StakeRequest) (*TransactionResponse, error) }
TransactorServer is the server API for Transactor service.
type TransferRequest ¶
type TransferRequest struct { Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Fee uint64 `protobuf:"fixed64,3,opt,name=fee,proto3" json:"fee,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TransferRequest) Descriptor ¶
func (*TransferRequest) Descriptor() ([]byte, []int)
func (*TransferRequest) GetAddress ¶
func (m *TransferRequest) GetAddress() []byte
func (*TransferRequest) GetAmount ¶
func (m *TransferRequest) GetAmount() uint64
func (*TransferRequest) GetFee ¶ added in v0.2.0
func (m *TransferRequest) GetFee() uint64
func (*TransferRequest) ProtoMessage ¶
func (*TransferRequest) ProtoMessage()
func (*TransferRequest) Reset ¶
func (m *TransferRequest) Reset()
func (*TransferRequest) String ¶
func (m *TransferRequest) String() string
func (*TransferRequest) XXX_DiscardUnknown ¶
func (m *TransferRequest) XXX_DiscardUnknown()
func (*TransferRequest) XXX_Marshal ¶
func (m *TransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransferRequest) XXX_Merge ¶
func (m *TransferRequest) XXX_Merge(src proto.Message)
func (*TransferRequest) XXX_Size ¶
func (m *TransferRequest) XXX_Size() int
func (*TransferRequest) XXX_Unmarshal ¶
func (m *TransferRequest) XXX_Unmarshal(b []byte) error
type Tx ¶
type Tx struct { Type TxType `protobuf:"varint,1,opt,name=type,proto3,enum=node.TxType" json:"type,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` LockTime uint64 `protobuf:"fixed64,3,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Tx) Descriptor ¶
func (*Tx) GetLockTime ¶
func (*Tx) ProtoMessage ¶
func (*Tx) ProtoMessage()
func (*Tx) XXX_DiscardUnknown ¶
func (m *Tx) XXX_DiscardUnknown()
func (*Tx) XXX_Unmarshal ¶
type TxHistoryResponse ¶
type TxHistoryResponse struct { Records []*TxRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TxHistoryResponse) Descriptor ¶
func (*TxHistoryResponse) Descriptor() ([]byte, []int)
func (*TxHistoryResponse) GetRecords ¶
func (m *TxHistoryResponse) GetRecords() []*TxRecord
func (*TxHistoryResponse) ProtoMessage ¶
func (*TxHistoryResponse) ProtoMessage()
func (*TxHistoryResponse) Reset ¶
func (m *TxHistoryResponse) Reset()
func (*TxHistoryResponse) String ¶
func (m *TxHistoryResponse) String() string
func (*TxHistoryResponse) XXX_DiscardUnknown ¶
func (m *TxHistoryResponse) XXX_DiscardUnknown()
func (*TxHistoryResponse) XXX_Marshal ¶
func (m *TxHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxHistoryResponse) XXX_Merge ¶
func (m *TxHistoryResponse) XXX_Merge(src proto.Message)
func (*TxHistoryResponse) XXX_Size ¶
func (m *TxHistoryResponse) XXX_Size() int
func (*TxHistoryResponse) XXX_Unmarshal ¶
func (m *TxHistoryResponse) XXX_Unmarshal(b []byte) error
type TxRecord ¶
type TxRecord struct { Height uint64 `protobuf:"fixed64,1,opt,name=height,proto3" json:"height,omitempty"` Direction Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=node.Direction" json:"direction,omitempty"` Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Type TxType `protobuf:"varint,4,opt,name=type,proto3,enum=node.TxType" json:"type,omitempty"` Amount uint64 `protobuf:"fixed64,5,opt,name=amount,proto3" json:"amount,omitempty"` Fee uint64 `protobuf:"fixed64,6,opt,name=fee,proto3" json:"fee,omitempty"` UnlockHeight uint64 `protobuf:"fixed64,7,opt,name=unlockHeight,proto3" json:"unlockHeight,omitempty"` Hash []byte `protobuf:"bytes,8,opt,name=hash,proto3" json:"hash,omitempty"` Data []byte `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"` Obfuscated bool `protobuf:"varint,10,opt,name=obfuscated,proto3" json:"obfuscated,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TxRecord) Descriptor ¶
func (*TxRecord) GetDirection ¶
func (*TxRecord) GetObfuscated ¶ added in v0.2.7
func (*TxRecord) GetTimestamp ¶
func (*TxRecord) GetUnlockHeight ¶
func (*TxRecord) ProtoMessage ¶
func (*TxRecord) ProtoMessage()
func (*TxRecord) XXX_DiscardUnknown ¶
func (m *TxRecord) XXX_DiscardUnknown()
func (*TxRecord) XXX_Marshal ¶
func (*TxRecord) XXX_Unmarshal ¶
type TxType ¶
type TxType int32
const ( // STANDARD indicates either phoenix transaction type or Smart contract calls TxType_STANDARD TxType = 0 // DISTRIBUTE indicates the coinbase and reward distribution contract call TxType_DISTRIBUTE TxType = 1 // WITHDRAWFEES indicates the Provisioners' withdraw contract call TxType_WITHDRAWFEES TxType = 2 // BID transaction propagated by the Block Generator TxType_BID TxType = 3 // STAKE transaction propagated by the Provisioners TxType_STAKE TxType = 4 // SLASH transaction propagated by the consensus to punish the Committee // members when they turn byzantine TxType_SLASH TxType = 5 // WITHDRAWSTAKE transaction propagated by the Provisioners to withdraw // their stake TxType_WITHDRAWSTAKE TxType = 6 // WITHDRAWBID transaction propagated by the Block Generator to withdraw // their bids TxType_WITHDRAWBID TxType = 7 )
func (TxType) EnumDescriptor ¶
type UnimplementedAuthServer ¶ added in v0.2.8
type UnimplementedAuthServer struct { }
UnimplementedAuthServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthServer) CreateSession ¶ added in v0.2.8
func (*UnimplementedAuthServer) CreateSession(ctx context.Context, req *SessionRequest) (*Session, error)
func (*UnimplementedAuthServer) DropSession ¶ added in v0.2.8
func (*UnimplementedAuthServer) DropSession(ctx context.Context, req *EmptyRequest) (*GenericResponse, error)
type UnimplementedBlockGeneratorServer ¶ added in v0.2.4
type UnimplementedBlockGeneratorServer struct { }
UnimplementedBlockGeneratorServer can be embedded to have forward compatible implementations.
func (*UnimplementedBlockGeneratorServer) AutomateBids ¶ added in v0.2.4
func (*UnimplementedBlockGeneratorServer) AutomateBids(ctx context.Context, req *EmptyRequest) (*GenericResponse, error)
type UnimplementedChainServer ¶ added in v0.2.0
type UnimplementedChainServer struct { }
UnimplementedChainServer can be embedded to have forward compatible implementations.
func (*UnimplementedChainServer) GetSyncProgress ¶ added in v0.2.0
func (*UnimplementedChainServer) GetSyncProgress(ctx context.Context, req *EmptyRequest) (*SyncProgressResponse, error)
func (*UnimplementedChainServer) RebuildChain ¶ added in v0.2.0
func (*UnimplementedChainServer) RebuildChain(ctx context.Context, req *EmptyRequest) (*GenericResponse, error)
type UnimplementedConfigServer ¶ added in v0.2.16
type UnimplementedConfigServer struct { }
UnimplementedConfigServer can be embedded to have forward compatible implementations.
func (*UnimplementedConfigServer) ChangeLogLevel ¶ added in v0.2.16
func (*UnimplementedConfigServer) ChangeLogLevel(ctx context.Context, req *LogLevelRequest) (*GenericResponse, error)
type UnimplementedMempoolServer ¶ added in v0.2.0
type UnimplementedMempoolServer struct { }
UnimplementedMempoolServer can be embedded to have forward compatible implementations.
func (*UnimplementedMempoolServer) GetUnconfirmedBalance ¶ added in v0.2.0
func (*UnimplementedMempoolServer) GetUnconfirmedBalance(ctx context.Context, req *GetUnconfirmedBalanceRequest) (*BalanceResponse, error)
func (*UnimplementedMempoolServer) SelectTx ¶ added in v0.2.0
func (*UnimplementedMempoolServer) SelectTx(ctx context.Context, req *SelectRequest) (*SelectResponse, error)
type UnimplementedProvisionerServer ¶ added in v0.2.4
type UnimplementedProvisionerServer struct { }
UnimplementedProvisionerServer can be embedded to have forward compatible implementations.
func (*UnimplementedProvisionerServer) AutomateStakes ¶ added in v0.2.4
func (*UnimplementedProvisionerServer) AutomateStakes(ctx context.Context, req *EmptyRequest) (*GenericResponse, error)
type UnimplementedTransactorServer ¶ added in v0.2.0
type UnimplementedTransactorServer struct { }
UnimplementedTransactorServer can be embedded to have forward compatible implementations.
func (*UnimplementedTransactorServer) Bid ¶ added in v0.2.0
func (*UnimplementedTransactorServer) Bid(ctx context.Context, req *BidRequest) (*TransactionResponse, error)
func (*UnimplementedTransactorServer) CallContract ¶ added in v0.2.0
func (*UnimplementedTransactorServer) CallContract(ctx context.Context, req *CallContractRequest) (*TransactionResponse, error)
func (*UnimplementedTransactorServer) Stake ¶ added in v0.2.0
func (*UnimplementedTransactorServer) Stake(ctx context.Context, req *StakeRequest) (*TransactionResponse, error)
func (*UnimplementedTransactorServer) Transfer ¶ added in v0.2.0
func (*UnimplementedTransactorServer) Transfer(ctx context.Context, req *TransferRequest) (*TransactionResponse, error)
type UnimplementedWalletServer ¶ added in v0.2.0
type UnimplementedWalletServer struct { }
UnimplementedWalletServer can be embedded to have forward compatible implementations.
func (*UnimplementedWalletServer) ClearWalletDatabase ¶ added in v0.2.0
func (*UnimplementedWalletServer) ClearWalletDatabase(ctx context.Context, req *EmptyRequest) (*GenericResponse, error)
func (*UnimplementedWalletServer) GetAddress ¶ added in v0.2.0
func (*UnimplementedWalletServer) GetAddress(ctx context.Context, req *EmptyRequest) (*LoadResponse, error)
func (*UnimplementedWalletServer) GetBalance ¶ added in v0.2.0
func (*UnimplementedWalletServer) GetBalance(ctx context.Context, req *EmptyRequest) (*BalanceResponse, error)
func (*UnimplementedWalletServer) GetTxHistory ¶ added in v0.2.0
func (*UnimplementedWalletServer) GetTxHistory(ctx context.Context, req *EmptyRequest) (*TxHistoryResponse, error)
type WalletClient ¶ added in v0.2.0
type WalletClient interface { ClearWalletDatabase(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GenericResponse, error) GetAddress(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*LoadResponse, error) GetBalance(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*BalanceResponse, error) GetTxHistory(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*TxHistoryResponse, 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 ¶ added in v0.2.0
func NewWalletClient(cc *grpc.ClientConn) WalletClient
type WalletMock ¶ added in v0.2.0
type WalletMock struct{}
func (*WalletMock) ClearWalletDatabase ¶ added in v0.2.0
func (m *WalletMock) ClearWalletDatabase(ctx context.Context, req *EmptyRequest) (*GenericResponse, error)
func (*WalletMock) GetAddress ¶ added in v0.2.0
func (m *WalletMock) GetAddress(ctx context.Context, req *EmptyRequest) (*LoadResponse, error)
func (*WalletMock) GetBalance ¶ added in v0.2.0
func (m *WalletMock) GetBalance(ctx context.Context, req *EmptyRequest) (*BalanceResponse, error)
func (*WalletMock) GetTxHistory ¶ added in v0.2.0
func (m *WalletMock) GetTxHistory(ctx context.Context, req *EmptyRequest) (*TxHistoryResponse, error)
type WalletServer ¶ added in v0.2.0
type WalletServer interface { ClearWalletDatabase(context.Context, *EmptyRequest) (*GenericResponse, error) GetAddress(context.Context, *EmptyRequest) (*LoadResponse, error) GetBalance(context.Context, *EmptyRequest) (*BalanceResponse, error) GetTxHistory(context.Context, *EmptyRequest) (*TxHistoryResponse, error) }
WalletServer is the server API for Wallet service.