Skip to content

feat: allnodes public rpc default for all #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 1, 2024
Merged
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
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# controller-api

This is currently deployed to api.nicenode.xyz. To test it, enter `https://api.nicenode.xyz/api/controllerLibrary`into a browser and see the results of a GET HTTP on /controllerLibrary.
This is currently deployed to api.nicenode.xyz. To test it, enter `https://api.nicenode.xyz/api/controllerLibrary`into a browser and see the results of a GET HTTP on `/controllerLibrary`.

This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

Expand All @@ -10,15 +10,15 @@ First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
Use `http://localhost:3000/api` as the local controller environment variable in NiceNode or for testing. Or open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

To properly update a controller:
1. Make the change
2. Always increment the version appropriately following semver standards.
3. Deploy to a staging api and test it
4. Then deploy to production

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

Expand All @@ -37,6 +37,8 @@ You can check out [the Next.js GitHub repository](https://github.com/vercel/next

We, NiceNode, deploy with `vercel deploy` and to production, `vercel --prod deploy`

For testing, you can take the url from `vercel deploy` and set a local environment variable in NiceNode.

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"specId": "arbitrum",
"version": "1.0.1",
"version": "1.0.2",
"displayName": "Arbitrum One",
"displayTagline": "Non-Validating Node",
"selectCardTagline": "Welcome to the future of Ethereum",
"execution": {
"executionTypes": ["nodePackage"],
"defaultExecutionType": "nodePackage",
Expand Down
7 changes: 4 additions & 3 deletions src/app/api/controller/NodeSpecs/base/base-v1.0.0.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"specId": "base",
"version": "1.0.1",
"version": "1.1.0",
"displayName": "Base",
"selectCardTagline": "A secure and low-cost Ethereum Layer 2 built on the OP stack",
"execution": {
"executionTypes": ["nodePackage"],
"services": [
Expand Down Expand Up @@ -32,13 +33,13 @@
"systemRequirements": {
"documentationUrl": "https://geth.ethereum.org/docs/interface/hardware",
"cpu": {
"cores": 4
"cores": 8
},
"memory": {
"minSizeGBs": 16
},
"storage": {
"minSizeGBs": 200,
"minSizeGBs": 2000,
"ssdRequired": true
},
"internet": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"specId": "ethereum",
"version": "1.0.1",
"version": "1.0.2",
"displayName": "Ethereum",
"displayTagline": "Non-Validating Node - Ethereum",
"selectCardTagline": "The world computer",
"execution": {
"executionTypes": ["nodePackage"],
"defaultExecutionType": "nodePackage",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"specId": "farcaster",
"version": "1.0.1",
"version": "1.1.0",
"displayName": "Farcaster",
"displayTagline": "Sync the entire Farcaster network",
"selectCardTagline": "A protocol for decentralized social apps",
"execution": {
"executionTypes": ["nodePackage"],
"defaultExecutionType": "nodePackage",
Expand Down Expand Up @@ -37,7 +38,7 @@
"minSizeGBs": 8
},
"storage": {
"minSizeGBs": 20,
"minSizeGBs": 200,
"ssdRequired": true
},
"docker": {
Expand Down
13 changes: 4 additions & 9 deletions src/app/api/controller/NodeSpecs/hildr/hildr-v1.0.0.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
{
"specId": "hildr",
"version": "1.0.1",
"version": "1.2.0",
"displayName": "Hildr",
"execution": {
"executionTypes": ["docker"],
"defaultExecutionType": "docker",
"input": {
"defaultConfig": {
"l1": "",
"l1WebSocketUrl": "",
"l1BeaconUrl": "",
"l2RpcUrl": "http://host.containers.internal:8547",
"l2EngineUrl": "http://host.containers.internal:8553",
"httpPort": "8549",
"logLevel": "Debug"
},
Expand Down Expand Up @@ -107,7 +102,7 @@
"type": "text"
},
"addNodeFlow": "required",
"defaultValue": ""
"defaultValue": "https://ethereum-rpc.publicnode.com"
},
"l1WebSocketUrl": {
"displayName": "Ethereum *Archival* WebSocket Endpoint",
Expand All @@ -116,7 +111,7 @@
"type": "text"
},
"addNodeFlow": "required",
"defaultValue": ""
"defaultValue": "wss://ethereum-rpc.publicnode.com"
},
"l1BeaconUrl": {
"displayName": "Ethereum Beacon RPC Endpoint",
Expand All @@ -125,7 +120,7 @@
"type": "text"
},
"addNodeFlow": "required",
"defaultValue": ""
"defaultValue": "https://ethereum-beacon-api.publicnode.com"
},
"l2RpcUrl": {
"displayName": "Optimism RPC Endpoint (local node or provider)",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"specId": "home-assistant",
"version": "1.0.1",
"version": "1.0.2",
"displayName": "Home Assistant",
"displayTagline": "Local Home Assistant server. [Note] NOT AFFLIATED with Home Assistant or NabuCasa!",
"displayTagline": "Local Home Assistant server",
"selectCardTagline": "Awaken your home",
"execution": {
"executionTypes": ["nodePackage"],
"defaultExecutionType": "nodePackage",
Expand Down
11 changes: 4 additions & 7 deletions src/app/api/controller/NodeSpecs/hubble/hubble-v1.0.0.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"specId": "hubble",
"version": "1.0.1",
"version": "1.1.0",
"displayName": "Hubble",
"displayTagline": "A fast, simple implementation of a Farcaster Hub in Typescript + Rust",
"execution": {
Expand Down Expand Up @@ -35,18 +35,15 @@
"minSizeGBs": 8
},
"storage": {
"minSizeGBs": 20,
"minSizeGBs": 250,
"ssdRequired": true
},
"docker": {
"required": true
}
},
"configTranslation": {
"ethMainnetRpcUrl": {
"displayName": "Ethereum Mainnet RPC Endpoint",
"cliConfigPrefix": "--eth-mainnet-rpc-url ",
"defaultValue": "",
"defaultValue": "https://ethereum-rpc.publicnode.com",
"uiControl": {
"type": "text"
},
Expand All @@ -56,7 +53,7 @@
"optimismMainnetRpcUrl": {
"displayName": "Optimism Mainnet RPC Endpoint",
"cliConfigPrefix": "--l2-rpc-url ",
"defaultValue": "",
"defaultValue": "https://optimism-rpc.publicnode.com",
"uiControl": {
"type": "text"
},
Expand Down
10 changes: 3 additions & 7 deletions src/app/api/controller/NodeSpecs/magi/magi-v1.0.0.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
{
"specId": "magi",
"version": "1.0.1",
"version": "1.1.0",
"displayName": "Magi",
"displayTagLine": "An OP Stack rollup client written in Rust",
"execution": {
"executionTypes": ["docker"],
"defaultExecutionType": "docker",
"input": {
"defaultConfig": {
"l1RpcUrl": "",
"l1BeaconUrl": "",
"l2RpcUrl": "http://host.containers.internal:8547",
"l2EngineUrl": "http://host.containers.internal:8553",
"l1TrustRpc": "Enabled",
"httpPort": "8549",
"p2pPorts": "9222"
Expand Down Expand Up @@ -138,7 +134,7 @@
"type": "text"
},
"addNodeFlow": "required",
"defaultValue": ""
"defaultValue": "https://ethereum-rpc.publicnode.com"
},
"l1BeaconUrl": {
"displayName": "Ethereum Beacon RPC Endpoint",
Expand All @@ -147,7 +143,7 @@
"type": "text"
},
"addNodeFlow": "required",
"defaultValue": "",
"defaultValue": "https://ethereum-beacon-api.publicnode.com",
"infoDescription": "Provider with historical blob API enabled or a local node http://host.containers.internal:5052"
},
"l2RpcUrl": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"specId": "minecraft",
"version": "1.0.1",
"version": "1.0.2",
"displayName": "Minecraft Server",
"displayTagline": "Local Minecraft server at 'localhost'. [Note] NOT AFFLIATED with Mojang or Microsoft!",
"displayTagline": "Local Minecraft server at 'localhost'",
"selectCardTagline": "The world is yours for the making",
"execution": {
"executionTypes": ["nodePackage"],
"defaultExecutionType": "nodePackage",
Expand Down
8 changes: 3 additions & 5 deletions src/app/api/controller/NodeSpecs/nitro/nitro-v1.0.0.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"specId": "nitro",
"version": "1.1.0",
"version": "1.2.0",
"displayName": "Arbitrum Nitro",
"execution": {
"executionTypes": ["docker"],
Expand All @@ -9,8 +9,6 @@
"defaultImageTag": "v3.1.0-7d1d84c",
"input": {
"defaultConfig": {
"parentChainRpcUrl": "",
"parentChainBeaconRpcUrl": "",
"initUrl": "https://snapshot.arbitrum.foundation/arb1/nitro-pruned.tar",
"l2ChainId": "42161",
"httpAddress": "0.0.0.0",
Expand Down Expand Up @@ -53,7 +51,7 @@
"parentChainRpcUrl": {
"displayName": "Ethereum Mainnet RPC Endpoint",
"cliConfigPrefix": "--parent-chain.connection.url=",
"defaultValue": "",
"defaultValue": "https://ethereum-rpc.publicnode.com",
"uiControl": {
"type": "text"
},
Expand All @@ -63,7 +61,7 @@
"parentChainBeaconRpcUrl": {
"displayName": "Ethereum Mainnet Beacon RPC Endpoint",
"cliConfigPrefix": "--parent-chain.blob-client.beacon-url=",
"defaultValue": "",
"defaultValue": "https://ethereum-beacon-api.publicnode.com",
"uiControl": {
"type": "text"
},
Expand Down
13 changes: 5 additions & 8 deletions src/app/api/controller/NodeSpecs/op-node/op-node-v1.0.0.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
{
"specId": "op-node",
"version": "1.0.3",
"version": "1.1.1",
"displayName": "OP Node",
"execution": {
"executionTypes": ["docker"],
"defaultExecutionType": "docker",
"input": {
"defaultConfig": {
"l1": "",
"l1Beacon": "",
"l2": "http://host.containers.internal:8553",
"l1TrustRpc": "Enabled",
"httpPort": "8549",
"p2pPorts": "9222"
Expand All @@ -21,7 +18,7 @@
}
},
"imageName": "us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node",
"defaultImageTag": "v1.7.7"
"defaultImageTag": "v1.8.0"
},
"category": "L2/ConsensusClient",
"rpcTranslation": "eth-l2-consensus",
Expand All @@ -34,7 +31,7 @@
"minSizeGBs": 8
},
"storage": {
"minSizeGBs": 30,
"minSizeGBs": 1000,
"ssdRequired": true
},
"internet": {
Expand Down Expand Up @@ -96,7 +93,7 @@
"type": "text"
},
"addNodeFlow": "required",
"defaultValue": "",
"defaultValue": "https://ethereum-rpc.publicnode.com",
"infoDescription": "Provider or a local node http://host.containers.internal:8545"
},
"l1Beacon": {
Expand All @@ -106,7 +103,7 @@
"type": "text"
},
"addNodeFlow": "required",
"defaultValue": "",
"defaultValue": "https://ethereum-beacon-api.publicnode.com",
"infoDescription": "Provider with historical blob API enabled or a local node http://host.containers.internal:5052"
},
"l2": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"specId": "optimism",
"version": "1.0.1",
"version": "1.0.2",
"displayName": "Optimism",
"displayTagline": "Ethereum L2 - Optimism",
"selectCardTagline": "Ethereum, scaled. Built by the OP Collective",
"execution": {
"executionTypes": ["nodePackage"],
"services": [
Expand Down Expand Up @@ -39,7 +40,7 @@
"minSizeGBs": 16
},
"storage": {
"minSizeGBs": 200,
"minSizeGBs": 1500,
"ssdRequired": true
},
"internet": {
Expand Down