diff --git a/package.json b/package.json index 14ab365..5a69ec1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dsa-connect", - "version": "0.7.49", + "version": "0.7.50", "description": "DSA connect", "main": "dist/index.js", "module": "dist/index.es.js", diff --git a/src/abi/connectors/v2/FLUID-DEX-V2-MM-A.ts b/src/abi/connectors/v2/FLUID-DEX-V2-MM-A.ts index 318a950..50fa3d2 100644 --- a/src/abi/connectors/v2/FLUID-DEX-V2-MM-A.ts +++ b/src/abi/connectors/v2/FLUID-DEX-V2-MM-A.ts @@ -1,3 +1,125 @@ -import {AbiItem} from 'web3-utils' +import { AbiItem } from 'web3-utils' -export const FLUID_DEX_V2_MM_A: AbiItem[] = [{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"nftId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newEmode","type":"uint256"}],"name":"LogChangeEmode","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"positionType","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"nftId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"positionIndex_","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"actionData","type":"bytes"}],"name":"LogOperate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"positionType","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"nftId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"positionIndex_","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"actionData","type":"bytes"},{"indexed":false,"internalType":"uint256[]","name":"getIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"setIds","type":"uint256[]"}],"name":"LogOperateWithIds","type":"event"},{"inputs":[{"internalType":"uint256","name":"nftId_","type":"uint256"},{"internalType":"uint256","name":"newEmode_","type":"uint256"}],"name":"changeEMode","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":"uint8","name":"positionType_","type":"uint8"},{"internalType":"uint256","name":"nftId_","type":"uint256"},{"internalType":"uint256","name":"positionIndex_","type":"uint256"},{"internalType":"bytes","name":"actionData_","type":"bytes"},{"components":[{"internalType":"address","name":"token0Address","type":"address"},{"internalType":"address","name":"token1Address","type":"address"}],"internalType":"struct TokenAddressParams","name":"tokenAddressParams_","type":"tuple"},{"components":[{"internalType":"uint256","name":"approveAmount0","type":"uint256"},{"internalType":"uint256","name":"approveAmount1","type":"uint256"}],"internalType":"struct ApproveAmountParams","name":"approveAmountParams_","type":"tuple"}],"name":"operate","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"positionType_","type":"uint8"},{"internalType":"uint256","name":"nftId_","type":"uint256"},{"internalType":"uint256","name":"positionIndex_","type":"uint256"},{"internalType":"bytes","name":"actionData_","type":"bytes"},{"components":[{"internalType":"address","name":"token0Address","type":"address"},{"internalType":"address","name":"token1Address","type":"address"}],"internalType":"struct TokenAddressParams","name":"tokenAddressParams_","type":"tuple"},{"components":[{"internalType":"uint256","name":"approveAmount0","type":"uint256"},{"internalType":"uint256","name":"approveAmount1","type":"uint256"}],"internalType":"struct ApproveAmountParams","name":"paybackApproveAmountParams_","type":"tuple"},{"internalType":"uint256[]","name":"getIds_","type":"uint256[]"},{"internalType":"uint256[]","name":"setIds_","type":"uint256[]"}],"name":"operateWithIds","outputs":[{"internalType":"string","name":"_eventName","type":"string"},{"internalType":"bytes","name":"_eventParam","type":"bytes"}],"stateMutability":"payable","type":"function"}] +export const FLUID_DEX_V2_MM_A: AbiItem[] = [ + { + anonymous: false, + inputs: [ + { indexed: false, internalType: 'uint256', name: 'nftId', type: 'uint256' }, + { indexed: false, internalType: 'uint256', name: 'newEmode', type: 'uint256' } + ], + name: 'LogChangeEmode', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { indexed: false, internalType: 'uint8', name: 'positionType', type: 'uint8' }, + { indexed: false, internalType: 'uint256', name: 'nftId', type: 'uint256' }, + { indexed: false, internalType: 'uint256', name: 'positionIndex_', type: 'uint256' }, + { indexed: false, internalType: 'bytes', name: 'actionData', type: 'bytes' } + ], + name: 'LogOperate', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { indexed: false, internalType: 'uint8', name: 'positionType', type: 'uint8' }, + { indexed: false, internalType: 'uint256', name: 'nftId', type: 'uint256' }, + { indexed: false, internalType: 'uint256', name: 'positionIndex_', type: 'uint256' }, + { indexed: false, internalType: 'bytes', name: 'actionData', type: 'bytes' }, + { indexed: false, internalType: 'uint256[]', name: 'getIds', type: 'uint256[]' }, + { indexed: false, internalType: 'uint256[]', name: 'setIds', type: 'uint256[]' } + ], + name: 'LogOperateWithIds', + type: 'event' + }, + { + inputs: [ + { internalType: 'uint256', name: 'nftId_', type: 'uint256' }, + { internalType: 'uint256', name: 'newEmode_', type: 'uint256' } + ], + name: 'changeEMode', + 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: 'uint8', name: 'positionType_', type: 'uint8' }, + { internalType: 'uint256', name: 'nftId_', type: 'uint256' }, + { internalType: 'uint256', name: 'positionIndex_', type: 'uint256' }, + { internalType: 'bytes', name: 'actionData_', type: 'bytes' }, + { + components: [ + { internalType: 'address', name: 'token0Address', type: 'address' }, + { internalType: 'address', name: 'token1Address', type: 'address' } + ], + internalType: 'struct TokenAddressParams', + name: 'tokenAddressParams_', + type: 'tuple' + }, + { + components: [ + { internalType: 'uint256', name: 'approveAmount0', type: 'uint256' }, + { internalType: 'uint256', name: 'approveAmount1', type: 'uint256' } + ], + internalType: 'struct ApproveAmountParams', + name: 'approveAmountParams_', + type: 'tuple' + } + ], + name: 'operate', + outputs: [ + { internalType: 'string', name: '_eventName', type: 'string' }, + { internalType: 'bytes', name: '_eventParam', type: 'bytes' } + ], + stateMutability: 'payable', + type: 'function' + }, + { + inputs: [ + { internalType: 'uint8', name: 'positionType_', type: 'uint8' }, + { internalType: 'uint256', name: 'nftId_', type: 'uint256' }, + { internalType: 'uint256', name: 'positionIndex_', type: 'uint256' }, + { internalType: 'bytes', name: 'actionData_', type: 'bytes' }, + { + components: [ + { internalType: 'address', name: 'token0Address', type: 'address' }, + { internalType: 'address', name: 'token1Address', type: 'address' } + ], + internalType: 'struct TokenAddressParams', + name: 'tokenAddressParams_', + type: 'tuple' + }, + { + components: [ + { internalType: 'uint256', name: 'approveAmount0', type: 'uint256' }, + { internalType: 'uint256', name: 'approveAmount1', type: 'uint256' } + ], + internalType: 'struct ApproveAmountParams', + name: 'paybackApproveAmountParams_', + type: 'tuple' + }, + { internalType: 'uint256[]', name: 'getIds_', type: 'uint256[]' }, + { internalType: 'uint256[]', name: 'setIds_', type: 'uint256[]' } + ], + name: 'operateWithIds', + outputs: [ + { internalType: 'string', name: '_eventName', type: 'string' }, + { internalType: 'bytes', name: '_eventParam', type: 'bytes' } + ], + stateMutability: 'payable', + type: 'function' + } +] diff --git a/src/addresses/polygon/connectorsV2_M1.ts b/src/addresses/polygon/connectorsV2_M1.ts index d94fa45..2ee68d0 100644 --- a/src/addresses/polygon/connectorsV2_M1.ts +++ b/src/addresses/polygon/connectorsV2_M1.ts @@ -68,6 +68,6 @@ export const connectorsV2_M1 = { 'FLUID-VAULT-T3-A': '0x9f96a0E2940b320dFE7Dd4A38BAb0Ab43c703815', 'FLUID-VAULT-T4-A': '0xA6CCb3afBFe4e26C9057Baa9EE90DAba59d56c60', 'OKX-V6-A': '0xEcc4F722cD98d81fF042145E53968e98862CAA9f', - 'FLUID-DEX-V2-MM-A': '0x4C687263C79Ca45915EBe6d79defeedc6569CDAf', + 'FLUID-DEX-V2-MM-A': '0x952f7Dc2e806C796490035f95a4875e180f77351', 'INSTA-MEMORY-UTILS-A': '0x2abAB9F9292AF7FDc9E323D38DB3A2b2559763ED' }