@xyo-network/module-model 2.94.3 → 2.94.4
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/browser/module/ModuleQueryFunctions.d.cts +4 -0
- package/dist/browser/module/ModuleQueryFunctions.d.cts.map +1 -1
- package/dist/browser/module/ModuleQueryFunctions.d.mts +4 -0
- package/dist/browser/module/ModuleQueryFunctions.d.mts.map +1 -1
- package/dist/browser/module/ModuleQueryFunctions.d.ts +4 -0
- package/dist/browser/module/ModuleQueryFunctions.d.ts.map +1 -1
- package/dist/node/module/ModuleQueryFunctions.d.cts +4 -0
- package/dist/node/module/ModuleQueryFunctions.d.cts.map +1 -1
- package/dist/node/module/ModuleQueryFunctions.d.mts +4 -0
- package/dist/node/module/ModuleQueryFunctions.d.mts.map +1 -1
- package/dist/node/module/ModuleQueryFunctions.d.ts +4 -0
- package/dist/node/module/ModuleQueryFunctions.d.ts.map +1 -1
- package/package.json +14 -14
- package/src/module/ModuleQueryFunctions.ts +4 -0
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { Address } from '@xylabs/hex';
|
|
2
2
|
import { Promisable } from '@xylabs/promise';
|
|
3
|
+
import { AccountInstance } from '@xyo-network/account-model';
|
|
3
4
|
import { ModuleManifestPayload } from '@xyo-network/manifest-model';
|
|
4
5
|
import { Payload } from '@xyo-network/payload-model';
|
|
6
|
+
import { ModuleQueryResult } from '../ModuleQueryResult';
|
|
5
7
|
import { AddressPreviousHashPayload } from '../Payload';
|
|
6
8
|
export interface ModuleQueryFunctions {
|
|
7
9
|
manifest: (maxDepth?: number, ignoreAddresses?: Address[]) => Promisable<ModuleManifestPayload>;
|
|
10
|
+
manifestQuery: (account: AccountInstance, maxDepth?: number, ignoreAddresses?: Address[]) => Promisable<ModuleQueryResult<ModuleManifestPayload>>;
|
|
8
11
|
moduleAddress: () => Promisable<AddressPreviousHashPayload[]>;
|
|
9
12
|
state: () => Promisable<Payload[]>;
|
|
13
|
+
stateQuery: (account: AccountInstance) => Promisable<ModuleQueryResult>;
|
|
10
14
|
}
|
|
11
15
|
//# sourceMappingURL=ModuleQueryFunctions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModuleQueryFunctions.d.ts","sourceRoot":"","sources":["../../../src/module/ModuleQueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAA;AAEvD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,UAAU,CAAC,qBAAqB,CAAC,CAAA;IAC/F,aAAa,EAAE,MAAM,UAAU,CAAC,0BAA0B,EAAE,CAAC,CAAA;IAC7D,KAAK,EAAE,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"ModuleQueryFunctions.d.ts","sourceRoot":"","sources":["../../../src/module/ModuleQueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAA;AAEvD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,UAAU,CAAC,qBAAqB,CAAC,CAAA;IAC/F,aAAa,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,UAAU,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC,CAAA;IACjJ,aAAa,EAAE,MAAM,UAAU,CAAC,0BAA0B,EAAE,CAAC,CAAA;IAC7D,KAAK,EAAE,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;IAClC,UAAU,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,UAAU,CAAC,iBAAiB,CAAC,CAAA;CACxE"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { Address } from '@xylabs/hex';
|
|
2
2
|
import { Promisable } from '@xylabs/promise';
|
|
3
|
+
import { AccountInstance } from '@xyo-network/account-model';
|
|
3
4
|
import { ModuleManifestPayload } from '@xyo-network/manifest-model';
|
|
4
5
|
import { Payload } from '@xyo-network/payload-model';
|
|
6
|
+
import { ModuleQueryResult } from '../ModuleQueryResult';
|
|
5
7
|
import { AddressPreviousHashPayload } from '../Payload';
|
|
6
8
|
export interface ModuleQueryFunctions {
|
|
7
9
|
manifest: (maxDepth?: number, ignoreAddresses?: Address[]) => Promisable<ModuleManifestPayload>;
|
|
10
|
+
manifestQuery: (account: AccountInstance, maxDepth?: number, ignoreAddresses?: Address[]) => Promisable<ModuleQueryResult<ModuleManifestPayload>>;
|
|
8
11
|
moduleAddress: () => Promisable<AddressPreviousHashPayload[]>;
|
|
9
12
|
state: () => Promisable<Payload[]>;
|
|
13
|
+
stateQuery: (account: AccountInstance) => Promisable<ModuleQueryResult>;
|
|
10
14
|
}
|
|
11
15
|
//# sourceMappingURL=ModuleQueryFunctions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModuleQueryFunctions.d.ts","sourceRoot":"","sources":["../../../src/module/ModuleQueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAA;AAEvD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,UAAU,CAAC,qBAAqB,CAAC,CAAA;IAC/F,aAAa,EAAE,MAAM,UAAU,CAAC,0BAA0B,EAAE,CAAC,CAAA;IAC7D,KAAK,EAAE,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"ModuleQueryFunctions.d.ts","sourceRoot":"","sources":["../../../src/module/ModuleQueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAA;AAEvD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,UAAU,CAAC,qBAAqB,CAAC,CAAA;IAC/F,aAAa,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,UAAU,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC,CAAA;IACjJ,aAAa,EAAE,MAAM,UAAU,CAAC,0BAA0B,EAAE,CAAC,CAAA;IAC7D,KAAK,EAAE,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;IAClC,UAAU,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,UAAU,CAAC,iBAAiB,CAAC,CAAA;CACxE"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { Address } from '@xylabs/hex';
|
|
2
2
|
import { Promisable } from '@xylabs/promise';
|
|
3
|
+
import { AccountInstance } from '@xyo-network/account-model';
|
|
3
4
|
import { ModuleManifestPayload } from '@xyo-network/manifest-model';
|
|
4
5
|
import { Payload } from '@xyo-network/payload-model';
|
|
6
|
+
import { ModuleQueryResult } from '../ModuleQueryResult';
|
|
5
7
|
import { AddressPreviousHashPayload } from '../Payload';
|
|
6
8
|
export interface ModuleQueryFunctions {
|
|
7
9
|
manifest: (maxDepth?: number, ignoreAddresses?: Address[]) => Promisable<ModuleManifestPayload>;
|
|
10
|
+
manifestQuery: (account: AccountInstance, maxDepth?: number, ignoreAddresses?: Address[]) => Promisable<ModuleQueryResult<ModuleManifestPayload>>;
|
|
8
11
|
moduleAddress: () => Promisable<AddressPreviousHashPayload[]>;
|
|
9
12
|
state: () => Promisable<Payload[]>;
|
|
13
|
+
stateQuery: (account: AccountInstance) => Promisable<ModuleQueryResult>;
|
|
10
14
|
}
|
|
11
15
|
//# sourceMappingURL=ModuleQueryFunctions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModuleQueryFunctions.d.ts","sourceRoot":"","sources":["../../../src/module/ModuleQueryFunctions.ts"],"names":[],"mappings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AAe,CAAC,EAAE,OAAO,EAAE,KAAK,UAAU,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC,CAAA;IACjJ,aAAa,EAAE,MAAM,UAAU,CAAC,0BAA0B,EAAE,CAAC,CAAA;IAC7D,KAAK,EAAE,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;IAClC,UAAU,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,UAAU,CAAC,iBAAiB,CAAC,CAAA;CACxE"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { Address } from '@xylabs/hex';
|
|
2
2
|
import { Promisable } from '@xylabs/promise';
|
|
3
|
+
import { AccountInstance } from '@xyo-network/account-model';
|
|
3
4
|
import { ModuleManifestPayload } from '@xyo-network/manifest-model';
|
|
4
5
|
import { Payload } from '@xyo-network/payload-model';
|
|
6
|
+
import { ModuleQueryResult } from '../ModuleQueryResult';
|
|
5
7
|
import { AddressPreviousHashPayload } from '../Payload';
|
|
6
8
|
export interface ModuleQueryFunctions {
|
|
7
9
|
manifest: (maxDepth?: number, ignoreAddresses?: Address[]) => Promisable<ModuleManifestPayload>;
|
|
10
|
+
manifestQuery: (account: AccountInstance, maxDepth?: number, ignoreAddresses?: Address[]) => Promisable<ModuleQueryResult<ModuleManifestPayload>>;
|
|
8
11
|
moduleAddress: () => Promisable<AddressPreviousHashPayload[]>;
|
|
9
12
|
state: () => Promisable<Payload[]>;
|
|
13
|
+
stateQuery: (account: AccountInstance) => Promisable<ModuleQueryResult>;
|
|
10
14
|
}
|
|
11
15
|
//# sourceMappingURL=ModuleQueryFunctions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModuleQueryFunctions.d.ts","sourceRoot":"","sources":["../../../src/module/ModuleQueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO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UAAU,CAAC,0BAA0B,EAAE,CAAC,CAAA;IAC7D,KAAK,EAAE,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;IAClC,UAAU,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,UAAU,CAAC,iBAAiB,CAAC,CAAA;CACxE"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { Address } from '@xylabs/hex';
|
|
2
2
|
import { Promisable } from '@xylabs/promise';
|
|
3
|
+
import { AccountInstance } from '@xyo-network/account-model';
|
|
3
4
|
import { ModuleManifestPayload } from '@xyo-network/manifest-model';
|
|
4
5
|
import { Payload } from '@xyo-network/payload-model';
|
|
6
|
+
import { ModuleQueryResult } from '../ModuleQueryResult';
|
|
5
7
|
import { AddressPreviousHashPayload } from '../Payload';
|
|
6
8
|
export interface ModuleQueryFunctions {
|
|
7
9
|
manifest: (maxDepth?: number, ignoreAddresses?: Address[]) => Promisable<ModuleManifestPayload>;
|
|
10
|
+
manifestQuery: (account: AccountInstance, maxDepth?: number, ignoreAddresses?: Address[]) => Promisable<ModuleQueryResult<ModuleManifestPayload>>;
|
|
8
11
|
moduleAddress: () => Promisable<AddressPreviousHashPayload[]>;
|
|
9
12
|
state: () => Promisable<Payload[]>;
|
|
13
|
+
stateQuery: (account: AccountInstance) => Promisable<ModuleQueryResult>;
|
|
10
14
|
}
|
|
11
15
|
//# sourceMappingURL=ModuleQueryFunctions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModuleQueryFunctions.d.ts","sourceRoot":"","sources":["../../../src/module/ModuleQueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,0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AAE,CAAC,OAAO,EAAE,eAAe,KAAK,UAAU,CAAC,iBAAiB,CAAC,CAAA;CACxE"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { Address } from '@xylabs/hex';
|
|
2
2
|
import { Promisable } from '@xylabs/promise';
|
|
3
|
+
import { AccountInstance } from '@xyo-network/account-model';
|
|
3
4
|
import { ModuleManifestPayload } from '@xyo-network/manifest-model';
|
|
4
5
|
import { Payload } from '@xyo-network/payload-model';
|
|
6
|
+
import { ModuleQueryResult } from '../ModuleQueryResult';
|
|
5
7
|
import { AddressPreviousHashPayload } from '../Payload';
|
|
6
8
|
export interface ModuleQueryFunctions {
|
|
7
9
|
manifest: (maxDepth?: number, ignoreAddresses?: Address[]) => Promisable<ModuleManifestPayload>;
|
|
10
|
+
manifestQuery: (account: AccountInstance, maxDepth?: number, ignoreAddresses?: Address[]) => Promisable<ModuleQueryResult<ModuleManifestPayload>>;
|
|
8
11
|
moduleAddress: () => Promisable<AddressPreviousHashPayload[]>;
|
|
9
12
|
state: () => Promisable<Payload[]>;
|
|
13
|
+
stateQuery: (account: AccountInstance) => Promisable<ModuleQueryResult>;
|
|
10
14
|
}
|
|
11
15
|
//# sourceMappingURL=ModuleQueryFunctions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModuleQueryFunctions.d.ts","sourceRoot":"","sources":["../../../src/module/ModuleQueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAA;AAEvD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAA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
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/assert": "^3.0.
|
|
14
|
-
"@xylabs/hex": "^3.0.
|
|
15
|
-
"@xylabs/lodash": "^3.0.
|
|
16
|
-
"@xylabs/logger": "^3.0.
|
|
17
|
-
"@xylabs/object": "^3.0.
|
|
18
|
-
"@xylabs/promise": "^3.0.
|
|
19
|
-
"@xylabs/retry": "^3.0.
|
|
20
|
-
"@xyo-network/account-model": "~2.94.
|
|
21
|
-
"@xyo-network/address-payload-plugin": "~2.94.
|
|
22
|
-
"@xyo-network/boundwitness-model": "~2.94.
|
|
23
|
-
"@xyo-network/manifest-model": "~2.94.
|
|
24
|
-
"@xyo-network/module-events": "~2.94.
|
|
25
|
-
"@xyo-network/payload-model": "~2.94.
|
|
13
|
+
"@xylabs/assert": "^3.0.25",
|
|
14
|
+
"@xylabs/hex": "^3.0.25",
|
|
15
|
+
"@xylabs/lodash": "^3.0.25",
|
|
16
|
+
"@xylabs/logger": "^3.0.25",
|
|
17
|
+
"@xylabs/object": "^3.0.25",
|
|
18
|
+
"@xylabs/promise": "^3.0.25",
|
|
19
|
+
"@xylabs/retry": "^3.0.25",
|
|
20
|
+
"@xyo-network/account-model": "~2.94.4",
|
|
21
|
+
"@xyo-network/address-payload-plugin": "~2.94.4",
|
|
22
|
+
"@xyo-network/boundwitness-model": "~2.94.4",
|
|
23
|
+
"@xyo-network/manifest-model": "~2.94.4",
|
|
24
|
+
"@xyo-network/module-events": "~2.94.4",
|
|
25
|
+
"@xyo-network/payload-model": "~2.94.4"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@xylabs/ts-scripts-yarn3": "^3.5.2",
|
|
@@ -68,6 +68,6 @@
|
|
|
68
68
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
69
69
|
},
|
|
70
70
|
"sideEffects": false,
|
|
71
|
-
"version": "2.94.
|
|
71
|
+
"version": "2.94.4",
|
|
72
72
|
"type": "module"
|
|
73
73
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { Address } from '@xylabs/hex'
|
|
2
2
|
import { Promisable } from '@xylabs/promise'
|
|
3
|
+
import { AccountInstance } from '@xyo-network/account-model'
|
|
3
4
|
import { ModuleManifestPayload } from '@xyo-network/manifest-model'
|
|
4
5
|
import { Payload } from '@xyo-network/payload-model'
|
|
5
6
|
|
|
7
|
+
import { ModuleQueryResult } from '../ModuleQueryResult'
|
|
6
8
|
import { AddressPreviousHashPayload } from '../Payload'
|
|
7
9
|
|
|
8
10
|
export interface ModuleQueryFunctions {
|
|
9
11
|
manifest: (maxDepth?: number, ignoreAddresses?: Address[]) => Promisable<ModuleManifestPayload>
|
|
12
|
+
manifestQuery: (account: AccountInstance, maxDepth?: number, ignoreAddresses?: Address[]) => Promisable<ModuleQueryResult<ModuleManifestPayload>>
|
|
10
13
|
moduleAddress: () => Promisable<AddressPreviousHashPayload[]>
|
|
11
14
|
state: () => Promisable<Payload[]>
|
|
15
|
+
stateQuery: (account: AccountInstance) => Promisable<ModuleQueryResult>
|
|
12
16
|
}
|