https://github.com/masa-finance/masa-sbt-boilerplate
A template for creating new SBTs inheriting from the Masa SBT smart contracts
https://github.com/masa-finance/masa-sbt-boilerplate
boilerplate smart-contracts solidity
Last synced: 4 months ago
JSON representation
A template for creating new SBTs inheriting from the Masa SBT smart contracts
- Host: GitHub
- URL: https://github.com/masa-finance/masa-sbt-boilerplate
- Owner: masa-finance
- License: mit
- Created: 2023-03-24T11:10:07.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-06T14:13:32.000Z (about 1 year ago)
- Last Synced: 2024-05-06T15:42:57.682Z (about 1 year ago)
- Topics: boilerplate, smart-contracts, solidity
- Language: TypeScript
- Homepage:
- Size: 2.27 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Masa SBT Boilerplate
A template for creating new SBTs inheriting from the Masa SBT smart contracts
## Deployment
### Preparations
* Set `DEPLOYER_PRIVATE_KEY` to the deployers private key in `.env.{network}.secret`
* Set `INFURA_API_KEY` to the Infura API key in `.env`
* Set `COINMARKETCAP_API_KEY` to the CoinMarketCap API key in `.env`, if needed
* Set `ETHERSCAN_API_KEY` to the Etherscan API key in `.env`, if needed
* Set the environment variables in every `.env.{network}` file. These variables are used to deploy the smart contracts to the network.### Install dependencies
Run:
```
yarn install
```### Build smart contracts
Run:
```
yarn build
```### Test smart contracts
Run:
```
yarn test
```### Deploy
Run: `yarn deploy --network {network}` to deploy.
## Contract Deployments
### Deployment addresses
You can see the deployment address of the smart contracts in the [deployments/goerli](deployments/goerli) and [deployments/mainnet](deployments/mainnet) folders. For every deployed smart contract you will find a `.json` JSON file with the address in the `"address"` field.