contract_helper

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContractHelper

type ContractHelper struct {
	// contains filtered or unexported fields
}

func NewContractHelper

func NewContractHelper(bytecode []byte, constructorParameters hedera.ContractFunctionParameters, client *hedera.Client) *ContractHelper

func (*ContractHelper) AddSignerForStep

func (this *ContractHelper) AddSignerForStep(stepIndex int32, signer hedera.PrivateKey) *ContractHelper

func (*ContractHelper) ExecuteSteps

func (this *ContractHelper) ExecuteSteps(firstStep int32, lastStep int32, client *hedera.Client) (*ContractHelper, error)

func (*ContractHelper) GetParameterSupplier

func (this *ContractHelper) GetParameterSupplier(stepIndex int32) func() *hedera.ContractFunctionParameters

func (*ContractHelper) GetPayableAmount

func (this *ContractHelper) GetPayableAmount(stepIndex int32) *hedera.Hbar

func (*ContractHelper) GetResultValidator

func (this *ContractHelper) GetResultValidator(stepIndex int32) func(hedera.ContractFunctionResult) bool

func (*ContractHelper) GetSigners

func (this *ContractHelper) GetSigners(stepIndex int32) []hedera.PrivateKey

func (*ContractHelper) SetFeePayerForStep

func (this *ContractHelper) SetFeePayerForStep(stepIndex int32, account hedera.AccountID, accountKey hedera.PrivateKey) *ContractHelper

func (*ContractHelper) SetParameterSupplierForStep

func (this *ContractHelper) SetParameterSupplierForStep(stepIndex int32, supplier func() *hedera.ContractFunctionParameters) *ContractHelper

func (*ContractHelper) SetPayableAmountForStep

func (this *ContractHelper) SetPayableAmountForStep(stepIndex int32, amount hedera.Hbar) *ContractHelper

func (*ContractHelper) SetResultValidatorForStep

func (this *ContractHelper) SetResultValidatorForStep(stepIndex int32, validator func(hedera.ContractFunctionResult) bool) *ContractHelper

Jump to

Keyboard shortcuts

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