esdt

package
v1.7.10 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

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)

CheckForwarderRawSavedCallbackArgs -

func CheckForwarderRawSavedCallbackPayments added in v1.6.0

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

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 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)

IssueTestTokenWithIssuerAccount -

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

Types

type ForwarderRawSavedPaymentInfo added in v1.6.0

type ForwarderRawSavedPaymentInfo struct {
	TokenId string
	Nonce   uint64
	Payment *big.Int
}

ForwarderRawSavedPaymentInfo contains token data to be checked in the forwarder-raw contract.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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