Skip to content

Commit

Permalink
Merge pull request #329 from Instadapp/update-fluid-dex
Browse files Browse the repository at this point in the history
Update fluid dex connector
  • Loading branch information
shriyatyagii authored Nov 4, 2024
2 parents 072254e + 3d04661 commit 2002265
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 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
3 changes: 3 additions & 0 deletions src/abi/connectors/v2/FLUID-VAULT-T2-A.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { AbiItem } from 'web3-utils'

export const FLUID_VAULT_T2_A: AbiItem[] = [{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"vaultAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftId","type":"uint256"},{"indexed":false,"internalType":"int256","name":"newColToken0","type":"int256"},{"indexed":false,"internalType":"int256","name":"newColToken1","type":"int256"},{"indexed":false,"internalType":"int256","name":"colSharesMinMax","type":"int256"},{"indexed":false,"internalType":"int256","name":"newDebt","type":"int256"},{"indexed":false,"internalType":"uint256","name":"repayApproveAmt","type":"uint256"}],"name":"LogOperate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"vaultAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftId","type":"uint256"},{"indexed":false,"internalType":"int256","name":"perfectColShares","type":"int256"},{"indexed":false,"internalType":"int256","name":"token0DepositOrWithdraw","type":"int256"},{"indexed":false,"internalType":"int256","name":"token1DepositOrWithdraw","type":"int256"},{"indexed":false,"internalType":"int256","name":"newDebt","type":"int256"},{"indexed":false,"internalType":"uint256","name":"repayApproveAmt","type":"uint256"}],"name":"LogOperatePerfect","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"vaultAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftId","type":"uint256"},{"indexed":false,"internalType":"int256","name":"perfectColShares","type":"int256"},{"indexed":false,"internalType":"int256","name":"token0DepositOrWithdraw","type":"int256"},{"indexed":false,"internalType":"int256","name":"token1DepositOrWithdraw","type":"int256"},{"indexed":false,"internalType":"int256","name":"newDebt","type":"int256"},{"indexed":false,"internalType":"uint256","name":"repayApproveAmt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"getNftId","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"setIds","type":"uint256[]"}],"name":"LogOperatePerfectWithIds","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"vaultAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftId","type":"uint256"},{"indexed":false,"internalType":"int256","name":"newColToken0","type":"int256"},{"indexed":false,"internalType":"int256","name":"newColToken1","type":"int256"},{"indexed":false,"internalType":"int256","name":"colSharesMinMax","type":"int256"},{"indexed":false,"internalType":"int256","name":"newDebt","type":"int256"},{"indexed":false,"internalType":"uint256","name":"repayApproveAmt","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"getIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"setIds","type":"uint256[]"}],"name":"LogOperateWithIds","type":"event"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"vaultAddress","type":"address"},{"internalType":"uint256","name":"nftId","type":"uint256"},{"internalType":"int256","name":"newColToken0","type":"int256"},{"internalType":"int256","name":"newColToken1","type":"int256"},{"internalType":"int256","name":"colSharesMinMax","type":"int256"},{"internalType":"int256","name":"newDebt","type":"int256"},{"internalType":"uint256","name":"repayApproveAmt","type":"uint256"}],"internalType":"struct FluidVaultT2Connector.OperateHelper","name":"helper_","type":"tuple"}],"name":"operate","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"vaultAddress","type":"address"},{"internalType":"uint256","name":"nftId","type":"uint256"},{"internalType":"int256","name":"perfectColShares","type":"int256"},{"internalType":"int256","name":"colToken0MinMax","type":"int256"},{"internalType":"int256","name":"colToken1MinMax","type":"int256"},{"internalType":"int256","name":"newDebt","type":"int256"},{"internalType":"uint256","name":"repayApproveAmt","type":"uint256"}],"internalType":"struct FluidVaultT2Connector.OperatePerfectHelper","name":"helper_","type":"tuple"}],"name":"operatePerfect","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"vaultAddress","type":"address"},{"internalType":"uint256","name":"nftId","type":"uint256"},{"internalType":"int256","name":"perfectColShares","type":"int256"},{"internalType":"int256","name":"colToken0MinMax","type":"int256"},{"internalType":"int256","name":"colToken1MinMax","type":"int256"},{"internalType":"int256","name":"newDebt","type":"int256"},{"internalType":"uint256","name":"repayApproveAmt","type":"uint256"},{"internalType":"uint256","name":"getNftId","type":"uint256"},{"internalType":"uint256[]","name":"setIds","type":"uint256[]"}],"internalType":"struct FluidVaultT2Connector.OperatePerfectWithIdsHelper","name":"helper_","type":"tuple"}],"name":"operatePerfectWithIds","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"vaultAddress","type":"address"},{"internalType":"uint256","name":"nftId","type":"uint256"},{"internalType":"int256","name":"newColToken0","type":"int256"},{"internalType":"int256","name":"newColToken1","type":"int256"},{"internalType":"int256","name":"colSharesMinMax","type":"int256"},{"internalType":"int256","name":"newDebt","type":"int256"},{"internalType":"uint256","name":"repayApproveAmt","type":"uint256"},{"internalType":"uint256[]","name":"getIds","type":"uint256[]"},{"internalType":"uint256[]","name":"setIds","type":"uint256[]"}],"internalType":"struct FluidVaultT2Connector.OperateWIthIdsHelper","name":"helper_","type":"tuple"}],"name":"operateWithIds","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/FLUID-VAULT-T3-A.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { AbiItem } from 'web3-utils'

