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
  • View Functions
  • URI
  • Name
  • Symbol
  • Image URI
  • Events
  • URI
Edit on GitHub
Export as PDF
  1. Protocol
  2. Silo

Metadata Facet

PreviousApproval FacetNextMigration Facet

Last updated 6 months ago

Note that this page has not been updated to reflect the current state of Beanstalk, but is left here as a reference.

The Metadata Facet provides metadata for the ERC-1155 Silo Deposits. Deposit IDs are a uint256 that is the concatenation of the token address and the Stem.

Call Functions

None.

View Functions

function uri(uint256 depositId) external view returns (string memory);

Returns the URI for a given Deposit ID.

Parameter
Type
Description

depositId

uint256

Deposit ID to get the URI for.

Return Type
Description

string

URI of Deposit with depositId.

function name() external pure returns (string memory);

Returns the name of the collection for OpenSea compatibility.

Return Type
Description

string

Name of the OpenSea collection.

function symbol() external pure returns (string memory);

Returns the ticker of the collection for OpenSea compatibility.

Return Type
Description

string

Ticker of the OpenSea collection.

function imageURI(uint256 depositId) public view returns (string memory);

Returns the image URI for a given Deposit ID.

Parameter
Type
Description

depositId

uint256

Deposit ID to get the image URI for.

Return Type
Description

string

Image URI of Deposit with depositId.

Events

event URI(string _uri, uint256 indexed _id);

Not currently emitted.

Parameter
Type
Description

_uri

string

URI.

_id

uint256

Deposit ID.

🌾
URI
Name
Symbol
Image URI
URI