Documentation ¶
Index ¶
- func CheckAddressHasTokens(t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, ...)
- func CheckNumCallBacks(t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, ...)
- func CheckSavedCallBackData(t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, ...)
- func CreateNodesAndPrepareBalances(numOfShards int) ([]*integrationTests.TestProcessorNode, []int)
- func DeployNonPayableSmartContract(t *testing.T, nodes []*integrationTests.TestProcessorNode, idxProposers []int, ...) []byte
- 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 IssueTestTokenWithSpecialRoles(nodes []*integrationTests.TestProcessorNode, initialSupply int64, ...)
- func PrepareFungibleTokensWithLocalBurnAndMint(t *testing.T, nodes []*integrationTests.TestProcessorNode, ...) string
- func SetRoles(nodes []*integrationTests.TestProcessorNode, addrForRole []byte, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAddressHasTokens ¶ added in v1.2.14
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 CheckNumCallBacks ¶
func CheckNumCallBacks( t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, expectedNumCallbacks int, )
CheckNumCallBacks -
func CheckSavedCallBackData ¶
func CheckSavedCallBackData( t *testing.T, address []byte, nodes []*integrationTests.TestProcessorNode, callbackIndex int, expectedTokenId string, expectedPayment *big.Int, expectedResultCode vmcommon.ReturnCode, expectedArguments [][]byte)
CheckSavedCallBackData -
func CreateNodesAndPrepareBalances ¶
func CreateNodesAndPrepareBalances(numOfShards int) ([]*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 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 ¶ added in v1.1.49
func IssueTestTokenWithCustomGas(nodes []*integrationTests.TestProcessorNode, initialSupply int64, ticker string, gas uint64)
IssueTestTokenWithCustomGas -
func IssueTestTokenWithSpecialRoles ¶ added in v1.2.3
func IssueTestTokenWithSpecialRoles(nodes []*integrationTests.TestProcessorNode, initialSupply int64, ticker string)
IssueTestTokenWithSpecialRoles -
func PrepareFungibleTokensWithLocalBurnAndMint ¶
func PrepareFungibleTokensWithLocalBurnAndMint( t *testing.T, nodes []*integrationTests.TestProcessorNode, addressWithRoles []byte, idxProposers []int, round *uint64, nonce *uint64, ) string
PrepareFungibleTokensWithLocalBurnAndMint -
func SetRoles ¶
func SetRoles(nodes []*integrationTests.TestProcessorNode, addrForRole []byte, tokenIdentifier []byte, roles [][]byte)
SetRoles -
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.