Skip to content

Commit d80f80b

Browse files
committed
EIP 1559 -> open rpc cc0
1 parent c2ae255 commit d80f80b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+5623
-1243
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/
2+
build/*
3+
!build/openrpc.json
4+
**\.DS_Store

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Ethereum JSON-RPC Specification
22

3-
[View the spec](https://playground.open-rpc.org/?uiSchema%5BappBar%5D%5Bui:splitView%5D=false&schemaUrl=https://raw.githubusercontent.com/lightclient/eth1.0-apis/main/openrpc.json&uiSchema%5BappBar%5D%5Bui:input%5D=false)
3+
[View the spec](https://playground.open-rpc.org/?uiSchema[appBar][ui:splitView]=false&schemaUrl=https://github.com/alita-moore/eth1.0-apis/blob/main/build/openrpc.json&uiSchema[appBar][ui:input]=false)
44

55
The Ethereum JSON-RPC is a collection of methods that all clients implement.
66
This interface allows downstream tooling and infrastructure to treat different

build.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const RefParser = require("@apidevtools/json-schema-ref-parser");
2+
const fs = require("fs");
3+
4+
const _parse = async (_schema) => {
5+
try {
6+
let schema = await RefParser.dereference(_schema);
7+
if (!fs.existsSync("./build")) {
8+
fs.mkdirSync("./build");
9+
}
10+
fs.writeFileSync("./build/openrpc.json", JSON.stringify(schema));
11+
} catch (err) {
12+
console.error(err);
13+
}
14+
};
15+
16+
_parse(require("./openrpc.json"));

0 commit comments

Comments
 (0)