olympus-contracts

所属分类:collect
开发工具:Solidity
文件大小:0KB
下载次数:0
上传日期:2023-05-12 12:03:01
上 传 者sh-1993
说明:  奥林巴斯合同,,
(olympus-contracts,,)

文件列表:
.dapprc (722, 2022-10-12)
.dockerignore (91, 2022-10-12)
.editorconfig (172, 2022-10-12)
.env.example (302, 2022-10-12)
.eslintignore (87, 2022-10-12)
.eslintrc.js (654, 2022-10-12)
.markdownlint.json (92, 2022-10-12)
.prettierignore (199, 2022-10-12)
.prettierrc (268, 2022-10-12)
.solhint.json (517, 2022-10-12)
.solhintignore (93, 2022-10-12)
Dockerfile (860, 2022-10-12)
LICENSE (34523, 2022-10-12)
Makefile (1038, 2022-10-12)
abis/ (0, 2022-10-12)
abis/dai.json (6389, 2022-10-12)
abis/frax.json (14761, 2022-10-12)
abis/fxs.json (10805, 2022-10-12)
abis/lusd.json (6636, 2022-10-12)
abis/lusd_stability_pool.json (15032, 2022-10-12)
abis/ohm.json (7625, 2022-10-12)
abis/ohm_dai_lp.json (7389, 2022-10-12)
abis/ohm_frax_lp.json (8279, 2022-10-12)
abis/ohm_lusd_lp.json (7389, 2022-10-12)
abis/old_treasury_abi.json (13365, 2022-10-12)
abis/sohm.json (8147, 2022-10-12)
abis/sushi_factory.json (2398, 2022-10-12)
abis/uni_factory.json (2228, 2022-10-12)
abis/vefxs.json (7844, 2022-10-12)
abis/vefxs_smart_wallet_checker.json (2569, 2022-10-12)
... ...

# Ω Olympus Smart Contracts ![image](https://img.shields.io/github/forks/OlympusDAO/olympus-contracts?style=social) This is the main Olympus smart contract development repository. ## Setting up local development ### Requirements - [node v14](https://nodejs.org/download/release/latest-v14.x/) - [git](https://git-scm.com/downloads) ### Local Setup Steps ```sh # Clone the repository git clone https://github.com/OlympusDAO/olympus-contracts.git # Install dependencies yarn install # Set up environment variables (keys) cp .env.example .env # (linux) copy .env.example .env # (windows) # compile solidity, the below will automatically also run yarn typechain yarn compile # if you want to explicitly run typechain, run yarn compile --no-typechain yarn typechain # run a local hardhat node yarn run start # test deployment or deploy # yarn run deploy:, example: yarn run deploy:hardhat ``` ### Local Setup Steps (with Docker) A Docker image is available to simplify setup. ```sh # First setup keys, to do this first copy as above cp .env.example .env # (linux) copy .env.example .env # (windows) # Populate ALCHEMY_API_KEY and PRIVATE_KEY into `.env` afterwards # Then, start the node make run ``` ## Contract Addresses - For [Ethereum Mainnet](./docs/deployments/ethereum.md). - For [Rinkeby Testnet](./docs/deployments/rinkeby.md). ### Notes for `localhost` - The `deployments/localhost` directory is included in the git repository, so that the contract addresses remain constant. Otherwise, the frontend's `constants.ts` file would need to be updated. - Avoid committing changes to the `deployments/localhost` files (unless you are sure), as this will alter the state of the hardhat node when deployed in tests. ## Guides ### Contracts - [Allocator Contribution Guidelines](https://hackmd.io/@3_ZONBhqRBukBJN302eDdQ/rk4qUyOlq) - [Allocator Interaction Instructions](https://hackmd.io/@OxbBIYzRTlqgmpSwc1bwWA/SJflVXcWq) - [Allocator version 1 guide (1.0.0)](./docs/guides/allocator_v1_guide.md). - [System Architecture (image)](./docs/guides/system_architecture.md) ### Testing - [Hardhat testing guide](./docs/guides/hardhat_testing.md) - [Dapptools testing guide](./docs/guides/dapptools.md)

近期下载者

相关文件


收藏者