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

BACK-1523: Integrate Integral on Mainnet and Arbitrum #652

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
b80d7c3
Add Integral atomic relayer
IntegralHQ Nov 14, 2022
d00f730
Merge branch 'master' into feature/integral
IntegralHQ Dec 5, 2022
29ba473
Commit 2c50fe9ab1bff5720bf0a66fdc1242cc2777d8e0
IntegralHQ Dec 5, 2022
5a8cbcd
Merge branch 'master' into feature/integral
IntegralHQ Mar 1, 2023
3a9e8f6
Update logic for proxy contract
IntegralHQ Mar 1, 2023
ef9a7ea
Add Arbitrum support
IntegralHQ Aug 21, 2023
f584f9b
Merge branch 'master' into feature/integral
IntegralHQ Aug 21, 2023
958c2ef
Merge branch 'master' into feature/integral
IntegralHQ Apr 9, 2024
34ab4c5
Merge and bring up to date
IntegralHQ Apr 9, 2024
07d7c0b
Merge branch 'master' into aburkut/back-1523-integral
aburkut Apr 17, 2024
f9ce32a
Merge branch 'master' of https://github.com/paraswap/paraswap-dex-lib…
Wertusser Jul 12, 2024
224100d
fix: subgraph url
Wertusser Jul 12, 2024
f7b7be3
fix: new abi
Wertusser Jul 16, 2024
50f9b55
fix: event based state loading, new tests, oracle pricing
Wertusser Jul 16, 2024
0735dcf
fix: update token amounts for test
Wertusser Jul 16, 2024
9c5ae66
fix: univ3 oracle pricing, dexparams
Wertusser Jul 16, 2024
7eb326f
fix: refactor integral context, working e2e tests
Wertusser Jul 16, 2024
c0c2854
fix: remove unused imports, minor event tests fixes
Wertusser Jul 16, 2024
096dabd
chore: add test artifacts
Wertusser Jul 16, 2024
f5f402b
chore: fix e2e test amounts
Wertusser Jul 16, 2024
0050022
3.8.3-integral-dex
Wertusser Jul 16, 2024
e8ae227
fix: missing getPoolIdentifierData
Wertusser Jul 16, 2024
03a5952
3.8.3-integral-dex.1
Wertusser Jul 16, 2024
8baa8fa
Merge branch 'master' of https://github.com/paraswap/paraswap-dex-lib…
Wertusser Aug 19, 2024
6741adc
fix: increase e2e test timeout, update integral pool info
Wertusser Aug 21, 2024
64f3408
fix: add missing gascost
Wertusser Aug 21, 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paraswap/dex-lib",
"version": "3.8.20",
"version": "3.8.3-integral-dex.1",
"main": "build/index.js",
"types": "build/index.d.ts",
"repository": "https://github.com/paraswap/paraswap-dex-lib",
Expand Down
333 changes: 333 additions & 0 deletions src/abi/integral/factory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,333 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "OwnerSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "token0",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "token1",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "pair",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "PairCreated",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "allPairs",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "allPairsLength",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenA",
"type": "address"
},
{
"internalType": "address",
"name": "tokenB",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "collect",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenA",
"type": "address"
},
{
"internalType": "address",
"name": "tokenB",
"type": "address"
},
{
"internalType": "address",
"name": "oracle",
"type": "address"
},
{
"internalType": "address",
"name": "trader",
"type": "address"
}
],
"name": "createPair",
"outputs": [
{
"internalType": "address",
"name": "pair",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "getPair",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenA",
"type": "address"
},
{
"internalType": "address",
"name": "tokenB",
"type": "address"
},
{
"internalType": "uint256",
"name": "fee",
"type": "uint256"
}
],
"name": "setBurnFee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenA",
"type": "address"
},
{
"internalType": "address",
"name": "tokenB",
"type": "address"
},
{
"internalType": "uint256",
"name": "fee",
"type": "uint256"
}
],
"name": "setMintFee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenA",
"type": "address"
},
{
"internalType": "address",
"name": "tokenB",
"type": "address"
},
{
"internalType": "address",
"name": "oracle",
"type": "address"
}
],
"name": "setOracle",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "setOwner",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenA",
"type": "address"
},
{
"internalType": "address",
"name": "tokenB",
"type": "address"
},
{
"internalType": "uint256",
"name": "fee",
"type": "uint256"
}
],
"name": "setSwapFee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenA",
"type": "address"
},
{
"internalType": "address",
"name": "tokenB",
"type": "address"
},
{
"internalType": "address",
"name": "trader",
"type": "address"
}
],
"name": "setTrader",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenA",
"type": "address"
},
{
"internalType": "address",
"name": "tokenB",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading
Loading