package
0.79.0-preview.4
Repository: https://github.com/vegaprotocol/vega.git
Documentation: pkg.go.dev
# Packages
Package mocks is a generated GoMock package.
# Functions
New instantiates a new collateral engine.
NewDefaultConfig creates an instance of the package specific configuration, given a pointer to a logger instance to be used for logging within the package.
# Variables
ErrAccountDoesNotExist signals that an account par of a transfer do not exists.
ErrAssetAlreadyEnabled signals the given asset has already been enabled in this engine.
No description provided by the author
ErrFeeAccountsMissing signals that a fee account is missing, which may means that the collateral engine have not been initialised properly.
ErrInsufficientFundsInAsset is returned if the party doesn't have sufficient funds to cover their order quantity.
ErrInsufficientFundsToPayFees the party do not have enough funds to pay the feeds.
ErrInvalidAssetID signals that an asset id does not exists.
No description provided by the author
ErrInvalidTransferTypeForFeeRequest an invalid transfer type was send to build a fee transfer request.
No description provided by the author
No description provided by the author
No description provided by the author
ErrNotEnoughFundsToWithdraw a party requested to withdraw more than on its general account.
ErrPartyAccountsMissing signals that the accounts for this party do not exists.
E991 YOU HAVE TOO MUCH ROPE TO HANG YOURSELF.
ErrSystemAccountsMissing signals that a system account is missing, which may means that the collateral engine have not been initialised properly.
No description provided by the author
# Interfaces
Broker send events we no longer need to generate this mock here, we can use the broker/mocks package instead.
TimeService provide the time of the vega node.