This repository has been archived by the owner on Jan 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ciara/ui-components
- Loading branch information
Showing
2 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: Overview | ||
slug: /pre-built-contracts/how-it-works | ||
--- | ||
|
||
# How Pre-Built Contracts Work | ||
|
||
Each contract extends the extensions that are available in our [Solidity SDK](/solidity/extensions), | ||
and all come with a standard set of features that enable fine-grained control over the contract's behavior, such as: | ||
|
||
- [Contract metadata](/dashboard/NFTs) | ||
- [Permission controls](/dashboard/permissions) | ||
- [Royalties and platform fees](/dashboard/settings) | ||
|
||
When you deploy a prebuilt contract, you are actually deploying a [**proxy contract**](/glossary/proxy-contracts); | ||
which reduces the gas cost for you by **~90%**! | ||
|
||
This works by having our smart contracts run the underlying logic, meaning you only deploy the code that is unique to _your_ contract. | ||
|
||
The proxy contract stores the state, for example; its name, and what NFTs have been minted so far. | ||
For any logic (such as how to mint an NFT), it delegates to the implementation smart contract to handle, since this logic is the same for every NFT collection. | ||
|
||
**You still maintain 100% ownership of the contract.** | ||
|
||
![Proxy Contract Flow](./2EVM/assets/delegating-calls.png) |