Versions in this module Expand all Collapse all v1 v1.999.0 Nov 17, 2022 Changes in this version + const DummyCodeMetadataHex + const VMTypeHex + var DNSAddresses = make(map[string]struct{}) + func CreateDeployTxData(scCode string) string + func CreateDeployTxDataNonPayable(scCode string) string + func CreateDeployTxDataWithCodeMetadata(scCode string, codeMetadataHex string) string + func FormatHexNumber(number uint64) string + func GetSCCode(fileName string) string + func RequireAlmostEquals(t *testing.T, expected Balance, actual Balance) + type Balance struct + Value *big.Int + func NewBalance(n int) Balance + func NewBalanceBig(bi *big.Int) Balance + func (b Balance) Times(n int) Balance + func (b Balance) ToHex() string + type RewardsProcessor interface + ProcessRewardTransaction func(rTx *rewardTx.RewardTx) error + type TestContext struct + Accounts *state.AccountsDB + Alice testParticipant + ArwenChangeLocker common.Locker + BlockchainHook *hooks.BlockChainHookImpl + Bob testParticipant + Carol testParticipant + EconomicsFee process.FeeHandler + EpochNotifier process.EpochNotifier + GasLimit uint64 + GasSchedule map[string]map[string]uint64 + LastConsumedFee uint64 + LastSCResults []*smartContractResult.SmartContractResult + LastTxHash []byte + Owner testParticipant + Participants []*testParticipant + QueryService external.SCQueryService + RewardsProcessor RewardsProcessor + Round uint64 + SCRForwarder *mock.IntermediateTransactionHandlerMock + ScAddress []byte + ScCodeMetadata vmcommon.CodeMetadata + ScProcessor *smartContract.TestScProcessor + T *testing.T + TxProcessor process.TransactionProcessor + UnsignexTxHandler process.TransactionFeeHandler + VMContainer process.VirtualMachinesContainer + func SetupTestContext(t *testing.T) *TestContext + func SetupTestContextWithGasSchedulePath(t *testing.T, gasScheduleConfigPath string) *TestContext + func (context *TestContext) Close() + func (context *TestContext) DeploySC(wasmPath string, parametersString string) error + func (context *TestContext) ExecuteSC(sender *testParticipant, txData string) error + func (context *TestContext) ExecuteSCWithValue(sender *testParticipant, txData string, value *big.Int) error + func (context *TestContext) GetAccountBalance(participant *testParticipant) *big.Int + func (context *TestContext) GetAccountBalanceDelta(participant *testParticipant) *big.Int + func (context *TestContext) GetCompositeTestError() error + func (context *TestContext) GoToEpoch(epoch int) + func (context *TestContext) InitAdditionalParticipants(num int) + func (context *TestContext) QuerySCBigInt(function string, args [][]byte) *big.Int + func (context *TestContext) QuerySCBytes(function string, args [][]byte) []byte + func (context *TestContext) QuerySCInt(function string, args [][]byte) uint64 + func (context *TestContext) QuerySCString(function string, args [][]byte) string + func (context *TestContext) TakeAccountBalanceSnapshot(participant *testParticipant) + func (context *TestContext) UpdateLastSCResults() error + func (context *TestContext) UpgradeSC(wasmPath string, parametersString string) error