Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```