Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContractClient ¶
func NewContractClient(api CallContractAPI) *contractClient
Types ¶
type BenchmarkTokenClient ¶
type BenchmarkTokenClient interface { Transfer(ctx context.Context, nodeIndex int, amount uint64, fromAddressIndex int, toAddressIndex int) (*client.SendTransactionResponse, primitives.Sha256) TransferInBackground(ctx context.Context, nodeIndex int, amount uint64, fromAddressIndex int, toAddressIndex int) primitives.Sha256 InvalidTransfer(ctx context.Context, nodeIndex int, fromAddressIndex int, toAddressIndex int) *client.SendTransactionResponse GetBalance(ctx context.Context, nodeIndex int, forAddressIndex int) uint64 }
type CallContractAPI ¶
type CallContractAPI interface { SendTransaction(ctx context.Context, builder *protocol.SignedTransactionBuilder, nodeIndex int) (*client.SendTransactionResponse, primitives.Sha256) SendTransactionInBackground(ctx context.Context, builder *protocol.SignedTransactionBuilder, nodeIndex int) RunQuery(ctx context.Context, builder *protocol.SignedQueryBuilder, nodeIndex int) *client.RunQueryResponse GetTransactionStatus(ctx context.Context, txHash primitives.Sha256, nodeIndex int) *client.GetTransactionStatusResponse GetTransactionReceiptProof(ctx context.Context, txHash primitives.Sha256, nodeIndex int) *client.GetTransactionReceiptProofResponse GetVirtualChainId() primitives.VirtualChainId }
type CommitteeClient ¶ added in v1.3.8
type CommitteeClient interface { GetOrderedCommittee(ctx context.Context, nodeIndex int) (*client.SendTransactionResponse, primitives.Sha256) GetAllCommitteeMisses(ctx context.Context, nodeIndex int) (*client.SendTransactionResponse, primitives.Sha256) }
type CounterClient ¶
type CounterClient interface { DeployNativeCounterContract(ctx context.Context, nodeIndex int, fromAddressIndex int) (*client.SendTransactionResponse, primitives.Sha256) CounterAdd(ctx context.Context, nodeIndex int, amount uint64) (*client.SendTransactionResponse, primitives.Sha256) CounterGet(ctx context.Context, nodeIndex int) uint64 }
type DeploymentsClient ¶
type DeploymentsClient interface { LockNativeDeployment(ctx context.Context, nodeIndex int, toAddressIndex int) (*client.SendTransactionResponse, primitives.Sha256) UnlockNativeDeployment(ctx context.Context, nodeIndex int, fromAddressIndex int) (*client.SendTransactionResponse, primitives.Sha256) }
type ElectionsClient ¶
type ElectionsClient interface {
UnsafeTests_SetElectedValidators(ctx context.Context, nodeIndex int, electedValidatorIndexes []int) (*client.SendTransactionResponse, primitives.Sha256)
}
Click to show internal directories.
Click to hide internal directories.