Skip to content

Commit

Permalink
Merge pull request #300 from Instadapp/feat/paraswap-v6
Browse files Browse the repository at this point in the history
  • Loading branch information
thrilok209 authored Jun 26, 2024
2 parents b22edf2 + ac2d82e commit 237388f
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dsa-connect",
"version": "0.6.81",
"version": "0.6.82",
"description": "DSA connect",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
28 changes: 28 additions & 0 deletions src/abi/connectors/v2/PARASWAP-V6-A.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { AbiItem } from 'web3-utils'

export const PARASWAP_V6_A: AbiItem[] = [
{
inputs: [],
name: 'name',
outputs: [{ internalType: 'string', name: '', type: 'string' }],
stateMutability: 'view',
type: 'function'
},
{
inputs: [
{ internalType: 'address', name: 'buyAddr', type: 'address' },
{ internalType: 'address', name: 'sellAddr', type: 'address' },
{ internalType: 'uint256', name: 'sellAmt', type: 'uint256' },
{ internalType: 'uint256', name: 'unitAmt', type: 'uint256' },
{ internalType: 'bytes', name: 'callData', type: 'bytes' },
{ internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'swap',
outputs: [
{ internalType: 'string', name: '_eventName', type: 'string' },
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' }
],
stateMutability: 'payable',
type: 'function'
}
]
2 changes: 2 additions & 0 deletions src/abi/connectors/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ import { WEETH_A } from "./WEETH-A"
import { EETH_A } from "./EETH-A"

import { FLUID_INST_CLAIM_A } from "./FLUID-INST-CLAIM-A"
import { PARASWAP_V6_A } from "./PARASWAP-V6-A"

export const connectorsV2_M1 = {
'MORPHO-REWARDS-A': MORPHO_REWARDS_A,
Expand Down Expand Up @@ -257,4 +258,5 @@ export const connectorsV2_M1 = {
'WEETH-A': WEETH_A,
'EETH-A': EETH_A,
'FLUID-INST-CLAIM-A': FLUID_INST_CLAIM_A,
'PARASWAP-V6-A': PARASWAP_V6_A,
}
3 changes: 2 additions & 1 deletion src/addresses/arbitrum/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ export const connectorsV2_M1 = {
'COMPOUND-V3-REWARDS-A': '0x832925F26de92062fca39262aC90939Ed508325b',
'KYBER-AGGREGATOR-A': '0x3B46E32D158db274769601fF9fA306a2c7dfcdd0',
'AVO-APPROVE-MULTISIG-A': '0x1852C8b7FD63D8D8749cA8DBd98d9fad9Ccc7AC7',
'AVO-APPROVE-MULTISIG-STAGING-A': '0xDF1B85eDBbD6DC34713dFF3c0400AD08292d1B70'
'AVO-APPROVE-MULTISIG-STAGING-A': '0xDF1B85eDBbD6DC34713dFF3c0400AD08292d1B70',
'PARASWAP-V6-A': '0x8E2BfE61aBC48435283bE78Ca0fe053b1BF24E69',
}
1 change: 1 addition & 0 deletions src/addresses/avalanche/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ export const connectorsV2_M1 = {
'KYBER-AGGREGATOR-A': '0xA99c0a10e25a5b9E2F937bA00dFD268c4489023b',
'AVO-APPROVE-MULTISIG-A': '0x8De45b985A62639eCfC4c8A898E65426b6cBeE07',
'AVO-APPROVE-MULTISIG-STAGING-A': '0x832925F26de92062fca39262aC90939Ed508325b',
'PARASWAP-V6-A': '0x8b69e301EC529A96898a4b386E094D60F241a608',
}
3 changes: 2 additions & 1 deletion src/addresses/base/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ export const connectorsV2_M1 = {
'INSTAPOOL-C': '0xbd45DfF3320b0d832C61fb41489fdd3a1b960067',
'AVO-APPROVE-MULTISIG-A': '0xf2Ab6FF3707752557a8410e2cFc7F48B4E248Fa0',
'AVO-APPROVE-MULTISIG-STAGING-A': '0x5C122207f668D3fE345465Ac447b3FEF627f4963',
'KYBER-AGGREGATOR-A': '0x6ca5658D944aF44545f00781da8195F8AaFDF5E3'
'KYBER-AGGREGATOR-A': '0x6ca5658D944aF44545f00781da8195F8AaFDF5E3',
'PARASWAP-V6-A': '0xf066769946726AC68caA08D101F89ae8d198622c',
}
1 change: 1 addition & 0 deletions src/addresses/mainnet/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,5 @@ export const connectorsV2_M1 = {
'EETH-A':'0x05F471Be16c25ae233A21614A4C3edc2e2120F78',
'WEETH-A':'0xE9C471bAd195Fc2206269BA4B1F001F93036e404',
'FLUID-INST-CLAIM-A': '0xA846B6E912F03831137Ce3C0349D784F8d51cE78',
'PARASWAP-V6-A': '0x6e5484d041aF87CD6C95cd95bd5bE7eA786098D3',
}
1 change: 1 addition & 0 deletions src/addresses/optimism/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ export const connectorsV2_M1 = {
'KYBER-AGGREGATOR-A': '0x3B46E32D158db274769601fF9fA306a2c7dfcdd0',
'AVO-APPROVE-MULTISIG-A': '0xB914F104dbBd43bc71BE3CaaD97F9bd6f256E67D',
'AVO-APPROVE-MULTISIG-STAGING-A': '0x0Ac1eab0fBe7d57881C4C9626eD493E5809CbDd9',
'PARASWAP-V6-A': '0xcDAb2C496A96B6Df19f3f305933088eE2d74C5bA',
}
1 change: 1 addition & 0 deletions src/addresses/polygon/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ export const connectorsV2_M1 = {
'BASIC-D': '0x0B917488c178Ff0AD173f6F3345341C3A2c58620',
'BASIC-D-V2': '0x1d63539bc6fd338579682615Abda6A4Dc2bcc5e4',
'FLUID-STAKING-A': '0xFF93C10FB34f7069071D0679c45ed77A98f37f21',
'PARASWAP-V6-A': '0xc6639CE123d779fE6eA545B70CbDc1dCA421740d',
}

0 comments on commit 237388f

Please sign in to comment.