diff --git a/abis/frak-campaign-abis.ts b/abis/frak-campaign-abis.ts index 198f1e1..a0759ba 100644 --- a/abis/frak-campaign-abis.ts +++ b/abis/frak-campaign-abis.ts @@ -4,58 +4,52 @@ export const campaignFactoryAbi = [ { - type: "constructor", + type: 'constructor', inputs: [ { - name: "_referralRegistry", - internalType: "contract ReferralRegistry", - type: "address", - }, - { - name: "_frakCampaignWallet", - internalType: "address", - type: "address", + name: '_referralRegistry', + internalType: 'contract ReferralRegistry', + type: 'address', }, + { name: '_frakCampaignWallet', internalType: 'address', type: 'address' }, ], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [ { - name: "_interaction", - internalType: "contract ContentInteractionDiamond", - type: "address", + name: '_interaction', + internalType: 'contract ContentInteractionDiamond', + type: 'address', }, - { name: "_owner", internalType: "address", type: "address" }, - { name: "_identifier", internalType: "bytes4", type: "bytes4" }, - { name: "_initData", internalType: "bytes", type: "bytes" }, + { name: '_owner', internalType: 'address', type: 'address' }, + { name: '_identifier', internalType: 'bytes4', type: 'bytes4' }, + { name: '_initData', internalType: 'bytes', type: 'bytes' }, ], - name: "createCampaign", - outputs: [{ name: "", internalType: "address", type: "address" }], - stateMutability: "nonpayable", + name: 'createCampaign', + outputs: [{ name: '', internalType: 'address', type: 'address' }], + stateMutability: 'nonpayable', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "campaign", - internalType: "address", - type: "address", + name: 'campaign', + internalType: 'address', + type: 'address', indexed: false, }, ], - name: "CampaignCreated", + name: 'CampaignCreated', }, { - type: "error", - inputs: [ - { name: "identifier", internalType: "bytes4", type: "bytes4" }, - ], - name: "UnknownCampaignType", + type: 'error', + inputs: [{ name: 'identifier', internalType: 'bytes4', type: 'bytes4' }], + name: 'UnknownCampaignType', }, -] as const; +] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // InteractionCampaign @@ -63,227 +57,216 @@ export const campaignFactoryAbi = [ export const interactionCampaignAbi = [ { - type: "function", + type: 'function', inputs: [], - name: "cancelOwnershipHandover", + name: 'cancelOwnershipHandover', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [ - { name: "pendingOwner", internalType: "address", type: "address" }, + { name: 'pendingOwner', internalType: 'address', type: 'address' }, ], - name: "completeOwnershipHandover", + name: 'completeOwnershipHandover', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [], - name: "disallowMe", + name: 'disallowMe', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [], - name: "getMetadata", + name: 'getMetadata', outputs: [ - { name: "name", internalType: "string", type: "string" }, - { name: "version", internalType: "string", type: "string" }, + { name: '_type', internalType: 'string', type: 'string' }, + { name: 'version', internalType: 'string', type: 'string' }, ], - stateMutability: "pure", + stateMutability: 'pure', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "grantRoles", + name: 'grantRoles', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", - inputs: [{ name: "_data", internalType: "bytes", type: "bytes" }], - name: "handleInteraction", + type: 'function', + inputs: [{ name: '_data', internalType: 'bytes', type: 'bytes' }], + name: 'handleInteraction', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "hasAllRoles", - outputs: [{ name: "", internalType: "bool", type: "bool" }], - stateMutability: "view", + name: 'hasAllRoles', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "hasAnyRole", - outputs: [{ name: "", internalType: "bool", type: "bool" }], - stateMutability: "view", + name: 'hasAnyRole', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [], - name: "isActive", - outputs: [{ name: "", internalType: "bool", type: "bool" }], - stateMutability: "view", + name: 'isActive', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [], - name: "owner", - outputs: [{ name: "result", internalType: "address", type: "address" }], - stateMutability: "view", + name: 'owner', + outputs: [{ name: 'result', internalType: 'address', type: 'address' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [ - { name: "pendingOwner", internalType: "address", type: "address" }, + { name: 'pendingOwner', internalType: 'address', type: 'address' }, ], - name: "ownershipHandoverExpiresAt", - outputs: [{ name: "result", internalType: "uint256", type: "uint256" }], - stateMutability: "view", + name: 'ownershipHandoverExpiresAt', + outputs: [{ name: 'result', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [], - name: "renounceOwnership", + name: 'renounceOwnership', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", - inputs: [{ name: "roles", internalType: "uint256", type: "uint256" }], - name: "renounceRoles", + type: 'function', + inputs: [{ name: 'roles', internalType: 'uint256', type: 'uint256' }], + name: 'renounceRoles', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [], - name: "requestOwnershipHandover", + name: 'requestOwnershipHandover', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "revokeRoles", + name: 'revokeRoles', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", - inputs: [{ name: "user", internalType: "address", type: "address" }], - name: "rolesOf", - outputs: [{ name: "roles", internalType: "uint256", type: "uint256" }], - stateMutability: "view", + type: 'function', + inputs: [{ name: 'user', internalType: 'address', type: 'address' }], + name: 'rolesOf', + outputs: [{ name: 'roles', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [ - { - name: "_contentType", - internalType: "ContentTypes", - type: "uint256", - }, + { name: '_contentType', internalType: 'ContentTypes', type: 'uint256' }, ], - name: "supportContentType", - outputs: [{ name: "", internalType: "bool", type: "bool" }], - stateMutability: "view", + name: 'supportContentType', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', }, { - type: "function", - inputs: [ - { name: "newOwner", internalType: "address", type: "address" }, - ], - name: "transferOwnership", + type: 'function', + inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }], + name: 'transferOwnership', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "pendingOwner", - internalType: "address", - type: "address", + name: 'pendingOwner', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: "OwnershipHandoverCanceled", + name: 'OwnershipHandoverCanceled', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "pendingOwner", - internalType: "address", - type: "address", + name: 'pendingOwner', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: "OwnershipHandoverRequested", + name: 'OwnershipHandoverRequested', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "oldOwner", - internalType: "address", - type: "address", + name: 'oldOwner', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "newOwner", - internalType: "address", - type: "address", + name: 'newOwner', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: "OwnershipTransferred", + name: 'OwnershipTransferred', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ + { name: 'user', internalType: 'address', type: 'address', indexed: true }, { - name: "user", - internalType: "address", - type: "address", - indexed: true, - }, - { - name: "roles", - internalType: "uint256", - type: "uint256", + name: 'roles', + internalType: 'uint256', + type: 'uint256', indexed: true, }, ], - name: "RolesUpdated", + name: 'RolesUpdated', }, - { type: "error", inputs: [], name: "AlreadyInitialized" }, - { type: "error", inputs: [], name: "NewOwnerIsZeroAddress" }, - { type: "error", inputs: [], name: "NoHandoverRequest" }, - { type: "error", inputs: [], name: "Unauthorized" }, -] as const; + { type: 'error', inputs: [], name: 'AlreadyInitialized' }, + { type: 'error', inputs: [], name: 'NewOwnerIsZeroAddress' }, + { type: 'error', inputs: [], name: 'NoHandoverRequest' }, + { type: 'error', inputs: [], name: 'Unauthorized' }, +] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ReferralCampaign @@ -291,394 +274,383 @@ export const interactionCampaignAbi = [ export const referralCampaignAbi = [ { - type: "constructor", + type: 'constructor', inputs: [ { - name: "_config", - internalType: "struct ReferralCampaign.CampaignConfig", - type: "tuple", + name: '_config', + internalType: 'struct ReferralCampaign.CampaignConfig', + type: 'tuple', components: [ - { name: "token", internalType: "address", type: "address" }, + { name: 'token', internalType: 'address', type: 'address' }, + { name: 'initialReward', internalType: 'uint256', type: 'uint256' }, { - name: "initialReward", - internalType: "uint256", - type: "uint256", + name: 'userRewardPercent', + internalType: 'uint256', + type: 'uint256', }, { - name: "userRewardPercent", - internalType: "uint256", - type: "uint256", + name: 'distributionCapPeriod', + internalType: 'uint256', + type: 'uint256', }, - { - name: "distributionCapPeriod", - internalType: "uint256", - type: "uint256", - }, - { - name: "distributionCap", - internalType: "uint256", - type: "uint256", - }, - { - name: "startDate", - internalType: "uint48", - type: "uint48", - }, - { name: "endDate", internalType: "uint48", type: "uint48" }, + { name: 'distributionCap', internalType: 'uint256', type: 'uint256' }, + { name: 'startDate', internalType: 'uint48', type: 'uint48' }, + { name: 'endDate', internalType: 'uint48', type: 'uint48' }, ], }, { - name: "_referralRegistry", - internalType: "contract ReferralRegistry", - type: "address", + name: '_referralRegistry', + internalType: 'contract ReferralRegistry', + type: 'address', }, - { name: "_owner", internalType: "address", type: "address" }, + { name: '_owner', internalType: 'address', type: 'address' }, + { name: '_frakCampaignWallet', internalType: 'address', type: 'address' }, { - name: "_frakCampaignWallet", - internalType: "address", - type: "address", - }, - { - name: "_interaction", - internalType: "contract ContentInteractionDiamond", - type: "address", + name: '_interaction', + internalType: 'contract ContentInteractionDiamond', + type: 'address', }, ], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [], - name: "cancelOwnershipHandover", + name: 'cancelOwnershipHandover', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [ - { name: "pendingOwner", internalType: "address", type: "address" }, + { name: 'pendingOwner', internalType: 'address', type: 'address' }, ], - name: "completeOwnershipHandover", + name: 'completeOwnershipHandover', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [], - name: "disallowMe", + name: 'disallowMe', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [ - { name: "_user", internalType: "address", type: "address" }, + { name: '_user', internalType: 'address', type: 'address' }, + { name: '_initialAmount', internalType: 'uint256', type: 'uint256' }, + ], + name: 'distributeTokenToUserReferrers', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [], + name: 'getConfig', + outputs: [ { - name: "_initialAmount", - internalType: "uint256", - type: "uint256", + name: '', + internalType: 'struct ReferralCampaign.CampaignConfig', + type: 'tuple', + components: [ + { name: 'token', internalType: 'address', type: 'address' }, + { name: 'initialReward', internalType: 'uint256', type: 'uint256' }, + { + name: 'userRewardPercent', + internalType: 'uint256', + type: 'uint256', + }, + { + name: 'distributionCapPeriod', + internalType: 'uint256', + type: 'uint256', + }, + { name: 'distributionCap', internalType: 'uint256', type: 'uint256' }, + { name: 'startDate', internalType: 'uint48', type: 'uint48' }, + { name: 'endDate', internalType: 'uint48', type: 'uint48' }, + ], }, ], - name: "distributeTokenToUserReferrers", - outputs: [], - stateMutability: "nonpayable", + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [], - name: "getMetadata", + name: 'getMetadata', outputs: [ - { name: "name", internalType: "string", type: "string" }, - { name: "version", internalType: "string", type: "string" }, + { name: '_type', internalType: 'string', type: 'string' }, + { name: 'version', internalType: 'string', type: 'string' }, ], - stateMutability: "pure", + stateMutability: 'pure', }, { - type: "function", - inputs: [{ name: "_user", internalType: "address", type: "address" }], - name: "getPendingAmount", - outputs: [{ name: "", internalType: "uint256", type: "uint256" }], - stateMutability: "view", + type: 'function', + inputs: [{ name: '_user', internalType: 'address', type: 'address' }], + name: 'getPendingAmount', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [], - name: "getTotalPending", - outputs: [{ name: "", internalType: "uint256", type: "uint256" }], - stateMutability: "view", + name: 'getTotalPending', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "grantRoles", + name: 'grantRoles', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", - inputs: [{ name: "_data", internalType: "bytes", type: "bytes" }], - name: "handleInteraction", + type: 'function', + inputs: [{ name: '_data', internalType: 'bytes', type: 'bytes' }], + name: 'handleInteraction', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "hasAllRoles", - outputs: [{ name: "", internalType: "bool", type: "bool" }], - stateMutability: "view", + name: 'hasAllRoles', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "hasAnyRole", - outputs: [{ name: "", internalType: "bool", type: "bool" }], - stateMutability: "view", + name: 'hasAnyRole', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [], - name: "isActive", - outputs: [{ name: "", internalType: "bool", type: "bool" }], - stateMutability: "view", + name: 'isActive', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [], - name: "owner", - outputs: [{ name: "result", internalType: "address", type: "address" }], - stateMutability: "view", + name: 'owner', + outputs: [{ name: 'result', internalType: 'address', type: 'address' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [ - { name: "pendingOwner", internalType: "address", type: "address" }, + { name: 'pendingOwner', internalType: 'address', type: 'address' }, ], - name: "ownershipHandoverExpiresAt", - outputs: [{ name: "result", internalType: "uint256", type: "uint256" }], - stateMutability: "view", + name: 'ownershipHandoverExpiresAt', + outputs: [{ name: 'result', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', }, { - type: "function", - inputs: [{ name: "_user", internalType: "address", type: "address" }], - name: "pullReward", + type: 'function', + inputs: [{ name: '_user', internalType: 'address', type: 'address' }], + name: 'pullReward', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [], - name: "renounceOwnership", + name: 'renounceOwnership', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", - inputs: [{ name: "roles", internalType: "uint256", type: "uint256" }], - name: "renounceRoles", + type: 'function', + inputs: [{ name: 'roles', internalType: 'uint256', type: 'uint256' }], + name: 'renounceRoles', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [], - name: "requestOwnershipHandover", + name: 'requestOwnershipHandover', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "revokeRoles", + name: 'revokeRoles', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", - inputs: [{ name: "user", internalType: "address", type: "address" }], - name: "rolesOf", - outputs: [{ name: "roles", internalType: "uint256", type: "uint256" }], - stateMutability: "view", + type: 'function', + inputs: [{ name: 'user', internalType: 'address', type: 'address' }], + name: 'rolesOf', + outputs: [{ name: 'roles', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', }, { - type: "function", + 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", + name: 'setActivationDate', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [ - { - name: "_contentType", - internalType: "ContentTypes", - type: "uint256", - }, + { name: '_contentType', internalType: 'ContentTypes', type: 'uint256' }, ], - name: "supportContentType", - outputs: [{ name: "", internalType: "bool", type: "bool" }], - stateMutability: "pure", + name: 'supportContentType', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'pure', }, { - type: "function", - inputs: [ - { name: "newOwner", internalType: "address", type: "address" }, - ], - name: "transferOwnership", + type: 'function', + inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }], + name: 'transferOwnership', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [], - name: "withdraw", + name: 'withdraw', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "previousTimestamp", - internalType: "uint48", - type: "uint48", + name: 'previousTimestamp', + internalType: 'uint48', + type: 'uint48', indexed: false, }, { - name: "distributedAmount", - internalType: "uint256", - type: "uint256", + name: 'distributedAmount', + internalType: 'uint256', + type: 'uint256', indexed: false, }, ], - name: "DistributionCapReset", + name: 'DistributionCapReset', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "pendingOwner", - internalType: "address", - type: "address", + name: 'pendingOwner', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: "OwnershipHandoverCanceled", + name: 'OwnershipHandoverCanceled', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "pendingOwner", - internalType: "address", - type: "address", + name: 'pendingOwner', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: "OwnershipHandoverRequested", + name: 'OwnershipHandoverRequested', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "oldOwner", - internalType: "address", - type: "address", + name: 'oldOwner', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "newOwner", - internalType: "address", - type: "address", + name: 'newOwner', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: "OwnershipTransferred", + name: 'OwnershipTransferred', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ + { name: 'user', internalType: 'address', type: 'address', indexed: true }, { - name: "user", - internalType: "address", - type: "address", - indexed: true, - }, - { - name: "amount", - internalType: "uint256", - type: "uint256", + name: 'amount', + internalType: 'uint256', + type: 'uint256', indexed: false, }, ], - name: "RewardAdded", + name: 'RewardAdded', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ + { name: 'user', internalType: 'address', type: 'address', indexed: true }, { - name: "user", - internalType: "address", - type: "address", - indexed: true, - }, - { - name: "amount", - internalType: "uint256", - type: "uint256", + name: 'amount', + internalType: 'uint256', + type: 'uint256', indexed: false, }, ], - name: "RewardClaimed", + name: 'RewardClaimed', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ + { name: 'user', internalType: 'address', type: 'address', indexed: true }, { - name: "user", - internalType: "address", - type: "address", - indexed: true, - }, - { - name: "roles", - internalType: "uint256", - type: "uint256", + name: 'roles', + internalType: 'uint256', + type: 'uint256', indexed: true, }, ], - name: "RolesUpdated", - }, - { type: "error", inputs: [], name: "AlreadyInitialized" }, - { type: "error", inputs: [], name: "DistributionCapReached" }, - { type: "error", inputs: [], name: "InactiveCampaign" }, - { type: "error", inputs: [], name: "InvalidConfig" }, - { type: "error", inputs: [], name: "NewOwnerIsZeroAddress" }, - { type: "error", inputs: [], name: "NoHandoverRequest" }, - { type: "error", inputs: [], name: "NotEnoughToken" }, - { type: "error", inputs: [], name: "Reentrancy" }, - { type: "error", inputs: [], name: "Unauthorized" }, -] as const; + name: 'RolesUpdated', + }, + { type: 'error', inputs: [], name: 'AlreadyInitialized' }, + { type: 'error', inputs: [], name: 'DistributionCapReached' }, + { type: 'error', inputs: [], name: 'InactiveCampaign' }, + { type: 'error', inputs: [], name: 'InvalidConfig' }, + { type: 'error', inputs: [], name: 'NewOwnerIsZeroAddress' }, + { type: 'error', inputs: [], name: 'NoHandoverRequest' }, + { type: 'error', inputs: [], name: 'NotEnoughToken' }, + { type: 'error', inputs: [], name: 'Reentrancy' }, + { type: 'error', inputs: [], name: 'Unauthorized' }, +] as const diff --git a/abis/frak-interaction-abis.ts b/abis/frak-interaction-abis.ts index 16deda1..2658436 100644 --- a/abis/frak-interaction-abis.ts +++ b/abis/frak-interaction-abis.ts @@ -4,413 +4,376 @@ export const contentInteractionDiamondAbi = [ { - type: "constructor", + type: 'constructor', inputs: [ - { name: "_contentId", internalType: "uint256", type: "uint256" }, + { name: '_contentId', internalType: 'uint256', type: 'uint256' }, { - name: "_referralRegistry", - internalType: "contract ReferralRegistry", - type: "address", + name: '_referralRegistry', + internalType: 'contract ReferralRegistry', + type: 'address', }, + { name: '_interactionManager', internalType: 'address', type: 'address' }, { - name: "_interactionMananger", - internalType: "address", - type: "address", + name: '_interactionManagerOwner', + internalType: 'address', + type: 'address', }, - { - name: "_interactionManangerOwner", - internalType: "address", - type: "address", - }, - { name: "_contentOwner", internalType: "address", type: "address" }, + { name: '_contentOwner', internalType: 'address', type: 'address' }, ], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [ { - name: "_campaign", - internalType: "contract InteractionCampaign", - type: "address", + name: '_campaign', + internalType: 'contract InteractionCampaign', + type: 'address', }, ], - name: "attachCampaign", + name: 'attachCampaign', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [], - name: "cancelOwnershipHandover", + name: 'cancelOwnershipHandover', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [ - { name: "pendingOwner", internalType: "address", type: "address" }, + { name: 'pendingOwner', internalType: 'address', type: 'address' }, ], - name: "completeOwnershipHandover", + name: 'completeOwnershipHandover', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [ - { - name: "_contentTypeDenominator", - internalType: "uint8", - type: "uint8", - }, - { name: "_call", internalType: "bytes", type: "bytes" }, + { name: '_contentTypeDenominator', internalType: 'uint8', type: 'uint8' }, + { name: '_call', internalType: 'bytes', type: 'bytes' }, ], - name: "delegateToFacet", + name: 'delegateToFacet', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [ - { - name: "_contentTypes", - internalType: "ContentTypes", - type: "uint256", - }, + { name: '_contentTypes', internalType: 'ContentTypes', type: 'uint256' }, ], - name: "deleteFacets", + name: 'deleteFacets', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [ { - name: "_campaigns", - internalType: "contract InteractionCampaign[]", - type: "address[]", + name: '_campaigns', + internalType: 'contract InteractionCampaign[]', + type: 'address[]', }, ], - name: "detachCampaigns", + name: 'detachCampaigns', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [], - name: "eip712Domain", + name: 'eip712Domain', outputs: [ - { name: "fields", internalType: "bytes1", type: "bytes1" }, - { name: "name", internalType: "string", type: "string" }, - { name: "version", internalType: "string", type: "string" }, - { name: "chainId", internalType: "uint256", type: "uint256" }, - { - name: "verifyingContract", - internalType: "address", - type: "address", - }, - { name: "salt", internalType: "bytes32", type: "bytes32" }, - { - name: "extensions", - internalType: "uint256[]", - type: "uint256[]", - }, + { name: 'fields', internalType: 'bytes1', type: 'bytes1' }, + { name: 'name', internalType: 'string', type: 'string' }, + { name: 'version', internalType: 'string', type: 'string' }, + { name: 'chainId', internalType: 'uint256', type: 'uint256' }, + { name: 'verifyingContract', internalType: 'address', type: 'address' }, + { name: 'salt', internalType: 'bytes32', type: 'bytes32' }, + { name: 'extensions', internalType: 'uint256[]', type: 'uint256[]' }, ], - stateMutability: "view", + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [], - name: "getCampaigns", + name: 'getCampaigns', outputs: [ { - name: "", - internalType: "contract InteractionCampaign[]", - type: "address[]", + name: '', + internalType: 'contract InteractionCampaign[]', + type: 'address[]', }, ], - stateMutability: "view", + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [], - name: "getContentId", - outputs: [{ name: "", internalType: "uint256", type: "uint256" }], - stateMutability: "view", + name: 'getContentId', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [], - name: "getDomainSeparator", - outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], - stateMutability: "view", + name: 'getDomainSeparator', + outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], + stateMutability: 'view', }, { - type: "function", - inputs: [ - { name: "_denominator", internalType: "uint8", type: "uint8" }, - ], - name: "getFacet", + type: 'function', + inputs: [{ name: '_denominator', internalType: 'uint8', type: 'uint8' }], + name: 'getFacet', outputs: [ - { - name: "", - internalType: "contract IInteractionFacet", - type: "address", - }, + { name: '', internalType: 'contract IInteractionFacet', type: 'address' }, ], - stateMutability: "view", + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [ - { - name: "_interactionData", - internalType: "bytes32", - type: "bytes32", - }, - { name: "_user", internalType: "address", type: "address" }, + { name: '_interactionData', internalType: 'bytes32', type: 'bytes32' }, + { name: '_user', internalType: 'address', type: 'address' }, ], - name: "getNonceForInteraction", - outputs: [{ name: "", internalType: "uint256", type: "uint256" }], - stateMutability: "view", + name: 'getNonceForInteraction', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [], - name: "getReferralTree", - outputs: [{ name: "tree", internalType: "bytes32", type: "bytes32" }], - stateMutability: "view", + name: 'getReferralTree', + outputs: [{ name: 'tree', internalType: 'bytes32', type: 'bytes32' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "grantRoles", + name: 'grantRoles', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [ - { name: "_interaction", internalType: "bytes", type: "bytes" }, - { name: "_signature", internalType: "bytes", type: "bytes" }, + { name: '_interaction', internalType: 'bytes', type: 'bytes' }, + { name: '_signature', internalType: 'bytes', type: 'bytes' }, ], - name: "handleInteraction", + name: 'handleInteraction', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "hasAllRoles", - outputs: [{ name: "", internalType: "bool", type: "bool" }], - stateMutability: "view", + name: 'hasAllRoles', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "hasAnyRole", - outputs: [{ name: "", internalType: "bool", type: "bool" }], - stateMutability: "view", + name: 'hasAnyRole', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [], - name: "owner", - outputs: [{ name: "result", internalType: "address", type: "address" }], - stateMutability: "view", + name: 'owner', + outputs: [{ name: 'result', internalType: 'address', type: 'address' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [ - { name: "pendingOwner", internalType: "address", type: "address" }, + { name: 'pendingOwner', internalType: 'address', type: 'address' }, ], - name: "ownershipHandoverExpiresAt", - outputs: [{ name: "result", internalType: "uint256", type: "uint256" }], - stateMutability: "view", + name: 'ownershipHandoverExpiresAt', + outputs: [{ name: 'result', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [], - name: "renounceOwnership", + name: 'renounceOwnership', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", - inputs: [{ name: "roles", internalType: "uint256", type: "uint256" }], - name: "renounceRoles", + type: 'function', + inputs: [{ name: 'roles', internalType: 'uint256', type: 'uint256' }], + name: 'renounceRoles', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [], - name: "requestOwnershipHandover", + name: 'requestOwnershipHandover', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "revokeRoles", + name: 'revokeRoles', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", - inputs: [{ name: "user", internalType: "address", type: "address" }], - name: "rolesOf", - outputs: [{ name: "roles", internalType: "uint256", type: "uint256" }], - stateMutability: "view", + type: 'function', + inputs: [{ name: 'user', internalType: 'address', type: 'address' }], + name: 'rolesOf', + outputs: [{ name: 'roles', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [ { - name: "facets", - internalType: "contract IInteractionFacet[]", - type: "address[]", + name: 'facets', + internalType: 'contract IInteractionFacet[]', + type: 'address[]', }, ], - name: "setFacets", + name: 'setFacets', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", - inputs: [ - { name: "newOwner", internalType: "address", type: "address" }, - ], - name: "transferOwnership", + type: 'function', + inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }], + name: 'transferOwnership', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "campaign", - internalType: "contract InteractionCampaign", - type: "address", + name: 'campaign', + internalType: 'contract InteractionCampaign', + type: 'address', indexed: false, }, ], - name: "CampaignAttached", + name: 'CampaignAttached', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "campaign", - internalType: "contract InteractionCampaign", - type: "address", + name: 'campaign', + internalType: 'contract InteractionCampaign', + type: 'address', indexed: false, }, ], - name: "CampaignDetached", + name: 'CampaignDetached', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "version", - internalType: "uint64", - type: "uint64", + name: 'version', + internalType: 'uint64', + type: 'uint64', indexed: false, }, ], - name: "Initialized", + name: 'Initialized', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "pendingOwner", - internalType: "address", - type: "address", + name: 'pendingOwner', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: "OwnershipHandoverCanceled", + name: 'OwnershipHandoverCanceled', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "pendingOwner", - internalType: "address", - type: "address", + name: 'pendingOwner', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: "OwnershipHandoverRequested", + name: 'OwnershipHandoverRequested', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "oldOwner", - internalType: "address", - type: "address", + name: 'oldOwner', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "newOwner", - internalType: "address", - type: "address", + name: 'newOwner', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: "OwnershipTransferred", + name: 'OwnershipTransferred', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ + { name: 'user', internalType: 'address', type: 'address', indexed: true }, { - name: "user", - internalType: "address", - type: "address", - indexed: true, - }, - { - name: "roles", - internalType: "uint256", - type: "uint256", + name: 'roles', + internalType: 'uint256', + type: 'uint256', indexed: true, }, ], - name: "RolesUpdated", - }, - { type: "error", inputs: [], name: "AlreadyInitialized" }, - { type: "error", inputs: [], name: "CampaignAlreadyPresent" }, - { type: "error", inputs: [], name: "InteractionHandlingFailed" }, - { type: "error", inputs: [], name: "InvalidInitialization" }, - { type: "error", inputs: [], name: "NewOwnerIsZeroAddress" }, - { type: "error", inputs: [], name: "NoHandoverRequest" }, - { type: "error", inputs: [], name: "NotInitializing" }, - { type: "error", inputs: [], name: "UnandledContentType" }, - { type: "error", inputs: [], name: "Unauthorized" }, - { type: "error", inputs: [], name: "WrongInteractionSigner" }, -] as const; + name: 'RolesUpdated', + }, + { type: 'error', inputs: [], name: 'AlreadyInitialized' }, + { type: 'error', inputs: [], name: 'CampaignAlreadyPresent' }, + { type: 'error', inputs: [], name: 'InteractionHandlingFailed' }, + { type: 'error', inputs: [], name: 'InvalidInitialization' }, + { type: 'error', inputs: [], name: 'NewOwnerIsZeroAddress' }, + { type: 'error', inputs: [], name: 'NoHandoverRequest' }, + { type: 'error', inputs: [], name: 'NotInitializing' }, + { type: 'error', inputs: [], name: 'UnandledContentType' }, + { type: 'error', inputs: [], name: 'Unauthorized' }, + { type: 'error', inputs: [], name: 'WrongInteractionSigner' }, +] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ContentInteractionManager @@ -418,833 +381,781 @@ export const contentInteractionDiamondAbi = [ export const contentInteractionManagerAbi = [ { - type: "constructor", + type: 'constructor', inputs: [ { - name: "_contentRegistry", - internalType: "contract ContentRegistry", - type: "address", + name: '_contentRegistry', + internalType: 'contract ContentRegistry', + type: 'address', }, { - name: "_referralRegistry", - internalType: "contract ReferralRegistry", - type: "address", + name: '_referralRegistry', + internalType: 'contract ReferralRegistry', + type: 'address', }, ], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [ - { name: "_contentId", internalType: "uint256", type: "uint256" }, - { name: "_operator", internalType: "address", type: "address" }, + { name: '_contentId', internalType: 'uint256', type: 'uint256' }, + { name: '_operator', internalType: 'address', type: 'address' }, ], - name: "addOperator", + name: 'addOperator', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [], - name: "cancelOwnershipHandover", + name: 'cancelOwnershipHandover', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [ - { name: "pendingOwner", internalType: "address", type: "address" }, + { name: 'pendingOwner', internalType: 'address', type: 'address' }, ], - name: "completeOwnershipHandover", + name: 'completeOwnershipHandover', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", - inputs: [ - { name: "_contentId", internalType: "uint256", type: "uint256" }, - ], - name: "deleteInteractionContract", + type: 'function', + inputs: [{ name: '_contentId', internalType: 'uint256', type: 'uint256' }], + name: 'deleteInteractionContract', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [ - { name: "_contentId", internalType: "uint256", type: "uint256" }, - { name: "_operator", internalType: "address", type: "address" }, + { name: '_contentId', internalType: 'uint256', type: 'uint256' }, + { name: '_operator', internalType: 'address', type: 'address' }, ], - name: "deleteOperator", + name: 'deleteOperator', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [ - { name: "_contentId", internalType: "uint256", type: "uint256" }, - { - name: "_campaignIdentifier", - internalType: "bytes4", - type: "bytes4", - }, - { name: "_initData", internalType: "bytes", type: "bytes" }, - ], - name: "deployCampaign", - outputs: [ - { name: "campaign", internalType: "address", type: "address" }, + { name: '_contentId', internalType: 'uint256', type: 'uint256' }, + { name: '_campaignIdentifier', internalType: 'bytes4', type: 'bytes4' }, + { name: '_initData', internalType: 'bytes', type: 'bytes' }, ], - stateMutability: "nonpayable", + name: 'deployCampaign', + outputs: [{ name: 'campaign', internalType: 'address', type: 'address' }], + stateMutability: 'nonpayable', }, { - type: "function", - inputs: [ - { name: "_contentId", internalType: "uint256", type: "uint256" }, - ], - name: "deployInteractionContract", + type: 'function', + inputs: [{ name: '_contentId', internalType: 'uint256', type: 'uint256' }], + name: 'deployInteractionContract', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [ - { name: "_contentId", internalType: "uint256", type: "uint256" }, + { name: '_contentId', internalType: 'uint256', type: 'uint256' }, { - name: "_campaigns", - internalType: "contract InteractionCampaign[]", - type: "address[]", + name: '_campaigns', + internalType: 'contract InteractionCampaign[]', + type: 'address[]', }, ], - name: "detachCampaigns", + name: 'detachCampaigns', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", - inputs: [ - { name: "_contentId", internalType: "uint256", type: "uint256" }, - ], - name: "getInteractionContract", + type: 'function', + inputs: [{ name: '_contentId', internalType: 'uint256', type: 'uint256' }], + name: 'getInteractionContract', outputs: [ { - name: "interactionContract", - internalType: "contract ContentInteractionDiamond", - type: "address", + name: 'interactionContract', + internalType: 'contract ContentInteractionDiamond', + type: 'address', }, ], - stateMutability: "view", + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "grantRoles", + name: 'grantRoles', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "hasAllRoles", - outputs: [{ name: "", internalType: "bool", type: "bool" }], - stateMutability: "view", + name: 'hasAllRoles', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "hasAnyRole", - outputs: [{ name: "", internalType: "bool", type: "bool" }], - stateMutability: "view", + name: 'hasAnyRole', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [ - { name: "_owner", internalType: "address", type: "address" }, + { name: '_owner', internalType: 'address', type: 'address' }, { - name: "_facetsFactory", - internalType: "contract IFacetsFactory", - type: "address", + name: '_facetsFactory', + internalType: 'contract IFacetsFactory', + type: 'address', }, { - name: "_campaignFactory", - internalType: "contract ICampaignFactory", - type: "address", + name: '_campaignFactory', + internalType: 'contract ICampaignFactory', + type: 'address', }, ], - name: "init", + name: 'init', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [ - { name: "_contentId", internalType: "uint256", type: "uint256" }, - { name: "_user", internalType: "address", type: "address" }, + { name: '_contentId', internalType: 'uint256', type: 'uint256' }, + { name: '_user', internalType: 'address', type: 'address' }, ], - name: "isAllowedOnContent", - outputs: [{ name: "isAllowed", internalType: "bool", type: "bool" }], - stateMutability: "view", + name: 'isAllowedOnContent', + outputs: [{ name: 'isAllowed', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [], - name: "owner", - outputs: [{ name: "result", internalType: "address", type: "address" }], - stateMutability: "view", + name: 'owner', + outputs: [{ name: 'result', internalType: 'address', type: 'address' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [ - { name: "pendingOwner", internalType: "address", type: "address" }, + { name: 'pendingOwner', internalType: 'address', type: 'address' }, ], - name: "ownershipHandoverExpiresAt", - outputs: [{ name: "result", internalType: "uint256", type: "uint256" }], - stateMutability: "view", + name: 'ownershipHandoverExpiresAt', + outputs: [{ name: 'result', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [], - name: "proxiableUUID", - outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], - stateMutability: "view", + name: 'proxiableUUID', + outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [], - name: "renounceOwnership", + name: 'renounceOwnership', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", - inputs: [{ name: "roles", internalType: "uint256", type: "uint256" }], - name: "renounceRoles", + type: 'function', + inputs: [{ name: 'roles', internalType: 'uint256', type: 'uint256' }], + name: 'renounceRoles', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [], - name: "requestOwnershipHandover", + name: 'requestOwnershipHandover', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "revokeRoles", + name: 'revokeRoles', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", - inputs: [{ name: "user", internalType: "address", type: "address" }], - name: "rolesOf", - outputs: [{ name: "roles", internalType: "uint256", type: "uint256" }], - stateMutability: "view", + type: 'function', + inputs: [{ name: 'user', internalType: 'address', type: 'address' }], + name: 'rolesOf', + outputs: [{ name: 'roles', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', }, { - type: "function", - inputs: [ - { name: "newOwner", internalType: "address", type: "address" }, - ], - name: "transferOwnership", + type: 'function', + inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }], + name: 'transferOwnership', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [ { - name: "_campaignFactory", - internalType: "contract ICampaignFactory", - type: "address", + name: '_campaignFactory', + internalType: 'contract ICampaignFactory', + type: 'address', }, ], - name: "updateCampaignFactory", + name: 'updateCampaignFactory', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [ { - name: "_facetsFactory", - internalType: "contract IFacetsFactory", - type: "address", + name: '_facetsFactory', + internalType: 'contract IFacetsFactory', + type: 'address', }, ], - name: "updateFacetsFactory", + name: 'updateFacetsFactory', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", - inputs: [ - { name: "_contentId", internalType: "uint256", type: "uint256" }, - ], - name: "updateInteractionContract", + type: 'function', + inputs: [{ name: '_contentId', internalType: 'uint256', type: 'uint256' }], + name: 'updateInteractionContract', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [ - { - name: "newImplementation", - internalType: "address", - type: "address", - }, - { name: "data", internalType: "bytes", type: "bytes" }, + { name: 'newImplementation', internalType: 'address', type: 'address' }, + { name: 'data', internalType: 'bytes', type: 'bytes' }, ], - name: "upgradeToAndCall", + name: 'upgradeToAndCall', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", - inputs: [ - { name: "_newWallet", internalType: "address", type: "address" }, - ], - name: "walletLinked", + type: 'function', + inputs: [{ name: '_newWallet', internalType: 'address', type: 'address' }], + name: 'walletLinked', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "contentId", - internalType: "uint256", - type: "uint256", + name: 'contentId', + internalType: 'uint256', + type: 'uint256', indexed: true, }, { - name: "operator", - internalType: "address", - type: "address", + name: 'operator', + internalType: 'address', + type: 'address', indexed: false, }, ], - name: "ContentOperatorAdded", + name: 'ContentOperatorAdded', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "contentId", - internalType: "uint256", - type: "uint256", + name: 'contentId', + internalType: 'uint256', + type: 'uint256', indexed: true, }, { - name: "operator", - internalType: "address", - type: "address", + name: 'operator', + internalType: 'address', + type: 'address', indexed: false, }, ], - name: "ContentOperatorRemoved", + name: 'ContentOperatorRemoved', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "version", - internalType: "uint64", - type: "uint64", + name: 'version', + internalType: 'uint64', + type: 'uint64', indexed: false, }, ], - name: "Initialized", + name: 'Initialized', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "contentId", - internalType: "uint256", - type: "uint256", + name: 'contentId', + internalType: 'uint256', + type: 'uint256', indexed: true, }, { - name: "interactionContract", - internalType: "contract ContentInteractionDiamond", - type: "address", + name: 'interactionContract', + internalType: 'contract ContentInteractionDiamond', + type: 'address', indexed: false, }, ], - name: "InteractionContractDeleted", + name: 'InteractionContractDeleted', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "contentId", - internalType: "uint256", - type: "uint256", + name: 'contentId', + internalType: 'uint256', + type: 'uint256', indexed: true, }, { - name: "interactionContract", - internalType: "contract ContentInteractionDiamond", - type: "address", + name: 'interactionContract', + internalType: 'contract ContentInteractionDiamond', + type: 'address', indexed: false, }, ], - name: "InteractionContractDeployed", + name: 'InteractionContractDeployed', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "contentId", - internalType: "uint256", - type: "uint256", + name: 'contentId', + internalType: 'uint256', + type: 'uint256', indexed: false, }, { - name: "interactionContract", - internalType: "contract ContentInteractionDiamond", - type: "address", + name: 'interactionContract', + internalType: 'contract ContentInteractionDiamond', + type: 'address', indexed: false, }, ], - name: "InteractionContractUpdated", + name: 'InteractionContractUpdated', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "pendingOwner", - internalType: "address", - type: "address", + name: 'pendingOwner', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: "OwnershipHandoverCanceled", + name: 'OwnershipHandoverCanceled', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "pendingOwner", - internalType: "address", - type: "address", + name: 'pendingOwner', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: "OwnershipHandoverRequested", + name: 'OwnershipHandoverRequested', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "oldOwner", - internalType: "address", - type: "address", + name: 'oldOwner', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "newOwner", - internalType: "address", - type: "address", + name: 'newOwner', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: "OwnershipTransferred", + name: 'OwnershipTransferred', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ + { name: 'user', internalType: 'address', type: 'address', indexed: true }, { - name: "user", - internalType: "address", - type: "address", - indexed: true, - }, - { - name: "roles", - internalType: "uint256", - type: "uint256", + name: 'roles', + internalType: 'uint256', + type: 'uint256', indexed: true, }, ], - name: "RolesUpdated", + name: 'RolesUpdated', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "implementation", - internalType: "address", - type: "address", + name: 'implementation', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: "Upgraded", + name: 'Upgraded', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "prevWallet", - internalType: "address", - type: "address", + name: 'prevWallet', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "newWallet", - internalType: "address", - type: "address", + name: 'newWallet', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: "WalletLinked", - }, - { type: "error", inputs: [], name: "AlreadyInitialized" }, - { type: "error", inputs: [], name: "CantHandleContentTypes" }, - { type: "error", inputs: [], name: "InteractionContractAlreadyDeployed" }, - { type: "error", inputs: [], name: "InvalidInitialization" }, - { type: "error", inputs: [], name: "NewOwnerIsZeroAddress" }, - { type: "error", inputs: [], name: "NoHandoverRequest" }, - { type: "error", inputs: [], name: "NoInteractionContractFound" }, - { type: "error", inputs: [], name: "NotInitializing" }, - { type: "error", inputs: [], name: "Unauthorized" }, - { type: "error", inputs: [], name: "UnauthorizedCallContext" }, - { type: "error", inputs: [], name: "UpgradeFailed" }, -] as const; + name: 'WalletLinked', + }, + { type: 'error', inputs: [], name: 'AlreadyInitialized' }, + { type: 'error', inputs: [], name: 'CantHandleContentTypes' }, + { type: 'error', inputs: [], name: 'InteractionContractAlreadyDeployed' }, + { type: 'error', inputs: [], name: 'InvalidInitialization' }, + { type: 'error', inputs: [], name: 'NewOwnerIsZeroAddress' }, + { type: 'error', inputs: [], name: 'NoHandoverRequest' }, + { type: 'error', inputs: [], name: 'NoInteractionContractFound' }, + { type: 'error', inputs: [], name: 'NotInitializing' }, + { type: 'error', inputs: [], name: 'Unauthorized' }, + { type: 'error', inputs: [], name: 'UnauthorizedCallContext' }, + { type: 'error', inputs: [], name: 'UpgradeFailed' }, +] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // DappInteractionFacet ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// export const dappInteractionFacetAbi = [ - { type: "constructor", inputs: [], stateMutability: "nonpayable" }, - { type: "fallback", stateMutability: "nonpayable" }, + { type: 'constructor', inputs: [], stateMutability: 'nonpayable' }, + { type: 'fallback', stateMutability: 'nonpayable' }, { - type: "function", + type: 'function', inputs: [], - name: "cancelOwnershipHandover", + name: 'cancelOwnershipHandover', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [ - { name: "pendingOwner", internalType: "address", type: "address" }, + { name: 'pendingOwner', internalType: 'address', type: 'address' }, ], - name: "completeOwnershipHandover", + name: 'completeOwnershipHandover', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [], - name: "contentTypeDenominator", - outputs: [{ name: "", internalType: "uint8", type: "uint8" }], - stateMutability: "pure", + name: 'contentTypeDenominator', + outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }], + stateMutability: 'pure', }, { - type: "function", - inputs: [{ name: "id", internalType: "bytes4", type: "bytes4" }], - name: "deleteContentContract", + type: 'function', + inputs: [{ name: 'id', internalType: 'bytes4', type: 'bytes4' }], + name: 'deleteContentContract', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "grantRoles", + name: 'grantRoles', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "hasAllRoles", - outputs: [{ name: "", internalType: "bool", type: "bool" }], - stateMutability: "view", + name: 'hasAllRoles', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "hasAnyRole", - outputs: [{ name: "", internalType: "bool", type: "bool" }], - stateMutability: "view", + name: 'hasAnyRole', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [], - name: "owner", - outputs: [{ name: "result", internalType: "address", type: "address" }], - stateMutability: "view", + name: 'owner', + outputs: [{ name: 'result', internalType: 'address', type: 'address' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [ - { name: "pendingOwner", internalType: "address", type: "address" }, + { name: 'pendingOwner', internalType: 'address', type: 'address' }, ], - name: "ownershipHandoverExpiresAt", - outputs: [{ name: "result", internalType: "uint256", type: "uint256" }], - stateMutability: "view", + name: 'ownershipHandoverExpiresAt', + outputs: [{ name: 'result', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [], - name: "renounceOwnership", + name: 'renounceOwnership', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", - inputs: [{ name: "roles", internalType: "uint256", type: "uint256" }], - name: "renounceRoles", + type: 'function', + inputs: [{ name: 'roles', internalType: 'uint256', type: 'uint256' }], + name: 'renounceRoles', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [], - name: "requestOwnershipHandover", + name: 'requestOwnershipHandover', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", + type: 'function', inputs: [ - { name: "user", internalType: "address", type: "address" }, - { name: "roles", internalType: "uint256", type: "uint256" }, + { name: 'user', internalType: 'address', type: 'address' }, + { name: 'roles', internalType: 'uint256', type: 'uint256' }, ], - name: "revokeRoles", + name: 'revokeRoles', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "function", - inputs: [{ name: "user", internalType: "address", type: "address" }], - name: "rolesOf", - outputs: [{ name: "roles", internalType: "uint256", type: "uint256" }], - stateMutability: "view", + type: 'function', + inputs: [{ name: 'user', internalType: 'address', type: 'address' }], + name: 'rolesOf', + outputs: [{ name: 'roles', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', }, { - type: "function", + type: 'function', inputs: [ - { - name: "_contractAddress", - internalType: "address", - type: "address", - }, - { - name: "_storageCheckSelector", - internalType: "bytes4", - type: "bytes4", - }, + { name: '_contractAddress', internalType: 'address', type: 'address' }, + { name: '_storageCheckSelector', internalType: 'bytes4', type: 'bytes4' }, ], - name: "setContentContract", + name: 'setContentContract', outputs: [], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, { - type: "function", - inputs: [ - { name: "newOwner", internalType: "address", type: "address" }, - ], - name: "transferOwnership", + type: 'function', + inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }], + name: 'transferOwnership', outputs: [], - stateMutability: "payable", + stateMutability: 'payable', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "smartContract", - internalType: "address", - type: "address", + name: 'smartContract', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "value", - internalType: "uint256", - type: "uint256", + name: 'value', + internalType: 'uint256', + type: 'uint256', indexed: false, }, ], - name: "CallableStorageUpdated", + name: 'CallableStorageUpdated', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ + { name: 'id', internalType: 'bytes4', type: 'bytes4', indexed: true }, { - name: "id", - internalType: "bytes4", - type: "bytes4", - indexed: true, - }, - { - name: "contractAddress", - internalType: "address", - type: "address", + name: 'contractAddress', + internalType: 'address', + type: 'address', indexed: false, }, { - name: "fnSelector", - internalType: "bytes4", - type: "bytes4", + name: 'fnSelector', + internalType: 'bytes4', + type: 'bytes4', indexed: false, }, ], - name: "ContractRegistered", + name: 'ContractRegistered', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ - { - name: "id", - internalType: "bytes4", - type: "bytes4", - indexed: true, - }, + { name: 'id', internalType: 'bytes4', type: 'bytes4', indexed: true }, ], - name: "ContractUnRegistered", + name: 'ContractUnRegistered', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "pendingOwner", - internalType: "address", - type: "address", + name: 'pendingOwner', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: "OwnershipHandoverCanceled", + name: 'OwnershipHandoverCanceled', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "pendingOwner", - internalType: "address", - type: "address", + name: 'pendingOwner', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: "OwnershipHandoverRequested", + name: 'OwnershipHandoverRequested', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "oldOwner", - internalType: "address", - type: "address", + name: 'oldOwner', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "newOwner", - internalType: "address", - type: "address", + name: 'newOwner', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: "OwnershipTransferred", + name: 'OwnershipTransferred', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "smartContract", - internalType: "address", - type: "address", + name: 'smartContract', + internalType: 'address', + type: 'address', indexed: true, }, { - name: "slot", - internalType: "uint256", - type: "uint256", + name: 'slot', + internalType: 'uint256', + type: 'uint256', indexed: false, }, { - name: "value", - internalType: "uint256", - type: "uint256", + name: 'value', + internalType: 'uint256', + type: 'uint256', indexed: false, }, ], - name: "ProofStorageUpdated", + name: 'ProofStorageUpdated', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ + { name: 'user', internalType: 'address', type: 'address', indexed: true }, { - name: "user", - internalType: "address", - type: "address", - indexed: true, - }, - { - name: "roles", - internalType: "uint256", - type: "uint256", + name: 'roles', + internalType: 'uint256', + type: 'uint256', indexed: true, }, ], - name: "RolesUpdated", + name: 'RolesUpdated', }, - { type: "error", inputs: [], name: "AlreadyInitialized" }, - { type: "error", inputs: [], name: "CallFailed" }, - { type: "error", inputs: [], name: "CallVerificationFailed" }, + { type: 'error', inputs: [], name: 'AlreadyInitialized' }, + { type: 'error', inputs: [], name: 'CallFailed' }, + { type: 'error', inputs: [], name: 'CallVerificationFailed' }, { - type: "error", - inputs: [{ name: "index", internalType: "uint256", type: "uint256" }], - name: "InvalidProof", + type: 'error', + inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256' }], + name: 'InvalidProof', }, - { type: "error", inputs: [], name: "NewOwnerIsZeroAddress" }, - { type: "error", inputs: [], name: "NoHandoverRequest" }, - { type: "error", inputs: [], name: "Unauthorized" }, - { type: "error", inputs: [], name: "UnknownContract" }, - { type: "error", inputs: [], name: "UnknownInteraction" }, -] as const; + { type: 'error', inputs: [], name: 'NewOwnerIsZeroAddress' }, + { type: 'error', inputs: [], name: 'NoHandoverRequest' }, + { type: 'error', inputs: [], name: 'Unauthorized' }, + { type: 'error', inputs: [], name: 'UnknownContract' }, + { type: 'error', inputs: [], name: 'UnknownInteraction' }, +] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // PressInteractionFacet @@ -1252,80 +1163,75 @@ export const dappInteractionFacetAbi = [ export const pressInteractionFacetAbi = [ { - type: "constructor", + type: 'constructor', inputs: [ { - name: "_referralRegistry", - internalType: "contract ReferralRegistry", - type: "address", + name: '_referralRegistry', + internalType: 'contract ReferralRegistry', + type: 'address', }, ], - stateMutability: "nonpayable", + stateMutability: 'nonpayable', }, - { type: "fallback", stateMutability: "nonpayable" }, + { type: 'fallback', stateMutability: 'nonpayable' }, { - type: "function", + type: 'function', inputs: [], - name: "contentTypeDenominator", - outputs: [{ name: "", internalType: "uint8", type: "uint8" }], - stateMutability: "pure", + name: 'contentTypeDenominator', + outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }], + stateMutability: 'pure', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "articleId", - internalType: "bytes32", - type: "bytes32", + name: 'articleId', + internalType: 'bytes32', + type: 'bytes32', indexed: true, }, { - name: "user", - internalType: "address", - type: "address", + name: 'user', + internalType: 'address', + type: 'address', indexed: false, }, ], - name: "ArticleOpened", + name: 'ArticleOpened', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ { - name: "articleId", - internalType: "bytes32", - type: "bytes32", + name: 'articleId', + internalType: 'bytes32', + type: 'bytes32', indexed: true, }, { - name: "user", - internalType: "address", - type: "address", + name: 'user', + internalType: 'address', + type: 'address', indexed: false, }, ], - name: "ArticleRead", + name: 'ArticleRead', }, { - type: "event", + type: 'event', anonymous: false, inputs: [ + { name: 'user', internalType: 'address', type: 'address', indexed: true }, { - name: "user", - internalType: "address", - type: "address", - indexed: true, - }, - { - name: "referrer", - internalType: "address", - type: "address", + name: 'referrer', + internalType: 'address', + type: 'address', indexed: true, }, ], - name: "UserReferred", + name: 'UserReferred', }, - { type: "error", inputs: [], name: "UnknownInteraction" }, -] as const; + { type: 'error', inputs: [], name: 'UnknownInteraction' }, +] as const diff --git a/ponder.config.ts b/ponder.config.ts index b690403..fc0002e 100644 --- a/ponder.config.ts +++ b/ponder.config.ts @@ -120,7 +120,7 @@ export default createConfig({ Campaigns: { abi: mergeAbis([interactionCampaignAbi, referralCampaignAbi]), factory: { - address: "0x1f65A60340E4D017DdfeE45aA2905b6D79a55672", + address: "0x440B19d7694f4B8949b02e674870880c5e40250C", event: parseAbiItem("event CampaignCreated(address campaign)"), parameter: "campaign", },