Beanstalk
  • Agronomics Handbook
  • Farmers' Almanac
  • Whitepaper
  • Contract Addresses
  • 🌱Overview
    • Introduction
    • Development Ethos
    • EIP-2535 Diamond
    • App Storage
    • Internal Balances
  • 🌾Protocol
    • Overview
    • Louper
    • Sun
      • Season Facet
    • Silo
      • Silo Facet
      • BDV Facet
      • Whitelist Facet
      • Convert Facet
      • Convert Getters Facet
      • Enroot Facet
      • Approval Facet
      • Metadata Facet
      • Migration Facet
      • Legacy Claim Withdrawal Facet
    • Field
      • Field Facet
      • Fundraiser Facet
    • Barn
      • Fertilizer Facet
      • Unripe Facet
    • Market
      • Marketplace Facet
    • Farm
      • Farm Facet
      • Depot Facet
      • Token Facet
      • Token Support Facet
      • Curve Facet
    • Diamond
      • Diamond Cut Facet
      • Diamond Loupe Facet
      • Ownership Facet
      • Pause Facet
  • 📜Misc.
    • Technical Recordings
    • Upgrade History
    • FAQ
    • Terminology Discrepancies
Powered by GitBook
On this page
  • Call Functions
  • Transfer Ownership
  • Claim Ownership
  • View Functions
  • Owner
  • Owner Candidate
  • Events
  • Ownership Transferred
Edit on GitHub
Export as PDF
  1. Protocol
  2. Diamond

Ownership Facet

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.

Call Functions

Transfer Ownership

function transferOwnership(address _newOwner) external;

Transfers ownership of Beanstalk to a new address. Can only be called by the owner of Beanstalk.

Parameter
Type
Description

_newOwner

address

The address to transfer ownership to.

Claim Ownership

function claimOwnership() external;

Callable by candidate for ownership after a successful transferOwnership function call.

View Functions

Owner

function owner() external view returns (address owner_);

Returns the address of the owner of Beanstalk.

Return Value
Type
Description

owner_

address

The address of the owner of Beanstalk.

Owner Candidate

function ownerCandidate() external view returns (address ownerCandidate_);

Returns the owner candidate of Beanstalk.

Return Value
Type
Description

ownerCandidate_

address

The owner candidate of Beanstalk.

Events

Ownership Transferred

event OwnershipTransferred(
    address indexed previousOwner, 
    address indexed newOwner
);

Emitted when ownership of Beanstalk is transferred.

Parameter
Type
Description

previousOwner

address

The previous owner of Beanstalk.

newOwner

address

The new owner of Beanstalk.

PreviousDiamond Loupe FacetNextPause Facet

Last updated 8 months ago

🌾