mirror of
https://github.com/web3privacy/explorer-data.git
synced 2024-10-15 12:06:26 +02:00
gen test
This commit is contained in:
parent
70d482cf5f
commit
412a35eee5
18 changed files with 1942 additions and 0 deletions
12
Makefile
Normal file
12
Makefile
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
.PHONY: all build
|
||||||
|
|
||||||
|
all: test build
|
||||||
|
|
||||||
|
build:
|
||||||
|
deno run -A utils/build.js
|
||||||
|
|
||||||
|
test:
|
||||||
|
deno test -A utils/test.js
|
||||||
|
|
||||||
|
gen:
|
||||||
|
deno run -A utils/gen.js $(cat)
|
1628
dist/bundle.json
vendored
Normal file
1628
dist/bundle.json
vendored
Normal file
File diff suppressed because it is too large
Load diff
9
src/projects/computing-network/alaya/index.yaml
Normal file
9
src/projects/computing-network/alaya/index.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
name: Alaya
|
||||||
|
description: >-
|
||||||
|
Alaya is a business sandbox and testing field for the next-generation of
|
||||||
|
financial infrastructure of PlatON.
|
||||||
|
ecosystem: Ethereum
|
||||||
|
links:
|
||||||
|
github: https://github.com/AlayaNetwork
|
||||||
|
team:
|
||||||
|
anonymous: true
|
8
src/projects/computing-network/aleph-zero/index.yaml
Normal file
8
src/projects/computing-network/aleph-zero/index.yaml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
name: Aleph Zero
|
||||||
|
description: Privacy-enhancing public blockchain with instant finality.
|
||||||
|
ecosystem: Aleph
|
||||||
|
links:
|
||||||
|
github: https://github.com/aleph-zero-foundation
|
||||||
|
linkedin: https://alephzero.org/the-team
|
||||||
|
team:
|
||||||
|
anonymous: false
|
10
src/projects/computing-network/arpa/index.yaml
Normal file
10
src/projects/computing-network/arpa/index.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
name: ARPA
|
||||||
|
description: >-
|
||||||
|
Threshold BLS network can serve as the infrastructure of verifiable random
|
||||||
|
number generator (RNG), secure wallet, cross-chain bridge, decentralized
|
||||||
|
custody etc.
|
||||||
|
ecosystem: multichain
|
||||||
|
links:
|
||||||
|
github: https://github.com/ARPA-Network
|
||||||
|
team:
|
||||||
|
anonymous: true
|
8
src/projects/computing-network/findora/index.yaml
Normal file
8
src/projects/computing-network/findora/index.yaml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
name: Findora
|
||||||
|
description: a decentralized, privacy-preserving smart contract platform.
|
||||||
|
ecosystem: multichain
|
||||||
|
links:
|
||||||
|
github: https://github.com/findoranetwork
|
||||||
|
linkedin: https://findora.org/team/
|
||||||
|
team:
|
||||||
|
anonymous: false
|
8
src/projects/computing-network/nillion/index.yaml
Normal file
8
src/projects/computing-network/nillion/index.yaml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
name: Nillion
|
||||||
|
description: The Secure Processing Layer of Web3.
|
||||||
|
ecosystem: multichain
|
||||||
|
links:
|
||||||
|
linkedin: >-
|
||||||
|
https://www.linkedin.com/search/results/people/?currentCompany=%5B%2280922042%22%5D&origin=COMPANY_PAGE_CANNED_SEARCH&sid=*cU
|
||||||
|
team:
|
||||||
|
anonymous: false
|
8
src/projects/computing-network/phala-network/index.yaml
Normal file
8
src/projects/computing-network/phala-network/index.yaml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
name: Phala Network
|
||||||
|
description: Privacy-Enhanced Permissionless Computing Protocol.
|
||||||
|
ecosystem: Khala on Kusama
|
||||||
|
links:
|
||||||
|
github: https://github.com/Phala-Network
|
||||||
|
linkedin: https://www.phala.network/en/aboutUs/
|
||||||
|
team:
|
||||||
|
anonymous: false
|
7
src/projects/computing-network/phoenix/index.yaml
Normal file
7
src/projects/computing-network/phoenix/index.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
name: Phoenix
|
||||||
|
description: blockchain infrastructure empowering intelligence web3 applications.
|
||||||
|
ecosystem: multichain
|
||||||
|
links:
|
||||||
|
github: https://github.com/phoenixglobal
|
||||||
|
team:
|
||||||
|
anonymous: true
|
12
src/projects/computing-network/platon-network/index.yaml
Normal file
12
src/projects/computing-network/platon-network/index.yaml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
name: PlatOn Network
|
||||||
|
description: >-
|
||||||
|
Combining blockchain and privacy-preserving computation technologies, PlatON
|
||||||
|
is building a decentralized and collaborative AI network and global brain to
|
||||||
|
drive the democratization of AI for safe artificial general intelligence.
|
||||||
|
ecosystem: Alaya
|
||||||
|
links:
|
||||||
|
github: https://github.com/PlatONnetwork
|
||||||
|
linkedin: >-
|
||||||
|
https://www.linkedin.com/search/results/people/?currentCompany=%5B%2214399632%22%5D&origin=COMPANY_PAGE_CANNED_SEARCH&sid=PCz
|
||||||
|
team:
|
||||||
|
anonymous: false
|
11
src/projects/computing-network/privasea/index.yaml
Normal file
11
src/projects/computing-network/privasea/index.yaml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
name: Privasea
|
||||||
|
description: >-
|
||||||
|
Using secure Multi-Party sharing we protect data ownership and privacy, and
|
||||||
|
facilitate secure sharing between different parties so data still can be
|
||||||
|
processed.
|
||||||
|
ecosystem: multipurpose
|
||||||
|
links:
|
||||||
|
github: '-'
|
||||||
|
linkedin: https://www.privasea.tech/about
|
||||||
|
team:
|
||||||
|
anonymous: false
|
94
src/projects/computing-network/src.json
Normal file
94
src/projects/computing-network/src.json
Normal file
|
@ -0,0 +1,94 @@
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"Image": "https://github.com/Msiusko/web3privacy/blob/main/static-assets/Computing%20network.png?raw=true",
|
||||||
|
"Projects": [
|
||||||
|
{
|
||||||
|
"Project": "Phala Network",
|
||||||
|
"Description": "Privacy-Enhanced Permissionless Computing Protocol.",
|
||||||
|
"GitHub": "https://github.com/Phala-Network",
|
||||||
|
"ProductReadiness": "testnet, 2020",
|
||||||
|
"Ecosystem": "Khala on Kusama",
|
||||||
|
"Team": "Public",
|
||||||
|
"TeamLink": "https://www.phala.network/en/aboutUs/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Project": "Aleph Zero",
|
||||||
|
"Description": "Privacy-enhancing public blockchain with instant finality.",
|
||||||
|
"GitHub": "https://github.com/aleph-zero-foundation",
|
||||||
|
"ProductReadiness": "mainnet",
|
||||||
|
"Ecosystem": "Aleph",
|
||||||
|
"Team": "Public",
|
||||||
|
"TeamLink": "https://alephzero.org/the-team"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Project": "Findora",
|
||||||
|
"Description": "a decentralized, privacy-preserving smart contract platform.",
|
||||||
|
"GitHub": "https://github.com/findoranetwork",
|
||||||
|
"ProductReadiness": "mainnet",
|
||||||
|
"Ecosystem": "multichain",
|
||||||
|
"Team": "Public",
|
||||||
|
"TeamLink": "https://findora.org/team/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Project": "ARPA",
|
||||||
|
"Description": "Threshold BLS network can serve as the infrastructure of verifiable random number generator (RNG), secure wallet, cross-chain bridge, decentralized custody etc.",
|
||||||
|
"GitHub": "https://github.com/ARPA-Network",
|
||||||
|
"ProductReadiness": "mainnet, Q2 2023",
|
||||||
|
"Ecosystem": "multichain",
|
||||||
|
"Team": "anon"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Project": "Phoenix",
|
||||||
|
"Description": "blockchain infrastructure empowering intelligence web3 applications.",
|
||||||
|
"GitHub": "https://github.com/phoenixglobal",
|
||||||
|
"ProductReadiness": "testnet",
|
||||||
|
"Ecosystem": "multichain",
|
||||||
|
"Team": "anon"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Project": "Privasea",
|
||||||
|
"Description": "Using secure Multi-Party sharing we protect data ownership and privacy, and facilitate secure sharing between different parties so data still can be processed.",
|
||||||
|
"GitHub": "-",
|
||||||
|
"ProductReadiness": "-",
|
||||||
|
"Ecosystem": "multipurpose",
|
||||||
|
"Team": "Public",
|
||||||
|
"TeamLink": "https://www.privasea.tech/about"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Project": "Alaya",
|
||||||
|
"Description": "Alaya is a business sandbox and testing field for the next-generation of financial infrastructure of PlatON.",
|
||||||
|
"GitHub": "https://github.com/AlayaNetwork",
|
||||||
|
"ProductReadiness": "live, 2022",
|
||||||
|
"Ecosystem": "Ethereum",
|
||||||
|
"Team": "anon"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Project": "Nillion",
|
||||||
|
"Description": "The Secure Processing Layer of Web3.",
|
||||||
|
"Docs": "https://docsend.com/view/7bkgvzagr6ifhwrc",
|
||||||
|
"ProductReadiness": "live",
|
||||||
|
"Ecosystem": "multichain",
|
||||||
|
"Team": "Public",
|
||||||
|
"TeamLink": "https://www.linkedin.com/search/results/people/?currentCompany=%5B%2280922042%22%5D&origin=COMPANY_PAGE_CANNED_SEARCH&sid=*cU"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Project": "ZkCloud",
|
||||||
|
"Description": "Decentralized, Private Computing.",
|
||||||
|
"GitHub": "-",
|
||||||
|
"ProductReadiness": "testnet",
|
||||||
|
"Ecosystem": "Aleo",
|
||||||
|
"Team": "Public",
|
||||||
|
"TeamLink": "https://www.linkedin.com/search/results/people/?currentCompany=%5B%2242785598%22%5D&origin=COMPANY_PAGE_CANNED_SEARCH&sid=6tr"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Project": "PlatOn Network",
|
||||||
|
"Description": "Combining blockchain and privacy-preserving computation technologies, PlatON is building a decentralized and collaborative AI network and global brain to drive the democratization of AI for safe artificial general intelligence.",
|
||||||
|
"GitHub": "https://github.com/PlatONnetwork",
|
||||||
|
"ProductReadiness": "live",
|
||||||
|
"Ecosystem": "Alaya",
|
||||||
|
"Team": "Public",
|
||||||
|
"TeamLink": "https://www.linkedin.com/search/results/people/?currentCompany=%5B%2214399632%22%5D&origin=COMPANY_PAGE_CANNED_SEARCH&sid=PCz"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
9
src/projects/computing-network/zkcloud/index.yaml
Normal file
9
src/projects/computing-network/zkcloud/index.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
name: ZkCloud
|
||||||
|
description: Decentralized, Private Computing.
|
||||||
|
ecosystem: Aleo
|
||||||
|
links:
|
||||||
|
github: '-'
|
||||||
|
linkedin: >-
|
||||||
|
https://www.linkedin.com/search/results/people/?currentCompany=%5B%2242785598%22%5D&origin=COMPANY_PAGE_CANNED_SEARCH&sid=6tr
|
||||||
|
team:
|
||||||
|
anonymous: false
|
14
utils/build.js
Normal file
14
utils/build.js
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
import { W3PData } from "./w3pdata.js";
|
||||||
|
|
||||||
|
const w3pd = new W3PData()
|
||||||
|
await w3pd.init()
|
||||||
|
|
||||||
|
const outputDir = "./dist"
|
||||||
|
|
||||||
|
try {
|
||||||
|
await Deno.mkdir(outputDir)
|
||||||
|
} catch {}
|
||||||
|
|
||||||
|
const bundleFn = `${outputDir}/bundle.json`
|
||||||
|
await Deno.writeTextFile(bundleFn, JSON.stringify(w3pd.data, null, 2))
|
||||||
|
console.log(`Bundle writed: ${bundleFn}`)
|
56
utils/gen.js
Normal file
56
utils/gen.js
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
import yaml from 'npm:js-yaml'
|
||||||
|
|
||||||
|
function slugify(input) {
|
||||||
|
if (!input)
|
||||||
|
return '';
|
||||||
|
|
||||||
|
// make lower case and trim
|
||||||
|
var slug = input.toLowerCase().trim();
|
||||||
|
|
||||||
|
// remove accents from charaters
|
||||||
|
slug = slug.normalize('NFD').replace(/[\u0300-\u036f]/g, '')
|
||||||
|
|
||||||
|
// replace invalid chars with spaces
|
||||||
|
slug = slug.replace(/[^a-z0-9\s-]/g, ' ').trim();
|
||||||
|
|
||||||
|
// replace multiple spaces or hyphens with a single hyphen
|
||||||
|
slug = slug.replace(/[\s-]+/g, '-');
|
||||||
|
|
||||||
|
return slug;
|
||||||
|
}
|
||||||
|
|
||||||
|
const projectDir = "src/projects"
|
||||||
|
|
||||||
|
async function genCat (cat) {
|
||||||
|
const catDir = `${projectDir}/${cat}`
|
||||||
|
const f = await Deno.readTextFile(`${catDir}/src.json`)
|
||||||
|
const src = JSON.parse(f)
|
||||||
|
|
||||||
|
for (const p of src.data.Projects) {
|
||||||
|
const id = slugify(p.Project)
|
||||||
|
const pDir = `${catDir}/${id}`
|
||||||
|
console.log(`${id}:\n -> ${pDir}`)
|
||||||
|
|
||||||
|
try {
|
||||||
|
await Deno.mkdir(pDir)
|
||||||
|
} catch {}
|
||||||
|
|
||||||
|
const out = {
|
||||||
|
name: p.Project,
|
||||||
|
description: p.Description,
|
||||||
|
ecosystem: p.Ecosystem,
|
||||||
|
links: {
|
||||||
|
github: p.GitHub,
|
||||||
|
linkedin: p.TeamLink,
|
||||||
|
},
|
||||||
|
team: {
|
||||||
|
anonymous: p.Team !== "Public"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const yml = yaml.dump(out)
|
||||||
|
await Deno.writeTextFile(`${pDir}/index.yaml`, yml)
|
||||||
|
//console.log(id, yml)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
genCat(Deno.args[0])
|
6
utils/test.js
Normal file
6
utils/test.js
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
import { W3PData } from "./w3pdata.js";
|
||||||
|
|
||||||
|
const w3pd = new W3PData()
|
||||||
|
await w3pd.init()
|
||||||
|
|
||||||
|
console.log(w3pd.data)
|
42
utils/w3pdata.js
Normal file
42
utils/w3pdata.js
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
import yaml from 'npm:js-yaml'
|
||||||
|
|
||||||
|
export class W3PData {
|
||||||
|
|
||||||
|
constructor () {
|
||||||
|
}
|
||||||
|
|
||||||
|
async init () {
|
||||||
|
this.data = await this.load("./src")
|
||||||
|
}
|
||||||
|
|
||||||
|
async load (dataDir) {
|
||||||
|
const out = {}
|
||||||
|
for await (const f of Deno.readDir(dataDir)) {
|
||||||
|
if (f.isFile && f.name.match(/\.yaml$/)) {
|
||||||
|
const name = f.name.split('.')[0]
|
||||||
|
out[name] = await this.loadYaml(`${dataDir}/${f.name}`)
|
||||||
|
}
|
||||||
|
if (f.isDirectory && f.name === 'projects') {
|
||||||
|
out.projects = []
|
||||||
|
const projectsDir = `${dataDir}/${f.name}`
|
||||||
|
for await (const pcd of Deno.readDir(projectsDir)) {
|
||||||
|
const catName = pcd.name
|
||||||
|
const catDir = `${projectsDir}/${pcd.name}`
|
||||||
|
for await (const pd of Deno.readDir(catDir)) {
|
||||||
|
if (!pd.isDirectory) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
const pDir = `${catDir}/${pd.name}`
|
||||||
|
const index = yaml.load(await Deno.readTextFile(`${pDir}/index.yaml`))
|
||||||
|
out.projects.push(Object.assign({ id: pd.name }, index))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return out
|
||||||
|
}
|
||||||
|
|
||||||
|
async loadYaml (f) {
|
||||||
|
return yaml.load(await Deno.readTextFile(f))
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue