Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add flash mint leverage extended contract #48

Merged
merged 60 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
efc5286
feat: extend token interface adding arbitrum address
janndriessen Apr 23, 2024
825f122
add flash mint leveraged extended address
janndriessen Apr 23, 2024
2b10b10
add abi
janndriessen Apr 23, 2024
83e6e08
add new leverage tokens for arbitrum
janndriessen Apr 23, 2024
8c82e5e
add arbitrum chain id
janndriessen Apr 23, 2024
a7b0c52
add getter for flash mint leveraged ext contract
janndriessen Apr 23, 2024
4e7758a
test: add contract getter tests for all new tokens on arbitrum
janndriessen Apr 23, 2024
0fa8193
remove obsolete tests
janndriessen Apr 23, 2024
401cc08
add run utils tests
janndriessen Apr 23, 2024
29a4c05
chore: use two switch
janndriessen Apr 24, 2024
f6a197c
feat: add leverage extended builder
janndriessen Apr 24, 2024
d3d7acf
feat: add empty leverage extended quote provider
janndriessen Apr 24, 2024
c65a5ff
add leverage token data util
janndriessen Apr 24, 2024
aff7e05
feat: update index quote provider to use leverage extended
janndriessen Apr 24, 2024
952514d
feat: add check for contract type
janndriessen Apr 24, 2024
7593c8b
chore: add 0x default url
janndriessen Apr 24, 2024
dbdf1f6
test: use arbitrum
janndriessen Apr 24, 2024
4160f1d
chore: comment unused code for now
janndriessen Apr 24, 2024
a88cf12
test: complete leveraged extended builder tests
janndriessen Apr 24, 2024
b40de3b
chore: add new arguments in index quote provider
janndriessen Apr 24, 2024
00de2b7
chore: remove tested todo
janndriessen Apr 24, 2024
5e8f2e2
ci: run arbitrum tests
janndriessen Apr 24, 2024
a6864c7
lint: use const
janndriessen Apr 24, 2024
b36e609
docs
janndriessen Apr 24, 2024
44de53e
ci: add new env to ci script
janndriessen Apr 24, 2024
27f986c
test: add arbitrum local host provider
janndriessen Apr 24, 2024
89b1972
ci: add running all tests
janndriessen Apr 25, 2024
dd5818b
test: use arbitrum localhost provider
janndriessen Apr 25, 2024
e60fc76
docs
janndriessen Apr 25, 2024
367d16d
test: add tests for leveraged extended redemption quotes
janndriessen Apr 25, 2024
25743f7
ci: update arbitrum tests
janndriessen Apr 25, 2024
30d2fd8
test: improve test reliability
janndriessen Apr 25, 2024
f6d09f1
test: add tests for minting
janndriessen Apr 25, 2024
9ac8db3
feat: add input/output token amount to lev ext quote request
janndriessen Apr 25, 2024
1f0912e
lint
janndriessen May 6, 2024
7a30822
chore: update supported sources
janndriessen May 6, 2024
d0cc5f1
feat: add static call issue
janndriessen May 8, 2024
be31089
chore: remove obsolete issuance call
janndriessen May 10, 2024
c152c0d
test: update tests for leveraged extended
janndriessen May 10, 2024
c8dc4eb
test: fix 0x tests
janndriessen May 10, 2024
f982cf0
test: fix 0x tests
janndriessen May 10, 2024
2cee34b
test: fix 0x tests
janndriessen May 10, 2024
b4c21ca
test: skip gtceth
janndriessen May 10, 2024
63d3b15
feat: add old functions to builder for now
janndriessen May 10, 2024
1a7456a
test: add index quote provider tests for eth2x on arbitrum
janndriessen May 10, 2024
49174bd
test: fix builder tests
janndriessen May 10, 2024
08796b7
test: remove todo. reactivate all tests.
janndriessen May 13, 2024
ac4aa24
chore: remove logs
janndriessen May 13, 2024
f78facb
test: add tests for eth3x
janndriessen May 13, 2024
0c005ec
test: add eth2x tests
janndriessen May 13, 2024
948a085
test: add ieth1x tests
janndriessen May 13, 2024
cea083d
test: update arbitrum test script
janndriessen May 13, 2024
b40d7bb
test: add ibtc1x tests
janndriessen May 13, 2024
6174e6d
test: add btc2x tests
janndriessen May 13, 2024
7e496af
test: add btc3x tests (skip)
janndriessen May 13, 2024
a012a9a
lint
janndriessen May 13, 2024
231c1d1
Update .env.default
janndriessen May 13, 2024
4c3ff51
test: update 0x tests to use const (again)
janndriessen May 13, 2024
7eb3d81
test: update swap data in leverage extended builder test
janndriessen May 13, 2024
09b04a9
test: skip arbitrum integration tests
janndriessen May 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.default
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
INDEX_0X_API=
INDEX_0X_API_KEY=
ARBITRUM_ALCHEMY_API=https://arb-mainnet.g.alchemy.com/v2/[key]
MAINNET_ALCHEMY_API=https://eth-mainnet.alchemyapi.io/v2/[key]
ZEROEX_API_KEY=
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
name: publish

env:
ARBITRUM_ALCHEMY_API: ${{ secrets.ARBITRUM_ALCHEMY_API }}
INDEX_0X_API: ${{ secrets.INDEX_0X_API }}
INDEX_0X_API_KEY: ${{ secrets.INDEX_0X_API_KEY }}
MAINNET_ALCHEMY_API: ${{ secrets.MAINNET_ALCHEMY_API }}
Expand Down Expand Up @@ -32,6 +33,10 @@ jobs:
- run: npm ci
- run: npm run lint
- run: npm run build --if-present
- run: npm run hardhat:arbitrum & npm run test:arbitrum
- run: npm run hardhat & npm run test:utils
- run: npm run hardhat & npm run test:builders
- run: npm run hardhat & npm run test:quote
janndriessen marked this conversation as resolved.
Show resolved Hide resolved
- run: npm run hardhat & npm run test:btc2x
- run: npm run hardhat & npm run test:cdeti
- run: npm run hardhat & npm run test:dseth
Expand Down
14 changes: 14 additions & 0 deletions hardhat.arbitrum.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
require('dotenv').config()

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: '0.8.17',
networks: {
hardhat: {
chainId: 42161,
forking: {
url: process.env.ARBITRUM_ALCHEMY_API,
},
},
},
}
Loading