diff --git a/packages/nextjs/generated/hardhat_contracts.ts b/packages/nextjs/generated/hardhat_contracts.ts index 58c8a20..c89a3cc 100644 --- a/packages/nextjs/generated/hardhat_contracts.ts +++ b/packages/nextjs/generated/hardhat_contracts.ts @@ -1,4 +1,309 @@ export default { + 1: [ + { + name: "mainnet", + chainId: "1", + contracts: { + CohortStreams: { + address: "0xa6EfA453c25658F725590A5821Cf408818f25FEf", + abi: [ + { + inputs: [], + stateMutability: "nonpayable", + type: "constructor", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "to", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "AddBuilder", + 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: "to", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "UpdateBuilder", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "to", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + indexed: false, + internalType: "string", + name: "reason", + type: "string", + }, + ], + name: "Withdraw", + type: "event", + }, + { + stateMutability: "payable", + type: "fallback", + }, + { + inputs: [ + { + internalType: "address[]", + name: "_builders", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "_caps", + type: "uint256[]", + }, + ], + name: "addBatch", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address payable", + name: "_builder", + type: "address", + }, + { + internalType: "uint256", + name: "_cap", + type: "uint256", + }, + ], + name: "addBuilderStream", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address[]", + name: "_builders", + type: "address[]", + }, + ], + name: "allBuildersData", + outputs: [ + { + components: [ + { + internalType: "address", + name: "builderAddress", + type: "address", + }, + { + internalType: "uint256", + name: "cap", + type: "uint256", + }, + { + internalType: "uint256", + name: "unlockedAmount", + type: "uint256", + }, + ], + internalType: "struct CohortStreams.BuilderData[]", + name: "", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "frequency", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "owner", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "renounceOwnership", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_amount", + type: "uint256", + }, + { + internalType: "string", + name: "_reason", + type: "string", + }, + ], + name: "streamWithdraw", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + name: "streamedBuilders", + outputs: [ + { + internalType: "uint256", + name: "cap", + type: "uint256", + }, + { + internalType: "uint256", + name: "last", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "transferOwnership", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_builder", + type: "address", + }, + ], + name: "unlockedBuilderAmount", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address payable", + name: "_builder", + type: "address", + }, + { + internalType: "uint256", + name: "_cap", + type: "uint256", + }, + ], + name: "updateBuilderStreamCap", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + stateMutability: "payable", + type: "receive", + }, + ], + }, + }, + }, + ], 10: [ { name: "optimism", diff --git a/packages/nextjs/scaffold.config.ts b/packages/nextjs/scaffold.config.ts index b8dc3f3..b58322c 100644 --- a/packages/nextjs/scaffold.config.ts +++ b/packages/nextjs/scaffold.config.ts @@ -10,7 +10,7 @@ type ScaffoldConfig = { const scaffoldConfig = { // The network where your DApp lives in - targetNetwork: chains.optimism, //chains.optimism, + targetNetwork: chains.mainnet, //chains.optimism, // The interval at which your front-end polls the RPC servers for new data // it has no effect on the local network