Skip to content

Commit 6c31e36

Browse files
committed
init
1 parent 80c3986 commit 6c31e36

113 files changed

Lines changed: 32627 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
SONIC_RPC=
2+
3+
# Name of the Market to deploy. If you want to deploy a custom market, it must be included at `loadPoolConfig` function at ./helpers/market-config-helpers.ts:65
4+
MARKET_NAME=Sonic_sbUSD
5+
6+
# Seed phrase
7+
MNEMONIC=
8+
9+
# Etherscan API key to verify contracts
10+
ETHERSCAN_KEY=

.github/workflows/node.js.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [16.x]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
registry-url: https://npm.pkg.github.com/
24+
scope: "@aave"
25+
env:
26+
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES_REGISTRY_READ_ONLY }}
27+
- name: Install dependencies
28+
run: npm ci
29+
env:
30+
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES_REGISTRY_READ_ONLY }}
31+
- name: Aave Fork deployment
32+
run: npm run deploy:market:aave:fork
33+
env:
34+
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
35+
- name: Ethereum Fork No Reserves deployment
36+
run: npm run deploy:market:eth:empty:fork
37+
env:
38+
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
39+
- name: Test
40+
run: npm run test
41+
env:
42+
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: release-please
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
release-please:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: GoogleCloudPlatform/release-please-action@v3
11+
id: release
12+
with:
13+
release-type: node
14+
package-name: ${{ github.event.repository.name }}
15+
# The logic below handles the npm publication:
16+
- uses: actions/checkout@v2
17+
# these if statements ensure that a publication only occurs when
18+
# a new release is created:
19+
if: ${{ steps.release.outputs.release_created }}
20+
- uses: actions/setup-node@v1
21+
if: ${{ steps.release.outputs.release_created }}
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
# Use the Github Package registry
25+
registry-url: "https://registry.npmjs.org"
26+
scope: "@aave"
27+
- run: npm ci
28+
if: ${{ steps.release.outputs.release_created }}
29+
- name: Test deployment checklist
30+
if: ${{ steps.release.outputs.release_created }}
31+
run: npm run test
32+
env:
33+
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
34+
- run: npm publish --access public --scope @aave
35+
if: ${{ steps.release.outputs.release_created }}
36+
env:
37+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.env
2+
3+
#Buidler files
4+
cache
5+
artifacts
6+
7+
node_modules
8+
dist/
9+
build/
10+
.vscode
11+
.idea
12+
ts-types/
13+
contracts/hardhat-dependency-compiler/
14+
15+
coverage
16+
.coverage_artifacts
17+
.coverage_cache
18+
.coverage_contracts
19+
typechain
20+
types
21+
deployments

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@aave:registry=https://registry.npmjs.org
2+
engine-strict=true

