@xyo-network/os-runtime 5.0.7 → 5.0.9
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/neutral/index.mjs +65 -30
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/node/index.mjs +65 -30
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/scripts/xyos/index.mjs +14 -12
- package/dist/node/scripts/xyos/index.mjs.map +1 -1
- package/dist/types/Caller.d.ts +1 -2
- package/dist/types/Caller.d.ts.map +1 -1
- package/dist/types/XyOsBase.d.ts +1 -1
- package/dist/types/XyOsBase.d.ts.map +1 -1
- package/dist/types/XyOsDapp.d.ts +5 -5
- package/dist/types/XyOsDapp.d.ts.map +1 -1
- package/dist/types/classes/lib/DappCreatorParams.d.ts +2 -2
- package/dist/types/classes/lib/DappCreatorParams.d.ts.map +1 -1
- package/dist/types/classes/settings/Caller.d.ts.map +1 -1
- package/dist/types/dapp/context/creator/Creator.d.ts +2 -2
- package/dist/types/dapp/context/creator/Creator.d.ts.map +1 -1
- package/dist/types/dapp/context/creator/createDappContext.d.ts.map +1 -1
- package/dist/types/event/bus/EventBus.d.ts.map +1 -1
- package/dist/types/lib/PayloadStore.d.ts.map +1 -1
- package/dist/types/lib/index.d.ts +1 -0
- package/dist/types/lib/index.d.ts.map +1 -1
- package/dist/types/lib/isEqual.d.ts +2 -0
- package/dist/types/lib/isEqual.d.ts.map +1 -0
- package/dist/types/loadOsNode.d.ts +3 -3
- package/dist/types/loadOsNode.d.ts.map +1 -1
- package/dist/types/registration/DappRegistry.d.ts.map +1 -1
- package/dist/types/registration/ValidateDappAccessDiviner/Diviner.d.ts.map +1 -1
- package/dist/types/scripts/xyos/lib/headless.d.ts.map +1 -1
- package/dist/types/signer/Signers.d.ts +1 -1
- package/dist/types/signer/Signers.d.ts.map +1 -1
- package/dist/types/wallet/DappSeedPhraseRepository.d.ts.map +1 -1
- package/package.json +51 -44
- package/src/Caller.ts +1 -1
- package/src/XyOsBase.ts +1 -1
- package/src/XyOsDapp.ts +1 -1
- package/src/classes/lib/DappCreatorParams.ts +2 -2
- package/src/classes/settings/Caller.ts +1 -1
- package/src/dapp/context/creator/Creator.ts +8 -3
- package/src/dapp/context/creator/createDappContext.ts +3 -2
- package/src/event/bus/EventBus.ts +2 -3
- package/src/lib/PayloadStore.ts +1 -1
- package/src/lib/index.ts +1 -0
- package/src/lib/isEqual.ts +41 -0
- package/src/loadOsNode.ts +4 -3
- package/src/registration/DappRegistry.ts +1 -1
- package/src/registration/ValidateDappAccessDiviner/Diviner.ts +3 -2
- package/src/scripts/xyos/lib/headless.ts +1 -1
- package/src/signer/Signers.ts +2 -1
- package/src/wallet/DappSeedPhraseRepository.ts +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex'
|
|
2
|
-
import { HDWallet } from '@xyo-network/account'
|
|
3
2
|
import type {
|
|
4
3
|
DappPackageManifestPayload,
|
|
5
4
|
DappParams,
|
|
@@ -13,6 +12,7 @@ import {
|
|
|
13
12
|
DappRegisteredState,
|
|
14
13
|
isRegisteredDappAccess,
|
|
15
14
|
} from '@xyo-network/os-model'
|
|
15
|
+
import { HDWallet } from '@xyo-network/wallet'
|
|
16
16
|
|
|
17
17
|
import type { DappSeedPhraseRepository } from '../wallet/index.ts'
|
|
18
18
|
import type { FailedAccessor } from './ValidateDappAccessDiviner/index.ts'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex'
|
|
2
|
-
import { HDWallet } from '@xyo-network/account'
|
|
3
2
|
import { AbstractDiviner } from '@xyo-network/diviner-abstract'
|
|
4
3
|
import type { NodeManifestPayload, PackageManifestPayload } from '@xyo-network/manifest'
|
|
5
4
|
import { ManifestWrapper, PackageManifestPayloadSchema } from '@xyo-network/manifest'
|
|
5
|
+
import { ModuleFactoryLocator } from '@xyo-network/module-factory-locator'
|
|
6
6
|
import type { NodeInstance } from '@xyo-network/node-model'
|
|
7
7
|
import type {
|
|
8
8
|
DappPackageManifestPayload,
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
isUnregisteredDappAccess,
|
|
16
16
|
RegisteredDappAccessSchema,
|
|
17
17
|
} from '@xyo-network/os-model'
|
|
18
|
+
import { HDWallet } from '@xyo-network/wallet'
|
|
18
19
|
|
|
19
20
|
import { ValidDappAccessInterfaces } from '../../models/index.ts'
|
|
20
21
|
import type {
|
|
@@ -127,6 +128,6 @@ const getNodeChildren = async (manifestToTest: PackageManifestPayload, dappParam
|
|
|
127
128
|
}
|
|
128
129
|
|
|
129
130
|
const getNodeToTest = async (manifestToTest: PackageManifestPayload, dappParams: DappParams) => {
|
|
130
|
-
const dappManifestWrapper = new ManifestWrapper(manifestToTest, await HDWallet.random(), dappParams.locator)
|
|
131
|
+
const dappManifestWrapper = new ManifestWrapper(manifestToTest, await HDWallet.random(), dappParams.locator ?? new ModuleFactoryLocator())
|
|
131
132
|
return await dappManifestWrapper.loadNodes()
|
|
132
133
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import fs from 'node:fs'
|
|
2
2
|
|
|
3
|
-
import { HDWallet } from '@xyo-network/account'
|
|
4
3
|
import { boot } from '@xyo-network/bios'
|
|
5
4
|
import { Kernel } from '@xyo-network/kernel'
|
|
6
5
|
import type { NativeKernelDrivers } from '@xyo-network/kernel-model'
|
|
7
6
|
import type { PackageManifest } from '@xyo-network/manifest'
|
|
7
|
+
import { HDWallet } from '@xyo-network/wallet'
|
|
8
8
|
import chalk from 'chalk'
|
|
9
9
|
import { cosmiconfig } from 'cosmiconfig'
|
|
10
10
|
import { TypeScriptLoader } from 'cosmiconfig-typescript-loader'
|
package/src/signer/Signers.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/assert'
|
|
2
|
-
import { type AccountInstance
|
|
2
|
+
import { type AccountInstance } from '@xyo-network/account-model'
|
|
3
3
|
import type {
|
|
4
4
|
SignerAccounts, SignersExternal, WalletKindSignerPaths,
|
|
5
5
|
} from '@xyo-network/os-model'
|
|
@@ -7,6 +7,7 @@ import type {
|
|
|
7
7
|
WalletKind,
|
|
8
8
|
WalletSeedPhraseStore,
|
|
9
9
|
} from '@xyo-network/storage-model'
|
|
10
|
+
import { HDWallet } from '@xyo-network/wallet'
|
|
10
11
|
|
|
11
12
|
export class Signers implements SignersExternal {
|
|
12
13
|
private _paths: WalletKindSignerPaths
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { HDWallet } from '@xyo-network/account'
|
|
2
1
|
import { PayloadDivinerQuerySchema } from '@xyo-network/diviner-payload-model'
|
|
3
2
|
import type {
|
|
4
3
|
DappId, DappWalletSeedPhrase, WalletId, XyOsContext,
|
|
5
4
|
} from '@xyo-network/os-model'
|
|
6
5
|
import { DappWalletSeedPhraseSchema } from '@xyo-network/os-model'
|
|
6
|
+
import { HDWallet } from '@xyo-network/wallet'
|
|
7
7
|
import { v4 as uuid } from 'uuid'
|
|
8
8
|
|
|
9
9
|
import { OsCallerBase } from '../OsCallerBase.ts'
|