Secret contract for Anons project.

Overview

Snip-721 Protocal by Baedrik template with several edits

Minting Limits

  1. mint() caps tokens max at 580

  2. mint() will keep count of how many anons each address has minted, if it has reached a max of 3, the address can no longer mint new tokens

  3. mint() requires user to send sSCRT which is deivided amongst several wallets

  4. Removed mint_clones() and batch_mint()

Whitelist Minters

  1. init() accepts an array of addresses and saves it to reserve 1 Anon for each address on it

  2. Whitelist expires after 3 days from contract initialization

  3. mint() checks whitelist and removes whitelisted minters after they make their reserved mint, and checks if there are enough tokens left for the non whitelisted to mint

Telegram Integration

  1. mint() memo field is used to indlude your telgram handle. It will be placed in private metadata

  2. transfer_impl() erases previous private metadata when token moves from one address to another

  3. set_metadata() disables public metadata setting but leaves private metadata editable so you can update your TG handle

  4. query_private_meta() checks first to see if admin, used for the telegram whitelist bot, is the viewer, before checking normal viewing permissions

Query Possible Mints

  1. query_possible_mints() gives user a number between 0 and 3 of how many nfts they can mint

Preloading Tokens and Randomization

  1. init() takes a vec of PreLoad containing the Arweave urls and the ids for each token and saves them

  2. mint() uses the contract entropy to randomly select data from the preload list, applies it to the metadata, then removes it from the list

Grand Reveal

  1. init() declares a bool flag, reveal, as false

  2. While reveal is false, query_nft_info() and query_all_nft_info() will fail, however query_private_metadata() will function normally, so the telegram bot can still see who to whitelist

  3. reveal_all_tokens() sets reveal to true and allows all public metadata to be queriable. This is only accessible by the admin

  4. If 580th token is minted in mint(), reveal will be set to true

You might also like...
A CLI application that implements multi-key-turn security via Shamir's Secret Sharing.

agree agree is a CLI tool for easily applying multi-key-turn security via Shamirs Secret Sharing. Project state agree is unstable. Version semantics:

Substrate NFT !ink smart contract base

Substrate !ink NFT simple implementation This is a simple working version of base NFT smart contract written using latest (as of this date) !ink 3.0.0

clockchain is a system for benchmarking smart contract execution times across blockchains.
clockchain is a system for benchmarking smart contract execution times across blockchains.

Clockchain Clockchain is a research tool for benchmarking smart contract execution times across blockchains using Arcesco-- a block-chain agnostic ins

Testing a smart contract on the Solana blockchain

Environment Setup Install Rust from https://rustup.rs/ Install Solana from https://docs.solana.com/cli/install-solana-cli-tools#use-solanas-install-to

clockchain is a system for benchmarking smart contract execution times across blockchains.
clockchain is a system for benchmarking smart contract execution times across blockchains.

Clockchain Clockchain is a research tool for benchmarking smart contract execution times across blockchains using Arcesco-- a block-chain agnostic ins

The NFT smart contract powering xyz on Terra

xyz NFT Contract This repository contains the core NFT smart contract that implements xyz, a base layer for metaverses on the Terra blockchain. The xy

An example smart contract that builds on top of xyz

xyz Guestbook Tutorial Contract This repository contains an example smart contract that illustrates how to build on top of the xyz NFT contract. This

Simple template for building smart contract(Rust) and RPC Client(web3.js) on Solana (WIP) ⛏👷🚧⚠️
Simple template for building smart contract(Rust) and RPC Client(web3.js) on Solana (WIP) ⛏👷🚧⚠️

Solana BPF Boilerplate Simple template for building smart contract(Rust) and RPC Client(web3.js) on Solana This boilerplate provides the following. Si

Smart Contract for Terra Name Service

TERRA NAME SERVICE CONTRACTS Terra Name Service is to create easy-to-remember names for your Terra address like ‘dokwon.ust’ instead of ‘terra1...whez

Owner
Stake or Die
Stake or Die is a blockchain technology development company, specialized in Proof of Stake consensus networks.
Stake or Die
Example NFT marketplace project using ink! smart contract.

NFT Marketplace project This contract is an example for the NFT marketplace implementation. License Apache 2.0 ??️ How to use - Contracts ?? Build Use

Swanky dApps 8 Jan 18, 2023
A value transfer bridge between the Monero blockchain and the Secret Network.

Secret-Monero-Bridge A value transfer bridge between the Monero blockchain and the Secret Network. Proof-of-Concept Video Demonstration: https://ipfs.

null 28 Dec 7, 2022
secret folders generator to hide hentais in your computer

hentai dream 95 secret folders generator to hide hentais in your computer, but its really old way as **** used techniquee one injection technique from

jumango pussu 7 Jul 8, 2021
A pure-Rust implementation of various threshold secret sharing schemes

Threshold Secret Sharing Efficient pure-Rust library for secret sharing, offering efficient share generation and reconstruction for both traditional S

Snips 137 Dec 29, 2022
Manage secret values in-repo via public key cryptography

amber Manage secret values in-repo via public key cryptography. See the announcement blog post for more motivation. Amber provides the ability to secu

FP Complete 82 Nov 10, 2022
Cross-platform Secure TUI Secret Locker

SafeCloset keeps your secrets in password protected files. SafeCloset is designed to be convenient and avoid common weaknesses like external editing o

Canop 63 Dec 26, 2022
A tool for secret-shared passphrases.

harpo harpo is a tool and library that provides the following functionality: It can generate a seed phrase. Given a seed phrase, it can generate any n

Thomas Locher 11 Jun 30, 2022
Rust implementation of Shamir's Secret Sharing

Horcrux - Rust implementation of Shamir's Secret Sharing This program is an example implementation of Shamir's Secret Sharing in Rust. You can find mo

null 13 Dec 29, 2022
🔑 Threshold Shamir's secret sharing in Rust

Rusty Secrets Rusty Secrets is an implementation of a threshold Shamir's secret sharing scheme. Documentation (latest) Documentation (master) Design g

Spin Research 233 Dec 17, 2022
Rusty Hog is a secret scanner built in Rust for performance, and based on TruffleHog which is written in Python.

Rusty Hog is a secret scanner built in Rust for performance, and based on TruffleHog which is written in Python. Rusty Hog provides the following bina

New Relic 306 Jan 4, 2023