Documentation ¶
Index ¶
- func AcceptFundsEchoMock(instanceMock *mock.InstanceMock, config interface{})
- func AcceptMultiFundsEchoMock(instanceMock *mock.InstanceMock, config interface{})
- func CheckAddressHasTokens(t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, ...)
- func CheckForwarderRawSavedCallbackArgs(t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, ...)
- func CheckForwarderRawSavedCallbackPayments(t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, ...)
- func CheckNumCallBacks(t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, ...)
- func CreateNodesAndPrepareBalances(numOfShards int) ([]*integrationTests.TestProcessorNode, []int)
- func CreateNodesAndPrepareBalancesWithEpochsAndRoundsConfig(numOfShards int, enableEpochs config.EnableEpochs, ...) ([]*integrationTests.TestProcessorNode, []int)
- func DeployNonPayableSmartContract(t *testing.T, nodes []*integrationTests.TestProcessorNode, idxProposers []int, ...) []byte
- func DeployNonPayableSmartContractFromNode(t *testing.T, nodes []*integrationTests.TestProcessorNode, idDeployer int, ...) []byte
- func DoAsyncCallMock(instanceMock *mock.InstanceMock, config interface{})
- func EmptyCallbackMock(instanceMock *mock.InstanceMock, config interface{})
- func GetESDTTokenData(t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, ...) *esdt.ESDigitalToken
- func GetUserAccountWithAddress(t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode) state.UserAccountHandler
- func IssueNFT(nodes []*integrationTests.TestProcessorNode, esdtType string, ticker string)
- func IssueTestToken(nodes []*integrationTests.TestProcessorNode, initialSupply int64, ...)
- func IssueTestTokenWithCustomGas(nodes []*integrationTests.TestProcessorNode, initialSupply int64, ...)
- func IssueTestTokenWithIssuerAccount(nodes []*integrationTests.TestProcessorNode, ...)
- func IssueTestTokenWithSpecialRoles(nodes []*integrationTests.TestProcessorNode, initialSupply int64, ...)
- func MultiTransferExecuteMock(instanceMock *mock.InstanceMock, config interface{})
- func MultiTransferViaAsyncMock(instanceMock *mock.InstanceMock, config interface{})
- func PrepareFungibleTokensWithLocalBurnAndMint(t *testing.T, nodes []*integrationTests.TestProcessorNode, ...) string
- func PrepareFungibleTokensWithLocalBurnAndMintWithIssuerAccount(t *testing.T, nodes []*integrationTests.TestProcessorNode, ...) string
- func SetRoles(nodes []*integrationTests.TestProcessorNode, addrForRole []byte, ...)
- func SetRolesWithSenderAccount(nodes []*integrationTests.TestProcessorNode, ...)
- func SyncMultiTransferMock(instanceMock *mock.InstanceMock, config interface{})
- type ForwarderRawSavedPaymentInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptFundsEchoMock ¶ added in v1.6.0
func AcceptFundsEchoMock(instanceMock *mock.InstanceMock, config interface{})
AcceptFundsEchoMock is an exposed mock contract method
func AcceptMultiFundsEchoMock ¶ added in v1.6.0
func AcceptMultiFundsEchoMock(instanceMock *mock.InstanceMock, config interface{})
AcceptMultiFundsEchoMock is an exposed mock contract method
func CheckAddressHasTokens ¶
func CheckAddressHasTokens( t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, tickerID []byte, nonce int64, value int64, )
CheckAddressHasTokens - Works for both fungible and non-fungible, according to nonce
func CheckForwarderRawSavedCallbackArgs ¶ added in v1.6.0
func CheckForwarderRawSavedCallbackArgs( t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, callbackIndex int, expectedResultCode vmcommon.ReturnCode, expectedArguments [][]byte)
func CheckForwarderRawSavedCallbackPayments ¶ added in v1.6.0
func CheckForwarderRawSavedCallbackPayments( t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, expectedPayments []*ForwarderRawSavedPaymentInfo)
func CheckNumCallBacks ¶
func CheckNumCallBacks( t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, expectedNumCallbacks int, )
CheckNumCallBacks -
func CreateNodesAndPrepareBalances ¶
func CreateNodesAndPrepareBalances(numOfShards int) ([]*integrationTests.TestProcessorNode, []int)
CreateNodesAndPrepareBalances -
func CreateNodesAndPrepareBalancesWithEpochsAndRoundsConfig ¶ added in v1.6.0
func CreateNodesAndPrepareBalancesWithEpochsAndRoundsConfig(numOfShards int, enableEpochs config.EnableEpochs, roundsConfig config.RoundConfig) ([]*integrationTests.TestProcessorNode, []int)
CreateNodesAndPrepareBalances -
func DeployNonPayableSmartContract ¶
func DeployNonPayableSmartContract( t *testing.T, nodes []*integrationTests.TestProcessorNode, idxProposers []int, nonce *uint64, round *uint64, fileName string, ) []byte
DeployNonPayableSmartContract -
func DeployNonPayableSmartContractFromNode ¶
func DeployNonPayableSmartContractFromNode( t *testing.T, nodes []*integrationTests.TestProcessorNode, idDeployer int, idxProposers []int, nonce *uint64, round *uint64, fileName string, ) []byte
DeployNonPayableSmartContractFromNode -
func DoAsyncCallMock ¶ added in v1.6.0
func DoAsyncCallMock(instanceMock *mock.InstanceMock, config interface{})
DoAsyncCallMock is an exposed mock contract method
func EmptyCallbackMock ¶ added in v1.6.0
func EmptyCallbackMock(instanceMock *mock.InstanceMock, config interface{})
EmptyCallbackMock is an exposed mock contract method
func GetESDTTokenData ¶
func GetESDTTokenData( t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, tickerID []byte, nonce uint64, ) *esdt.ESDigitalToken
GetESDTTokenData -
func GetUserAccountWithAddress ¶
func GetUserAccountWithAddress( t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, ) state.UserAccountHandler
GetUserAccountWithAddress -
func IssueNFT ¶
func IssueNFT(nodes []*integrationTests.TestProcessorNode, esdtType string, ticker string)
IssueNFT -
func IssueTestToken ¶
func IssueTestToken(nodes []*integrationTests.TestProcessorNode, initialSupply int64, ticker string)
IssueTestToken -
func IssueTestTokenWithCustomGas ¶
func IssueTestTokenWithCustomGas(nodes []*integrationTests.TestProcessorNode, initialSupply int64, ticker string, gas uint64)
IssueTestTokenWithCustomGas -
func IssueTestTokenWithIssuerAccount ¶ added in v1.6.0
func IssueTestTokenWithIssuerAccount(nodes []*integrationTests.TestProcessorNode, issuerAccount *integrationTests.TestWalletAccount, initialSupply int64, ticker string)
func IssueTestTokenWithSpecialRoles ¶
func IssueTestTokenWithSpecialRoles(nodes []*integrationTests.TestProcessorNode, initialSupply int64, ticker string)
IssueTestTokenWithSpecialRoles -
func MultiTransferExecuteMock ¶ added in v1.6.0
func MultiTransferExecuteMock(instanceMock *mock.InstanceMock, config interface{})
MultiTransferExecuteMock is an exposed mock contract method
func MultiTransferViaAsyncMock ¶ added in v1.6.0
func MultiTransferViaAsyncMock(instanceMock *mock.InstanceMock, config interface{})
MultiTransferViaAsyncMock is an exposed mock contract method
func PrepareFungibleTokensWithLocalBurnAndMint ¶
func PrepareFungibleTokensWithLocalBurnAndMint( t *testing.T, nodes []*integrationTests.TestProcessorNode, addressWithRoles []byte, idxProposers []int, round *uint64, nonce *uint64, ) string
PrepareFungibleTokensWithLocalBurnAndMint -
func PrepareFungibleTokensWithLocalBurnAndMintWithIssuerAccount ¶ added in v1.6.0
func PrepareFungibleTokensWithLocalBurnAndMintWithIssuerAccount( t *testing.T, nodes []*integrationTests.TestProcessorNode, issuerAccount *integrationTests.TestWalletAccount, addressWithRoles []byte, idxProposers []int, round *uint64, nonce *uint64, ) string
PrepareFungibleTokensWithLocalBurnAndMintWithIssuerAccount -
func SetRoles ¶
func SetRoles(nodes []*integrationTests.TestProcessorNode, addrForRole []byte, tokenIdentifier []byte, roles [][]byte)
SetRoles -
func SetRolesWithSenderAccount ¶ added in v1.6.0
func SetRolesWithSenderAccount(nodes []*integrationTests.TestProcessorNode, issuerAccount *integrationTests.TestWalletAccount, addrForRole []byte, tokenIdentifier []byte, roles [][]byte)
SetRolesWithSenderAccount -
func SyncMultiTransferMock ¶ added in v1.6.0
func SyncMultiTransferMock(instanceMock *mock.InstanceMock, config interface{})
SyncMultiTransferMock is an exposed mock contract method