esdt

package
v1.1.66 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAddressHasESDTTokens

func CheckAddressHasESDTTokens(
	t *testing.T,
	address []byte,
	nodes []*integrationTests.TestProcessorNode,
	tokenName string,
	value int64,
)

CheckAddressHasESDTTokens -

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 GetESDTDataFromKey

func GetESDTDataFromKey(userAcnt state.UserAccountHandler, key []byte) (*esdt.ESDigitalToken, error)

GetESDTDataFromKey -

func GetESDTTokenData

func GetESDTTokenData(
	t *testing.T,
	address []byte,
	nodes []*integrationTests.TestProcessorNode,
	tokenName string,
) *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 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.

Jump to

Keyboard shortcuts

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