Documentation ¶
Overview ¶
Package iotex is a generated GoMock package.
Index ¶
- Constants
- func ActionHash(act *iotextypes.Action, chainid uint32) (hash.Hash256, error)
- func NewDefaultGRPCConn(endpoint string) (*grpc.ClientConn, error)
- func NewGRPCConnWithoutTLS(endpoint string) (*grpc.ClientConn, error)
- type AuthedClient
- type Caller
- type CandidateCaller
- type ClaimRewardCaller
- type Contract
- type Data
- type DeployContractCaller
- type ExecuteContractCaller
- type GetLogsCaller
- type GetReceiptCaller
- type MockAuthedClient
- func (m *MockAuthedClient) API() iotexapi.APIServiceClient
- func (m *MockAuthedClient) Account() account.Account
- func (m *MockAuthedClient) Candidate() CandidateCaller
- func (m *MockAuthedClient) ClaimReward(value *big.Int) ClaimRewardCaller
- func (m *MockAuthedClient) Contract(contract address.Address, abi abi.ABI) Contract
- func (m *MockAuthedClient) DeployContract(data []byte) DeployContractCaller
- func (m *MockAuthedClient) EXPECT() *MockAuthedClientMockRecorder
- func (m *MockAuthedClient) GetLogs(request *iotexapi.GetLogsRequest) GetLogsCaller
- func (m *MockAuthedClient) GetReceipt(actionHash hash.Hash256) GetReceiptCaller
- func (m *MockAuthedClient) ReadOnlyContract(contract address.Address, abi abi.ABI) ReadOnlyContract
- func (m *MockAuthedClient) Staking() StakingCaller
- func (m *MockAuthedClient) Transfer(to address.Address, value *big.Int) SendActionCaller
- type MockAuthedClientMockRecorder
- func (mr *MockAuthedClientMockRecorder) API() *gomock.Call
- func (mr *MockAuthedClientMockRecorder) Account() *gomock.Call
- func (mr *MockAuthedClientMockRecorder) Candidate() *gomock.Call
- func (mr *MockAuthedClientMockRecorder) ClaimReward(value interface{}) *gomock.Call
- func (mr *MockAuthedClientMockRecorder) Contract(contract, abi interface{}) *gomock.Call
- func (mr *MockAuthedClientMockRecorder) DeployContract(data interface{}) *gomock.Call
- func (mr *MockAuthedClientMockRecorder) GetLogs(request interface{}) *gomock.Call
- func (mr *MockAuthedClientMockRecorder) GetReceipt(actionHash interface{}) *gomock.Call
- func (mr *MockAuthedClientMockRecorder) ReadOnlyContract(contract, abi interface{}) *gomock.Call
- func (mr *MockAuthedClientMockRecorder) Staking() *gomock.Call
- func (mr *MockAuthedClientMockRecorder) Transfer(to, value interface{}) *gomock.Call
- type MockCaller
- type MockCallerMockRecorder
- type MockCandidateCaller
- func (m *MockCandidateCaller) EXPECT() *MockCandidateCallerMockRecorder
- func (m *MockCandidateCaller) Register(name string, ownerAddr, operatorAddr, rewardAddr address.Address, ...) SendActionCaller
- func (m *MockCandidateCaller) Update(name string, operatorAddr, rewardAddr address.Address) SendActionCaller
- type MockCandidateCallerMockRecorder
- type MockClaimRewardCaller
- func (m *MockClaimRewardCaller) API() iotexapi.APIServiceClient
- func (m *MockClaimRewardCaller) Call(ctx context.Context, opts ...grpc.CallOption) (hash.Hash256, error)
- func (m *MockClaimRewardCaller) EXPECT() *MockClaimRewardCallerMockRecorder
- func (m *MockClaimRewardCaller) SetData(arg0 []byte) ClaimRewardCaller
- func (m *MockClaimRewardCaller) SetGasLimit(arg0 uint64) ClaimRewardCaller
- func (m *MockClaimRewardCaller) SetGasPrice(arg0 *big.Int) ClaimRewardCaller
- func (m *MockClaimRewardCaller) SetNonce(arg0 uint64) ClaimRewardCaller
- type MockClaimRewardCallerMockRecorder
- func (mr *MockClaimRewardCallerMockRecorder) API() *gomock.Call
- func (mr *MockClaimRewardCallerMockRecorder) Call(ctx interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockClaimRewardCallerMockRecorder) SetData(arg0 interface{}) *gomock.Call
- func (mr *MockClaimRewardCallerMockRecorder) SetGasLimit(arg0 interface{}) *gomock.Call
- func (mr *MockClaimRewardCallerMockRecorder) SetGasPrice(arg0 interface{}) *gomock.Call
- func (mr *MockClaimRewardCallerMockRecorder) SetNonce(arg0 interface{}) *gomock.Call
- type MockContract
- type MockContractMockRecorder
- type MockDeployContractCaller
- func (m *MockDeployContractCaller) API() iotexapi.APIServiceClient
- func (m *MockDeployContractCaller) Call(ctx context.Context, opts ...grpc.CallOption) (hash.Hash256, error)
- func (m *MockDeployContractCaller) EXPECT() *MockDeployContractCallerMockRecorder
- func (m *MockDeployContractCaller) SetArgs(abi abi.ABI, args ...interface{}) DeployContractCaller
- func (m *MockDeployContractCaller) SetGasLimit(arg0 uint64) DeployContractCaller
- func (m *MockDeployContractCaller) SetGasPrice(arg0 *big.Int) DeployContractCaller
- func (m *MockDeployContractCaller) SetNonce(arg0 uint64) DeployContractCaller
- type MockDeployContractCallerMockRecorder
- func (mr *MockDeployContractCallerMockRecorder) API() *gomock.Call
- func (mr *MockDeployContractCallerMockRecorder) Call(ctx interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockDeployContractCallerMockRecorder) SetArgs(abi interface{}, args ...interface{}) *gomock.Call
- func (mr *MockDeployContractCallerMockRecorder) SetGasLimit(arg0 interface{}) *gomock.Call
- func (mr *MockDeployContractCallerMockRecorder) SetGasPrice(arg0 interface{}) *gomock.Call
- func (mr *MockDeployContractCallerMockRecorder) SetNonce(arg0 interface{}) *gomock.Call
- type MockExecuteContractCaller
- func (m *MockExecuteContractCaller) API() iotexapi.APIServiceClient
- func (m *MockExecuteContractCaller) Call(ctx context.Context, opts ...grpc.CallOption) (hash.Hash256, error)
- func (m *MockExecuteContractCaller) EXPECT() *MockExecuteContractCallerMockRecorder
- func (m *MockExecuteContractCaller) SetAmount(arg0 *big.Int) ExecuteContractCaller
- func (m *MockExecuteContractCaller) SetGasLimit(arg0 uint64) ExecuteContractCaller
- func (m *MockExecuteContractCaller) SetGasPrice(arg0 *big.Int) ExecuteContractCaller
- func (m *MockExecuteContractCaller) SetNonce(arg0 uint64) ExecuteContractCaller
- type MockExecuteContractCallerMockRecorder
- func (mr *MockExecuteContractCallerMockRecorder) API() *gomock.Call
- func (mr *MockExecuteContractCallerMockRecorder) Call(ctx interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockExecuteContractCallerMockRecorder) SetAmount(arg0 interface{}) *gomock.Call
- func (mr *MockExecuteContractCallerMockRecorder) SetGasLimit(arg0 interface{}) *gomock.Call
- func (mr *MockExecuteContractCallerMockRecorder) SetGasPrice(arg0 interface{}) *gomock.Call
- func (mr *MockExecuteContractCallerMockRecorder) SetNonce(arg0 interface{}) *gomock.Call
- type MockGetLogsCaller
- type MockGetLogsCallerMockRecorder
- type MockGetReceiptCaller
- type MockGetReceiptCallerMockRecorder
- type MockReadContractCaller
- type MockReadContractCallerMockRecorder
- type MockReadOnlyClient
- func (m *MockReadOnlyClient) API() iotexapi.APIServiceClient
- func (m *MockReadOnlyClient) EXPECT() *MockReadOnlyClientMockRecorder
- func (m *MockReadOnlyClient) GetLogs(request *iotexapi.GetLogsRequest) GetLogsCaller
- func (m *MockReadOnlyClient) GetReceipt(actionHash hash.Hash256) GetReceiptCaller
- func (m *MockReadOnlyClient) ReadOnlyContract(contract address.Address, abi abi.ABI) ReadOnlyContract
- type MockReadOnlyClientMockRecorder
- func (mr *MockReadOnlyClientMockRecorder) API() *gomock.Call
- func (mr *MockReadOnlyClientMockRecorder) GetLogs(request interface{}) *gomock.Call
- func (mr *MockReadOnlyClientMockRecorder) GetReceipt(actionHash interface{}) *gomock.Call
- func (mr *MockReadOnlyClientMockRecorder) ReadOnlyContract(contract, abi interface{}) *gomock.Call
- type MockReadOnlyContract
- type MockReadOnlyContractMockRecorder
- type MockSendActionCaller
- func (m *MockSendActionCaller) API() iotexapi.APIServiceClient
- func (m *MockSendActionCaller) Call(ctx context.Context, opts ...grpc.CallOption) (hash.Hash256, error)
- func (m *MockSendActionCaller) EXPECT() *MockSendActionCallerMockRecorder
- func (m *MockSendActionCaller) SetGasLimit(arg0 uint64) SendActionCaller
- func (m *MockSendActionCaller) SetGasPrice(arg0 *big.Int) SendActionCaller
- func (m *MockSendActionCaller) SetNonce(arg0 uint64) SendActionCaller
- func (m *MockSendActionCaller) SetPayload(arg0 []byte) SendActionCaller
- type MockSendActionCallerMockRecorder
- func (mr *MockSendActionCallerMockRecorder) API() *gomock.Call
- func (mr *MockSendActionCallerMockRecorder) Call(ctx interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockSendActionCallerMockRecorder) SetGasLimit(arg0 interface{}) *gomock.Call
- func (mr *MockSendActionCallerMockRecorder) SetGasPrice(arg0 interface{}) *gomock.Call
- func (mr *MockSendActionCallerMockRecorder) SetNonce(arg0 interface{}) *gomock.Call
- func (mr *MockSendActionCallerMockRecorder) SetPayload(arg0 interface{}) *gomock.Call
- type MockStakingCaller
- func (m *MockStakingCaller) AddDeposit(index uint64, amount *big.Int) SendActionCaller
- func (m *MockStakingCaller) ChangeCandidate(candName string, bucketIndex uint64) SendActionCaller
- func (m *MockStakingCaller) Create(candidateName string, amount *big.Int, duration uint32, autoStake bool) SendActionCaller
- func (m *MockStakingCaller) EXPECT() *MockStakingCallerMockRecorder
- func (m *MockStakingCaller) Restake(index uint64, duration uint32, autoStake bool) SendActionCaller
- func (m *MockStakingCaller) StakingTransfer(voterAddress address.Address, bucketIndex uint64) SendActionCaller
- func (m *MockStakingCaller) Unstake(bucketIndex uint64) SendActionCaller
- func (m *MockStakingCaller) Withdraw(bucketIndex uint64) SendActionCaller
- type MockStakingCallerMockRecorder
- func (mr *MockStakingCallerMockRecorder) AddDeposit(index, amount interface{}) *gomock.Call
- func (mr *MockStakingCallerMockRecorder) ChangeCandidate(candName, bucketIndex interface{}) *gomock.Call
- func (mr *MockStakingCallerMockRecorder) Create(candidateName, amount, duration, autoStake interface{}) *gomock.Call
- func (mr *MockStakingCallerMockRecorder) Restake(index, duration, autoStake interface{}) *gomock.Call
- func (mr *MockStakingCallerMockRecorder) StakingTransfer(voterAddress, bucketIndex interface{}) *gomock.Call
- func (mr *MockStakingCallerMockRecorder) Unstake(bucketIndex interface{}) *gomock.Call
- func (mr *MockStakingCallerMockRecorder) Withdraw(bucketIndex interface{}) *gomock.Call
- type ReadContractCaller
- type ReadOnlyClient
- type ReadOnlyContract
- type SendActionCaller
- type StakingCaller
Constants ¶
const ProtocolVersion = 1
ProtocolVersion is the iotex protocol version to use. Currently 1.
Variables ¶
This section is empty.
Functions ¶
func ActionHash ¶ added in v2.5.1
ActionHash computes the hash of an action
func NewDefaultGRPCConn ¶
func NewDefaultGRPCConn(endpoint string) (*grpc.ClientConn, error)
NewDefaultGRPCConn creates a default grpc connection. With tls and retry.
func NewGRPCConnWithoutTLS ¶ added in v2.6.0
func NewGRPCConnWithoutTLS(endpoint string) (*grpc.ClientConn, error)
NewGRPCConnWithoutTLS creates a default grpc connection, without tls
Types ¶
type AuthedClient ¶
type AuthedClient interface { ReadOnlyClient Contract(contract address.Address, abi abi.ABI) Contract Transfer(to address.Address, value *big.Int) SendActionCaller ClaimReward(value *big.Int) ClaimRewardCaller DeployContract(data []byte) DeployContractCaller // staking related Staking() StakingCaller Candidate() CandidateCaller Account() account.Account ChainID() uint32 }
AuthedClient is an iotex client which associate with an account credentials, so it can perform write actions.
func NewAuthedClient ¶
func NewAuthedClient(api iotexapi.APIServiceClient, chainID uint32, a account.Account) AuthedClient
NewAuthedClient creates an AuthedClient using given account's credentials.
type Caller ¶ added in v2.6.0
type Caller interface { API() iotexapi.APIServiceClient Call(ctx context.Context, opts ...grpc.CallOption) (hash.Hash256, error) }
Caller is used to perform a send action call.
type CandidateCaller ¶ added in v2.3.3
type CandidateCaller interface { Register(name string, ownerAddr, operatorAddr, rewardAddr address.Address, amount *big.Int, duration uint32, autoStake bool, payload []byte) SendActionCaller Update(name string, operatorAddr, rewardAddr address.Address) SendActionCaller }
CandidateCaller is used to perform a candidate call.
type ClaimRewardCaller ¶ added in v2.3.0
type ClaimRewardCaller interface { Caller SetGasPrice(*big.Int) ClaimRewardCaller SetGasLimit(uint64) ClaimRewardCaller SetData([]byte) ClaimRewardCaller SetNonce(uint64) ClaimRewardCaller }
ClaimRewardCaller is used to perform a claim reward call.
type Contract ¶
type Contract interface { ReadOnlyContract Execute(method string, args ...interface{}) ExecuteContractCaller }
Contract allows to read or execute on this contract's methods.
type Data ¶
type Data struct { Raw []byte // contains filtered or unexported fields }
Data is the data returned from read contract.
type DeployContractCaller ¶
type DeployContractCaller interface { Caller SetArgs(abi abi.ABI, args ...interface{}) DeployContractCaller SetGasPrice(*big.Int) DeployContractCaller SetGasLimit(uint64) DeployContractCaller SetNonce(uint64) DeployContractCaller }
DeployContractCaller is used to perform a deploy contract call.
type ExecuteContractCaller ¶
type ExecuteContractCaller interface { Caller SetGasPrice(*big.Int) ExecuteContractCaller SetGasLimit(uint64) ExecuteContractCaller SetAmount(*big.Int) ExecuteContractCaller SetNonce(uint64) ExecuteContractCaller }
ExecuteContractCaller is used to perform an execute contract call.
type GetLogsCaller ¶ added in v2.3.1
type GetLogsCaller interface {
Call(ctx context.Context, opts ...grpc.CallOption) (*iotexapi.GetLogsResponse, error)
}
GetLogsCaller is used to get logs
type GetReceiptCaller ¶
type GetReceiptCaller interface {
Call(ctx context.Context, opts ...grpc.CallOption) (*iotexapi.GetReceiptByActionResponse, error)
}
GetReceiptCaller is used to perform a get receipt call.
type MockAuthedClient ¶ added in v2.4.0
type MockAuthedClient struct {
// contains filtered or unexported fields
}
MockAuthedClient is a mock of AuthedClient interface.
func NewMockAuthedClient ¶ added in v2.4.0
func NewMockAuthedClient(ctrl *gomock.Controller) *MockAuthedClient
NewMockAuthedClient creates a new mock instance.
func (*MockAuthedClient) API ¶ added in v2.4.0
func (m *MockAuthedClient) API() iotexapi.APIServiceClient
API mocks base method.
func (*MockAuthedClient) Account ¶ added in v2.4.0
func (m *MockAuthedClient) Account() account.Account
Account mocks base method.
func (*MockAuthedClient) Candidate ¶ added in v2.4.0
func (m *MockAuthedClient) Candidate() CandidateCaller
Candidate mocks base method.
func (*MockAuthedClient) ClaimReward ¶ added in v2.4.0
func (m *MockAuthedClient) ClaimReward(value *big.Int) ClaimRewardCaller
ClaimReward mocks base method.
func (*MockAuthedClient) DeployContract ¶ added in v2.4.0
func (m *MockAuthedClient) DeployContract(data []byte) DeployContractCaller
DeployContract mocks base method.
func (*MockAuthedClient) EXPECT ¶ added in v2.4.0
func (m *MockAuthedClient) EXPECT() *MockAuthedClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthedClient) GetLogs ¶ added in v2.4.0
func (m *MockAuthedClient) GetLogs(request *iotexapi.GetLogsRequest) GetLogsCaller
GetLogs mocks base method.
func (*MockAuthedClient) GetReceipt ¶ added in v2.4.0
func (m *MockAuthedClient) GetReceipt(actionHash hash.Hash256) GetReceiptCaller
GetReceipt mocks base method.
func (*MockAuthedClient) ReadOnlyContract ¶ added in v2.4.0
func (m *MockAuthedClient) ReadOnlyContract(contract address.Address, abi abi.ABI) ReadOnlyContract
ReadOnlyContract mocks base method.
func (*MockAuthedClient) Staking ¶ added in v2.4.0
func (m *MockAuthedClient) Staking() StakingCaller
Staking mocks base method.
func (*MockAuthedClient) Transfer ¶ added in v2.4.0
func (m *MockAuthedClient) Transfer(to address.Address, value *big.Int) SendActionCaller
Transfer mocks base method.
type MockAuthedClientMockRecorder ¶ added in v2.4.0
type MockAuthedClientMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthedClientMockRecorder is the mock recorder for MockAuthedClient.
func (*MockAuthedClientMockRecorder) API ¶ added in v2.4.0
func (mr *MockAuthedClientMockRecorder) API() *gomock.Call
API indicates an expected call of API.
func (*MockAuthedClientMockRecorder) Account ¶ added in v2.4.0
func (mr *MockAuthedClientMockRecorder) Account() *gomock.Call
Account indicates an expected call of Account.
func (*MockAuthedClientMockRecorder) Candidate ¶ added in v2.4.0
func (mr *MockAuthedClientMockRecorder) Candidate() *gomock.Call
Candidate indicates an expected call of Candidate.
func (*MockAuthedClientMockRecorder) ClaimReward ¶ added in v2.4.0
func (mr *MockAuthedClientMockRecorder) ClaimReward(value interface{}) *gomock.Call
ClaimReward indicates an expected call of ClaimReward.
func (*MockAuthedClientMockRecorder) Contract ¶ added in v2.4.0
func (mr *MockAuthedClientMockRecorder) Contract(contract, abi interface{}) *gomock.Call
Contract indicates an expected call of Contract.
func (*MockAuthedClientMockRecorder) DeployContract ¶ added in v2.4.0
func (mr *MockAuthedClientMockRecorder) DeployContract(data interface{}) *gomock.Call
DeployContract indicates an expected call of DeployContract.
func (*MockAuthedClientMockRecorder) GetLogs ¶ added in v2.4.0
func (mr *MockAuthedClientMockRecorder) GetLogs(request interface{}) *gomock.Call
GetLogs indicates an expected call of GetLogs.
func (*MockAuthedClientMockRecorder) GetReceipt ¶ added in v2.4.0
func (mr *MockAuthedClientMockRecorder) GetReceipt(actionHash interface{}) *gomock.Call
GetReceipt indicates an expected call of GetReceipt.
func (*MockAuthedClientMockRecorder) ReadOnlyContract ¶ added in v2.4.0
func (mr *MockAuthedClientMockRecorder) ReadOnlyContract(contract, abi interface{}) *gomock.Call
ReadOnlyContract indicates an expected call of ReadOnlyContract.
func (*MockAuthedClientMockRecorder) Staking ¶ added in v2.4.0
func (mr *MockAuthedClientMockRecorder) Staking() *gomock.Call
Staking indicates an expected call of Staking.
func (*MockAuthedClientMockRecorder) Transfer ¶ added in v2.4.0
func (mr *MockAuthedClientMockRecorder) Transfer(to, value interface{}) *gomock.Call
Transfer indicates an expected call of Transfer.
type MockCaller ¶ added in v2.6.0
type MockCaller struct {
// contains filtered or unexported fields
}
MockCaller is a mock of Caller interface.
func NewMockCaller ¶ added in v2.6.0
func NewMockCaller(ctrl *gomock.Controller) *MockCaller
NewMockCaller creates a new mock instance.
func (*MockCaller) API ¶ added in v2.6.0
func (m *MockCaller) API() iotexapi.APIServiceClient
API mocks base method.
func (*MockCaller) Call ¶ added in v2.6.0
func (m *MockCaller) Call(ctx context.Context, opts ...grpc.CallOption) (hash.Hash256, error)
Call mocks base method.
func (*MockCaller) EXPECT ¶ added in v2.6.0
func (m *MockCaller) EXPECT() *MockCallerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCallerMockRecorder ¶ added in v2.6.0
type MockCallerMockRecorder struct {
// contains filtered or unexported fields
}
MockCallerMockRecorder is the mock recorder for MockCaller.
func (*MockCallerMockRecorder) API ¶ added in v2.6.0
func (mr *MockCallerMockRecorder) API() *gomock.Call
API indicates an expected call of API.
func (*MockCallerMockRecorder) Call ¶ added in v2.6.0
func (mr *MockCallerMockRecorder) Call(ctx interface{}, opts ...interface{}) *gomock.Call
Call indicates an expected call of Call.
type MockCandidateCaller ¶ added in v2.4.0
type MockCandidateCaller struct {
// contains filtered or unexported fields
}
MockCandidateCaller is a mock of CandidateCaller interface.
func NewMockCandidateCaller ¶ added in v2.4.0
func NewMockCandidateCaller(ctrl *gomock.Controller) *MockCandidateCaller
NewMockCandidateCaller creates a new mock instance.
func (*MockCandidateCaller) EXPECT ¶ added in v2.4.0
func (m *MockCandidateCaller) EXPECT() *MockCandidateCallerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCandidateCaller) Register ¶ added in v2.4.0
func (m *MockCandidateCaller) Register(name string, ownerAddr, operatorAddr, rewardAddr address.Address, amount *big.Int, duration uint32, autoStake bool, payload []byte) SendActionCaller
Register mocks base method.
func (*MockCandidateCaller) Update ¶ added in v2.4.0
func (m *MockCandidateCaller) Update(name string, operatorAddr, rewardAddr address.Address) SendActionCaller
Update mocks base method.
type MockCandidateCallerMockRecorder ¶ added in v2.4.0
type MockCandidateCallerMockRecorder struct {
// contains filtered or unexported fields
}
MockCandidateCallerMockRecorder is the mock recorder for MockCandidateCaller.
func (*MockCandidateCallerMockRecorder) Register ¶ added in v2.4.0
func (mr *MockCandidateCallerMockRecorder) Register(name, ownerAddr, operatorAddr, rewardAddr, amount, duration, autoStake, payload interface{}) *gomock.Call
Register indicates an expected call of Register.
func (*MockCandidateCallerMockRecorder) Update ¶ added in v2.4.0
func (mr *MockCandidateCallerMockRecorder) Update(name, operatorAddr, rewardAddr interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockClaimRewardCaller ¶ added in v2.4.0
type MockClaimRewardCaller struct {
// contains filtered or unexported fields
}
MockClaimRewardCaller is a mock of ClaimRewardCaller interface.
func NewMockClaimRewardCaller ¶ added in v2.4.0
func NewMockClaimRewardCaller(ctrl *gomock.Controller) *MockClaimRewardCaller
NewMockClaimRewardCaller creates a new mock instance.
func (*MockClaimRewardCaller) API ¶ added in v2.4.0
func (m *MockClaimRewardCaller) API() iotexapi.APIServiceClient
API mocks base method.
func (*MockClaimRewardCaller) Call ¶ added in v2.4.0
func (m *MockClaimRewardCaller) Call(ctx context.Context, opts ...grpc.CallOption) (hash.Hash256, error)
Call mocks base method.
func (*MockClaimRewardCaller) EXPECT ¶ added in v2.4.0
func (m *MockClaimRewardCaller) EXPECT() *MockClaimRewardCallerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClaimRewardCaller) SetData ¶ added in v2.4.0
func (m *MockClaimRewardCaller) SetData(arg0 []byte) ClaimRewardCaller
SetData mocks base method.
func (*MockClaimRewardCaller) SetGasLimit ¶ added in v2.4.0
func (m *MockClaimRewardCaller) SetGasLimit(arg0 uint64) ClaimRewardCaller
SetGasLimit mocks base method.
func (*MockClaimRewardCaller) SetGasPrice ¶ added in v2.4.0
func (m *MockClaimRewardCaller) SetGasPrice(arg0 *big.Int) ClaimRewardCaller
SetGasPrice mocks base method.
func (*MockClaimRewardCaller) SetNonce ¶ added in v2.4.0
func (m *MockClaimRewardCaller) SetNonce(arg0 uint64) ClaimRewardCaller
SetNonce mocks base method.
type MockClaimRewardCallerMockRecorder ¶ added in v2.4.0
type MockClaimRewardCallerMockRecorder struct {
// contains filtered or unexported fields
}
MockClaimRewardCallerMockRecorder is the mock recorder for MockClaimRewardCaller.
func (*MockClaimRewardCallerMockRecorder) API ¶ added in v2.4.0
func (mr *MockClaimRewardCallerMockRecorder) API() *gomock.Call
API indicates an expected call of API.
func (*MockClaimRewardCallerMockRecorder) Call ¶ added in v2.4.0
func (mr *MockClaimRewardCallerMockRecorder) Call(ctx interface{}, opts ...interface{}) *gomock.Call
Call indicates an expected call of Call.
func (*MockClaimRewardCallerMockRecorder) SetData ¶ added in v2.4.0
func (mr *MockClaimRewardCallerMockRecorder) SetData(arg0 interface{}) *gomock.Call
SetData indicates an expected call of SetData.
func (*MockClaimRewardCallerMockRecorder) SetGasLimit ¶ added in v2.4.0
func (mr *MockClaimRewardCallerMockRecorder) SetGasLimit(arg0 interface{}) *gomock.Call
SetGasLimit indicates an expected call of SetGasLimit.
func (*MockClaimRewardCallerMockRecorder) SetGasPrice ¶ added in v2.4.0
func (mr *MockClaimRewardCallerMockRecorder) SetGasPrice(arg0 interface{}) *gomock.Call
SetGasPrice indicates an expected call of SetGasPrice.
func (*MockClaimRewardCallerMockRecorder) SetNonce ¶ added in v2.4.0
func (mr *MockClaimRewardCallerMockRecorder) SetNonce(arg0 interface{}) *gomock.Call
SetNonce indicates an expected call of SetNonce.
type MockContract ¶ added in v2.4.0
type MockContract struct {
// contains filtered or unexported fields
}
MockContract is a mock of Contract interface.
func NewMockContract ¶ added in v2.4.0
func NewMockContract(ctrl *gomock.Controller) *MockContract
NewMockContract creates a new mock instance.
func (*MockContract) EXPECT ¶ added in v2.4.0
func (m *MockContract) EXPECT() *MockContractMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockContract) Execute ¶ added in v2.4.0
func (m *MockContract) Execute(method string, args ...interface{}) ExecuteContractCaller
Execute mocks base method.
func (*MockContract) Read ¶ added in v2.4.0
func (m *MockContract) Read(method string, args ...interface{}) ReadContractCaller
Read mocks base method.
type MockContractMockRecorder ¶ added in v2.4.0
type MockContractMockRecorder struct {
// contains filtered or unexported fields
}
MockContractMockRecorder is the mock recorder for MockContract.
func (*MockContractMockRecorder) Execute ¶ added in v2.4.0
func (mr *MockContractMockRecorder) Execute(method interface{}, args ...interface{}) *gomock.Call
Execute indicates an expected call of Execute.
func (*MockContractMockRecorder) Read ¶ added in v2.4.0
func (mr *MockContractMockRecorder) Read(method interface{}, args ...interface{}) *gomock.Call
Read indicates an expected call of Read.
type MockDeployContractCaller ¶ added in v2.4.0
type MockDeployContractCaller struct {
// contains filtered or unexported fields
}
MockDeployContractCaller is a mock of DeployContractCaller interface.
func NewMockDeployContractCaller ¶ added in v2.4.0
func NewMockDeployContractCaller(ctrl *gomock.Controller) *MockDeployContractCaller
NewMockDeployContractCaller creates a new mock instance.
func (*MockDeployContractCaller) API ¶ added in v2.4.0
func (m *MockDeployContractCaller) API() iotexapi.APIServiceClient
API mocks base method.
func (*MockDeployContractCaller) Call ¶ added in v2.4.0
func (m *MockDeployContractCaller) Call(ctx context.Context, opts ...grpc.CallOption) (hash.Hash256, error)
Call mocks base method.
func (*MockDeployContractCaller) EXPECT ¶ added in v2.4.0
func (m *MockDeployContractCaller) EXPECT() *MockDeployContractCallerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDeployContractCaller) SetArgs ¶ added in v2.4.0
func (m *MockDeployContractCaller) SetArgs(abi abi.ABI, args ...interface{}) DeployContractCaller
SetArgs mocks base method.
func (*MockDeployContractCaller) SetGasLimit ¶ added in v2.4.0
func (m *MockDeployContractCaller) SetGasLimit(arg0 uint64) DeployContractCaller
SetGasLimit mocks base method.
func (*MockDeployContractCaller) SetGasPrice ¶ added in v2.4.0
func (m *MockDeployContractCaller) SetGasPrice(arg0 *big.Int) DeployContractCaller
SetGasPrice mocks base method.
func (*MockDeployContractCaller) SetNonce ¶ added in v2.4.0
func (m *MockDeployContractCaller) SetNonce(arg0 uint64) DeployContractCaller
SetNonce mocks base method.
type MockDeployContractCallerMockRecorder ¶ added in v2.4.0
type MockDeployContractCallerMockRecorder struct {
// contains filtered or unexported fields
}
MockDeployContractCallerMockRecorder is the mock recorder for MockDeployContractCaller.
func (*MockDeployContractCallerMockRecorder) API ¶ added in v2.4.0
func (mr *MockDeployContractCallerMockRecorder) API() *gomock.Call
API indicates an expected call of API.
func (*MockDeployContractCallerMockRecorder) Call ¶ added in v2.4.0
func (mr *MockDeployContractCallerMockRecorder) Call(ctx interface{}, opts ...interface{}) *gomock.Call
Call indicates an expected call of Call.
func (*MockDeployContractCallerMockRecorder) SetArgs ¶ added in v2.4.0
func (mr *MockDeployContractCallerMockRecorder) SetArgs(abi interface{}, args ...interface{}) *gomock.Call
SetArgs indicates an expected call of SetArgs.
func (*MockDeployContractCallerMockRecorder) SetGasLimit ¶ added in v2.4.0
func (mr *MockDeployContractCallerMockRecorder) SetGasLimit(arg0 interface{}) *gomock.Call
SetGasLimit indicates an expected call of SetGasLimit.
func (*MockDeployContractCallerMockRecorder) SetGasPrice ¶ added in v2.4.0
func (mr *MockDeployContractCallerMockRecorder) SetGasPrice(arg0 interface{}) *gomock.Call
SetGasPrice indicates an expected call of SetGasPrice.
func (*MockDeployContractCallerMockRecorder) SetNonce ¶ added in v2.4.0
func (mr *MockDeployContractCallerMockRecorder) SetNonce(arg0 interface{}) *gomock.Call
SetNonce indicates an expected call of SetNonce.
type MockExecuteContractCaller ¶ added in v2.4.0
type MockExecuteContractCaller struct {
// contains filtered or unexported fields
}
MockExecuteContractCaller is a mock of ExecuteContractCaller interface.
func NewMockExecuteContractCaller ¶ added in v2.4.0
func NewMockExecuteContractCaller(ctrl *gomock.Controller) *MockExecuteContractCaller
NewMockExecuteContractCaller creates a new mock instance.
func (*MockExecuteContractCaller) API ¶ added in v2.4.0
func (m *MockExecuteContractCaller) API() iotexapi.APIServiceClient
API mocks base method.
func (*MockExecuteContractCaller) Call ¶ added in v2.4.0
func (m *MockExecuteContractCaller) Call(ctx context.Context, opts ...grpc.CallOption) (hash.Hash256, error)
Call mocks base method.
func (*MockExecuteContractCaller) EXPECT ¶ added in v2.4.0
func (m *MockExecuteContractCaller) EXPECT() *MockExecuteContractCallerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExecuteContractCaller) SetAmount ¶ added in v2.4.0
func (m *MockExecuteContractCaller) SetAmount(arg0 *big.Int) ExecuteContractCaller
SetAmount mocks base method.
func (*MockExecuteContractCaller) SetGasLimit ¶ added in v2.4.0
func (m *MockExecuteContractCaller) SetGasLimit(arg0 uint64) ExecuteContractCaller
SetGasLimit mocks base method.
func (*MockExecuteContractCaller) SetGasPrice ¶ added in v2.4.0
func (m *MockExecuteContractCaller) SetGasPrice(arg0 *big.Int) ExecuteContractCaller
SetGasPrice mocks base method.
func (*MockExecuteContractCaller) SetNonce ¶ added in v2.4.0
func (m *MockExecuteContractCaller) SetNonce(arg0 uint64) ExecuteContractCaller
SetNonce mocks base method.
type MockExecuteContractCallerMockRecorder ¶ added in v2.4.0
type MockExecuteContractCallerMockRecorder struct {
// contains filtered or unexported fields
}
MockExecuteContractCallerMockRecorder is the mock recorder for MockExecuteContractCaller.
func (*MockExecuteContractCallerMockRecorder) API ¶ added in v2.4.0
func (mr *MockExecuteContractCallerMockRecorder) API() *gomock.Call
API indicates an expected call of API.
func (*MockExecuteContractCallerMockRecorder) Call ¶ added in v2.4.0
func (mr *MockExecuteContractCallerMockRecorder) Call(ctx interface{}, opts ...interface{}) *gomock.Call
Call indicates an expected call of Call.
func (*MockExecuteContractCallerMockRecorder) SetAmount ¶ added in v2.4.0
func (mr *MockExecuteContractCallerMockRecorder) SetAmount(arg0 interface{}) *gomock.Call
SetAmount indicates an expected call of SetAmount.
func (*MockExecuteContractCallerMockRecorder) SetGasLimit ¶ added in v2.4.0
func (mr *MockExecuteContractCallerMockRecorder) SetGasLimit(arg0 interface{}) *gomock.Call
SetGasLimit indicates an expected call of SetGasLimit.
func (*MockExecuteContractCallerMockRecorder) SetGasPrice ¶ added in v2.4.0
func (mr *MockExecuteContractCallerMockRecorder) SetGasPrice(arg0 interface{}) *gomock.Call
SetGasPrice indicates an expected call of SetGasPrice.
func (*MockExecuteContractCallerMockRecorder) SetNonce ¶ added in v2.4.0
func (mr *MockExecuteContractCallerMockRecorder) SetNonce(arg0 interface{}) *gomock.Call
SetNonce indicates an expected call of SetNonce.
type MockGetLogsCaller ¶ added in v2.4.0
type MockGetLogsCaller struct {
// contains filtered or unexported fields
}
MockGetLogsCaller is a mock of GetLogsCaller interface.
func NewMockGetLogsCaller ¶ added in v2.4.0
func NewMockGetLogsCaller(ctrl *gomock.Controller) *MockGetLogsCaller
NewMockGetLogsCaller creates a new mock instance.
func (*MockGetLogsCaller) Call ¶ added in v2.4.0
func (m *MockGetLogsCaller) Call(ctx context.Context, opts ...grpc.CallOption) (*iotexapi.GetLogsResponse, error)
Call mocks base method.
func (*MockGetLogsCaller) EXPECT ¶ added in v2.4.0
func (m *MockGetLogsCaller) EXPECT() *MockGetLogsCallerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockGetLogsCallerMockRecorder ¶ added in v2.4.0
type MockGetLogsCallerMockRecorder struct {
// contains filtered or unexported fields
}
MockGetLogsCallerMockRecorder is the mock recorder for MockGetLogsCaller.
func (*MockGetLogsCallerMockRecorder) Call ¶ added in v2.4.0
func (mr *MockGetLogsCallerMockRecorder) Call(ctx interface{}, opts ...interface{}) *gomock.Call
Call indicates an expected call of Call.
type MockGetReceiptCaller ¶ added in v2.4.0
type MockGetReceiptCaller struct {
// contains filtered or unexported fields
}
MockGetReceiptCaller is a mock of GetReceiptCaller interface.
func NewMockGetReceiptCaller ¶ added in v2.4.0
func NewMockGetReceiptCaller(ctrl *gomock.Controller) *MockGetReceiptCaller
NewMockGetReceiptCaller creates a new mock instance.
func (*MockGetReceiptCaller) Call ¶ added in v2.4.0
func (m *MockGetReceiptCaller) Call(ctx context.Context, opts ...grpc.CallOption) (*iotexapi.GetReceiptByActionResponse, error)
Call mocks base method.
func (*MockGetReceiptCaller) EXPECT ¶ added in v2.4.0
func (m *MockGetReceiptCaller) EXPECT() *MockGetReceiptCallerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockGetReceiptCallerMockRecorder ¶ added in v2.4.0
type MockGetReceiptCallerMockRecorder struct {
// contains filtered or unexported fields
}
MockGetReceiptCallerMockRecorder is the mock recorder for MockGetReceiptCaller.
func (*MockGetReceiptCallerMockRecorder) Call ¶ added in v2.4.0
func (mr *MockGetReceiptCallerMockRecorder) Call(ctx interface{}, opts ...interface{}) *gomock.Call
Call indicates an expected call of Call.
type MockReadContractCaller ¶ added in v2.4.0
type MockReadContractCaller struct {
// contains filtered or unexported fields
}
MockReadContractCaller is a mock of ReadContractCaller interface.
func NewMockReadContractCaller ¶ added in v2.4.0
func NewMockReadContractCaller(ctrl *gomock.Controller) *MockReadContractCaller
NewMockReadContractCaller creates a new mock instance.
func (*MockReadContractCaller) Call ¶ added in v2.4.0
func (m *MockReadContractCaller) Call(ctx context.Context, opts ...grpc.CallOption) (Data, error)
Call mocks base method.
func (*MockReadContractCaller) EXPECT ¶ added in v2.4.0
func (m *MockReadContractCaller) EXPECT() *MockReadContractCallerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockReadContractCallerMockRecorder ¶ added in v2.4.0
type MockReadContractCallerMockRecorder struct {
// contains filtered or unexported fields
}
MockReadContractCallerMockRecorder is the mock recorder for MockReadContractCaller.
func (*MockReadContractCallerMockRecorder) Call ¶ added in v2.4.0
func (mr *MockReadContractCallerMockRecorder) Call(ctx interface{}, opts ...interface{}) *gomock.Call
Call indicates an expected call of Call.
type MockReadOnlyClient ¶ added in v2.4.0
type MockReadOnlyClient struct {
// contains filtered or unexported fields
}
MockReadOnlyClient is a mock of ReadOnlyClient interface.
func NewMockReadOnlyClient ¶ added in v2.4.0
func NewMockReadOnlyClient(ctrl *gomock.Controller) *MockReadOnlyClient
NewMockReadOnlyClient creates a new mock instance.
func (*MockReadOnlyClient) API ¶ added in v2.4.0
func (m *MockReadOnlyClient) API() iotexapi.APIServiceClient
API mocks base method.
func (*MockReadOnlyClient) EXPECT ¶ added in v2.4.0
func (m *MockReadOnlyClient) EXPECT() *MockReadOnlyClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockReadOnlyClient) GetLogs ¶ added in v2.4.0
func (m *MockReadOnlyClient) GetLogs(request *iotexapi.GetLogsRequest) GetLogsCaller
GetLogs mocks base method.
func (*MockReadOnlyClient) GetReceipt ¶ added in v2.4.0
func (m *MockReadOnlyClient) GetReceipt(actionHash hash.Hash256) GetReceiptCaller
GetReceipt mocks base method.
func (*MockReadOnlyClient) ReadOnlyContract ¶ added in v2.4.0
func (m *MockReadOnlyClient) ReadOnlyContract(contract address.Address, abi abi.ABI) ReadOnlyContract
ReadOnlyContract mocks base method.
type MockReadOnlyClientMockRecorder ¶ added in v2.4.0
type MockReadOnlyClientMockRecorder struct {
// contains filtered or unexported fields
}
MockReadOnlyClientMockRecorder is the mock recorder for MockReadOnlyClient.
func (*MockReadOnlyClientMockRecorder) API ¶ added in v2.4.0
func (mr *MockReadOnlyClientMockRecorder) API() *gomock.Call
API indicates an expected call of API.
func (*MockReadOnlyClientMockRecorder) GetLogs ¶ added in v2.4.0
func (mr *MockReadOnlyClientMockRecorder) GetLogs(request interface{}) *gomock.Call
GetLogs indicates an expected call of GetLogs.
func (*MockReadOnlyClientMockRecorder) GetReceipt ¶ added in v2.4.0
func (mr *MockReadOnlyClientMockRecorder) GetReceipt(actionHash interface{}) *gomock.Call
GetReceipt indicates an expected call of GetReceipt.
func (*MockReadOnlyClientMockRecorder) ReadOnlyContract ¶ added in v2.4.0
func (mr *MockReadOnlyClientMockRecorder) ReadOnlyContract(contract, abi interface{}) *gomock.Call
ReadOnlyContract indicates an expected call of ReadOnlyContract.
type MockReadOnlyContract ¶ added in v2.4.0
type MockReadOnlyContract struct {
// contains filtered or unexported fields
}
MockReadOnlyContract is a mock of ReadOnlyContract interface.
func NewMockReadOnlyContract ¶ added in v2.4.0
func NewMockReadOnlyContract(ctrl *gomock.Controller) *MockReadOnlyContract
NewMockReadOnlyContract creates a new mock instance.
func (*MockReadOnlyContract) EXPECT ¶ added in v2.4.0
func (m *MockReadOnlyContract) EXPECT() *MockReadOnlyContractMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockReadOnlyContract) Read ¶ added in v2.4.0
func (m *MockReadOnlyContract) Read(method string, args ...interface{}) ReadContractCaller
Read mocks base method.
type MockReadOnlyContractMockRecorder ¶ added in v2.4.0
type MockReadOnlyContractMockRecorder struct {
// contains filtered or unexported fields
}
MockReadOnlyContractMockRecorder is the mock recorder for MockReadOnlyContract.
func (*MockReadOnlyContractMockRecorder) Read ¶ added in v2.4.0
func (mr *MockReadOnlyContractMockRecorder) Read(method interface{}, args ...interface{}) *gomock.Call
Read indicates an expected call of Read.
type MockSendActionCaller ¶ added in v2.4.0
type MockSendActionCaller struct {
// contains filtered or unexported fields
}
MockSendActionCaller is a mock of SendActionCaller interface.
func NewMockSendActionCaller ¶ added in v2.4.0
func NewMockSendActionCaller(ctrl *gomock.Controller) *MockSendActionCaller
NewMockSendActionCaller creates a new mock instance.
func (*MockSendActionCaller) API ¶ added in v2.4.0
func (m *MockSendActionCaller) API() iotexapi.APIServiceClient
API mocks base method.
func (*MockSendActionCaller) Call ¶ added in v2.4.0
func (m *MockSendActionCaller) Call(ctx context.Context, opts ...grpc.CallOption) (hash.Hash256, error)
Call mocks base method.
func (*MockSendActionCaller) EXPECT ¶ added in v2.4.0
func (m *MockSendActionCaller) EXPECT() *MockSendActionCallerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSendActionCaller) SetGasLimit ¶ added in v2.6.0
func (m *MockSendActionCaller) SetGasLimit(arg0 uint64) SendActionCaller
SetGasLimit mocks base method.
func (*MockSendActionCaller) SetGasPrice ¶ added in v2.6.0
func (m *MockSendActionCaller) SetGasPrice(arg0 *big.Int) SendActionCaller
SetGasPrice mocks base method.
func (*MockSendActionCaller) SetNonce ¶ added in v2.6.0
func (m *MockSendActionCaller) SetNonce(arg0 uint64) SendActionCaller
SetNonce mocks base method.
func (*MockSendActionCaller) SetPayload ¶ added in v2.6.0
func (m *MockSendActionCaller) SetPayload(arg0 []byte) SendActionCaller
SetPayload mocks base method.
type MockSendActionCallerMockRecorder ¶ added in v2.4.0
type MockSendActionCallerMockRecorder struct {
// contains filtered or unexported fields
}
MockSendActionCallerMockRecorder is the mock recorder for MockSendActionCaller.
func (*MockSendActionCallerMockRecorder) API ¶ added in v2.4.0
func (mr *MockSendActionCallerMockRecorder) API() *gomock.Call
API indicates an expected call of API.
func (*MockSendActionCallerMockRecorder) Call ¶ added in v2.4.0
func (mr *MockSendActionCallerMockRecorder) Call(ctx interface{}, opts ...interface{}) *gomock.Call
Call indicates an expected call of Call.
func (*MockSendActionCallerMockRecorder) SetGasLimit ¶ added in v2.6.0
func (mr *MockSendActionCallerMockRecorder) SetGasLimit(arg0 interface{}) *gomock.Call
SetGasLimit indicates an expected call of SetGasLimit.
func (*MockSendActionCallerMockRecorder) SetGasPrice ¶ added in v2.6.0
func (mr *MockSendActionCallerMockRecorder) SetGasPrice(arg0 interface{}) *gomock.Call
SetGasPrice indicates an expected call of SetGasPrice.
func (*MockSendActionCallerMockRecorder) SetNonce ¶ added in v2.6.0
func (mr *MockSendActionCallerMockRecorder) SetNonce(arg0 interface{}) *gomock.Call
SetNonce indicates an expected call of SetNonce.
func (*MockSendActionCallerMockRecorder) SetPayload ¶ added in v2.6.0
func (mr *MockSendActionCallerMockRecorder) SetPayload(arg0 interface{}) *gomock.Call
SetPayload indicates an expected call of SetPayload.
type MockStakingCaller ¶ added in v2.4.0
type MockStakingCaller struct {
// contains filtered or unexported fields
}
MockStakingCaller is a mock of StakingCaller interface.
func NewMockStakingCaller ¶ added in v2.4.0
func NewMockStakingCaller(ctrl *gomock.Controller) *MockStakingCaller
NewMockStakingCaller creates a new mock instance.
func (*MockStakingCaller) AddDeposit ¶ added in v2.4.0
func (m *MockStakingCaller) AddDeposit(index uint64, amount *big.Int) SendActionCaller
AddDeposit mocks base method.
func (*MockStakingCaller) ChangeCandidate ¶ added in v2.4.0
func (m *MockStakingCaller) ChangeCandidate(candName string, bucketIndex uint64) SendActionCaller
ChangeCandidate mocks base method.
func (*MockStakingCaller) Create ¶ added in v2.4.0
func (m *MockStakingCaller) Create(candidateName string, amount *big.Int, duration uint32, autoStake bool) SendActionCaller
Create mocks base method.
func (*MockStakingCaller) EXPECT ¶ added in v2.4.0
func (m *MockStakingCaller) EXPECT() *MockStakingCallerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStakingCaller) Restake ¶ added in v2.4.0
func (m *MockStakingCaller) Restake(index uint64, duration uint32, autoStake bool) SendActionCaller
Restake mocks base method.
func (*MockStakingCaller) StakingTransfer ¶ added in v2.4.0
func (m *MockStakingCaller) StakingTransfer(voterAddress address.Address, bucketIndex uint64) SendActionCaller
StakingTransfer mocks base method.
func (*MockStakingCaller) Unstake ¶ added in v2.4.0
func (m *MockStakingCaller) Unstake(bucketIndex uint64) SendActionCaller
Unstake mocks base method.
func (*MockStakingCaller) Withdraw ¶ added in v2.4.0
func (m *MockStakingCaller) Withdraw(bucketIndex uint64) SendActionCaller
Withdraw mocks base method.
type MockStakingCallerMockRecorder ¶ added in v2.4.0
type MockStakingCallerMockRecorder struct {
// contains filtered or unexported fields
}
MockStakingCallerMockRecorder is the mock recorder for MockStakingCaller.
func (*MockStakingCallerMockRecorder) AddDeposit ¶ added in v2.4.0
func (mr *MockStakingCallerMockRecorder) AddDeposit(index, amount interface{}) *gomock.Call
AddDeposit indicates an expected call of AddDeposit.
func (*MockStakingCallerMockRecorder) ChangeCandidate ¶ added in v2.4.0
func (mr *MockStakingCallerMockRecorder) ChangeCandidate(candName, bucketIndex interface{}) *gomock.Call
ChangeCandidate indicates an expected call of ChangeCandidate.
func (*MockStakingCallerMockRecorder) Create ¶ added in v2.4.0
func (mr *MockStakingCallerMockRecorder) Create(candidateName, amount, duration, autoStake interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockStakingCallerMockRecorder) Restake ¶ added in v2.4.0
func (mr *MockStakingCallerMockRecorder) Restake(index, duration, autoStake interface{}) *gomock.Call
Restake indicates an expected call of Restake.
func (*MockStakingCallerMockRecorder) StakingTransfer ¶ added in v2.4.0
func (mr *MockStakingCallerMockRecorder) StakingTransfer(voterAddress, bucketIndex interface{}) *gomock.Call
StakingTransfer indicates an expected call of StakingTransfer.
func (*MockStakingCallerMockRecorder) Unstake ¶ added in v2.4.0
func (mr *MockStakingCallerMockRecorder) Unstake(bucketIndex interface{}) *gomock.Call
Unstake indicates an expected call of Unstake.
func (*MockStakingCallerMockRecorder) Withdraw ¶ added in v2.4.0
func (mr *MockStakingCallerMockRecorder) Withdraw(bucketIndex interface{}) *gomock.Call
Withdraw indicates an expected call of Withdraw.
type ReadContractCaller ¶
type ReadContractCaller interface {
Call(ctx context.Context, opts ...grpc.CallOption) (Data, error)
}
ReadContractCaller is used to perform a read contract call.
type ReadOnlyClient ¶
type ReadOnlyClient interface { ReadOnlyContract(contract address.Address, abi abi.ABI) ReadOnlyContract GetReceipt(actionHash hash.Hash256) GetReceiptCaller GetLogs(request *iotexapi.GetLogsRequest) GetLogsCaller API() iotexapi.APIServiceClient }
ReadOnlyClient is an iotex client which can perform read actions.
func NewReadOnlyClient ¶
func NewReadOnlyClient(c iotexapi.APIServiceClient) ReadOnlyClient
NewReadOnlyClient creates a ReadOnlyClient.
type ReadOnlyContract ¶
type ReadOnlyContract interface {
Read(method string, args ...interface{}) ReadContractCaller
}
ReadOnlyContract allows to read on this contract's methods.
type SendActionCaller ¶
type SendActionCaller interface { Caller SetNonce(uint64) SendActionCaller SetGasLimit(uint64) SendActionCaller SetGasPrice(*big.Int) SendActionCaller SetPayload([]byte) SendActionCaller }
SendActionCaller is used to set nonce/gas etc. on top of Caller
type StakingCaller ¶ added in v2.3.3
type StakingCaller interface { Create(candidateName string, amount *big.Int, duration uint32, autoStake bool) SendActionCaller Unstake(bucketIndex uint64) SendActionCaller Withdraw(bucketIndex uint64) SendActionCaller AddDeposit(index uint64, amount *big.Int) SendActionCaller ChangeCandidate(candName string, bucketIndex uint64) SendActionCaller StakingTransfer(voterAddress address.Address, bucketIndex uint64) SendActionCaller Restake(index uint64, duration uint32, autoStake bool) SendActionCaller }
StakingCaller is used to perform a staking call.