esdt

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

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 DeployNonPayableSmartContractFromNode added in v1.3.29

func DeployNonPayableSmartContractFromNode(
	t *testing.T,
	nodes []*integrationTests.TestProcessorNode,
	idDeployer int,
	idxProposers []int,
	nonce *uint64,
	round *uint64,
	fileName string,
) []byte

DeployNonPayableSmartContractFromNode -

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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