@xyo-network/module-model 2.57.5 → 2.57.6
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/cjs/Queries/ModuleAccount/Payload.js +6 -0
- package/dist/cjs/Queries/ModuleAccount/Payload.js.map +1 -0
- package/dist/cjs/Queries/ModuleAccount/Query.js +5 -0
- package/dist/cjs/Queries/ModuleAccount/Query.js.map +1 -0
- package/dist/cjs/Queries/ModuleAccount/index.js +6 -0
- package/dist/cjs/Queries/ModuleAccount/index.js.map +1 -0
- package/dist/cjs/Queries/index.js +1 -1
- package/dist/cjs/Queries/index.js.map +1 -1
- package/dist/docs.json +13623 -5100
- package/dist/esm/Queries/ModuleAccount/Payload.js +3 -0
- package/dist/esm/Queries/ModuleAccount/Payload.js.map +1 -0
- package/dist/esm/Queries/ModuleAccount/Query.js +2 -0
- package/dist/esm/Queries/ModuleAccount/Query.js.map +1 -0
- package/dist/esm/Queries/ModuleAccount/index.js +3 -0
- package/dist/esm/Queries/ModuleAccount/index.js.map +1 -0
- package/dist/esm/Queries/index.js +1 -1
- package/dist/esm/Queries/index.js.map +1 -1
- package/dist/types/Config.d.ts +46 -8
- package/dist/types/Config.d.ts.map +1 -1
- package/dist/types/Module.d.ts +10 -0
- package/dist/types/Module.d.ts.map +1 -1
- package/dist/types/Queries/ModuleAccount/Payload.d.ts +9 -0
- package/dist/types/Queries/ModuleAccount/Payload.d.ts.map +1 -0
- package/dist/types/Queries/ModuleAccount/Query.d.ts +7 -0
- package/dist/types/Queries/ModuleAccount/Query.d.ts.map +1 -0
- package/dist/types/Queries/ModuleAccount/index.d.ts +3 -0
- package/dist/types/Queries/ModuleAccount/index.d.ts.map +1 -0
- package/dist/types/Queries/index.d.ts +3 -3
- package/dist/types/Queries/index.d.ts.map +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/functions/creatableModule-1.html +12 -6
- package/docs/functions/isQueryBoundWitness.html +11 -5
- package/docs/index.html +10 -4
- package/docs/interfaces/AddressModuleFilter.html +12 -6
- package/docs/interfaces/CreatableModule.html +18 -12
- package/docs/interfaces/IndividualArchivistConfig.html +134 -0
- package/docs/interfaces/ModuleDescription.html +15 -9
- package/docs/interfaces/ModuleEventData.html +13 -7
- package/docs/interfaces/ModuleRepository.html +55 -19
- package/docs/interfaces/ModuleResolver.html +47 -12
- package/docs/interfaces/ModuleSubscribeFilter.html +12 -6
- package/docs/interfaces/NameModuleFilter.html +12 -6
- package/docs/interfaces/QueryFields.html +15 -9
- package/docs/interfaces/QueryModuleFilter.html +12 -6
- package/docs/modules.html +19 -7
- package/docs/types/AccountModuleParams.html +11 -5
- package/docs/types/AddressPreviousHashPayload.html +96 -0
- package/docs/types/AddressPreviousHashSchema.html +97 -0
- package/docs/types/AddressString.html +11 -5
- package/docs/types/AllModuleFilter.html +11 -5
- package/docs/types/AnyConfigSchema.html +11 -5
- package/docs/types/AnyModuleConfig.html +11 -5
- package/docs/types/AnyModuleFilter.html +11 -5
- package/docs/types/ArchivistModuleConfig.html +96 -0
- package/docs/types/BasicModuleParams.html +11 -5
- package/docs/types/CosigningAddressSet.html +11 -5
- package/docs/types/CreatableModuleFactory.html +11 -5
- package/docs/types/Module.html +11 -5
- package/docs/types/ModuleAccountQuery.html +96 -0
- package/docs/types/{ModulePreviousHashQuerySchema.html → ModuleAccountQuerySchema.html} +16 -10
- package/docs/types/ModuleConfig.html +11 -5
- package/docs/types/ModuleConfigBase.html +12 -6
- package/docs/types/ModuleConfigSchema.html +12 -6
- package/docs/types/ModuleDiscoverQuery.html +11 -5
- package/docs/types/ModuleDiscoverQuerySchema.html +12 -6
- package/docs/types/ModuleEventArgs.html +11 -5
- package/docs/types/ModuleFields.html +11 -5
- package/docs/types/ModuleFilter.html +11 -5
- package/docs/types/ModuleParams.html +11 -5
- package/docs/types/ModuleQueriedEventArgs.html +11 -5
- package/docs/types/ModuleQuery.html +11 -5
- package/docs/types/ModuleQueryBase.html +12 -6
- package/docs/types/ModuleQueryResult.html +11 -5
- package/docs/types/ModuleSubscribeQuery.html +11 -5
- package/docs/types/ModuleSubscribeQuerySchema.html +12 -6
- package/docs/types/{ModulePreviousHashQuery.html → NameOrAddress.html} +15 -9
- package/docs/types/OptionalConfigSchema.html +11 -5
- package/docs/types/Query.html +11 -5
- package/docs/types/QueryBoundWitness.html +11 -5
- package/docs/types/QueryBoundWitnessSchema.html +12 -6
- package/docs/types/SchemaString.html +11 -5
- package/docs/types/WalletModuleParams.html +11 -5
- package/docs/variables/AddressPreviousHashSchema-1.html +97 -0
- package/docs/variables/{ModulePreviousHashQuerySchema-1.html → ModuleAccountQuerySchema-1.html} +16 -10
- package/docs/variables/ModuleConfigSchema-1.html +12 -6
- package/docs/variables/ModuleDiscoverQuerySchema-1.html +12 -6
- package/docs/variables/ModuleSubscribeQuerySchema-1.html +12 -6
- package/docs/variables/QueryBoundWitnessSchema-1.html +12 -6
- package/package.json +11 -10
- package/src/Config.ts +50 -15
- package/src/Module.ts +10 -0
- package/src/Queries/ModuleAccount/Payload.ts +11 -0
- package/src/Queries/ModuleAccount/Query.ts +8 -0
- package/src/Queries/ModuleAccount/index.ts +2 -0
- package/src/Queries/index.ts +3 -3
- package/dist/cjs/Queries/PreviousHash.js +0 -5
- package/dist/cjs/Queries/PreviousHash.js.map +0 -1
- package/dist/esm/Queries/PreviousHash.js +0 -2
- package/dist/esm/Queries/PreviousHash.js.map +0 -1
- package/dist/types/Queries/PreviousHash.d.ts +0 -7
- package/dist/types/Queries/PreviousHash.d.ts.map +0 -1
- package/src/Queries/PreviousHash.ts +0 -8
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
<h1>Variable ModuleSubscribeQuerySchema</h1></div>
|
|
18
18
|
<div class="tsd-signature"><span class="tsd-kind-variable">Module<wbr/>Subscribe<wbr/>Query<wbr/>Schema</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"network.xyo.query.module.subscribe"</span></div><aside class="tsd-sources">
|
|
19
19
|
<ul>
|
|
20
|
-
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
21
|
-
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
20
|
+
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/6e991956c/packages/modules/packages/module/packages/model/src/Queries/Subscribe.ts#L3">modules/packages/module/packages/model/src/Queries/Subscribe.ts:3</a></li>
|
|
21
|
+
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/6e991956c/packages/modules/packages/module/packages/model/src/Queries/Subscribe.ts#L4">modules/packages/module/packages/model/src/Queries/Subscribe.ts:4</a></li></ul></aside></div>
|
|
22
22
|
<div class="col-sidebar">
|
|
23
23
|
<div class="page-menu">
|
|
24
24
|
<div class="tsd-navigation settings">
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
<ul class="tsd-small-nested-navigation">
|
|
39
39
|
<li><a href="../interfaces/AddressModuleFilter.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-256-path"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)" id="icon-256-text"></path></svg><span>Address<wbr/>Module<wbr/>Filter</span></a></li>
|
|
40
40
|
<li><a href="../interfaces/CreatableModule.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Creatable<wbr/>Module</span></a></li>
|
|
41
|
+
<li><a href="../interfaces/IndividualArchivistConfig.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Individual<wbr/>Archivist<wbr/>Config</span></a></li>
|
|
41
42
|
<li><a href="../interfaces/ModuleDescription.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Module<wbr/>Description</span></a></li>
|
|
42
43
|
<li><a href="../interfaces/ModuleEventData.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Module<wbr/>Event<wbr/>Data</span></a></li>
|
|
43
44
|
<li><a href="../interfaces/ModuleRepository.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Module<wbr/>Repository</span></a></li>
|
|
@@ -47,15 +48,20 @@
|
|
|
47
48
|
<li><a href="../interfaces/QueryFields.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Query<wbr/>Fields</span></a></li>
|
|
48
49
|
<li><a href="../interfaces/QueryModuleFilter.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Query<wbr/>Module<wbr/>Filter</span></a></li>
|
|
49
50
|
<li><a href="../types/AccountModuleParams.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4194304-path"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)" id="icon-4194304-text"></path></svg><span>Account<wbr/>Module<wbr/>Params</span></a></li>
|
|
51
|
+
<li><a href="../types/AddressPreviousHashPayload.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Address<wbr/>Previous<wbr/>Hash<wbr/>Payload</span></a></li>
|
|
52
|
+
<li><a href="../types/AddressPreviousHashSchema.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Address<wbr/>Previous<wbr/>Hash<wbr/>Schema</span></a></li>
|
|
50
53
|
<li><a href="../types/AddressString.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Address<wbr/>String</span></a></li>
|
|
51
54
|
<li><a href="../types/AllModuleFilter.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>All<wbr/>Module<wbr/>Filter</span></a></li>
|
|
52
55
|
<li><a href="../types/AnyConfigSchema.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Any<wbr/>Config<wbr/>Schema</span></a></li>
|
|
53
56
|
<li><a href="../types/AnyModuleConfig.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Any<wbr/>Module<wbr/>Config</span></a></li>
|
|
54
57
|
<li><a href="../types/AnyModuleFilter.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Any<wbr/>Module<wbr/>Filter</span></a></li>
|
|
58
|
+
<li><a href="../types/ArchivistModuleConfig.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Archivist<wbr/>Module<wbr/>Config</span></a></li>
|
|
55
59
|
<li><a href="../types/BasicModuleParams.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Basic<wbr/>Module<wbr/>Params</span></a></li>
|
|
56
60
|
<li><a href="../types/CosigningAddressSet.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Cosigning<wbr/>Address<wbr/>Set</span></a></li>
|
|
57
61
|
<li><a href="../types/CreatableModuleFactory.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Creatable<wbr/>Module<wbr/>Factory</span></a></li>
|
|
58
62
|
<li><a href="../types/Module.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module</span></a></li>
|
|
63
|
+
<li><a href="../types/ModuleAccountQuery.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Account<wbr/>Query</span></a></li>
|
|
64
|
+
<li><a href="../types/ModuleAccountQuerySchema.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Account<wbr/>Query<wbr/>Schema</span></a></li>
|
|
59
65
|
<li><a href="../types/ModuleConfig.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Config</span></a></li>
|
|
60
66
|
<li><a href="../types/ModuleConfigBase.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Config<wbr/>Base</span></a></li>
|
|
61
67
|
<li><a href="../types/ModuleConfigSchema.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Config<wbr/>Schema</span></a></li>
|
|
@@ -65,23 +71,23 @@
|
|
|
65
71
|
<li><a href="../types/ModuleFields.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Fields</span></a></li>
|
|
66
72
|
<li><a href="../types/ModuleFilter.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Filter</span></a></li>
|
|
67
73
|
<li><a href="../types/ModuleParams.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Params</span></a></li>
|
|
68
|
-
<li><a href="../types/ModulePreviousHashQuery.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Previous<wbr/>Hash<wbr/>Query</span></a></li>
|
|
69
|
-
<li><a href="../types/ModulePreviousHashQuerySchema.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Previous<wbr/>Hash<wbr/>Query<wbr/>Schema</span></a></li>
|
|
70
74
|
<li><a href="../types/ModuleQueriedEventArgs.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Queried<wbr/>Event<wbr/>Args</span></a></li>
|
|
71
75
|
<li><a href="../types/ModuleQuery.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Query</span></a></li>
|
|
72
76
|
<li><a href="../types/ModuleQueryBase.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Query<wbr/>Base</span></a></li>
|
|
73
77
|
<li><a href="../types/ModuleQueryResult.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Query<wbr/>Result</span></a></li>
|
|
74
78
|
<li><a href="../types/ModuleSubscribeQuery.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Subscribe<wbr/>Query</span></a></li>
|
|
75
79
|
<li><a href="../types/ModuleSubscribeQuerySchema.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Subscribe<wbr/>Query<wbr/>Schema</span></a></li>
|
|
80
|
+
<li><a href="../types/NameOrAddress.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Name<wbr/>Or<wbr/>Address</span></a></li>
|
|
76
81
|
<li><a href="../types/OptionalConfigSchema.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Optional<wbr/>Config<wbr/>Schema</span></a></li>
|
|
77
82
|
<li><a href="../types/Query.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Query</span></a></li>
|
|
78
83
|
<li><a href="../types/QueryBoundWitness.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Query<wbr/>Bound<wbr/>Witness</span></a></li>
|
|
79
84
|
<li><a href="../types/QueryBoundWitnessSchema.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Query<wbr/>Bound<wbr/>Witness<wbr/>Schema</span></a></li>
|
|
80
85
|
<li><a href="../types/SchemaString.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Schema<wbr/>String</span></a></li>
|
|
81
86
|
<li><a href="../types/WalletModuleParams.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Wallet<wbr/>Module<wbr/>Params</span></a></li>
|
|
82
|
-
<li><a href="
|
|
87
|
+
<li><a href="AddressPreviousHashSchema-1.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-32-path"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)" id="icon-32-text"></path></svg><span>Address<wbr/>Previous<wbr/>Hash<wbr/>Schema</span></a></li>
|
|
88
|
+
<li><a href="ModuleAccountQuerySchema-1.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Module<wbr/>Account<wbr/>Query<wbr/>Schema</span></a></li>
|
|
89
|
+
<li><a href="ModuleConfigSchema-1.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Module<wbr/>Config<wbr/>Schema</span></a></li>
|
|
83
90
|
<li><a href="ModuleDiscoverQuerySchema-1.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Module<wbr/>Discover<wbr/>Query<wbr/>Schema</span></a></li>
|
|
84
|
-
<li><a href="ModulePreviousHashQuerySchema-1.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Module<wbr/>Previous<wbr/>Hash<wbr/>Query<wbr/>Schema</span></a></li>
|
|
85
91
|
<li><a href="ModuleSubscribeQuerySchema-1.html" class="current"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Module<wbr/>Subscribe<wbr/>Query<wbr/>Schema</span></a></li>
|
|
86
92
|
<li><a href="QueryBoundWitnessSchema-1.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Query<wbr/>Bound<wbr/>Witness<wbr/>Schema</span></a></li>
|
|
87
93
|
<li><a href="../functions/creatableModule-1.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-64-path"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)" id="icon-64-text"></path></svg><span>creatable<wbr/>Module</span></a></li>
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
<h1>Variable QueryBoundWitnessSchema</h1></div>
|
|
18
18
|
<div class="tsd-signature"><span class="tsd-kind-variable">Query<wbr/>Bound<wbr/>Witness<wbr/>Schema</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"network.xyo.boundwitness"</span></div><aside class="tsd-sources">
|
|
19
19
|
<ul>
|
|
20
|
-
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
21
|
-
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
20
|
+
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/6e991956c/packages/modules/packages/module/packages/model/src/Query/QueryBoundWitness.ts#L4">modules/packages/module/packages/model/src/Query/QueryBoundWitness.ts:4</a></li>
|
|
21
|
+
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/6e991956c/packages/modules/packages/module/packages/model/src/Query/QueryBoundWitness.ts#L5">modules/packages/module/packages/model/src/Query/QueryBoundWitness.ts:5</a></li></ul></aside></div>
|
|
22
22
|
<div class="col-sidebar">
|
|
23
23
|
<div class="page-menu">
|
|
24
24
|
<div class="tsd-navigation settings">
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
<ul class="tsd-small-nested-navigation">
|
|
39
39
|
<li><a href="../interfaces/AddressModuleFilter.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-256-path"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)" id="icon-256-text"></path></svg><span>Address<wbr/>Module<wbr/>Filter</span></a></li>
|
|
40
40
|
<li><a href="../interfaces/CreatableModule.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Creatable<wbr/>Module</span></a></li>
|
|
41
|
+
<li><a href="../interfaces/IndividualArchivistConfig.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Individual<wbr/>Archivist<wbr/>Config</span></a></li>
|
|
41
42
|
<li><a href="../interfaces/ModuleDescription.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Module<wbr/>Description</span></a></li>
|
|
42
43
|
<li><a href="../interfaces/ModuleEventData.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Module<wbr/>Event<wbr/>Data</span></a></li>
|
|
43
44
|
<li><a href="../interfaces/ModuleRepository.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Module<wbr/>Repository</span></a></li>
|
|
@@ -47,15 +48,20 @@
|
|
|
47
48
|
<li><a href="../interfaces/QueryFields.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Query<wbr/>Fields</span></a></li>
|
|
48
49
|
<li><a href="../interfaces/QueryModuleFilter.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Query<wbr/>Module<wbr/>Filter</span></a></li>
|
|
49
50
|
<li><a href="../types/AccountModuleParams.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4194304-path"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)" id="icon-4194304-text"></path></svg><span>Account<wbr/>Module<wbr/>Params</span></a></li>
|
|
51
|
+
<li><a href="../types/AddressPreviousHashPayload.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Address<wbr/>Previous<wbr/>Hash<wbr/>Payload</span></a></li>
|
|
52
|
+
<li><a href="../types/AddressPreviousHashSchema.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Address<wbr/>Previous<wbr/>Hash<wbr/>Schema</span></a></li>
|
|
50
53
|
<li><a href="../types/AddressString.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Address<wbr/>String</span></a></li>
|
|
51
54
|
<li><a href="../types/AllModuleFilter.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>All<wbr/>Module<wbr/>Filter</span></a></li>
|
|
52
55
|
<li><a href="../types/AnyConfigSchema.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Any<wbr/>Config<wbr/>Schema</span></a></li>
|
|
53
56
|
<li><a href="../types/AnyModuleConfig.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Any<wbr/>Module<wbr/>Config</span></a></li>
|
|
54
57
|
<li><a href="../types/AnyModuleFilter.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Any<wbr/>Module<wbr/>Filter</span></a></li>
|
|
58
|
+
<li><a href="../types/ArchivistModuleConfig.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Archivist<wbr/>Module<wbr/>Config</span></a></li>
|
|
55
59
|
<li><a href="../types/BasicModuleParams.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Basic<wbr/>Module<wbr/>Params</span></a></li>
|
|
56
60
|
<li><a href="../types/CosigningAddressSet.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Cosigning<wbr/>Address<wbr/>Set</span></a></li>
|
|
57
61
|
<li><a href="../types/CreatableModuleFactory.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Creatable<wbr/>Module<wbr/>Factory</span></a></li>
|
|
58
62
|
<li><a href="../types/Module.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module</span></a></li>
|
|
63
|
+
<li><a href="../types/ModuleAccountQuery.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Account<wbr/>Query</span></a></li>
|
|
64
|
+
<li><a href="../types/ModuleAccountQuerySchema.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Account<wbr/>Query<wbr/>Schema</span></a></li>
|
|
59
65
|
<li><a href="../types/ModuleConfig.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Config</span></a></li>
|
|
60
66
|
<li><a href="../types/ModuleConfigBase.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Config<wbr/>Base</span></a></li>
|
|
61
67
|
<li><a href="../types/ModuleConfigSchema.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Config<wbr/>Schema</span></a></li>
|
|
@@ -65,23 +71,23 @@
|
|
|
65
71
|
<li><a href="../types/ModuleFields.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Fields</span></a></li>
|
|
66
72
|
<li><a href="../types/ModuleFilter.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Filter</span></a></li>
|
|
67
73
|
<li><a href="../types/ModuleParams.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Params</span></a></li>
|
|
68
|
-
<li><a href="../types/ModulePreviousHashQuery.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Previous<wbr/>Hash<wbr/>Query</span></a></li>
|
|
69
|
-
<li><a href="../types/ModulePreviousHashQuerySchema.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Previous<wbr/>Hash<wbr/>Query<wbr/>Schema</span></a></li>
|
|
70
74
|
<li><a href="../types/ModuleQueriedEventArgs.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Queried<wbr/>Event<wbr/>Args</span></a></li>
|
|
71
75
|
<li><a href="../types/ModuleQuery.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Query</span></a></li>
|
|
72
76
|
<li><a href="../types/ModuleQueryBase.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Query<wbr/>Base</span></a></li>
|
|
73
77
|
<li><a href="../types/ModuleQueryResult.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Query<wbr/>Result</span></a></li>
|
|
74
78
|
<li><a href="../types/ModuleSubscribeQuery.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Subscribe<wbr/>Query</span></a></li>
|
|
75
79
|
<li><a href="../types/ModuleSubscribeQuerySchema.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Module<wbr/>Subscribe<wbr/>Query<wbr/>Schema</span></a></li>
|
|
80
|
+
<li><a href="../types/NameOrAddress.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Name<wbr/>Or<wbr/>Address</span></a></li>
|
|
76
81
|
<li><a href="../types/OptionalConfigSchema.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Optional<wbr/>Config<wbr/>Schema</span></a></li>
|
|
77
82
|
<li><a href="../types/Query.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Query</span></a></li>
|
|
78
83
|
<li><a href="../types/QueryBoundWitness.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Query<wbr/>Bound<wbr/>Witness</span></a></li>
|
|
79
84
|
<li><a href="../types/QueryBoundWitnessSchema.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Query<wbr/>Bound<wbr/>Witness<wbr/>Schema</span></a></li>
|
|
80
85
|
<li><a href="../types/SchemaString.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Schema<wbr/>String</span></a></li>
|
|
81
86
|
<li><a href="../types/WalletModuleParams.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Wallet<wbr/>Module<wbr/>Params</span></a></li>
|
|
82
|
-
<li><a href="
|
|
87
|
+
<li><a href="AddressPreviousHashSchema-1.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-32-path"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)" id="icon-32-text"></path></svg><span>Address<wbr/>Previous<wbr/>Hash<wbr/>Schema</span></a></li>
|
|
88
|
+
<li><a href="ModuleAccountQuerySchema-1.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Module<wbr/>Account<wbr/>Query<wbr/>Schema</span></a></li>
|
|
89
|
+
<li><a href="ModuleConfigSchema-1.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Module<wbr/>Config<wbr/>Schema</span></a></li>
|
|
83
90
|
<li><a href="ModuleDiscoverQuerySchema-1.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Module<wbr/>Discover<wbr/>Query<wbr/>Schema</span></a></li>
|
|
84
|
-
<li><a href="ModulePreviousHashQuerySchema-1.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Module<wbr/>Previous<wbr/>Hash<wbr/>Query<wbr/>Schema</span></a></li>
|
|
85
91
|
<li><a href="ModuleSubscribeQuerySchema-1.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Module<wbr/>Subscribe<wbr/>Query<wbr/>Schema</span></a></li>
|
|
86
92
|
<li><a href="QueryBoundWitnessSchema-1.html" class="current"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Query<wbr/>Bound<wbr/>Witness<wbr/>Schema</span></a></li>
|
|
87
93
|
<li><a href="../functions/creatableModule-1.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-64-path"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)" id="icon-64-text"></path></svg><span>creatable<wbr/>Module</span></a></li>
|
package/package.json
CHANGED
|
@@ -10,17 +10,18 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/account-model": "^2.57.
|
|
14
|
-
"@xyo-network/
|
|
15
|
-
"@xyo-network/
|
|
16
|
-
"@xyo-network/
|
|
17
|
-
"@xyo-network/
|
|
18
|
-
"@xyo-network/
|
|
19
|
-
"@xyo-network/
|
|
13
|
+
"@xyo-network/account-model": "^2.57.6",
|
|
14
|
+
"@xyo-network/address-payload-plugin": "^2.57.6",
|
|
15
|
+
"@xyo-network/boundwitness-model": "^2.57.6",
|
|
16
|
+
"@xyo-network/core": "^2.57.6",
|
|
17
|
+
"@xyo-network/module-events": "^2.57.6",
|
|
18
|
+
"@xyo-network/payload-model": "^2.57.6",
|
|
19
|
+
"@xyo-network/promise": "^2.57.6",
|
|
20
|
+
"@xyo-network/wallet-model": "^2.57.6"
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|
|
22
|
-
"@xylabs/ts-scripts-yarn3": "^2.17.
|
|
23
|
-
"@xylabs/tsconfig": "^2.17.
|
|
23
|
+
"@xylabs/ts-scripts-yarn3": "^2.17.13",
|
|
24
|
+
"@xylabs/tsconfig": "^2.17.13",
|
|
24
25
|
"typescript": "^5.0.4"
|
|
25
26
|
},
|
|
26
27
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
@@ -56,5 +57,5 @@
|
|
|
56
57
|
},
|
|
57
58
|
"sideEffects": false,
|
|
58
59
|
"types": "dist/types/index.d.ts",
|
|
59
|
-
"version": "2.57.
|
|
60
|
+
"version": "2.57.6"
|
|
60
61
|
}
|
package/src/Config.ts
CHANGED
|
@@ -8,31 +8,66 @@ export type AddressString = string
|
|
|
8
8
|
export type CosigningAddressSet = string[]
|
|
9
9
|
export type SchemaString = string
|
|
10
10
|
|
|
11
|
+
export type NameOrAddress = string
|
|
12
|
+
|
|
13
|
+
export interface IndividualArchivistConfig {
|
|
14
|
+
readonly commit?: NameOrAddress
|
|
15
|
+
readonly read?: NameOrAddress
|
|
16
|
+
readonly write?: NameOrAddress
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type ArchivistModuleConfig = NameOrAddress | IndividualArchivistConfig
|
|
20
|
+
|
|
11
21
|
export type ModuleConfigBase<TConfig extends Payload | undefined = undefined> = Payload<
|
|
12
22
|
WithAdditional<
|
|
13
23
|
{
|
|
14
|
-
|
|
15
|
-
|
|
24
|
+
/**
|
|
25
|
+
* The name/address of the Archivist to use for this module
|
|
26
|
+
*/
|
|
27
|
+
readonly archivist?: ArchivistModuleConfig
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Friendly name of module (not collision resistent). Can be used to resolve module
|
|
31
|
+
* when registered/attached to Node.
|
|
32
|
+
*/
|
|
33
|
+
readonly name?: string
|
|
16
34
|
|
|
17
|
-
|
|
18
|
-
|
|
35
|
+
/**
|
|
36
|
+
* paging settings for queries
|
|
37
|
+
*/
|
|
38
|
+
readonly paging?: Record<string, { size?: number }>
|
|
19
39
|
|
|
20
|
-
|
|
40
|
+
/**
|
|
41
|
+
* The config schema for the module
|
|
42
|
+
*/
|
|
43
|
+
readonly schema: TConfig extends Payload ? TConfig['schema'] : ModuleConfigSchema
|
|
21
44
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
45
|
+
/**
|
|
46
|
+
* The query schemas and allowed/disallowed addresses which are allowed to issue them
|
|
47
|
+
* against the module. If both allowed and disallowed is specified, then disallowed
|
|
48
|
+
* takes priority
|
|
49
|
+
*/
|
|
50
|
+
readonly security?: {
|
|
51
|
+
/**
|
|
52
|
+
* Will the module process queries that have unsigned BoundWitness in query tuples
|
|
53
|
+
*/
|
|
54
|
+
readonly allowAnonymous?: boolean
|
|
26
55
|
|
|
27
|
-
|
|
28
|
-
|
|
56
|
+
/**
|
|
57
|
+
* If schema in record, then only these address sets can access query
|
|
58
|
+
*/
|
|
59
|
+
readonly allowed?: Record<SchemaString, (AddressString | CosigningAddressSet)[]>
|
|
29
60
|
|
|
30
|
-
|
|
31
|
-
|
|
61
|
+
/**
|
|
62
|
+
* If schema in record, then anyone except these addresses can access query
|
|
63
|
+
*/
|
|
64
|
+
readonly disallowed?: Record<SchemaString, AddressString[]>
|
|
32
65
|
}
|
|
33
66
|
|
|
34
|
-
|
|
35
|
-
|
|
67
|
+
/**
|
|
68
|
+
* Store the queries made to the module in an archivist if possible
|
|
69
|
+
*/
|
|
70
|
+
readonly storeQueries?: boolean
|
|
36
71
|
},
|
|
37
72
|
Omit<TConfig, 'schema'>
|
|
38
73
|
>
|
package/src/Module.ts
CHANGED
|
@@ -13,7 +13,17 @@ export interface ModuleResolver {
|
|
|
13
13
|
addResolver: (resolver: ModuleResolver) => this
|
|
14
14
|
isModuleResolver: boolean
|
|
15
15
|
removeResolver: (resolver: ModuleResolver) => this
|
|
16
|
+
/**
|
|
17
|
+
* Resolves all modules matching the supplied filter. If no filter
|
|
18
|
+
* is supplied, all modules are returned
|
|
19
|
+
* @param filter Filter criteria for the desired modules
|
|
20
|
+
*/
|
|
16
21
|
resolve<T extends Module = Module>(filter?: ModuleFilter): Promisable<T[]>
|
|
22
|
+
/**
|
|
23
|
+
* Resolves a single module, or undefined if no modules matched the filter.
|
|
24
|
+
* @param filter The desired Module's Address or Name
|
|
25
|
+
*/
|
|
26
|
+
resolveOne<T extends Module = Module>(filter: string): Promisable<T | undefined>
|
|
17
27
|
}
|
|
18
28
|
|
|
19
29
|
export type ModuleEventArgs<TModule extends Module = Module, TArgs extends EventArgs | undefined = undefined> = TArgs extends EventArgs
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AddressSchema } from '@xyo-network/address-payload-plugin'
|
|
2
|
+
import { Payload } from '@xyo-network/payload-model'
|
|
3
|
+
|
|
4
|
+
export const AddressPreviousHashSchema = `${AddressSchema}.hash.previous`
|
|
5
|
+
export type AddressPreviousHashSchema = typeof AddressPreviousHashSchema
|
|
6
|
+
|
|
7
|
+
export type AddressPreviousHashPayload = Payload<{
|
|
8
|
+
address: string
|
|
9
|
+
previousHash?: string
|
|
10
|
+
schema: AddressPreviousHashSchema
|
|
11
|
+
}>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Query } from '../../Query'
|
|
2
|
+
|
|
3
|
+
export type ModuleAccountQuerySchema = 'network.xyo.query.module.account'
|
|
4
|
+
export const ModuleAccountQuerySchema: ModuleAccountQuerySchema = 'network.xyo.query.module.account'
|
|
5
|
+
|
|
6
|
+
export type ModuleAccountQuery = Query<{
|
|
7
|
+
schema: ModuleAccountQuerySchema
|
|
8
|
+
}>
|
package/src/Queries/index.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Query } from '../Query'
|
|
2
2
|
import { ModuleDiscoverQuery } from './Discover'
|
|
3
|
-
import {
|
|
3
|
+
import { ModuleAccountQuery } from './ModuleAccount'
|
|
4
4
|
import { ModuleSubscribeQuery } from './Subscribe'
|
|
5
5
|
|
|
6
6
|
export * from './Discover'
|
|
7
|
-
export * from './
|
|
7
|
+
export * from './ModuleAccount'
|
|
8
8
|
export * from './Subscribe'
|
|
9
9
|
|
|
10
|
-
export type ModuleQueryBase = ModuleDiscoverQuery |
|
|
10
|
+
export type ModuleQueryBase = ModuleDiscoverQuery | ModuleAccountQuery | ModuleSubscribeQuery
|
|
11
11
|
|
|
12
12
|
export type ModuleQuery<T extends Query | void = void> = T extends Query ? ModuleQueryBase | T : ModuleQueryBase
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PreviousHash.js","sourceRoot":"","sources":["../../../src/Queries/PreviousHash.ts"],"names":[],"mappings":";;;AAGa,QAAA,6BAA6B,GAAkC,gDAAgD,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PreviousHash.js","sourceRoot":"","sources":["../../../src/Queries/PreviousHash.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,6BAA6B,GAAkC,gDAAgD,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Query } from '../Query';
|
|
2
|
-
export type ModulePreviousHashQuerySchema = 'network.xyo.query.module.account.hash.previous';
|
|
3
|
-
export declare const ModulePreviousHashQuerySchema: ModulePreviousHashQuerySchema;
|
|
4
|
-
export type ModulePreviousHashQuery = Query<{
|
|
5
|
-
schema: ModulePreviousHashQuerySchema;
|
|
6
|
-
}>;
|
|
7
|
-
//# sourceMappingURL=PreviousHash.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PreviousHash.d.ts","sourceRoot":"","sources":["../../../src/Queries/PreviousHash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAEhC,MAAM,MAAM,6BAA6B,GAAG,gDAAgD,CAAA;AAC5F,eAAO,MAAM,6BAA6B,EAAE,6BAAgF,CAAA;AAE5H,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC;IAC1C,MAAM,EAAE,6BAA6B,CAAA;CACtC,CAAC,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Query } from '../Query'
|
|
2
|
-
|
|
3
|
-
export type ModulePreviousHashQuerySchema = 'network.xyo.query.module.account.hash.previous'
|
|
4
|
-
export const ModulePreviousHashQuerySchema: ModulePreviousHashQuerySchema = 'network.xyo.query.module.account.hash.previous'
|
|
5
|
-
|
|
6
|
-
export type ModulePreviousHashQuery = Query<{
|
|
7
|
-
schema: ModulePreviousHashQuerySchema
|
|
8
|
-
}>
|