Skip to content

Commit

Permalink
deployed to optimism
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Sizon committed May 29, 2024
1 parent 36d0ca7 commit 8bb83b2
Show file tree
Hide file tree
Showing 5 changed files with 354 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/hardhat/deployments/optimism/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
196 changes: 196 additions & 0 deletions packages/hardhat/deployments/optimism/BitTipContract.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

118 changes: 118 additions & 0 deletions packages/nextjs/contracts/deployedContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,124 @@
import { GenericContractsDeclaration } from "~~/utils/scaffold-eth/contract";

const deployedContracts = {
10: {
BitTipContract: {
address: "0xf28D078D4a5BAf4b9416F06D51CCe238770aA69b",
abi: [
{
inputs: [
{
internalType: "uint8",
name: "_initialFeePercentage",
type: "uint8",
},
],
stateMutability: "nonpayable",
type: "constructor",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "sender",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "creator",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
indexed: false,
internalType: "string",
name: "comment",
type: "string",
},
],
name: "TipSent",
type: "event",
},
{
inputs: [],
name: "platformFeePercentage",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "platformOwner",
outputs: [
{
internalType: "address payable",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint8",
name: "_newFeePercentage",
type: "uint8",
},
],
name: "setPlatformFeePercentage",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address payable",
name: "_creatorWallet",
type: "address",
},
{
internalType: "string",
name: "comment",
type: "string",
},
],
name: "tipCreator",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [],
name: "withdrawAll",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
stateMutability: "payable",
type: "receive",
},
],
inheritedFunctions: {},
},
},
31337: {
BitTipContract: {
address: "0x1C674bf0d074Dc54bb13D1e6291C0cE88054C5b5",
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 @@ -11,7 +11,7 @@ export type ScaffoldConfig = {

const scaffoldConfig = {
// The networks on which your DApp is live
targetNetworks: [chains.hardhat],
targetNetworks: [chains.optimism],

// The interval at which your front-end polls the RPC servers for new data
// it has no effect if you only target the local network (default is 4000)
Expand Down

0 comments on commit 8bb83b2

Please sign in to comment.