Skip to content

Commit

Permalink
update all
Browse files Browse the repository at this point in the history
  • Loading branch information
koybasimuhittin committed Nov 19, 2023
1 parent acef132 commit ed58daa
Show file tree
Hide file tree
Showing 4 changed files with 150 additions and 278 deletions.
147 changes: 2 additions & 145 deletions packages/nextjs/contracts/deployedContracts.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const deployedContracts = {
31337: {
HarbergerNft: {
address: "0x84eA74d481Ee0A5332c457a4d796187F6Ba67fEB",
address: "0x5FbDB2315678afecb367f032d93F642f64180aa3",
abi: [
{
inputs: [
Expand Down Expand Up @@ -1206,7 +1206,7 @@ export const deployedContracts = {
},
},
PublicResolver: {
address: "0x9E545E3C0baAB3E08CdfD552C960A1050f373042",
address: "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
abi: [
{
inputs: [
Expand Down Expand Up @@ -1542,149 +1542,6 @@ export const deployedContracts = {
setText: "contracts/interfaces/IPublicResolver.sol",
},
},
YourContract: {
address: "0x0165878A594ca255338adfa4d48449f69242Eb8F",
abi: [
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
stateMutability: "nonpayable",
type: "constructor",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "greetingSetter",
type: "address",
},
{
indexed: false,
internalType: "string",
name: "newGreeting",
type: "string",
},
{
indexed: false,
internalType: "bool",
name: "premium",
type: "bool",
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256",
},
],
name: "GreetingChange",
type: "event",
},
{
inputs: [],
name: "greeting",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "owner",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "premium",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "string",
name: "_newGreeting",
type: "string",
},
],
name: "setGreeting",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [],
name: "totalCounter",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
name: "userGreetingCounter",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "withdraw",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
stateMutability: "payable",
type: "receive",
},
],
inheritedFunctions: {},
},
},
11155111: {
HarbergerNft: {
Expand Down
9 changes: 9 additions & 0 deletions packages/nextjs/hooks/useIsMounted.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as React from "react"

export const useIsMounted = () => {
const [mounted, setMounted] = React.useState(false)

React.useEffect(() => setMounted(true), [])

return mounted
}
1 change: 0 additions & 1 deletion packages/nextjs/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export function generateFullMeName(input: String) {

export function base37ToId(input: String) {
let ans = 0
console.log(input)
for (let i = input.length - 1; i >= 0; i--) {
ans += (BASE37.indexOf(input[i]) + 1) * Math.pow(37, i)
}
Expand Down
Loading

0 comments on commit ed58daa

Please sign in to comment.