Note that this page has not been updated to reflect the current state of Beanstalk, but is left here as a reference.
The Pause Facet handles the Pausing and Unpausing of Beanstalk.
Pause Beanstalk, which makes it such that the gm
function cannot be successfully called. Only callable by the owner of Beanstalk.
Unpause Beanstalk, which allows the gm
function to be successfully called at the top of the 2nd hour. The TWAP oracle and Season timer are reset as well.
None.
Emitted when Beanstalk is Paused.
Emitted when Beanstalk is Unpaused.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
timestamp
uint256
Timestamp of the current block when Beanstalk is Paused.
timestamp
uint256
Timestamp of the current block when Beanstalk is Unpaused.
timePassed
uint256
How much time passed while Beanstalk was Paused.
Note that this page has not been updated to reflect the current state of Beanstalk, but is left here as a reference.
The Diamond module contains various functions that require ownership of Beanstalk to execute in Beanstalk. This includes Pausing and Unpausing Beanstalk and upgrading Beanstalk via Diamond Cuts.
See EIP-2535 Diamond to read more about Beanstalk's upgradable proxy implementation.
The Diamond consists of 4 facets:
Note that this page has not been updated to reflect the current state of Beanstalk, but is left here as a reference.
The Diamond Cut Facet is used by the owner to upgrade Beanstalk.
Add, replace, and/or remove any number of functions and optionally execute a function with delegatecall
. Can only be called by the owner of Beanstalk.
Parameter | Type | Description |
---|---|---|
None.
None.
Note that this page has not been updated to reflect the current state of Beanstalk, but is left here as a reference.
The Ownership Facet handles the ownership of Beanstalk.
Transfers ownership of Beanstalk to a new address. Can only be called by the owner of Beanstalk.
Parameter | Type | Description |
---|---|---|
Callable by candidate for ownership after a successful transferOwnership
function call.
Returns the address of the owner of Beanstalk.
Returns the owner candidate of Beanstalk.
Emitted when ownership of Beanstalk is transferred.
Note that this page has not been updated to reflect the current state of Beanstalk, but is left here as a reference.
The Diamond Loupe Facet allows anyone to see the available functions within Beanstalk.
None.
Returns facet info for all facets of Beanstalk
Return Value | Type | Description |
---|
Returns all the function selectors provided by a facet.
Get all the facet addresses used by the Beanstalk Diamond.
Gets the facet that supports the given selector.
None.
Return Value | Type | Description |
---|---|---|
Return Value | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|
Return Value | Type | Description |
---|
Return Value | Type | Description |
---|
Parameter | Type | Description |
---|
Return Value | Type | Description |
---|
Returns if a contract implements an interface. Implements .
Parameter | Type | Description |
---|
Return Type | Description |
---|
_diamondCut
FacetCut[]
Contains the facet addresses and function selectors.
_init
address
The address of the contract or facet to execute _calldata
.
_calldata
bytes
A function call, including function selector and arguments (_calldata
is executed with delegatecall
on _init
).
_newOwner
address
The address to transfer ownership to.
owner_
address
The address of the owner of Beanstalk.
ownerCandidate_
address
The owner candidate of Beanstalk.
previousOwner
address
The previous owner of Beanstalk.
newOwner
address
The new owner of Beanstalk.
|
| Facet to get selectors for. |
|
| Selectors on |
|
| All facet addresses used by Beanstalk. |
|
| Selector to get the corresponding facet for. |
|
| Facet that has |
|
| The interface ID, as specified in ERC-165. |
| True if the contract implements |
|
| Array of facet info. |