Skip to content

Commit

Permalink
Merge pull request #33 from juliancwirko/release/v1.4.0
Browse files Browse the repository at this point in the history
updates for v1.4.0
  • Loading branch information
juliancwirko authored Feb 14, 2022
2 parents c1ab22b + a85fd59 commit 9154962
Show file tree
Hide file tree
Showing 12 changed files with 169 additions and 47 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### [1.4.0](https://github.com/juliancwirko/elven-nft-minter-sc/releases/tag/v1.4.0) (2022-02-11)
- allowlist functionality - when you enable it, only eligible addresses from the list can mint. You can add more addresses at any time. The amount of tokens per address is the same as usual. You can always change that per drop.
- replace all storage `set` to `set_if_empty` - preparation for the upgrade tests and CLI tooling

### [1.3.1](https://github.com/juliancwirko/elven-nft-minter-sc/releases/tag/v1.3.0) (2022-02-09)
- Fixed the bug related to not optimal usage of storage clearing functions for managing the 'drops'.

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "elven-nft-minter"
version = "1.3.1"
version = "1.4.0"
authors = ["Julian Ćwirko <julian.cwirko@gmail.com>"]
edition = "2018"
publish = false
Expand Down
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### NFT minter Smart Contract

- Docs: [www.elven.tools](https://www.elven.tools)
- Quick jumpstart: [www.elven.tools/docs/jump-start.html](https://www.elven.tools/docs/jump-start.html)
- Intro video: [youtu.be/szkNE_qOy6Q](https://youtu.be/szkNE_qOy6Q)

🚨 Not enough tests! As for the mainnet, use it at your own risk! 🚨
Expand All @@ -25,14 +26,17 @@ Check the [abi](https://github.com/juliancwirko/elven-nft-minter-sc/blob/main/ou

Also, check how simple it is to deploy and interact with it using [elven-tools-cli](https://github.com/juliancwirko/elven-tools-cli).

### Other ways of using it
### Check out possible workflows

Examples of how you can configure your Smart Contract in a couple of scenarios and how to use the CLI to do this faster and more efficient: [www.elven.tools/docs/elven-tools-workflows.html](https://www.elven.tools/docs/elven-tools-workflows.html)

You can always clone it and change it as you need. The best is to use the Elven Tools CLI tool, which can also be configured after changes here. But nothing stops you from using the [erdpy](https://docs.elrond.com/sdk-and-tools/erdpy/erdpy/) and interacting with this Smart Contract. It is all up to you.
### All endpoints with short descriptions

### Limitations and caveats
For all commands, check out the docs: [www.elven.tools/docs/sc-endpoints.html](https://www.elven.tools/docs/sc-endpoints.html)

### Other ways of using it

- Remember that it is most likely that because of the open-source nature of this Smart Contract, it won't be used only in a way that everyone would want to, be aware that you can always change the names of the endpoints in the Smart Contract. You can even deploy a couple of them. In the last minutes before the mint decide to use one of them. This will limit the bots. Remember always to inform which one is the official one.
- Smart Contract in version 1 doesn't have many mechanisms which will strongly limit unwanted behaviors. It only implements random minting, but in version 2, there will be more mechanisms for fair launches.
You can always clone it and change it as you need. The best is to use the Elven Tools CLI tool, which can also be configured after changes. But nothing stops you from using the [erdpy](https://docs.elrond.com/sdk-and-tools/erdpy/erdpy/) and interacting with this Smart Contract. It is all up to you.

#### TODO:
- check [issues](https://github.com/juliancwirko/elven-nft-minter-sc/issues)
Expand All @@ -44,7 +48,7 @@ You can always clone it and change it as you need. The best is to use the Elven
- [Telegram](https://t.me/juliancwirko)
- [Twitter](https://twitter.com/JulianCwirko)

### You my also like
### You may also like

- [NFT Art Maker](https://github.com/juliancwirko/nft-art-maker) - generates images and metadata files and packs them into CAR files, all from provided PNG layers.

Expand Down
4 changes: 2 additions & 2 deletions meta/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion meta/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "elven-nft-minter-meta"
version = "1.3.1"
version = "1.4.0"
authors = ["Julian Ćwirko <julian.cwirko@gmail.com>"]
edition = "2018"
publish = false
Expand Down
63 changes: 62 additions & 1 deletion output/elven-nft-minter.abi.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"contractCrate": {
"name": "elven-nft-minter",
"version": "1.3.1"
"version": "1.4.0"
},
"framework": {
"name": "elrond-wasm",
Expand Down Expand Up @@ -206,6 +206,32 @@
],
"outputs": []
},
{
"name": "enableAllowlist",
"onlyOwner": true,
"mutability": "mutable",
"inputs": [],
"outputs": []
},
{
"name": "disableAllowlist",
"onlyOwner": true,
"mutability": "mutable",
"inputs": [],
"outputs": []
},
{
"name": "populateAllowlist",
"onlyOwner": true,
"mutability": "mutable",
"inputs": [
{
"name": "addresses",
"type": "List<Address>"
}
],
"outputs": []
},
{
"name": "mint",
"mutability": "mutable",
Expand Down Expand Up @@ -261,6 +287,31 @@
}
]
},
{
"name": "getAllowlistAddressCheck",
"mutability": "readonly",
"inputs": [
{
"name": "address",
"type": "Address"
}
],
"outputs": [
{
"type": "bool"
}
]
},
{
"name": "getAllowlistSize",
"mutability": "readonly",
"inputs": [],
"outputs": [
{
"type": "u32"
}
]
},
{
"name": "getNftTokenId",
"mutability": "readonly",
Expand Down Expand Up @@ -335,6 +386,16 @@
"type": "u32"
}
]
},
{
"name": "isAllowlistEnabled",
"mutability": "readonly",
"inputs": [],
"outputs": [
{
"type": "bool"
}
]
}
],
"hasCallback": true,
Expand Down
Binary file modified output/elven-nft-minter.wasm
Binary file not shown.
Loading

0 comments on commit 9154962

Please sign in to comment.