@dhedge/v2-sdk 1.10.16 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/pool.d.ts +5 -5
- package/dist/services/compound/lending.d.ts +4 -3
- package/dist/services/uniswap/V3Liquidity.d.ts +1 -1
- package/dist/test/constants.d.ts +9 -4
- package/dist/test/wallet.d.ts +1 -1
- package/dist/types.d.ts +1 -2
- package/dist/v2-sdk.cjs.development.js +210 -1256
- package/dist/v2-sdk.cjs.development.js.map +1 -1
- package/dist/v2-sdk.cjs.production.min.js +1 -1
- package/dist/v2-sdk.cjs.production.min.js.map +1 -1
- package/dist/v2-sdk.esm.js +210 -1256
- package/dist/v2-sdk.esm.js.map +1 -1
- package/package.json +3 -2
- package/src/abi/fluid/IFToken.json +27 -0
- package/src/config.ts +14 -17
- package/src/entities/pool.ts +64 -58
- package/src/services/compound/lending.ts +50 -11
- package/src/services/uniswap/V3Liquidity.ts +5 -16
- package/src/test/constants.ts +11 -6
- package/src/test/fluid.test.ts +90 -0
- package/src/test/oneInch.test.ts +16 -4
- package/src/test/wallet.ts +1 -1
- package/src/types.ts +1 -2
- package/src/abi/IShadowNonfungiblePositionManager.json +0 -697
|
@@ -4254,7 +4254,7 @@ var ManagerLogic = {
|
|
|
4254
4254
|
Network["OPTIMISM"] = "optimism";
|
|
4255
4255
|
Network["ARBITRUM"] = "arbitrum";
|
|
4256
4256
|
Network["BASE"] = "base";
|
|
4257
|
-
Network["
|
|
4257
|
+
Network["ETHEREUM"] = "ethereum";
|
|
4258
4258
|
})(exports.Network || (exports.Network = {}));
|
|
4259
4259
|
|
|
4260
4260
|
(function (Dapp) {
|
|
@@ -4279,7 +4279,6 @@ var ManagerLogic = {
|
|
|
4279
4279
|
Dapp["PANCAKECL"] = "pancakeCL";
|
|
4280
4280
|
Dapp["COMPOUNDV3"] = "compoundV3";
|
|
4281
4281
|
Dapp["ODOS"] = "odos";
|
|
4282
|
-
Dapp["SHADOWCL"] = "shadowCL";
|
|
4283
4282
|
Dapp["PENDLE"] = "pendle";
|
|
4284
4283
|
})(exports.Dapp || (exports.Dapp = {}));
|
|
4285
4284
|
|
|
@@ -4305,19 +4304,19 @@ var ManagerLogic = {
|
|
|
4305
4304
|
Transaction["REMOVE_LIQUIDITY_UNSTAKE"] = "removeLiquidityAndUnstake";
|
|
4306
4305
|
})(exports.Transaction || (exports.Transaction = {}));
|
|
4307
4306
|
|
|
4308
|
-
var _factoryAddress, _Network$POLYGON, _Network$OPTIMISM, _Network$ARBITRUM, _Network$BASE, _Network$
|
|
4307
|
+
var _factoryAddress, _Network$POLYGON, _Network$OPTIMISM, _Network$ARBITRUM, _Network$BASE, _Network$ETHEREUM, _routerAddress, _Network$POLYGON2, _dappFactoryAddress, _Network$POLYGON3, _Network$OPTIMISM2, _Network$ARBITRUM2, _Network$BASE2, _stakingAddress, _Network$POLYGON4, _Network$OPTIMISM3, _Network$ARBITRUM3, _Network$BASE3, _Network$ETHEREUM2, _aaveAddressProvider, _Network$POLYGON5, _Network$OPTIMISM4, _Network$ARBITRUM4, _Network$BASE4, _nonfungiblePositionM, _networkChainIdMap, _balancerSubgraph, _multiCallAddress, _lyraNetworkMap, _flatMoneyContractAdd;
|
|
4309
4308
|
|
|
4310
4309
|
require("dotenv").config();
|
|
4311
4310
|
|
|
4312
|
-
var factoryAddress = (_factoryAddress = {}, _factoryAddress[exports.Network.POLYGON] = process.env.STAGING_CONTRACTS ? "0xDd87eCdB10cFF7004276AAbAbd30e7a08F69bb53" : "0xfdc7b8bFe0DD3513Cc669bB8d601Cb83e2F69cB0", _factoryAddress[exports.Network.OPTIMISM] = "0x5e61a079A178f0E5784107a4963baAe0c5a680c6", _factoryAddress[exports.Network.ARBITRUM] = "0xfffb5fb14606eb3a548c113026355020ddf27535", _factoryAddress[exports.Network.BASE] = "0x49Afe3abCf66CF09Fab86cb1139D8811C8afe56F", _factoryAddress[exports.Network.
|
|
4313
|
-
var routerAddress = (_routerAddress = {}, _routerAddress[exports.Network.POLYGON] = (_Network$POLYGON = {}, _Network$POLYGON[exports.Dapp.SUSHISWAP] = "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", _Network$POLYGON[exports.Dapp.AAVE] = "0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf", _Network$POLYGON[exports.Dapp.AAVEV3] = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", _Network$POLYGON[exports.Dapp.ONEINCH] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$POLYGON[exports.Dapp.QUICKSWAP] = "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff", _Network$POLYGON[exports.Dapp.BALANCER] = "0xBA12222222228d8Ba445958a75a0704d566BF2C8", _Network$POLYGON[exports.Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$POLYGON[exports.Dapp.ARRAKIS] = "0xc73fb100a995b33f9fa181d420f4c8d74506df66", _Network$POLYGON[exports.Dapp.TOROS] = "0x45b90480D6F643dE2f128db091A357C3c90399f2", _Network$POLYGON[exports.Dapp.ODOS] = "0x4e3288c9ca110bcc82bf38f09a7b425c095d92bf", _Network$POLYGON), _routerAddress[exports.Network.OPTIMISM] = (_Network$OPTIMISM = {}, _Network$OPTIMISM[exports.Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$OPTIMISM[exports.Dapp.SYNTHETIX] = "0x8700dAec35aF8Ff88c16BdF0418774CB3D7599B4", _Network$OPTIMISM[exports.Dapp.AAVEV3] = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", _Network$OPTIMISM[exports.Dapp.ONEINCH] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$OPTIMISM[exports.Dapp.TOROS] = "0x2Ed1bd7f66e47113672f3870308b5E867C5bb743", _Network$OPTIMISM[exports.Dapp.VELODROME] = "0x9c12939390052919aF3155f41Bf4160Fd3666A6f", _Network$OPTIMISM[exports.Dapp.VELODROMEV2] = "0xa062ae8a9c5e11aaa026fc2670b0d65ccc8b2858", _Network$OPTIMISM[exports.Dapp.LYRA] = "0xCCE7819d65f348c64B7Beb205BA367b3fE33763B", _Network$OPTIMISM[exports.Dapp.ARRAKIS] = "0x9ce88a56d120300061593eF7AD074A1B710094d5", _Network$OPTIMISM[exports.Dapp.ODOS] = "0xca423977156bb05b13a2ba3b76bc5419e2fe9680", _Network$OPTIMISM[exports.Dapp.PENDLE] = "0x888888888889758F76e7103c6CbF23ABbF58F946", _Network$OPTIMISM), _routerAddress[exports.Network.ARBITRUM] = (_Network$ARBITRUM = {}, _Network$ARBITRUM[exports.Dapp.ONEINCH] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$ARBITRUM[exports.Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$ARBITRUM[exports.Dapp.AAVEV3] = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", _Network$ARBITRUM[exports.Dapp.BALANCER] = "0xBA12222222228d8Ba445958a75a0704d566BF2C8", _Network$ARBITRUM[exports.Dapp.RAMSES] = "0xaaa87963efeb6f7e0a2711f397663105acb1805e", _Network$ARBITRUM[exports.Dapp.TOROS] = "0xA5679C4272A056Bb83f039961fae7D99C48529F5", _Network$ARBITRUM[exports.Dapp.ODOS] = "0xa669e7A0d4b3e4Fa48af2dE86BD4CD7126Be4e13", _Network$ARBITRUM[exports.Dapp.PENDLE] = "0x888888888889758F76e7103c6CbF23ABbF58F946", _Network$ARBITRUM), _routerAddress[exports.Network.BASE] = (_Network$BASE = {}, _Network$BASE[exports.Dapp.ONEINCH] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$BASE[exports.Dapp.AERODROME] = "0xcF77a3Ba9A5CA399B7c97c74d54e5b1Beb874E43", _Network$BASE[exports.Dapp.AAVEV3] = "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5", _Network$BASE[exports.Dapp.TOROS] = "0xf067575Eb60c7587C11e867907AA7284833704d1", _Network$BASE[exports.Dapp.ODOS] = "0x19cEeAd7105607Cd444F5ad10dd51356436095a1", _Network$BASE[exports.Dapp.PENDLE] = "0x888888888889758F76e7103c6CbF23ABbF58F946", _Network$BASE), _routerAddress[exports.Network.
|
|
4314
|
-
var dappFactoryAddress = (_dappFactoryAddress = {}, _dappFactoryAddress[exports.Network.POLYGON] = (_Network$POLYGON2 = {}, _Network$POLYGON2[exports.Dapp.SUSHISWAP] = "0xc35DADB65012eC5796536bD9864eD8773aBc74C4", _Network$POLYGON2[exports.Dapp.QUICKSWAP] = "0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32", _Network$POLYGON2), _dappFactoryAddress[exports.Network.OPTIMISM] = {}, _dappFactoryAddress[exports.Network.ARBITRUM] = {}, _dappFactoryAddress[exports.Network.BASE] = {}, _dappFactoryAddress[exports.Network.
|
|
4315
|
-
var stakingAddress = (_stakingAddress = {}, _stakingAddress[exports.Network.POLYGON] = (_Network$POLYGON3 = {}, _Network$POLYGON3[exports.Dapp.SUSHISWAP] = "0x0769fd68dFb93167989C6f7254cd0D766Fb2841F", _Network$POLYGON3[exports.Dapp.BALANCER] = "0x0F3e0c4218b7b0108a3643cFe9D3ec0d4F57c54e", _Network$POLYGON3[exports.Dapp.AAVE] = "0x357D51124f59836DeD84c8a1730D72B749d8BC23", _Network$POLYGON3[exports.Dapp.AAVEV3] = "0x929EC64c34a17401F460460D4B9390518E5B473e", _Network$POLYGON3), _stakingAddress[exports.Network.OPTIMISM] = (_Network$OPTIMISM2 = {}, _Network$OPTIMISM2[exports.Dapp.AAVEV3] = "0x929EC64c34a17401F460460D4B9390518E5B473e", _Network$OPTIMISM2[exports.Dapp.COMPOUNDV3] = "0x443ea0340cb75a160f31a440722dec7b5bc3c2e9", _Network$OPTIMISM2), _stakingAddress[exports.Network.ARBITRUM] = (_Network$ARBITRUM2 = {}, _Network$ARBITRUM2[exports.Dapp.COMPOUNDV3] = "0x88730d254a2f7e6ac8388c3198afd694ba9f7fae", _Network$ARBITRUM2[exports.Dapp.PANCAKECL] = "0x5e09ACf80C0296740eC5d6F643005a4ef8DaA694", _Network$ARBITRUM2), _stakingAddress[exports.Network.BASE] = (_Network$BASE2 = {}, _Network$BASE2[exports.Dapp.PANCAKECL] = "0xC6A2Db661D5a5690172d8eB0a7DEA2d3008665A3", _Network$BASE2), _stakingAddress[exports.Network.
|
|
4316
|
-
var aaveAddressProvider = (_aaveAddressProvider = {}, _aaveAddressProvider[exports.Network.POLYGON] = (_Network$POLYGON4 = {}, _Network$POLYGON4[exports.Dapp.AAVE] = "0xd05e3E715d945B59290df0ae8eF85c1BdB684744", _Network$POLYGON4[exports.Dapp.AAVEV3] = "0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb", _Network$POLYGON4), _aaveAddressProvider[exports.Network.OPTIMISM] = (_Network$OPTIMISM3 = {}, _Network$OPTIMISM3[exports.Dapp.AAVEV3] = "0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb", _Network$OPTIMISM3), _aaveAddressProvider[exports.Network.ARBITRUM] = (_Network$ARBITRUM3 = {}, _Network$ARBITRUM3[exports.Dapp.AAVEV3] = "0xa97684ead0e402dc232d5a977953df7ecbab3cdb", _Network$ARBITRUM3), _aaveAddressProvider[exports.Network.BASE] = (_Network$BASE3 = {}, _Network$BASE3[exports.Dapp.AAVEV3] = "0xe20fCBdBfFC4Dd138cE8b2E6FBb6CB49777ad64D", _Network$BASE3), _aaveAddressProvider[exports.Network.
|
|
4317
|
-
var nonfungiblePositionManagerAddress = (_nonfungiblePositionM = {}, _nonfungiblePositionM[exports.Network.POLYGON] = (_Network$POLYGON5 = {}, _Network$POLYGON5[exports.Dapp.UNISWAPV3] = "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", _Network$POLYGON5), _nonfungiblePositionM[exports.Network.OPTIMISM] = (_Network$OPTIMISM4 = {}, _Network$OPTIMISM4[exports.Dapp.UNISWAPV3] = "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", _Network$OPTIMISM4[exports.Dapp.VELODROMECL] = "0x416b433906b1B72FA758e166e239c43d68dC6F29", _Network$OPTIMISM4), _nonfungiblePositionM[exports.Network.ARBITRUM] = (_Network$ARBITRUM4 = {}, _Network$ARBITRUM4[exports.Dapp.UNISWAPV3] = "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", _Network$ARBITRUM4[exports.Dapp.RAMSESCL] = "0xAA277CB7914b7e5514946Da92cb9De332Ce610EF", _Network$ARBITRUM4[exports.Dapp.PANCAKECL] = "0x46a15b0b27311cedf172ab29e4f4766fbe7f4364", _Network$ARBITRUM4), _nonfungiblePositionM[exports.Network.BASE] = (_Network$BASE4 = {}, _Network$BASE4[exports.Dapp.UNISWAPV3] = "0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1", _Network$BASE4[exports.Dapp.AERODROMECL] = "0x827922686190790b37229fd06084350e74485b72", _Network$BASE4[exports.Dapp.PANCAKECL] = "0x46A15B0b27311cedF172AB29E4f4766fbE7F4364", _Network$BASE4), _nonfungiblePositionM[exports.Network.
|
|
4318
|
-
var networkChainIdMap = (_networkChainIdMap = {}, _networkChainIdMap[exports.Network.POLYGON] = 137, _networkChainIdMap[exports.Network.OPTIMISM] = 10, _networkChainIdMap[exports.Network.ARBITRUM] = 42161, _networkChainIdMap[exports.Network.BASE] = 8453, _networkChainIdMap[exports.Network.
|
|
4319
|
-
var balancerSubgraph = (_balancerSubgraph = {}, _balancerSubgraph[exports.Network.POLYGON] = "https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-polygon-v2", _balancerSubgraph[exports.Network.OPTIMISM] = "", _balancerSubgraph[exports.Network.ARBITRUM] = "", _balancerSubgraph[exports.Network.BASE] = "", _balancerSubgraph[exports.Network.
|
|
4320
|
-
var multiCallAddress = (_multiCallAddress = {}, _multiCallAddress[exports.Network.POLYGON] = "0x275617327c958bD06b5D6b871E7f491D76113dd8", _multiCallAddress[exports.Network.OPTIMISM] = "", _multiCallAddress[exports.Network.ARBITRUM] = "", _multiCallAddress[exports.Network.BASE] = "", _multiCallAddress[exports.Network.
|
|
4311
|
+
var factoryAddress = (_factoryAddress = {}, _factoryAddress[exports.Network.POLYGON] = process.env.STAGING_CONTRACTS ? "0xDd87eCdB10cFF7004276AAbAbd30e7a08F69bb53" : "0xfdc7b8bFe0DD3513Cc669bB8d601Cb83e2F69cB0", _factoryAddress[exports.Network.OPTIMISM] = "0x5e61a079A178f0E5784107a4963baAe0c5a680c6", _factoryAddress[exports.Network.ARBITRUM] = "0xfffb5fb14606eb3a548c113026355020ddf27535", _factoryAddress[exports.Network.BASE] = "0x49Afe3abCf66CF09Fab86cb1139D8811C8afe56F", _factoryAddress[exports.Network.ETHEREUM] = "0x96D33bCF84DdE326014248E2896F79bbb9c13D6d", _factoryAddress);
|
|
4312
|
+
var routerAddress = (_routerAddress = {}, _routerAddress[exports.Network.POLYGON] = (_Network$POLYGON = {}, _Network$POLYGON[exports.Dapp.SUSHISWAP] = "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", _Network$POLYGON[exports.Dapp.AAVE] = "0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf", _Network$POLYGON[exports.Dapp.AAVEV3] = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", _Network$POLYGON[exports.Dapp.ONEINCH] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$POLYGON[exports.Dapp.QUICKSWAP] = "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff", _Network$POLYGON[exports.Dapp.BALANCER] = "0xBA12222222228d8Ba445958a75a0704d566BF2C8", _Network$POLYGON[exports.Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$POLYGON[exports.Dapp.ARRAKIS] = "0xc73fb100a995b33f9fa181d420f4c8d74506df66", _Network$POLYGON[exports.Dapp.TOROS] = "0x45b90480D6F643dE2f128db091A357C3c90399f2", _Network$POLYGON[exports.Dapp.ODOS] = "0x4e3288c9ca110bcc82bf38f09a7b425c095d92bf", _Network$POLYGON), _routerAddress[exports.Network.OPTIMISM] = (_Network$OPTIMISM = {}, _Network$OPTIMISM[exports.Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$OPTIMISM[exports.Dapp.SYNTHETIX] = "0x8700dAec35aF8Ff88c16BdF0418774CB3D7599B4", _Network$OPTIMISM[exports.Dapp.AAVEV3] = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", _Network$OPTIMISM[exports.Dapp.ONEINCH] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$OPTIMISM[exports.Dapp.TOROS] = "0x2Ed1bd7f66e47113672f3870308b5E867C5bb743", _Network$OPTIMISM[exports.Dapp.VELODROME] = "0x9c12939390052919aF3155f41Bf4160Fd3666A6f", _Network$OPTIMISM[exports.Dapp.VELODROMEV2] = "0xa062ae8a9c5e11aaa026fc2670b0d65ccc8b2858", _Network$OPTIMISM[exports.Dapp.LYRA] = "0xCCE7819d65f348c64B7Beb205BA367b3fE33763B", _Network$OPTIMISM[exports.Dapp.ARRAKIS] = "0x9ce88a56d120300061593eF7AD074A1B710094d5", _Network$OPTIMISM[exports.Dapp.ODOS] = "0xca423977156bb05b13a2ba3b76bc5419e2fe9680", _Network$OPTIMISM[exports.Dapp.PENDLE] = "0x888888888889758F76e7103c6CbF23ABbF58F946", _Network$OPTIMISM), _routerAddress[exports.Network.ARBITRUM] = (_Network$ARBITRUM = {}, _Network$ARBITRUM[exports.Dapp.ONEINCH] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$ARBITRUM[exports.Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$ARBITRUM[exports.Dapp.AAVEV3] = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", _Network$ARBITRUM[exports.Dapp.BALANCER] = "0xBA12222222228d8Ba445958a75a0704d566BF2C8", _Network$ARBITRUM[exports.Dapp.RAMSES] = "0xaaa87963efeb6f7e0a2711f397663105acb1805e", _Network$ARBITRUM[exports.Dapp.TOROS] = "0xA5679C4272A056Bb83f039961fae7D99C48529F5", _Network$ARBITRUM[exports.Dapp.ODOS] = "0xa669e7A0d4b3e4Fa48af2dE86BD4CD7126Be4e13", _Network$ARBITRUM[exports.Dapp.PENDLE] = "0x888888888889758F76e7103c6CbF23ABbF58F946", _Network$ARBITRUM), _routerAddress[exports.Network.BASE] = (_Network$BASE = {}, _Network$BASE[exports.Dapp.ONEINCH] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$BASE[exports.Dapp.AERODROME] = "0xcF77a3Ba9A5CA399B7c97c74d54e5b1Beb874E43", _Network$BASE[exports.Dapp.AAVEV3] = "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5", _Network$BASE[exports.Dapp.TOROS] = "0xf067575Eb60c7587C11e867907AA7284833704d1", _Network$BASE[exports.Dapp.ODOS] = "0x19cEeAd7105607Cd444F5ad10dd51356436095a1", _Network$BASE[exports.Dapp.PENDLE] = "0x888888888889758F76e7103c6CbF23ABbF58F946", _Network$BASE), _routerAddress[exports.Network.ETHEREUM] = (_Network$ETHEREUM = {}, _Network$ETHEREUM[exports.Dapp.AAVEV3] = "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", _Network$ETHEREUM[exports.Dapp.ODOS] = "0xCf5540fFFCdC3d510B18bFcA6d2b9987b0772559", _Network$ETHEREUM[exports.Dapp.PENDLE] = "0x888888888889758F76e7103c6CbF23ABbF58F946", _Network$ETHEREUM[exports.Dapp.ONEINCH] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$ETHEREUM), _routerAddress);
|
|
4313
|
+
var dappFactoryAddress = (_dappFactoryAddress = {}, _dappFactoryAddress[exports.Network.POLYGON] = (_Network$POLYGON2 = {}, _Network$POLYGON2[exports.Dapp.SUSHISWAP] = "0xc35DADB65012eC5796536bD9864eD8773aBc74C4", _Network$POLYGON2[exports.Dapp.QUICKSWAP] = "0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32", _Network$POLYGON2), _dappFactoryAddress[exports.Network.OPTIMISM] = {}, _dappFactoryAddress[exports.Network.ARBITRUM] = {}, _dappFactoryAddress[exports.Network.BASE] = {}, _dappFactoryAddress[exports.Network.ETHEREUM] = {}, _dappFactoryAddress);
|
|
4314
|
+
var stakingAddress = (_stakingAddress = {}, _stakingAddress[exports.Network.POLYGON] = (_Network$POLYGON3 = {}, _Network$POLYGON3[exports.Dapp.SUSHISWAP] = "0x0769fd68dFb93167989C6f7254cd0D766Fb2841F", _Network$POLYGON3[exports.Dapp.BALANCER] = "0x0F3e0c4218b7b0108a3643cFe9D3ec0d4F57c54e", _Network$POLYGON3[exports.Dapp.AAVE] = "0x357D51124f59836DeD84c8a1730D72B749d8BC23", _Network$POLYGON3[exports.Dapp.AAVEV3] = "0x929EC64c34a17401F460460D4B9390518E5B473e", _Network$POLYGON3), _stakingAddress[exports.Network.OPTIMISM] = (_Network$OPTIMISM2 = {}, _Network$OPTIMISM2[exports.Dapp.AAVEV3] = "0x929EC64c34a17401F460460D4B9390518E5B473e", _Network$OPTIMISM2[exports.Dapp.COMPOUNDV3] = "0x443ea0340cb75a160f31a440722dec7b5bc3c2e9", _Network$OPTIMISM2), _stakingAddress[exports.Network.ARBITRUM] = (_Network$ARBITRUM2 = {}, _Network$ARBITRUM2[exports.Dapp.COMPOUNDV3] = "0x88730d254a2f7e6ac8388c3198afd694ba9f7fae", _Network$ARBITRUM2[exports.Dapp.PANCAKECL] = "0x5e09ACf80C0296740eC5d6F643005a4ef8DaA694", _Network$ARBITRUM2), _stakingAddress[exports.Network.BASE] = (_Network$BASE2 = {}, _Network$BASE2[exports.Dapp.PANCAKECL] = "0xC6A2Db661D5a5690172d8eB0a7DEA2d3008665A3", _Network$BASE2), _stakingAddress[exports.Network.ETHEREUM] = {}, _stakingAddress);
|
|
4315
|
+
var aaveAddressProvider = (_aaveAddressProvider = {}, _aaveAddressProvider[exports.Network.POLYGON] = (_Network$POLYGON4 = {}, _Network$POLYGON4[exports.Dapp.AAVE] = "0xd05e3E715d945B59290df0ae8eF85c1BdB684744", _Network$POLYGON4[exports.Dapp.AAVEV3] = "0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb", _Network$POLYGON4), _aaveAddressProvider[exports.Network.OPTIMISM] = (_Network$OPTIMISM3 = {}, _Network$OPTIMISM3[exports.Dapp.AAVEV3] = "0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb", _Network$OPTIMISM3), _aaveAddressProvider[exports.Network.ARBITRUM] = (_Network$ARBITRUM3 = {}, _Network$ARBITRUM3[exports.Dapp.AAVEV3] = "0xa97684ead0e402dc232d5a977953df7ecbab3cdb", _Network$ARBITRUM3), _aaveAddressProvider[exports.Network.BASE] = (_Network$BASE3 = {}, _Network$BASE3[exports.Dapp.AAVEV3] = "0xe20fCBdBfFC4Dd138cE8b2E6FBb6CB49777ad64D", _Network$BASE3), _aaveAddressProvider[exports.Network.ETHEREUM] = (_Network$ETHEREUM2 = {}, _Network$ETHEREUM2[exports.Dapp.AAVEV3] = "0x2f39d218133AFaB8F2B819B1066c7E434Ad94E9e", _Network$ETHEREUM2), _aaveAddressProvider);
|
|
4316
|
+
var nonfungiblePositionManagerAddress = (_nonfungiblePositionM = {}, _nonfungiblePositionM[exports.Network.POLYGON] = (_Network$POLYGON5 = {}, _Network$POLYGON5[exports.Dapp.UNISWAPV3] = "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", _Network$POLYGON5), _nonfungiblePositionM[exports.Network.OPTIMISM] = (_Network$OPTIMISM4 = {}, _Network$OPTIMISM4[exports.Dapp.UNISWAPV3] = "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", _Network$OPTIMISM4[exports.Dapp.VELODROMECL] = "0x416b433906b1B72FA758e166e239c43d68dC6F29", _Network$OPTIMISM4), _nonfungiblePositionM[exports.Network.ARBITRUM] = (_Network$ARBITRUM4 = {}, _Network$ARBITRUM4[exports.Dapp.UNISWAPV3] = "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", _Network$ARBITRUM4[exports.Dapp.RAMSESCL] = "0xAA277CB7914b7e5514946Da92cb9De332Ce610EF", _Network$ARBITRUM4[exports.Dapp.PANCAKECL] = "0x46a15b0b27311cedf172ab29e4f4766fbe7f4364", _Network$ARBITRUM4), _nonfungiblePositionM[exports.Network.BASE] = (_Network$BASE4 = {}, _Network$BASE4[exports.Dapp.UNISWAPV3] = "0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1", _Network$BASE4[exports.Dapp.AERODROMECL] = "0x827922686190790b37229fd06084350e74485b72", _Network$BASE4[exports.Dapp.PANCAKECL] = "0x46A15B0b27311cedF172AB29E4f4766fbE7F4364", _Network$BASE4), _nonfungiblePositionM[exports.Network.ETHEREUM] = {}, _nonfungiblePositionM);
|
|
4317
|
+
var networkChainIdMap = (_networkChainIdMap = {}, _networkChainIdMap[exports.Network.POLYGON] = 137, _networkChainIdMap[exports.Network.OPTIMISM] = 10, _networkChainIdMap[exports.Network.ARBITRUM] = 42161, _networkChainIdMap[exports.Network.BASE] = 8453, _networkChainIdMap[exports.Network.ETHEREUM] = 1, _networkChainIdMap);
|
|
4318
|
+
var balancerSubgraph = (_balancerSubgraph = {}, _balancerSubgraph[exports.Network.POLYGON] = "https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-polygon-v2", _balancerSubgraph[exports.Network.OPTIMISM] = "", _balancerSubgraph[exports.Network.ARBITRUM] = "", _balancerSubgraph[exports.Network.BASE] = "", _balancerSubgraph[exports.Network.ETHEREUM] = "", _balancerSubgraph);
|
|
4319
|
+
var multiCallAddress = (_multiCallAddress = {}, _multiCallAddress[exports.Network.POLYGON] = "0x275617327c958bD06b5D6b871E7f491D76113dd8", _multiCallAddress[exports.Network.OPTIMISM] = "", _multiCallAddress[exports.Network.ARBITRUM] = "", _multiCallAddress[exports.Network.BASE] = "", _multiCallAddress[exports.Network.ETHEREUM] = "", _multiCallAddress);
|
|
4321
4320
|
var lyraNetworkMap = (_lyraNetworkMap = {}, _lyraNetworkMap[exports.Network.OPTIMISM] = Lyra.Deployment.Mainnet, _lyraNetworkMap);
|
|
4322
4321
|
var MaxUint128 = "0xffffffffffffffffffffffffffffffff";
|
|
4323
4322
|
var UNISWAPV3_QUOTER_ADDRESS = "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6";
|
|
@@ -8690,1209 +8689,6 @@ var IVeldodromePositionManager = {
|
|
|
8690
8689
|
abi: abi$d
|
|
8691
8690
|
};
|
|
8692
8691
|
|
|
8693
|
-
var IShadowNonfungiblePositionManager = [
|
|
8694
|
-
{
|
|
8695
|
-
inputs: [
|
|
8696
|
-
{
|
|
8697
|
-
internalType: "address",
|
|
8698
|
-
name: "_deployer",
|
|
8699
|
-
type: "address"
|
|
8700
|
-
},
|
|
8701
|
-
{
|
|
8702
|
-
internalType: "address",
|
|
8703
|
-
name: "_WETH9",
|
|
8704
|
-
type: "address"
|
|
8705
|
-
},
|
|
8706
|
-
{
|
|
8707
|
-
internalType: "address",
|
|
8708
|
-
name: "_tokenDescriptor_",
|
|
8709
|
-
type: "address"
|
|
8710
|
-
},
|
|
8711
|
-
{
|
|
8712
|
-
internalType: "address",
|
|
8713
|
-
name: "_accessHub",
|
|
8714
|
-
type: "address"
|
|
8715
|
-
}
|
|
8716
|
-
],
|
|
8717
|
-
stateMutability: "nonpayable",
|
|
8718
|
-
type: "constructor"
|
|
8719
|
-
},
|
|
8720
|
-
{
|
|
8721
|
-
inputs: [
|
|
8722
|
-
],
|
|
8723
|
-
name: "CheckSlippage",
|
|
8724
|
-
type: "error"
|
|
8725
|
-
},
|
|
8726
|
-
{
|
|
8727
|
-
inputs: [
|
|
8728
|
-
],
|
|
8729
|
-
name: "ERC721EnumerableForbiddenBatchMint",
|
|
8730
|
-
type: "error"
|
|
8731
|
-
},
|
|
8732
|
-
{
|
|
8733
|
-
inputs: [
|
|
8734
|
-
{
|
|
8735
|
-
internalType: "address",
|
|
8736
|
-
name: "sender",
|
|
8737
|
-
type: "address"
|
|
8738
|
-
},
|
|
8739
|
-
{
|
|
8740
|
-
internalType: "uint256",
|
|
8741
|
-
name: "tokenId",
|
|
8742
|
-
type: "uint256"
|
|
8743
|
-
},
|
|
8744
|
-
{
|
|
8745
|
-
internalType: "address",
|
|
8746
|
-
name: "owner",
|
|
8747
|
-
type: "address"
|
|
8748
|
-
}
|
|
8749
|
-
],
|
|
8750
|
-
name: "ERC721IncorrectOwner",
|
|
8751
|
-
type: "error"
|
|
8752
|
-
},
|
|
8753
|
-
{
|
|
8754
|
-
inputs: [
|
|
8755
|
-
{
|
|
8756
|
-
internalType: "address",
|
|
8757
|
-
name: "operator",
|
|
8758
|
-
type: "address"
|
|
8759
|
-
},
|
|
8760
|
-
{
|
|
8761
|
-
internalType: "uint256",
|
|
8762
|
-
name: "tokenId",
|
|
8763
|
-
type: "uint256"
|
|
8764
|
-
}
|
|
8765
|
-
],
|
|
8766
|
-
name: "ERC721InsufficientApproval",
|
|
8767
|
-
type: "error"
|
|
8768
|
-
},
|
|
8769
|
-
{
|
|
8770
|
-
inputs: [
|
|
8771
|
-
{
|
|
8772
|
-
internalType: "address",
|
|
8773
|
-
name: "approver",
|
|
8774
|
-
type: "address"
|
|
8775
|
-
}
|
|
8776
|
-
],
|
|
8777
|
-
name: "ERC721InvalidApprover",
|
|
8778
|
-
type: "error"
|
|
8779
|
-
},
|
|
8780
|
-
{
|
|
8781
|
-
inputs: [
|
|
8782
|
-
{
|
|
8783
|
-
internalType: "address",
|
|
8784
|
-
name: "operator",
|
|
8785
|
-
type: "address"
|
|
8786
|
-
}
|
|
8787
|
-
],
|
|
8788
|
-
name: "ERC721InvalidOperator",
|
|
8789
|
-
type: "error"
|
|
8790
|
-
},
|
|
8791
|
-
{
|
|
8792
|
-
inputs: [
|
|
8793
|
-
{
|
|
8794
|
-
internalType: "address",
|
|
8795
|
-
name: "owner",
|
|
8796
|
-
type: "address"
|
|
8797
|
-
}
|
|
8798
|
-
],
|
|
8799
|
-
name: "ERC721InvalidOwner",
|
|
8800
|
-
type: "error"
|
|
8801
|
-
},
|
|
8802
|
-
{
|
|
8803
|
-
inputs: [
|
|
8804
|
-
{
|
|
8805
|
-
internalType: "address",
|
|
8806
|
-
name: "receiver",
|
|
8807
|
-
type: "address"
|
|
8808
|
-
}
|
|
8809
|
-
],
|
|
8810
|
-
name: "ERC721InvalidReceiver",
|
|
8811
|
-
type: "error"
|
|
8812
|
-
},
|
|
8813
|
-
{
|
|
8814
|
-
inputs: [
|
|
8815
|
-
{
|
|
8816
|
-
internalType: "address",
|
|
8817
|
-
name: "sender",
|
|
8818
|
-
type: "address"
|
|
8819
|
-
}
|
|
8820
|
-
],
|
|
8821
|
-
name: "ERC721InvalidSender",
|
|
8822
|
-
type: "error"
|
|
8823
|
-
},
|
|
8824
|
-
{
|
|
8825
|
-
inputs: [
|
|
8826
|
-
{
|
|
8827
|
-
internalType: "uint256",
|
|
8828
|
-
name: "tokenId",
|
|
8829
|
-
type: "uint256"
|
|
8830
|
-
}
|
|
8831
|
-
],
|
|
8832
|
-
name: "ERC721NonexistentToken",
|
|
8833
|
-
type: "error"
|
|
8834
|
-
},
|
|
8835
|
-
{
|
|
8836
|
-
inputs: [
|
|
8837
|
-
{
|
|
8838
|
-
internalType: "address",
|
|
8839
|
-
name: "owner",
|
|
8840
|
-
type: "address"
|
|
8841
|
-
},
|
|
8842
|
-
{
|
|
8843
|
-
internalType: "uint256",
|
|
8844
|
-
name: "index",
|
|
8845
|
-
type: "uint256"
|
|
8846
|
-
}
|
|
8847
|
-
],
|
|
8848
|
-
name: "ERC721OutOfBoundsIndex",
|
|
8849
|
-
type: "error"
|
|
8850
|
-
},
|
|
8851
|
-
{
|
|
8852
|
-
inputs: [
|
|
8853
|
-
{
|
|
8854
|
-
internalType: "uint256",
|
|
8855
|
-
name: "tokenId",
|
|
8856
|
-
type: "uint256"
|
|
8857
|
-
}
|
|
8858
|
-
],
|
|
8859
|
-
name: "InvalidTokenId",
|
|
8860
|
-
type: "error"
|
|
8861
|
-
},
|
|
8862
|
-
{
|
|
8863
|
-
inputs: [
|
|
8864
|
-
],
|
|
8865
|
-
name: "NotCleared",
|
|
8866
|
-
type: "error"
|
|
8867
|
-
},
|
|
8868
|
-
{
|
|
8869
|
-
inputs: [
|
|
8870
|
-
],
|
|
8871
|
-
name: "Old",
|
|
8872
|
-
type: "error"
|
|
8873
|
-
},
|
|
8874
|
-
{
|
|
8875
|
-
inputs: [
|
|
8876
|
-
],
|
|
8877
|
-
name: "Slippage",
|
|
8878
|
-
type: "error"
|
|
8879
|
-
},
|
|
8880
|
-
{
|
|
8881
|
-
inputs: [
|
|
8882
|
-
],
|
|
8883
|
-
name: "T",
|
|
8884
|
-
type: "error"
|
|
8885
|
-
},
|
|
8886
|
-
{
|
|
8887
|
-
anonymous: false,
|
|
8888
|
-
inputs: [
|
|
8889
|
-
{
|
|
8890
|
-
indexed: true,
|
|
8891
|
-
internalType: "address",
|
|
8892
|
-
name: "owner",
|
|
8893
|
-
type: "address"
|
|
8894
|
-
},
|
|
8895
|
-
{
|
|
8896
|
-
indexed: true,
|
|
8897
|
-
internalType: "address",
|
|
8898
|
-
name: "approved",
|
|
8899
|
-
type: "address"
|
|
8900
|
-
},
|
|
8901
|
-
{
|
|
8902
|
-
indexed: true,
|
|
8903
|
-
internalType: "uint256",
|
|
8904
|
-
name: "tokenId",
|
|
8905
|
-
type: "uint256"
|
|
8906
|
-
}
|
|
8907
|
-
],
|
|
8908
|
-
name: "Approval",
|
|
8909
|
-
type: "event"
|
|
8910
|
-
},
|
|
8911
|
-
{
|
|
8912
|
-
anonymous: false,
|
|
8913
|
-
inputs: [
|
|
8914
|
-
{
|
|
8915
|
-
indexed: true,
|
|
8916
|
-
internalType: "address",
|
|
8917
|
-
name: "owner",
|
|
8918
|
-
type: "address"
|
|
8919
|
-
},
|
|
8920
|
-
{
|
|
8921
|
-
indexed: true,
|
|
8922
|
-
internalType: "address",
|
|
8923
|
-
name: "operator",
|
|
8924
|
-
type: "address"
|
|
8925
|
-
},
|
|
8926
|
-
{
|
|
8927
|
-
indexed: false,
|
|
8928
|
-
internalType: "bool",
|
|
8929
|
-
name: "approved",
|
|
8930
|
-
type: "bool"
|
|
8931
|
-
}
|
|
8932
|
-
],
|
|
8933
|
-
name: "ApprovalForAll",
|
|
8934
|
-
type: "event"
|
|
8935
|
-
},
|
|
8936
|
-
{
|
|
8937
|
-
anonymous: false,
|
|
8938
|
-
inputs: [
|
|
8939
|
-
{
|
|
8940
|
-
indexed: true,
|
|
8941
|
-
internalType: "uint256",
|
|
8942
|
-
name: "tokenId",
|
|
8943
|
-
type: "uint256"
|
|
8944
|
-
},
|
|
8945
|
-
{
|
|
8946
|
-
indexed: false,
|
|
8947
|
-
internalType: "address",
|
|
8948
|
-
name: "recipient",
|
|
8949
|
-
type: "address"
|
|
8950
|
-
},
|
|
8951
|
-
{
|
|
8952
|
-
indexed: false,
|
|
8953
|
-
internalType: "uint256",
|
|
8954
|
-
name: "amount0",
|
|
8955
|
-
type: "uint256"
|
|
8956
|
-
},
|
|
8957
|
-
{
|
|
8958
|
-
indexed: false,
|
|
8959
|
-
internalType: "uint256",
|
|
8960
|
-
name: "amount1",
|
|
8961
|
-
type: "uint256"
|
|
8962
|
-
}
|
|
8963
|
-
],
|
|
8964
|
-
name: "Collect",
|
|
8965
|
-
type: "event"
|
|
8966
|
-
},
|
|
8967
|
-
{
|
|
8968
|
-
anonymous: false,
|
|
8969
|
-
inputs: [
|
|
8970
|
-
{
|
|
8971
|
-
indexed: true,
|
|
8972
|
-
internalType: "uint256",
|
|
8973
|
-
name: "tokenId",
|
|
8974
|
-
type: "uint256"
|
|
8975
|
-
},
|
|
8976
|
-
{
|
|
8977
|
-
indexed: false,
|
|
8978
|
-
internalType: "uint128",
|
|
8979
|
-
name: "liquidity",
|
|
8980
|
-
type: "uint128"
|
|
8981
|
-
},
|
|
8982
|
-
{
|
|
8983
|
-
indexed: false,
|
|
8984
|
-
internalType: "uint256",
|
|
8985
|
-
name: "amount0",
|
|
8986
|
-
type: "uint256"
|
|
8987
|
-
},
|
|
8988
|
-
{
|
|
8989
|
-
indexed: false,
|
|
8990
|
-
internalType: "uint256",
|
|
8991
|
-
name: "amount1",
|
|
8992
|
-
type: "uint256"
|
|
8993
|
-
}
|
|
8994
|
-
],
|
|
8995
|
-
name: "DecreaseLiquidity",
|
|
8996
|
-
type: "event"
|
|
8997
|
-
},
|
|
8998
|
-
{
|
|
8999
|
-
anonymous: false,
|
|
9000
|
-
inputs: [
|
|
9001
|
-
{
|
|
9002
|
-
indexed: true,
|
|
9003
|
-
internalType: "uint256",
|
|
9004
|
-
name: "tokenId",
|
|
9005
|
-
type: "uint256"
|
|
9006
|
-
},
|
|
9007
|
-
{
|
|
9008
|
-
indexed: false,
|
|
9009
|
-
internalType: "uint128",
|
|
9010
|
-
name: "liquidity",
|
|
9011
|
-
type: "uint128"
|
|
9012
|
-
},
|
|
9013
|
-
{
|
|
9014
|
-
indexed: false,
|
|
9015
|
-
internalType: "uint256",
|
|
9016
|
-
name: "amount0",
|
|
9017
|
-
type: "uint256"
|
|
9018
|
-
},
|
|
9019
|
-
{
|
|
9020
|
-
indexed: false,
|
|
9021
|
-
internalType: "uint256",
|
|
9022
|
-
name: "amount1",
|
|
9023
|
-
type: "uint256"
|
|
9024
|
-
}
|
|
9025
|
-
],
|
|
9026
|
-
name: "IncreaseLiquidity",
|
|
9027
|
-
type: "event"
|
|
9028
|
-
},
|
|
9029
|
-
{
|
|
9030
|
-
anonymous: false,
|
|
9031
|
-
inputs: [
|
|
9032
|
-
{
|
|
9033
|
-
indexed: true,
|
|
9034
|
-
internalType: "address",
|
|
9035
|
-
name: "from",
|
|
9036
|
-
type: "address"
|
|
9037
|
-
},
|
|
9038
|
-
{
|
|
9039
|
-
indexed: true,
|
|
9040
|
-
internalType: "address",
|
|
9041
|
-
name: "to",
|
|
9042
|
-
type: "address"
|
|
9043
|
-
},
|
|
9044
|
-
{
|
|
9045
|
-
indexed: true,
|
|
9046
|
-
internalType: "uint256",
|
|
9047
|
-
name: "tokenId",
|
|
9048
|
-
type: "uint256"
|
|
9049
|
-
}
|
|
9050
|
-
],
|
|
9051
|
-
name: "Transfer",
|
|
9052
|
-
type: "event"
|
|
9053
|
-
},
|
|
9054
|
-
{
|
|
9055
|
-
inputs: [
|
|
9056
|
-
],
|
|
9057
|
-
name: "WETH9",
|
|
9058
|
-
outputs: [
|
|
9059
|
-
{
|
|
9060
|
-
internalType: "address",
|
|
9061
|
-
name: "",
|
|
9062
|
-
type: "address"
|
|
9063
|
-
}
|
|
9064
|
-
],
|
|
9065
|
-
stateMutability: "view",
|
|
9066
|
-
type: "function"
|
|
9067
|
-
},
|
|
9068
|
-
{
|
|
9069
|
-
inputs: [
|
|
9070
|
-
{
|
|
9071
|
-
internalType: "address",
|
|
9072
|
-
name: "to",
|
|
9073
|
-
type: "address"
|
|
9074
|
-
},
|
|
9075
|
-
{
|
|
9076
|
-
internalType: "uint256",
|
|
9077
|
-
name: "tokenId",
|
|
9078
|
-
type: "uint256"
|
|
9079
|
-
}
|
|
9080
|
-
],
|
|
9081
|
-
name: "approve",
|
|
9082
|
-
outputs: [
|
|
9083
|
-
],
|
|
9084
|
-
stateMutability: "nonpayable",
|
|
9085
|
-
type: "function"
|
|
9086
|
-
},
|
|
9087
|
-
{
|
|
9088
|
-
inputs: [
|
|
9089
|
-
{
|
|
9090
|
-
internalType: "address",
|
|
9091
|
-
name: "owner",
|
|
9092
|
-
type: "address"
|
|
9093
|
-
}
|
|
9094
|
-
],
|
|
9095
|
-
name: "balanceOf",
|
|
9096
|
-
outputs: [
|
|
9097
|
-
{
|
|
9098
|
-
internalType: "uint256",
|
|
9099
|
-
name: "",
|
|
9100
|
-
type: "uint256"
|
|
9101
|
-
}
|
|
9102
|
-
],
|
|
9103
|
-
stateMutability: "view",
|
|
9104
|
-
type: "function"
|
|
9105
|
-
},
|
|
9106
|
-
{
|
|
9107
|
-
inputs: [
|
|
9108
|
-
{
|
|
9109
|
-
internalType: "uint256",
|
|
9110
|
-
name: "tokenId",
|
|
9111
|
-
type: "uint256"
|
|
9112
|
-
}
|
|
9113
|
-
],
|
|
9114
|
-
name: "burn",
|
|
9115
|
-
outputs: [
|
|
9116
|
-
],
|
|
9117
|
-
stateMutability: "payable",
|
|
9118
|
-
type: "function"
|
|
9119
|
-
},
|
|
9120
|
-
{
|
|
9121
|
-
inputs: [
|
|
9122
|
-
{
|
|
9123
|
-
components: [
|
|
9124
|
-
{
|
|
9125
|
-
internalType: "uint256",
|
|
9126
|
-
name: "tokenId",
|
|
9127
|
-
type: "uint256"
|
|
9128
|
-
},
|
|
9129
|
-
{
|
|
9130
|
-
internalType: "address",
|
|
9131
|
-
name: "recipient",
|
|
9132
|
-
type: "address"
|
|
9133
|
-
},
|
|
9134
|
-
{
|
|
9135
|
-
internalType: "uint128",
|
|
9136
|
-
name: "amount0Max",
|
|
9137
|
-
type: "uint128"
|
|
9138
|
-
},
|
|
9139
|
-
{
|
|
9140
|
-
internalType: "uint128",
|
|
9141
|
-
name: "amount1Max",
|
|
9142
|
-
type: "uint128"
|
|
9143
|
-
}
|
|
9144
|
-
],
|
|
9145
|
-
internalType: "struct INonfungiblePositionManager.CollectParams",
|
|
9146
|
-
name: "params",
|
|
9147
|
-
type: "tuple"
|
|
9148
|
-
}
|
|
9149
|
-
],
|
|
9150
|
-
name: "collect",
|
|
9151
|
-
outputs: [
|
|
9152
|
-
{
|
|
9153
|
-
internalType: "uint256",
|
|
9154
|
-
name: "amount0",
|
|
9155
|
-
type: "uint256"
|
|
9156
|
-
},
|
|
9157
|
-
{
|
|
9158
|
-
internalType: "uint256",
|
|
9159
|
-
name: "amount1",
|
|
9160
|
-
type: "uint256"
|
|
9161
|
-
}
|
|
9162
|
-
],
|
|
9163
|
-
stateMutability: "payable",
|
|
9164
|
-
type: "function"
|
|
9165
|
-
},
|
|
9166
|
-
{
|
|
9167
|
-
inputs: [
|
|
9168
|
-
{
|
|
9169
|
-
internalType: "address",
|
|
9170
|
-
name: "token0",
|
|
9171
|
-
type: "address"
|
|
9172
|
-
},
|
|
9173
|
-
{
|
|
9174
|
-
internalType: "address",
|
|
9175
|
-
name: "token1",
|
|
9176
|
-
type: "address"
|
|
9177
|
-
},
|
|
9178
|
-
{
|
|
9179
|
-
internalType: "int24",
|
|
9180
|
-
name: "tickSpacing",
|
|
9181
|
-
type: "int24"
|
|
9182
|
-
},
|
|
9183
|
-
{
|
|
9184
|
-
internalType: "uint160",
|
|
9185
|
-
name: "sqrtPriceX96",
|
|
9186
|
-
type: "uint160"
|
|
9187
|
-
}
|
|
9188
|
-
],
|
|
9189
|
-
name: "createAndInitializePoolIfNecessary",
|
|
9190
|
-
outputs: [
|
|
9191
|
-
{
|
|
9192
|
-
internalType: "address",
|
|
9193
|
-
name: "pool",
|
|
9194
|
-
type: "address"
|
|
9195
|
-
}
|
|
9196
|
-
],
|
|
9197
|
-
stateMutability: "payable",
|
|
9198
|
-
type: "function"
|
|
9199
|
-
},
|
|
9200
|
-
{
|
|
9201
|
-
inputs: [
|
|
9202
|
-
{
|
|
9203
|
-
components: [
|
|
9204
|
-
{
|
|
9205
|
-
internalType: "uint256",
|
|
9206
|
-
name: "tokenId",
|
|
9207
|
-
type: "uint256"
|
|
9208
|
-
},
|
|
9209
|
-
{
|
|
9210
|
-
internalType: "uint128",
|
|
9211
|
-
name: "liquidity",
|
|
9212
|
-
type: "uint128"
|
|
9213
|
-
},
|
|
9214
|
-
{
|
|
9215
|
-
internalType: "uint256",
|
|
9216
|
-
name: "amount0Min",
|
|
9217
|
-
type: "uint256"
|
|
9218
|
-
},
|
|
9219
|
-
{
|
|
9220
|
-
internalType: "uint256",
|
|
9221
|
-
name: "amount1Min",
|
|
9222
|
-
type: "uint256"
|
|
9223
|
-
},
|
|
9224
|
-
{
|
|
9225
|
-
internalType: "uint256",
|
|
9226
|
-
name: "deadline",
|
|
9227
|
-
type: "uint256"
|
|
9228
|
-
}
|
|
9229
|
-
],
|
|
9230
|
-
internalType: "struct INonfungiblePositionManager.DecreaseLiquidityParams",
|
|
9231
|
-
name: "params",
|
|
9232
|
-
type: "tuple"
|
|
9233
|
-
}
|
|
9234
|
-
],
|
|
9235
|
-
name: "decreaseLiquidity",
|
|
9236
|
-
outputs: [
|
|
9237
|
-
{
|
|
9238
|
-
internalType: "uint256",
|
|
9239
|
-
name: "amount0",
|
|
9240
|
-
type: "uint256"
|
|
9241
|
-
},
|
|
9242
|
-
{
|
|
9243
|
-
internalType: "uint256",
|
|
9244
|
-
name: "amount1",
|
|
9245
|
-
type: "uint256"
|
|
9246
|
-
}
|
|
9247
|
-
],
|
|
9248
|
-
stateMutability: "payable",
|
|
9249
|
-
type: "function"
|
|
9250
|
-
},
|
|
9251
|
-
{
|
|
9252
|
-
inputs: [
|
|
9253
|
-
],
|
|
9254
|
-
name: "deployer",
|
|
9255
|
-
outputs: [
|
|
9256
|
-
{
|
|
9257
|
-
internalType: "address",
|
|
9258
|
-
name: "",
|
|
9259
|
-
type: "address"
|
|
9260
|
-
}
|
|
9261
|
-
],
|
|
9262
|
-
stateMutability: "view",
|
|
9263
|
-
type: "function"
|
|
9264
|
-
},
|
|
9265
|
-
{
|
|
9266
|
-
inputs: [
|
|
9267
|
-
{
|
|
9268
|
-
internalType: "uint256",
|
|
9269
|
-
name: "tokenId",
|
|
9270
|
-
type: "uint256"
|
|
9271
|
-
}
|
|
9272
|
-
],
|
|
9273
|
-
name: "getApproved",
|
|
9274
|
-
outputs: [
|
|
9275
|
-
{
|
|
9276
|
-
internalType: "address",
|
|
9277
|
-
name: "",
|
|
9278
|
-
type: "address"
|
|
9279
|
-
}
|
|
9280
|
-
],
|
|
9281
|
-
stateMutability: "view",
|
|
9282
|
-
type: "function"
|
|
9283
|
-
},
|
|
9284
|
-
{
|
|
9285
|
-
inputs: [
|
|
9286
|
-
{
|
|
9287
|
-
internalType: "uint256",
|
|
9288
|
-
name: "tokenId",
|
|
9289
|
-
type: "uint256"
|
|
9290
|
-
},
|
|
9291
|
-
{
|
|
9292
|
-
internalType: "address[]",
|
|
9293
|
-
name: "tokens",
|
|
9294
|
-
type: "address[]"
|
|
9295
|
-
}
|
|
9296
|
-
],
|
|
9297
|
-
name: "getReward",
|
|
9298
|
-
outputs: [
|
|
9299
|
-
],
|
|
9300
|
-
stateMutability: "nonpayable",
|
|
9301
|
-
type: "function"
|
|
9302
|
-
},
|
|
9303
|
-
{
|
|
9304
|
-
inputs: [
|
|
9305
|
-
{
|
|
9306
|
-
components: [
|
|
9307
|
-
{
|
|
9308
|
-
internalType: "uint256",
|
|
9309
|
-
name: "tokenId",
|
|
9310
|
-
type: "uint256"
|
|
9311
|
-
},
|
|
9312
|
-
{
|
|
9313
|
-
internalType: "uint256",
|
|
9314
|
-
name: "amount0Desired",
|
|
9315
|
-
type: "uint256"
|
|
9316
|
-
},
|
|
9317
|
-
{
|
|
9318
|
-
internalType: "uint256",
|
|
9319
|
-
name: "amount1Desired",
|
|
9320
|
-
type: "uint256"
|
|
9321
|
-
},
|
|
9322
|
-
{
|
|
9323
|
-
internalType: "uint256",
|
|
9324
|
-
name: "amount0Min",
|
|
9325
|
-
type: "uint256"
|
|
9326
|
-
},
|
|
9327
|
-
{
|
|
9328
|
-
internalType: "uint256",
|
|
9329
|
-
name: "amount1Min",
|
|
9330
|
-
type: "uint256"
|
|
9331
|
-
},
|
|
9332
|
-
{
|
|
9333
|
-
internalType: "uint256",
|
|
9334
|
-
name: "deadline",
|
|
9335
|
-
type: "uint256"
|
|
9336
|
-
}
|
|
9337
|
-
],
|
|
9338
|
-
internalType: "struct INonfungiblePositionManager.IncreaseLiquidityParams",
|
|
9339
|
-
name: "params",
|
|
9340
|
-
type: "tuple"
|
|
9341
|
-
}
|
|
9342
|
-
],
|
|
9343
|
-
name: "increaseLiquidity",
|
|
9344
|
-
outputs: [
|
|
9345
|
-
{
|
|
9346
|
-
internalType: "uint128",
|
|
9347
|
-
name: "liquidity",
|
|
9348
|
-
type: "uint128"
|
|
9349
|
-
},
|
|
9350
|
-
{
|
|
9351
|
-
internalType: "uint256",
|
|
9352
|
-
name: "amount0",
|
|
9353
|
-
type: "uint256"
|
|
9354
|
-
},
|
|
9355
|
-
{
|
|
9356
|
-
internalType: "uint256",
|
|
9357
|
-
name: "amount1",
|
|
9358
|
-
type: "uint256"
|
|
9359
|
-
}
|
|
9360
|
-
],
|
|
9361
|
-
stateMutability: "payable",
|
|
9362
|
-
type: "function"
|
|
9363
|
-
},
|
|
9364
|
-
{
|
|
9365
|
-
inputs: [
|
|
9366
|
-
{
|
|
9367
|
-
internalType: "address",
|
|
9368
|
-
name: "owner",
|
|
9369
|
-
type: "address"
|
|
9370
|
-
},
|
|
9371
|
-
{
|
|
9372
|
-
internalType: "address",
|
|
9373
|
-
name: "operator",
|
|
9374
|
-
type: "address"
|
|
9375
|
-
}
|
|
9376
|
-
],
|
|
9377
|
-
name: "isApprovedForAll",
|
|
9378
|
-
outputs: [
|
|
9379
|
-
{
|
|
9380
|
-
internalType: "bool",
|
|
9381
|
-
name: "",
|
|
9382
|
-
type: "bool"
|
|
9383
|
-
}
|
|
9384
|
-
],
|
|
9385
|
-
stateMutability: "view",
|
|
9386
|
-
type: "function"
|
|
9387
|
-
},
|
|
9388
|
-
{
|
|
9389
|
-
inputs: [
|
|
9390
|
-
{
|
|
9391
|
-
components: [
|
|
9392
|
-
{
|
|
9393
|
-
internalType: "address",
|
|
9394
|
-
name: "token0",
|
|
9395
|
-
type: "address"
|
|
9396
|
-
},
|
|
9397
|
-
{
|
|
9398
|
-
internalType: "address",
|
|
9399
|
-
name: "token1",
|
|
9400
|
-
type: "address"
|
|
9401
|
-
},
|
|
9402
|
-
{
|
|
9403
|
-
internalType: "int24",
|
|
9404
|
-
name: "tickSpacing",
|
|
9405
|
-
type: "int24"
|
|
9406
|
-
},
|
|
9407
|
-
{
|
|
9408
|
-
internalType: "int24",
|
|
9409
|
-
name: "tickLower",
|
|
9410
|
-
type: "int24"
|
|
9411
|
-
},
|
|
9412
|
-
{
|
|
9413
|
-
internalType: "int24",
|
|
9414
|
-
name: "tickUpper",
|
|
9415
|
-
type: "int24"
|
|
9416
|
-
},
|
|
9417
|
-
{
|
|
9418
|
-
internalType: "uint256",
|
|
9419
|
-
name: "amount0Desired",
|
|
9420
|
-
type: "uint256"
|
|
9421
|
-
},
|
|
9422
|
-
{
|
|
9423
|
-
internalType: "uint256",
|
|
9424
|
-
name: "amount1Desired",
|
|
9425
|
-
type: "uint256"
|
|
9426
|
-
},
|
|
9427
|
-
{
|
|
9428
|
-
internalType: "uint256",
|
|
9429
|
-
name: "amount0Min",
|
|
9430
|
-
type: "uint256"
|
|
9431
|
-
},
|
|
9432
|
-
{
|
|
9433
|
-
internalType: "uint256",
|
|
9434
|
-
name: "amount1Min",
|
|
9435
|
-
type: "uint256"
|
|
9436
|
-
},
|
|
9437
|
-
{
|
|
9438
|
-
internalType: "address",
|
|
9439
|
-
name: "recipient",
|
|
9440
|
-
type: "address"
|
|
9441
|
-
},
|
|
9442
|
-
{
|
|
9443
|
-
internalType: "uint256",
|
|
9444
|
-
name: "deadline",
|
|
9445
|
-
type: "uint256"
|
|
9446
|
-
}
|
|
9447
|
-
],
|
|
9448
|
-
internalType: "struct INonfungiblePositionManager.MintParams",
|
|
9449
|
-
name: "params",
|
|
9450
|
-
type: "tuple"
|
|
9451
|
-
}
|
|
9452
|
-
],
|
|
9453
|
-
name: "mint",
|
|
9454
|
-
outputs: [
|
|
9455
|
-
{
|
|
9456
|
-
internalType: "uint256",
|
|
9457
|
-
name: "tokenId",
|
|
9458
|
-
type: "uint256"
|
|
9459
|
-
},
|
|
9460
|
-
{
|
|
9461
|
-
internalType: "uint128",
|
|
9462
|
-
name: "liquidity",
|
|
9463
|
-
type: "uint128"
|
|
9464
|
-
},
|
|
9465
|
-
{
|
|
9466
|
-
internalType: "uint256",
|
|
9467
|
-
name: "amount0",
|
|
9468
|
-
type: "uint256"
|
|
9469
|
-
},
|
|
9470
|
-
{
|
|
9471
|
-
internalType: "uint256",
|
|
9472
|
-
name: "amount1",
|
|
9473
|
-
type: "uint256"
|
|
9474
|
-
}
|
|
9475
|
-
],
|
|
9476
|
-
stateMutability: "payable",
|
|
9477
|
-
type: "function"
|
|
9478
|
-
},
|
|
9479
|
-
{
|
|
9480
|
-
inputs: [
|
|
9481
|
-
{
|
|
9482
|
-
internalType: "bytes[]",
|
|
9483
|
-
name: "data",
|
|
9484
|
-
type: "bytes[]"
|
|
9485
|
-
}
|
|
9486
|
-
],
|
|
9487
|
-
name: "multicall",
|
|
9488
|
-
outputs: [
|
|
9489
|
-
{
|
|
9490
|
-
internalType: "bytes[]",
|
|
9491
|
-
name: "results",
|
|
9492
|
-
type: "bytes[]"
|
|
9493
|
-
}
|
|
9494
|
-
],
|
|
9495
|
-
stateMutability: "payable",
|
|
9496
|
-
type: "function"
|
|
9497
|
-
},
|
|
9498
|
-
{
|
|
9499
|
-
inputs: [
|
|
9500
|
-
],
|
|
9501
|
-
name: "name",
|
|
9502
|
-
outputs: [
|
|
9503
|
-
{
|
|
9504
|
-
internalType: "string",
|
|
9505
|
-
name: "",
|
|
9506
|
-
type: "string"
|
|
9507
|
-
}
|
|
9508
|
-
],
|
|
9509
|
-
stateMutability: "view",
|
|
9510
|
-
type: "function"
|
|
9511
|
-
},
|
|
9512
|
-
{
|
|
9513
|
-
inputs: [
|
|
9514
|
-
{
|
|
9515
|
-
internalType: "uint256",
|
|
9516
|
-
name: "tokenId",
|
|
9517
|
-
type: "uint256"
|
|
9518
|
-
}
|
|
9519
|
-
],
|
|
9520
|
-
name: "ownerOf",
|
|
9521
|
-
outputs: [
|
|
9522
|
-
{
|
|
9523
|
-
internalType: "address",
|
|
9524
|
-
name: "",
|
|
9525
|
-
type: "address"
|
|
9526
|
-
}
|
|
9527
|
-
],
|
|
9528
|
-
stateMutability: "view",
|
|
9529
|
-
type: "function"
|
|
9530
|
-
},
|
|
9531
|
-
{
|
|
9532
|
-
inputs: [
|
|
9533
|
-
{
|
|
9534
|
-
internalType: "uint256",
|
|
9535
|
-
name: "tokenId",
|
|
9536
|
-
type: "uint256"
|
|
9537
|
-
}
|
|
9538
|
-
],
|
|
9539
|
-
name: "positions",
|
|
9540
|
-
outputs: [
|
|
9541
|
-
{
|
|
9542
|
-
internalType: "address",
|
|
9543
|
-
name: "token0",
|
|
9544
|
-
type: "address"
|
|
9545
|
-
},
|
|
9546
|
-
{
|
|
9547
|
-
internalType: "address",
|
|
9548
|
-
name: "token1",
|
|
9549
|
-
type: "address"
|
|
9550
|
-
},
|
|
9551
|
-
{
|
|
9552
|
-
internalType: "int24",
|
|
9553
|
-
name: "tickSpacing",
|
|
9554
|
-
type: "int24"
|
|
9555
|
-
},
|
|
9556
|
-
{
|
|
9557
|
-
internalType: "int24",
|
|
9558
|
-
name: "tickLower",
|
|
9559
|
-
type: "int24"
|
|
9560
|
-
},
|
|
9561
|
-
{
|
|
9562
|
-
internalType: "int24",
|
|
9563
|
-
name: "tickUpper",
|
|
9564
|
-
type: "int24"
|
|
9565
|
-
},
|
|
9566
|
-
{
|
|
9567
|
-
internalType: "uint128",
|
|
9568
|
-
name: "liquidity",
|
|
9569
|
-
type: "uint128"
|
|
9570
|
-
},
|
|
9571
|
-
{
|
|
9572
|
-
internalType: "uint256",
|
|
9573
|
-
name: "feeGrowthInside0LastX128",
|
|
9574
|
-
type: "uint256"
|
|
9575
|
-
},
|
|
9576
|
-
{
|
|
9577
|
-
internalType: "uint256",
|
|
9578
|
-
name: "feeGrowthInside1LastX128",
|
|
9579
|
-
type: "uint256"
|
|
9580
|
-
},
|
|
9581
|
-
{
|
|
9582
|
-
internalType: "uint128",
|
|
9583
|
-
name: "tokensOwed0",
|
|
9584
|
-
type: "uint128"
|
|
9585
|
-
},
|
|
9586
|
-
{
|
|
9587
|
-
internalType: "uint128",
|
|
9588
|
-
name: "tokensOwed1",
|
|
9589
|
-
type: "uint128"
|
|
9590
|
-
}
|
|
9591
|
-
],
|
|
9592
|
-
stateMutability: "view",
|
|
9593
|
-
type: "function"
|
|
9594
|
-
},
|
|
9595
|
-
{
|
|
9596
|
-
inputs: [
|
|
9597
|
-
],
|
|
9598
|
-
name: "refundETH",
|
|
9599
|
-
outputs: [
|
|
9600
|
-
],
|
|
9601
|
-
stateMutability: "payable",
|
|
9602
|
-
type: "function"
|
|
9603
|
-
},
|
|
9604
|
-
{
|
|
9605
|
-
inputs: [
|
|
9606
|
-
{
|
|
9607
|
-
internalType: "address",
|
|
9608
|
-
name: "from",
|
|
9609
|
-
type: "address"
|
|
9610
|
-
},
|
|
9611
|
-
{
|
|
9612
|
-
internalType: "address",
|
|
9613
|
-
name: "to",
|
|
9614
|
-
type: "address"
|
|
9615
|
-
},
|
|
9616
|
-
{
|
|
9617
|
-
internalType: "uint256",
|
|
9618
|
-
name: "tokenId",
|
|
9619
|
-
type: "uint256"
|
|
9620
|
-
}
|
|
9621
|
-
],
|
|
9622
|
-
name: "safeTransferFrom",
|
|
9623
|
-
outputs: [
|
|
9624
|
-
],
|
|
9625
|
-
stateMutability: "nonpayable",
|
|
9626
|
-
type: "function"
|
|
9627
|
-
},
|
|
9628
|
-
{
|
|
9629
|
-
inputs: [
|
|
9630
|
-
{
|
|
9631
|
-
internalType: "address",
|
|
9632
|
-
name: "from",
|
|
9633
|
-
type: "address"
|
|
9634
|
-
},
|
|
9635
|
-
{
|
|
9636
|
-
internalType: "address",
|
|
9637
|
-
name: "to",
|
|
9638
|
-
type: "address"
|
|
9639
|
-
},
|
|
9640
|
-
{
|
|
9641
|
-
internalType: "uint256",
|
|
9642
|
-
name: "tokenId",
|
|
9643
|
-
type: "uint256"
|
|
9644
|
-
},
|
|
9645
|
-
{
|
|
9646
|
-
internalType: "bytes",
|
|
9647
|
-
name: "data",
|
|
9648
|
-
type: "bytes"
|
|
9649
|
-
}
|
|
9650
|
-
],
|
|
9651
|
-
name: "safeTransferFrom",
|
|
9652
|
-
outputs: [
|
|
9653
|
-
],
|
|
9654
|
-
stateMutability: "nonpayable",
|
|
9655
|
-
type: "function"
|
|
9656
|
-
},
|
|
9657
|
-
{
|
|
9658
|
-
inputs: [
|
|
9659
|
-
{
|
|
9660
|
-
internalType: "address",
|
|
9661
|
-
name: "operator",
|
|
9662
|
-
type: "address"
|
|
9663
|
-
},
|
|
9664
|
-
{
|
|
9665
|
-
internalType: "bool",
|
|
9666
|
-
name: "approved",
|
|
9667
|
-
type: "bool"
|
|
9668
|
-
}
|
|
9669
|
-
],
|
|
9670
|
-
name: "setApprovalForAll",
|
|
9671
|
-
outputs: [
|
|
9672
|
-
],
|
|
9673
|
-
stateMutability: "nonpayable",
|
|
9674
|
-
type: "function"
|
|
9675
|
-
},
|
|
9676
|
-
{
|
|
9677
|
-
inputs: [
|
|
9678
|
-
{
|
|
9679
|
-
internalType: "address",
|
|
9680
|
-
name: "_voter",
|
|
9681
|
-
type: "address"
|
|
9682
|
-
}
|
|
9683
|
-
],
|
|
9684
|
-
name: "setVoter",
|
|
9685
|
-
outputs: [
|
|
9686
|
-
],
|
|
9687
|
-
stateMutability: "nonpayable",
|
|
9688
|
-
type: "function"
|
|
9689
|
-
},
|
|
9690
|
-
{
|
|
9691
|
-
inputs: [
|
|
9692
|
-
{
|
|
9693
|
-
internalType: "bytes4",
|
|
9694
|
-
name: "interfaceId",
|
|
9695
|
-
type: "bytes4"
|
|
9696
|
-
}
|
|
9697
|
-
],
|
|
9698
|
-
name: "supportsInterface",
|
|
9699
|
-
outputs: [
|
|
9700
|
-
{
|
|
9701
|
-
internalType: "bool",
|
|
9702
|
-
name: "",
|
|
9703
|
-
type: "bool"
|
|
9704
|
-
}
|
|
9705
|
-
],
|
|
9706
|
-
stateMutability: "view",
|
|
9707
|
-
type: "function"
|
|
9708
|
-
},
|
|
9709
|
-
{
|
|
9710
|
-
inputs: [
|
|
9711
|
-
{
|
|
9712
|
-
internalType: "address",
|
|
9713
|
-
name: "token",
|
|
9714
|
-
type: "address"
|
|
9715
|
-
},
|
|
9716
|
-
{
|
|
9717
|
-
internalType: "uint256",
|
|
9718
|
-
name: "amountMinimum",
|
|
9719
|
-
type: "uint256"
|
|
9720
|
-
},
|
|
9721
|
-
{
|
|
9722
|
-
internalType: "address",
|
|
9723
|
-
name: "recipient",
|
|
9724
|
-
type: "address"
|
|
9725
|
-
}
|
|
9726
|
-
],
|
|
9727
|
-
name: "sweepToken",
|
|
9728
|
-
outputs: [
|
|
9729
|
-
],
|
|
9730
|
-
stateMutability: "payable",
|
|
9731
|
-
type: "function"
|
|
9732
|
-
},
|
|
9733
|
-
{
|
|
9734
|
-
inputs: [
|
|
9735
|
-
],
|
|
9736
|
-
name: "symbol",
|
|
9737
|
-
outputs: [
|
|
9738
|
-
{
|
|
9739
|
-
internalType: "string",
|
|
9740
|
-
name: "",
|
|
9741
|
-
type: "string"
|
|
9742
|
-
}
|
|
9743
|
-
],
|
|
9744
|
-
stateMutability: "view",
|
|
9745
|
-
type: "function"
|
|
9746
|
-
},
|
|
9747
|
-
{
|
|
9748
|
-
inputs: [
|
|
9749
|
-
{
|
|
9750
|
-
internalType: "uint256",
|
|
9751
|
-
name: "index",
|
|
9752
|
-
type: "uint256"
|
|
9753
|
-
}
|
|
9754
|
-
],
|
|
9755
|
-
name: "tokenByIndex",
|
|
9756
|
-
outputs: [
|
|
9757
|
-
{
|
|
9758
|
-
internalType: "uint256",
|
|
9759
|
-
name: "",
|
|
9760
|
-
type: "uint256"
|
|
9761
|
-
}
|
|
9762
|
-
],
|
|
9763
|
-
stateMutability: "view",
|
|
9764
|
-
type: "function"
|
|
9765
|
-
},
|
|
9766
|
-
{
|
|
9767
|
-
inputs: [
|
|
9768
|
-
{
|
|
9769
|
-
internalType: "address",
|
|
9770
|
-
name: "owner",
|
|
9771
|
-
type: "address"
|
|
9772
|
-
},
|
|
9773
|
-
{
|
|
9774
|
-
internalType: "uint256",
|
|
9775
|
-
name: "index",
|
|
9776
|
-
type: "uint256"
|
|
9777
|
-
}
|
|
9778
|
-
],
|
|
9779
|
-
name: "tokenOfOwnerByIndex",
|
|
9780
|
-
outputs: [
|
|
9781
|
-
{
|
|
9782
|
-
internalType: "uint256",
|
|
9783
|
-
name: "",
|
|
9784
|
-
type: "uint256"
|
|
9785
|
-
}
|
|
9786
|
-
],
|
|
9787
|
-
stateMutability: "view",
|
|
9788
|
-
type: "function"
|
|
9789
|
-
},
|
|
9790
|
-
{
|
|
9791
|
-
inputs: [
|
|
9792
|
-
{
|
|
9793
|
-
internalType: "uint256",
|
|
9794
|
-
name: "tokenId",
|
|
9795
|
-
type: "uint256"
|
|
9796
|
-
}
|
|
9797
|
-
],
|
|
9798
|
-
name: "tokenURI",
|
|
9799
|
-
outputs: [
|
|
9800
|
-
{
|
|
9801
|
-
internalType: "string",
|
|
9802
|
-
name: "",
|
|
9803
|
-
type: "string"
|
|
9804
|
-
}
|
|
9805
|
-
],
|
|
9806
|
-
stateMutability: "view",
|
|
9807
|
-
type: "function"
|
|
9808
|
-
},
|
|
9809
|
-
{
|
|
9810
|
-
inputs: [
|
|
9811
|
-
],
|
|
9812
|
-
name: "totalSupply",
|
|
9813
|
-
outputs: [
|
|
9814
|
-
{
|
|
9815
|
-
internalType: "uint256",
|
|
9816
|
-
name: "",
|
|
9817
|
-
type: "uint256"
|
|
9818
|
-
}
|
|
9819
|
-
],
|
|
9820
|
-
stateMutability: "view",
|
|
9821
|
-
type: "function"
|
|
9822
|
-
},
|
|
9823
|
-
{
|
|
9824
|
-
inputs: [
|
|
9825
|
-
{
|
|
9826
|
-
internalType: "address",
|
|
9827
|
-
name: "from",
|
|
9828
|
-
type: "address"
|
|
9829
|
-
},
|
|
9830
|
-
{
|
|
9831
|
-
internalType: "address",
|
|
9832
|
-
name: "to",
|
|
9833
|
-
type: "address"
|
|
9834
|
-
},
|
|
9835
|
-
{
|
|
9836
|
-
internalType: "uint256",
|
|
9837
|
-
name: "tokenId",
|
|
9838
|
-
type: "uint256"
|
|
9839
|
-
}
|
|
9840
|
-
],
|
|
9841
|
-
name: "transferFrom",
|
|
9842
|
-
outputs: [
|
|
9843
|
-
],
|
|
9844
|
-
stateMutability: "nonpayable",
|
|
9845
|
-
type: "function"
|
|
9846
|
-
},
|
|
9847
|
-
{
|
|
9848
|
-
inputs: [
|
|
9849
|
-
{
|
|
9850
|
-
internalType: "uint256",
|
|
9851
|
-
name: "amount0Owed",
|
|
9852
|
-
type: "uint256"
|
|
9853
|
-
},
|
|
9854
|
-
{
|
|
9855
|
-
internalType: "uint256",
|
|
9856
|
-
name: "amount1Owed",
|
|
9857
|
-
type: "uint256"
|
|
9858
|
-
},
|
|
9859
|
-
{
|
|
9860
|
-
internalType: "bytes",
|
|
9861
|
-
name: "data",
|
|
9862
|
-
type: "bytes"
|
|
9863
|
-
}
|
|
9864
|
-
],
|
|
9865
|
-
name: "uniswapV3MintCallback",
|
|
9866
|
-
outputs: [
|
|
9867
|
-
],
|
|
9868
|
-
stateMutability: "nonpayable",
|
|
9869
|
-
type: "function"
|
|
9870
|
-
},
|
|
9871
|
-
{
|
|
9872
|
-
inputs: [
|
|
9873
|
-
{
|
|
9874
|
-
internalType: "uint256",
|
|
9875
|
-
name: "amountMinimum",
|
|
9876
|
-
type: "uint256"
|
|
9877
|
-
},
|
|
9878
|
-
{
|
|
9879
|
-
internalType: "address",
|
|
9880
|
-
name: "recipient",
|
|
9881
|
-
type: "address"
|
|
9882
|
-
}
|
|
9883
|
-
],
|
|
9884
|
-
name: "unwrapWETH9",
|
|
9885
|
-
outputs: [
|
|
9886
|
-
],
|
|
9887
|
-
stateMutability: "payable",
|
|
9888
|
-
type: "function"
|
|
9889
|
-
},
|
|
9890
|
-
{
|
|
9891
|
-
stateMutability: "payable",
|
|
9892
|
-
type: "receive"
|
|
9893
|
-
}
|
|
9894
|
-
];
|
|
9895
|
-
|
|
9896
8692
|
var IRamsesNonfungiblePositionManager = [
|
|
9897
8693
|
{
|
|
9898
8694
|
anonymous: false,
|
|
@@ -10730,13 +9526,9 @@ function _getUniswapV3MintTxData() {
|
|
|
10730
9526
|
mintParams.push(0);
|
|
10731
9527
|
}
|
|
10732
9528
|
|
|
10733
|
-
if (dapp === exports.Dapp.SHADOWCL) {
|
|
10734
|
-
iNonfungiblePositionManager = new ethers.ethers.utils.Interface(IShadowNonfungiblePositionManager);
|
|
10735
|
-
}
|
|
10736
|
-
|
|
10737
9529
|
return _context.abrupt("return", iNonfungiblePositionManager.encodeFunctionData(exports.Transaction.MINT, [mintParams]));
|
|
10738
9530
|
|
|
10739
|
-
case
|
|
9531
|
+
case 29:
|
|
10740
9532
|
case "end":
|
|
10741
9533
|
return _context.stop();
|
|
10742
9534
|
}
|
|
@@ -10758,7 +9550,7 @@ function _getUniswapV3Liquidity() {
|
|
|
10758
9550
|
switch (_context2.prev = _context2.next) {
|
|
10759
9551
|
case 0:
|
|
10760
9552
|
iNonfungiblePositionManager = new ethers.ethers.Contract( // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
10761
|
-
nonfungiblePositionManagerAddress[pool.network][dapp],
|
|
9553
|
+
nonfungiblePositionManagerAddress[pool.network][dapp], INonfungiblePositionManager.abi, pool.signer);
|
|
10762
9554
|
_context2.next = 3;
|
|
10763
9555
|
return iNonfungiblePositionManager.positions(tokenId);
|
|
10764
9556
|
|
|
@@ -10788,7 +9580,7 @@ function _getIncreaseLiquidityTxData() {
|
|
|
10788
9580
|
while (1) {
|
|
10789
9581
|
switch (_context3.prev = _context3.next) {
|
|
10790
9582
|
case 0:
|
|
10791
|
-
if (!(dapp === exports.Dapp.UNISWAPV3 || dapp === exports.Dapp.VELODROMECL || dapp === exports.Dapp.AERODROMECL || dapp === exports.Dapp.RAMSESCL || dapp === exports.Dapp.PANCAKECL
|
|
9583
|
+
if (!(dapp === exports.Dapp.UNISWAPV3 || dapp === exports.Dapp.VELODROMECL || dapp === exports.Dapp.AERODROMECL || dapp === exports.Dapp.RAMSESCL || dapp === exports.Dapp.PANCAKECL)) {
|
|
10792
9584
|
_context3.next = 15;
|
|
10793
9585
|
break;
|
|
10794
9586
|
}
|
|
@@ -10853,7 +9645,7 @@ function _getDecreaseLiquidityTxData() {
|
|
|
10853
9645
|
amount = 100;
|
|
10854
9646
|
}
|
|
10855
9647
|
|
|
10856
|
-
if (!(dapp === exports.Dapp.UNISWAPV3 || dapp === exports.Dapp.VELODROMECL || dapp === exports.Dapp.AERODROMECL || dapp === exports.Dapp.RAMSESCL || dapp === exports.Dapp.PANCAKECL
|
|
9648
|
+
if (!(dapp === exports.Dapp.UNISWAPV3 || dapp === exports.Dapp.VELODROMECL || dapp === exports.Dapp.AERODROMECL || dapp === exports.Dapp.RAMSESCL || dapp === exports.Dapp.PANCAKECL)) {
|
|
10857
9649
|
_context4.next = 23;
|
|
10858
9650
|
break;
|
|
10859
9651
|
}
|
|
@@ -11702,10 +10494,10 @@ var _networkPortMap;
|
|
|
11702
10494
|
|
|
11703
10495
|
require("dotenv").config();
|
|
11704
10496
|
|
|
11705
|
-
var networkPortMap = (_networkPortMap = {}, _networkPortMap[exports.Network.POLYGON] = 8542, _networkPortMap[exports.Network.OPTIMISM] = 8544, _networkPortMap[exports.Network.ARBITRUM] = 8540, _networkPortMap[exports.Network.BASE] = 8546, _networkPortMap[exports.Network.
|
|
10497
|
+
var networkPortMap = (_networkPortMap = {}, _networkPortMap[exports.Network.POLYGON] = 8542, _networkPortMap[exports.Network.OPTIMISM] = 8544, _networkPortMap[exports.Network.ARBITRUM] = 8540, _networkPortMap[exports.Network.BASE] = 8546, _networkPortMap[exports.Network.ETHEREUM] = 8547, _networkPortMap);
|
|
11706
10498
|
|
|
11707
10499
|
var _TEST_POOL, _CONTRACT_ADDRESS, _USDC_BALANCEOF_SLOT, _WETH_BALANCEOF_SLOT;
|
|
11708
|
-
var TEST_POOL = (_TEST_POOL = {}, _TEST_POOL[exports.Network.POLYGON] = "0x699fd4d6eadb216704c7e355cfa0a12f51813163", _TEST_POOL[exports.Network.OPTIMISM] = "0x12573bfdf764ab9d52aca20e2827497a66829716", _TEST_POOL[exports.Network.ARBITRUM] = "0x0b5f6591c8eb23e5a68102d3d39ebbb464ee5c14", _TEST_POOL[exports.Network.BASE] = "0x4842b42F68524383F609aa46eAfc18c1459cE3cD", _TEST_POOL[exports.Network.
|
|
10500
|
+
var TEST_POOL = (_TEST_POOL = {}, _TEST_POOL[exports.Network.POLYGON] = "0x699fd4d6eadb216704c7e355cfa0a12f51813163", _TEST_POOL[exports.Network.OPTIMISM] = "0x12573bfdf764ab9d52aca20e2827497a66829716", _TEST_POOL[exports.Network.ARBITRUM] = "0x0b5f6591c8eb23e5a68102d3d39ebbb464ee5c14", _TEST_POOL[exports.Network.BASE] = "0x4842b42F68524383F609aa46eAfc18c1459cE3cD", _TEST_POOL[exports.Network.ETHEREUM] = "0xe8e74f664d2d6a919a18b911990db0979789b6f7", _TEST_POOL);
|
|
11709
10501
|
var CONTRACT_ADDRESS = (_CONTRACT_ADDRESS = {}, _CONTRACT_ADDRESS[exports.Network.POLYGON] = {
|
|
11710
10502
|
USDC: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
|
|
11711
10503
|
USDT: "",
|
|
@@ -11722,6 +10514,7 @@ var CONTRACT_ADDRESS = (_CONTRACT_ADDRESS = {}, _CONTRACT_ADDRESS[exports.Networ
|
|
|
11722
10514
|
VELODROME_CL_USDC_WETH_GAUGE: "",
|
|
11723
10515
|
VELO: "",
|
|
11724
10516
|
COMPOUNDV3_WETH: "",
|
|
10517
|
+
FLUID_WETH: "",
|
|
11725
10518
|
TOROS: "",
|
|
11726
10519
|
UNIT: ""
|
|
11727
10520
|
}, _CONTRACT_ADDRESS[exports.Network.OPTIMISM] = {
|
|
@@ -11743,6 +10536,7 @@ var CONTRACT_ADDRESS = (_CONTRACT_ADDRESS = {}, _CONTRACT_ADDRESS[exports.Networ
|
|
|
11743
10536
|
VELODROME_CL_USDC_WETH_GAUGE: "0xa75127121d28a9BF848F3B70e7Eea26570aa7700",
|
|
11744
10537
|
VELO: "0x9560e827aF36c94D2Ac33a39bCE1Fe78631088Db",
|
|
11745
10538
|
COMPOUNDV3_WETH: "",
|
|
10539
|
+
FLUID_WETH: "",
|
|
11746
10540
|
TOROS: "0x49bf093277bf4dde49c48c6aa55a3bda3eedef68" //USDmny
|
|
11747
10541
|
|
|
11748
10542
|
}, _CONTRACT_ADDRESS[exports.Network.ARBITRUM] = {
|
|
@@ -11766,6 +10560,7 @@ var CONTRACT_ADDRESS = (_CONTRACT_ADDRESS = {}, _CONTRACT_ADDRESS[exports.Networ
|
|
|
11766
10560
|
VELODROME_CL_USDC_WETH_GAUGE: "",
|
|
11767
10561
|
VELO: "",
|
|
11768
10562
|
COMPOUNDV3_WETH: "0x6f7D514bbD4aFf3BcD1140B7344b32f063dEe486",
|
|
10563
|
+
FLUID_WETH: "0x45df0656f8adf017590009d2f1898eeca4f0a205",
|
|
11769
10564
|
TOROS: ""
|
|
11770
10565
|
}, _CONTRACT_ADDRESS[exports.Network.BASE] = {
|
|
11771
10566
|
USDC: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
|
@@ -11785,12 +10580,13 @@ var CONTRACT_ADDRESS = (_CONTRACT_ADDRESS = {}, _CONTRACT_ADDRESS[exports.Networ
|
|
|
11785
10580
|
VELODROME_CL_USDC_WETH_GAUGE: "0xF33a96b5932D9E9B9A0eDA447AbD8C9d48d2e0c8",
|
|
11786
10581
|
VELO: "0x940181a94A35A4569E4529A3CDfB74e38FD98631",
|
|
11787
10582
|
COMPOUNDV3_WETH: "",
|
|
10583
|
+
FLUID_WETH: "",
|
|
11788
10584
|
TOROS: ""
|
|
11789
|
-
}, _CONTRACT_ADDRESS[exports.Network.
|
|
11790
|
-
USDC: "
|
|
10585
|
+
}, _CONTRACT_ADDRESS[exports.Network.ETHEREUM] = {
|
|
10586
|
+
USDC: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
11791
10587
|
USDT: "",
|
|
11792
10588
|
SUSD: "",
|
|
11793
|
-
WETH: "
|
|
10589
|
+
WETH: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
11794
10590
|
WBTC: "",
|
|
11795
10591
|
SWETH: "",
|
|
11796
10592
|
uniswapV3: {
|
|
@@ -11803,11 +10599,12 @@ var CONTRACT_ADDRESS = (_CONTRACT_ADDRESS = {}, _CONTRACT_ADDRESS[exports.Networ
|
|
|
11803
10599
|
VELODROME_CL_USDC_WETH_GAUGE: "",
|
|
11804
10600
|
VELO: "",
|
|
11805
10601
|
COMPOUNDV3_WETH: "",
|
|
10602
|
+
FLUID_WETH: "",
|
|
11806
10603
|
TOROS: "",
|
|
11807
10604
|
UNIT: ""
|
|
11808
10605
|
}, _CONTRACT_ADDRESS);
|
|
11809
|
-
var USDC_BALANCEOF_SLOT = (_USDC_BALANCEOF_SLOT = {}, _USDC_BALANCEOF_SLOT[exports.Network.OPTIMISM] = 9, _USDC_BALANCEOF_SLOT[exports.Network.ARBITRUM] = 9, _USDC_BALANCEOF_SLOT[exports.Network.POLYGON] = 0, _USDC_BALANCEOF_SLOT[exports.Network.BASE] = 9, _USDC_BALANCEOF_SLOT[exports.Network.
|
|
11810
|
-
var WETH_BALANCEOF_SLOT = (_WETH_BALANCEOF_SLOT = {}, _WETH_BALANCEOF_SLOT[exports.Network.OPTIMISM] = 3, _WETH_BALANCEOF_SLOT[exports.Network.ARBITRUM] = 51, _WETH_BALANCEOF_SLOT[exports.Network.POLYGON] = 0, _WETH_BALANCEOF_SLOT[exports.Network.BASE] = 0, _WETH_BALANCEOF_SLOT[exports.Network.
|
|
10606
|
+
var USDC_BALANCEOF_SLOT = (_USDC_BALANCEOF_SLOT = {}, _USDC_BALANCEOF_SLOT[exports.Network.OPTIMISM] = 9, _USDC_BALANCEOF_SLOT[exports.Network.ARBITRUM] = 9, _USDC_BALANCEOF_SLOT[exports.Network.POLYGON] = 0, _USDC_BALANCEOF_SLOT[exports.Network.BASE] = 9, _USDC_BALANCEOF_SLOT[exports.Network.ETHEREUM] = 9, _USDC_BALANCEOF_SLOT);
|
|
10607
|
+
var WETH_BALANCEOF_SLOT = (_WETH_BALANCEOF_SLOT = {}, _WETH_BALANCEOF_SLOT[exports.Network.OPTIMISM] = 3, _WETH_BALANCEOF_SLOT[exports.Network.ARBITRUM] = 51, _WETH_BALANCEOF_SLOT[exports.Network.POLYGON] = 0, _WETH_BALANCEOF_SLOT[exports.Network.BASE] = 0, _WETH_BALANCEOF_SLOT[exports.Network.ETHEREUM] = 3, _WETH_BALANCEOF_SLOT);
|
|
11811
10608
|
|
|
11812
10609
|
var wait = function wait(seconds) {
|
|
11813
10610
|
return new Promise(function (resolve) {
|
|
@@ -25116,11 +23913,162 @@ var ICompoundV3Comet = [
|
|
|
25116
23913
|
}
|
|
25117
23914
|
];
|
|
25118
23915
|
|
|
25119
|
-
|
|
25120
|
-
|
|
23916
|
+
var IFToken = [
|
|
23917
|
+
{
|
|
23918
|
+
inputs: [
|
|
23919
|
+
{
|
|
23920
|
+
internalType: "uint256",
|
|
23921
|
+
name: "assets_",
|
|
23922
|
+
type: "uint256"
|
|
23923
|
+
},
|
|
23924
|
+
{
|
|
23925
|
+
internalType: "address",
|
|
23926
|
+
name: "receiver_",
|
|
23927
|
+
type: "address"
|
|
23928
|
+
}
|
|
23929
|
+
],
|
|
23930
|
+
name: "deposit",
|
|
23931
|
+
outputs: [
|
|
23932
|
+
{
|
|
23933
|
+
internalType: "uint256",
|
|
23934
|
+
name: "shares_",
|
|
23935
|
+
type: "uint256"
|
|
23936
|
+
}
|
|
23937
|
+
],
|
|
23938
|
+
stateMutability: "nonpayable",
|
|
23939
|
+
type: "function"
|
|
23940
|
+
},
|
|
23941
|
+
{
|
|
23942
|
+
inputs: [
|
|
23943
|
+
{
|
|
23944
|
+
internalType: "uint256",
|
|
23945
|
+
name: "shares_",
|
|
23946
|
+
type: "uint256"
|
|
23947
|
+
},
|
|
23948
|
+
{
|
|
23949
|
+
internalType: "address",
|
|
23950
|
+
name: "receiver_",
|
|
23951
|
+
type: "address"
|
|
23952
|
+
},
|
|
23953
|
+
{
|
|
23954
|
+
internalType: "address",
|
|
23955
|
+
name: "owner_",
|
|
23956
|
+
type: "address"
|
|
23957
|
+
}
|
|
23958
|
+
],
|
|
23959
|
+
name: "redeem",
|
|
23960
|
+
outputs: [
|
|
23961
|
+
{
|
|
23962
|
+
internalType: "uint256",
|
|
23963
|
+
name: "assets_",
|
|
23964
|
+
type: "uint256"
|
|
23965
|
+
}
|
|
23966
|
+
],
|
|
23967
|
+
stateMutability: "nonpayable",
|
|
23968
|
+
type: "function"
|
|
23969
|
+
}
|
|
23970
|
+
];
|
|
23971
|
+
|
|
23972
|
+
function getCompoundV3LendTxData(_x, _x2, _x3, _x4) {
|
|
23973
|
+
return _getCompoundV3LendTxData.apply(this, arguments);
|
|
23974
|
+
}
|
|
23975
|
+
|
|
23976
|
+
function _getCompoundV3LendTxData() {
|
|
23977
|
+
_getCompoundV3LendTxData = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(pool, market, asset, amount) {
|
|
23978
|
+
return runtime_1.wrap(function _callee$(_context) {
|
|
23979
|
+
while (1) {
|
|
23980
|
+
switch (_context.prev = _context.next) {
|
|
23981
|
+
case 0:
|
|
23982
|
+
_context.next = 2;
|
|
23983
|
+
return isCompoundV3Market(pool, market);
|
|
23984
|
+
|
|
23985
|
+
case 2:
|
|
23986
|
+
if (!_context.sent) {
|
|
23987
|
+
_context.next = 6;
|
|
23988
|
+
break;
|
|
23989
|
+
}
|
|
23990
|
+
|
|
23991
|
+
return _context.abrupt("return", new ethers.ethers.utils.Interface(ICompoundV3Comet).encodeFunctionData("supply", [asset, amount]));
|
|
23992
|
+
|
|
23993
|
+
case 6:
|
|
23994
|
+
return _context.abrupt("return", new ethers.ethers.utils.Interface(IFToken).encodeFunctionData("deposit", [amount, pool.address]));
|
|
23995
|
+
|
|
23996
|
+
case 7:
|
|
23997
|
+
case "end":
|
|
23998
|
+
return _context.stop();
|
|
23999
|
+
}
|
|
24000
|
+
}
|
|
24001
|
+
}, _callee);
|
|
24002
|
+
}));
|
|
24003
|
+
return _getCompoundV3LendTxData.apply(this, arguments);
|
|
24004
|
+
}
|
|
24005
|
+
|
|
24006
|
+
function getCompoundV3WithdrawTxData(_x5, _x6, _x7, _x8) {
|
|
24007
|
+
return _getCompoundV3WithdrawTxData.apply(this, arguments);
|
|
24008
|
+
}
|
|
24009
|
+
|
|
24010
|
+
function _getCompoundV3WithdrawTxData() {
|
|
24011
|
+
_getCompoundV3WithdrawTxData = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(pool, market, asset, amount) {
|
|
24012
|
+
return runtime_1.wrap(function _callee2$(_context2) {
|
|
24013
|
+
while (1) {
|
|
24014
|
+
switch (_context2.prev = _context2.next) {
|
|
24015
|
+
case 0:
|
|
24016
|
+
_context2.next = 2;
|
|
24017
|
+
return isCompoundV3Market(pool, market);
|
|
24018
|
+
|
|
24019
|
+
case 2:
|
|
24020
|
+
if (!_context2.sent) {
|
|
24021
|
+
_context2.next = 6;
|
|
24022
|
+
break;
|
|
24023
|
+
}
|
|
24024
|
+
|
|
24025
|
+
return _context2.abrupt("return", new ethers.ethers.utils.Interface(ICompoundV3Comet).encodeFunctionData("withdraw", [asset, amount]));
|
|
24026
|
+
|
|
24027
|
+
case 6:
|
|
24028
|
+
return _context2.abrupt("return", new ethers.ethers.utils.Interface(IFToken).encodeFunctionData("redeem", [amount, pool.address, pool.address]));
|
|
24029
|
+
|
|
24030
|
+
case 7:
|
|
24031
|
+
case "end":
|
|
24032
|
+
return _context2.stop();
|
|
24033
|
+
}
|
|
24034
|
+
}
|
|
24035
|
+
}, _callee2);
|
|
24036
|
+
}));
|
|
24037
|
+
return _getCompoundV3WithdrawTxData.apply(this, arguments);
|
|
24038
|
+
}
|
|
24039
|
+
|
|
24040
|
+
function isCompoundV3Market(_x9, _x10) {
|
|
24041
|
+
return _isCompoundV3Market.apply(this, arguments);
|
|
25121
24042
|
}
|
|
25122
|
-
|
|
25123
|
-
|
|
24043
|
+
|
|
24044
|
+
function _isCompoundV3Market() {
|
|
24045
|
+
_isCompoundV3Market = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(pool, market) {
|
|
24046
|
+
var marketContract;
|
|
24047
|
+
return runtime_1.wrap(function _callee3$(_context3) {
|
|
24048
|
+
while (1) {
|
|
24049
|
+
switch (_context3.prev = _context3.next) {
|
|
24050
|
+
case 0:
|
|
24051
|
+
marketContract = new ethers.ethers.Contract(market, ICompoundV3Comet, pool.signer);
|
|
24052
|
+
_context3.prev = 1;
|
|
24053
|
+
_context3.next = 4;
|
|
24054
|
+
return marketContract.baseToken();
|
|
24055
|
+
|
|
24056
|
+
case 4:
|
|
24057
|
+
return _context3.abrupt("return", true);
|
|
24058
|
+
|
|
24059
|
+
case 7:
|
|
24060
|
+
_context3.prev = 7;
|
|
24061
|
+
_context3.t0 = _context3["catch"](1);
|
|
24062
|
+
return _context3.abrupt("return", false);
|
|
24063
|
+
|
|
24064
|
+
case 10:
|
|
24065
|
+
case "end":
|
|
24066
|
+
return _context3.stop();
|
|
24067
|
+
}
|
|
24068
|
+
}
|
|
24069
|
+
}, _callee3, null, [[1, 7]]);
|
|
24070
|
+
}));
|
|
24071
|
+
return _isCompoundV3Market.apply(this, arguments);
|
|
25124
24072
|
}
|
|
25125
24073
|
|
|
25126
24074
|
var ICometRewards = [
|
|
@@ -27028,8 +25976,8 @@ var Pool = /*#__PURE__*/function () {
|
|
|
27028
25976
|
return lend;
|
|
27029
25977
|
}()
|
|
27030
25978
|
/**
|
|
27031
|
-
* Lend asset to a Compound V3
|
|
27032
|
-
* @param {string} market Address of
|
|
25979
|
+
* Lend asset to a Compound V3 or Fluid lending pool
|
|
25980
|
+
* @param {string} market Address of cToken or fToken
|
|
27033
25981
|
* @param {string} asset Asset
|
|
27034
25982
|
* @param {BigNumber | string} amount Amount of asset to lend
|
|
27035
25983
|
* @param {any} options Transaction options
|
|
@@ -27055,15 +26003,19 @@ var Pool = /*#__PURE__*/function () {
|
|
|
27055
26003
|
estimateGas = false;
|
|
27056
26004
|
}
|
|
27057
26005
|
|
|
27058
|
-
|
|
27059
|
-
|
|
26006
|
+
_context18.next = 4;
|
|
26007
|
+
return getCompoundV3LendTxData(this, market, asset, amount);
|
|
26008
|
+
|
|
26009
|
+
case 4:
|
|
26010
|
+
supplyTxData = _context18.sent;
|
|
26011
|
+
_context18.next = 7;
|
|
27060
26012
|
return getPoolTxOrGasEstimate(this, [market, supplyTxData, options], estimateGas);
|
|
27061
26013
|
|
|
27062
|
-
case
|
|
26014
|
+
case 7:
|
|
27063
26015
|
tx = _context18.sent;
|
|
27064
26016
|
return _context18.abrupt("return", tx);
|
|
27065
26017
|
|
|
27066
|
-
case
|
|
26018
|
+
case 9:
|
|
27067
26019
|
case "end":
|
|
27068
26020
|
return _context18.stop();
|
|
27069
26021
|
}
|
|
@@ -27129,8 +26081,8 @@ var Pool = /*#__PURE__*/function () {
|
|
|
27129
26081
|
return withdrawDeposit;
|
|
27130
26082
|
}()
|
|
27131
26083
|
/**
|
|
27132
|
-
* Witdraw asset from a
|
|
27133
|
-
* @param {string} market Address of
|
|
26084
|
+
* Witdraw asset from a Compound V3 or Fluid lending pool
|
|
26085
|
+
* @param {string} market Address of cToken or fToken
|
|
27134
26086
|
* @param {string} asset Asset
|
|
27135
26087
|
* @param {BigNumber | string} amount Amount of asset to withdraw
|
|
27136
26088
|
* @param {any} options Transaction options
|
|
@@ -27156,15 +26108,19 @@ var Pool = /*#__PURE__*/function () {
|
|
|
27156
26108
|
estimateGas = false;
|
|
27157
26109
|
}
|
|
27158
26110
|
|
|
27159
|
-
|
|
27160
|
-
|
|
26111
|
+
_context20.next = 4;
|
|
26112
|
+
return getCompoundV3WithdrawTxData(this, market, asset, amount);
|
|
26113
|
+
|
|
26114
|
+
case 4:
|
|
26115
|
+
withdrawTxData = _context20.sent;
|
|
26116
|
+
_context20.next = 7;
|
|
27161
26117
|
return getPoolTxOrGasEstimate(this, [market, withdrawTxData, options], estimateGas);
|
|
27162
26118
|
|
|
27163
|
-
case
|
|
26119
|
+
case 7:
|
|
27164
26120
|
tx = _context20.sent;
|
|
27165
26121
|
return _context20.abrupt("return", tx);
|
|
27166
26122
|
|
|
27167
|
-
case
|
|
26123
|
+
case 9:
|
|
27168
26124
|
case "end":
|
|
27169
26125
|
return _context20.stop();
|
|
27170
26126
|
}
|
|
@@ -27853,7 +26809,7 @@ var Pool = /*#__PURE__*/function () {
|
|
|
27853
26809
|
|
|
27854
26810
|
isStaked = false;
|
|
27855
26811
|
_context32.t0 = dapp;
|
|
27856
|
-
_context32.next = _context32.t0 === exports.Dapp.UNISWAPV3 ? 7 : _context32.t0 === exports.Dapp.RAMSESCL ? 7 : _context32.t0 === exports.Dapp.
|
|
26812
|
+
_context32.next = _context32.t0 === exports.Dapp.UNISWAPV3 ? 7 : _context32.t0 === exports.Dapp.RAMSESCL ? 7 : _context32.t0 === exports.Dapp.VELODROMECL ? 9 : _context32.t0 === exports.Dapp.AERODROMECL ? 9 : _context32.t0 === exports.Dapp.PANCAKECL ? 9 : _context32.t0 === exports.Dapp.ARRAKIS ? 14 : 16;
|
|
27857
26813
|
break;
|
|
27858
26814
|
|
|
27859
26815
|
case 7:
|
|
@@ -27954,7 +26910,7 @@ var Pool = /*#__PURE__*/function () {
|
|
|
27954
26910
|
|
|
27955
26911
|
isStaked = false;
|
|
27956
26912
|
_context33.t0 = dapp;
|
|
27957
|
-
_context33.next = _context33.t0 === exports.Dapp.UNISWAPV3 ? 6 : _context33.t0 === exports.Dapp.RAMSESCL ? 6 : _context33.t0 === exports.Dapp.
|
|
26913
|
+
_context33.next = _context33.t0 === exports.Dapp.UNISWAPV3 ? 6 : _context33.t0 === exports.Dapp.RAMSESCL ? 6 : _context33.t0 === exports.Dapp.VELODROMECL ? 8 : _context33.t0 === exports.Dapp.AERODROMECL ? 8 : _context33.t0 === exports.Dapp.PANCAKECL ? 8 : _context33.t0 === exports.Dapp.ARRAKIS ? 13 : 15;
|
|
27958
26914
|
break;
|
|
27959
26915
|
|
|
27960
26916
|
case 6:
|
|
@@ -28053,7 +27009,7 @@ var Pool = /*#__PURE__*/function () {
|
|
|
28053
27009
|
|
|
28054
27010
|
iNonfungiblePositionManager = new ethers.ethers.utils.Interface(INonfungiblePositionManager.abi);
|
|
28055
27011
|
_context34.t0 = dapp;
|
|
28056
|
-
_context34.next = _context34.t0 === exports.Dapp.UNISWAPV3 ? 6 : _context34.t0 === exports.Dapp.RAMSESCL ? 6 : _context34.t0 === exports.Dapp.
|
|
27012
|
+
_context34.next = _context34.t0 === exports.Dapp.UNISWAPV3 ? 6 : _context34.t0 === exports.Dapp.RAMSESCL ? 6 : _context34.t0 === exports.Dapp.ARRAKIS ? 9 : _context34.t0 === exports.Dapp.BALANCER ? 9 : _context34.t0 === exports.Dapp.VELODROME ? 13 : _context34.t0 === exports.Dapp.RAMSES ? 13 : _context34.t0 === exports.Dapp.VELODROMEV2 ? 16 : _context34.t0 === exports.Dapp.AERODROME ? 16 : _context34.t0 === exports.Dapp.VELODROMECL ? 19 : _context34.t0 === exports.Dapp.AERODROMECL ? 19 : _context34.t0 === exports.Dapp.PANCAKECL ? 19 : 24;
|
|
28057
27013
|
break;
|
|
28058
27014
|
|
|
28059
27015
|
case 6:
|
|
@@ -28140,7 +27096,7 @@ var Pool = /*#__PURE__*/function () {
|
|
|
28140
27096
|
/*#__PURE__*/
|
|
28141
27097
|
function () {
|
|
28142
27098
|
var _getRewards = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee35(dapp, tokenId, rewards, options, estimateGas) {
|
|
28143
|
-
var
|
|
27099
|
+
var tx;
|
|
28144
27100
|
return runtime_1.wrap(function _callee35$(_context35) {
|
|
28145
27101
|
while (1) {
|
|
28146
27102
|
switch (_context35.prev = _context35.next) {
|
|
@@ -28153,16 +27109,14 @@ var Pool = /*#__PURE__*/function () {
|
|
|
28153
27109
|
estimateGas = false;
|
|
28154
27110
|
}
|
|
28155
27111
|
|
|
28156
|
-
|
|
28157
|
-
|
|
28158
|
-
_context35.next = 5;
|
|
28159
|
-
return getPoolTxOrGasEstimate(this, [claimAddress, getRewardsTxDta(tokenId, rewards), options], estimateGas);
|
|
27112
|
+
_context35.next = 4;
|
|
27113
|
+
return getPoolTxOrGasEstimate(this, [nonfungiblePositionManagerAddress[this.network][dapp], getRewardsTxDta(tokenId, rewards), options], estimateGas);
|
|
28160
27114
|
|
|
28161
|
-
case
|
|
27115
|
+
case 4:
|
|
28162
27116
|
tx = _context35.sent;
|
|
28163
27117
|
return _context35.abrupt("return", tx);
|
|
28164
27118
|
|
|
28165
|
-
case
|
|
27119
|
+
case 6:
|
|
28166
27120
|
case "end":
|
|
28167
27121
|
return _context35.stop();
|
|
28168
27122
|
}
|