Versions in this module Expand all Collapse all v0 v0.0.1 Oct 8, 2022 Changes in this version + var InvalidBenchmarkTxPos = -1 + var ScAddressPrefix = []byte + var ScAddressPrefixLength = 10 + type ScenarioWithBenchmark struct + Accs []*TestAccount + BenchmarkTxPos int + DeployTxs []*Transaction + DeployedAccs []*TestAccount + Txs []*Transaction + func GetAccountsAndTransactionsFromBaikal(baikalTestPath string) (stateAndBenchmarkInfo ScenarioWithBenchmark, err error) + type TestAccount struct + func NewTestAccount() *TestAccount + func SetNewAccount(nonce uint64, address []byte, balance *big.Int, storage map[string][]byte, ...) *TestAccount + func (tAcc *TestAccount) GetAddress() []byte + func (tAcc *TestAccount) GetBalance() *big.Int + func (tAcc *TestAccount) GetCode() []byte + func (tAcc *TestAccount) GetNonce() uint64 + func (tAcc *TestAccount) GetOwner() []byte + func (tAcc *TestAccount) GetStorage() map[string][]byte + func (tAcc *TestAccount) WithAddress(address []byte) *TestAccount + func (tAcc *TestAccount) WithBalance(balance *big.Int) *TestAccount + func (tAcc *TestAccount) WithCode(code []byte) *TestAccount + func (tAcc *TestAccount) WithNonce(nonce uint64) *TestAccount + func (tAcc *TestAccount) WithOwner(owner []byte) *TestAccount + func (tAcc *TestAccount) WithStorage(storage map[string][]byte) *TestAccount + type Transaction struct + func CreateDeployTransaction(args [][]byte, scCodePath string, sndAddr []byte, gasLimit uint64, ...) *Transaction + func CreateTransaction(function string, args [][]byte, nonce uint64, value *big.Int, ...) *Transaction + func NewTransaction() *Transaction + func (tx *Transaction) GetCallArguments() [][]byte + func (tx *Transaction) GetCallFunction() string + func (tx *Transaction) GetCallValue() *big.Int + func (tx *Transaction) GetDeployData() []byte + func (tx *Transaction) GetGasLimitAndPrice() (uint64, uint64) + func (tx *Transaction) GetMECTTransfers() []*mj.MECTTxData + func (tx *Transaction) GetNonce() uint64 + func (tx *Transaction) GetReceiverAddress() []byte + func (tx *Transaction) GetSenderAddress() []byte + func (tx *Transaction) WithCallArguments(arguments [][]byte) *Transaction + func (tx *Transaction) WithCallFunction(functionName string) *Transaction + func (tx *Transaction) WithCallValue(value *big.Int) *Transaction + func (tx *Transaction) WithDeployData(scCodePath string, args [][]byte) *Transaction + func (tx *Transaction) WithGasLimitAndPrice(gasLimit, gasPrice uint64) *Transaction + func (tx *Transaction) WithMECTTransfers(mectTransfers []*mj.MECTTxData) *Transaction + func (tx *Transaction) WithNonce(nonce uint64) *Transaction + func (tx *Transaction) WithReceiverAddress(address []byte) *Transaction + func (tx *Transaction) WithSenderAddress(address []byte) *Transaction