Skip to content

fix: BASIC-D-V2 addresses and abi #352

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

Merged
merged 1 commit into from
May 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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": "dsa-connect",
"version": "0.7.24",
"version": "0.7.25",
"description": "DSA connect",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
122 changes: 121 additions & 1 deletion src/abi/connectors/v2/BASIC-D-V2.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,123 @@
import { AbiItem } from 'web3-utils'

export const BASIC_D_V2: AbiItem[] = [{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"underlyingAmt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sharesReceieved","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"getId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"setId","type":"uint256"}],"name":"LogDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"shareAmt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensDeposited","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"getId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"setId","type":"uint256"}],"name":"LogMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"shareAmt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"underlyingAmtReceieved","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"getId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"setId","type":"uint256"}],"name":"LogRedeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"underlyingAmt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sharedBurned","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"getId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"setId","type":"uint256"}],"name":"LogWithdraw","type":"event"},{"inputs":[{"internalType":"address","name":"vaultToken","type":"address"},{"internalType":"uint256","name":"underlyingAmt","type":"uint256"},{"internalType":"uint256","name":"getId","type":"uint256"},{"internalType":"uint256","name":"setId","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"vaultToken","type":"address"},{"internalType":"uint256","name":"shareAmt","type":"uint256"},{"internalType":"uint256","name":"getId","type":"uint256"},{"internalType":"uint256","name":"setId","type":"uint256"}],"name":"mint","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"vaultToken","type":"address"},{"internalType":"uint256","name":"shareAmt","type":"uint256"},{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"getId","type":"uint256"},{"internalType":"uint256","name":"setId","type":"uint256"}],"name":"redeem","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"vaultToken","type":"address"},{"internalType":"uint256","name":"underlyingAmt","type":"uint256"},{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"getId","type":"uint256"},{"internalType":"uint256","name":"setId","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"nonpayable","type":"function"}]
export const BASIC_D_V2: AbiItem[] = [
{
anonymous: false,
inputs: [
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
{ indexed: false, internalType: 'uint256', name: 'underlyingAmt', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'sharesReceieved', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'LogDeposit',
type: 'event'
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
{ indexed: false, internalType: 'uint256', name: 'shareAmt', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'tokensDeposited', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'LogMint',
type: 'event'
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
{ indexed: false, internalType: 'uint256', name: 'shareAmt', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'underlyingAmtReceieved', type: 'uint256' },
{ indexed: false, internalType: 'address', name: 'to', type: 'address' },
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'LogRedeem',
type: 'event'
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
{ indexed: false, internalType: 'uint256', name: 'underlyingAmt', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'sharedBurned', type: 'uint256' },
{ indexed: true, internalType: 'address', name: 'to', type: 'address' },
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'LogWithdraw',
type: 'event'
},
{
inputs: [
{ internalType: 'address', name: 'vaultToken', type: 'address' },
{ internalType: 'uint256', name: 'underlyingAmt', type: 'uint256' },
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
{ internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'deposit',
outputs: [
{ internalType: 'string', name: '_eventName', type: 'string' },
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' }
],
stateMutability: 'payable',
type: 'function'
},
{
inputs: [
{ internalType: 'address', name: 'vaultToken', type: 'address' },
{ internalType: 'uint256', name: 'shareAmt', type: 'uint256' },
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
{ internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'mint',
outputs: [
{ internalType: 'string', name: '_eventName', type: 'string' },
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' }
],
stateMutability: 'payable',
type: 'function'
},
{
inputs: [],
name: 'name',
outputs: [{ internalType: 'string', name: '', type: 'string' }],
stateMutability: 'view',
type: 'function'
},
{
inputs: [
{ internalType: 'address', name: 'vaultToken', type: 'address' },
{ internalType: 'uint256', name: 'shareAmt', type: 'uint256' },
{ internalType: 'address payable', name: 'to', type: 'address' },
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
{ internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'redeem',
outputs: [
{ internalType: 'string', name: '_eventName', type: 'string' },
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' }
],
stateMutability: 'payable',
type: 'function'
},
{
inputs: [
{ internalType: 'address', name: 'vaultToken', type: 'address' },
{ internalType: 'uint256', name: 'underlyingAmt', type: 'uint256' },
{ internalType: 'address payable', name: 'to', type: 'address' },
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
{ internalType: 'uint256', name: 'setId', type: 'uint256' }
],
name: 'withdraw',
outputs: [
{ internalType: 'string', name: '_eventName', type: 'string' },
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' }
],
stateMutability: 'payable',
type: 'function'
}
]
2 changes: 1 addition & 1 deletion src/addresses/arbitrum/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const connectorsV2_M1 = {
'PARASWAP-V6-A': '0x8E2BfE61aBC48435283bE78Ca0fe053b1BF24E69',
'FLUID-A': '0x1b5687b3132a88120Cf41B58d6d454A6015ea0a2',
'FLUID-STAKING-A': '0xDb08a687bC3Cf7127F7933146D08d1De2a73ef87',
'BASIC-D-V2': '0x389657de20592A0F5aD9eb4De44fE8293616B751',
'BASIC-D-V2': '0x882bbfcc54DB17FF403d337A2e1b19b06f6b47a0',
'INSTAPOOL-D': '0x65f244005B002ecD701Eb44F042d64CCE1bb8D1b',
'FLUID-ARB-CLAIM-A': '0x95596f9C4477861C313B1dD5e20aCd1f3DFBc092',
'ODOS-V2-A': '0xf52AE7868e01074EaAd587060d75e996baed9aEF',
Expand Down
2 changes: 1 addition & 1 deletion src/addresses/base/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const connectorsV2_M1 = {
'PARASWAP-V6-A': '0xf066769946726AC68caA08D101F89ae8d198622c',
'INSTAPOOL-D': '0x3Ca137EC191299481472f7d7F72ce63586D4C4A8',
'FLUID-A': '0x671E98Cd55587CFf8bA192489fFd968D804757D7',
'BASIC-D-V2': '0x748Fbb99DE5a89a506AB1DDF15839368402bEb4F',
'BASIC-D-V2': '0x012173245e401BAd0cB763C2d7BB2D21b7BE4e5f',
'MORPHO-BLUE-A': '0x38cB414DA0620F2D7Ec3A9A1f185D519270F9538',
'OKX-A': '0x0cAF0705a21Be560690A14e4e6D61A3A167fB026',
'ODOS-V2-A': '0x5523AFAdCd20310569A61694dA0B8F47EF991690',
Expand Down
2 changes: 1 addition & 1 deletion src/addresses/mainnet/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const connectorsV2_M1 = {
'MORPHO-BLUE-A': '0x09d898D2F1971C5481c3f3ADD63F21fB9a2b18D9',
'INSTAPOOL-D': '0xea024933751E886E79990699d6B50929B0151c7D',
'FLUID-A': '0x76B23A4BF3ffd9dC96844EdF6D9d53a39165738A',
'BASIC-D-V2': '0xF515151eb049918C9e60A40B9fA51a0847A511c6',
'BASIC-D-V2': '0x226Ba6494f561fe768EaB6e36e7eaA484ed79A2C',
'SPARK-IMPORT-PERMIT-A': '0x01C9da8154CC35e12B5C368990b369b8d0aC6CD2',
'SPARK-IMPORT-A': '0x1098e93365029982362F97Aebe7b64aaa2101b9f',
'FLUID-STAKING-A': '0xb4a34D9c7b9038136fa1C124fe391E96C7387730',
Expand Down
2 changes: 1 addition & 1 deletion src/addresses/polygon/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const connectorsV2_M1 = {
'AVO-APPROVE-MULTISIG-STAGING-A': '0xBdE3873b1B71422459c3b6707f373c0b0a87EC75',
'FLUID-A': '0x2553c9aAD9D5af35c8F3b1822d21A3d869B4F6aB',
'BASIC-D': '0x0B917488c178Ff0AD173f6F3345341C3A2c58620',
'BASIC-D-V2': '0x1d63539bc6fd338579682615Abda6A4Dc2bcc5e4',
'BASIC-D-V2': '0x3da0dbaA03f361b0B2DB060bbd47Fa49b92Cdf5F',
'FLUID-STAKING-A': '0xFF93C10FB34f7069071D0679c45ed77A98f37f21',
'PARASWAP-V6-A': '0xc6639CE123d779fE6eA545B70CbDc1dCA421740d',
'INSTAPOOL-D': '0xf2Ab6FF3707752557a8410e2cFc7F48B4E248Fa0',
Expand Down