export const FLUID_VAULT_T3_A: AbiItem[] = [{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"vaultAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftId","type":"uint256"},{"indexed":false,"internalType":"int256","name":"newCol","type":"int256"},{"indexed":false,"internalType":"int256","name":"newDebtToken0","type":"int256"},{"indexed":false,"internalType":"int256","name":"newDebtToken1","type":"int256"},{"indexed":false,"internalType":"int256","name":"debtSharesMinMax","type":"int256"}],"name":"LogOperate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"vaultAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftId","type":"uint256"},{"indexed":false,"internalType":"int256","name":"newCol","type":"int256"},{"indexed":false,"internalType":"int256","name":"perfectDebtShares","type":"int256"},{"indexed":false,"internalType":"int256","name":"token0BorrowOrPayback","type":"int256"},{"indexed":false,"internalType":"int256","name":"token1BorrowOrPayback","type":"int256"}],"name":"LogOperatePerfect","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"vaultAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftId","type":"uint256"},{"indexed":false,"internalType":"int256","name":"newCol","type":"int256"},{"indexed":false,"internalType":"int256","name":"perfectDebtShares","type":"int256"},{"indexed":false,"internalType":"int256","name":"token0BorrowOrPayback","type":"int256"},{"indexed":false,"internalType":"int256","name":"token1BorrowOrPayback","type":"int256"},{"indexed":false,"internalType":"uint256","name":"getNftId_","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"setIds","type":"uint256[]"}],"name":"LogOperatePerfectWithIds","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"vaultAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftId","type":"uint256"},{"indexed":false,"internalType":"int256","name":"newCol","type":"int256"},{"indexed":false,"internalType":"int256","name":"newDebtToken0","type":"int256"},{"indexed":false,"internalType":"int256","name":"newDebtToken1","type":"int256"},{"indexed":false,"internalType":"int256","name":"debtSharesMinMax","type":"int256"},{"indexed":false,"internalType":"uint256[]","name":"getIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"setIds","type":"uint256[]"}],"name":"LogOperateWithIds","type":"event"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"vaultAddress","type":"address"},{"internalType":"uint256","name":"nftId","type":"uint256"},{"internalType":"int256","name":"newCol","type":"int256"},{"internalType":"int256","name":"newDebtToken0","type":"int256"},{"internalType":"int256","name":"newDebtToken1","type":"int256"},{"internalType":"int256","name":"debtSharesMinMax","type":"int256"}],"internalType":"struct FluidVaultT3Connector.OperateHelper","name":"helper_","type":"tuple"}],"name":"operate","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"vaultAddress","type":"address"},{"internalType":"uint256","name":"nftId","type":"uint256"},{"internalType":"int256","name":"newCol","type":"int256"},{"internalType":"int256","name":"perfectDebtShares","type":"int256"},{"internalType":"int256","name":"debtToken0MinMax","type":"int256"},{"internalType":"int256","name":"debtToken1MinMax","type":"int256"}],"internalType":"struct FluidVaultT3Connector.OperatePerfectHelper","name":"helper_","type":"tuple"}],"name":"operatePerfect","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"vaultAddress","type":"address"},{"internalType":"uint256","name":"nftId","type":"uint256"},{"internalType":"int256","name":"newCol","type":"int256"},{"internalType":"int256","name":"perfectDebtShares","type":"int256"},{"internalType":"int256","name":"debtToken0MinMax","type":"int256"},{"internalType":"int256","name":"debtToken1MinMax","type":"int256"},{"internalType":"uint256","name":"getNftId","type":"uint256"},{"internalType":"uint256[]","name":"setIds","type":"uint256[]"}],"internalType":"struct FluidVaultT3Connector.OperatePerfectWithIdsHelper","name":"helper_","type":"tuple"}],"name":"operatePerfectWithIds","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"vaultAddress","type":"address"},{"internalType":"uint256","name":"nftId","type":"uint256"},{"internalType":"int256","name":"newCol","type":"int256"},{"internalType":"int256","name":"newDebtToken0","type":"int256"},{"internalType":"int256","name":"newDebtToken1","type":"int256"},{"internalType":"int256","name":"debtSharesMinMax","type":"int256"},{"internalType":"uint256[]","name":"getIds","type":"uint256[]"},{"internalType":"uint256[]","name":"setIds","type":"uint256[]"}],"internalType":"struct FluidVaultT3Connector.OperateWIthIdsHelper","name":"helper_","type":"tuple"}],"name":"operateWithIds","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"}]
Loading

0 comments on commit 2002265

Please sign in to comment.