Skip to content

Commit

Permalink
Merge pull request #294 from Instadapp/add-1inch-v6
Browse files Browse the repository at this point in the history
update: 1INCH-A and 1INCH-V6-A on all chains
  • Loading branch information
shriyatyagii authored Apr 15, 2024
2 parents d9133e1 + 51f569a commit 3264f05
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 91 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.76",
"version": "0.6.77",
"description": "DSA connect",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
85 changes: 1 addition & 84 deletions src/abi/connectors/v2/1INCH-A.ts
Original file line number Diff line number Diff line change
@@ -1,86 +1,3 @@
import { AbiItem } from 'web3-utils'

export const ONEINCH_A: AbiItem[] = [{
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "buyToken",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "sellToken",
"type": "address"
}, {
"indexed": false,
"internalType": "uint256",
"name": "buyAmt",
"type": "uint256"
}, {
"indexed": false,
"internalType": "uint256",
"name": "sellAmt",
"type": "uint256"
}, {
"indexed": false,
"internalType": "uint256",
"name": "getId",
"type": "uint256"
}, {
"indexed": false,
"internalType": "uint256",
"name": "setId",
"type": "uint256"
}],
"name": "LogSell",
"type": "event"
}, {
"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": "sell",
"outputs": [{
"internalType": "string",
"name": "_eventName",
"type": "string"
}, {
"internalType": "bytes",
"name": "_eventParam",
"type": "bytes"
}],
"stateMutability": "payable",
"type": "function"
}]
export const ONEINCH_A: AbiItem[] = [{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyToken","type":"address"},{"indexed":true,"internalType":"address","name":"sellToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"buyAmt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sellAmt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"getId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"setId","type":"uint256"}],"name":"LogSell","type":"event"},{"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":"sell","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"}]
5 changes: 3 additions & 2 deletions src/addresses/arbitrum/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export const connectorsV2_M1 = {
'1INCH-V5-A': '0x573a8A24AdbD582f1Fa8e7298450b26ebaC0cb23',
'1INCH-V4-A': '0x929376C77A2fB8152375a089a4Fccf84Ff481479',
'1INCH-V3-A ': '0xA4BF319968986D2352FA1c550D781bBFCCE3FcaB',
'1INCH-A': '0x573a8A24AdbD582f1Fa8e7298450b26ebaC0cb23',
'1INCH-A': '0xcDAb2C496A96B6Df19f3f305933088eE2d74C5bA',
'1INCH-V6-A': '0xcDAb2C496A96B6Df19f3f305933088eE2d74C5bA',
'SUSHISWAP-A': '0x8a7fCeE0e1Ff6DB33C7E83060c18e3B97915A970',
'UNISWAP-V3-STAKER-B': '0x8dA60dee0815a08d16C066b07814b10722fA9306',
'UNISWAP-V3-ROUTER-A': '0xe8044B88a98f893e6d17AE4267a2B2694Ed28dCB',
Expand All @@ -34,5 +35,5 @@ 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'
}
3 changes: 2 additions & 1 deletion src/addresses/avalanche/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export const connectorsV2_M1 = {
'ZEROX-A': '0x929376C77A2fB8152375a089a4Fccf84Ff481479',
'ZEROX-V4-A': '0x929376C77A2fB8152375a089a4Fccf84Ff481479',
'SUSHISWAP-A': '0x8dA60dee0815a08d16C066b07814b10722fA9306',
'1INCH-A': '0x9a679731031E9f3b823eB913bB343EDFEFa4A590',
'1INCH-A': '0x2360Ac6C1F061c5A5Af797FD195bA6B00b3d48Ee',
'1INCH-V6-A': '0x2360Ac6C1F061c5A5Af797FD195bA6B00b3d48Ee',
'1INCH-V4-A': '0x63995c71e2f57d0aF786485E255A805603e54e76',
'1INCH-V5-A': '0x9a679731031E9f3b823eB913bB343EDFEFa4A590',
'PANGOLIN-A': '0x6798A4fe4420F08De26Ff3062492C057c4eB9a74',
Expand Down
3 changes: 2 additions & 1 deletion src/addresses/mainnet/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const connectorsV2_M1 = {
'1INCH-A': '0x1D2663d4E2a58323ae63CC571375934AD9c993EC',
'1INCH-A': '0xD30EaEafdD6C25602d788520995cd1b40F34F02B',
'1INCH-V6-A': '0xD30EaEafdD6C25602d788520995cd1b40F34F02B',
'1INCH-V5-A': '0x1D2663d4E2a58323ae63CC571375934AD9c993EC',
'1INCH-V4-A': '0x16ac1e894abb854519243e9ff982673ab5497549',
'1INCH-V3-A': '0x235fca310ac7be45c7ad45f111203468743e4b7c',
Expand Down
3 changes: 2 additions & 1 deletion src/addresses/optimism/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export const connectorsV2_M1 = {
'UNISWAP-V3-STAKE-A': '0xbB590B0FC4080E434adAc39a51DC9eE3335dbf09',
'1INCH-V5-A': '0x0eB52EA210001EddB5CECd375139Aa60c4207ba5',
'1INCH-V4-A': '0x7552c5C0735a7F3D24819a951D15F7CFA1CdA039',
'1INCH-A': '0x0eB52EA210001EddB5CECd375139Aa60c4207ba5',
'1INCH-A': '0x1852C8b7FD63D8D8749cA8DBd98d9fad9Ccc7AC7',
'1INCH-V6-A': '0x1852C8b7FD63D8D8749cA8DBd98d9fad9Ccc7AC7',
'UNISWAP-V3-STAKER-B': '0x16ac1E894AbB854519243e9Ff982673AB5497549',
'UNISWAP-V3-ROUTER-A': '0xd88D827d458B2D20CcaEf9F7976cdEc68831AB96',
'AAVE-V3-A': '0x89566CD6302EC9730970BB4E9374d9329b756E2C',
Expand Down
2 changes: 1 addition & 1 deletion src/addresses/polygon/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const connectorsV2_M1 = {
'1INCH-A': '0x2b332AA24F07dC8b3D978e37b4194012A1538Bf6',
'1INCH-A': '0x30F1478600280Ce234C4d93652d91e6B15041C61',
'1INCH-V5-A': '0x2b332AA24F07dC8b3D978e37b4194012A1538Bf6',
'1INCH-V6-A': '0x30F1478600280Ce234C4d93652d91e6B15041C61',
'1INCH-V4-A': '0x63995c71e2f57d0aF786485E255A805603e54e76',
Expand Down

0 comments on commit 3264f05

Please sign in to comment.