Skip to content

Commit

Permalink
add readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjatosba committed Feb 26, 2024
1 parent 017116a commit b31402f
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 283 deletions.
12 changes: 0 additions & 12 deletions contracts/factories/minter-factory/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions contracts/factories/round-whitelist-factory/README.md

This file was deleted.

37 changes: 37 additions & 0 deletions contracts/minters/multi-mint-oem/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## Multi-Minter

Multi minter contract is a Open edition minter contract with configurable token parameters called "drop".

#### Drop

Drop is a configuration for a set of tokens. It includes the following parameters:

- `token_details`: Token details such as name, symbol, description, and preview_uri.
- `price`: The price of the token.
- `start_time`: The start time of the trading.
- `end_time`: The end time of the trading.
- `num_tokens`: The maximum supply of the token.
- `per_address_limit` : The maximum number of tokens that can be minted by a single address.

#### Instantiate

Similar with the Minter contract, the creator should send Collection details along with trading information such as price, denomination, and trading start time. Factory contract will create a new MultiMinter contract and initialize it with the given parameters. Upon creation, First drop will be created with the given parameters.

### NewDrop

- This function allows the creator to create a new drop with the given parameters. The creator can create multiple drops with different parameters. Active drop will be changed to the new drop. But the previous drop will be still active for minting.
- `token_details`: Token details such as name, symbol, description, and preview_uri.
- `price`: The price of the token.
- `start_time`: The start time of the trading.
- `end_time`: The end time of the trading.
- `num_tokens`: The maximum supply of the token.
- `per_address_limit` : The maximum number of tokens that can be minted by a single address.

### Mint

- There are two types of minting: `Mint{}` and `AdminMint{}`
- `Mint{}`: This option is for users who want to own the NFT, and they need to pay the active price at that time.
- `drop_id`: The id of the drop to mint. OPTIONAL. If not provided, it will mint the active drop.
- `AdminMint{}`: As the name suggests, this option is specifically for admin to mint a token. Admins have the ability to determine the recipient. Admins are not subject to address limits or private mint checks, and this action does not require a payment.
- `drop_id`: The id of the drop to mint. OPTIONAL. If not provided, it will mint the active drop.
- `recipient`: The address of the recipient.
14 changes: 14 additions & 0 deletions contracts/minters/open-edition-minter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Open Edition Minter

Open edition minter contract is a minter contract which mints one NFT with predefined metadata.

#### Instantiate

Similar with the Minter contract, the creator should send Collection details along with trading information such as price, denomination, and trading start time. Factory contract will create a new OEM contract and initialize it with the given parameters.

### Mint

- There are two types of minting: `Mint{}` and `AdminMint{}`
- `Mint{}`: This option is for users who want to own the NFT, and they need to pay the active price at that time.
- `AdminMint{}`: As the name suggests, this option is specifically for admin to mint a token. Admins have the ability to determine the recipient. Admins are not subject to address limits or private mint checks, and this action does not require a payment.
- `recipient`: The address of the recipient.
184 changes: 0 additions & 184 deletions contracts/whitelists/round-whitelist/ts/OmniflixWhitelist.client.ts

This file was deleted.

76 changes: 0 additions & 76 deletions contracts/whitelists/round-whitelist/ts/OmniflixWhitelist.types.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/factory-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "factory-types"
authors = ["Adnan Deniz Corlu <[email protected]>"]
description = "Common types used by minter contracts"
description = "Common types used by factory contracts"
version = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion packages/testing/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "omniflix-testing"
authors = ["Adnan Deniz Corlu <[email protected]>"]
description = "Common types used by round whitelist contract"
description = "A unique testing package designed to execute and query Stargate in multi-test environment."
version = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
Expand Down

0 comments on commit b31402f

Please sign in to comment.