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 GetDCDTTokenData(t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, ...) *dcdt.DCDigitalToken
- func GetUserAccountWithAddress(t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode) state.UserAccountHandler
- func IssueNFT(nodes []*integrationTests.TestProcessorNode, dcdtType 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 ¶
func AcceptFundsEchoMock(instanceMock *mock.InstanceMock, config interface{})
AcceptFundsEchoMock is an exposed mock contract method
func AcceptMultiFundsEchoMock ¶
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 ¶
func CheckForwarderRawSavedCallbackArgs( t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, callbackIndex int, expectedResultCode vmcommon.ReturnCode, expectedArguments [][]byte)
CheckForwarderRawSavedCallbackArgs -
func CheckForwarderRawSavedCallbackPayments ¶
func CheckForwarderRawSavedCallbackPayments( t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, expectedPayments []*ForwarderRawSavedPaymentInfo)
CheckForwarderRawSavedCallbackPayments -
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 ¶
func CreateNodesAndPrepareBalancesWithEpochsAndRoundsConfig(numOfShards int, enableEpochs config.EnableEpochs, roundsConfig config.RoundConfig) ([]*integrationTests.TestProcessorNode, []int)
CreateNodesAndPrepareBalancesWithEpochsAndRoundsConfig -
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 ¶
func DoAsyncCallMock(instanceMock *mock.InstanceMock, config interface{})
DoAsyncCallMock is an exposed mock contract method
func EmptyCallbackMock ¶
func EmptyCallbackMock(instanceMock *mock.InstanceMock, config interface{})
EmptyCallbackMock is an exposed mock contract method
func GetDCDTTokenData ¶
func GetDCDTTokenData( t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, tickerID []byte, nonce uint64, ) *dcdt.DCDigitalToken
GetDCDTTokenData -
func GetUserAccountWithAddress ¶
func GetUserAccountWithAddress( t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, ) state.UserAccountHandler
GetUserAccountWithAddress -
func IssueNFT ¶
func IssueNFT(nodes []*integrationTests.TestProcessorNode, dcdtType 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 ¶
func IssueTestTokenWithIssuerAccount(nodes []*integrationTests.TestProcessorNode, issuerAccount *integrationTests.TestWalletAccount, initialSupply int64, ticker string)
IssueTestTokenWithIssuerAccount -
func IssueTestTokenWithSpecialRoles ¶
func IssueTestTokenWithSpecialRoles(nodes []*integrationTests.TestProcessorNode, initialSupply int64, ticker string)
IssueTestTokenWithSpecialRoles -
func MultiTransferExecuteMock ¶
func MultiTransferExecuteMock(instanceMock *mock.InstanceMock, config interface{})
MultiTransferExecuteMock is an exposed mock contract method
func MultiTransferViaAsyncMock ¶
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 ¶
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 ¶
func SetRolesWithSenderAccount(nodes []*integrationTests.TestProcessorNode, issuerAccount *integrationTests.TestWalletAccount, addrForRole []byte, tokenIdentifier []byte, roles [][]byte)
SetRolesWithSenderAccount -
func SyncMultiTransferMock ¶
func SyncMultiTransferMock(instanceMock *mock.InstanceMock, config interface{})
SyncMultiTransferMock is an exposed mock contract method