Skip to content

Commit

Permalink
Merge pull request #59 from Instadapp/paraswap
Browse files Browse the repository at this point in the history
Added Paraswap connector
  • Loading branch information
thrilok209 authored May 2, 2021
2 parents 5a1b37f + 729c79d commit 3aa981d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/abi/connectors/v2/PARASWAP-A.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { AbiItem } from 'web3-utils'

export const PARASWAP_A: AbiItem[] =[{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[{"type":"string","name":"_eventName","internalType":"string"},{"type":"bytes","name":"_eventParam","internalType":"bytes"}],"name":"swap","inputs":[{"type":"address","name":"buyAddr","internalType":"address"},{"type":"address","name":"sellAddr","internalType":"address"},{"type":"uint256","name":"sellAmt","internalType":"uint256"},{"type":"uint256","name":"unitAmt","internalType":"uint256"},{"type":"bytes","name":"callData","internalType":"bytes"},{"type":"uint256","name":"setId","internalType":"uint256"}]}]
5 changes: 4 additions & 1 deletion src/abi/connectors/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import {AAVE_V1_IMPORT_A} from './AAVE-V1-IMPORT-A'
import {AAVE_V2_IMPORT_A} from './AAVE-V2-IMPORT-A'
import {COMPOUND_IMPORT_A} from './COMPOUND-IMPORT-A'
import {INSTAPOOL_A} from './INSTAPOOL-A'
import {PARASWAP_A} from './PARASWAP-A'

export const connectorsV2_M1 = {
"INSTAPOOL-A": INSTAPOOL_A,
"COMPOUND-IMPORT-A": COMPOUND_IMPORT_A,
Expand All @@ -30,5 +32,6 @@ export const connectorsV2_M1 = {
"MAKERDAO-A": MAKERDAO_A,
"UNISWAP-A": UNISWAP_A,
"POLYGON-BRIDGE-A": POLYGON_BRIDGE_A,
"AAVE-STAKE-A": AAVE_STAKE_A
"AAVE-STAKE-A": AAVE_STAKE_A,
"PARASWAP-A": PARASWAP_A
}
3 changes: 2 additions & 1 deletion src/addresses/polygon/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ export const connectorsV2_M1 = {
"AUTHORITY-A": "0xf73C94402BC24148b744083eD02654EEc2C37D5B",
"BASIC-A": "0x1cAF5EC802ca602E98139AD96A8f2B7BC524264E",
"AAVE-CLAIM-A": "0xC7Cb1dE2721BFC0E0DA1b9D526bCdC54eF1C0eFC",
"INSTAPOOL-A": "0x8f1e38c53af7bD2b2bE01b9580911b7Cca504F1b"
"INSTAPOOL-A": "0x8f1e38c53af7bD2b2bE01b9580911b7Cca504F1b",
"PARASWAP-A": "0xBa577Da4cd3DD740c52Ff1193e0409f48569b327"
}

0 comments on commit 3aa981d

Please sign in to comment.