Submits a commit
1 of 4 commit types. These values are (0, 1, 2, 3) => (shortMint, shortBurn, longMint, longBurn)
either a number or BigNumber representing the amount of tokens
is true when the user wants to pay from balances yet to be claimed, false if they want to use the balances within their wallet to be committed if burning, or the amount of quote token to use to mint new tokens
Replaces the provider and connects the contract instance
The new provider to connect to
Updates all shadow pool balances. Calls {@linkcode Committer.fetchShadowPool} for each of the commit types. As such this will also set the internal state of the Class
all refetched shadow pool balances
Private initialisation function called in Committer.Create
Replacement constructor pattern to support async initialisations
a Promise containing an initialised Committer class ready to be used
Creates an empty committer that can be used as a default
Generated using TypeDoc
Interface for interacting with the PoolComitter. Can be used standalone, but is always initialised within a
Pool
The constructor is private so must be instantiated withCommitter.Create