Detailed technical documentation is located at https://docs.solace.fi
See https://github.com/solace-fi/solace-core/releases or https://docs.solace.fi/docs/dev-docs/Contract%20Addresses for a list of contract addresses.
- Solidity 0.8.6: https://docs.soliditylang.org/en/v0.8.6/
- Ethereum Dev Environment: https://hardhat.org/
- Smart Contract Testing: https://getwaffle.io/
- Blockchain interactions: https://docs.ethers.io/v5/
- TypeChain (TypeScript bindings for Ethereum smartcontracts): https://github.com/ethereum-ts/TypeChain
- TypeScript: https://www.typescriptlang.org/
- Solidity: https://docs.soliditylang.org/en/v0.8.6/style-guide.html
- TypeScript: https://google.github.io/styleguide/tsguide.html
- Git: https://github.com/kseniya292/standards
- Clone this repo
- Copy
.env.exampleto.envand fill in the missing values. You'll need to sign up for API keys with various third party providers. - Install node.js v16 https://nodejs.org/
- Run
npm install - Run
npx hardhat compile - Run
npx hardhat test
- Clone this repo
- Copy
.env.exampleto.envand fill in the missing values. You'll need to sign up for API keys with various third party providers. - Install node.js v16 https://nodejs.org/
- Run
npm install - Run
npx hardhat compile
You can choose to fork mainnet or redeploy.
Forking:
- In
.envsetFORK_NETWORK=mainnet - In
hardhat.config.tssetmainnet_fork.blockNumberto a recent block. - Run
npx hardhat node. Your local network will be available atlocalhost:8545. - See https://github.com/solace-fi/solace-core/releases or https://docs.solace.fi/docs/dev-docs/Contract%20Addresses for a list of contract addresses.
Redeploying:
- In
.envsetFORK_NETWORK=none - Run
npx hardhat node. Let this run and open a new terminal. - Run
npx hardhat run scripts/deploy-local-1.ts --network localhost. - Run
npx hardhat run scripts/deploy-local-2.ts --network localhost. - Your local network will be available at
localhost:8545. See the outputs of the above commands for a list of contract addresses.
See https://share.solace.fi/test_coverage/index.html
GNU General Public License v3.0