Skip to content

Commit

Permalink
Merge pull request #406 from 0xOlias/config-refactor
Browse files Browse the repository at this point in the history
Refactor config
  • Loading branch information
kyscott18 authored Nov 7, 2023
2 parents 20467f4 + bee9a37 commit 584b541
Show file tree
Hide file tree
Showing 89 changed files with 9,082 additions and 8,829 deletions.
947 changes: 947 additions & 0 deletions examples/art-gobblers/abis/ArtGobblers.abi.ts

Large diffs are not rendered by default.

989 changes: 0 additions & 989 deletions examples/art-gobblers/abis/ArtGobblers.json

This file was deleted.

10 changes: 5 additions & 5 deletions examples/art-gobblers/ponder.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { Config } from "@ponder/core";
import { createConfig } from "@ponder/core";
import { http } from "viem";

import ArtGobblersAbi from "./abis/ArtGobblers.json";
import { ArtGobblersAbi } from "./abis/ArtGobblers.abi";

export const config: Config = {
export const config = createConfig({
networks: [
{
name: "mainnet",
Expand All @@ -14,10 +14,10 @@ export const config: Config = {
contracts: [
{
name: "ArtGobblers",
network: "mainnet",
network: [{ name: "mainnet" }],
abi: ArtGobblersAbi,
address: "0x60bb1e2aa1c9acafb4d34f71585d7e959f387769",
startBlock: 15863321,
},
],
};
});
306 changes: 306 additions & 0 deletions examples/ethfs/abis/FileStore.abi.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,306 @@
export const FileStoreAbi = [
{
inputs: [
{
internalType: "contract IContentStore",
name: "_contentStore",
type: "address",
},
],
stateMutability: "nonpayable",
type: "constructor",
},
{ inputs: [], name: "EmptyFile", type: "error" },
{
inputs: [{ internalType: "string", name: "filename", type: "string" }],
name: "FileNotFound",
type: "error",
},
{
inputs: [{ internalType: "string", name: "filename", type: "string" }],
name: "FilenameExists",
type: "error",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "string",
name: "indexedFilename",
type: "string",
},
{
indexed: true,
internalType: "bytes32",
name: "checksum",
type: "bytes32",
},
{
indexed: false,
internalType: "string",
name: "filename",
type: "string",
},
{
indexed: false,
internalType: "uint256",
name: "size",
type: "uint256",
},
{
indexed: false,
internalType: "bytes",
name: "metadata",
type: "bytes",
},
],
name: "FileCreated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "string",
name: "indexedFilename",
type: "string",
},
{
indexed: true,
internalType: "bytes32",
name: "checksum",
type: "bytes32",
},
{
indexed: false,
internalType: "string",
name: "filename",
type: "string",
},
],
name: "FileDeleted",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "previousOwner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "newOwner",
type: "address",
},
],
name: "OwnershipTransferStarted",
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",
},
{
inputs: [],
name: "acceptOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "contentStore",
outputs: [
{
internalType: "contract IContentStore",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "string", name: "filename", type: "string" },
{ internalType: "bytes32[]", name: "checksums", type: "bytes32[]" },
],
name: "createFile",
outputs: [
{
components: [
{ internalType: "uint256", name: "size", type: "uint256" },
{
components: [
{
internalType: "bytes32",
name: "checksum",
type: "bytes32",
},
{
internalType: "address",
name: "pointer",
type: "address",
},
],
internalType: "struct Content[]",
name: "contents",
type: "tuple[]",
},
],
internalType: "struct File",
name: "file",
type: "tuple",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{ internalType: "string", name: "filename", type: "string" },
{ internalType: "bytes32[]", name: "checksums", type: "bytes32[]" },
{ internalType: "bytes", name: "extraData", type: "bytes" },
],
name: "createFile",
outputs: [
{
components: [
{ internalType: "uint256", name: "size", type: "uint256" },
{
components: [
{
internalType: "bytes32",
name: "checksum",
type: "bytes32",
},
{
internalType: "address",
name: "pointer",
type: "address",
},
],
internalType: "struct Content[]",
name: "contents",
type: "tuple[]",
},
],
internalType: "struct File",
name: "file",
type: "tuple",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [{ internalType: "string", name: "filename", type: "string" }],
name: "deleteFile",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [{ internalType: "string", name: "filename", type: "string" }],
name: "fileExists",
outputs: [{ internalType: "bool", name: "", type: "bool" }],
stateMutability: "view",
type: "function",
},
{
inputs: [{ internalType: "string", name: "", type: "string" }],
name: "files",
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
stateMutability: "view",
type: "function",
},
{
inputs: [{ internalType: "string", name: "filename", type: "string" }],
name: "getChecksum",
outputs: [{ internalType: "bytes32", name: "checksum", type: "bytes32" }],
stateMutability: "view",
type: "function",
},
{
inputs: [{ internalType: "string", name: "filename", type: "string" }],
name: "getFile",
outputs: [
{
components: [
{ internalType: "uint256", name: "size", type: "uint256" },
{
components: [
{
internalType: "bytes32",
name: "checksum",
type: "bytes32",
},
{
internalType: "address",
name: "pointer",
type: "address",
},
],
internalType: "struct Content[]",
name: "contents",
type: "tuple[]",
},
],
internalType: "struct File",
name: "file",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "owner",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "pendingOwner",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "renounceOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
name: "transferOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
] as const;
Loading

1 comment on commit 584b541

@vercel
Copy link

@vercel vercel bot commented on 584b541 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.