Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quic-pro/smart-contract-minting-by-id
Smart contract with the possibility of minting a token by ID.
https://github.com/quic-pro/smart-contract-minting-by-id
blockchain ethereum smart-contract solidity
Last synced: 4 days ago
JSON representation
Smart contract with the possibility of minting a token by ID.
- Host: GitHub
- URL: https://github.com/quic-pro/smart-contract-minting-by-id
- Owner: quic-pro
- License: mit
- Created: 2022-06-24T07:46:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-01T14:59:52.000Z (about 2 years ago)
- Last Synced: 2023-06-28T07:47:04.662Z (over 1 year ago)
- Topics: blockchain, ethereum, smart-contract, solidity
- Language: Solidity
- Homepage:
- Size: 302 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Contract with minting by id
## Description
Smart contract with the possibility of minting a token by ID.
## Install Dependencies
```
npm i
```## Template .env
```
PRIVKEY // string, required
ETHERSCANAPIKEY // string, optional
BSCSCANAPIKEY // string, optional
POLYGONSCANAPIKEY // string, optional
```## Test contracts
```
npm run test
```## Deploy contracts in testnet
Rinkeby - Ethereum testnet
```
npm run deploy:rinkeby
```BSC testnet
```
npm run deploy:testnet
```Mumbai - Polygon testnet
```
npm run deploy:mumbai
```## Deploy contracts in mainnet
Ethereum mainnet
```
npm run deploy:eth
```BSC mainnet
```
npm run deploy:bsc
```Polygon mainnet
```
npm run deploy:polygon
```## Verify contracts in testnet
rinkeby.etherscan.io
```
npx truffle run verify MintingById@YOUR_ADDRESS_CONTRACT --network rinkeby
```testnet.bscscan.com
```
npx truffle run verify MintingById@YOUR_ADDRESS_CONTRACT --network testnet
```mumbai.polygonscan.com
```
npx truffle run verify MintingById@YOUR_ADDRESS_CONTRACT --network mumbai
```## Verify contracts in mainnet
etherscan.io
```
npx truffle run verify MintingById@YOUR_ADDRESS_CONTRACT --network eth
```bscscan.com
```
npx truffle run verify MintingById@YOUR_ADDRESS_CONTRACT --network bsc
```polygonscan.com
```
npx truffle run verify MintingById@YOUR_ADDRESS_CONTRACT --network polygon
```