Compare commits

...

5 Commits

5 changed files with 27 additions and 10 deletions

View File

@ -1,3 +1,5 @@
# [0.1.0-develop.7](https://git.lumeweb.com/LumeWeb/kernel/compare/v0.1.0-develop.6...v0.1.0-develop.7) (2023-09-02)
# [0.1.0-develop.6](https://git.lumeweb.com/LumeWeb/kernel/compare/v0.1.0-develop.5...v0.1.0-develop.6) (2023-09-02)
# [0.1.0-develop.5](https://git.lumeweb.com/LumeWeb/kernel/compare/v0.1.0-develop.4...v0.1.0-develop.5) (2023-09-01)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/kernel",
"version": "0.1.0-develop.6",
"version": "0.1.0-develop.7",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/kernel",
"version": "0.1.0-develop.6",
"version": "0.1.0-develop.7",
"dependencies": {
"@lumeweb/libkernel": "0.1.0-develop.38"
},

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/kernel",
"version": "0.1.0-develop.6",
"version": "0.1.0-develop.7",
"type": "module",
"repository": {
"type": "git",

View File

@ -3,14 +3,14 @@ import { SignedRegistryEntry } from "@lumeweb/libs5";
import { base58btc } from "multiformats/bases/base58";
const CORE_MODULES = {
swarm: "",
peerDiscoveryRegistry: "",
ircPeerDiscovery: "",
s5: "",
swarm: "z3o47ar8NBrnaEneBVzZD7QuMRMXjDtQDCpt4xP6mhsdw1cjnJ8mQKfNKGv3",
peerDiscoveryRegistry:
"z3o47aaLSspwrXzmu5mjuHPwaq3gRbyYQ3jL9RM1ammuHGB7uxSFBK2dRjqR",
ircPeerDiscovery:
"z3o47admQjBj2QUrwHhvTB3nV1cBwQ5ZaKF7P5WELXeRyzzvBZr33QMJWTLs",
s5: "z3o47hB2zLuvBMFaWa55SmbFQe3u97dWUG4fssXXTEcT4ZvnPkPaRF14b1EF",
};
export default CORE_MODULES;
export async function networkReady() {
for (const module of [
CORE_MODULES.peerDiscoveryRegistry,

View File

@ -1,4 +1,19 @@
const DEFAULT_MODULE_REGISTRY = new Map<string, string>(Object.entries({}));
const DEFAULT_MODULE_REGISTRY = new Map<string, string>(
Object.entries({
// swarm
z3o47ar8NBrnaEneBVzZD7QuMRMXjDtQDCpt4xP6mhsdw1cjnJ8mQKfNKGv3:
"zduKEY6Z4xJ4mraWy3hCbx1TmBxueCtHCFdnjjoiX7fGJdrZAcJHTyJmbu",
// peerDiscoveryRegistry
z3o47aaLSspwrXzmu5mjuHPwaq3gRbyYQ3jL9RM1ammuHGB7uxSFBK2dRjqR:
"z3o47aaLSspwrXzmu5mjuHPwaq3gRbyYQ3jL9RM1ammuHGB7uxSFBK2dRjqR",
// ircPeerDiscovery
z3o47admQjBj2QUrwHhvTB3nV1cBwQ5ZaKF7P5WELXeRyzzvBZr33QMJWTLs:
"zduLx8mxrSWBPpTby1n9GtvxmCu6DwK9bsu26AgxesJmeEcWrVAF4NX7QK",
// s5
z3o47hB2zLuvBMFaWa55SmbFQe3u97dWUG4fssXXTEcT4ZvnPkPaRF14b1EF:
"zduPehBQc2edPXDBsxo9CM6pTnS6bpDx1MBS92GH5wLAqMnErsVKhnobD1",
}),
);
const REGISTRY_ITEM_ID = "registry";
Object.freeze(DEFAULT_MODULE_REGISTRY);