Versions in this module Expand all Collapse all v0 v0.0.2 Nov 13, 2024 v0.0.1 Nov 6, 2024 Changes in this version + const StepNameCheckState + const StepNameDumpState + const StepNameExternalSteps + const StepNameScCall + const StepNameScDeploy + const StepNameScQuery + const StepNameScUpgrade + const StepNameSetState + const StepNameTransfer + const StepNameValidatorReward + func CreateMultiTransferData(to []byte, dcdtData []*DCDTTxData, endpointName string, arguments [][]byte) []byte + func JSONBytesFromTreeValues(jbs []JSONBytesFromTree) [][]byte + type Account struct + Address JSONBytesFromString + AsyncCallData string + Balance JSONBigInt + Code JSONBytesFromString + CodeMetadata JSONBytesFromString + Comment string + DCDTData []*DCDTData + DeveloperReward JSONBigInt + IsSmartContract bool + Nonce JSONUint64 + Owner JSONBytesFromString + Shard JSONUint64 + Storage []*StorageKeyValuePair + Update bool + Username JSONBytesFromString + 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 []*CheckStorageKeyValuePair + Code JSONCheckBytes + CodeMetadata JSONCheckBytes + Comment string + DeveloperReward JSONCheckBigInt + ExplicitStorage bool + IgnoreDCDT bool + IgnoreStorage bool + MoreDCDTTokensAllowed bool + MoreStorageAllowed bool + Nonce JSONCheckUint64 + Owner JSONCheckBytes + Username JSONCheckBytes + func FindCheckAccount(accounts []*CheckAccount, address []byte) *CheckAccount + type CheckAccounts struct + Accounts []*CheckAccount + MoreAccountsAllowed bool + type CheckDCDTData struct + Frozen JSONCheckUint64 + Instances []*CheckDCDTInstance + LastNonce JSONCheckUint64 + Roles []string + TokenIdentifier JSONBytesFromString + type CheckDCDTInstance struct + Attributes JSONCheckBytes + Balance JSONCheckBigInt + Creator JSONCheckBytes + Hash JSONCheckBytes + Nonce JSONUint64 + Royalties JSONCheckUint64 + Uris JSONCheckValueList + func NewCheckDCDTInstance() *CheckDCDTInstance + type CheckStateStep struct + CheckAccounts *CheckAccounts + CheckStateIdent string + Comment string + func (*CheckStateStep) StepTypeName() string + type CheckStorageKeyValuePair struct + CheckValue JSONCheckBytes + Key JSONBytesFromString + type DCDTData struct + Frozen JSONUint64 + Instances []*DCDTInstance + LastNonce JSONUint64 + Roles []string + TokenIdentifier JSONBytesFromString + type DCDTInstance struct + Attributes JSONBytesFromTree + Balance JSONBigInt + Creator JSONBytesFromString + Hash JSONBytesFromString + Nonce JSONUint64 + Royalties JSONUint64 + Uris JSONValueList + 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 + TraceGas TraceGasStatus + func (*ExternalStepsStep) StepTypeName() string + type GasSchedule int + const GasScheduleDefault + const GasScheduleDummy + const GasScheduleV3 + const GasScheduleV4 + type JSONBigInt struct + Original string + Unspecified bool + Value *big.Int + func JSONBigIntZero() JSONBigInt + type JSONBytesFromString struct + Original string + Unspecified bool + Value []byte + func JSONBytesEmpty() JSONBytesFromString + func NewJSONBytesFromString(value []byte, originalStr string) JSONBytesFromString + type JSONBytesFromTree struct + Original oj.OJsonObject + Unspecified bool + 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 JSONCheckBytesReconstructed(value []byte, originalString string) JSONCheckBytes + func JSONCheckBytesStar() 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 JSONCheckValueList struct + IsStar bool + Unspecified bool + Values []JSONCheckBytes + func JSONCheckValueListStar() JSONCheckValueList + func JSONCheckValueListUnspecified() JSONCheckValueList + func (jcbl JSONCheckValueList) CheckList(other [][]byte) bool + func (jcbl JSONCheckValueList) IsUnspecified() bool + type JSONUint64 struct + Original string + Unspecified bool + Value uint64 + func JSONUint64Zero() JSONUint64 + func (ju *JSONUint64) OriginalEmpty() bool + type JSONValueList struct + Values []JSONBytesFromString + func (jvl JSONValueList) IsUnspecified() bool + func (jvl JSONValueList) ToValues() [][]byte + type LogEntry struct + Address JSONCheckBytes + Data JSONCheckValueList + Endpoint JSONCheckBytes + Topics JSONCheckValueList + type LogList struct + IsStar bool + IsUnspecified bool + List []*LogEntry + MoreAllowedAtEnd bool + type NewAddressMock struct + CreatorAddress JSONBytesFromString + CreatorNonce JSONUint64 + NewAddress JSONBytesFromString + type Scenario struct + CheckGas bool + Comment string + GasSchedule GasSchedule + IsNewTest bool + Name string + Steps []Step + TraceGas bool + type SetStateStep struct + Accounts []*Account + BlockHashes JSONValueList + Comment string + CurrentBlockInfo *BlockInfo + NewAddressMocks []*NewAddressMock + PreviousBlockInfo *BlockInfo + SetStateIdent string + func (*SetStateStep) StepTypeName() string + type Step interface + StepTypeName func() string + type StorageKeyValuePair struct + Key JSONBytesFromString + Value JSONBytesFromTree + type TraceGasStatus int + const FalseValue + const TrueValue + const Undefined + func (tgs TraceGasStatus) ToInt() int + type Transaction struct + Arguments []JSONBytesFromTree + Code JSONBytesFromString + CodeMetadata JSONBytesFromString + DCDTValue []*DCDTTxData + From JSONBytesFromString + Function string + GasLimit JSONUint64 + GasPrice JSONUint64 + Nonce JSONUint64 + REWAValue JSONBigInt + To JSONBytesFromString + Type TransactionType + type TransactionResult struct + Gas JSONCheckUint64 + Logs LogList + Message JSONCheckBytes + Out JSONCheckValueList + Refund JSONCheckBigInt + Status JSONCheckBigInt + type TransactionType int + const ScCall + const ScDeploy + const ScQuery + const ScUpgrade + const Transfer + const ValidatorReward + func (tt TransactionType) HasDCDT() bool + func (tt TransactionType) HasFunction() bool + func (tt TransactionType) HasGasLimit() bool + func (tt TransactionType) HasGasPrice() 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 + DisplayLogs bool + ExpectedResult *TransactionResult + Tx *Transaction + TxIdent string + func (t *TxStep) StepTypeName() string