-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
017116a
commit b31402f
Showing
8 changed files
with
53 additions
and
283 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,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. |
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,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
184
contracts/whitelists/round-whitelist/ts/OmniflixWhitelist.client.ts
This file was deleted.
Oops, something went wrong.
76 changes: 0 additions & 76 deletions
76
contracts/whitelists/round-whitelist/ts/OmniflixWhitelist.types.ts
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -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 } | ||
|
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 |
---|---|---|
@@ -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 } | ||
|