Skip to content

Commit 7e0980c

Browse files
authored
feat: allnodes public rpc default for all (#1)
* feat: allnodes public rpc default for all * update README for changing and deploying
1 parent 5aa1336 commit 7e0980c

File tree

13 files changed

+49
-57
lines changed

13 files changed

+49
-57
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# controller-api
22

3-
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.
3+
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`.
44

55
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).
66

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

1111
```bash
1212
npm run dev
13-
# or
14-
yarn dev
15-
# or
16-
pnpm dev
17-
# or
18-
bun dev
1913
```
2014

21-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
15+
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.
16+
17+
To properly update a controller:
18+
1. Make the change
19+
2. Always increment the version appropriately following semver standards.
20+
3. Deploy to a staging api and test it
21+
4. Then deploy to production
2222

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

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

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

40+
For testing, you can take the url from `vercel deploy` and set a local environment variable in NiceNode.
41+
4042
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.
4143

4244
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

src/app/api/controller/NodeSpecs/arbitrum/arbitrum-v1.0.0.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"specId": "arbitrum",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"displayName": "Arbitrum One",
55
"displayTagline": "Non-Validating Node",
6+
"selectCardTagline": "Welcome to the future of Ethereum",
67
"execution": {
78
"executionTypes": ["nodePackage"],
89
"defaultExecutionType": "nodePackage",

src/app/api/controller/NodeSpecs/base/base-v1.0.0.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"specId": "base",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"displayName": "Base",
5+
"selectCardTagline": "A secure and low-cost Ethereum Layer 2 built on the OP stack",
56
"execution": {
67
"executionTypes": ["nodePackage"],
78
"services": [
@@ -32,13 +33,13 @@
3233
"systemRequirements": {
3334
"documentationUrl": "https://geth.ethereum.org/docs/interface/hardware",
3435
"cpu": {
35-
"cores": 4
36+
"cores": 8
3637
},
3738
"memory": {
3839
"minSizeGBs": 16
3940
},
4041
"storage": {
41-
"minSizeGBs": 200,
42+
"minSizeGBs": 2000,
4243
"ssdRequired": true
4344
},
4445
"internet": {

src/app/api/controller/NodeSpecs/ethereum/ethereum-v1.0.0.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"specId": "ethereum",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"displayName": "Ethereum",
55
"displayTagline": "Non-Validating Node - Ethereum",
6+
"selectCardTagline": "The world computer",
67
"execution": {
78
"executionTypes": ["nodePackage"],
89
"defaultExecutionType": "nodePackage",

src/app/api/controller/NodeSpecs/farcaster/farcaster-v1.0.0.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"specId": "farcaster",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"displayName": "Farcaster",
55
"displayTagline": "Sync the entire Farcaster network",
6+
"selectCardTagline": "A protocol for decentralized social apps",
67
"execution": {
78
"executionTypes": ["nodePackage"],
89
"defaultExecutionType": "nodePackage",
@@ -37,7 +38,7 @@
3738
"minSizeGBs": 8
3839
},
3940
"storage": {
40-
"minSizeGBs": 20,
41+
"minSizeGBs": 200,
4142
"ssdRequired": true
4243
},
4344
"docker": {

src/app/api/controller/NodeSpecs/hildr/hildr-v1.0.0.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
{
22
"specId": "hildr",
3-
"version": "1.0.1",
3+
"version": "1.2.0",
44
"displayName": "Hildr",
55
"execution": {
66
"executionTypes": ["docker"],
77
"defaultExecutionType": "docker",
88
"input": {
99
"defaultConfig": {
10-
"l1": "",
11-
"l1WebSocketUrl": "",
12-
"l1BeaconUrl": "",
13-
"l2RpcUrl": "http://host.containers.internal:8547",
14-
"l2EngineUrl": "http://host.containers.internal:8553",
1510
"httpPort": "8549",
1611
"logLevel": "Debug"
1712
},
@@ -107,7 +102,7 @@
107102
"type": "text"
108103
},
109104
"addNodeFlow": "required",
110-
"defaultValue": ""
105+
"defaultValue": "https://ethereum-rpc.publicnode.com"
111106
},
112107
"l1WebSocketUrl": {
113108
"displayName": "Ethereum *Archival* WebSocket Endpoint",
@@ -116,7 +111,7 @@
116111
"type": "text"
117112
},
118113
"addNodeFlow": "required",
119-
"defaultValue": ""
114+
"defaultValue": "wss://ethereum-rpc.publicnode.com"
120115
},
121116
"l1BeaconUrl": {
122117
"displayName": "Ethereum Beacon RPC Endpoint",
@@ -125,7 +120,7 @@
125120
"type": "text"
126121
},
127122
"addNodeFlow": "required",
128-
"defaultValue": ""
123+
"defaultValue": "https://ethereum-beacon-api.publicnode.com"
129124
},
130125
"l2RpcUrl": {
131126
"displayName": "Optimism RPC Endpoint (local node or provider)",

src/app/api/controller/NodeSpecs/home-assistant/home-assistant-v1.0.0.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"specId": "home-assistant",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"displayName": "Home Assistant",
5-
"displayTagline": "Local Home Assistant server. [Note] NOT AFFLIATED with Home Assistant or NabuCasa!",
5+
"displayTagline": "Local Home Assistant server",
6+
"selectCardTagline": "Awaken your home",
67
"execution": {
78
"executionTypes": ["nodePackage"],
89
"defaultExecutionType": "nodePackage",

src/app/api/controller/NodeSpecs/hubble/hubble-v1.0.0.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"specId": "hubble",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"displayName": "Hubble",
55
"displayTagline": "A fast, simple implementation of a Farcaster Hub in Typescript + Rust",
66
"execution": {
@@ -35,18 +35,15 @@
3535
"minSizeGBs": 8
3636
},
3737
"storage": {
38-
"minSizeGBs": 20,
38+
"minSizeGBs": 250,
3939
"ssdRequired": true
40-
},
41-
"docker": {
42-
"required": true
4340
}
4441
},
4542
"configTranslation": {
4643
"ethMainnetRpcUrl": {
4744
"displayName": "Ethereum Mainnet RPC Endpoint",
4845
"cliConfigPrefix": "--eth-mainnet-rpc-url ",
49-
"defaultValue": "",
46+
"defaultValue": "https://ethereum-rpc.publicnode.com",
5047
"uiControl": {
5148
"type": "text"
5249
},
@@ -56,7 +53,7 @@
5653
"optimismMainnetRpcUrl": {
5754
"displayName": "Optimism Mainnet RPC Endpoint",
5855
"cliConfigPrefix": "--l2-rpc-url ",
59-
"defaultValue": "",
56+
"defaultValue": "https://optimism-rpc.publicnode.com",
6057
"uiControl": {
6158
"type": "text"
6259
},

src/app/api/controller/NodeSpecs/magi/magi-v1.0.0.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
{
22
"specId": "magi",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"displayName": "Magi",
55
"displayTagLine": "An OP Stack rollup client written in Rust",
66
"execution": {
77
"executionTypes": ["docker"],
88
"defaultExecutionType": "docker",
99
"input": {
1010
"defaultConfig": {
11-
"l1RpcUrl": "",
12-
"l1BeaconUrl": "",
13-
"l2RpcUrl": "http://host.containers.internal:8547",
14-
"l2EngineUrl": "http://host.containers.internal:8553",
1511
"l1TrustRpc": "Enabled",
1612
"httpPort": "8549",
1713
"p2pPorts": "9222"
@@ -138,7 +134,7 @@
138134
"type": "text"
139135
},
140136
"addNodeFlow": "required",
141-
"defaultValue": ""
137+
"defaultValue": "https://ethereum-rpc.publicnode.com"
142138
},
143139
"l1BeaconUrl": {
144140
"displayName": "Ethereum Beacon RPC Endpoint",
@@ -147,7 +143,7 @@
147143
"type": "text"
148144
},
149145
"addNodeFlow": "required",
150-
"defaultValue": "",
146+
"defaultValue": "https://ethereum-beacon-api.publicnode.com",
151147
"infoDescription": "Provider with historical blob API enabled or a local node http://host.containers.internal:5052"
152148
},
153149
"l2RpcUrl": {

src/app/api/controller/NodeSpecs/minecraft/minecraft-v1.0.0.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"specId": "minecraft",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"displayName": "Minecraft Server",
5-
"displayTagline": "Local Minecraft server at 'localhost'. [Note] NOT AFFLIATED with Mojang or Microsoft!",
5+
"displayTagline": "Local Minecraft server at 'localhost'",
6+
"selectCardTagline": "The world is yours for the making",
67
"execution": {
78
"executionTypes": ["nodePackage"],
89
"defaultExecutionType": "nodePackage",

0 commit comments

Comments
 (0)