Skip to content

Commit

Permalink
feat: add BASIC-D-V2 connector on polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
shriyatyagii committed Feb 12, 2024
1 parent 7bb1697 commit e698b73
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 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.68",
"version": "0.6.69",
"description": "DSA connect",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
3 changes: 3 additions & 0 deletions src/abi/connectors/v2/BASIC-D-V2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
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"}]
4 changes: 3 additions & 1 deletion src/abi/connectors/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ import { AVO_APPROVE_MULTISIG_STAGING_A } from './AVO-APPROVE-MULTISIG-STAGING-A
import { CURVE_USD_A } from './CURVE-USD-A'
import { FLUID_A } from './FLUID-A'
import { MORPHO_BLUE_A } from './MORPHO-BLUE-A'
import { BASIC_D_V2 } from './BASIC-D-V2'

export const connectorsV2_M1 = {
'MORPHO-REWARDS-A': MORPHO_REWARDS_A,
Expand Down Expand Up @@ -234,5 +235,6 @@ export const connectorsV2_M1 = {
'AVO-APPROVE-MULTISIG-STAGING-A': AVO_APPROVE_MULTISIG_STAGING_A,
'CURVE-USD-A': CURVE_USD_A,
'FLUID-A': FLUID_A,
'MORPHO-BLUE-A': MORPHO_BLUE_A
'MORPHO-BLUE-A': MORPHO_BLUE_A,
'BASIC-D-V2': BASIC_D_V2
}
1 change: 1 addition & 0 deletions src/addresses/polygon/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ export const connectorsV2_M1 = {
'AVO-APPROVE-MULTISIG-STAGING-A': '0xBdE3873b1B71422459c3b6707f373c0b0a87EC75',
'FLUID-A': '0xa15c827Ab305ec391B643a91C4ddeA10A3842b34',
'BASIC-D': '0x0B917488c178Ff0AD173f6F3345341C3A2c58620',
'BASIC-D-V2': '0x1d63539bc6fd338579682615Abda6A4Dc2bcc5e4'
}

0 comments on commit e698b73

Please sign in to comment.