Versions in this module Expand all Collapse all v0 v0.0.2 Sep 3, 2024 v0.0.1 Sep 2, 2024 Changes in this version + const StepNameCheckState + const StepNameDumpState + const StepNameExternalSteps + const StepNameScCall + const StepNameScDeploy + const StepNameScQuery + const StepNameSetState + const StepNameTransfer + const StepNameValidatorReward + func JSONBytesFromStringValues(jbs []JSONBytesFromString) [][]byte + func JSONBytesFromTreeValues(jbs []JSONBytesFromTree) [][]byte + func ResultAsString(result [][]byte) string + func ResultEqual(expected JSONBytesFromString, actual []byte) bool + type Account struct + Address JSONBytesFromString + AsyncCallData string + Balance JSONBigInt + Code JSONBytesFromString + Comment string + DCDTData []*DCDTData + IsSmartContract bool + Nonce JSONUint64 + Owner JSONBytesFromString + Shard JSONUint64 + Storage []*StorageKeyValuePair + Username JSONBytesFromString + func FindAccount(accounts []*Account, address []byte) *Account + type Block struct + BlockHeader *BlockHeader + Results []*TransactionResult + Transactions []*Transaction + type BlockHeader struct + Beneficiary JSONBigInt + Difficulty JSONBigInt + GasLimit JSONBigInt + Number JSONBigInt + Timestamp JSONUint64 + type BlockInfo struct + BlockEpoch JSONUint64 + BlockNonce JSONUint64 + BlockRandomSeed *JSONBytesFromTree + BlockRound JSONUint64 + BlockTimestamp JSONUint64 + type CheckAccount struct + Address JSONBytesFromString + AsyncCallData JSONCheckBytes + Balance JSONCheckBigInt + CheckDCDTData []*CheckDCDTData + CheckStorage []*StorageKeyValuePair + Code JSONCheckBytes + Comment string + IgnoreDCDT bool + IgnoreStorage bool + Nonce JSONCheckUint64 + Owner JSONCheckBytes + Username JSONCheckBytes + func FindCheckAccount(accounts []*CheckAccount, address []byte) *CheckAccount + type CheckAccounts struct + Accounts []*CheckAccount + OtherAccountsAllowed bool + type CheckDCDTData struct + Frozen JSONCheckUint64 + Instances []*CheckDCDTInstance + LastNonce JSONCheckUint64 + Roles []string + TokenIdentifier JSONBytesFromString + type CheckDCDTInstance struct + Balance JSONCheckBigInt + Nonce JSONCheckUint64 + Uri JSONCheckBytes + type CheckStateStep struct + CheckAccounts *CheckAccounts + Comment string + func (*CheckStateStep) StepTypeName() string + type DCDTData struct + Frozen JSONUint64 + Instances []*DCDTInstance + LastNonce JSONUint64 + Roles []string + TokenIdentifier JSONBytesFromString + type DCDTInstance struct + Balance JSONBigInt + Nonce JSONUint64 + Uri JSONBytesFromTree + type DCDTTxData struct + Nonce JSONUint64 + TokenIdentifier JSONBytesFromString + Value JSONBigInt + type DumpStateStep struct + Comment string + func (*DumpStateStep) StepTypeName() string + type ExternalStepsStep struct + Comment string + Path string + func (*ExternalStepsStep) StepTypeName() string + type GasSchedule int + const GasScheduleDefault + const GasScheduleDummy + const GasScheduleV1 + const GasScheduleV2 + const GasScheduleV3 + type JSONBigInt struct + Original string + Value *big.Int + func JSONBigIntZero() JSONBigInt + type JSONBytesFromString struct + Original string + Value []byte + func NewJSONBytesFromString(value []byte, originalStr string) JSONBytesFromString + type JSONBytesFromTree struct + Original oj.OJsonObject + Value []byte + func (jb JSONBytesFromTree) OriginalEmpty() bool + type JSONCheckBigInt struct + IsStar bool + Original string + Unspecified bool + Value *big.Int + func JSONCheckBigIntUnspecified() JSONCheckBigInt + func (jcbi JSONCheckBigInt) Check(other *big.Int) bool + func (jcbi JSONCheckBigInt) IsUnspecified() bool + type JSONCheckBytes struct + IsStar bool + Original oj.OJsonObject + Unspecified bool + Value []byte + func JSONCheckBytesExplicitStar() JSONCheckBytes + func JSONCheckBytesReconstructed(value []byte) JSONCheckBytes + func JSONCheckBytesUnspecified() JSONCheckBytes + func (jcbytes JSONCheckBytes) Check(other []byte) bool + func (jcbytes JSONCheckBytes) IsUnspecified() bool + func (jcbytes JSONCheckBytes) OriginalEmpty() bool + type JSONCheckUint64 struct + IsStar bool + Original string + Unspecified bool + Value uint64 + func JSONCheckUint64Unspecified() JSONCheckUint64 + func (jcu JSONCheckUint64) Check(other uint64) bool + func (jcu JSONCheckUint64) CheckBool(other bool) bool + func (jcu JSONCheckUint64) IsUnspecified() bool + type JSONUint64 struct + Original string + Value uint64 + type LogEntry struct + Address JSONCheckBytes + Data JSONCheckBytes + Identifier JSONCheckBytes + Topics []JSONCheckBytes + type NewAddressMock struct + CreatorAddress JSONBytesFromString + CreatorNonce JSONUint64 + NewAddress JSONBytesFromString + type Scenario struct + CheckGas bool + Comment string + GasSchedule GasSchedule + Name string + Steps []Step + func ConvertTestToScenario(top []*Test) (*Scenario, error) + type SetStateStep struct + Accounts []*Account + BlockHashes []JSONBytesFromString + Comment string + CurrentBlockInfo *BlockInfo + NewAddressMocks []*NewAddressMock + PreviousBlockInfo *BlockInfo + func (*SetStateStep) StepTypeName() string + type Step interface + StepTypeName func() string + type StorageKeyValuePair struct + Key JSONBytesFromString + Value JSONBytesFromTree + type Test struct + BlockHashes []JSONBytesFromString + Blocks []*Block + CheckGas bool + Network string + PostState *CheckAccounts + Pre []*Account + TestName string + type Transaction struct + Arguments []JSONBytesFromTree + Code JSONBytesFromString + DCDTValue *DCDTTxData + From JSONBytesFromString + Function string + GasLimit JSONUint64 + GasPrice JSONUint64 + Nonce JSONUint64 + To JSONBytesFromString + Type TransactionType + Value JSONBigInt + type TransactionResult struct + Gas JSONCheckUint64 + LogHash string + Logs []*LogEntry + LogsStar bool + LogsUnspecified bool + Message JSONCheckBytes + Out []JSONCheckBytes + Refund JSONCheckBigInt + Status JSONCheckBigInt + type TransactionType int + const ScCall + const ScDeploy + const ScQuery + const Transfer + const ValidatorReward + func (tt TransactionType) HasDCDT() bool + func (tt TransactionType) HasFunction() bool + func (tt TransactionType) HasGas() bool + func (tt TransactionType) HasReceiver() bool + func (tt TransactionType) HasSender() bool + func (tt TransactionType) HasValue() bool + func (tt TransactionType) IsSmartContractTx() bool + type TxStep struct + Comment string + ExpectedResult *TransactionResult + Tx *Transaction + TxIdent string + func (t *TxStep) StepTypeName() string