Skip to content

Commit

Permalink
update peter
Browse files Browse the repository at this point in the history
  • Loading branch information
burningtree committed Oct 24, 2023
1 parent f771924 commit c908593
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 2 deletions.
3 changes: 3 additions & 0 deletions data/people/peter-szilagyi/eips.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"eips": [
1459,
2124,
225,
2364,
2364,
2464,
2464,
706
]
Expand Down
2 changes: 2 additions & 0 deletions data/people/peter-szilagyi/index.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Péter Szilágyi
links:
github: https://github.com/karalabe
emails:
- [email protected]
- [email protected]
14 changes: 13 additions & 1 deletion static/eips.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"time": "2023-10-24T09:33:42.489Z",
"time": "2023-10-24T09:48:39.838Z",
"eips": [
{
"eip": 1,
Expand Down Expand Up @@ -263,6 +263,18 @@
"status": "Withdrawn",
"created": "2018-07-21T00:00:00.000Z"
},
{
"eip": 1459,
"title": "Node Discovery via DNS",
"description": "Scheme for authenticated updateable Ethereum node lists via DNS.",
"author": "Felix Lange (@fjl), Péter Szilágyi (@karalabe)",
"discussions-to": "https://github.com/ethereum/devp2p/issues/50",
"status": "Stagnant",
"type": "Standards Track",
"category": "Networking",
"created": "2018-09-26T00:00:00.000Z",
"requires": 778
},
{
"eip": 1559,
"title": "Fee market change for ETH 1.0 chain",
Expand Down
9 changes: 9 additions & 0 deletions utils/engine.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as yaml from "https://deno.land/[email protected]/yaml/mod.ts";
import * as path from "https://deno.land/[email protected]/path/mod.ts";
import { emptyDir } from "https://deno.land/[email protected]/fs/empty_dir.ts";
import { ensureDir } from "https://deno.land/[email protected]/fs/ensure_dir.ts";
import { exists } from "https://deno.land/[email protected]/fs/exists.ts";
import Ajv from "https://esm.sh/[email protected]?pin=v58";
import addFormats from "https://esm.sh/[email protected]";
Expand Down Expand Up @@ -82,6 +83,14 @@ export default class Engine {
};
}

async itemCreate(colId, slug, index) {
const dir = this.path(this.config.dataDir, colId, slug);
if (await exists(dir)) {
throw Error(`Dir exists!: ${dir}`)
}
await ensureDir()
}

path(...paths) {
return path.join(this.params.cwd, ...paths);
}
Expand Down
4 changes: 3 additions & 1 deletion utils/extend.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Engine from "./engine.js";
import cheerio from "npm:[email protected]";
import { ensureDir, exists } from "https://deno.land/[email protected]/fs/mod.ts";
import * as yaml from "https://deno.land/[email protected]/yaml/mod.ts";
import { slugify } from "https://deno.land/x/slugify/mod.ts";

const e = new Engine();
await e.init();
Expand Down Expand Up @@ -59,7 +60,8 @@ const tools = {
await Deno.writeTextFile(cacheFn, output);
return output;
},
yaml
yaml,
slugify,
}

for (const extId in e.config.extenders) {
Expand Down
2 changes: 2 additions & 0 deletions utils/extenders/eips.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ export async function process(db, _) {

//console.log(`-----\n${p.info.name} (${JSON.stringify(p)})\n`)
//prompt("Do you want to create new one?")

await db.itemCreate('people', _.slugify(p.info.name).toLowerCase(), { name: p.info.name })
}

const output = {
Expand Down

0 comments on commit c908593

Please sign in to comment.