diff --git a/src/config.ts b/src/config.ts index e915b5b7..12e9eb33 100644 --- a/src/config.ts +++ b/src/config.ts @@ -622,11 +622,11 @@ const CHAINS: Chain[] = [ fromBlock: 123566896, }, // Allo V1 -> V2 Migration - // { - // contractName: "AlloV2/AlloV1ToV2ProfileMigration", - // address: "0x", - // fromBlock: 0, - // }, + { + contractName: "AlloV2/AlloV1ToV2ProfileMigration", + address: "0x1bFda15Ad5FC82E74Da81F0B8DcA486b3Ad14c71", + fromBlock: 191943906, + }, // Allo V2 { address: "0x4aacca72145e1df2aec137e1f3c5e3d75db8b5f3", diff --git a/src/indexer/abis/allo-v2/v1/DirectGrantsSimpleStrategy.ts b/src/indexer/abis/allo-v2/v1/DirectGrantsSimpleStrategy.ts index da42bbcf..d7865604 100644 --- a/src/indexer/abis/allo-v2/v1/DirectGrantsSimpleStrategy.ts +++ b/src/indexer/abis/allo-v2/v1/DirectGrantsSimpleStrategy.ts @@ -110,6 +110,11 @@ export default [ name: "NONCE_NOT_AVAILABLE", type: "error", }, + { + inputs: [], + name: "NON_ZERO_VALUE", + type: "error", + }, { inputs: [], name: "NOT_APPROVED_STRATEGY", @@ -429,15 +434,15 @@ export default [ inputs: [ { indexed: false, - internalType: "uint128", + internalType: "uint64", name: "registrationStartTime", - type: "uint128", + type: "uint64", }, { indexed: false, - internalType: "uint128", + internalType: "uint64", name: "registrationEndTime", - type: "uint128", + type: "uint64", }, { indexed: false, @@ -922,9 +927,9 @@ export default [ name: "registrationEndTime", outputs: [ { - internalType: "uint128", + internalType: "uint64", name: "", - type: "uint128", + type: "uint64", }, ], stateMutability: "view", @@ -935,9 +940,9 @@ export default [ name: "registrationStartTime", outputs: [ { - internalType: "uint128", + internalType: "uint64", name: "", - type: "uint128", + type: "uint64", }, ], stateMutability: "view", @@ -986,6 +991,11 @@ export default [ name: "_status", type: "uint8", }, + { + internalType: "bytes32", + name: "milestonesHash", + type: "bytes32", + }, ], name: "reviewSetMilestones", outputs: [], @@ -1122,14 +1132,14 @@ export default [ { inputs: [ { - internalType: "uint128", + internalType: "uint64", name: "_registrationStartTime", - type: "uint128", + type: "uint64", }, { - internalType: "uint128", + internalType: "uint64", name: "_registrationEndTime", - type: "uint128", + type: "uint64", }, ], name: "updatePoolTimestamps", diff --git a/src/indexer/abis/allo-v2/v1/DonationVotingMerkleDistributionDirectTransferStrategy.ts b/src/indexer/abis/allo-v2/v1/DonationVotingMerkleDistributionDirectTransferStrategy.ts index ba40d912..8f3242aa 100644 --- a/src/indexer/abis/allo-v2/v1/DonationVotingMerkleDistributionDirectTransferStrategy.ts +++ b/src/indexer/abis/allo-v2/v1/DonationVotingMerkleDistributionDirectTransferStrategy.ts @@ -1,669 +1,1204 @@ export default [ { - type: "constructor", inputs: [ - { name: "_allo", type: "address", internalType: "address" }, - { name: "_name", type: "string", internalType: "string" }, { - name: "_permit2", + internalType: "address", + name: "_allo", type: "address", + }, + { + internalType: "string", + name: "_name", + type: "string", + }, + { internalType: "contract ISignatureTransfer", + name: "_permit2", + type: "address", }, ], stateMutability: "nonpayable", + type: "constructor", }, - { type: "receive", stateMutability: "payable" }, { - type: "function", - name: "NATIVE", inputs: [], - outputs: [{ name: "", type: "address", internalType: "address" }], - stateMutability: "view", + name: "ALLOCATION_ACTIVE", + type: "error", }, { - type: "function", - name: "PERMIT2", inputs: [], - outputs: [ - { - name: "", - type: "address", - internalType: "contract ISignatureTransfer", - }, - ], - stateMutability: "view", + name: "ALLOCATION_NOT_ACTIVE", + type: "error", }, { - type: "function", - name: "allocate", - inputs: [ - { name: "_data", type: "bytes", internalType: "bytes" }, - { name: "_sender", type: "address", internalType: "address" }, - ], - outputs: [], - stateMutability: "payable", + inputs: [], + name: "ALLOCATION_NOT_ENDED", + type: "error", }, { - type: "function", - name: "allocationEndTime", inputs: [], - outputs: [{ name: "", type: "uint64", internalType: "uint64" }], - stateMutability: "view", + name: "ALREADY_INITIALIZED", + type: "error", }, { - type: "function", - name: "allocationStartTime", inputs: [], - outputs: [{ name: "", type: "uint64", internalType: "uint64" }], - stateMutability: "view", + name: "AMOUNT_MISMATCH", + type: "error", }, { - type: "function", - name: "allowedTokens", - inputs: [{ name: "", type: "address", internalType: "address" }], - outputs: [{ name: "", type: "bool", internalType: "bool" }], - stateMutability: "view", + inputs: [], + name: "ANCHOR_ERROR", + type: "error", }, { - type: "function", - name: "distribute", - inputs: [ - { name: "_recipientIds", type: "address[]", internalType: "address[]" }, - { name: "_data", type: "bytes", internalType: "bytes" }, - { name: "_sender", type: "address", internalType: "address" }, - ], - outputs: [], - stateMutability: "nonpayable", + inputs: [], + name: "ARRAY_MISMATCH", + type: "error", }, { - type: "function", - name: "distributionMetadata", inputs: [], - outputs: [ - { name: "protocol", type: "uint256", internalType: "uint256" }, - { name: "pointer", type: "string", internalType: "string" }, - ], - stateMutability: "view", + name: "INVALID", + type: "error", }, { - type: "function", - name: "distributionStarted", inputs: [], - outputs: [{ name: "", type: "bool", internalType: "bool" }], - stateMutability: "view", + name: "INVALID_ADDRESS", + type: "error", }, { - type: "function", - name: "getAllo", inputs: [], - outputs: [{ name: "", type: "address", internalType: "contract IAllo" }], - stateMutability: "view", + name: "INVALID_FEE", + type: "error", }, { - type: "function", - name: "getPayouts", - inputs: [ - { name: "_recipientIds", type: "address[]", internalType: "address[]" }, - { name: "_data", type: "bytes[]", internalType: "bytes[]" }, - ], - outputs: [ - { - name: "", - type: "tuple[]", - internalType: "struct IStrategy.PayoutSummary[]", - components: [ - { - name: "recipientAddress", - type: "address", - internalType: "address", - }, - { name: "amount", type: "uint256", internalType: "uint256" }, - ], - }, - ], - stateMutability: "view", + inputs: [], + name: "INVALID_METADATA", + type: "error", }, { - type: "function", - name: "getPoolAmount", inputs: [], - outputs: [{ name: "", type: "uint256", internalType: "uint256" }], - stateMutability: "view", + name: "INVALID_REGISTRATION", + type: "error", }, { - type: "function", - name: "getPoolId", inputs: [], - outputs: [{ name: "", type: "uint256", internalType: "uint256" }], - stateMutability: "view", + name: "IS_APPROVED_STRATEGY", + type: "error", }, { - type: "function", - name: "getRecipient", - inputs: [ - { name: "_recipientId", type: "address", internalType: "address" }, - ], - outputs: [ - { - name: "recipient", - type: "tuple", - internalType: - "struct DonationVotingMerkleDistributionBaseStrategy.Recipient", - components: [ - { name: "useRegistryAnchor", type: "bool", internalType: "bool" }, - { - name: "recipientAddress", - type: "address", - internalType: "address", - }, - { - name: "metadata", - type: "tuple", - internalType: "struct Metadata", - components: [ - { name: "protocol", type: "uint256", internalType: "uint256" }, - { name: "pointer", type: "string", internalType: "string" }, - ], - }, - ], - }, - ], - stateMutability: "view", + inputs: [], + name: "MISMATCH", + type: "error", }, { - type: "function", - name: "getRecipientStatus", - inputs: [ - { name: "_recipientId", type: "address", internalType: "address" }, - ], - outputs: [ - { name: "", type: "uint8", internalType: "enum IStrategy.Status" }, - ], - stateMutability: "view", + inputs: [], + name: "NONCE_NOT_AVAILABLE", + type: "error", }, { - type: "function", - name: "getStrategyId", inputs: [], - outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }], - stateMutability: "view", + name: "NON_ZERO_VALUE", + type: "error", }, { - type: "function", - name: "hasBeenDistributed", - inputs: [{ name: "_index", type: "uint256", internalType: "uint256" }], - outputs: [{ name: "", type: "bool", internalType: "bool" }], - stateMutability: "view", + inputs: [], + name: "NOT_APPROVED_STRATEGY", + type: "error", }, { - type: "function", - name: "increasePoolAmount", - inputs: [{ name: "_amount", type: "uint256", internalType: "uint256" }], - outputs: [], - stateMutability: "nonpayable", + inputs: [], + name: "NOT_ENOUGH_FUNDS", + type: "error", }, { - type: "function", - name: "initialize", - inputs: [ - { name: "_poolId", type: "uint256", internalType: "uint256" }, - { name: "_data", type: "bytes", internalType: "bytes" }, - ], - outputs: [], - stateMutability: "nonpayable", + inputs: [], + name: "NOT_IMPLEMENTED", + type: "error", }, { - type: "function", - name: "isDistributionSet", inputs: [], - outputs: [{ name: "", type: "bool", internalType: "bool" }], - stateMutability: "view", + name: "NOT_INITIALIZED", + type: "error", }, { - type: "function", - name: "isPoolActive", inputs: [], - outputs: [{ name: "", type: "bool", internalType: "bool" }], - stateMutability: "view", + name: "NOT_PENDING_OWNER", + type: "error", }, { - type: "function", - name: "isValidAllocator", - inputs: [{ name: "_allocator", type: "address", internalType: "address" }], - outputs: [{ name: "", type: "bool", internalType: "bool" }], - stateMutability: "view", + inputs: [], + name: "POOL_ACTIVE", + type: "error", }, { - type: "function", - name: "merkleRoot", inputs: [], - outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }], - stateMutability: "view", + name: "POOL_INACTIVE", + type: "error", }, { - type: "function", - name: "metadataRequired", inputs: [], - outputs: [{ name: "", type: "bool", internalType: "bool" }], - stateMutability: "view", + name: "RECIPIENT_ALREADY_ACCEPTED", + type: "error", }, { - type: "function", - name: "multicall", - inputs: [{ name: "data", type: "bytes[]", internalType: "bytes[]" }], - outputs: [{ name: "results", type: "bytes[]", internalType: "bytes[]" }], - stateMutability: "nonpayable", + inputs: [ + { + internalType: "address", + name: "recipientId", + type: "address", + }, + ], + name: "RECIPIENT_ERROR", + type: "error", }, { - type: "function", - name: "recipientToStatusIndexes", - inputs: [{ name: "", type: "address", internalType: "address" }], - outputs: [{ name: "", type: "uint256", internalType: "uint256" }], - stateMutability: "view", + inputs: [], + name: "RECIPIENT_NOT_ACCEPTED", + type: "error", }, { - type: "function", - name: "recipientsCounter", inputs: [], - outputs: [{ name: "", type: "uint256", internalType: "uint256" }], - stateMutability: "view", + name: "REGISTRATION_ACTIVE", + type: "error", }, { - type: "function", - name: "registerRecipient", - inputs: [ - { name: "_data", type: "bytes", internalType: "bytes" }, - { name: "_sender", type: "address", internalType: "address" }, - ], - outputs: [ - { name: "recipientId", type: "address", internalType: "address" }, - ], - stateMutability: "payable", + inputs: [], + name: "REGISTRATION_NOT_ACTIVE", + type: "error", }, { - type: "function", - name: "registrationEndTime", inputs: [], - outputs: [{ name: "", type: "uint64", internalType: "uint64" }], - stateMutability: "view", + name: "UNAUTHORIZED", + type: "error", }, { - type: "function", - name: "registrationStartTime", inputs: [], - outputs: [{ name: "", type: "uint64", internalType: "uint64" }], - stateMutability: "view", + name: "ZERO_ADDRESS", + type: "error", }, { - type: "function", - name: "reviewRecipients", + anonymous: false, inputs: [ { - name: "statuses", - type: "tuple[]", - internalType: - "struct DonationVotingMerkleDistributionBaseStrategy.ApplicationStatus[]", - components: [ - { name: "index", type: "uint256", internalType: "uint256" }, - { name: "statusRow", type: "uint256", internalType: "uint256" }, - ], + indexed: true, + internalType: "address", + name: "recipientId", + type: "address", }, { - name: "refRecipientsCounter", - type: "uint256", + indexed: false, internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + indexed: false, + internalType: "address", + name: "token", + type: "address", + }, + { + indexed: false, + internalType: "address", + name: "sender", + type: "address", + }, + { + indexed: false, + internalType: "address", + name: "origin", + type: "address", }, ], - outputs: [], - stateMutability: "nonpayable", + name: "Allocated", + type: "event", }, { - type: "function", - name: "statusesBitMap", - inputs: [{ name: "", type: "uint256", internalType: "uint256" }], - outputs: [{ name: "", type: "uint256", internalType: "uint256" }], - stateMutability: "view", - }, - { - type: "function", - name: "totalPayoutAmount", - inputs: [], - outputs: [{ name: "", type: "uint256", internalType: "uint256" }], - stateMutability: "view", - }, - { - type: "function", - name: "updateDistribution", - inputs: [ - { name: "_merkleRoot", type: "bytes32", internalType: "bytes32" }, - { - name: "_distributionMetadata", - type: "tuple", - internalType: "struct Metadata", - components: [ - { name: "protocol", type: "uint256", internalType: "uint256" }, - { name: "pointer", type: "string", internalType: "string" }, - ], - }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "updatePoolTimestamps", - inputs: [ - { - name: "_registrationStartTime", - type: "uint64", - internalType: "uint64", - }, - { name: "_registrationEndTime", type: "uint64", internalType: "uint64" }, - { name: "_allocationStartTime", type: "uint64", internalType: "uint64" }, - { name: "_allocationEndTime", type: "uint64", internalType: "uint64" }, - ], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "function", - name: "useRegistryAnchor", - inputs: [], - outputs: [{ name: "", type: "bool", internalType: "bool" }], - stateMutability: "view", - }, - { - type: "function", - name: "withdraw", - inputs: [{ name: "_token", type: "address", internalType: "address" }], - outputs: [], - stateMutability: "nonpayable", - }, - { - type: "event", - name: "Allocated", + anonymous: false, inputs: [ { - name: "recipientId", - type: "address", indexed: true, internalType: "address", + name: "recipientId", + type: "address", }, { - name: "amount", - type: "uint256", indexed: false, internalType: "uint256", + name: "amount", + type: "uint256", }, { - name: "token", - type: "address", indexed: false, internalType: "address", + name: "token", + type: "address", }, { - name: "sender", - type: "address", indexed: false, internalType: "address", + name: "sender", + type: "address", }, ], - anonymous: false, + name: "Allocated", + type: "event", }, { - type: "event", - name: "BatchPayoutSuccessful", + anonymous: false, inputs: [ { - name: "sender", - type: "address", indexed: true, internalType: "address", + name: "sender", + type: "address", }, ], - anonymous: false, + name: "BatchPayoutSuccessful", + type: "event", }, { - type: "event", - name: "Distributed", + anonymous: false, inputs: [ { - name: "recipientId", - type: "address", indexed: true, internalType: "address", + name: "recipientId", + type: "address", }, { - name: "recipientAddress", - type: "address", indexed: false, internalType: "address", + name: "recipientAddress", + type: "address", }, { - name: "amount", - type: "uint256", indexed: false, internalType: "uint256", + name: "amount", + type: "uint256", }, { - name: "sender", - type: "address", indexed: false, internalType: "address", + name: "sender", + type: "address", }, ], - anonymous: false, + name: "Distributed", + type: "event", }, { - type: "event", - name: "DistributionUpdated", + anonymous: false, inputs: [ { - name: "merkleRoot", - type: "bytes32", indexed: false, internalType: "bytes32", + name: "merkleRoot", + type: "bytes32", }, { - name: "metadata", - type: "tuple", - indexed: false, - internalType: "struct Metadata", components: [ - { name: "protocol", type: "uint256", internalType: "uint256" }, - { name: "pointer", type: "string", internalType: "string" }, + { + internalType: "uint256", + name: "protocol", + type: "uint256", + }, + { + internalType: "string", + name: "pointer", + type: "string", + }, ], + indexed: false, + internalType: "struct Metadata", + name: "metadata", + type: "tuple", }, ], - anonymous: false, + name: "DistributionUpdated", + type: "event", }, { - type: "event", - name: "FundsDistributed", + anonymous: false, inputs: [ { - name: "amount", - type: "uint256", indexed: false, internalType: "uint256", + name: "amount", + type: "uint256", }, { - name: "grantee", - type: "address", indexed: false, internalType: "address", + name: "grantee", + type: "address", }, { - name: "token", - type: "address", indexed: true, internalType: "address", + name: "token", + type: "address", }, { - name: "recipientId", - type: "address", indexed: true, internalType: "address", + name: "recipientId", + type: "address", }, ], - anonymous: false, + name: "FundsDistributed", + type: "event", }, { - type: "event", - name: "Initialized", + anonymous: false, inputs: [ { + indexed: false, + internalType: "uint256", name: "poolId", type: "uint256", + }, + { indexed: false, - internalType: "uint256", + internalType: "bytes", + name: "data", + type: "bytes", }, - { name: "data", type: "bytes", indexed: false, internalType: "bytes" }, ], - anonymous: false, + name: "Initialized", + type: "event", }, { - type: "event", - name: "PoolActive", + anonymous: false, inputs: [ - { name: "active", type: "bool", indexed: false, internalType: "bool" }, + { + indexed: false, + internalType: "bool", + name: "active", + type: "bool", + }, ], - anonymous: false, + name: "PoolActive", + type: "event", }, { - type: "event", - name: "RecipientStatusUpdated", + anonymous: false, inputs: [ { - name: "rowIndex", - type: "uint256", indexed: true, internalType: "uint256", + name: "rowIndex", + type: "uint256", }, { - name: "fullRow", - type: "uint256", indexed: false, internalType: "uint256", + name: "fullRow", + type: "uint256", }, { - name: "sender", - type: "address", indexed: false, internalType: "address", + name: "sender", + type: "address", }, ], - anonymous: false, + name: "RecipientStatusUpdated", + type: "event", }, { - type: "event", - name: "Registered", + anonymous: false, inputs: [ { - name: "recipientId", - type: "address", indexed: true, internalType: "address", + name: "recipientId", + type: "address", + }, + { + indexed: false, + internalType: "bytes", + name: "data", + type: "bytes", }, - { name: "data", type: "bytes", indexed: false, internalType: "bytes" }, { - name: "sender", - type: "address", indexed: false, internalType: "address", + name: "sender", + type: "address", }, ], - anonymous: false, + name: "Registered", + type: "event", }, { - type: "event", - name: "TimestampsUpdated", + anonymous: false, inputs: [ { - name: "registrationStartTime", - type: "uint64", indexed: false, internalType: "uint64", + name: "registrationStartTime", + type: "uint64", }, { - name: "registrationEndTime", - type: "uint64", indexed: false, internalType: "uint64", + name: "registrationEndTime", + type: "uint64", }, { - name: "allocationStartTime", - type: "uint64", indexed: false, internalType: "uint64", + name: "allocationStartTime", + type: "uint64", }, { - name: "allocationEndTime", - type: "uint64", indexed: false, internalType: "uint64", + name: "allocationEndTime", + type: "uint64", }, { - name: "sender", - type: "address", indexed: false, internalType: "address", + name: "sender", + type: "address", }, ], - anonymous: false, + name: "TimestampsUpdated", + type: "event", }, { - type: "event", - name: "UpdatedRegistration", + anonymous: false, inputs: [ { - name: "recipientId", - type: "address", indexed: true, internalType: "address", + name: "recipientId", + type: "address", + }, + { + indexed: false, + internalType: "bytes", + name: "data", + type: "bytes", }, - { name: "data", type: "bytes", indexed: false, internalType: "bytes" }, { + indexed: false, + internalType: "address", name: "sender", type: "address", + }, + { indexed: false, - internalType: "address", + internalType: "uint8", + name: "status", + type: "uint8", }, - { name: "status", type: "uint8", indexed: false, internalType: "uint8" }, ], - anonymous: false, + name: "UpdatedRegistration", + type: "event", }, - { type: "error", name: "ALLOCATION_ACTIVE", inputs: [] }, - { type: "error", name: "ALLOCATION_NOT_ACTIVE", inputs: [] }, - { type: "error", name: "ALLOCATION_NOT_ENDED", inputs: [] }, - { type: "error", name: "ALREADY_INITIALIZED", inputs: [] }, - { type: "error", name: "AMOUNT_MISMATCH", inputs: [] }, - { type: "error", name: "ANCHOR_ERROR", inputs: [] }, - { type: "error", name: "ARRAY_MISMATCH", inputs: [] }, - { type: "error", name: "INVALID", inputs: [] }, - { type: "error", name: "INVALID_ADDRESS", inputs: [] }, - { type: "error", name: "INVALID_FEE", inputs: [] }, - { type: "error", name: "INVALID_METADATA", inputs: [] }, - { type: "error", name: "INVALID_REGISTRATION", inputs: [] }, - { type: "error", name: "IS_APPROVED_STRATEGY", inputs: [] }, - { type: "error", name: "MISMATCH", inputs: [] }, - { type: "error", name: "NONCE_NOT_AVAILABLE", inputs: [] }, - { type: "error", name: "NOT_APPROVED_STRATEGY", inputs: [] }, - { type: "error", name: "NOT_ENOUGH_FUNDS", inputs: [] }, - { type: "error", name: "NOT_IMPLEMENTED", inputs: [] }, - { type: "error", name: "NOT_INITIALIZED", inputs: [] }, - { type: "error", name: "NOT_PENDING_OWNER", inputs: [] }, - { type: "error", name: "POOL_ACTIVE", inputs: [] }, - { type: "error", name: "POOL_INACTIVE", inputs: [] }, - { type: "error", name: "RECIPIENT_ALREADY_ACCEPTED", inputs: [] }, { - type: "error", - name: "RECIPIENT_ERROR", - inputs: [{ name: "recipientId", type: "address", internalType: "address" }], + inputs: [], + name: "NATIVE", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "PERMIT2", + outputs: [ + { + internalType: "contract ISignatureTransfer", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "_data", + type: "bytes", + }, + { + internalType: "address", + name: "_sender", + type: "address", + }, + ], + name: "allocate", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [], + name: "allocationEndTime", + outputs: [ + { + internalType: "uint64", + name: "", + type: "uint64", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "allocationStartTime", + outputs: [ + { + internalType: "uint64", + name: "", + type: "uint64", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + name: "allowedTokens", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address[]", + name: "_recipientIds", + type: "address[]", + }, + { + internalType: "bytes", + name: "_data", + type: "bytes", + }, + { + internalType: "address", + name: "_sender", + type: "address", + }, + ], + name: "distribute", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "distributionMetadata", + outputs: [ + { + internalType: "uint256", + name: "protocol", + type: "uint256", + }, + { + internalType: "string", + name: "pointer", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "distributionStarted", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getAllo", + outputs: [ + { + internalType: "contract IAllo", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address[]", + name: "_recipientIds", + type: "address[]", + }, + { + internalType: "bytes[]", + name: "_data", + type: "bytes[]", + }, + ], + name: "getPayouts", + outputs: [ + { + components: [ + { + internalType: "address", + name: "recipientAddress", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + internalType: "struct IStrategy.PayoutSummary[]", + name: "", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getPoolAmount", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getPoolId", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_recipientId", + type: "address", + }, + ], + name: "getRecipient", + outputs: [ + { + components: [ + { + internalType: "bool", + name: "useRegistryAnchor", + type: "bool", + }, + { + internalType: "address", + name: "recipientAddress", + type: "address", + }, + { + components: [ + { + internalType: "uint256", + name: "protocol", + type: "uint256", + }, + { + internalType: "string", + name: "pointer", + type: "string", + }, + ], + internalType: "struct Metadata", + name: "metadata", + type: "tuple", + }, + ], + internalType: + "struct DonationVotingMerkleDistributionBaseStrategy.Recipient", + name: "recipient", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_recipientId", + type: "address", + }, + ], + name: "getRecipientStatus", + outputs: [ + { + internalType: "enum IStrategy.Status", + name: "", + type: "uint8", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getStrategyId", + outputs: [ + { + internalType: "bytes32", + name: "", + type: "bytes32", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_index", + type: "uint256", + }, + ], + name: "hasBeenDistributed", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_amount", + type: "uint256", + }, + ], + name: "increasePoolAmount", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_poolId", + type: "uint256", + }, + { + internalType: "bytes", + name: "_data", + type: "bytes", + }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "isDistributionSet", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "isPoolActive", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_allocator", + type: "address", + }, + ], + name: "isValidAllocator", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "merkleRoot", + outputs: [ + { + internalType: "bytes32", + name: "", + type: "bytes32", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "metadataRequired", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes[]", + name: "data", + type: "bytes[]", + }, + ], + name: "multicall", + outputs: [ + { + internalType: "bytes[]", + name: "results", + type: "bytes[]", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + name: "recipientToStatusIndexes", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "recipientsCounter", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "_data", + type: "bytes", + }, + { + internalType: "address", + name: "_sender", + type: "address", + }, + ], + name: "registerRecipient", + outputs: [ + { + internalType: "address", + name: "recipientId", + type: "address", + }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [], + name: "registrationEndTime", + outputs: [ + { + internalType: "uint64", + name: "", + type: "uint64", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "registrationStartTime", + outputs: [ + { + internalType: "uint64", + name: "", + type: "uint64", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "index", + type: "uint256", + }, + { + internalType: "uint256", + name: "statusRow", + type: "uint256", + }, + ], + internalType: + "struct DonationVotingMerkleDistributionBaseStrategy.ApplicationStatus[]", + name: "statuses", + type: "tuple[]", + }, + { + internalType: "uint256", + name: "refRecipientsCounter", + type: "uint256", + }, + ], + name: "reviewRecipients", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "sig", + type: "bytes", + }, + ], + name: "splitSignature", + outputs: [ + { + internalType: "bytes32", + name: "r", + type: "bytes32", + }, + { + internalType: "bytes32", + name: "s", + type: "bytes32", + }, + { + internalType: "uint8", + name: "v", + type: "uint8", + }, + ], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + name: "statusesBitMap", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalPayoutAmount", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes32", + name: "_merkleRoot", + type: "bytes32", + }, + { + components: [ + { + internalType: "uint256", + name: "protocol", + type: "uint256", + }, + { + internalType: "string", + name: "pointer", + type: "string", + }, + ], + internalType: "struct Metadata", + name: "_distributionMetadata", + type: "tuple", + }, + ], + name: "updateDistribution", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint64", + name: "_registrationStartTime", + type: "uint64", + }, + { + internalType: "uint64", + name: "_registrationEndTime", + type: "uint64", + }, + { + internalType: "uint64", + name: "_allocationStartTime", + type: "uint64", + }, + { + internalType: "uint64", + name: "_allocationEndTime", + type: "uint64", + }, + ], + name: "updatePoolTimestamps", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "useRegistryAnchor", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_token", + type: "address", + }, + ], + name: "withdraw", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + stateMutability: "payable", + type: "receive", }, - { type: "error", name: "RECIPIENT_NOT_ACCEPTED", inputs: [] }, - { type: "error", name: "REGISTRATION_ACTIVE", inputs: [] }, - { type: "error", name: "REGISTRATION_NOT_ACTIVE", inputs: [] }, - { type: "error", name: "UNAUTHORIZED", inputs: [] }, - { type: "error", name: "ZERO_ADDRESS", inputs: [] }, ] as const; diff --git a/src/indexer/allo/v2/strategy.ts b/src/indexer/allo/v2/strategy.ts index 0f9a4db8..65e28d49 100644 --- a/src/indexer/allo/v2/strategy.ts +++ b/src/indexer/allo/v2/strategy.ts @@ -70,6 +70,8 @@ export function extractStrategyFromId(_id: string): Strategy | null { case "0x2f46bf157821dc41daa51479e94783bb0c8699eac63bf75ec450508ab03867ce": // DonationVotingMerkleDistributionDirectTransferStrategyv2.0 case "0x2f0250d534b2d59b8b5cfa5eb0d0848a59ccbf5de2eaf72d2ba4bfe73dce7c6b": + // DonationVotingMerkleDistributionDirectTransferStrategyv2.1 + case "0x9fa6890423649187b1f0e8bf4265f0305ce99523c3d11aa36b35a54617bb0ec0": return { id: id, name: "allov2.DonationVotingMerkleDistributionDirectTransferStrategy", @@ -90,6 +92,8 @@ export function extractStrategyFromId(_id: string): Strategy | null { // DirectGrantsSimpleStrategyv1.1 case "0x263cb916541b6fc1fb5543a244829ccdba75264b097726e6ecc3c3cfce824bf5": + // DirectGrantsSimpleStrategyv2.1 + case "0x53fb9d3bce0956ca2db5bb1441f5ca23050cb1973b33789e04a5978acfd9ca93": return { id: id, name: "allov2.DirectGrantsSimpleStrategy",