---
# System prepended metadata

title: Mintbase Plugins

---

# Project: Mintbase Plugins 

NFT contracts (e.g. Mintbase Token Contract) resemble a database in how they structure and handle data. Some key points to consider:

- **Decentralized and Immutable**: The Mintbase contract on NEAR is decentralized and immutable, ensuring data authenticity.
- **Smart Contract Functionality**: Mintbase contracts contain code that automates processes and enforces rules.
- **Metadata Storage**: Each token has associated metadata like name, description, and image.
- **Interoperability**: Tokens on Mintbase can interact with other dApps on the NEAR blockchain.
- **Extensibility**: Developers can build upon the Mintbase contract, creating additional features or plugins.

## Token Contract as a Database (CaaD)

- **Schema**: NFT contracts define standards, much like a database schema.
- **Permissions**: Contracts determine who can mint, transfer, or burn tokens.
- **Durability**: Once an NFT is minted, its data remains unchangeable.

### Token as a Row

- **Unique identifier**: Each token has a unique ID.
- **Data Columns**: Metadata associated with an NFT acts like database columns.
- **Relationships**: NFT metadata might reference other tokens or contracts.

### Virtual Table Formation

- **Querying**: One can retrieve tokens based on metadata attributes.
- **Indexes**: Mintbase indexes all NFT-related data for faster retrieval.

### Interactivity & Extensions

- **Stored Procedures & Functions**: NFT contracts have functions that can be called for specific actions.
- **Triggers**: Some actions with an NFT might trigger other operations.

### Consistency & Integrity

- **Atomicity**: Blockchains ensure that operations are complete before adding them to the ledger.
- **Validation**: Contracts have built-in validations.

## Role-based System

### Owner

- **Ultimate Control**: Owners have the highest level of control over the contract.
- **Change Minters**: Only owners can manage minters.

### Minters

- **NFT Creation**: Minters can create new NFTs.
- **Minting Limitations**: Owners might set limitations for minters.
- **Metadata Assignment**: Minters provide metadata when minting NFTs.
- **Transfer & Manage Their NFTs**: Minters can manage the NFTs they create.

## Proxy Contracts as Plugins

![](https://hackmd.io/_uploads/ByMf6LmCn.png)

1. Draft a Proxy Contract Standard
2. Proxy Contracts interface with Mintbase Token Contracts
3. Mintbase Token Contracts act as databases

### Standard

TODO

## Case Study: Minsta

The Minsta Proxy was the first to use proxy contracts for Mintbase. It bridged Mintbase Token Contract with external dApps, enabling new functionalities for NFTs.

- **Proxy Integration**: Minsta acts as a bridge between Mintbase and external platforms.
- **Extended Functionalities**: Users can access features like integrating NFTs with VR platforms or games.
- **User Experience**: Minsta provides a user-friendly interface.
- **Safety and Security**: The core Mintbase Token Contract remains unchanged, ensuring NFT security.

The Minsta project showed the potential of proxy contracts as plugins and encouraged more developers to create their own innovations on Mintbase.

---

