From c040ebec8379e299aaacfc4d4b3b632baf58c51e Mon Sep 17 00:00:00 2001 From: gs8nrv <55771972+GuillaumeNervoXS@users.noreply.github.com> Date: Tue, 17 Oct 2023 16:02:33 +0200 Subject: [PATCH] feat: Merkl - new DistributionCreator abi (#280) --- src/constants/abis/DistributionCreator.json | 2260 ++++++++++++++++++- 1 file changed, 2142 insertions(+), 118 deletions(-) diff --git a/src/constants/abis/DistributionCreator.json b/src/constants/abis/DistributionCreator.json index 47435b39..3bff7c79 100644 --- a/src/constants/abis/DistributionCreator.json +++ b/src/constants/abis/DistributionCreator.json @@ -4,6 +4,11 @@ "stateMutability": "nonpayable", "type": "constructor" }, + { + "inputs": [], + "name": "InvalidLengths", + "type": "error" + }, { "inputs": [], "name": "InvalidParam", @@ -862,7 +867,7 @@ } ], "internalType": "struct ExtensiveDistributionParameters[]", - "name": "", + "name": "searchDistributions", "type": "tuple[]" } ], @@ -872,12 +877,17 @@ { "inputs": [ { - "internalType": "address", - "name": "uniV3Pool", - "type": "address" + "internalType": "uint32", + "name": "skip", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "first", + "type": "uint32" } ], - "name": "getActivePoolDistributions", + "name": "getActiveDistributions", "outputs": [ { "components": [ @@ -1034,98 +1044,13 @@ } ], "internalType": "struct ExtensiveDistributionParameters[]", - "name": "", + "name": "searchDistributions", "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getAllDistributions", - "outputs": [ + }, { - "components": [ - { - "internalType": "bytes32", - "name": "rewardId", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "uniV3Pool", - "type": "address" - }, - { - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "address[]", - "name": "positionWrappers", - "type": "address[]" - }, - { - "internalType": "uint32[]", - "name": "wrapperTypes", - "type": "uint32[]" - }, - { - "internalType": "uint32", - "name": "propToken0", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "propToken1", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "propFees", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "epochStart", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "numEpoch", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "isOutOfRangeIncentivized", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "boostedReward", - "type": "uint32" - }, - { - "internalType": "address", - "name": "boostingAddress", - "type": "address" - }, - { - "internalType": "bytes", - "name": "additionalData", - "type": "bytes" - } - ], - "internalType": "struct DistributionParameters[]", - "name": "", - "type": "tuple[]" + "internalType": "uint256", + "name": "lastIndexDistribution", + "type": "uint256" } ], "stateMutability": "view", @@ -1134,12 +1059,12 @@ { "inputs": [ { - "internalType": "uint32", - "name": "epochStart", - "type": "uint32" + "internalType": "address", + "name": "uniV3Pool", + "type": "address" } ], - "name": "getDistributionsAfterEpoch", + "name": "getActivePoolDistributions", "outputs": [ { "components": [ @@ -1296,7 +1221,7 @@ } ], "internalType": "struct ExtensiveDistributionParameters[]", - "name": "", + "name": "searchDistributions", "type": "tuple[]" } ], @@ -1305,18 +1230,23 @@ }, { "inputs": [ + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, { "internalType": "uint32", - "name": "epochStart", + "name": "skip", "type": "uint32" }, { "internalType": "uint32", - "name": "epochEnd", + "name": "first", "type": "uint32" } ], - "name": "getDistributionsBetweenEpochs", + "name": "getActivePoolDistributions", "outputs": [ { "components": [ @@ -1475,6 +1405,101 @@ "internalType": "struct ExtensiveDistributionParameters[]", "name": "", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "lastIndexDistribution", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getAllDistributions", + "outputs": [ + { + "components": [ + { + "internalType": "bytes32", + "name": "rewardId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, + { + "internalType": "address", + "name": "rewardToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "positionWrappers", + "type": "address[]" + }, + { + "internalType": "uint32[]", + "name": "wrapperTypes", + "type": "uint32[]" + }, + { + "internalType": "uint32", + "name": "propToken0", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propToken1", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propFees", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "numEpoch", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "isOutOfRangeIncentivized", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "boostedReward", + "type": "uint32" + }, + { + "internalType": "address", + "name": "boostingAddress", + "type": "address" + }, + { + "internalType": "bytes", + "name": "additionalData", + "type": "bytes" + } + ], + "internalType": "struct DistributionParameters[]", + "name": "", + "type": "tuple[]" } ], "stateMutability": "view", @@ -1484,11 +1509,11 @@ "inputs": [ { "internalType": "uint32", - "name": "epoch", + "name": "epochStart", "type": "uint32" } ], - "name": "getDistributionsForEpoch", + "name": "getDistributionsAfterEpoch", "outputs": [ { "components": [ @@ -1645,7 +1670,7 @@ } ], "internalType": "struct ExtensiveDistributionParameters[]", - "name": "", + "name": "searchDistributions", "type": "tuple[]" } ], @@ -1655,17 +1680,22 @@ { "inputs": [ { - "internalType": "address", - "name": "uniV3Pool", - "type": "address" + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" }, { "internalType": "uint32", - "name": "epochStart", + "name": "skip", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "first", "type": "uint32" } ], - "name": "getPoolDistributionsAfterEpoch", + "name": "getDistributionsAfterEpoch", "outputs": [ { "components": [ @@ -1824,6 +1854,11 @@ "internalType": "struct ExtensiveDistributionParameters[]", "name": "", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "lastIndexDistribution", + "type": "uint256" } ], "stateMutability": "view", @@ -1831,11 +1866,1554 @@ }, { "inputs": [ - { - "internalType": "address", - "name": "uniV3Pool", - "type": "address" - }, + { + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "epochEnd", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "skip", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "first", + "type": "uint32" + } + ], + "name": "getDistributionsBetweenEpochs", + "outputs": [ + { + "components": [ + { + "components": [ + { + "internalType": "bytes32", + "name": "rewardId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, + { + "internalType": "address", + "name": "rewardToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "positionWrappers", + "type": "address[]" + }, + { + "internalType": "uint32[]", + "name": "wrapperTypes", + "type": "uint32[]" + }, + { + "internalType": "uint32", + "name": "propToken0", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propToken1", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propFees", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "numEpoch", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "isOutOfRangeIncentivized", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "boostedReward", + "type": "uint32" + }, + { + "internalType": "address", + "name": "boostingAddress", + "type": "address" + }, + { + "internalType": "bytes", + "name": "additionalData", + "type": "bytes" + } + ], + "internalType": "struct DistributionParameters", + "name": "base", + "type": "tuple" + }, + { + "internalType": "uint24", + "name": "poolFee", + "type": "uint24" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token0", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token1", + "type": "tuple" + }, + { + "internalType": "string", + "name": "rewardTokenSymbol", + "type": "string" + }, + { + "internalType": "uint8", + "name": "rewardTokenDecimals", + "type": "uint8" + } + ], + "internalType": "struct ExtensiveDistributionParameters[]", + "name": "", + "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "lastIndexDistribution", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "epochEnd", + "type": "uint32" + } + ], + "name": "getDistributionsBetweenEpochs", + "outputs": [ + { + "components": [ + { + "components": [ + { + "internalType": "bytes32", + "name": "rewardId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, + { + "internalType": "address", + "name": "rewardToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "positionWrappers", + "type": "address[]" + }, + { + "internalType": "uint32[]", + "name": "wrapperTypes", + "type": "uint32[]" + }, + { + "internalType": "uint32", + "name": "propToken0", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propToken1", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propFees", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "numEpoch", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "isOutOfRangeIncentivized", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "boostedReward", + "type": "uint32" + }, + { + "internalType": "address", + "name": "boostingAddress", + "type": "address" + }, + { + "internalType": "bytes", + "name": "additionalData", + "type": "bytes" + } + ], + "internalType": "struct DistributionParameters", + "name": "base", + "type": "tuple" + }, + { + "internalType": "uint24", + "name": "poolFee", + "type": "uint24" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token0", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token1", + "type": "tuple" + }, + { + "internalType": "string", + "name": "rewardTokenSymbol", + "type": "string" + }, + { + "internalType": "uint8", + "name": "rewardTokenDecimals", + "type": "uint8" + } + ], + "internalType": "struct ExtensiveDistributionParameters[]", + "name": "searchDistributions", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "epoch", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "skip", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "first", + "type": "uint32" + } + ], + "name": "getDistributionsForEpoch", + "outputs": [ + { + "components": [ + { + "components": [ + { + "internalType": "bytes32", + "name": "rewardId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, + { + "internalType": "address", + "name": "rewardToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "positionWrappers", + "type": "address[]" + }, + { + "internalType": "uint32[]", + "name": "wrapperTypes", + "type": "uint32[]" + }, + { + "internalType": "uint32", + "name": "propToken0", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propToken1", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propFees", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "numEpoch", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "isOutOfRangeIncentivized", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "boostedReward", + "type": "uint32" + }, + { + "internalType": "address", + "name": "boostingAddress", + "type": "address" + }, + { + "internalType": "bytes", + "name": "additionalData", + "type": "bytes" + } + ], + "internalType": "struct DistributionParameters", + "name": "base", + "type": "tuple" + }, + { + "internalType": "uint24", + "name": "poolFee", + "type": "uint24" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token0", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token1", + "type": "tuple" + }, + { + "internalType": "string", + "name": "rewardTokenSymbol", + "type": "string" + }, + { + "internalType": "uint8", + "name": "rewardTokenDecimals", + "type": "uint8" + } + ], + "internalType": "struct ExtensiveDistributionParameters[]", + "name": "", + "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "lastIndexDistribution", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "epoch", + "type": "uint32" + } + ], + "name": "getDistributionsForEpoch", + "outputs": [ + { + "components": [ + { + "components": [ + { + "internalType": "bytes32", + "name": "rewardId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, + { + "internalType": "address", + "name": "rewardToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "positionWrappers", + "type": "address[]" + }, + { + "internalType": "uint32[]", + "name": "wrapperTypes", + "type": "uint32[]" + }, + { + "internalType": "uint32", + "name": "propToken0", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propToken1", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propFees", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "numEpoch", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "isOutOfRangeIncentivized", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "boostedReward", + "type": "uint32" + }, + { + "internalType": "address", + "name": "boostingAddress", + "type": "address" + }, + { + "internalType": "bytes", + "name": "additionalData", + "type": "bytes" + } + ], + "internalType": "struct DistributionParameters", + "name": "base", + "type": "tuple" + }, + { + "internalType": "uint24", + "name": "poolFee", + "type": "uint24" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token0", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token1", + "type": "tuple" + }, + { + "internalType": "string", + "name": "rewardTokenSymbol", + "type": "string" + }, + { + "internalType": "uint8", + "name": "rewardTokenDecimals", + "type": "uint8" + } + ], + "internalType": "struct ExtensiveDistributionParameters[]", + "name": "searchDistributions", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bytes32", + "name": "rewardId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, + { + "internalType": "address", + "name": "rewardToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "positionWrappers", + "type": "address[]" + }, + { + "internalType": "uint32[]", + "name": "wrapperTypes", + "type": "uint32[]" + }, + { + "internalType": "uint32", + "name": "propToken0", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propToken1", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propFees", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "numEpoch", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "isOutOfRangeIncentivized", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "boostedReward", + "type": "uint32" + }, + { + "internalType": "address", + "name": "boostingAddress", + "type": "address" + }, + { + "internalType": "bytes", + "name": "additionalData", + "type": "bytes" + } + ], + "internalType": "struct DistributionParameters", + "name": "distribution", + "type": "tuple" + } + ], + "name": "getExtensiveDistributionParameters", + "outputs": [ + { + "components": [ + { + "components": [ + { + "internalType": "bytes32", + "name": "rewardId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, + { + "internalType": "address", + "name": "rewardToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "positionWrappers", + "type": "address[]" + }, + { + "internalType": "uint32[]", + "name": "wrapperTypes", + "type": "uint32[]" + }, + { + "internalType": "uint32", + "name": "propToken0", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propToken1", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propFees", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "numEpoch", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "isOutOfRangeIncentivized", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "boostedReward", + "type": "uint32" + }, + { + "internalType": "address", + "name": "boostingAddress", + "type": "address" + }, + { + "internalType": "bytes", + "name": "additionalData", + "type": "bytes" + } + ], + "internalType": "struct DistributionParameters", + "name": "base", + "type": "tuple" + }, + { + "internalType": "uint24", + "name": "poolFee", + "type": "uint24" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token0", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token1", + "type": "tuple" + }, + { + "internalType": "string", + "name": "rewardTokenSymbol", + "type": "string" + }, + { + "internalType": "uint8", + "name": "rewardTokenDecimals", + "type": "uint8" + } + ], + "internalType": "struct ExtensiveDistributionParameters", + "name": "extensiveParams", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, + { + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "skip", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "first", + "type": "uint32" + } + ], + "name": "getPoolDistributionsAfterEpoch", + "outputs": [ + { + "components": [ + { + "components": [ + { + "internalType": "bytes32", + "name": "rewardId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, + { + "internalType": "address", + "name": "rewardToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "positionWrappers", + "type": "address[]" + }, + { + "internalType": "uint32[]", + "name": "wrapperTypes", + "type": "uint32[]" + }, + { + "internalType": "uint32", + "name": "propToken0", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propToken1", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propFees", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "numEpoch", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "isOutOfRangeIncentivized", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "boostedReward", + "type": "uint32" + }, + { + "internalType": "address", + "name": "boostingAddress", + "type": "address" + }, + { + "internalType": "bytes", + "name": "additionalData", + "type": "bytes" + } + ], + "internalType": "struct DistributionParameters", + "name": "base", + "type": "tuple" + }, + { + "internalType": "uint24", + "name": "poolFee", + "type": "uint24" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token0", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token1", + "type": "tuple" + }, + { + "internalType": "string", + "name": "rewardTokenSymbol", + "type": "string" + }, + { + "internalType": "uint8", + "name": "rewardTokenDecimals", + "type": "uint8" + } + ], + "internalType": "struct ExtensiveDistributionParameters[]", + "name": "", + "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "lastIndexDistribution", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, + { + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" + } + ], + "name": "getPoolDistributionsAfterEpoch", + "outputs": [ + { + "components": [ + { + "components": [ + { + "internalType": "bytes32", + "name": "rewardId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, + { + "internalType": "address", + "name": "rewardToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "positionWrappers", + "type": "address[]" + }, + { + "internalType": "uint32[]", + "name": "wrapperTypes", + "type": "uint32[]" + }, + { + "internalType": "uint32", + "name": "propToken0", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propToken1", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propFees", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "numEpoch", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "isOutOfRangeIncentivized", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "boostedReward", + "type": "uint32" + }, + { + "internalType": "address", + "name": "boostingAddress", + "type": "address" + }, + { + "internalType": "bytes", + "name": "additionalData", + "type": "bytes" + } + ], + "internalType": "struct DistributionParameters", + "name": "base", + "type": "tuple" + }, + { + "internalType": "uint24", + "name": "poolFee", + "type": "uint24" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token0", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token1", + "type": "tuple" + }, + { + "internalType": "string", + "name": "rewardTokenSymbol", + "type": "string" + }, + { + "internalType": "uint8", + "name": "rewardTokenDecimals", + "type": "uint8" + } + ], + "internalType": "struct ExtensiveDistributionParameters[]", + "name": "searchDistributions", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, + { + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "epochEnd", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "skip", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "first", + "type": "uint32" + } + ], + "name": "getPoolDistributionsBetweenEpochs", + "outputs": [ + { + "components": [ + { + "components": [ + { + "internalType": "bytes32", + "name": "rewardId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, + { + "internalType": "address", + "name": "rewardToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "positionWrappers", + "type": "address[]" + }, + { + "internalType": "uint32[]", + "name": "wrapperTypes", + "type": "uint32[]" + }, + { + "internalType": "uint32", + "name": "propToken0", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propToken1", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propFees", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "numEpoch", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "isOutOfRangeIncentivized", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "boostedReward", + "type": "uint32" + }, + { + "internalType": "address", + "name": "boostingAddress", + "type": "address" + }, + { + "internalType": "bytes", + "name": "additionalData", + "type": "bytes" + } + ], + "internalType": "struct DistributionParameters", + "name": "base", + "type": "tuple" + }, + { + "internalType": "uint24", + "name": "poolFee", + "type": "uint24" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token0", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token1", + "type": "tuple" + }, + { + "internalType": "string", + "name": "rewardTokenSymbol", + "type": "string" + }, + { + "internalType": "uint8", + "name": "rewardTokenDecimals", + "type": "uint8" + } + ], + "internalType": "struct ExtensiveDistributionParameters[]", + "name": "", + "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "lastIndexDistribution", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, { "internalType": "uint32", "name": "epochStart", @@ -2004,8 +3582,200 @@ } ], "internalType": "struct ExtensiveDistributionParameters[]", + "name": "searchDistributions", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, + { + "internalType": "uint32", + "name": "epoch", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "skip", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "first", + "type": "uint32" + } + ], + "name": "getPoolDistributionsForEpoch", + "outputs": [ + { + "components": [ + { + "components": [ + { + "internalType": "bytes32", + "name": "rewardId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, + { + "internalType": "address", + "name": "rewardToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "positionWrappers", + "type": "address[]" + }, + { + "internalType": "uint32[]", + "name": "wrapperTypes", + "type": "uint32[]" + }, + { + "internalType": "uint32", + "name": "propToken0", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propToken1", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propFees", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "numEpoch", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "isOutOfRangeIncentivized", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "boostedReward", + "type": "uint32" + }, + { + "internalType": "address", + "name": "boostingAddress", + "type": "address" + }, + { + "internalType": "bytes", + "name": "additionalData", + "type": "bytes" + } + ], + "internalType": "struct DistributionParameters", + "name": "base", + "type": "tuple" + }, + { + "internalType": "uint24", + "name": "poolFee", + "type": "uint24" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token0", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token1", + "type": "tuple" + }, + { + "internalType": "string", + "name": "rewardTokenSymbol", + "type": "string" + }, + { + "internalType": "uint8", + "name": "rewardTokenDecimals", + "type": "uint8" + } + ], + "internalType": "struct ExtensiveDistributionParameters[]", "name": "", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "lastIndexDistribution", + "type": "uint256" } ], "stateMutability": "view", @@ -2181,7 +3951,7 @@ } ], "internalType": "struct ExtensiveDistributionParameters[]", - "name": "", + "name": "searchDistributions", "type": "tuple[]" } ], @@ -2597,6 +4367,260 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bytes32", + "name": "rewardId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, + { + "internalType": "address", + "name": "rewardToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "positionWrappers", + "type": "address[]" + }, + { + "internalType": "uint32[]", + "name": "wrapperTypes", + "type": "uint32[]" + }, + { + "internalType": "uint32", + "name": "propToken0", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propToken1", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propFees", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "numEpoch", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "isOutOfRangeIncentivized", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "boostedReward", + "type": "uint32" + }, + { + "internalType": "address", + "name": "boostingAddress", + "type": "address" + }, + { + "internalType": "bytes", + "name": "additionalData", + "type": "bytes" + } + ], + "internalType": "struct DistributionParameters", + "name": "distribution", + "type": "tuple" + } + ], + "name": "tryGetExtensiveDistributionParameters", + "outputs": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + }, + { + "components": [ + { + "components": [ + { + "internalType": "bytes32", + "name": "rewardId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "uniV3Pool", + "type": "address" + }, + { + "internalType": "address", + "name": "rewardToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "positionWrappers", + "type": "address[]" + }, + { + "internalType": "uint32[]", + "name": "wrapperTypes", + "type": "uint32[]" + }, + { + "internalType": "uint32", + "name": "propToken0", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propToken1", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "propFees", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "epochStart", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "numEpoch", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "isOutOfRangeIncentivized", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "boostedReward", + "type": "uint32" + }, + { + "internalType": "address", + "name": "boostingAddress", + "type": "address" + }, + { + "internalType": "bytes", + "name": "additionalData", + "type": "bytes" + } + ], + "internalType": "struct DistributionParameters", + "name": "base", + "type": "tuple" + }, + { + "internalType": "uint24", + "name": "poolFee", + "type": "uint24" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token0", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "add", + "type": "address" + }, + { + "internalType": "uint8", + "name": "decimals", + "type": "uint8" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "uint256", + "name": "poolBalance", + "type": "uint256" + } + ], + "internalType": "struct UniswapTokenData", + "name": "token1", + "type": "tuple" + }, + { + "internalType": "string", + "name": "rewardTokenSymbol", + "type": "string" + }, + { + "internalType": "uint8", + "name": "rewardTokenDecimals", + "type": "uint8" + } + ], + "internalType": "struct ExtensiveDistributionParameters", + "name": "extensiveParams", + "type": "tuple" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -2666,4 +4690,4 @@ "stateMutability": "view", "type": "function" } -] +] \ No newline at end of file