@xyo-network/chain-api 1.16.21 → 1.16.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node/index.mjs +32 -595
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/server/server.d.ts +1 -1
- package/dist/node/server/server.d.ts.map +1 -1
- package/package.json +12 -22
- package/src/helpers/initInfuraProvider.ts +3 -3
- package/src/server/server.ts +30 -51
- package/dist/node/manifest/getLocator.d.ts +0 -16
- package/dist/node/manifest/getLocator.d.ts.map +0 -1
- package/dist/node/manifest/getNode.d.ts +0 -15
- package/dist/node/manifest/getNode.d.ts.map +0 -1
- package/dist/node/manifest/index.d.ts +0 -6
- package/dist/node/manifest/index.d.ts.map +0 -1
- package/dist/node/manifest/nodeManifest.d.ts +0 -6
- package/dist/node/manifest/nodeManifest.d.ts.map +0 -1
- package/dist/node/manifest/private/index.d.ts +0 -5
- package/dist/node/manifest/private/index.d.ts.map +0 -1
- package/dist/node/manifest/public/WithMempool/index.d.ts +0 -6
- package/dist/node/manifest/public/WithMempool/index.d.ts.map +0 -1
- package/dist/node/manifest/public/WithoutMempool/index.d.ts +0 -6
- package/dist/node/manifest/public/WithoutMempool/index.d.ts.map +0 -1
- package/dist/node/manifest/public/index.d.ts +0 -3
- package/dist/node/manifest/public/index.d.ts.map +0 -1
- package/src/manifest/getLocator.ts +0 -137
- package/src/manifest/getNode.ts +0 -34
- package/src/manifest/index.ts +0 -5
- package/src/manifest/node.json +0 -17
- package/src/manifest/nodeManifest.ts +0 -8
- package/src/manifest/private/index.ts +0 -4
- package/src/manifest/public/WithMempool/Chain.json +0 -175
- package/src/manifest/public/WithMempool/Pending.json +0 -35
- package/src/manifest/public/WithMempool/index.ts +0 -20
- package/src/manifest/public/WithoutMempool/Chain.json +0 -97
- package/src/manifest/public/WithoutMempool/Pending.json +0 -35
- package/src/manifest/public/WithoutMempool/index.ts +0 -20
- package/src/manifest/public/index.ts +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/manifest/public/WithoutMempool/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAA0B,MAAM,6BAA6B,CAAA;AAazF;;GAEG;AACH,eAAO,MAAM,kCAAkC,EAAE,cAAc,EAG9D,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/manifest/public/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,2BAA2B,CAAA"}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { BaseMongoSdk, type BaseMongoSdkPrivateConfig } from '@xylabs/mongo'
|
|
2
|
-
import type { Hash, Logger } from '@xylabs/sdk-js'
|
|
3
|
-
import {
|
|
4
|
-
asAddress, assertEx, isDefined,
|
|
5
|
-
ZERO_ADDRESS,
|
|
6
|
-
} from '@xylabs/sdk-js'
|
|
7
|
-
import { MemoryArchivist } from '@xyo-network/archivist-memory'
|
|
8
|
-
import { MongoDBArchivistV2 } from '@xyo-network/archivist-mongodb'
|
|
9
|
-
import { ViewArchivist } from '@xyo-network/archivist-view'
|
|
10
|
-
import {
|
|
11
|
-
AddressBalanceDivinerV2, AddressTransferDiviner, ArchivistSyncDiviner, HeadValidationDiviner,
|
|
12
|
-
} from '@xyo-network/chain-modules'
|
|
13
|
-
import { MongoMap } from '@xyo-network/chain-protocol'
|
|
14
|
-
import { initTelemetry } from '@xyo-network/chain-telemetry'
|
|
15
|
-
import { AbstractModule, LoggerModuleStatusReporter } from '@xyo-network/module-abstract'
|
|
16
|
-
import { ModuleFactoryLocator } from '@xyo-network/module-factory-locator'
|
|
17
|
-
import type { MongoDBModuleParamsV2 } from '@xyo-network/module-model-mongodb'
|
|
18
|
-
import type { WithStorageMeta } from '@xyo-network/payload-model'
|
|
19
|
-
import { MemorySentinel } from '@xyo-network/sentinel-memory'
|
|
20
|
-
import { StepSizes } from '@xyo-network/xl1-protocol'
|
|
21
|
-
import type {
|
|
22
|
-
BalancesStepSummary, Config, MapType, TransfersStepSummary,
|
|
23
|
-
} from '@xyo-network/xl1-protocol-sdk'
|
|
24
|
-
import { hasMongoConfig, MemoryMap } from '@xyo-network/xl1-protocol-sdk'
|
|
25
|
-
import { Semaphore } from 'async-mutex'
|
|
26
|
-
|
|
27
|
-
export interface GetLocatorContext {
|
|
28
|
-
config: Config
|
|
29
|
-
logger?: Logger
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export async function getTransferSummaryMap(config: Config): Promise<MapType<string, WithStorageMeta<TransfersStepSummary>>> {
|
|
33
|
-
const mongoConfig = config.storage?.mongo
|
|
34
|
-
if (hasMongoConfig(mongoConfig)) {
|
|
35
|
-
// Create the MongoDB SDK from the configuration
|
|
36
|
-
const {
|
|
37
|
-
connectionString: dbConnectionString, database: dbName, domain: dbDomain, password: dbPassword, username: dbUserName,
|
|
38
|
-
} = mongoConfig
|
|
39
|
-
const payloadSdkConfig: BaseMongoSdkPrivateConfig = {
|
|
40
|
-
dbConnectionString, dbDomain, dbName, dbPassword, dbUserName,
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const sdkTransferSummaryMap = new BaseMongoSdk<WithStorageMeta<TransfersStepSummary>>({ ...payloadSdkConfig, collection: 'transfer_summary_map' })
|
|
44
|
-
const result = await MongoMap.create<MongoMap<Hash, WithStorageMeta<TransfersStepSummary>>>({
|
|
45
|
-
sdk: sdkTransferSummaryMap,
|
|
46
|
-
getCache: { enabled: true, maxEntries: 5000 },
|
|
47
|
-
})
|
|
48
|
-
assertEx(await result.start(), () => 'Failed to start transfer summary map')
|
|
49
|
-
return result
|
|
50
|
-
} else {
|
|
51
|
-
console.warn('[API] Mongo configuration not found. Using MemoryMap for TransferSummaryMap.')
|
|
52
|
-
return new MemoryMap<string, WithStorageMeta<TransfersStepSummary>>()
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Used for retrieving a locator with the necessary modules registered for testing
|
|
58
|
-
* operation of the node (entirely in memory)
|
|
59
|
-
* @returns A locator with the necessary modules registered
|
|
60
|
-
*/
|
|
61
|
-
export const getLocator = async (context: GetLocatorContext) => {
|
|
62
|
-
const { config, logger } = context
|
|
63
|
-
const { otlpEndpoint } = config.telemetry?.otel ?? {}
|
|
64
|
-
const { traceProvider, meterProvider } = await initTelemetry({
|
|
65
|
-
attributes: {
|
|
66
|
-
serviceName: 'xl1-api',
|
|
67
|
-
serviceVersion: '1.0.0',
|
|
68
|
-
},
|
|
69
|
-
otlpEndpoint,
|
|
70
|
-
metricsConfig: {
|
|
71
|
-
endpoint: '/metrics',
|
|
72
|
-
port: 9465,
|
|
73
|
-
},
|
|
74
|
-
})
|
|
75
|
-
|
|
76
|
-
if (isDefined(logger)) AbstractModule.defaultLogger = logger
|
|
77
|
-
const statusReporter = logger ? new LoggerModuleStatusReporter(logger) : undefined
|
|
78
|
-
|
|
79
|
-
const locator = new ModuleFactoryLocator()
|
|
80
|
-
let balanceSummaryMap: MapType<string, WithStorageMeta<BalancesStepSummary>> | undefined
|
|
81
|
-
let transferSummaryMap = await getTransferSummaryMap(config)
|
|
82
|
-
// If there's a MongoDB configuration
|
|
83
|
-
const mongoConfig = config.storage?.mongo
|
|
84
|
-
if (hasMongoConfig(mongoConfig)) {
|
|
85
|
-
// Create the MongoDB SDK from the configuration
|
|
86
|
-
const {
|
|
87
|
-
connectionString: dbConnectionString, database: dbName, domain: dbDomain, password: dbPassword, username: dbUserName,
|
|
88
|
-
} = mongoConfig
|
|
89
|
-
const payloadSdkConfig: BaseMongoSdkPrivateConfig = {
|
|
90
|
-
dbConnectionString, dbDomain, dbName, dbPassword, dbUserName,
|
|
91
|
-
}
|
|
92
|
-
const params: Partial<MongoDBModuleParamsV2> = {
|
|
93
|
-
meterProvider, payloadSdkConfig, statusReporter, traceProvider,
|
|
94
|
-
}
|
|
95
|
-
// Register the MongoDB Archivist as the default
|
|
96
|
-
locator.register(MongoDBArchivistV2.factory(params), undefined, true)
|
|
97
|
-
|
|
98
|
-
// Use a persistent MongoMap for the summary repository if MongoDB is configured
|
|
99
|
-
const sdkBalanceSummaryMap = new BaseMongoSdk<WithStorageMeta<BalancesStepSummary>>({ ...payloadSdkConfig, collection: 'balance_summary_map' })
|
|
100
|
-
balanceSummaryMap = await MongoMap.create<MongoMap<Hash, WithStorageMeta<BalancesStepSummary>>>({
|
|
101
|
-
sdk: sdkBalanceSummaryMap,
|
|
102
|
-
getCache: { enabled: true, maxEntries: 5000 },
|
|
103
|
-
})
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
locator.register(AddressBalanceDivinerV2.factory<AddressBalanceDivinerV2>({
|
|
107
|
-
traceProvider, meterProvider, statusReporter, summaryMap: balanceSummaryMap, stepSemaphores: StepSizes.map(() => new Semaphore(20)),
|
|
108
|
-
}))
|
|
109
|
-
|
|
110
|
-
locator.register(AddressTransferDiviner.factory<AddressTransferDiviner>({
|
|
111
|
-
traceProvider, meterProvider, statusReporter, summaryMap: transferSummaryMap, stepSemaphores: StepSizes.map(() => new Semaphore(20)),
|
|
112
|
-
}))
|
|
113
|
-
|
|
114
|
-
const chainId = isDefined(config.chain.id)
|
|
115
|
-
? assertEx(asAddress(config.chain.id), () => 'chain.id must be an Address')
|
|
116
|
-
: ZERO_ADDRESS
|
|
117
|
-
locator.register(HeadValidationDiviner.factory<HeadValidationDiviner>({
|
|
118
|
-
traceProvider,
|
|
119
|
-
meterProvider,
|
|
120
|
-
statusReporter,
|
|
121
|
-
chainId,
|
|
122
|
-
allowedProducers: config.producer.allowlist,
|
|
123
|
-
}))
|
|
124
|
-
locator.register(MemoryArchivist.factory({
|
|
125
|
-
traceProvider, meterProvider, statusReporter,
|
|
126
|
-
}))
|
|
127
|
-
locator.register(MemorySentinel.factory({
|
|
128
|
-
traceProvider, meterProvider, statusReporter,
|
|
129
|
-
}))
|
|
130
|
-
locator.register(ViewArchivist.factory({
|
|
131
|
-
traceProvider, meterProvider, statusReporter,
|
|
132
|
-
}))
|
|
133
|
-
locator.register(ArchivistSyncDiviner.factory({
|
|
134
|
-
traceProvider, meterProvider, statusReporter,
|
|
135
|
-
}))
|
|
136
|
-
return locator
|
|
137
|
-
}
|
package/src/manifest/getNode.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { Logger } from '@xylabs/sdk-js'
|
|
2
|
-
import { ManifestWrapper } from '@xyo-network/manifest-wrapper'
|
|
3
|
-
import type { WalletInstance } from '@xyo-network/wallet-model'
|
|
4
|
-
import type { Config } from '@xyo-network/xl1-protocol-sdk'
|
|
5
|
-
|
|
6
|
-
import { getLocator } from './getLocator.ts'
|
|
7
|
-
import { NodeManifest } from './nodeManifest.ts'
|
|
8
|
-
import { PrivateChildManifests } from './private/index.ts'
|
|
9
|
-
import { PublicChildManifestsWithMempool, PublicChildManifestsWithoutMempool } from './public/index.ts'
|
|
10
|
-
|
|
11
|
-
export interface GetNodeContext {
|
|
12
|
-
config: Config
|
|
13
|
-
logger?: Logger
|
|
14
|
-
wallet: WalletInstance
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Creates a node with the xyo-chain modules registered
|
|
19
|
-
* @param context The context to use for the node
|
|
20
|
-
* @returns A node with the xyo-chain modules registered
|
|
21
|
-
*/
|
|
22
|
-
export const getNode = async (context: GetNodeContext) => {
|
|
23
|
-
const { wallet, config } = context
|
|
24
|
-
const { enabled: mempoolEnabled } = config.mempool
|
|
25
|
-
const PublicChildManifests = mempoolEnabled ? PublicChildManifestsWithoutMempool : PublicChildManifestsWithMempool
|
|
26
|
-
const locator = await getLocator(context)
|
|
27
|
-
const wrapper = new ManifestWrapper(NodeManifest, wallet, locator, PublicChildManifests, PrivateChildManifests)
|
|
28
|
-
const [node, ...childNodes] = await wrapper.loadNodes()
|
|
29
|
-
if (childNodes?.length > 0) {
|
|
30
|
-
await Promise.all(childNodes.map(childNode => node.register(childNode)))
|
|
31
|
-
await Promise.all(childNodes.map(childNode => node.attach(childNode.address, true)))
|
|
32
|
-
}
|
|
33
|
-
return node
|
|
34
|
-
}
|
package/src/manifest/index.ts
DELETED
package/src/manifest/node.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/XYOracleNetwork/sdk-xyo-client-js/main/packages/manifest/src/schema.json",
|
|
3
|
-
"nodes": [
|
|
4
|
-
{
|
|
5
|
-
"config": {
|
|
6
|
-
"accountPath": "44'/60'/1",
|
|
7
|
-
"name": "XYOChain",
|
|
8
|
-
"schema": "network.xyo.node.config"
|
|
9
|
-
},
|
|
10
|
-
"modules": {
|
|
11
|
-
"private": [],
|
|
12
|
-
"public": []
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
|
-
"schema": "network.xyo.manifest"
|
|
17
|
-
}
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/XYOracleNetwork/sdk-xyo-client-js/main/packages/manifest/src/schema.json",
|
|
3
|
-
"nodes": [
|
|
4
|
-
{
|
|
5
|
-
"config": {
|
|
6
|
-
"accountPath": "1",
|
|
7
|
-
"name": "Chain",
|
|
8
|
-
"schema": "network.xyo.node.config"
|
|
9
|
-
},
|
|
10
|
-
"modules": {
|
|
11
|
-
"private": [
|
|
12
|
-
{
|
|
13
|
-
"config": {
|
|
14
|
-
"accountPath": "1/1'/1'",
|
|
15
|
-
"name": "Validated",
|
|
16
|
-
"getCache": {
|
|
17
|
-
"enabled": true,
|
|
18
|
-
"maxEntries": 5000
|
|
19
|
-
},
|
|
20
|
-
"payloadSdkConfig": {
|
|
21
|
-
"collection": "chain_validated"
|
|
22
|
-
},
|
|
23
|
-
"schema": "network.xyo.archivist.config"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"config": {
|
|
28
|
-
"accountPath": "1/1'/2'",
|
|
29
|
-
"schema": "network.xyo.diviner.chain.head.validation.config",
|
|
30
|
-
"eventSubscriptions": [
|
|
31
|
-
{
|
|
32
|
-
"sourceEvent": "inserted",
|
|
33
|
-
"sourceModule": "Submissions",
|
|
34
|
-
"targetModuleFunction": "divine"
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
"inArchivist": "Submissions",
|
|
38
|
-
"outArchivist": "Validated",
|
|
39
|
-
"name": "HeadValidationDiviner"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"config": {
|
|
44
|
-
"accountPath": "1/1'/3'",
|
|
45
|
-
"automations": [
|
|
46
|
-
{
|
|
47
|
-
"frequency": 1000,
|
|
48
|
-
"frequencyUnits": "millis",
|
|
49
|
-
"schema": "network.xyo.automation.interval",
|
|
50
|
-
"type": "interval"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"name": "ChainValidationSentinel",
|
|
54
|
-
"schema": "network.xyo.sentinel.config",
|
|
55
|
-
"synchronous": true,
|
|
56
|
-
"tasks": [
|
|
57
|
-
{
|
|
58
|
-
"mod": "HeadValidationDiviner",
|
|
59
|
-
"endPoint": "divine"
|
|
60
|
-
}
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"config": {
|
|
66
|
-
"accountPath": "1/1'/4'",
|
|
67
|
-
"automations": [
|
|
68
|
-
{
|
|
69
|
-
"frequency": 10000,
|
|
70
|
-
"frequencyUnits": "millis",
|
|
71
|
-
"schema": "network.xyo.automation.interval",
|
|
72
|
-
"type": "interval"
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
"name": "AddressBalancePollingSentinel",
|
|
76
|
-
"schema": "network.xyo.sentinel.config",
|
|
77
|
-
"synchronous": true,
|
|
78
|
-
"tasks": [
|
|
79
|
-
{
|
|
80
|
-
"mod": "AddressBalanceDiviner",
|
|
81
|
-
"endPoint": "divine"
|
|
82
|
-
}
|
|
83
|
-
]
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"config": {
|
|
88
|
-
"accountPath": "1/1'/5'",
|
|
89
|
-
"automations": [
|
|
90
|
-
{
|
|
91
|
-
"frequency": 10000,
|
|
92
|
-
"frequencyUnits": "millis",
|
|
93
|
-
"schema": "network.xyo.automation.interval",
|
|
94
|
-
"type": "interval"
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
"name": "AddressTransferPollingSentinel",
|
|
98
|
-
"schema": "network.xyo.sentinel.config",
|
|
99
|
-
"synchronous": true,
|
|
100
|
-
"tasks": [
|
|
101
|
-
{
|
|
102
|
-
"mod": "AddressTransferDiviner",
|
|
103
|
-
"endPoint": "divine"
|
|
104
|
-
}
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
"public": [
|
|
110
|
-
{
|
|
111
|
-
"config": {
|
|
112
|
-
"accountPath": "1/1/1",
|
|
113
|
-
"name": "Submissions",
|
|
114
|
-
"getCache": {
|
|
115
|
-
"enabled": true,
|
|
116
|
-
"maxEntries": 5000
|
|
117
|
-
},
|
|
118
|
-
"payloadSdkConfig": {
|
|
119
|
-
"collection": "chain_submissions"
|
|
120
|
-
},
|
|
121
|
-
"schema": "network.xyo.archivist.config"
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"config": {
|
|
126
|
-
"accountPath": "1/1/2",
|
|
127
|
-
"name": "Finalized",
|
|
128
|
-
"allowedQueries": [
|
|
129
|
-
"network.xyo.query.archivist.get",
|
|
130
|
-
"network.xyo.query.archivist.next"
|
|
131
|
-
],
|
|
132
|
-
"getCache": {
|
|
133
|
-
"enabled": true,
|
|
134
|
-
"maxEntries": 50000
|
|
135
|
-
},
|
|
136
|
-
"originArchivist": "Validated",
|
|
137
|
-
"schema": "network.xyo.archivist.view.config"
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"config": {
|
|
142
|
-
"accountPath": "1/1/3'",
|
|
143
|
-
"name": "AddressBalanceDiviner",
|
|
144
|
-
"schema": "network.xyo.diviner.chain.address.balance.config",
|
|
145
|
-
"map": {
|
|
146
|
-
"lmdb": {
|
|
147
|
-
"dbName": "summaries",
|
|
148
|
-
"storeName": "address_balance",
|
|
149
|
-
"location": ".store"
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
"archivist": "Validated"
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"config": {
|
|
157
|
-
"accountPath": "1/1/4'",
|
|
158
|
-
"name": "AddressTransferDiviner",
|
|
159
|
-
"schema": "network.xyo.diviner.chain.address.transfer.config",
|
|
160
|
-
"map": {
|
|
161
|
-
"lmdb": {
|
|
162
|
-
"dbName": "summaries",
|
|
163
|
-
"storeName": "address_transfer",
|
|
164
|
-
"location": ".store"
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
"archivist": "Validated"
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
]
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
],
|
|
174
|
-
"schema": "network.xyo.manifest"
|
|
175
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/XYOracleNetwork/sdk-xyo-client-js/main/packages/manifest/src/schema.json",
|
|
3
|
-
"nodes": [
|
|
4
|
-
{
|
|
5
|
-
"config": {
|
|
6
|
-
"accountPath": "2",
|
|
7
|
-
"name": "Pending",
|
|
8
|
-
"schema": "network.xyo.node.config"
|
|
9
|
-
},
|
|
10
|
-
"modules": {
|
|
11
|
-
"private": [],
|
|
12
|
-
"public": [
|
|
13
|
-
{
|
|
14
|
-
"config": {
|
|
15
|
-
"accountPath": "2/1/1",
|
|
16
|
-
"name": "PendingTransactions",
|
|
17
|
-
"getCache": {
|
|
18
|
-
"enabled": true,
|
|
19
|
-
"maxEntries": 5000
|
|
20
|
-
},
|
|
21
|
-
"labels": {
|
|
22
|
-
"network.xyo.storage.class": "mongodb"
|
|
23
|
-
},
|
|
24
|
-
"payloadSdkConfig": {
|
|
25
|
-
"collection": "pending_bundles"
|
|
26
|
-
},
|
|
27
|
-
"schema": "network.xyo.archivist.config"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"schema": "network.xyo.manifest"
|
|
35
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ModuleManifest, PackageManifestPayload } from '@xyo-network/manifest-model'
|
|
2
|
-
|
|
3
|
-
import Chain from './Chain.json' with { type: 'json' }
|
|
4
|
-
import Pending from './Pending.json' with { type: 'json' }
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Chain Node Manifest
|
|
8
|
-
*/
|
|
9
|
-
const ChainNodeManifest = Chain as PackageManifestPayload
|
|
10
|
-
/**
|
|
11
|
-
* Pending Node Manifest
|
|
12
|
-
*/
|
|
13
|
-
const PendingNodeManifest = Pending as PackageManifestPayload
|
|
14
|
-
/**
|
|
15
|
-
* Public Child Manifests
|
|
16
|
-
*/
|
|
17
|
-
export const PublicChildManifestsWithMempool: ModuleManifest[] = [
|
|
18
|
-
...ChainNodeManifest.nodes,
|
|
19
|
-
...PendingNodeManifest.nodes,
|
|
20
|
-
]
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/XYOracleNetwork/sdk-xyo-client-js/main/packages/manifest/src/schema.json",
|
|
3
|
-
"nodes": [
|
|
4
|
-
{
|
|
5
|
-
"config": {
|
|
6
|
-
"accountPath": "1",
|
|
7
|
-
"name": "Chain",
|
|
8
|
-
"schema": "network.xyo.node.config"
|
|
9
|
-
},
|
|
10
|
-
"modules": {
|
|
11
|
-
"private": [
|
|
12
|
-
{
|
|
13
|
-
"config": {
|
|
14
|
-
"accountPath": "1/1'/1'",
|
|
15
|
-
"name": "Validated",
|
|
16
|
-
"allowedQueries": [
|
|
17
|
-
"network.xyo.query.archivist.get",
|
|
18
|
-
"network.xyo.query.archivist.next"
|
|
19
|
-
],
|
|
20
|
-
"getCache": {
|
|
21
|
-
"enabled": true,
|
|
22
|
-
"maxEntries": 5000
|
|
23
|
-
},
|
|
24
|
-
"payloadSdkConfig": {
|
|
25
|
-
"collection": "chain_validated"
|
|
26
|
-
},
|
|
27
|
-
"schema": "network.xyo.archivist.config"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
"public": [
|
|
32
|
-
{
|
|
33
|
-
"config": {
|
|
34
|
-
"accountPath": "1/1/1",
|
|
35
|
-
"name": "Submissions",
|
|
36
|
-
"getCache": {
|
|
37
|
-
"enabled": true,
|
|
38
|
-
"maxEntries": 5000
|
|
39
|
-
},
|
|
40
|
-
"payloadSdkConfig": {
|
|
41
|
-
"collection": "chain_submissions"
|
|
42
|
-
},
|
|
43
|
-
"schema": "network.xyo.archivist.config"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"config": {
|
|
48
|
-
"accountPath": "1/1/2",
|
|
49
|
-
"name": "Finalized",
|
|
50
|
-
"allowedQueries": [
|
|
51
|
-
"network.xyo.query.archivist.get",
|
|
52
|
-
"network.xyo.query.archivist.next"
|
|
53
|
-
],
|
|
54
|
-
"getCache": {
|
|
55
|
-
"enabled": true,
|
|
56
|
-
"maxEntries": 50000
|
|
57
|
-
},
|
|
58
|
-
"originArchivist": "Validated",
|
|
59
|
-
"schema": "network.xyo.archivist.view.config"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"config": {
|
|
64
|
-
"accountPath": "1/1/3'",
|
|
65
|
-
"name": "AddressBalanceDiviner",
|
|
66
|
-
"schema": "network.xyo.diviner.chain.address.balance.config",
|
|
67
|
-
"map": {
|
|
68
|
-
"lmdb": {
|
|
69
|
-
"dbName": "summaries",
|
|
70
|
-
"storeName": "address_balance",
|
|
71
|
-
"location": ".store"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"archivist": "Validated"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"config": {
|
|
79
|
-
"accountPath": "1/1/4'",
|
|
80
|
-
"name": "AddressTransferDiviner",
|
|
81
|
-
"schema": "network.xyo.diviner.chain.address.transfer.config",
|
|
82
|
-
"map": {
|
|
83
|
-
"lmdb": {
|
|
84
|
-
"dbName": "summaries",
|
|
85
|
-
"storeName": "address_transfer",
|
|
86
|
-
"location": ".store"
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
"archivist": "Validated"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
"schema": "network.xyo.manifest"
|
|
97
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/XYOracleNetwork/sdk-xyo-client-js/main/packages/manifest/src/schema.json",
|
|
3
|
-
"nodes": [
|
|
4
|
-
{
|
|
5
|
-
"config": {
|
|
6
|
-
"accountPath": "2",
|
|
7
|
-
"name": "Pending",
|
|
8
|
-
"schema": "network.xyo.node.config"
|
|
9
|
-
},
|
|
10
|
-
"modules": {
|
|
11
|
-
"private": [],
|
|
12
|
-
"public": [
|
|
13
|
-
{
|
|
14
|
-
"config": {
|
|
15
|
-
"accountPath": "2/1/1",
|
|
16
|
-
"name": "PendingTransactions",
|
|
17
|
-
"getCache": {
|
|
18
|
-
"enabled": true,
|
|
19
|
-
"maxEntries": 5000
|
|
20
|
-
},
|
|
21
|
-
"labels": {
|
|
22
|
-
"network.xyo.storage.class": "mongodb"
|
|
23
|
-
},
|
|
24
|
-
"payloadSdkConfig": {
|
|
25
|
-
"collection": "pending_bundles"
|
|
26
|
-
},
|
|
27
|
-
"schema": "network.xyo.archivist.config"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"schema": "network.xyo.manifest"
|
|
35
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ModuleManifest, PackageManifestPayload } from '@xyo-network/manifest-model'
|
|
2
|
-
|
|
3
|
-
import Chain from './Chain.json' with { type: 'json' }
|
|
4
|
-
import Pending from './Pending.json' with { type: 'json' }
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Chain Node Manifest
|
|
8
|
-
*/
|
|
9
|
-
const ChainNodeManifest = Chain as PackageManifestPayload
|
|
10
|
-
/**
|
|
11
|
-
* Pending Node Manifest
|
|
12
|
-
*/
|
|
13
|
-
const PendingNodeManifest = Pending as PackageManifestPayload
|
|
14
|
-
/**
|
|
15
|
-
* Public Child Manifests
|
|
16
|
-
*/
|
|
17
|
-
export const PublicChildManifestsWithoutMempool: ModuleManifest[] = [
|
|
18
|
-
...ChainNodeManifest.nodes,
|
|
19
|
-
...PendingNodeManifest.nodes,
|
|
20
|
-
]
|