Versions in this module Expand all Collapse all v0 v0.0.1 Nov 7, 2024 Changes in this version + var AsyncChildData = " there" + var AsyncChildFunction = "transferToThirdParty" + var AsyncGroupsConfig = [][]string + var ExpectedClosure = []byte + var TestStorageValue1 = []byte + var TestStorageValue2 = []byte + var TestStorageValue3 = []byte + var TestStorageValue4 = []byte + var TransferAndExecuteFuncName = "transferAndExecute" + var TransferAndExecuteReturnData = []byte + func BackTransfer_ChildCallback(instanceMock *mock.InstanceMock, config interface{}) + func BackTransfer_ChildMakesAsync(instanceMock *mock.InstanceMock, config interface{}) + func BackTransfer_ParentCallsChild(instanceMock *mock.InstanceMock, config interface{}) + func CallBackMultiChildMock(instanceMock *mock.InstanceMock, config interface{}) + func CallBackMultiContractParentMock(instanceMock *mock.InstanceMock, config interface{}) + func CallBackMultiGroupsMock(instanceMock *mock.InstanceMock, config interface{}) + func CallBackParentBuiltinMock(instanceMock *mock.InstanceMock, config interface{}) + func CallBackParentMock(instanceMock *mock.InstanceMock, config interface{}) + func CallBackRecursiveChildMock(instanceMock *mock.InstanceMock, config interface{}) + func CallBackRecursiveParentMock(instanceMock *mock.InstanceMock, config interface{}) + func CallbackMockMethodThatCouldFail(instanceMock *mock.InstanceMock, config interface{}) + func CallbackWithOnSameContext(instanceMock *mock.InstanceMock, _ interface{}) + func ChildAsyncMultiGroupsMock(instanceMock *mock.InstanceMock, config interface{}) + func ChildSetStorageMock(instanceMock *mock.InstanceMock, _ interface{}) + func DCDTTransferToParentAndNewAsyncFromCallbackMock(instanceMock *mock.InstanceMock, config interface{}) + func DCDTTransferToParentCallbackWillFail(instanceMock *mock.InstanceMock, config interface{}) + func DCDTTransferToParentMock(instanceMock *mock.InstanceMock, config interface{}) + func DCDTTransferToParentMockNoReturnData(instanceMock *mock.InstanceMock, config interface{}) + func DCDTTransferToParentWrongDCDTArgsNumberMock(instanceMock *mock.InstanceMock, config interface{}) + func DeployContractFromSourceMock(instanceMock *mock.InstanceMock, _ interface{}) + func ExecDCDTTransferAndAsyncCallChild(instanceMock *mock.InstanceMock, config interface{}) + func ExecDCDTTransferAndCallChild(instanceMock *mock.InstanceMock, config interface{}) + func ExecDCDTTransferWithAPICall(instanceMock *mock.InstanceMock, config interface{}) + func ExecOnDestCtxParentMock(instanceMock *mock.InstanceMock, config interface{}) + func ExecOnDestCtxSingleCallParentMock(instanceMock *mock.InstanceMock, config interface{}) + func ExecOnSameCtxParentMock(instanceMock *mock.InstanceMock, config interface{}) + func ExecuteOnDestContextInMockContracts(host vmhost.VMHost, input *vmcommon.ContractCallInput) int32 + func ExecuteOnSameContextInMockContracts(host vmhost.VMHost, input *vmcommon.ContractCallInput) int32 + func ExecutedOnSameContextByCallback(instanceMock *mock.InstanceMock, _ interface{}) + func FailChildAndBurnDCDTMock(instanceMock *mock.InstanceMock, _ interface{}) + func FailChildMock(instanceMock *mock.InstanceMock, _ interface{}) + func ForwardAsyncCallMultiChildMock(instanceMock *mock.InstanceMock, config interface{}) + func ForwardAsyncCallMultiContractParentMock(instanceMock *mock.InstanceMock, config interface{}) + func ForwardAsyncCallMultiGroupsMock(instanceMock *mock.InstanceMock, config interface{}) + func ForwardAsyncCallParentBuiltinMock(instanceMock *mock.InstanceMock, config interface{}) + func ForwardAsyncCallRecursiveParentMock(instanceMock *mock.InstanceMock, config interface{}) + func GasMismatchAsyncCallChildMock(instanceMock *mock.InstanceMock, _ interface{}) + func GasMismatchAsyncCallParentMock(instanceMock *mock.InstanceMock, _ interface{}) + func GasMismatchCallBackParentMock(instanceMock *mock.InstanceMock, _ interface{}) + func GetChildAddressForTransfer(transfer int) []byte + func InitFunctionMock(instanceMock *mock.InstanceMock, config interface{}) + func InitMockMethod(instanceMock *mock.InstanceMock, config interface{}) + func LoadStore(instanceMock *mock.InstanceMock, _ interface{}) + func LoadStoreFromAddress(instanceMock *mock.InstanceMock, _ interface{}) + func LocalCallAnotherContract(exposedFunctionName string, recipientAddress []byte, functionToCall string) func(instanceMock *mock.InstanceMock, config interface{}) + func ParentSetStorageMock(instanceMock *mock.InstanceMock, config interface{}) + func PerformAsyncCallParentMock(instanceMock *mock.InstanceMock, config interface{}) + func RecursiveAsyncCallRecursiveChildMock(instanceMock *mock.InstanceMock, config interface{}) + func RegisterAsyncCallToChild(host vmhost.VMHost, config interface{}, arguments [][]byte) error + func ReportOriginalCaller(instanceMock *mock.InstanceMock, config interface{}) + func SetStore(instanceMock *mock.InstanceMock, _ interface{}) + func SimpleCallbackMock(instanceMock *mock.InstanceMock, config interface{}) + func SimpleChildSetStorageMock(instanceMock *mock.InstanceMock, config interface{}) + func TransferAndExecute(instanceMock *mock.InstanceMock, config interface{}) + func TransferREWAToParent(instanceMock *mock.InstanceMock, config interface{}) + func TransferToAsyncParentOnCallbackChildMock(instanceMock *mock.InstanceMock, config interface{}) + func TransferToThirdPartyAsyncChildMock(instanceMock *mock.InstanceMock, config interface{}) + func UpdateContractFromSourceMock(instanceMock *mock.InstanceMock, _ interface{}) + func UpgradeFunctionMock(instanceMock *mock.InstanceMock, config interface{}) + func UpgradeMockMethod(instanceMock *mock.InstanceMock, config interface{}) + func WasteGasChildMock(instanceMock *mock.InstanceMock, config interface{}) + func WasteGasParentMock(instanceMock *mock.InstanceMock, config interface{}) + type AsyncBuiltInCallTestConfig struct + TransferFromChildToParent int64 + type AsyncCallBaseTestConfig struct + ChildBalance int64 + GasLockCost uint64 + GasProvided uint64 + GasUsedByCallback uint64 + GasUsedByChild uint64 + GasUsedByParent uint64 + ParentBalance int64 + TransferFromParentToChild int64 + type AsyncCallMultiChildTestConfig struct + ChildCalls int + type AsyncCallRecursiveTestConfig struct + RecursiveChildCalls int + type AsyncCallTestConfig struct + CallbackDCDTTokensToTransfer uint64 + DCDTTokensToTransfer uint64 + TransferToThirdParty int64 + TransferToVault int64 + func (config AsyncCallTestConfig) GetGasUsedByChild() uint64 + type CallbackTestConfig interface + CallbackFails func() bool + type DirectCallGasTestConfig struct + ChildBalance int64 + DCDTTokensToTransfer uint64 + GasProvided uint64 + GasProvidedToChild uint64 + GasUsedByChild uint64 + GasUsedByParent uint64 + ParentBalance int64 + func (config DirectCallGasTestConfig) GetGasUsedByChild() uint64 + type GasTestConfig interface + GetGasUsedByChild func() uint64 + type TransferAndExecuteTestConfig struct + GasTransferToChild uint64 + TransferFromParentToChild int64