package
7.0.1+incompatible
Repository: https://github.com/dydxprotocol/v4-chain.git
Documentation: pkg.go.dev
# Functions
DefaultGenesis returns a genesis doc using configuration from the local net with a genesis time equivalent to unix epoch + 1 nanosecond.
DefaultTestApp creates an instance of app.App with default settings, suitable for unit testing.
Given genesis time, target block time and block time duration, return the estimated height at which the target block time is reached.
MustGetClobPairsFromGenesis unmarshals the initial genesis state and returns a map from clob pair id to clob pair.
MustMakeCheckTx creates a signed RequestCheckTx for the provided message.
MustMakeCheckTxsWithClobMsg creates one signed RequestCheckTx for each msg passed in.
MustMakeCheckTxsWithSdkMsg creates one signed RequestCheckTx for each msg passed in.
MustMakeCheckTxWithPrivKeySupplier creates a signed RequestCheckTx for the provided message.
Subsitute quantums and subticks with value converted from human readable price and amount.
MustScaleOrder scales clobtypes.Order and clobtypes.MsgPlaceorder based upon the clob information provided.
NewTestAppBuilder returns a new builder for TestApp.
SubmitAndTallyProposal simulates the following: - A proposal with the given messages is submitted.
UpdateGenesisDocWithAppStateForModule updates the supplied genesis doc using the provided function.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
# Structs
AdvanceToBlockOptions is a struct containing options for AdvanceToBlock.* functions.
BlockAdvancement holds orders and matches to be placed in a block.
No description provided by the author
MustMakeCheckTxOptions is a struct containing options for MustMakeCheckTx.* functions.
A TestApp used to executed ABCI++ flows.
A builder containing fields necessary for the TestApp.
# Interfaces
GenesisStates is a type constraint for all well known genesis state types.
# Type aliases
Used to instantiate new instances of the App.
ExecuteCheckTxs is invoked once per block.
Used to instantiate new instances of the genesis doc.
TxIndexesToErrors allows us to specify the expected error (if any) for each tx in the block proposal.
ValidateFinalizeBlockFn is a function that validates the response from finalizing the block.
ValidateResponsePrepareProposal is a function that validates the response from the PrepareProposalHandler.
ValidateResponseProcessProposal is a function that validates the response from the ProcessProposalHandler.