diff --git a/packages/ponder/abis/frak-campaign-abis.ts b/packages/ponder/abis/frak-campaign-abis.ts index 0b9f62d..9bd1a3c 100644 --- a/packages/ponder/abis/frak-campaign-abis.ts +++ b/packages/ponder/abis/frak-campaign-abis.ts @@ -139,6 +139,13 @@ export const interactionCampaignAbi = [ outputs: [{ name: "", internalType: "bool", type: "bool" }], stateMutability: "view", }, + { + type: "function", + inputs: [], + name: "isRunning", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", + }, { type: "function", inputs: [], @@ -193,6 +200,13 @@ export const interactionCampaignAbi = [ outputs: [{ name: "roles", internalType: "uint256", type: "uint256" }], stateMutability: "view", }, + { + type: "function", + inputs: [{ name: "_isRunning", internalType: "bool", type: "bool" }], + name: "setRunningStatus", + outputs: [], + stateMutability: "nonpayable", + }, { type: "function", inputs: [ @@ -282,6 +296,7 @@ export const interactionCampaignAbi = [ { type: "error", inputs: [], name: "AlreadyInitialized" }, { type: "error", inputs: [], name: "NewOwnerIsZeroAddress" }, { type: "error", inputs: [], name: "NoHandoverRequest" }, + { type: "error", inputs: [], name: "Reentrancy" }, { type: "error", inputs: [], name: "Unauthorized" }, ] as const; @@ -325,6 +340,7 @@ export const referralCampaignAbi = [ type: "uint48", }, { name: "endDate", internalType: "uint48", type: "uint48" }, + { name: "name", internalType: "bytes32", type: "bytes32" }, ], }, { @@ -420,6 +436,7 @@ export const referralCampaignAbi = [ type: "uint48", }, { name: "endDate", internalType: "uint48", type: "uint48" }, + { name: "name", internalType: "bytes32", type: "bytes32" }, ], }, ], @@ -493,6 +510,13 @@ export const referralCampaignAbi = [ outputs: [{ name: "", internalType: "bool", type: "bool" }], stateMutability: "view", }, + { + type: "function", + inputs: [], + name: "isRunning", + outputs: [{ name: "", internalType: "bool", type: "bool" }], + stateMutability: "view", + }, { type: "function", inputs: [], @@ -557,13 +581,20 @@ export const referralCampaignAbi = [ { type: "function", inputs: [ - { name: "startDate", internalType: "uint48", type: "uint48" }, - { name: "endDate", internalType: "uint48", type: "uint48" }, + { name: "_startDate", internalType: "uint48", type: "uint48" }, + { name: "_endDate", internalType: "uint48", type: "uint48" }, ], name: "setActivationDate", outputs: [], stateMutability: "nonpayable", }, + { + type: "function", + inputs: [{ name: "_isRunning", internalType: "bool", type: "bool" }], + name: "setRunningStatus", + outputs: [], + stateMutability: "nonpayable", + }, { type: "function", inputs: [ diff --git a/packages/ponder/ponder.config.ts b/packages/ponder/ponder.config.ts index ccbaeee..b6c9ca1 100644 --- a/packages/ponder/ponder.config.ts +++ b/packages/ponder/ponder.config.ts @@ -59,7 +59,7 @@ export default createConfig({ // The interaction manager ContentInteractionManager: { abi: contentInteractionManagerAbi, - address: "0xFE0717cACd6Fff3001EdD3f360Eb2854F54861DD", + address: "0xB3fc8bD4e71a15a674ed6BAb63e884720FC4A3B4", network: { arbitrumSepolia: { startBlock: 64121923, @@ -75,7 +75,7 @@ export default createConfig({ referralFeatureFacetAbi, ]), factory: { - address: "0xFE0717cACd6Fff3001EdD3f360Eb2854F54861DD", + address: "0xB3fc8bD4e71a15a674ed6BAb63e884720FC4A3B4", event: parseAbiItem( "event InteractionContractDeployed(uint256 indexed contentId, address interactionContract)" ), @@ -91,7 +91,7 @@ export default createConfig({ Campaigns: { abi: mergeAbis([interactionCampaignAbi, referralCampaignAbi]), factory: { - address: "0x440B19d7694f4B8949b02e674870880c5e40250C", + address: "0xB178c17AC5ad0455b1a10b05d25Fe4847567Ef1D", event: parseAbiItem("event CampaignCreated(address campaign)"), parameter: "campaign", },