CHANGELOG.md

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
# Changelog
2+
3+
## [1.56.2](https://github.com/aave/aave-v3-deploy/compare/v1.56.1...v1.56.2) (2024-03-07)
4+
5+
6+
### Bug Fixes
7+
8+
* Bump versions of v3 dependencies ([#61](https://github.com/aave/aave-v3-deploy/issues/61)) ([9583331](https://github.com/aave/aave-v3-deploy/commit/95833310d4547ce349bcd2136827a50b5d3b6490))
9+
10+
## [1.56.1](https://github.com/aave/aave-v3-deploy/compare/v1.56.0...v1.56.1) (2024-03-06)
11+
12+
13+
### Bug Fixes
14+
15+
* Update deployment scripts for test faucet contract ([#59](https://github.com/aave/aave-v3-deploy/issues/59)) ([e2834ec](https://github.com/aave/aave-v3-deploy/commit/e2834ec5cdf7a82b8c7d3f08d3cb5b1fc76e21f2))
16+
17+
## [1.56.0](https://github.com/aave/aave-v3-deploy/compare/v1.55.3...v1.56.0) (2024-02-27)
18+
19+
20+
### Features
21+
22+
* Add task for config of wrapped native token on testnet ([#43](https://github.com/aave/aave-v3-deploy/issues/43)) ([c76e314](https://github.com/aave/aave-v3-deploy/commit/c76e314ab8318b25f1bbb1770af93e4701095ec4))
23+
* add withdraw-and-swap paraswap adapter and add base market ([954a60b](https://github.com/aave/aave-v3-deploy/commit/954a60b24466668e12e088981673796b11225e2a))
24+
* disable faucet task ([776bb91](https://github.com/aave/aave-v3-deploy/commit/776bb914191a49b4c84359c24ddb81e78f031fcf))
25+
26+
27+
### Bug Fixes
28+
29+
* bump v3-core version to 1.19.2 ([#57](https://github.com/aave/aave-v3-deploy/issues/57)) ([32213c0](https://github.com/aave/aave-v3-deploy/commit/32213c0fe306b664fb9d14a88980ce4e3027762a))
30+
* Changes order of actions and rename variable ([2c72c03](https://github.com/aave/aave-v3-deploy/commit/2c72c03f29fc8e1701e68b9666b8f297cba4f79e))
31+
32+
## [1.55.3](https://github.com/aave/aave-v3-deploy/compare/v1.55.2...v1.55.3) (2023-01-25)
33+
34+
35+
### Bug Fixes
36+
37+
* expose deploy-v3 tasks to library ([9b3c9ff](https://github.com/aave/aave-v3-deploy/commit/9b3c9ff598e6b2e36e184faf81b2c2bd2b833b95))
38+
39+
## [1.55.2](https://github.com/aave/aave-v3-deploy/compare/v1.55.1...v1.55.2) (2023-01-24)
40+
41+
42+
### Bug Fixes
43+
44+
* Deploy WETH9 at 00_token_setupts to prevent error when using incentives flag ([0b733d8](https://github.com/aave/aave-v3-deploy/commit/0b733d86f16046e0d929849485132e095adb9b40))
45+
46+
## [1.55.1](https://github.com/aave/aave-v3-deploy/compare/v1.55.0...v1.55.1) (2023-01-24)
47+
48+
49+
### Bug Fixes
50+
51+
* wrong contract name at testnet rewards ([f850675](https://github.com/aave/aave-v3-deploy/commit/f85067576dce21224a899273f7da59ba51b9e759))
52+
53+
## [1.55.0](https://github.com/aave/aave-v3-deploy/compare/v1.54.0...v1.55.0) (2023-01-11)
54+
55+
56+
### Features
57+
58+
* update @aave/core-v3@1.17.1 ([d61194e](https://github.com/aave/aave-v3-deploy/commit/d61194e7dd35613636a9e7b2b3a34f5264b5da74))
59+
60+
## [1.54.0](https://github.com/aave/aave-v3-deploy/compare/v1.53.2...v1.54.0) (2022-12-30)
61+
62+
63+
### Features
64+
65+
* bump periphery dependency to 1.23.1 ([b4ef47e](https://github.com/aave/aave-v3-deploy/commit/b4ef47e17a4a5d809eccf24f5b1e311be793186f))
66+
67+
## [1.53.2](https://github.com/aave/aave-v3-deploy/compare/v1.53.1...v1.53.2) (2022-12-29)
68+
69+
70+
### Miscellaneous Chores
71+
72+
* release 1.53.2 ([24ef3aa](https://github.com/aave/aave-v3-deploy/commit/24ef3aa9e9d096e65477b2686fa390f7481ab2b3))
73+
74+
## [1.53.1](https://github.com/aave/aave-v3-deploy/compare/v1.53.0...v1.53.1) (2022-12-28)
75+
76+
77+
### Bug Fixes
78+
79+
* Rename görli to goerli ([599d34f](https://github.com/aave/aave-v3-deploy/commit/599d34f2030d8ab626d9a99cebe87fa43b5cffc5))
80+
81+
## [1.53.0](https://github.com/aave/aave-v3-deploy/compare/v1.52.0...v1.53.0) (2022-12-22)
82+
83+
84+
### Features
85+
86+
* add ownable task script, add support to view roles for 3.0.0 ([bf1b142](https://github.com/aave/aave-v3-deploy/commit/bf1b1428535e3976610d5512ccf62aff4ddacbfc))
87+
* add tests to ethereum test suite check list ([4952bed](https://github.com/aave/aave-v3-deploy/commit/4952bedecefb7888bc2a6eb14c5d9a1e0bdcbcdd))
88+
* bump core package, fix testnet setup if reserves are set, remove unused imports ([f672dff](https://github.com/aave/aave-v3-deploy/commit/f672dff6c9957bbc6b98c65cb4330a2c658b6202))
89+
* paraswap adapters check ([82fc441](https://github.com/aave/aave-v3-deploy/commit/82fc4418915804ea144888c31bbcb88de93475ef))
90+
* remove deployment of fallback oracle ([0bdc554](https://github.com/aave/aave-v3-deploy/commit/0bdc55421f2c725d35fb262693e759c1f856fad6))
91+
* split ethereum tests by categories: gov, impls, periphery, roles and config ([25de08a](https://github.com/aave/aave-v3-deploy/commit/25de08a5d8908fa099a4f66152115b9d68b9a80f))
92+
* support using treasury from config and adapt tests to new scenario ([a99f705](https://github.com/aave/aave-v3-deploy/commit/a99f7054ba3cb5482accf757193166964d8c900d))
93+
* use pool admin if treasury is not set at config, use deployer if is a testnet market ([5075bfe](https://github.com/aave/aave-v3-deploy/commit/5075bfe29844988cc36b5360e98ead85c5c96dcd))
94+
* use short executor in namedAccounts, remove the transfer of eth before deploy, fix constants.ts declaration ([a5fd516](https://github.com/aave/aave-v3-deploy/commit/a5fd51675ac2695102614fa5446f6129e1609e35))
95+
96+
97+
### Bug Fixes
98+
99+
* renove unused transfer ([ef44a90](https://github.com/aave/aave-v3-deploy/commit/ef44a90741f841a2be713de6aebc16893e4855df))
100+
* reset localhost config ([39f15f7](https://github.com/aave/aave-v3-deploy/commit/39f15f7e5bc0af52a2bf306fc16b1e89239d5478))
101+
* ts error at test config ([b32bdd7](https://github.com/aave/aave-v3-deploy/commit/b32bdd730edd183bcaeb3b0706f45c54e90f3742))
102+
* typechain err ([e8fad89](https://github.com/aave/aave-v3-deploy/commit/e8fad89d250bbccb56b7cc70bfcd4ee09329e733))
103+
* use of === ([c0abbd1](https://github.com/aave/aave-v3-deploy/commit/c0abbd1d93db9b92a6254ec2a2567368c309d3b6))
104+
* use pool admin as owner of paraswap adapters ([02314ad](https://github.com/aave/aave-v3-deploy/commit/02314add6ccb0bf4f12463d599eddb4556058acc))
105+
106+
## [1.52.0](https://github.com/aave/aave-v3-deploy/compare/v1.51.0...v1.52.0) (2022-12-09)
107+
108+
109+
### Features
110+
111+
* permissioned mode for Faucet ([5ef1cb4](https://github.com/aave/aave-v3-deploy/commit/5ef1cb426c6e0ccc8ed595e164ec2a6c0440dc4a))
112+
113+
114+
### Bug Fixes
115+
116+
* keep old deploy tag ([32fdfb5](https://github.com/aave/aave-v3-deploy/commit/32fdfb51241b2387ffd52362aed33d1db180ac47))
117+
118+
## [1.51.0](https://github.com/aave/aave-v3-deploy/compare/v1.50.1...v1.51.0) (2022-11-28)
119+
120+
121+
### Features
122+
123+
* add emission manager transfer of ownership ([36b028f](https://github.com/aave/aave-v3-deploy/commit/36b028f5370e650bdb8d426a5275e338729f9b12))
124+
125+
## 1.50.1 (2022-11-28)
126+
127+
128+
### Bug Fixes
129+
130+
* Bump version of periphery package to 1.21 ([201d939](https://github.com/aave/aave-v3-deploy/commit/201d93998cd364ae3dd07fa36d28a70ed1ccb658))
131+
* Fix rewards imple constructor ([654d586](https://github.com/aave/aave-v3-deploy/commit/654d58633aed630935927db655b657844dc25a9a))
132+
* Use PoolAddressesProvider for Incentives deployment ([1875f2a](https://github.com/aave/aave-v3-deploy/commit/1875f2abb1c2cba322c6dd83f0a672efbff6aa09))
133+
134+
135+
### Miscellaneous Chores
136+
137+
* release 1.50.1 ([cf80147](https://github.com/aave/aave-v3-deploy/commit/cf80147ffe2e326d7bc1f398a8bcfe7232bc7c73))

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM ethereum/solc:0.8.10 as build-deps
2+
3+
FROM node:16
4+
5+
USER node
6+
7+
COPY --from=build-deps /usr/bin/solc /usr/bin/solc

LICENSE.md

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
Business Source License 1.1
2+
3+
License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
4+
"Business Source License" is a trademark of MariaDB Corporation Ab.
5+
6+
---
7+
8+
Parameters
9+
10+
Licensor: Aave
11+
12+
Licensed Work: Aave Deploy V3. The Licensed Work is (c) 2022 Aave
13+
14+
Additional Use Grant: Any uses listed and defined at this [LICENSE](./LICENSE.md)
15+
16+
Change Date: The earlier of 27 January 2023 or a date specified at v3-license-date.aave.eth
17+
18+
Change License: MIT
19+
20+
---
21+
22+
Terms
23+
24+
The Licensor hereby grants you the right to copy, modify, create derivative
25+
works, redistribute, and make non-production use of the Licensed Work. The
26+
Licensor may make an Additional Use Grant, above, permitting limited
27+
production use.
28+
29+
Effective on the Change Date, or the fourth anniversary of the first publicly
30+
available distribution of a specific version of the Licensed Work under this
31+
License, whichever comes first, the Licensor hereby grants you rights under
32+
the terms of the Change License, and the rights granted in the paragraph
33+
above terminate.
34+
35+
If your use of the Licensed Work does not comply with the requirements
36+
currently in effect as described in this License, you must purchase a
37+
commercial license from the Licensor, its affiliated entities, or authorized
38+
resellers, or you must refrain from using the Licensed Work.
39+
40+
All copies of the original and modified Licensed Work, and derivative works
41+
of the Licensed Work, are subject to this License. This License applies
42+
separately for each version of the Licensed Work and the Change Date may vary
43+
for each version of the Licensed Work released by Licensor.
44+
45+
You must conspicuously display this License on each original or modified copy
46+
of the Licensed Work. If you receive the Licensed Work in original or
47+
modified form from a third party, the terms and conditions set forth in this
48+
License apply to your use of that work.
49+
50+
Any use of the Licensed Work in violation of this License will automatically
51+
terminate your rights under this License for the current and all other
52+
versions of the Licensed Work.
53+
54+
This License does not grant you any right in any trademark or logo of
55+
Licensor or its affiliates (provided that you may use a trademark or logo of
56+
Licensor as expressly required by this License).
57+
58+
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
59+
AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
60+
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
61+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
62+
TITLE.
63+
64+
MariaDB hereby grants you permission to use this License’s text to license
65+
your works, and to refer to it using the trademark "Business Source License",
66+
as long as you comply with the Covenants of Licensor below.
67+
68+
---
69+
70+
Covenants of Licensor
71+
72+
In consideration of the right to use this License’s text and the "Business
73+
Source License" name and trademark, Licensor covenants to MariaDB, and to all
74+
other recipients of the licensed work to be provided by Licensor:
75+
76+
1. To specify as the Change License the GPL Version 2.0 or any later version,
77+
or a license that is compatible with GPL Version 2.0 or a later version,
78+
where "compatible" means that software provided under the Change License can
79+
be included in a program with software provided under GPL Version 2.0 or a
80+
later version. Licensor may specify additional Change Licenses without
81+
limitation.
82+
83+
2. To either: (a) specify an additional grant of rights to use that does not
84+
impose any additional restriction on the right granted in this License, as
85+
the Additional Use Grant; or (b) insert the text "None".
86+
87+
3. To specify a Change Date.
88+
89+
4. Not to modify this License in any other way.
90+
91+
---
92+
93+
Notice
94+
95+
The Business Source License (this document, or the "License") is not an Open
96+
Source license. However, the Licensed Work will eventually be made available
97+
under an Open Source License, as stated in this License.

0 commit comments

Comments
 (0)