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.example
to.env
and 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.example
to.env
and 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
.env
setFORK_NETWORK=mainnet
- In
hardhat.config.ts
setmainnet_fork.blockNumber
to 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
.env
setFORK_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