UNPKG

blind-peer-encodings

Version:
109 lines (108 loc) 2.28 kB
{ "version": 0, "offset": 0, "schema": [ { "name": "auth", "namespace": "blind-peer", "id": 0, "type": 1, "indexes": [], "schema": "@blind-peer/auth", "derived": false, "key": [], "trigger": null }, { "name": "digest", "namespace": "blind-peer", "id": 1, "type": 1, "indexes": [], "schema": "@blind-peer/digest", "derived": false, "key": [], "trigger": null }, { "name": "cores", "namespace": "blind-peer", "id": 2, "type": 1, "indexes": [ "@blind-peer/cores-by-referrer", "@blind-peer/cores-by-announce", "@blind-peer/cores-by-activity", "@blind-peer/cores-by-bytes-allocated" ], "schema": "@blind-peer/core", "derived": false, "key": ["key"], "trigger": null }, { "name": "cores-by-referrer", "namespace": "blind-peer", "id": 3, "type": 2, "collection": "@blind-peer/cores", "unique": true, "key": { "type": { "fields": [ { "name": "referrer", "type": "fixed32" }, { "name": "updated", "type": "uint" }, { "name": "core", "type": "fixed32" } ] }, "map": "mapByReferrer" } }, { "name": "cores-by-announce", "namespace": "blind-peer", "id": 4, "type": 2, "collection": "@blind-peer/cores", "unique": true, "key": { "type": { "fields": [ { "name": "core", "type": "fixed32" } ] }, "map": "mapByAnnounce" } }, { "name": "cores-by-activity", "namespace": "blind-peer", "id": 5, "type": 2, "collection": "@blind-peer/cores", "unique": false, "key": ["priority", "active"] }, { "name": "cores-by-bytes-allocated", "namespace": "blind-peer", "id": 6, "type": 2, "collection": "@blind-peer/cores", "unique": false, "key": ["bytesAllocated"] } ] }