Documentation ¶
Index ¶
- func RegisterTransactorServer(s *grpc.Server, srv TransactorServer)
- type CallCodeParam
- func (*CallCodeParam) Descriptor() ([]byte, []int)
- func (m *CallCodeParam) GetCode() []byte
- func (m *CallCodeParam) GetData() []byte
- func (m *CallCodeParam) GetFrom() []byte
- func (*CallCodeParam) ProtoMessage()
- func (m *CallCodeParam) Reset()
- func (m *CallCodeParam) String() string
- func (m *CallCodeParam) XXX_DiscardUnknown()
- func (m *CallCodeParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CallCodeParam) XXX_Merge(src proto.Message)
- func (m *CallCodeParam) XXX_Size() int
- func (m *CallCodeParam) XXX_Unmarshal(b []byte) error
- type CallParam
- func (*CallParam) Descriptor() ([]byte, []int)
- func (m *CallParam) GetAddress() []byte
- func (m *CallParam) GetData() []byte
- func (m *CallParam) GetFrom() []byte
- func (*CallParam) ProtoMessage()
- func (m *CallParam) Reset()
- func (m *CallParam) String() string
- func (m *CallParam) XXX_DiscardUnknown()
- func (m *CallParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CallParam) XXX_Merge(src proto.Message)
- func (m *CallParam) XXX_Size() int
- func (m *CallParam) XXX_Unmarshal(b []byte) error
- type CallResult
- func (*CallResult) Descriptor() ([]byte, []int)
- func (m *CallResult) GetGasUsed() uint64
- func (m *CallResult) GetReturn() []byte
- func (*CallResult) ProtoMessage()
- func (m *CallResult) Reset()
- func (m *CallResult) String() string
- func (m *CallResult) XXX_DiscardUnknown()
- func (m *CallResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CallResult) XXX_Merge(src proto.Message)
- func (m *CallResult) XXX_Size() int
- func (m *CallResult) XXX_Unmarshal(b []byte) error
- type InputAccount
- func (*InputAccount) Descriptor() ([]byte, []int)
- func (m *InputAccount) GetAddress() []byte
- func (m *InputAccount) GetPrivateKey() []byte
- func (*InputAccount) ProtoMessage()
- func (m *InputAccount) Reset()
- func (m *InputAccount) String() string
- func (m *InputAccount) XXX_DiscardUnknown()
- func (m *InputAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *InputAccount) XXX_Merge(src proto.Message)
- func (m *InputAccount) XXX_Size() int
- func (m *InputAccount) XXX_Unmarshal(b []byte) error
- type PrivateAccount
- func (*PrivateAccount) Descriptor() ([]byte, []int)
- func (m *PrivateAccount) GetPrivateKey() []byte
- func (*PrivateAccount) ProtoMessage()
- func (m *PrivateAccount) Reset()
- func (m *PrivateAccount) String() string
- func (m *PrivateAccount) XXX_DiscardUnknown()
- func (m *PrivateAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PrivateAccount) XXX_Merge(src proto.Message)
- func (m *PrivateAccount) XXX_Size() int
- func (m *PrivateAccount) XXX_Unmarshal(b []byte) error
- type SendParam
- func (*SendParam) Descriptor() ([]byte, []int)
- func (m *SendParam) GetAmount() uint64
- func (m *SendParam) GetInputAccount() *InputAccount
- func (m *SendParam) GetToAddress() []byte
- func (*SendParam) ProtoMessage()
- func (m *SendParam) Reset()
- func (m *SendParam) String() string
- func (m *SendParam) XXX_DiscardUnknown()
- func (m *SendParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SendParam) XXX_Merge(src proto.Message)
- func (m *SendParam) XXX_Size() int
- func (m *SendParam) XXX_Unmarshal(b []byte) error
- type SignTxParam
- func (*SignTxParam) Descriptor() ([]byte, []int)
- func (m *SignTxParam) GetPrivateAccounts() []*PrivateAccount
- func (m *SignTxParam) GetTx() []byte
- func (*SignTxParam) ProtoMessage()
- func (m *SignTxParam) Reset()
- func (m *SignTxParam) String() string
- func (m *SignTxParam) XXX_DiscardUnknown()
- func (m *SignTxParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SignTxParam) XXX_Merge(src proto.Message)
- func (m *SignTxParam) XXX_Size() int
- func (m *SignTxParam) XXX_Unmarshal(b []byte) error
- type SignedTx
- func (*SignedTx) Descriptor() ([]byte, []int)
- func (m *SignedTx) GetTx() []byte
- func (*SignedTx) ProtoMessage()
- func (m *SignedTx) Reset()
- func (m *SignedTx) String() string
- func (m *SignedTx) XXX_DiscardUnknown()
- func (m *SignedTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SignedTx) XXX_Merge(src proto.Message)
- func (m *SignedTx) XXX_Size() int
- func (m *SignedTx) XXX_Unmarshal(b []byte) error
- type TransactParam
- func (*TransactParam) Descriptor() ([]byte, []int)
- func (m *TransactParam) GetAddress() []byte
- func (m *TransactParam) GetData() []byte
- func (m *TransactParam) GetFee() uint64
- func (m *TransactParam) GetGasLimit() uint64
- func (m *TransactParam) GetInputAccount() *InputAccount
- func (*TransactParam) ProtoMessage()
- func (m *TransactParam) Reset()
- func (m *TransactParam) String() string
- func (m *TransactParam) XXX_DiscardUnknown()
- func (m *TransactParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TransactParam) XXX_Merge(src proto.Message)
- func (m *TransactParam) XXX_Size() int
- func (m *TransactParam) XXX_Unmarshal(b []byte) error
- type TransactorClient
- type TransactorServer
- type TxParam
- func (*TxParam) Descriptor() ([]byte, []int)
- func (m *TxParam) GetTx() []byte
- func (*TxParam) ProtoMessage()
- func (m *TxParam) Reset()
- func (m *TxParam) String() string
- func (m *TxParam) XXX_DiscardUnknown()
- func (m *TxParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TxParam) XXX_Merge(src proto.Message)
- func (m *TxParam) XXX_Size() int
- func (m *TxParam) XXX_Unmarshal(b []byte) error
- type TxReceipt
- func (*TxReceipt) Descriptor() ([]byte, []int)
- func (m *TxReceipt) GetContractAddress() []byte
- func (m *TxReceipt) GetCreatesContract() bool
- func (m *TxReceipt) GetTxHash() []byte
- func (*TxReceipt) ProtoMessage()
- func (m *TxReceipt) Reset()
- func (m *TxReceipt) String() string
- func (m *TxReceipt) XXX_DiscardUnknown()
- func (m *TxReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TxReceipt) XXX_Merge(src proto.Message)
- func (m *TxReceipt) XXX_Size() int
- func (m *TxReceipt) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTransactorServer ¶
func RegisterTransactorServer(s *grpc.Server, srv TransactorServer)
Types ¶
type CallCodeParam ¶
type CallCodeParam struct { From []byte `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Code []byte `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CallCodeParam) Descriptor ¶
func (*CallCodeParam) Descriptor() ([]byte, []int)
func (*CallCodeParam) GetCode ¶
func (m *CallCodeParam) GetCode() []byte
func (*CallCodeParam) GetData ¶
func (m *CallCodeParam) GetData() []byte
func (*CallCodeParam) GetFrom ¶
func (m *CallCodeParam) GetFrom() []byte
func (*CallCodeParam) ProtoMessage ¶
func (*CallCodeParam) ProtoMessage()
func (*CallCodeParam) Reset ¶
func (m *CallCodeParam) Reset()
func (*CallCodeParam) String ¶
func (m *CallCodeParam) String() string
func (*CallCodeParam) XXX_DiscardUnknown ¶
func (m *CallCodeParam) XXX_DiscardUnknown()
func (*CallCodeParam) XXX_Marshal ¶
func (m *CallCodeParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CallCodeParam) XXX_Merge ¶
func (dst *CallCodeParam) XXX_Merge(src proto.Message)
func (*CallCodeParam) XXX_Size ¶
func (m *CallCodeParam) XXX_Size() int
func (*CallCodeParam) XXX_Unmarshal ¶
func (m *CallCodeParam) XXX_Unmarshal(b []byte) error
type CallParam ¶
type CallParam struct { From []byte `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Params
func (*CallParam) Descriptor ¶
func (*CallParam) GetAddress ¶
func (*CallParam) ProtoMessage ¶
func (*CallParam) ProtoMessage()
func (*CallParam) XXX_DiscardUnknown ¶
func (m *CallParam) XXX_DiscardUnknown()
func (*CallParam) XXX_Marshal ¶
func (*CallParam) XXX_Unmarshal ¶
type CallResult ¶
type CallResult struct { Return []byte `protobuf:"bytes,1,opt,name=Return,proto3" json:"Return,omitempty"` GasUsed uint64 `protobuf:"varint,2,opt,name=GasUsed,proto3" json:"GasUsed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CallResult) Descriptor ¶
func (*CallResult) Descriptor() ([]byte, []int)
func (*CallResult) GetGasUsed ¶
func (m *CallResult) GetGasUsed() uint64
func (*CallResult) GetReturn ¶
func (m *CallResult) GetReturn() []byte
func (*CallResult) ProtoMessage ¶
func (*CallResult) ProtoMessage()
func (*CallResult) Reset ¶
func (m *CallResult) Reset()
func (*CallResult) String ¶
func (m *CallResult) String() string
func (*CallResult) XXX_DiscardUnknown ¶
func (m *CallResult) XXX_DiscardUnknown()
func (*CallResult) XXX_Marshal ¶
func (m *CallResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CallResult) XXX_Merge ¶
func (dst *CallResult) XXX_Merge(src proto.Message)
func (*CallResult) XXX_Size ¶
func (m *CallResult) XXX_Size() int
func (*CallResult) XXX_Unmarshal ¶
func (m *CallResult) XXX_Unmarshal(b []byte) error
type InputAccount ¶
type InputAccount struct { PrivateKey []byte `protobuf:"bytes,1,opt,name=privateKey,proto3" json:"privateKey,omitempty"` Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InputAccount) Descriptor ¶
func (*InputAccount) Descriptor() ([]byte, []int)
func (*InputAccount) GetAddress ¶
func (m *InputAccount) GetAddress() []byte
func (*InputAccount) GetPrivateKey ¶
func (m *InputAccount) GetPrivateKey() []byte
func (*InputAccount) ProtoMessage ¶
func (*InputAccount) ProtoMessage()
func (*InputAccount) Reset ¶
func (m *InputAccount) Reset()
func (*InputAccount) String ¶
func (m *InputAccount) String() string
func (*InputAccount) XXX_DiscardUnknown ¶
func (m *InputAccount) XXX_DiscardUnknown()
func (*InputAccount) XXX_Marshal ¶
func (m *InputAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InputAccount) XXX_Merge ¶
func (dst *InputAccount) XXX_Merge(src proto.Message)
func (*InputAccount) XXX_Size ¶
func (m *InputAccount) XXX_Size() int
func (*InputAccount) XXX_Unmarshal ¶
func (m *InputAccount) XXX_Unmarshal(b []byte) error
type PrivateAccount ¶
type PrivateAccount struct { PrivateKey []byte `protobuf:"bytes,1,opt,name=PrivateKey,proto3" json:"PrivateKey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PrivateAccount) Descriptor ¶
func (*PrivateAccount) Descriptor() ([]byte, []int)
func (*PrivateAccount) GetPrivateKey ¶
func (m *PrivateAccount) GetPrivateKey() []byte
func (*PrivateAccount) ProtoMessage ¶
func (*PrivateAccount) ProtoMessage()
func (*PrivateAccount) Reset ¶
func (m *PrivateAccount) Reset()
func (*PrivateAccount) String ¶
func (m *PrivateAccount) String() string
func (*PrivateAccount) XXX_DiscardUnknown ¶
func (m *PrivateAccount) XXX_DiscardUnknown()
func (*PrivateAccount) XXX_Marshal ¶
func (m *PrivateAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PrivateAccount) XXX_Merge ¶
func (dst *PrivateAccount) XXX_Merge(src proto.Message)
func (*PrivateAccount) XXX_Size ¶
func (m *PrivateAccount) XXX_Size() int
func (*PrivateAccount) XXX_Unmarshal ¶
func (m *PrivateAccount) XXX_Unmarshal(b []byte) error
type SendParam ¶
type SendParam struct { InputAccount *InputAccount `protobuf:"bytes,1,opt,name=inputAccount,proto3" json:"inputAccount,omitempty"` ToAddress []byte `protobuf:"bytes,2,opt,name=toAddress,proto3" json:"toAddress,omitempty"` Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendParam) Descriptor ¶
func (*SendParam) GetInputAccount ¶
func (m *SendParam) GetInputAccount() *InputAccount
func (*SendParam) GetToAddress ¶
func (*SendParam) ProtoMessage ¶
func (*SendParam) ProtoMessage()
func (*SendParam) XXX_DiscardUnknown ¶
func (m *SendParam) XXX_DiscardUnknown()
func (*SendParam) XXX_Marshal ¶
func (*SendParam) XXX_Unmarshal ¶
type SignTxParam ¶
type SignTxParam struct { Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` PrivateAccounts []*PrivateAccount `protobuf:"bytes,2,rep,name=privateAccounts,proto3" json:"privateAccounts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SignTxParam) Descriptor ¶
func (*SignTxParam) Descriptor() ([]byte, []int)
func (*SignTxParam) GetPrivateAccounts ¶
func (m *SignTxParam) GetPrivateAccounts() []*PrivateAccount
func (*SignTxParam) GetTx ¶
func (m *SignTxParam) GetTx() []byte
func (*SignTxParam) ProtoMessage ¶
func (*SignTxParam) ProtoMessage()
func (*SignTxParam) Reset ¶
func (m *SignTxParam) Reset()
func (*SignTxParam) String ¶
func (m *SignTxParam) String() string
func (*SignTxParam) XXX_DiscardUnknown ¶
func (m *SignTxParam) XXX_DiscardUnknown()
func (*SignTxParam) XXX_Marshal ¶
func (m *SignTxParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignTxParam) XXX_Merge ¶
func (dst *SignTxParam) XXX_Merge(src proto.Message)
func (*SignTxParam) XXX_Size ¶
func (m *SignTxParam) XXX_Size() int
func (*SignTxParam) XXX_Unmarshal ¶
func (m *SignTxParam) XXX_Unmarshal(b []byte) error
type SignedTx ¶
type SignedTx struct { Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Results
func (*SignedTx) Descriptor ¶
func (*SignedTx) ProtoMessage ¶
func (*SignedTx) ProtoMessage()
func (*SignedTx) XXX_DiscardUnknown ¶
func (m *SignedTx) XXX_DiscardUnknown()
func (*SignedTx) XXX_Marshal ¶
func (*SignedTx) XXX_Unmarshal ¶
type TransactParam ¶
type TransactParam struct { InputAccount *InputAccount `protobuf:"bytes,1,opt,name=inputAccount,proto3" json:"inputAccount,omitempty"` Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` GasLimit uint64 `protobuf:"varint,4,opt,name=gasLimit,proto3" json:"gasLimit,omitempty"` Fee uint64 `protobuf:"varint,5,opt,name=fee,proto3" json:"fee,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TransactParam) Descriptor ¶
func (*TransactParam) Descriptor() ([]byte, []int)
func (*TransactParam) GetAddress ¶
func (m *TransactParam) GetAddress() []byte
func (*TransactParam) GetData ¶
func (m *TransactParam) GetData() []byte
func (*TransactParam) GetFee ¶
func (m *TransactParam) GetFee() uint64
func (*TransactParam) GetGasLimit ¶
func (m *TransactParam) GetGasLimit() uint64
func (*TransactParam) GetInputAccount ¶
func (m *TransactParam) GetInputAccount() *InputAccount
func (*TransactParam) ProtoMessage ¶
func (*TransactParam) ProtoMessage()
func (*TransactParam) Reset ¶
func (m *TransactParam) Reset()
func (*TransactParam) String ¶
func (m *TransactParam) String() string
func (*TransactParam) XXX_DiscardUnknown ¶
func (m *TransactParam) XXX_DiscardUnknown()
func (*TransactParam) XXX_Marshal ¶
func (m *TransactParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactParam) XXX_Merge ¶
func (dst *TransactParam) XXX_Merge(src proto.Message)
func (*TransactParam) XXX_Size ¶
func (m *TransactParam) XXX_Size() int
func (*TransactParam) XXX_Unmarshal ¶
func (m *TransactParam) XXX_Unmarshal(b []byte) error
type TransactorClient ¶
type TransactorClient interface { BroadcastTx(ctx context.Context, in *TxParam, opts ...grpc.CallOption) (*TxReceipt, error) Call(ctx context.Context, in *CallParam, opts ...grpc.CallOption) (*CallResult, error) CallCode(ctx context.Context, in *CallCodeParam, opts ...grpc.CallOption) (*CallResult, error) Transact(ctx context.Context, in *TransactParam, opts ...grpc.CallOption) (*TxReceipt, error) TransactAndHold(ctx context.Context, in *TransactParam, opts ...grpc.CallOption) (*pbevents.EventDataCall, error) Send(ctx context.Context, in *SendParam, opts ...grpc.CallOption) (*TxReceipt, error) SendAndHold(ctx context.Context, in *SendParam, opts ...grpc.CallOption) (*TxReceipt, error) SignTx(ctx context.Context, in *SignTxParam, opts ...grpc.CallOption) (*SignedTx, 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 ¶
func NewTransactorClient(cc *grpc.ClientConn) TransactorClient
type TransactorServer ¶
type TransactorServer interface { BroadcastTx(context.Context, *TxParam) (*TxReceipt, error) Call(context.Context, *CallParam) (*CallResult, error) CallCode(context.Context, *CallCodeParam) (*CallResult, error) Transact(context.Context, *TransactParam) (*TxReceipt, error) TransactAndHold(context.Context, *TransactParam) (*pbevents.EventDataCall, error) Send(context.Context, *SendParam) (*TxReceipt, error) SendAndHold(context.Context, *SendParam) (*TxReceipt, error) SignTx(context.Context, *SignTxParam) (*SignedTx, error) }
TransactorServer is the server API for Transactor service.
type TxParam ¶
type TxParam struct { Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TxParam) Descriptor ¶
func (*TxParam) ProtoMessage ¶
func (*TxParam) ProtoMessage()
func (*TxParam) XXX_DiscardUnknown ¶
func (m *TxParam) XXX_DiscardUnknown()
func (*TxParam) XXX_Marshal ¶
func (*TxParam) XXX_Unmarshal ¶
type TxReceipt ¶
type TxReceipt struct { TxHash []byte `protobuf:"bytes,1,opt,name=TxHash,proto3" json:"TxHash,omitempty"` CreatesContract bool `protobuf:"varint,2,opt,name=CreatesContract,proto3" json:"CreatesContract,omitempty"` ContractAddress []byte `protobuf:"bytes,3,opt,name=ContractAddress,proto3" json:"ContractAddress,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TxReceipt) Descriptor ¶
func (*TxReceipt) GetContractAddress ¶
func (*TxReceipt) GetCreatesContract ¶
func (*TxReceipt) ProtoMessage ¶
func (*TxReceipt) ProtoMessage()
func (*TxReceipt) XXX_DiscardUnknown ¶
func (m *TxReceipt) XXX_DiscardUnknown()
func (*TxReceipt) XXX_Marshal ¶
func (*TxReceipt) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.