Skip to content

Commit

Permalink
Merge pull request #331 from Instadapp/add-zerox-v5
Browse files Browse the repository at this point in the history
add ZEROX-V5-A
  • Loading branch information
shriyatyagii authored Nov 6, 2024
2 parents de14130 + 9761ce0 commit 7b5a017
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 30 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.7.7",
"version": "0.7.8",
"description": "DSA connect",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
27 changes: 1 addition & 26 deletions src/abi/connectors/v2/ZEROX-A.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,3 @@
import { AbiItem } from 'web3-utils'

export const ZEROX_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',
},
]
export const ZEROX_A: AbiItem[] = [{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"buyToken","type":"address"},{"indexed":false,"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":"setId","type":"uint256"}],"name":"LogSwap","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":"swap","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"}]
3 changes: 3 additions & 0 deletions src/abi/connectors/v2/ZEROX-V5-A.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { AbiItem } from 'web3-utils'

export const ZEROX_V5_A: AbiItem[] = [{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"buyToken","type":"address"},{"indexed":false,"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":"setId","type":"uint256"}],"name":"LogSwap","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":"swap","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"}]
4 changes: 3 additions & 1 deletion src/abi/connectors/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ import { AAVE_V3_ETHERFI } from "./AAVE-V3-ETHERFI"
import { FLUID_VAULT_T2_A } from "./FLUID-VAULT-T2-A"
import { FLUID_VAULT_T3_A } from "./FLUID-VAULT-T3-A"
import { FLUID_VAULT_T4_A } from "./FLUID-VAULT-T4-A"
import { ZEROX_V5_A } from "./ZEROX-V5-A"

export const connectorsV2_M1 = {
'MORPHO-REWARDS-A': MORPHO_REWARDS_A,
Expand Down Expand Up @@ -284,5 +285,6 @@ export const connectorsV2_M1 = {
'AAVE-V3-ETHERFI': AAVE_V3_ETHERFI,
'FLUID-VAULT-T2-A': FLUID_VAULT_T2_A,
'FLUID-VAULT-T3-A': FLUID_VAULT_T3_A,
'FLUID-VAULT-T4-A': FLUID_VAULT_T4_A
'FLUID-VAULT-T4-A': FLUID_VAULT_T4_A,
'ZEROX-V5-A': ZEROX_V5_A
}
5 changes: 3 additions & 2 deletions src/addresses/mainnet/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const connectorsV2_M1 = {
'PARASWAP-V5-A': '0x888d85fe4eafe3d462f11faa1b22c0d860be8f3f',
'UNIVERSE-A': '0xd7a7296623c56f884b0a753ebd6653911f3986ca',
'PARASWAP-A': '0x888d85fe4eafe3d462f11faa1b22c0d860be8f3f',
'ZEROX-A': '0x4354e07ef8a68e5c24b343e74b2574cbdd05ec81',
'ZEROX-A': '0xebB17b077FD2BD29422eE5Ed8E5DA0c506748A25',
'ZEROX-V4-A': '0x4354e07ef8a68e5c24b343e74b2574cbdd05ec81',
'SUSHISWAP-A': '0x90D45f987bCad6DD7FB5fE0994124D455cf30Bca',
'UBIQUITY-A': '0x8EC066D75d665616A94F2EccDBE49b54eAeefc78',
Expand Down Expand Up @@ -121,5 +121,6 @@ export const connectorsV2_M1 = {
'AAVE-V3-ETHERFI': '0xf2c3968e5373C58F01C931a589B7cccf0C01163b',
'FLUID-VAULT-T2-A': '0x2Edf4cc84989Aa31C74ea69bc5166a4C287f0dFb',
'FLUID-VAULT-T3-A': '0x18C8E1a43D12B218a2142d36aA0e885b39e5e8F6',
'FLUID-VAULT-T4-A': '0xD1574167A8EB19b006ae6F93Bc96d320a9a0C3C6'
'FLUID-VAULT-T4-A': '0xD1574167A8EB19b006ae6F93Bc96d320a9a0C3C6',
'ZEROX-V5-A': '0xebB17b077FD2BD29422eE5Ed8E5DA0c506748A25'
}

0 comments on commit 7b5a017

Please sign in to comment.