# Functions
No description provided by the author
CheckErrorf checks whether - error type is wrapped inside the given error - error match given message string combined with error type.
CreateTestInput creates a new test environment for unit tests.
GenTx generates a signed mock transaction.
No description provided by the author
NewGasMeterWrapper to wrap gas meters for testing purposes.
NewTestApp creates instance of our app using in test.
ParseTime is a helper function to parse from number to time.Time with UTC locale.
SetupWithEmptyStore setup a TestingApp instance with empty DB.
SetupWithGenesisValSet initializes a new TestingApp with a validator set and genesis accounts that also act as delegators.
SignAndDeliver signs and delivers a transaction.
An oracle script to test heavy computation.
An oracle script to test large calldata
PREPARE: Ask external data with calldata "b"*time EXECUTE: Return with data "b"*time.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
DefaultConsensusParams defines the default Tendermint consensus params used in TestingApp.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
nolint.
A simple Owasm script with the following specification:
PREPARE: CALL ask_external_data with EID 1 DID 1 CALLDATA "beeb" CALL ask_external_data with EID 2 DID 2 CALLDATA "beeb" CALL ask_external_data with EID 3 DID 3 CALLDATA "beeb" EXECUTE: CALL set_return_date with RETDATE "beeb".
A bad Owasm script with the following specification:
PREPARE: CALL set_return_data with RETDATA "beeb" -- Not allowed during prepare EXECUTE: DO NOTHING.
A silly oracle script, primarily to test that you must make at least one raw request:
PREPARE: DO NOTHING EXECUTE: DO NOTHING.
An oracle script for testing complex interactions.
No description provided by the author
An extra Owasm code to test creating or editing oracle scripts.
No description provided by the author
Another extra Owasm code to test creating or editing oracle scripts.
No description provided by the author
# Structs
Account is a data structure to store key of test account.
EmptyAppOptions is a stub implementing AppOptions.
GasMeterWrapper wrap gas meter for testing purpose.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author