@xyo-network/os-runtime 7.2.0 → 7.3.0
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/Caller.d.ts +18 -20
- package/dist/neutral/Caller.d.ts.map +1 -1
- package/dist/neutral/DappCallerBase.d.ts +2 -2
- package/dist/neutral/DappCallerBase.d.ts.map +1 -1
- package/dist/neutral/OsCallerBase.d.ts +2 -2
- package/dist/neutral/PubSubBridgeCaller.d.ts +1 -1
- package/dist/neutral/PubSubBridgeCaller.d.ts.map +1 -1
- package/dist/neutral/RunningDappCache.d.ts.map +1 -1
- package/dist/neutral/XyOs.d.ts +5 -6
- package/dist/neutral/XyOs.d.ts.map +1 -1
- package/dist/neutral/XyOsBase.d.ts +124 -7
- package/dist/neutral/XyOsBase.d.ts.map +1 -1
- package/dist/neutral/XyOsDapp.d.ts +3 -3
- package/dist/neutral/XyOsDapp.d.ts.map +1 -1
- package/dist/neutral/access/Caller.d.ts +2 -2
- package/dist/neutral/access/Caller.d.ts.map +1 -1
- package/dist/neutral/access/RunningAccessDappCache.d.ts.map +1 -1
- package/dist/neutral/access/interfaces/registered-names/helpers/resource/AbstractXnsCaller.d.ts +1 -1
- package/dist/neutral/adapter/Base.d.ts +2 -2
- package/dist/neutral/adapter/Base.d.ts.map +1 -1
- package/dist/neutral/classes/lib/DappCreatorParams.d.ts +3 -3
- package/dist/neutral/classes/lib/DappCreatorParams.d.ts.map +1 -1
- package/dist/neutral/classes/lib/Insertable.d.ts +1 -3
- package/dist/neutral/classes/lib/Insertable.d.ts.map +1 -1
- package/dist/neutral/classes/menu/Caller.d.ts +1 -2
- package/dist/neutral/classes/menu/Caller.d.ts.map +1 -1
- package/dist/neutral/classes/settings/Caller.d.ts +2 -2
- package/dist/neutral/classes/settings/CallerBase.d.ts +1 -1
- package/dist/neutral/classes/settings/SettingsQueries.d.ts.map +1 -1
- package/dist/neutral/classes/settings/badge/Caller.d.ts +2 -2
- package/dist/neutral/classes/settings/badge/Resource.d.ts +1 -1
- package/dist/neutral/classes/settings/badge/Resource.d.ts.map +1 -1
- package/dist/neutral/dapp/context/creator/Creator.d.ts +1 -1
- package/dist/neutral/dapp/context/creator/Creator.d.ts.map +1 -1
- package/dist/neutral/dapp/context/creator/createDappContext.d.ts.map +1 -1
- package/dist/neutral/event/bus/Connection.d.ts +3 -4
- package/dist/neutral/event/bus/Connection.d.ts.map +1 -1
- package/dist/neutral/event/bus/EventBus.d.ts +1 -1
- package/dist/neutral/event/bus/EventBus.d.ts.map +1 -1
- package/dist/neutral/event/bus/PubSubConnection.d.ts +1 -1
- package/dist/neutral/helpers/monitor/XyOsMonitor.d.ts +2 -2
- package/dist/neutral/helpers/monitor/XyOsMonitor.d.ts.map +1 -1
- package/dist/neutral/helpers/monitor/types.d.ts +3 -3
- package/dist/neutral/helpers/monitor/types.d.ts.map +1 -1
- package/dist/neutral/index.mjs +1042 -694
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/intent/Caller.d.ts +5 -5
- package/dist/neutral/lib/Listener.d.ts +1 -1
- package/dist/neutral/lib/Listener.d.ts.map +1 -1
- package/dist/neutral/lib/PayloadStore.d.ts +1 -2
- package/dist/neutral/lib/PayloadStore.d.ts.map +1 -1
- package/dist/neutral/lib/isPayload.d.ts +1 -1
- package/dist/neutral/loadOsNode.d.ts.map +1 -1
- package/dist/neutral/profileModuleEvents.d.ts +2 -4
- package/dist/neutral/profileModuleEvents.d.ts.map +1 -1
- package/dist/neutral/registration/DappRegistrationService.d.ts +3 -3
- package/dist/neutral/registration/DappRegistrationService.d.ts.map +1 -1
- package/dist/neutral/registration/DappRegistry.d.ts +4 -6
- package/dist/neutral/registration/DappRegistry.d.ts.map +1 -1
- package/dist/neutral/registration/ValidateDappAccessDiviner/Config.d.ts +7 -3
- package/dist/neutral/registration/ValidateDappAccessDiviner/Config.d.ts.map +1 -1
- package/dist/neutral/registration/ValidateDappAccessDiviner/Diviner.d.ts +3 -1
- package/dist/neutral/registration/ValidateDappAccessDiviner/Diviner.d.ts.map +1 -1
- package/dist/neutral/scripts/xyos/lib/headless.d.ts.map +1 -1
- package/dist/neutral/signer/Signers.d.ts.map +1 -1
- package/dist/neutral/stack/Base.d.ts +2 -2
- package/dist/neutral/stack/Base.d.ts.map +1 -1
- package/dist/neutral/stack/Manager.d.ts +2 -6
- package/dist/neutral/stack/Manager.d.ts.map +1 -1
- package/dist/neutral/system/ManageSystemDapps.d.ts +3 -3
- package/dist/neutral/system/ManageSystemDapps.d.ts.map +1 -1
- package/dist/neutral/utils/buildWalletSeedPhrasePayload.d.ts +1 -1
- package/dist/neutral/utils/buildWalletSeedPhrasePayload.d.ts.map +1 -1
- package/dist/neutral/wallet/SeedPhraseRepository.d.ts +3 -4
- package/dist/neutral/wallet/SeedPhraseRepository.d.ts.map +1 -1
- package/dist/node/Caller.d.ts +18 -20
- package/dist/node/Caller.d.ts.map +1 -1
- package/dist/node/DappCallerBase.d.ts +2 -2
- package/dist/node/DappCallerBase.d.ts.map +1 -1
- package/dist/node/OsCallerBase.d.ts +2 -2
- package/dist/node/PubSubBridgeCaller.d.ts +1 -1
- package/dist/node/PubSubBridgeCaller.d.ts.map +1 -1
- package/dist/node/RunningDappCache.d.ts.map +1 -1
- package/dist/node/XyOs.d.ts +5 -6
- package/dist/node/XyOs.d.ts.map +1 -1
- package/dist/node/XyOsBase.d.ts +124 -7
- package/dist/node/XyOsBase.d.ts.map +1 -1
- package/dist/node/XyOsDapp.d.ts +3 -3
- package/dist/node/XyOsDapp.d.ts.map +1 -1
- package/dist/node/access/Caller.d.ts +2 -2
- package/dist/node/access/Caller.d.ts.map +1 -1
- package/dist/node/access/RunningAccessDappCache.d.ts.map +1 -1
- package/dist/node/access/interfaces/registered-names/helpers/resource/AbstractXnsCaller.d.ts +1 -1
- package/dist/node/adapter/Base.d.ts +2 -2
- package/dist/node/adapter/Base.d.ts.map +1 -1
- package/dist/node/classes/lib/DappCreatorParams.d.ts +3 -3
- package/dist/node/classes/lib/DappCreatorParams.d.ts.map +1 -1
- package/dist/node/classes/lib/Insertable.d.ts +1 -3
- package/dist/node/classes/lib/Insertable.d.ts.map +1 -1
- package/dist/node/classes/menu/Caller.d.ts +1 -2
- package/dist/node/classes/menu/Caller.d.ts.map +1 -1
- package/dist/node/classes/settings/Caller.d.ts +2 -2
- package/dist/node/classes/settings/CallerBase.d.ts +1 -1
- package/dist/node/classes/settings/SettingsQueries.d.ts.map +1 -1
- package/dist/node/classes/settings/badge/Caller.d.ts +2 -2
- package/dist/node/classes/settings/badge/Resource.d.ts +1 -1
- package/dist/node/classes/settings/badge/Resource.d.ts.map +1 -1
- package/dist/node/dapp/context/creator/Creator.d.ts +1 -1
- package/dist/node/dapp/context/creator/Creator.d.ts.map +1 -1
- package/dist/node/dapp/context/creator/createDappContext.d.ts.map +1 -1
- package/dist/node/event/bus/Connection.d.ts +3 -4
- package/dist/node/event/bus/Connection.d.ts.map +1 -1
- package/dist/node/event/bus/EventBus.d.ts +1 -1
- package/dist/node/event/bus/EventBus.d.ts.map +1 -1
- package/dist/node/event/bus/PubSubConnection.d.ts +1 -1
- package/dist/node/helpers/monitor/XyOsMonitor.d.ts +2 -2
- package/dist/node/helpers/monitor/XyOsMonitor.d.ts.map +1 -1
- package/dist/node/helpers/monitor/types.d.ts +3 -3
- package/dist/node/helpers/monitor/types.d.ts.map +1 -1
- package/dist/node/index.mjs +1042 -694
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/intent/Caller.d.ts +5 -5
- package/dist/node/lib/Listener.d.ts +1 -1
- package/dist/node/lib/Listener.d.ts.map +1 -1
- package/dist/node/lib/PayloadStore.d.ts +1 -2
- package/dist/node/lib/PayloadStore.d.ts.map +1 -1
- package/dist/node/lib/isPayload.d.ts +1 -1
- package/dist/node/loadOsNode.d.ts.map +1 -1
- package/dist/node/profileModuleEvents.d.ts +2 -4
- package/dist/node/profileModuleEvents.d.ts.map +1 -1
- package/dist/node/registration/DappRegistrationService.d.ts +3 -3
- package/dist/node/registration/DappRegistrationService.d.ts.map +1 -1
- package/dist/node/registration/DappRegistry.d.ts +4 -6
- package/dist/node/registration/DappRegistry.d.ts.map +1 -1
- package/dist/node/registration/ValidateDappAccessDiviner/Config.d.ts +7 -3
- package/dist/node/registration/ValidateDappAccessDiviner/Config.d.ts.map +1 -1
- package/dist/node/registration/ValidateDappAccessDiviner/Diviner.d.ts +3 -1
- package/dist/node/registration/ValidateDappAccessDiviner/Diviner.d.ts.map +1 -1
- package/dist/node/scripts/xyos/index.mjs +520 -384
- package/dist/node/scripts/xyos/index.mjs.map +1 -1
- package/dist/node/scripts/xyos/lib/headless.d.ts.map +1 -1
- package/dist/node/signer/Signers.d.ts.map +1 -1
- package/dist/node/stack/Base.d.ts +2 -2
- package/dist/node/stack/Base.d.ts.map +1 -1
- package/dist/node/stack/Manager.d.ts +2 -6
- package/dist/node/stack/Manager.d.ts.map +1 -1
- package/dist/node/system/ManageSystemDapps.d.ts +3 -3
- package/dist/node/system/ManageSystemDapps.d.ts.map +1 -1
- package/dist/node/utils/buildWalletSeedPhrasePayload.d.ts +1 -1
- package/dist/node/utils/buildWalletSeedPhrasePayload.d.ts.map +1 -1
- package/dist/node/wallet/SeedPhraseRepository.d.ts +3 -4
- package/dist/node/wallet/SeedPhraseRepository.d.ts.map +1 -1
- package/package.json +165 -55
- package/dist/neutral/signer/Signer.spec.d.ts +0 -2
- package/dist/neutral/signer/Signer.spec.d.ts.map +0 -1
- package/dist/neutral/spec/boot.spec.d.ts +0 -2
- package/dist/neutral/spec/boot.spec.d.ts.map +0 -1
- package/dist/node/signer/Signer.spec.d.ts +0 -2
- package/dist/node/signer/Signer.spec.d.ts.map +0 -1
- package/dist/node/spec/boot.spec.d.ts +0 -2
- package/dist/node/spec/boot.spec.d.ts.map +0 -1
- package/src/Caller.ts +0 -202
- package/src/DappCallerBase.ts +0 -56
- package/src/DefaultsQueries.ts +0 -27
- package/src/OsCallerBase.ts +0 -59
- package/src/PubSubBridgeCaller.ts +0 -33
- package/src/RunningDappCache.ts +0 -58
- package/src/XyOs.ts +0 -166
- package/src/XyOsBase.ts +0 -136
- package/src/XyOsDapp.ts +0 -103
- package/src/access/Caller.ts +0 -85
- package/src/access/Queries.ts +0 -38
- package/src/access/Resource.ts +0 -65
- package/src/access/RunningAccessDappCache.ts +0 -21
- package/src/access/index.ts +0 -4
- package/src/access/interfaces/index.ts +0 -1
- package/src/access/interfaces/registered-names/helpers/AccessNodeQueries.ts +0 -68
- package/src/access/interfaces/registered-names/helpers/index.ts +0 -2
- package/src/access/interfaces/registered-names/helpers/resource/AbstractXnsCaller.ts +0 -42
- package/src/access/interfaces/registered-names/helpers/resource/RegistrationsResource.ts +0 -52
- package/src/access/interfaces/registered-names/helpers/resource/RegistrationsResourceQueries.ts +0 -23
- package/src/access/interfaces/registered-names/helpers/resource/index.ts +0 -3
- package/src/access/interfaces/registered-names/index.ts +0 -1
- package/src/adapter/Base.ts +0 -104
- package/src/adapter/Network.ts +0 -31
- package/src/adapter/Settings.ts +0 -30
- package/src/adapter/index.ts +0 -2
- package/src/adapters/OsPubSubBridgeNetwork.ts +0 -10
- package/src/adapters/OsSettings.ts +0 -7
- package/src/adapters/OsXyoPublicNetwork.ts +0 -9
- package/src/adapters/index.ts +0 -3
- package/src/classes/dapp/DefaultsResource.ts +0 -67
- package/src/classes/dapp/index.ts +0 -1
- package/src/classes/index.ts +0 -4
- package/src/classes/lib/DappCreatorParams.ts +0 -18
- package/src/classes/lib/Insertable.ts +0 -10
- package/src/classes/lib/index.ts +0 -2
- package/src/classes/menu/Caller.ts +0 -77
- package/src/classes/menu/Queries.ts +0 -60
- package/src/classes/menu/Resource.ts +0 -105
- package/src/classes/menu/index.ts +0 -2
- package/src/classes/settings/Caller.ts +0 -78
- package/src/classes/settings/CallerBase.ts +0 -27
- package/src/classes/settings/Resource.ts +0 -81
- package/src/classes/settings/SettingsQueries.ts +0 -56
- package/src/classes/settings/badge/Caller.ts +0 -30
- package/src/classes/settings/badge/Queries.ts +0 -19
- package/src/classes/settings/badge/Resource.ts +0 -50
- package/src/classes/settings/badge/index.ts +0 -2
- package/src/classes/settings/index.ts +0 -5
- package/src/dapp/context/creator/Creator.ts +0 -122
- package/src/dapp/context/creator/DefaultPayloads/DappAccessPayloads.ts +0 -20
- package/src/dapp/context/creator/DefaultPayloads/DefaultPayloads.ts +0 -40
- package/src/dapp/context/creator/DefaultPayloads/NodeInfoPayload.ts +0 -33
- package/src/dapp/context/creator/DefaultPayloads/index.ts +0 -1
- package/src/dapp/context/creator/ExternalModulePermissions/ExternalModulePermissions.ts +0 -59
- package/src/dapp/context/creator/ExternalModulePermissions/index.ts +0 -1
- package/src/dapp/context/creator/createDappContext.ts +0 -61
- package/src/dapp/context/creator/index.ts +0 -3
- package/src/dapp/context/index.ts +0 -1
- package/src/dapp/index.ts +0 -1
- package/src/event/bus/Connection.ts +0 -33
- package/src/event/bus/EventBus.ts +0 -159
- package/src/event/bus/PubSubConnection.ts +0 -28
- package/src/event/bus/index.ts +0 -3
- package/src/event/connections/DappAccessRequest.ts +0 -11
- package/src/event/connections/DappsReady.ts +0 -9
- package/src/event/connections/ExposeDappRequest.ts +0 -11
- package/src/event/connections/OsPubSubNetworkReady.ts +0 -12
- package/src/event/connections/OsSettingsReady.ts +0 -12
- package/src/event/connections/OsXyoPublicReady.ts +0 -12
- package/src/event/connections/index.ts +0 -6
- package/src/event/index.ts +0 -2
- package/src/helpers/index.ts +0 -1
- package/src/helpers/monitor/XyOsMonitor.ts +0 -52
- package/src/helpers/monitor/index.ts +0 -2
- package/src/helpers/monitor/types.ts +0 -8
- package/src/index.ts +0 -29
- package/src/initializer/DappInitializer.ts +0 -57
- package/src/initializer/index.ts +0 -1
- package/src/intent/Caller.ts +0 -74
- package/src/intent/Resource.ts +0 -66
- package/src/intent/index.ts +0 -2
- package/src/lib/ExternalStore.ts +0 -7
- package/src/lib/Listener.ts +0 -1
- package/src/lib/ModuleAccountPaths.ts +0 -23
- package/src/lib/ModuleNames.ts +0 -3
- package/src/lib/NameTransforms.ts +0 -34
- package/src/lib/PayloadStore.ts +0 -106
- package/src/lib/ResourceStores.ts +0 -7
- package/src/lib/index.ts +0 -11
- package/src/lib/initializeXns.ts +0 -16
- package/src/lib/isEqual.ts +0 -42
- package/src/lib/isPayload.ts +0 -24
- package/src/lib/tokenPlacesSplit.ts +0 -17
- package/src/loadOsNode.ts +0 -44
- package/src/manifest/index.ts +0 -2
- package/src/manifest/manifestReplacementTokens.ts +0 -6
- package/src/manifest/os-node.manifest.json +0 -132
- package/src/manifests/dapp-window.manifest.json +0 -36
- package/src/manifests/index.ts +0 -1
- package/src/models/access/ValidDappAccessInterfaces.ts +0 -6
- package/src/models/access/index.ts +0 -1
- package/src/models/index.ts +0 -1
- package/src/profileModuleEvents.ts +0 -43
- package/src/registration/DappRegistrationService.ts +0 -179
- package/src/registration/DappRegistry.ts +0 -131
- package/src/registration/ValidateDappAccessDiviner/Config.ts +0 -24
- package/src/registration/ValidateDappAccessDiviner/Diviner.ts +0 -133
- package/src/registration/ValidateDappAccessDiviner/index.ts +0 -2
- package/src/registration/index.ts +0 -2
- package/src/scripts/xyos/command/config.ts +0 -19
- package/src/scripts/xyos/command/create.ts +0 -22
- package/src/scripts/xyos/command/index.ts +0 -7
- package/src/scripts/xyos/command/manifest.ts +0 -19
- package/src/scripts/xyos/command/start.ts +0 -35
- package/src/scripts/xyos/index.ts +0 -32
- package/src/scripts/xyos/lib/createFromTemplate.ts +0 -11
- package/src/scripts/xyos/lib/headless.ts +0 -68
- package/src/scripts/xyos/lib/index.ts +0 -2
- package/src/signer/Signer.spec.ts +0 -65
- package/src/signer/Signers.ts +0 -74
- package/src/signer/index.ts +0 -1
- package/src/spec/boot.spec.ts +0 -89
- package/src/stack/Base.ts +0 -166
- package/src/stack/Manager.ts +0 -51
- package/src/stack/Map.ts +0 -22
- package/src/stack/OsPubSubNetworkStack.ts +0 -70
- package/src/stack/OsSettingsStack.ts +0 -24
- package/src/stack/XyoPublicNetworkStack.ts +0 -32
- package/src/stack/index.ts +0 -6
- package/src/system/ManageSystemDapps.ts +0 -148
- package/src/system/Queries.ts +0 -69
- package/src/system/index.ts +0 -1
- package/src/types/global.d.ts +0 -9
- package/src/types/images.d.ts +0 -5
- package/src/utils/buildWalletSeedPhrasePayload.ts +0 -51
- package/src/utils/getApiDomain.ts +0 -14
- package/src/utils/index.ts +0 -3
- package/src/utils/renameObjKey.ts +0 -22
- package/src/wallet/DappSeedPhraseRepository.ts +0 -99
- package/src/wallet/SeedPhraseRepository.ts +0 -32
- package/src/wallet/index.ts +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/xyos/lib/headless.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"headless.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/xyos/lib/headless.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAwBpE,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAA;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,eAAO,MAAM,QAAQ,GAAU,uCAE5B,cAAmB,kBA8BrB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Signers.d.ts","sourceRoot":"","sources":["../../../src/signer/Signers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EACV,cAAc,EAAE,eAAe,EAAE,qBAAqB,EACvD,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"Signers.d.ts","sourceRoot":"","sources":["../../../src/signer/Signers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EACV,cAAc,EAAE,eAAe,EAAE,qBAAqB,EACvD,MAAM,uBAAuB,CAAA;AAE9B,OAAO,KAAK,EACV,UAAU,EACV,qBAAqB,EACtB,MAAM,4BAA4B,CAAA;AAEnC,qBAAa,OAAQ,YAAW,eAAe;IAC7C,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,eAAe,CAAiC;IACxD,OAAO,CAAC,YAAY,CAAuB;gBAE/B,KAAK,EAAE,qBAAqB,EAAE,WAAW,EAAE,qBAAqB;IAM5E,OAAO,KAAK,KAAK,GAEhB;IAED,OAAO,KAAK,cAAc,GAEzB;IAED,OAAO,KAAK,WAAW,GAEtB;IAED,SAAS,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS;IAI9E,mBAAmB,CAAC,UAAU,EAAE,UAAU,GAAG,cAAc,GAAG,SAAS;IAIjE,UAAU;YAQF,iBAAiB;CAuBhC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BaseParams } from '@xylabs/
|
|
2
|
-
import { BaseEmitter } from '@xylabs/
|
|
1
|
+
import type { BaseParams } from '@xylabs/sdk-js';
|
|
2
|
+
import { BaseEmitter } from '@xylabs/sdk-js';
|
|
3
3
|
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
4
4
|
import type { AttachableNodeInstance } from '@xyo-network/node-model';
|
|
5
5
|
import type { AdapterSetCreator, NodeAdapter, StackBaseEvents, StackInitializer, XyOsContext } from '@xyo-network/os-model';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["../../../src/stack/Base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["../../../src/stack/Base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAc,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EACK,WAAW,EACtB,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAEjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAErE,OAAO,KAAK,EACV,iBAAiB,EAAE,WAAW,EAAyB,eAAe,EAAE,gBAAgB,EAAE,WAAW,EACtG,MAAM,uBAAuB,CAAA;AAE9B;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,WAAW,CAAC,UAAU,EAAE,eAAe,CAAE,YAAW,gBAAgB;IAEjG,WAAW,UAAQ;IAGnB,OAAO,CAAC,WAAW,CAAe;IAElC,OAAO,CAAC,QAAQ,CAAa;IAG7B,OAAO,CAAC,MAAM,CAAoC;IAGlD,OAAO,CAAC,kBAAkB,CAAkB;IAG5C,OAAO,CAAC,gBAAgB,CAA+B;IAIvD,OAAO,CAAC,SAAS,CAKT;gBAEI,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,gBAAgB;IAOpG,IAAI,UAAU,IAAI,WAAW,EAAE,CAE9B;IAED,IAAI,OAAO,IAAI,WAAW,CAEzB;IAED,IAAI,KAAK,IAAI,sBAAsB,CAElC;IAED,IAAI,iBAAiB,IAAI,gBAAgB,CAExC;IAED,UAAU;IA2BV;;OAEG;IACH,IAAI;IASJ;;;;;OAKG;YACW,kBAAkB;IAahC,OAAO,CAAC,WAAW;YAQL,YAAY;YAKZ,iBAAiB;YAcjB,yBAAyB;CAYxC"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import type { AdapterSetCreator, XyOsContext } from '@xyo-network/os-model';
|
|
2
2
|
import type { StackBase } from './Base.ts';
|
|
3
|
-
export
|
|
4
|
-
new (context: XyOsContext, adapters: AdapterSetCreator): StackBase;
|
|
5
|
-
}
|
|
3
|
+
export type StackConstructor = new (context: XyOsContext, adapters: AdapterSetCreator) => StackBase;
|
|
6
4
|
export interface UninitializedStackSet {
|
|
7
5
|
adapters: AdapterSetCreator;
|
|
8
6
|
stack: StackConstructor;
|
|
9
7
|
}
|
|
10
|
-
export
|
|
11
|
-
[key: string]: UninitializedStackSet;
|
|
12
|
-
}
|
|
8
|
+
export type UninitializedStackMap = Record<string, UninitializedStackSet>;
|
|
13
9
|
export declare class StackManager {
|
|
14
10
|
private initializedStacksMap;
|
|
15
11
|
private stackMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Manager.d.ts","sourceRoot":"","sources":["../../../src/stack/Manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EAAoB,WAAW,EACjD,MAAM,uBAAuB,CAAA;AAE9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAE1C,MAAM,
|
|
1
|
+
{"version":3,"file":"Manager.d.ts","sourceRoot":"","sources":["../../../src/stack/Manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EAAoB,WAAW,EACjD,MAAM,uBAAuB,CAAA;AAE9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAE1C,MAAM,MAAM,gBAAgB,GAAG,KAAK,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,iBAAiB,KAAK,SAAS,CAAA;AAEnG,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,KAAK,EAAE,gBAAgB,CAAA;CACxB;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAA;AAEzE,qBAAa,YAAY;IACvB,OAAO,CAAC,oBAAoB,CAAsC;IAClE,OAAO,CAAC,QAAQ,CAAuB;gBAE3B,QAAQ,EAAE,qBAAqB;IAI3C,IAAI,MAAM,aAET;IAED,OAAO,KAAK,iBAAiB,GAE5B;IAED,QAAQ,CAAC,MAAM,GAAG,SAAS,EAAE,GAAG,EAAE,MAAM,GACO,MAAM,GAAG,SAAS;IAGjE,UAAU,CAAC,OAAO,EAAE,WAAW;IAU/B,IAAI;CAKL"}
|
|
@@ -2,10 +2,10 @@ import type { ModuleFactoryLocatorInstance } from '@xyo-network/module-model';
|
|
|
2
2
|
import type { DappConfig, DappIcon, DappParams, DappSet, PayloadWithVersion, XyOsContext } from '@xyo-network/os-model';
|
|
3
3
|
import { OsCallerBase } from '../OsCallerBase.ts';
|
|
4
4
|
export type ErrorListener = (failedPayloads: DappConfig[]) => void;
|
|
5
|
-
export
|
|
5
|
+
export interface DappSetsAndPayloads {
|
|
6
6
|
dappPayloads: (DappConfig | DappIcon)[];
|
|
7
7
|
dappSets: DappSet[];
|
|
8
|
-
}
|
|
8
|
+
}
|
|
9
9
|
/**
|
|
10
10
|
* Manage the installation of system dapps from payloads and return the built sets
|
|
11
11
|
*/
|
|
@@ -19,7 +19,7 @@ export declare class ManageSystemDapps extends OsCallerBase {
|
|
|
19
19
|
constructor(context: XyOsContext, defaultSystemNames: string[], defaultSystemDapps: PayloadWithVersion[], defaultSystemDappParams: Record<string, DappParams>, locator?: ModuleFactoryLocatorInstance, developmentMode?: boolean);
|
|
20
20
|
/**
|
|
21
21
|
* Add a callback to listen for errors throwing during system dapp registration
|
|
22
|
-
* @param
|
|
22
|
+
* @param errorListener
|
|
23
23
|
*/
|
|
24
24
|
addErrorListener(errorListener: ErrorListener): void;
|
|
25
25
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManageSystemDapps.d.ts","sourceRoot":"","sources":["../../../src/system/ManageSystemDapps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ManageSystemDapps.d.ts","sourceRoot":"","sources":["../../../src/system/ManageSystemDapps.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAA;AAC7E,OAAO,KAAK,EACV,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAC3E,MAAM,uBAAuB,CAAA;AAM9B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAGjD,MAAM,MAAM,aAAa,GAAG,CAAC,cAAc,EAAE,UAAU,EAAE,KAAK,IAAI,CAAA;AAClE,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,CAAC,UAAU,GAAG,QAAQ,CAAC,EAAE,CAAA;IACvC,QAAQ,EAAE,OAAO,EAAE,CAAA;CACpB;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,YAAY;IACjD,OAAO,CAAC,uBAAuB,CAA4B;IAC3D,OAAO,CAAC,kBAAkB,CAAsB;IAChD,OAAO,CAAC,kBAAkB,CAAU;IACpC,OAAO,CAAC,eAAe,CAAC,CAAS;IACjC,OAAO,CAAC,OAAO,CAAC,CAA8B;IAE9C,OAAO,CAAC,gBAAgB,CAAsB;gBAG5C,OAAO,EAAE,WAAW,EACpB,kBAAkB,EAAE,MAAM,EAAE,EAC5B,kBAAkB,EAAE,kBAAkB,EAAE,EACxC,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,EACnD,OAAO,CAAC,EAAE,4BAA4B,EACtC,eAAe,CAAC,EAAE,OAAO;IAU3B;;;OAGG;IACH,gBAAgB,CAAC,aAAa,EAAE,aAAa;IAI7C;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YAKrB,YAAY;YAIZ,cAAc;YA6Bd,UAAU;CAmDzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildWalletSeedPhrasePayload.d.ts","sourceRoot":"","sources":["../../../src/utils/buildWalletSeedPhrasePayload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"buildWalletSeedPhrasePayload.d.ts","sourceRoot":"","sources":["../../../src/utils/buildWalletSeedPhrasePayload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAO7D;;GAEG;AACH,eAAO,MAAM,eAAe,eAAe,CAAA;AAE3C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,eAAe,CAAA;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,GAAU,UAAU,MAAM,EAAE,QAAQ,WAAW,KAAG,OAAO,CAAC;IACjG,OAAO,EAAE,gBAAgB,CAAA;IACzB,QAAQ,EAAE,IAAI,CAAA;CACf,CAWA,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,GAAI,UAAU,MAAM,KAAG,OAAO,CAAC;IAC1E,OAAO,EAAE,gBAAgB,CAAA;IACzB,QAAQ,EAAE,IAAI,CAAA;CACf,CAEA,CAAA"}
|
|
@@ -8,20 +8,19 @@ export type SeedPhrase = string;
|
|
|
8
8
|
export interface SeedPhraseRepository {
|
|
9
9
|
/**
|
|
10
10
|
* Add a seed phrase for a given SeedPhraseId
|
|
11
|
-
* @param
|
|
11
|
+
* @param id
|
|
12
12
|
* @returns Promise
|
|
13
13
|
*/
|
|
14
14
|
add(id: SeedPhraseId): Promise<string>;
|
|
15
15
|
/**
|
|
16
16
|
* For a given DappId, find its wallet or create a new wallet and return its walletId
|
|
17
|
-
* @param
|
|
17
|
+
* @param dappName
|
|
18
18
|
* @returns Promise
|
|
19
19
|
*/
|
|
20
20
|
findOrCreate(dappName: SeedPhraseId): Promise<WalletId>;
|
|
21
21
|
/**
|
|
22
22
|
* Request a seed phrase by supplying a walletId. Note: In the future, the OS might require verification along side the walletId
|
|
23
|
-
*
|
|
24
|
-
* @param {WalletId} walletId
|
|
23
|
+
* @param walletId
|
|
25
24
|
* @returns DappWalletSeedPhrase
|
|
26
25
|
*/
|
|
27
26
|
request(walletId: WalletId): Promise<SeedPhrase | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SeedPhraseRepository.d.ts","sourceRoot":"","sources":["../../../src/wallet/SeedPhraseRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAErD,uDAAuD;AACvD,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA;AACjC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAA;AAE/B;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,GAAG,CAAC,EAAE,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAEtC;;;;OAIG;IACH,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;IAEvD
|
|
1
|
+
{"version":3,"file":"SeedPhraseRepository.d.ts","sourceRoot":"","sources":["../../../src/wallet/SeedPhraseRepository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAErD,uDAAuD;AACvD,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA;AACjC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAA;AAE/B;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,GAAG,CAAC,EAAE,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAEtC;;;;OAIG;IACH,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;IAEvD;;;;OAIG;IACH,OAAO,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAA;CAC7D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/os-runtime",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -30,74 +30,184 @@
|
|
|
30
30
|
},
|
|
31
31
|
"./package.json": "./package.json"
|
|
32
32
|
},
|
|
33
|
-
"module": "./dist/neutral/index.mjs",
|
|
34
|
-
"types": "dist/neutral/index.d.ts",
|
|
35
33
|
"bin": {
|
|
36
34
|
"xyos": "./scripts/xyos.mjs"
|
|
37
35
|
},
|
|
38
36
|
"files": [
|
|
39
37
|
"dist",
|
|
40
|
-
"
|
|
38
|
+
"README.md",
|
|
39
|
+
"scripts"
|
|
41
40
|
],
|
|
42
41
|
"dependencies": {
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@xylabs/hex": "~5.0.42",
|
|
49
|
-
"@xylabs/object": "~5.0.42",
|
|
50
|
-
"@xylabs/promise": "~5.0.42",
|
|
51
|
-
"@xyo-network/account-model": "~5.2.9",
|
|
52
|
-
"@xyo-network/archivist": "~5.2.9",
|
|
53
|
-
"@xyo-network/archivist-indexeddb": "~5.2.9",
|
|
54
|
-
"@xyo-network/archivist-memory": "~5.2.9",
|
|
55
|
-
"@xyo-network/archivist-model": "~5.2.9",
|
|
56
|
-
"@xyo-network/bios": "~7.2.0",
|
|
57
|
-
"@xyo-network/bridge-model": "~5.2.9",
|
|
58
|
-
"@xyo-network/diviner-abstract": "~5.2.9",
|
|
59
|
-
"@xyo-network/diviner-model": "~5.2.9",
|
|
60
|
-
"@xyo-network/diviner-payload-generic": "~5.2.9",
|
|
61
|
-
"@xyo-network/diviner-payload-indexeddb": "~5.2.9",
|
|
62
|
-
"@xyo-network/diviner-payload-model": "~5.2.9",
|
|
63
|
-
"@xyo-network/diviner-temporal-indexing-model": "~5.2.9",
|
|
64
|
-
"@xyo-network/kernel": "~7.2.0",
|
|
65
|
-
"@xyo-network/kernel-model": "~7.2.0",
|
|
66
|
-
"@xyo-network/manifest": "~5.2.9",
|
|
67
|
-
"@xyo-network/manifest-wrapper": "~5.2.9",
|
|
68
|
-
"@xyo-network/module-factory-locator": "~5.2.9",
|
|
69
|
-
"@xyo-network/module-model": "~5.2.9",
|
|
70
|
-
"@xyo-network/module-resolver": "~5.2.9",
|
|
71
|
-
"@xyo-network/node-model": "~5.2.9",
|
|
72
|
-
"@xyo-network/os-model": "~7.2.0",
|
|
73
|
-
"@xyo-network/payload-builder": "~5.2.9",
|
|
74
|
-
"@xyo-network/payload-model": "~5.2.9",
|
|
75
|
-
"@xyo-network/storage-model": "~7.2.0",
|
|
76
|
-
"@xyo-network/wallet": "~5.2.9",
|
|
77
|
-
"@xyo-network/wallet-model": "~5.2.9",
|
|
78
|
-
"async-mutex": "~0.5.0",
|
|
79
|
-
"chalk": "~5.6.2",
|
|
80
|
-
"cosmiconfig": "~9.0.0",
|
|
81
|
-
"cosmiconfig-typescript-loader": "~6.2.0",
|
|
82
|
-
"ethers": "~6.15.0",
|
|
83
|
-
"semver": "~7.7.3",
|
|
84
|
-
"terminal-kit": "~3.1.2",
|
|
85
|
-
"uuid": "~13.0.0",
|
|
86
|
-
"yargs": "~18.0.0"
|
|
42
|
+
"@xyo-network/kernel-model": "~7.3.0",
|
|
43
|
+
"@xyo-network/os-model": "~7.3.0",
|
|
44
|
+
"@xyo-network/storage-model": "~7.3.0",
|
|
45
|
+
"@xyo-network/kernel": "~7.3.0",
|
|
46
|
+
"@xyo-network/bios": "~7.3.0"
|
|
87
47
|
},
|
|
88
48
|
"devDependencies": {
|
|
89
|
-
"@
|
|
49
|
+
"@bitauth/libauth": "~3.0.0",
|
|
50
|
+
"@metamask/providers": "^22.1.1",
|
|
51
|
+
"@opentelemetry/api": "^1.9.1",
|
|
52
|
+
"@opentelemetry/sdk-trace-base": "^2.7.0",
|
|
53
|
+
"@scure/base": "~2.2.0",
|
|
54
|
+
"@scure/bip39": "~2.2.0",
|
|
55
|
+
"@types/node": "~25.6.0",
|
|
90
56
|
"@types/semver": "~7.7.1",
|
|
91
57
|
"@types/terminal-kit": "~2.5.7",
|
|
92
58
|
"@types/uuid": "~11.0.0",
|
|
93
59
|
"@types/yargs": "~17.0.35",
|
|
94
|
-
"@xylabs/
|
|
95
|
-
"@xylabs/
|
|
96
|
-
"@
|
|
97
|
-
"@
|
|
98
|
-
"@
|
|
60
|
+
"@xylabs/geo": "^5.0.101",
|
|
61
|
+
"@xylabs/indexed-db": "^5.0.101",
|
|
62
|
+
"@xylabs/sdk-js": "^5.0.101",
|
|
63
|
+
"@xylabs/threads": "^5.0.101",
|
|
64
|
+
"@xylabs/toolchain": "~7.11.12",
|
|
65
|
+
"@xylabs/tsconfig": "^7.11.12",
|
|
66
|
+
"@xyo-network/account": "~5.5.2",
|
|
67
|
+
"@xyo-network/account-model": "~5.5.2",
|
|
68
|
+
"@xyo-network/api": "~5.5.2",
|
|
69
|
+
"@xyo-network/api-models": "~5.5.2",
|
|
70
|
+
"@xyo-network/archivist": "~5.5.6",
|
|
71
|
+
"@xyo-network/archivist-indexeddb": "~5.5.6",
|
|
72
|
+
"@xyo-network/archivist-model": "^5.5.6",
|
|
73
|
+
"@xyo-network/archivist-view": "~5.5.6",
|
|
74
|
+
"@xyo-network/boundwitness-builder": "^5.5.2",
|
|
75
|
+
"@xyo-network/boundwitness-model": "~5.5.2",
|
|
76
|
+
"@xyo-network/boundwitness-validator": "^5.5.2",
|
|
77
|
+
"@xyo-network/boundwitness-wrapper": "~5.5.2",
|
|
78
|
+
"@xyo-network/bridge-http": "~5.5.6",
|
|
79
|
+
"@xyo-network/bridge-model": "^5.5.6",
|
|
80
|
+
"@xyo-network/bridge-pub-sub": "~5.5.6",
|
|
81
|
+
"@xyo-network/config-payload-plugin": "~5.5.2",
|
|
82
|
+
"@xyo-network/diviner-abstract": "~5.5.6",
|
|
83
|
+
"@xyo-network/diviner-model": "^5.5.6",
|
|
84
|
+
"@xyo-network/diviner-payload-generic": "~5.5.6",
|
|
85
|
+
"@xyo-network/diviner-payload-indexeddb": "~5.5.6",
|
|
86
|
+
"@xyo-network/diviner-payload-model": "~5.5.6",
|
|
87
|
+
"@xyo-network/diviner-temporal-indexing-model": "~5.5.6",
|
|
88
|
+
"@xyo-network/huri": "~5.5.2",
|
|
89
|
+
"@xyo-network/manifest-model": "~5.5.2",
|
|
90
|
+
"@xyo-network/module": "~5.5.6",
|
|
91
|
+
"@xyo-network/module-model": "^5.5.6",
|
|
92
|
+
"@xyo-network/module-resolver": "~5.5.6",
|
|
93
|
+
"@xyo-network/node-memory": "~5.5.6",
|
|
94
|
+
"@xyo-network/node-model": "^5.5.6",
|
|
95
|
+
"@xyo-network/payload-builder": "^5.5.2",
|
|
96
|
+
"@xyo-network/payload-model": "~5.5.2",
|
|
97
|
+
"@xyo-network/payload-plugin": "^5.5.2",
|
|
98
|
+
"@xyo-network/payload-wrapper": "~5.5.2",
|
|
99
|
+
"@xyo-network/query-payload-plugin": "~5.5.2",
|
|
100
|
+
"@xyo-network/sdk-js": "~5.5.6",
|
|
101
|
+
"@xyo-network/sdk-protocol-js": "~5.5.2",
|
|
102
|
+
"@xyo-network/wallet": "~5.5.2",
|
|
103
|
+
"@xyo-network/wallet-model": "^5.5.2",
|
|
104
|
+
"ajv": "^8.18.0",
|
|
105
|
+
"async-mutex": "^0.5.0",
|
|
106
|
+
"bn.js": "^5.2.3",
|
|
107
|
+
"buffer": "^6.0.3",
|
|
108
|
+
"chalk": "^5.6.2",
|
|
109
|
+
"cosmiconfig": "~9.0.1",
|
|
110
|
+
"cosmiconfig-typescript-loader": "~6.3.0",
|
|
111
|
+
"debug": "~4.4.3",
|
|
112
|
+
"esbuild": "~0.28.0",
|
|
113
|
+
"eslint": "^10.2.1",
|
|
114
|
+
"ethers": "^6.16.0",
|
|
115
|
+
"hash-wasm": "~4.12.0",
|
|
116
|
+
"idb": "^8.0.3",
|
|
117
|
+
"lru-cache": "^11.3.5",
|
|
118
|
+
"mapbox-gl": "^3.22.0",
|
|
119
|
+
"observable-fns": "~0.6.1",
|
|
120
|
+
"pako": "^2.1.0",
|
|
121
|
+
"semver": "~7.7.4",
|
|
122
|
+
"store2": "~2.14.4",
|
|
123
|
+
"terminal-kit": "~3.1.2",
|
|
99
124
|
"typescript": "~5.9.3",
|
|
100
|
-
"
|
|
125
|
+
"uuid": "~14.0.0",
|
|
126
|
+
"vite": "~8.0.10",
|
|
127
|
+
"vitest": "~4.1.5",
|
|
128
|
+
"wasm-feature-detect": "~1.8.0",
|
|
129
|
+
"webextension-polyfill": "^0.12.0",
|
|
130
|
+
"yargs": "~18.0.0",
|
|
131
|
+
"zod": "^4.3.6",
|
|
132
|
+
"@xyo-network/bios-model": "~7.3.0",
|
|
133
|
+
"@xyo-network/bios-nodejs": "~7.3.0"
|
|
134
|
+
},
|
|
135
|
+
"peerDependencies": {
|
|
136
|
+
"@bitauth/libauth": ">=3.0.0 <4",
|
|
137
|
+
"@metamask/providers": ">=22.1.1 <23",
|
|
138
|
+
"@opentelemetry/api": ">=1.9.1 <2",
|
|
139
|
+
"@opentelemetry/sdk-trace-base": ">=2.7.0 <3",
|
|
140
|
+
"@scure/base": ">=2.2.0 <3",
|
|
141
|
+
"@scure/bip39": ">=2.2.0 <3",
|
|
142
|
+
"@types/node": ">=25.6.0 <26",
|
|
143
|
+
"@xylabs/geo": ">=5.0.101 <6",
|
|
144
|
+
"@xylabs/indexed-db": ">=5.0.101 <6",
|
|
145
|
+
"@xylabs/sdk-js": ">=5.0.101 <6",
|
|
146
|
+
"@xylabs/threads": ">=5.0.101 <6",
|
|
147
|
+
"@xyo-network/account": ">=5.5.2 <6",
|
|
148
|
+
"@xyo-network/account-model": ">=5.5.2 <6",
|
|
149
|
+
"@xyo-network/api": ">=5.5.2 <6",
|
|
150
|
+
"@xyo-network/api-models": ">=5.5.2 <6",
|
|
151
|
+
"@xyo-network/archivist": ">=5.5.6 <6",
|
|
152
|
+
"@xyo-network/archivist-indexeddb": ">=5.5.6 <6",
|
|
153
|
+
"@xyo-network/archivist-model": ">=5.5.6 <6",
|
|
154
|
+
"@xyo-network/archivist-view": ">=5.5.6 <6",
|
|
155
|
+
"@xyo-network/boundwitness-builder": ">=5.5.2 <6",
|
|
156
|
+
"@xyo-network/boundwitness-model": ">=5.5.2 <6",
|
|
157
|
+
"@xyo-network/boundwitness-validator": ">=5.5.2 <6",
|
|
158
|
+
"@xyo-network/boundwitness-wrapper": ">=5.5.2 <6",
|
|
159
|
+
"@xyo-network/bridge-http": ">=5.5.6 <6",
|
|
160
|
+
"@xyo-network/bridge-model": ">=5.5.6 <6",
|
|
161
|
+
"@xyo-network/bridge-pub-sub": ">=5.5.6 <6",
|
|
162
|
+
"@xyo-network/config-payload-plugin": ">=5.5.2 <6",
|
|
163
|
+
"@xyo-network/diviner-abstract": ">=5.5.6 <6",
|
|
164
|
+
"@xyo-network/diviner-model": ">=5.5.6 <6",
|
|
165
|
+
"@xyo-network/diviner-payload-generic": ">=5.5.6 <6",
|
|
166
|
+
"@xyo-network/diviner-payload-indexeddb": ">=5.5.6 <6",
|
|
167
|
+
"@xyo-network/diviner-payload-model": ">=5.5.6 <6",
|
|
168
|
+
"@xyo-network/diviner-temporal-indexing-model": ">=5.5.6 <6",
|
|
169
|
+
"@xyo-network/huri": ">=5.5.2 <6",
|
|
170
|
+
"@xyo-network/manifest-model": ">=5.5.2 <6",
|
|
171
|
+
"@xyo-network/module": ">=5.5.6 <6",
|
|
172
|
+
"@xyo-network/module-model": ">=5.5.6 <6",
|
|
173
|
+
"@xyo-network/module-resolver": ">=5.5.6 <6",
|
|
174
|
+
"@xyo-network/node-memory": ">=5.5.6 <6",
|
|
175
|
+
"@xyo-network/node-model": ">=5.5.6 <6",
|
|
176
|
+
"@xyo-network/payload-builder": ">=5.5.2 <6",
|
|
177
|
+
"@xyo-network/payload-model": ">=5.5.2 <6",
|
|
178
|
+
"@xyo-network/payload-plugin": ">=5.5.2 <6",
|
|
179
|
+
"@xyo-network/payload-wrapper": ">=5.5.2 <6",
|
|
180
|
+
"@xyo-network/query-payload-plugin": ">=5.5.2 <6",
|
|
181
|
+
"@xyo-network/sdk-js": ">=5.5.6 <6",
|
|
182
|
+
"@xyo-network/sdk-protocol-js": ">=5.5.2 <6",
|
|
183
|
+
"@xyo-network/wallet": ">=5.5.2 <6",
|
|
184
|
+
"@xyo-network/wallet-model": ">=5.5.2 <6",
|
|
185
|
+
"ajv": ">=8.18.0 <9",
|
|
186
|
+
"async-mutex": ">=0.5.0 <1",
|
|
187
|
+
"bn.js": ">=5.2.3 <6",
|
|
188
|
+
"buffer": ">=6.0.3 <7",
|
|
189
|
+
"chalk": ">=5.6.2 <6",
|
|
190
|
+
"cosmiconfig": ">=9.0.1 <10",
|
|
191
|
+
"cosmiconfig-typescript-loader": ">=6.3.0 <7",
|
|
192
|
+
"debug": ">=4.4.3 <5",
|
|
193
|
+
"ethers": ">=6.16.0 <7",
|
|
194
|
+
"hash-wasm": ">=4.12.0 <5",
|
|
195
|
+
"idb": ">=8.0.3 <9",
|
|
196
|
+
"lru-cache": ">=11.3.5 <12",
|
|
197
|
+
"mapbox-gl": ">=3.22.0 <4",
|
|
198
|
+
"observable-fns": ">=0.6.1 <1",
|
|
199
|
+
"pako": ">=2.1.0 <3",
|
|
200
|
+
"semver": ">=7.7.4 <8",
|
|
201
|
+
"store2": ">=2.14.4 <3",
|
|
202
|
+
"terminal-kit": ">=3.1.2 <4",
|
|
203
|
+
"typescript": ">=5.9.3 <6",
|
|
204
|
+
"uuid": ">=14.0.0 <15",
|
|
205
|
+
"wasm-feature-detect": ">=1.8.0 <2",
|
|
206
|
+
"yargs": ">=18.0.0 <19",
|
|
207
|
+
"zod": ">=4.3.6 <5"
|
|
208
|
+
},
|
|
209
|
+
"engines": {
|
|
210
|
+
"node": ">=22"
|
|
101
211
|
},
|
|
102
212
|
"publishConfig": {
|
|
103
213
|
"access": "public"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Signer.spec.d.ts","sourceRoot":"","sources":["../../../src/signer/Signer.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boot.spec.d.ts","sourceRoot":"","sources":["../../../src/spec/boot.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Signer.spec.d.ts","sourceRoot":"","sources":["../../../src/signer/Signer.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boot.spec.d.ts","sourceRoot":"","sources":["../../../src/spec/boot.spec.ts"],"names":[],"mappings":""}
|
package/src/Caller.ts
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/assert'
|
|
2
|
-
import type { Hash } from '@xylabs/hex'
|
|
3
|
-
import type { Promisable } from '@xylabs/promise'
|
|
4
|
-
import type { AccountInstance } from '@xyo-network/account-model'
|
|
5
|
-
import type { PayloadDivinerQueryPayload } from '@xyo-network/diviner-payload-model'
|
|
6
|
-
import { PayloadDivinerQuerySchema } from '@xyo-network/diviner-payload-model'
|
|
7
|
-
import type {
|
|
8
|
-
DappAccessRequest,
|
|
9
|
-
DappId,
|
|
10
|
-
DappInjectableParams,
|
|
11
|
-
DappIntent,
|
|
12
|
-
RegisteredDappAccess,
|
|
13
|
-
XyOsContext,
|
|
14
|
-
} from '@xyo-network/os-model'
|
|
15
|
-
import {
|
|
16
|
-
DappAccessRequestSchema,
|
|
17
|
-
DappInjectableParamsSchema,
|
|
18
|
-
DappIntentTypes,
|
|
19
|
-
DappMode,
|
|
20
|
-
RegisteredDappAccessSchema,
|
|
21
|
-
} from '@xyo-network/os-model'
|
|
22
|
-
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
23
|
-
import type { Payload } from '@xyo-network/payload-model'
|
|
24
|
-
|
|
25
|
-
import { DappCallerBase } from './DappCallerBase.ts'
|
|
26
|
-
import { DappDefaultsResourceQueries } from './DefaultsQueries.ts'
|
|
27
|
-
import { DappIntentCaller } from './intent/index.ts'
|
|
28
|
-
|
|
29
|
-
export class DappCaller extends DappCallerBase {
|
|
30
|
-
constructor(context: XyOsContext) {
|
|
31
|
-
super(context)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Add payloads to the dapp archivist
|
|
36
|
-
* @param {Payload[]} payloads
|
|
37
|
-
* @param {Boolean} force
|
|
38
|
-
*/
|
|
39
|
-
async addPayloadsToDappArchivist(payloads: Payload[] = [], force: boolean = false) {
|
|
40
|
-
const dappArchivist = await this.getDappArchivist()
|
|
41
|
-
if (force) {
|
|
42
|
-
await dappArchivist.insert(payloads)
|
|
43
|
-
} else {
|
|
44
|
-
for (const payload of payloads) {
|
|
45
|
-
const hash = await PayloadBuilder.dataHash(payload)
|
|
46
|
-
const [existing] = await dappArchivist.get([hash])
|
|
47
|
-
if (existing) continue
|
|
48
|
-
await dappArchivist.insert([payload])
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Build Access Request
|
|
55
|
-
* @param {DappAccessRequest['mode']} mode
|
|
56
|
-
* @param {Hash} registeredDappAccessHash
|
|
57
|
-
* @param {string} requestingDappId
|
|
58
|
-
* @param {string | undefined} destinationArchivist
|
|
59
|
-
*/
|
|
60
|
-
buildAccessRequest(mode: DappAccessRequest['mode'], registeredDappAccessHash: Hash, requestingDappId: string, destinationArchivist?: string) {
|
|
61
|
-
const accessRequest: DappAccessRequest = {
|
|
62
|
-
destinationArchivist,
|
|
63
|
-
mode,
|
|
64
|
-
registeredDappAccessHash,
|
|
65
|
-
requestingDappId,
|
|
66
|
-
schema: DappAccessRequestSchema,
|
|
67
|
-
timestamp: Date.now(),
|
|
68
|
-
}
|
|
69
|
-
return accessRequest
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Get all available dapp access requests
|
|
74
|
-
*/
|
|
75
|
-
async getDappAccessPayloads() {
|
|
76
|
-
const diviner = await this.getDappArchivistPayloadDiviner()
|
|
77
|
-
const query: PayloadDivinerQueryPayload = {
|
|
78
|
-
order: 'desc',
|
|
79
|
-
schema: PayloadDivinerQuerySchema,
|
|
80
|
-
schemas: [RegisteredDappAccessSchema],
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return diviner.divine([query])
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Get the most recent dapp injectable params
|
|
88
|
-
* @returns Promise
|
|
89
|
-
*/
|
|
90
|
-
async getDappInjectableParams(): Promise<DappInjectableParams[] | undefined> {
|
|
91
|
-
const diviner = await this.getDappArchivistPayloadDiviner()
|
|
92
|
-
|
|
93
|
-
return await DappDefaultsResourceQueries.getDappInjectableParamsFromRoute(diviner)
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Get the most recent dapp intent
|
|
98
|
-
* @param {string} name
|
|
99
|
-
*/
|
|
100
|
-
async getRegisteredDappAccessByName(name: string) {
|
|
101
|
-
const diviner = await this.getDappArchivistPayloadDiviner()
|
|
102
|
-
const query = {
|
|
103
|
-
limit: 1,
|
|
104
|
-
name,
|
|
105
|
-
schema: PayloadDivinerQuerySchema,
|
|
106
|
-
schemas: [RegisteredDappAccessSchema],
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
const [payload] = assertEx(await diviner.divine([query]), () => 'Unable to find registered dapp access') as RegisteredDappAccess[]
|
|
110
|
-
return payload
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Get the user wallet
|
|
115
|
-
*/
|
|
116
|
-
getUserAccount(dappName: string): Promisable<AccountInstance> {
|
|
117
|
-
// new implementation
|
|
118
|
-
const account = this.context.user.signers?.get(dappName)
|
|
119
|
-
|
|
120
|
-
if (account) {
|
|
121
|
-
return account
|
|
122
|
-
} else {
|
|
123
|
-
throw new Error('Unable to find user wallet')
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Get all wallets for the user
|
|
129
|
-
*/
|
|
130
|
-
getUserAccountsAll(): Promisable<AccountInstance[]> {
|
|
131
|
-
return [...this.context.user.signers?.values() ?? []]
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Make Dapp Access Request
|
|
136
|
-
* @param {string} requestingDappId
|
|
137
|
-
* @param {string} registeredDappAccessHash
|
|
138
|
-
* @param {string} mode
|
|
139
|
-
* @param {string} destinationArchivist
|
|
140
|
-
*/
|
|
141
|
-
async makeDappAccessRequest(
|
|
142
|
-
requestingDappId: DappAccessRequest['requestingDappId'],
|
|
143
|
-
registeredDappAccessHash: DappAccessRequest['registeredDappAccessHash'],
|
|
144
|
-
mode?: DappAccessRequest['mode'],
|
|
145
|
-
destinationArchivist?: DappAccessRequest['destinationArchivist'],
|
|
146
|
-
) {
|
|
147
|
-
const archivist = await this.getDappArchivist()
|
|
148
|
-
const registeredDappAccessPayload = await archivist.get([registeredDappAccessHash])
|
|
149
|
-
if (!registeredDappAccessPayload) {
|
|
150
|
-
throw new Error('No registered dapp access found')
|
|
151
|
-
}
|
|
152
|
-
const accessRequest = this.buildAccessRequest(mode, registeredDappAccessHash, requestingDappId, destinationArchivist)
|
|
153
|
-
await archivist.insert([accessRequest])
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Make Dapp Intent Request
|
|
158
|
-
* @param {DappId} sourceDappId
|
|
159
|
-
* @param {DappId} targetDappId
|
|
160
|
-
* @param {DappIntentTypes=DappIntentTypes.Launch} intent
|
|
161
|
-
* @param {DappIntent['params']} mode
|
|
162
|
-
*/
|
|
163
|
-
async makeDappIntentRequest(
|
|
164
|
-
sourceDappId: DappId,
|
|
165
|
-
targetDappId: DappId,
|
|
166
|
-
intent: DappIntentTypes = DappIntentTypes.Launch,
|
|
167
|
-
mode: DappMode = DappMode.Window,
|
|
168
|
-
params?: DappIntent['params'],
|
|
169
|
-
) {
|
|
170
|
-
if (!sourceDappId) {
|
|
171
|
-
throw new Error('No source dapp id provided, dApps must declare a sourceDappId')
|
|
172
|
-
}
|
|
173
|
-
const archivist = await this.getDappArchivist()
|
|
174
|
-
const dappIntent: DappIntent = DappIntentCaller.buildIntent(sourceDappId, intent, targetDappId, mode, params)
|
|
175
|
-
return await archivist.insert([dappIntent])
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Set the dapp injectable params
|
|
180
|
-
*
|
|
181
|
-
* @param {URLSearchParams} searchParams
|
|
182
|
-
* @param {string} pathname
|
|
183
|
-
*/
|
|
184
|
-
async setDappInjectableRouteParams(searchParams: URLSearchParams = new URLSearchParams(), pathname: string): Promise<void> {
|
|
185
|
-
const dappArchivist = await this.getDappArchivist()
|
|
186
|
-
|
|
187
|
-
const params: DappInjectableParams['params'] = {}
|
|
188
|
-
for (const [key, value] of searchParams.entries()) {
|
|
189
|
-
params[key] = value
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
const payload: DappInjectableParams = {
|
|
193
|
-
params,
|
|
194
|
-
path: pathname,
|
|
195
|
-
schema: DappInjectableParamsSchema,
|
|
196
|
-
source: 'route',
|
|
197
|
-
timestamp: Date.now(),
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
await dappArchivist.insert([payload])
|
|
201
|
-
}
|
|
202
|
-
}
|