From c89a4ca322a0bd19485fc642190476efdb64e22a Mon Sep 17 00:00:00 2001 From: Paul Burke Date: Thu, 4 Jan 2024 18:34:09 -0500 Subject: [PATCH] chore: removes local deployed contracts definitions Not sure why this is checked in, to begin with. Will investigate ignoring. --- .../nextjs/contracts/deployedContracts.ts | 926 +----------------- 1 file changed, 1 insertion(+), 925 deletions(-) diff --git a/packages/nextjs/contracts/deployedContracts.ts b/packages/nextjs/contracts/deployedContracts.ts index 1677969..008d4eb 100644 --- a/packages/nextjs/contracts/deployedContracts.ts +++ b/packages/nextjs/contracts/deployedContracts.ts @@ -4,930 +4,6 @@ */ import { GenericContractsDeclaration } from "~~/utils/scaffold-eth/contract"; -const deployedContracts = { - 31337: { - MockModuleRegistry: { - address: "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512", - abi: [ - { - inputs: [ - { - internalType: "address", - name: "moduleAddress", - type: "address", - }, - ], - name: "emitModuleMetadataRefresh", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "moduleAddress", - type: "address", - }, - ], - name: "getModuleTypes", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "currencyAddress", - type: "address", - }, - ], - name: "isErc20CurrencyRegistered", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "moduleAddress", - type: "address", - }, - ], - name: "isModuleRegistered", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "moduleAddress", - type: "address", - }, - { - internalType: "uint256", - name: "moduleType", - type: "uint256", - }, - ], - name: "isModuleRegisteredAs", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "currencyAddress", - type: "address", - }, - ], - name: "registerErc20Currency", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "moduleAddress", - type: "address", - }, - { - internalType: "uint256", - name: "moduleType", - type: "uint256", - }, - ], - name: "registerModule", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "currencyAddress", - type: "address", - }, - ], - name: "verifyErc20Currency", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "moduleAddress", - type: "address", - }, - { - internalType: "uint256", - name: "moduleType", - type: "uint256", - }, - ], - name: "verifyModule", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - ], - inheritedFunctions: { - emitModuleMetadataRefresh: "contracts/interfaces/IModuleRegistry.sol", - getModuleTypes: "contracts/interfaces/IModuleRegistry.sol", - isErc20CurrencyRegistered: "contracts/interfaces/IModuleRegistry.sol", - isModuleRegistered: "contracts/interfaces/IModuleRegistry.sol", - isModuleRegisteredAs: "contracts/interfaces/IModuleRegistry.sol", - registerErc20Currency: "contracts/interfaces/IModuleRegistry.sol", - registerModule: "contracts/interfaces/IModuleRegistry.sol", - verifyErc20Currency: "contracts/interfaces/IModuleRegistry.sol", - verifyModule: "contracts/interfaces/IModuleRegistry.sol", - }, - }, - TestToken: { - address: "0x5FbDB2315678afecb367f032d93F642f64180aa3", - abi: [ - { - inputs: [], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "spender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Approval", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Transfer", - type: "event", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "address", - name: "spender", - type: "address", - }, - ], - name: "allowance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "decimals", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "subtractedValue", - type: "uint256", - }, - ], - name: "decreaseAllowance", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "addedValue", - type: "uint256", - }, - ], - name: "increaseAllowance", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "mint", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "name", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "symbol", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "totalSupply", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "from", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - ], - inheritedFunctions: { - allowance: "@openzeppelin/contracts/token/ERC20/ERC20.sol", - approve: "@openzeppelin/contracts/token/ERC20/ERC20.sol", - balanceOf: "@openzeppelin/contracts/token/ERC20/ERC20.sol", - decimals: "@openzeppelin/contracts/token/ERC20/ERC20.sol", - decreaseAllowance: "@openzeppelin/contracts/token/ERC20/ERC20.sol", - increaseAllowance: "@openzeppelin/contracts/token/ERC20/ERC20.sol", - name: "@openzeppelin/contracts/token/ERC20/ERC20.sol", - symbol: "@openzeppelin/contracts/token/ERC20/ERC20.sol", - totalSupply: "@openzeppelin/contracts/token/ERC20/ERC20.sol", - transfer: "@openzeppelin/contracts/token/ERC20/ERC20.sol", - transferFrom: "@openzeppelin/contracts/token/ERC20/ERC20.sol", - }, - }, - TipActionModule: { - address: "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9", - abi: [ - { - inputs: [ - { - internalType: "address", - name: "hub", - type: "address", - }, - { - internalType: "address", - name: "moduleRegistry", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "CurrencyNotWhitelisted", - type: "error", - }, - { - inputs: [], - name: "ModuleAlreadyRegistered", - type: "error", - }, - { - inputs: [], - name: "NotHub", - type: "error", - }, - { - inputs: [], - name: "TipAmountCannotBeZero", - type: "error", - }, - { - inputs: [], - name: "TipAmountNotApproved", - type: "error", - }, - { - inputs: [], - name: "TipReceiverNotProvided", - type: "error", - }, - { - anonymous: false, - inputs: [], - name: "ModuleRegistered", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "previousOwner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "OwnershipTransferred", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "transactionExecutor", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "tipReceiver", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "currency", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "tipAmount", - type: "uint256", - }, - ], - name: "TipCreated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "profileId", - type: "uint256", - }, - { - indexed: true, - internalType: "uint256", - name: "pubId", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "tipReceiver", - type: "address", - }, - ], - name: "TipReceiverRegistered", - type: "event", - }, - { - inputs: [], - name: "HUB", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "MODULE_REGISTRY", - outputs: [ - { - internalType: "contract IModuleRegistry", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getModuleMetadataURI", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "profileId", - type: "uint256", - }, - { - internalType: "uint256", - name: "pubId", - type: "uint256", - }, - ], - name: "getTipReceiver", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "profileId", - type: "uint256", - }, - { - internalType: "uint256", - name: "pubId", - type: "uint256", - }, - { - internalType: "address", - name: "", - type: "address", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - name: "initializePublicationAction", - outputs: [ - { - internalType: "bytes", - name: "", - type: "bytes", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "isRegistered", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "metadataURI", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "owner", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "uint256", - name: "publicationActedProfileId", - type: "uint256", - }, - { - internalType: "uint256", - name: "publicationActedId", - type: "uint256", - }, - { - internalType: "uint256", - name: "actorProfileId", - type: "uint256", - }, - { - internalType: "address", - name: "actorProfileOwner", - type: "address", - }, - { - internalType: "address", - name: "transactionExecutor", - type: "address", - }, - { - internalType: "uint256[]", - name: "referrerProfileIds", - type: "uint256[]", - }, - { - internalType: "uint256[]", - name: "referrerPubIds", - type: "uint256[]", - }, - { - internalType: "enum Types.PublicationType[]", - name: "referrerPubTypes", - type: "uint8[]", - }, - { - internalType: "bytes", - name: "actionModuleData", - type: "bytes", - }, - ], - internalType: "struct Types.ProcessActionParams", - name: "params", - type: "tuple", - }, - ], - name: "processPublicationAction", - outputs: [ - { - internalType: "bytes", - name: "", - type: "bytes", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "registerModule", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "renounceOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "_metadataURI", - type: "string", - }, - ], - name: "setModuleMetadataURI", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceID", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "transferOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - ], - inheritedFunctions: { - initializePublicationAction: "contracts/interfaces/IPublicationActionModule.sol", - processPublicationAction: "contracts/interfaces/IPublicationActionModule.sol", - owner: "contracts/base/LensModuleRegistrant.sol", - renounceOwnership: "contracts/base/LensModuleRegistrant.sol", - transferOwnership: "contracts/base/LensModuleRegistrant.sol", - HUB: "contracts/base/HubRestricted.sol", - getModuleMetadataURI: "contracts/base/LensModuleMetadata.sol", - metadataURI: "contracts/base/LensModuleMetadata.sol", - setModuleMetadataURI: "contracts/base/LensModuleMetadata.sol", - supportsInterface: "contracts/base/LensModuleMetadata.sol", - MODULE_REGISTRY: "contracts/base/LensModuleRegistrant.sol", - isRegistered: "contracts/base/LensModuleRegistrant.sol", - registerModule: "contracts/base/LensModuleRegistrant.sol", - }, - }, - }, -} as const; +const deployedContracts = {} as const; export default deployedContracts satisfies GenericContractsDeclaration;