pbtransactor

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*CallParam) GetAddress

func (m *CallParam) GetAddress() []byte

func (*CallParam) GetData

func (m *CallParam) GetData() []byte

func (*CallParam) GetFrom

func (m *CallParam) GetFrom() []byte

func (*CallParam) ProtoMessage

func (*CallParam) ProtoMessage()

func (*CallParam) Reset

func (m *CallParam) Reset()

func (*CallParam) String

func (m *CallParam) String() string

func (*CallParam) XXX_DiscardUnknown

func (m *CallParam) XXX_DiscardUnknown()

func (*CallParam) XXX_Marshal

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

func (*CallParam) XXX_Merge

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

func (*CallParam) XXX_Size

func (m *CallParam) XXX_Size() int

func (*CallParam) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*SendParam) GetAmount

func (m *SendParam) GetAmount() uint64

func (*SendParam) GetInputAccount

func (m *SendParam) GetInputAccount() *InputAccount

func (*SendParam) GetToAddress

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

func (*SendParam) ProtoMessage

func (*SendParam) ProtoMessage()

func (*SendParam) Reset

func (m *SendParam) Reset()

func (*SendParam) String

func (m *SendParam) String() string

func (*SendParam) XXX_DiscardUnknown

func (m *SendParam) XXX_DiscardUnknown()

func (*SendParam) XXX_Marshal

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

func (*SendParam) XXX_Merge

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

func (*SendParam) XXX_Size

func (m *SendParam) XXX_Size() int

func (*SendParam) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*SignedTx) GetTx

func (m *SignedTx) GetTx() []byte

func (*SignedTx) ProtoMessage

func (*SignedTx) ProtoMessage()

func (*SignedTx) Reset

func (m *SignedTx) Reset()

func (*SignedTx) String

func (m *SignedTx) String() string

func (*SignedTx) XXX_DiscardUnknown

func (m *SignedTx) XXX_DiscardUnknown()

func (*SignedTx) XXX_Marshal

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

func (*SignedTx) XXX_Merge

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

func (*SignedTx) XXX_Size

func (m *SignedTx) XXX_Size() int

func (*SignedTx) XXX_Unmarshal

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

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

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) Descriptor() ([]byte, []int)

func (*TxParam) GetTx

func (m *TxParam) GetTx() []byte

func (*TxParam) ProtoMessage

func (*TxParam) ProtoMessage()

func (*TxParam) Reset

func (m *TxParam) Reset()

func (*TxParam) String

func (m *TxParam) String() string

func (*TxParam) XXX_DiscardUnknown

func (m *TxParam) XXX_DiscardUnknown()

func (*TxParam) XXX_Marshal

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

func (*TxParam) XXX_Merge

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

func (*TxParam) XXX_Size

func (m *TxParam) XXX_Size() int

func (*TxParam) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*TxReceipt) GetContractAddress

func (m *TxReceipt) GetContractAddress() []byte

func (*TxReceipt) GetCreatesContract

func (m *TxReceipt) GetCreatesContract() bool

func (*TxReceipt) GetTxHash

func (m *TxReceipt) GetTxHash() []byte

func (*TxReceipt) ProtoMessage

func (*TxReceipt) ProtoMessage()

func (*TxReceipt) Reset

func (m *TxReceipt) Reset()

func (*TxReceipt) String

func (m *TxReceipt) String() string

func (*TxReceipt) XXX_DiscardUnknown

func (m *TxReceipt) XXX_DiscardUnknown()

func (*TxReceipt) XXX_Marshal

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

func (*TxReceipt) XXX_Merge

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

func (*TxReceipt) XXX_Size

func (m *TxReceipt) XXX_Size() int

func (*TxReceipt) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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