Skip to content

Commit

Permalink
optimism >> mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakGriffith committed Jun 13, 2024
1 parent d30d1e9 commit d90fd99
Show file tree
Hide file tree
Showing 2 changed files with 306 additions and 1 deletion.
305 changes: 305 additions & 0 deletions packages/nextjs/generated/hardhat_contracts.ts
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/scaffold.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d90fd99

Please sign in to comment.