{"_id":"@athenalend/deploy-v3","_rev":"2-56d0b0dfc4d56b2d2027a9c089a400d9","name":"@athenalend/deploy-v3","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"@athenalend/deploy-v3","version":"0.0.1","engines":{"node":">=16.0.0"},"types":"dist/types/helpers/index.d.ts","author":{"name":"Athena"},"contributors":[],"main":"dist/helpers/index.js","devDependencies":{"@aave/aave-token":"^0.0.1","@athenalend/core-v3":"^0.0.1","@athenalend/periphery-v3":"^2.5.2","@aave/safety-module":"^1.0.3","@nomicfoundation/hardhat-chai-matchers":"^1.0.5","@nomicfoundation/hardhat-network-helpers":"^1.0.0","@nomicfoundation/hardhat-toolbox":"^2.0.0","@nomicfoundation/hardhat-verify":"^1.1.1","@openzeppelin/contracts":"^4.3.2","@types/bluebird":"^3.5.36","@types/chai":"^4.2.21","@types/mkdirp":"^1.0.2","@types/mocha":"^9.0.0","@types/node":"^16.7.1","bluebird":"^3.7.2","chai":"^4.3.4","chalk":"^4.1.2","dotenv":"^10.0.0","hardhat":"^2.17.4","hardhat-contract-sizer":"^2.0.3","hardhat-dependency-compiler":"^1.1.2","hardhat-deploy":"^0.10.6","jsondiffpatch":"^0.4.1","prettier":"^2.3.2","ts-node":"^10.2.1","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.3.2"},"license":"AGPLv3","scripts":{"run-env":"npm ci && tail -f /dev/null","cp-typechain":"cp typechain/*.d.ts ./dist/types/typechain","build":"tsc --project lib.tsconfig.json && npm run cp-typechain","clean":"rm -rf artifacts/ types/ dist/ typechain/","compile":"SKIP_LOAD=true npx hardhat compile","prepublish":"npm run clean && npm run compile && npm run build","node":"npx hardhat node --no-deploy","node:fork":"FORK=main npm run node --no-deploy","deploy":"if [ \"$SKIP_COMPILE\" = 'true' ]; then echo '[Warning] Skipping compilation'; else npm run compile; fi && npx hardhat deploy --no-compile","test":"npm run compile && npm run test:fork","test:fork":"MARKET_NAME=Athena FORK=main npx hardhat test ./tests/__setup.spec.ts ./tests/fork/check-list.spec.ts","deploy:market:athena:fork":"FORK=main MARKET_NAME=Athena npm run deploy","deploy:market:eth:empty:fork":"FORK=main MARKET_NAME=Ethereum npm run deploy"},"peerDependencies":{"@athenalend/core-v3":"x || >=1.0.0-beta || >=3.0.0-beta","@athenalend/periphery-v3":"x || >=1.0.0-beta || >=3.0.0-beta","hardhat":"^2.6.1"},"publishConfig":{"registry":" https://registry.npmjs.org"},"repository":{"type":"git","url":"git://github.com/athenaweb3/athena-v3-deploy.git"},"dependencies":{"@openzeppelin/defender-relay-client":"^1.54.1"},"_id":"@athenalend/deploy-v3@0.0.1","gitHead":"dc328755b034d0381f55598c67970f4321449768","description":"[![npm (scoped)](https://img.shields.io/npm/v/@athenalend/deploy-v3)](https://www.npmjs.com/package/@athenalend/deploy-v3)","bugs":{"url":"https://github.com/athenaweb3/athena-v3-deploy/issues"},"homepage":"https://github.com/athenaweb3/athena-v3-deploy#readme","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-vEzEUv/acQKFP9q9fsZjD0brfR5rFxuRQKkripYoL+PnNJxXe+Rsp1j9wu5VqNpSaKSxQXOc3cyyjU6NEYTfQg==","shasum":"051175c2f90096f7a618ebe985c60c8a1c0aae09","tarball":"https://registry.npmjs.org/@athenalend/deploy-v3/-/deploy-v3-0.0.1.tgz","fileCount":18,"unpackedSize":118634,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDp9IelqQb3xrTiADJov9DzJifbN3odpTCDvQPia0VbNAIgSEbFJ6NY+K7ggGIiencCDad1+kl2dTUOHWagbl1UB/4="}]},"_npmUser":{"name":"carlos53093","email":"carloslin53093@gmail.com"},"directories":{},"maintainers":[{"name":"carlos53093","email":"carloslin53093@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deploy-v3_0.0.1_1712114849445_0.1285765889931949"},"_hasShrinkwrap":false},"0.0.3":{"name":"@athenalend/deploy-v3","version":"0.0.3","engines":{"node":">=16.0.0"},"types":"dist/types/helpers/index.d.ts","author":{"name":"Athena"},"contributors":[{"name":"David Racero","email":"david.k@athenalend.com"},{"name":"Miguel Martinez","email":"miguel@athenalend.com"},{"name":"Steven Valeri","email":"steven@athenalend.com"},{"name":"Emilio Frangella","email":"emilio@athenalend.com"}],"main":"dist/helpers/index.js","devDependencies":{"@aave/aave-token":"^1.0.4","@athenalend/core-v3":"^0.0.2","@athenalend/periphery-v3":"^0.0.2","@aave/safety-module":"^1.0.3","@nomicfoundation/hardhat-chai-matchers":"^1.0.5","@nomicfoundation/hardhat-network-helpers":"^1.0.0","@nomicfoundation/hardhat-toolbox":"^2.0.0","@nomicfoundation/hardhat-verify":"^1.1.1","@openzeppelin/contracts":"^4.3.2","@types/bluebird":"^3.5.36","@types/chai":"^4.2.21","@types/mkdirp":"^1.0.2","@types/mocha":"^9.0.0","@types/node":"^16.7.1","bluebird":"^3.7.2","chai":"^4.3.4","chalk":"^4.1.2","dotenv":"^10.0.0","hardhat":"^2.17.4","hardhat-contract-sizer":"^2.0.3","hardhat-dependency-compiler":"^1.1.2","hardhat-deploy":"^0.10.6","jsondiffpatch":"^0.4.1","prettier":"^2.3.2","ts-node":"^10.2.1","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.3.2"},"license":"AGPLv3","scripts":{"run-env":"npm ci && tail -f /dev/null","cp-typechain":"cp typechain/*.d.ts ./dist/types/typechain","build":"tsc --project lib.tsconfig.json && npm run cp-typechain","clean":"rm -rf artifacts/ types/ dist/ typechain/","compile":"SKIP_LOAD=true npx hardhat compile","prepublish":"npm run clean && npm run compile && npm run build","node":"npx hardhat node --no-deploy","node:fork":"FORK=main npm run node --no-deploy","deploy":"if [ \"$SKIP_COMPILE\" = 'true' ]; then echo '[Warning] Skipping compilation'; else npm run compile; fi && npx hardhat deploy --no-compile","test":"npm run compile && npm run test:fork","test:fork":"MARKET_NAME=Athena FORK=main npx hardhat test ./tests/__setup.spec.ts ./tests/fork/check-list.spec.ts","deploy:market:athena:fork":"FORK=main MARKET_NAME=Athena npm run deploy","deploy:market:eth:empty:fork":"FORK=main MARKET_NAME=Ethereum npm run deploy"},"peerDependencies":{"@athenalend/core-v3":"x || >=1.0.0-beta || >=3.0.0-beta","@athenalend/periphery-v3":"x || >=1.0.0-beta || >=3.0.0-beta","hardhat":"^2.6.1"},"publishConfig":{"registry":" https://registry.npmjs.org"},"repository":{"type":"git","url":"git://github.com/athena/athena-v3-deploy.git"},"dependencies":{"@nomiclabs/hardhat-ethers":"^2.0.0","@nomiclabs/hardhat-etherscan":"^3.0.0","@openzeppelin/defender-relay-client":"^1.54.1","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","ethers":"5.7.2","hardhat-gas-reporter":"^1.0.8","solidity-coverage":"^0.8.1","typechain":"^8.1.0"},"_id":"@athenalend/deploy-v3@0.0.3","gitHead":"dc328755b034d0381f55598c67970f4321449768","description":"[![npm (scoped)](https://img.shields.io/npm/v/@athenalend/deploy-v3)](https://www.npmjs.com/package/@athenalend/deploy-v3)","bugs":{"url":"https://github.com/athena/athena-v3-deploy/issues"},"homepage":"https://github.com/athena/athena-v3-deploy#readme","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-DZfAFfZeKOX/+XcSNFSVgvebsfglkKVjyOp3TCSZv3OEeY6LUUgyj9YMGPFQ2R7mdhu/ztcm9rW1yxIMdKnXcg==","shasum":"2d7edb2c3529504a54ae9b233bbb1cbe83bddd71","tarball":"https://registry.npmjs.org/@athenalend/deploy-v3/-/deploy-v3-0.0.3.tgz","fileCount":2099,"unpackedSize":63480342,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEz8s88KUTVGw0kLs+h3G7LE11/6Dy1yise78BNeTKzIAiEAonvxqMWlqY0lw4bGnKX3ulvvOBnLr/1ZkUoJebL2DXc="}]},"_npmUser":{"name":"carlos53093","email":"carloslin53093@gmail.com"},"directories":{},"maintainers":[{"name":"carlos53093","email":"carloslin53093@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deploy-v3_0.0.3_1712145306427_0.5934212567035504"},"_hasShrinkwrap":false},"0.0.4":{"name":"@athenalend/deploy-v3","version":"0.0.4","engines":{"node":">=16.0.0"},"types":"dist/types/helpers/index.d.ts","author":{"name":"Athena"},"contributors":[],"main":"dist/helpers/index.js","devDependencies":{"@athenalend/athena-token":"^0.0.1","@athenalend/safety-module":"^0.0.2","@athenalend/core-v3":"^0.0.4","@athenalend/periphery-v3":"^0.0.4","@nomicfoundation/hardhat-chai-matchers":"^1.0.5","@nomicfoundation/hardhat-network-helpers":"^1.0.0","@nomicfoundation/hardhat-toolbox":"^2.0.0","@nomicfoundation/hardhat-verify":"^1.1.1","@openzeppelin/contracts":"^4.3.2","@types/bluebird":"^3.5.36","@types/chai":"^4.2.21","@types/mkdirp":"^1.0.2","@types/mocha":"^9.0.0","@types/node":"^16.7.1","bluebird":"^3.7.2","chai":"^4.3.4","chalk":"^4.1.2","dotenv":"^10.0.0","hardhat":"^2.17.4","hardhat-contract-sizer":"^2.0.3","hardhat-dependency-compiler":"^1.1.2","hardhat-deploy":"^0.10.6","jsondiffpatch":"^0.4.1","prettier":"^2.3.2","ts-node":"^10.2.1","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","typescript":"^4.3.2"},"license":"AGPLv3","scripts":{"run-env":"npm ci && tail -f /dev/null","cp-typechain":"cp typechain/*.d.ts ./dist/types/typechain","build":"tsc --project lib.tsconfig.json && npm run cp-typechain","clean":"rm -rf artifacts/ types/ dist/ typechain/","compile":"SKIP_LOAD=true npx hardhat compile","prepublish":"npm run clean && npm run compile && npm run build","node":"npx hardhat node --no-deploy","node:fork":"FORK=main npm run node --no-deploy","deploy":"if [ \"$SKIP_COMPILE\" = 'true' ]; then echo '[Warning] Skipping compilation'; else npm run compile; fi && npx hardhat deploy --no-compile","test":"npm run compile && npm run test:fork","test:fork":"MARKET_NAME=Athena FORK=main npx hardhat test ./tests/__setup.spec.ts ./tests/fork/check-list.spec.ts","deploy:market:athena:fork":"FORK=main MARKET_NAME=Athena npm run deploy","deploy:market:eth:empty:fork":"FORK=main MARKET_NAME=Ethereum npm run deploy"},"peerDependencies":{"@athenalend/core-v3":"x || >=1.0.0-beta || >=3.0.0-beta","@athenalend/periphery-v3":"x || >=1.0.0-beta || >=3.0.0-beta","hardhat":"^2.6.1"},"publishConfig":{"registry":" https://registry.npmjs.org"},"repository":{"type":"git","url":"git://github.com/athenaweb3/athena-v3-deploy.git"},"dependencies":{"@nomiclabs/hardhat-ethers":"^2.0.0","@openzeppelin/defender-relay-client":"^1.54.1"},"_id":"@athenalend/deploy-v3@0.0.4","gitHead":"dc328755b034d0381f55598c67970f4321449768","description":"[![npm (scoped)](https://img.shields.io/npm/v/@athenalend/deploy-v3)](https://www.npmjs.com/package/@athenalend/deploy-v3)","bugs":{"url":"https://github.com/athenaweb3/athena-v3-deploy/issues"},"homepage":"https://github.com/athenaweb3/athena-v3-deploy#readme","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-XX6XbSNAjg0F2Y2arTAwRrK79QACDW56uKyQbwIFJCrxZeswb7l+qQ+VQuRC8l4ILtJRQpdAo6wOFLSH3uGCvQ==","shasum":"f48f32fdda1f9ac95bffecee8b66530444a80e65","tarball":"https://registry.npmjs.org/@athenalend/deploy-v3/-/deploy-v3-0.0.4.tgz","fileCount":2099,"unpackedSize":63471587,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNNvl1rG7Fk2q7hhxw46LwgSYUatrEqKXElMg/3DRUOwIhAIx0JuxahI8Zg1wBZ3njfjLoo4W9zhCxptNt0P2fKH+L"}]},"_npmUser":{"name":"carlos53093","email":"carloslin53093@gmail.com"},"directories":{},"maintainers":[{"name":"carlos53093","email":"carloslin53093@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deploy-v3_0.0.4_1712299560137_0.017471472364488427"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-03T03:27:29.342Z","0.0.1":"2024-04-03T03:27:29.594Z","modified":"2024-04-05T06:46:00.794Z","0.0.3":"2024-04-03T11:55:06.904Z","0.0.4":"2024-04-05T06:46:00.623Z"},"maintainers":[{"name":"carlos53093","email":"carloslin53093@gmail.com"}],"description":"[![npm (scoped)](https://img.shields.io/npm/v/@athenalend/deploy-v3)](https://www.npmjs.com/package/@athenalend/deploy-v3)","homepage":"https://github.com/athenaweb3/athena-v3-deploy#readme","repository":{"type":"git","url":"git://github.com/athenaweb3/athena-v3-deploy.git"},"contributors":[],"author":{"name":"Athena"},"bugs":{"url":"https://github.com/athenaweb3/athena-v3-deploy/issues"},"license":"AGPLv3","readme":"# Athena V3 Deployments\n\n[![npm (scoped)](https://img.shields.io/npm/v/@athenalend/deploy-v3)](https://www.npmjs.com/package/@athenalend/deploy-v3)\n\nThis Node.js repository contains the configuration and deployment scripts for the Athena V3 protocol core and periphery contracts. The repository makes use of `hardhat` and `hardhat-deploy` tools to facilitate the deployment of Athena V3 protocol.\n\n## Requirements\n\n- Node.js >= 16\n- Alchemy key\n  - If you use a custom RPC node, you can change the default RPC provider URL at [./helpers/hardhat-config-helpers.ts:25](./helpers/hardhat-config-helpers.ts).\n- Etherscan API key _(Optional)_\n\n## Getting Started\n\n1. Install Node.JS dependencies:\n\n   ```\n   npm i\n   ```\n\n2. Compile contracts before running any other command, to generate Typechain TS typings:\n\n   ```\n   npm run compile\n   ```\n\n## How to deploy Athena V3 in testnet network\n\nTo deploy Athena V3 in a Testnet network, copy the `.env.example` into a `.env` file, and fill the environment variables `MNEMONIC`, and `ALCHEMY_KEY`.\n\n```\ncp .env.example .env\n```\n\nEdit the `.env` file to fill the environment variables `MNEMONIC`, `ALCHEMY_KEY` and `MARKET_NAME`. You can check all possible pool configurations in this [file](https://github.com/athenaweb3/athena-v3-deploy/blob/09e91b80aff219da80f35a9fc55dafc5d698b574/helpers/market-config-helpers.ts#L95).\n\n```\nnano .env\n```\n\nRun the deployments scripts and specify which network & athena market configs you wish to deploy.\n\n```\nHARDHAT_NETWORK=goerli npx hardhat deploy\n```\n\n## How to deploy Athena V3 in fork network\n\nYou can use the environment variable `FORK` with the network name to deploy into a fork.\n\n```\nFORK=main MARKET_NAME=Athena npx hardhat deploy\n```\n\n## How to integrate in your Hardhat project\n\nYou can install the `@athenalend/deploy-v3` package in your Hardhat project to be able to import deployments with `hardhat-deploy` and build on top of Athena in local or testnet network.\n\nTo make it work, you must install the following packages in your project:\n\n```\nnpm i --save-dev @athenalend/deploy-v3 @athenalend/core-v3 @athenalend/periphery-v3\n```\n\nThen, proceed to load the deploy scripts adding the `externals` field in your Hardhat config file at `hardhat.config.js|ts`.\n\n```\n# Content of hardhat.config.ts file\n\nexport default hardhatConfig: HardhatUserConfig = {\n   {...},\n   external: {\n    contracts: [\n      {\n        artifacts: 'node_modules/@athenalend/deploy-v3/artifacts',\n        deploy: 'node_modules/@athenalend/deploy-v3/dist/deploy',\n      },\n    ],\n  },\n}\n```\n\nAfter all is configured, you can run `npx hardhat deploy` to run the scripts or you can also run it programmatically in your tests using fixtures:\n\n```\nimport {getPoolAddressesProvider} from '@athenalend/deploy-v3';\n\ndescribe('Tests', () => {\n   before(async () => {\n      // Set the MARKET_NAME env var\n      process.env.MARKET_NAME = \"Athena\"\n\n      // Deploy Athena V3 contracts before running tests\n      await hre.deployments.fixture(['market', 'periphery-post']);`\n   })\n\n   it('Get Pool address from AddressesProvider', async () => {\n      const addressesProvider = await getPoolAddressesProvider();\n\n      const poolAddress = await addressesProvider.getPool();\n\n      console.log('Pool', poolAddress);\n   })\n})\n\n```\n\n## How to verify your contract deployments\n\n```\nnpx hardhat --network XYZ etherscan-verify --api-key YZX\n```\n\n## Project Structure\n\n| Path                  | Description                                                                                                                     |\n| --------------------- | ------------------------------------------------------------------------------------------------------------------------------- |\n| deploy/               | Main deployment scripts dir location                                                                                            |\n| ├─ 00-core/           | Core deployment, only needed to run once per network.                                                                           |\n| ├─ 01-periphery_pre/  | Periphery contracts deployment, only need to run once per network.                                                              |\n| ├─ 02-market/         | Market deployment scripts, depends of Core and Periphery deployment.                                                            |\n| ├─ 03-periphery_post/ | Periphery contracts deployment after market is deployed.                                                                        |\n| deployments/          | Artifacts location of the deployments, contains the addresses, the abi, solidity input metadata and the constructor parameters. |\n| markets/              | Directory to configure Athena markets                                                                                             |\n| tasks/                | Hardhat tasks to setup and review market configs                                                                                |\n| helpers/              | Utility helpers to manage configs and deployments                                                                               |\n\n## License\n\nPlease be aware that [Athena V3](https://github.com/athenaweb3/athena-v3-core) is under [BSUL](https://github.com/athenaweb3/athena-v3-core/blob/master/LICENSE.md) license as of 27 January 2023 or date specified at v3-license-date.athena.eth. The Licensor hereby grants you the right to copy, modify, create derivative works, redistribute, and make non-production use of the Licensed Work. Any exceptions to this license may be specified by Athena governance. This repository containing the deployment scripts for the Athena V3 smart contracts can only be used for local or testing purposes. If you wish to deploy to a production environment you can reach out to Athena Governance [here](https://governance.athena.com/).\n","readmeFilename":"README.md"}