-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #329 from Instadapp/update-fluid-dex
Update fluid dex connector
- Loading branch information
Showing
6 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}] |
Oops, something went wrong.