dcdt

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 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

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

Types

type ForwarderRawSavedPaymentInfo

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