Skip to content

Commit

Permalink
Merge pull request #328 from Instadapp/add-fluid-dex
Browse files Browse the repository at this point in the history
add FLUID-VAULT-T4-A
  • Loading branch information
shriyatyagii authored Oct 21, 2024
2 parents 92d22a6 + 9f93bdf commit 072254e
Show file tree
Hide file tree
Showing 4 changed files with 9 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.6",
"version": "0.7.7",
"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-T4-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_T4_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":"perfectColShares_","type":"int256"},{"indexed":false,"internalType":"int256","name":"token0DepositOrWithdraw","type":"int256"},{"indexed":false,"internalType":"int256","name":"token1DepositOrWithdraw","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":"newColToken0","type":"int256"},{"indexed":false,"internalType":"int256","name":"newColToken1","type":"int256"},{"indexed":false,"internalType":"int256","name":"colSharesMinMax","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":"perfectColShares","type":"int256"},{"internalType":"int256","name":"colToken0MinMax","type":"int256"},{"internalType":"int256","name":"colToken1MinMax","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 FluidVaultT4Connector.ColDebtHelper","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":"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 FluidVaultT4Connector.OperateWIthIdsHelper","name":"helper_","type":"tuple"}],"name":"operateWithIds","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 @@ -140,6 +140,7 @@ import { OKX_A } from "./OKX-A"
import { FLUID_MERKLE_CLAIM_A } from "./FLUID-MERKLE-CLAIM-A"
import { USDS_A } from "./USDS-A"
import { AAVE_V3_ETHERFI } from "./AAVE-V3-ETHERFI"
import { FLUID_VAULT_T4_A } from "./FLUID-VAULT-T4-A"

export const connectorsV2_M1 = {
'MORPHO-REWARDS-A': MORPHO_REWARDS_A,
Expand Down Expand Up @@ -278,5 +279,6 @@ export const connectorsV2_M1 = {
'OKX-A': OKX_A,
'FLUID-MERKLE-CLAIM-A': FLUID_MERKLE_CLAIM_A,
'USDS-A': USDS_A,
'AAVE-V3-ETHERFI': AAVE_V3_ETHERFI
'AAVE-V3-ETHERFI': AAVE_V3_ETHERFI,
'FLUID-VAULT-T4-A': FLUID_VAULT_T4_A
}
3 changes: 2 additions & 1 deletion src/addresses/mainnet/connectorsV2_M1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,6 @@ export const connectorsV2_M1 = {
'ODOS-V2-A': '0xAa48Cca7DCe006F37DBb2e2Ef2dE7ACD5f6F5Dfc',
'FLUID-MERKLE-CLAIM-A': '0xaa9322865E914c625043D8cEc1318ebaD071B365',
'USDS-A': '0xA10c9b8EAba65aB5920b34aB76b9D68DaBc4B3c8',
'AAVE-V3-ETHERFI': '0xf2c3968e5373C58F01C931a589B7cccf0C01163b'
'AAVE-V3-ETHERFI': '0xf2c3968e5373C58F01C931a589B7cccf0C01163b',
'FLUID-VAULT-T4-A': '0x8e390D327D3108EFF56a75Fd7EcE31AB94157175'
}

0 comments on commit 072254e

Please sign in to comment.