Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContractClient ¶
func NewContractClient(api ContractAPI) *contractClient
Types ¶
type BenchmarkTokenClient ¶
type BenchmarkTokenClient interface { DeployBenchmarkToken(ctx context.Context, ownerAddressIndex int) SendTransfer(ctx context.Context, nodeIndex int, amount uint64, fromAddressIndex int, toAddressIndex int) (*client.SendTransactionResponse, primitives.Sha256) SendTransferInBackground(ctx context.Context, nodeIndex int, amount uint64, fromAddressIndex int, toAddressIndex int) primitives.Sha256 SendInvalidTransfer(ctx context.Context, nodeIndex int, fromAddressIndex int, toAddressIndex int) *client.SendTransactionResponse CallGetBalance(ctx context.Context, nodeIndex int, forAddressIndex int) uint64 }
type ContractAPI ¶
type ContractAPI interface { WaitForTransactionInState(ctx context.Context, txHash primitives.Sha256) SendTransaction(ctx context.Context, tx *protocol.SignedTransactionBuilder, nodeIndex int) (*client.SendTransactionResponse, primitives.Sha256) SendTransactionInBackground(ctx context.Context, tx *protocol.SignedTransactionBuilder, nodeIndex int) CallMethod(ctx context.Context, tx *protocol.TransactionBuilder, nodeIndex int) *client.CallMethodResponse }
type CounterClient ¶
type CounterClient interface { SendDeployCounterContract(ctx context.Context, nodeIndex int) (*client.SendTransactionResponse, primitives.Sha256) SendCounterAdd(ctx context.Context, nodeIndex int, amount uint64) (*client.SendTransactionResponse, primitives.Sha256) CallCounterGet(ctx context.Context, nodeIndex int) uint64 }
Click to show internal directories.
Click to hide internal directories.