Documentation ¶
Index ¶
- func CheckESDTBalance(t *testing.T, testContext *vm.VMTestContext, addr []byte, ...)
- func CheckOwnerAddr(t *testing.T, testContext *vm.VMTestContext, scAddr []byte, owner []byte)
- func CleanAccumulatedIntermediateTransactions(t *testing.T, testContext *vm.VMTestContext)
- func CreateAccountWithESDTBalance(t *testing.T, accnts state.AccountsAdapter, pubKey []byte, egldValue *big.Int, ...)
- func CreateAccountWithESDTBalanceAndRoles(t *testing.T, accnts state.AccountsAdapter, pubKey []byte, egldValue *big.Int, ...)
- func CreateESDTLocalBurnTx(nonce uint64, sndAddr, rcvAddr []byte, tokenIdentifier []byte, ...) *transaction.Transaction
- func CreateESDTLocalMintTx(nonce uint64, sndAddr, rcvAddr []byte, tokenIdentifier []byte, ...) *transaction.Transaction
- func CreateESDTTransferTx(nonce uint64, sndAddr, rcvAddr []byte, tokenIdentifier []byte, ...) *transaction.Transaction
- func DoDeploy(t *testing.T, testContext *vm.VMTestContext, pathToContract string) (scAddr []byte, owner []byte)
- func DoDeployDNS(t *testing.T, testContext *vm.VMTestContext, pathToContract string) (scAddr []byte, owner []byte)
- func DoDeploySecond(t *testing.T, testContext *vm.VMTestContext, pathToContract string, ...) (scAddr []byte)
- func GenerateUserNameForMyDNSContract() []byte
- func PrepareRelayerTxData(innerTx *transaction.Transaction) []byte
- func ProcessSCRResult(t *testing.T, testContext *vm.VMTestContext, tx data.TransactionHandler, ...)
- func TestAccount(t *testing.T, accnts state.AccountsAdapter, senderAddressBytes []byte, ...) *big.Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckESDTBalance ¶ added in v1.1.22
func CheckESDTBalance(t *testing.T, testContext *vm.VMTestContext, addr []byte, tokenIdentifier []byte, expectedBalance *big.Int)
CheckESDTBalance -
func CheckOwnerAddr ¶
CheckOwnerAddr -
func CleanAccumulatedIntermediateTransactions ¶
func CleanAccumulatedIntermediateTransactions(t *testing.T, testContext *vm.VMTestContext)
CleanAccumulatedIntermediateTransactions -
func CreateAccountWithESDTBalance ¶ added in v1.1.22
func CreateAccountWithESDTBalance( t *testing.T, accnts state.AccountsAdapter, pubKey []byte, egldValue *big.Int, tokenIdentifier []byte, esdtValue *big.Int, )
CreateAccountWithESDTBalance -
func CreateAccountWithESDTBalanceAndRoles ¶ added in v1.1.39
func CreateAccountWithESDTBalanceAndRoles( t *testing.T, accnts state.AccountsAdapter, pubKey []byte, egldValue *big.Int, tokenIdentifier []byte, esdtValue *big.Int, roles [][]byte, )
CreateAccountWithESDTBalanceAndRoles -
func CreateESDTLocalBurnTx ¶ added in v1.1.39
func CreateESDTLocalBurnTx(nonce uint64, sndAddr, rcvAddr []byte, tokenIdentifier []byte, esdtValue *big.Int, gasPrice, gasLimit uint64) *transaction.Transaction
CreateESDTLocalBurnTx -
func CreateESDTLocalMintTx ¶ added in v1.1.39
func CreateESDTLocalMintTx(nonce uint64, sndAddr, rcvAddr []byte, tokenIdentifier []byte, esdtValue *big.Int, gasPrice, gasLimit uint64) *transaction.Transaction
CreateESDTLocalMintTx -
func CreateESDTTransferTx ¶ added in v1.1.22
func CreateESDTTransferTx(nonce uint64, sndAddr, rcvAddr []byte, tokenIdentifier []byte, esdtValue *big.Int, gasPrice, gasLimit uint64) *transaction.Transaction
CreateESDTTransferTx -
func DoDeploy ¶
func DoDeploy(t *testing.T, testContext *vm.VMTestContext, pathToContract string) (scAddr []byte, owner []byte)
DoDeploy -
func DoDeployDNS ¶ added in v1.1.22
func DoDeployDNS(t *testing.T, testContext *vm.VMTestContext, pathToContract string) (scAddr []byte, owner []byte)
DoDeployDNS -
func DoDeploySecond ¶ added in v1.1.22
func DoDeploySecond( t *testing.T, testContext *vm.VMTestContext, pathToContract string, senderAccount state.AccountHandler, gasPrice uint64, gasLimit uint64, args [][]byte, value *big.Int, ) (scAddr []byte)
DoDeploySecond -
func GenerateUserNameForMyDNSContract ¶ added in v1.1.22
func GenerateUserNameForMyDNSContract() []byte
GenerateUserNameForMyDNSContract -
func PrepareRelayerTxData ¶
func PrepareRelayerTxData(innerTx *transaction.Transaction) []byte
PrepareRelayerTxData -
func ProcessSCRResult ¶
func ProcessSCRResult( t *testing.T, testContext *vm.VMTestContext, tx data.TransactionHandler, expectedCode vmcommon.ReturnCode, expectedErr error, )
ProcessSCRResult -
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.