package
7.0.1+incompatible
Repository: https://github.com/dydxprotocol/v4-chain.git
Documentation: pkg.go.dev

# Functions

DefaultGenesis returns the default Capability genesis state.
GetErrorFromUpdateResults generates a helpful error when UpdateSubaccounts or CanUpdateSubaccounts returns one or more failed updates.
NewCreateSettledFundingEvent constructs a new funding sdk.Event.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author

# Constants

Subaccounts module event types.
Subaccounts module event types.
Subaccounts module event types.
Subaccounts module event types.
No description provided by the author
No description provided by the author
Suffix for the store key to the last block a negative TNC subaccount was seen in state for the cross collateral pool.
No description provided by the author
Panic strings.
Panic strings.
Panic strings.
Panic strings.
Subaccounts module event types.
No description provided by the author
No description provided by the author
0 ..
ModuleName defines the module name.
NegativeTncSubaccountForCollateralPoolSeenAtBlockKeyPrefix is the prefix for the store key that stores the last block a negative TNC subaccount was seen in state for a specific collateral pool.
No description provided by the author
No description provided by the author
State.
Safety Heap.
State.
State.
No description provided by the author
No description provided by the author
StoreKey defines the primary module store key.
SubaccountKeyPrefix is the prefix to retrieve all Subaccounts.
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
No description provided by the author
No description provided by the author
WITHDRAWAL_AND_TRANSFER_DELAY_AFTER_NEGATIVE_TNC_SUBACCOUNT_SEEN_BLOCKS defines the number of blocks withdrawals and transfers will be blocked if a negative TNC subaccount is seen in state, starting from the last block a negative TNC subaccount was seen.
No description provided by the author

# Variables

No description provided by the author
x/subaccounts module sentinel errors.
300 - 399: asset position related.
x/subaccounts module sentinel errors.
500 - 599: transfer related.
x/subaccounts module sentinel errors.
x/subaccounts module sentinel errors.
x/subaccounts module sentinel errors.
x/subaccounts module sentinel errors.
x/subaccounts module sentinel errors.
0 - 99: generic.
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
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
No description provided by the author
No description provided by the author
200 - 299: subaccount id related.
x/subaccounts module sentinel errors.
x/subaccounts module sentinel errors.
100 - 199: update related.
400 - 499: perpetual position related.
x/subaccounts module sentinel errors.
x/subaccounts module sentinel errors.
600 - 699: safety heap related.
x/subaccounts module sentinel errors.
x/subaccounts module sentinel errors.
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
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AssetPositions define an account’s positions of an `Asset`.
No description provided by the author
GenesisState defines the subaccounts module's genesis state.
Represents a state transition for an isolated perpetual position in a subaccount.
PerpetualPositions are an account’s positions of a `Perpetual`.
No description provided by the author
No description provided by the author
QueryAllSubaccountRequest is request type for the Query RPC method.
QueryCollateralPoolAddressRequest is the request type for fetching the account address of the collateral pool associated with the passed in perpetual id.
QueryCollateralPoolAddressResponse is a response type for fetching the account address of the collateral pool associated with the passed in perpetual id.
QueryGetSubaccountRequest is request type for the Query RPC method.
QueryGetWithdrawalAndTransfersBlockedInfoRequest is a request type for fetching information about whether withdrawals and transfers are blocked for a collateral pool associated with the passed in perpetual id.
QueryGetWithdrawalAndTransfersBlockedInfoRequest is a response type for fetching information about whether withdrawals and transfers are blocked.
QuerySubaccountAllResponse is response type for the Query RPC method.
QuerySubaccountResponse is response type for the Query RPC method.
SettledUpdate is used internally in the subaccounts keeper to to specify changes to one or more `Subaccounts` (for example the result of a trade, transfer, etc).
StreamSubaccountUpdate provides information on a subaccount update.
Subaccount defines a single sub-account for a given address.
SubaccountAssetPosition provides information on a subaccount's updated asset positions.
SubaccountId defines a unique identifier for a Subaccount.
SubaccountPerpetualPosition provides information on a subaccount's updated perpetual positions.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
Update is used by the subaccounts keeper to allow other modules to specify changes to one or more `Subaccounts` (for example the result of a trade, transfer, etc).

# Interfaces

No description provided by the author
BankKeeper defines the expected interface needed to retrieve account balances.
No description provided by the author
No description provided by the author
PositionSize is an interface for expressing the size of a position.
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
No description provided by the author

# Type aliases

BaseQuantums is used to represent an amount in base quantums.
No description provided by the author
No description provided by the author
SortedSubaccountIds is type alias for `[]SubaccountId` which supports deterministic sorting.
No description provided by the author
No description provided by the author