Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ node_modules
.DS_Store

.env*
!packages/deploy/.env.example
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ The `FileStore` contract acts as a minimum viable registry, a global namespace o

<table>
<tbody>
<tr>
<th colspan="2">Abstract</th>
</tr>
<tr>
<td>Abstract Mainnet</td>
<td><a href="https://abscan.org/address/0xFe1411d6864592549AdE050215482e4385dFa0FB
">0xFe1411d6864592549AdE050215482e4385dFa0FB</a></td>
</tr>
<tr>
<td>Abstract Sepolia</td>
<td><a href="https://sepolia.abscan.org/address/0xFe1411d6864592549AdE050215482e4385dFa0FB">0xFe1411d6864592549AdE050215482e4385dFa0FB</a></td>
</tr>
<tr>
<th colspan="2">Ethereum</th>
</tr>
Expand Down
5 changes: 5 additions & 0 deletions packages/deploy/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
RPC_HTTP_URL=
DEPLOYER_PRIVATE_KEY=
VERIFIER=
VERIFIER_URL=
VERIFIER_API_KEY=
20 changes: 20 additions & 0 deletions packages/deploy/deploys.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@
}
}
},
"2741": {
"chainId": 2741,
"deployer": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
"contracts": {
"FileStore": {
"address": "0xFe1411d6864592549AdE050215482e4385dFa0FB",
"blockNumber": "10966338"
}
}
},
"8453": {
"chainId": 8453,
"deployer": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
Expand All @@ -79,6 +89,16 @@
}
}
},
"11124": {
"chainId": 11124,
"deployer": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
"contracts": {
"FileStore": {
"address": "0xFe1411d6864592549AdE050215482e4385dFa0FB",
"blockNumber": "10200227"
}
}
},
"17000": {
"chainId": 17000,
"deployer": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
Expand Down
6 changes: 4 additions & 2 deletions packages/deploy/src/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export type DeployResult = {
};

export type VerifierConfig =
| { type: "etherscan"; apiKey: string }
| { type: "etherscan"; apiKey: string; url?: string }
| { type: "blockscout"; url: string };

export async function deploy(
Expand Down Expand Up @@ -98,6 +98,9 @@ export async function deploy(
if (verifier.type === "etherscan") {
verifierFlags.push(["--verifier", verifier.type]);
verifierFlags.push(["--etherscan-api-key", verifier.apiKey]);
if (verifier.url) {
verifierFlags.push(["--verifier-url", verifier.url]);
}
} else if (verifier.type === "blockscout") {
verifierFlags.push(["--verifier", verifier.type]);
verifierFlags.push(["--verifier-url", verifier.url]);
Expand All @@ -109,7 +112,6 @@ export async function deploy(
["verify-contract", fileStore, "src/FileStore.sol:FileStore"],
["--chain-id", `${chainId}`],
["--compiler-version", fileStoreBuild.metadata.compiler.version],
["--evm-version", fileStoreBuild.metadata.settings.evmVersion],
[
"--num-of-optimizations",
`${fileStoreBuild.metadata.settings.optimizer.runs}`,
Expand Down
2 changes: 1 addition & 1 deletion packages/deploy/src/verifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { z } from "zod";
export const verifierEnvSchema = z.union([
z.object({
VERIFIER: z.literal("etherscan"),
VERIFIER_URL: z.undefined().optional(),
VERIFIER_URL: z.string().optional(),
VERIFIER_API_KEY: z.string(),
}),
z.object({
Expand Down
12 changes: 12 additions & 0 deletions packages/ponder/ponder.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ import { FileStoreAbi } from "./abis/FileStoreAbi";

export default createConfig({
networks: {
abstract: {
chainId: 2741,
transport: http(process.env.RPC_HTTP_URL_2741),
pollingInterval: 12_000,
},
abstractSepolia: {
chainId: 11124,
transport: http(process.env.RPC_HTTP_URL_11124),
pollingInterval: 12_000,
},
mainnet: {
chainId: 1,
transport: http(process.env.RPC_HTTP_URL_1),
Expand Down Expand Up @@ -66,6 +76,8 @@ export default createConfig({
address: "0xFe1411d6864592549AdE050215482e4385dFa0FB",
abi: FileStoreAbi,
network: {
abstract: { startBlock: 10966338 },
abstractSepolia: { startBlock: 10200227 },
mainnet: { startBlock: 18898263 },
sepolia: { startBlock: 4986686 },
holesky: { startBlock: 634049 },
Expand Down
15 changes: 15 additions & 0 deletions packages/web/src/supportedChains.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import {
abstract,
abstractTestnet,
base,
baseSepolia,
Chain,
Expand All @@ -23,6 +25,19 @@ type SupportedChain = {
};

export const supportedChains = [
/* Abstract */
{
chain: abstract,
slug: "abstract",
group: "Abstract",
rpcUrl: process.env.NEXT_PUBLIC_RPC_HTTP_URL_2741!,
},
{
chain: abstractTestnet,
slug: "abstract-sepolia",
group: "Abstract",
rpcUrl: process.env.NEXT_PUBLIC_RPC_HTTP_URL_11124!,
},
/* Ethereum */
{
chain: mainnet,
Expand Down