@xyo-network/crypto-cards-move-plugin 2.42.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.
@@ -0,0 +1,15 @@
1
+ import { XyoModuleParams } from '@xyo-network/module';
2
+ import { PayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin';
3
+ export declare const XyoCryptoCardsMovePlugin: () => PayloadSetWitnessPlugin<XyoModuleParams<import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & {
4
+ security?: {
5
+ allowed?: Record<string, string[][]> | undefined;
6
+ disallowed?: Record<string, string[]> | undefined;
7
+ } | undefined;
8
+ } & {
9
+ schema: "network.xyo.crypto.cards.move.witness.config";
10
+ } & {
11
+ targetSet?: (import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & import("@xyo-network/payload").PayloadSet & {
12
+ schema: "network.xyo.payload.set";
13
+ }) | undefined;
14
+ }>>;
15
+ //# sourceMappingURL=Plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAErD,OAAO,EAA0B,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AAIhG,eAAO,MAAM,wBAAwB;;;;;;;;;;;GASlC,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { XyoCryptoCardsMoveSchema } from '@xyo-network/crypto-cards-move-payload-plugin';
2
+ import { PayloadSetSchema } from '@xyo-network/payload';
3
+ import { createPayloadSetPlugin } from '@xyo-network/payloadset-plugin';
4
+ import { XyoCryptoCardsMoveWitness } from './Witness';
5
+ export const XyoCryptoCardsMovePlugin = () => createPayloadSetPlugin({ required: { [XyoCryptoCardsMoveSchema]: 1 }, schema: PayloadSetSchema }, {
6
+ witness: async (params) => {
7
+ const result = await XyoCryptoCardsMoveWitness.create(params);
8
+ return result;
9
+ },
10
+ });
11
+ //# sourceMappingURL=Plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAA;AAExF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,sBAAsB,EAA2B,MAAM,gCAAgC,CAAA;AAEhG,OAAO,EAAE,yBAAyB,EAAmC,MAAM,WAAW,CAAA;AAEtF,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,EAAE,CAC3C,sBAAsB,CACpB,EAAE,QAAQ,EAAE,EAAE,CAAC,wBAAwB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE,EACzE;IACE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;QACxB,MAAM,MAAM,GAAG,MAAM,yBAAyB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QAC7D,OAAO,MAAM,CAAA;IACf,CAAC;CACF,CACF,CAAA"}
@@ -0,0 +1,3 @@
1
+ export type XyoCryptoCardsMoveWitnessConfigSchema = 'network.xyo.crypto.cards.move.witness.config';
2
+ export declare const XyoCryptoCardsMoveWitnessConfigSchema: XyoCryptoCardsMoveWitnessConfigSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qCAAqC,GAAG,8CAA8C,CAAA;AAClG,eAAO,MAAM,qCAAqC,EAAE,qCAAsF,CAAA"}
@@ -0,0 +1,2 @@
1
+ export const XyoCryptoCardsMoveWitnessConfigSchema = 'network.xyo.crypto.cards.move.witness.config';
2
+ //# sourceMappingURL=Schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.js","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,qCAAqC,GAA0C,8CAA8C,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { XyoModuleParams } from '@xyo-network/module';
2
+ import { XyoPayload } from '@xyo-network/payload';
3
+ import { Promisable } from '@xyo-network/promise';
4
+ import { AbstractWitness, XyoWitnessConfig } from '@xyo-network/witness';
5
+ import { XyoCryptoCardsMoveWitnessConfigSchema } from './Schema';
6
+ export type XyoCryptoCardsMoveWitnessConfig = XyoWitnessConfig<{
7
+ schema: XyoCryptoCardsMoveWitnessConfigSchema;
8
+ }>;
9
+ export declare class XyoCryptoCardsMoveWitness extends AbstractWitness<XyoCryptoCardsMoveWitnessConfig> {
10
+ static configSchema: "network.xyo.crypto.cards.move.witness.config";
11
+ static create(params?: XyoModuleParams<XyoCryptoCardsMoveWitnessConfig>): Promise<XyoCryptoCardsMoveWitness>;
12
+ observe(payloads: XyoPayload[]): Promisable<XyoPayload[]>;
13
+ }
14
+ //# sourceMappingURL=Witness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAExE,OAAO,EAAE,qCAAqC,EAAE,MAAM,UAAU,CAAA;AAEhE,MAAM,MAAM,+BAA+B,GAAG,gBAAgB,CAAC;IAC7D,MAAM,EAAE,qCAAqC,CAAA;CAC9C,CAAC,CAAA;AAEF,qBAAa,yBAA0B,SAAQ,eAAe,CAAC,+BAA+B,CAAC;IAC7F,OAAgB,YAAY,iDAAwC;WAE9C,MAAM,CAAC,MAAM,CAAC,EAAE,eAAe,CAAC,+BAA+B,CAAC,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAIlH,OAAO,CAAC,QAAQ,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,UAAU,EAAE,CAAC;CAGnE"}
@@ -0,0 +1,12 @@
1
+ import { AbstractWitness } from '@xyo-network/witness';
2
+ import { XyoCryptoCardsMoveWitnessConfigSchema } from './Schema';
3
+ export class XyoCryptoCardsMoveWitness extends AbstractWitness {
4
+ static configSchema = XyoCryptoCardsMoveWitnessConfigSchema;
5
+ static async create(params) {
6
+ return (await super.create(params));
7
+ }
8
+ observe(payloads) {
9
+ return super.observe(payloads);
10
+ }
11
+ }
12
+ //# sourceMappingURL=Witness.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Witness.js","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAoB,MAAM,sBAAsB,CAAA;AAExE,OAAO,EAAE,qCAAqC,EAAE,MAAM,UAAU,CAAA;AAMhE,MAAM,OAAO,yBAA0B,SAAQ,eAAgD;IAC7F,MAAM,CAAU,YAAY,GAAG,qCAAqC,CAAA;IAEpE,MAAM,CAAU,KAAK,CAAC,MAAM,CAAC,MAAyD;QACpF,OAAO,CAAC,MAAM,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAA8B,CAAA;IAClE,CAAC;IAEQ,OAAO,CAAC,QAAsB;QACrC,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IAChC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { XyoCryptoCardsMovePlugin } from './Plugin';
2
+ export * from './Schema';
3
+ export * from './Witness';
4
+ export { XyoCryptoCardsMovePlugin };
5
+ export default XyoCryptoCardsMovePlugin;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAA;AAEnD,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,wBAAwB,EAAE,CAAA;AAGnC,eAAe,wBAAwB,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { XyoCryptoCardsMovePlugin } from './Plugin';
2
+ export * from './Schema';
3
+ export * from './Witness';
4
+ export { XyoCryptoCardsMovePlugin };
5
+ // eslint-disable-next-line import/no-default-export
6
+ export default XyoCryptoCardsMovePlugin;
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAA;AAEnD,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,wBAAwB,EAAE,CAAA;AAEnC,oDAAoD;AACpD,eAAe,wBAAwB,CAAA"}
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@xyo-network/crypto-cards-move-plugin",
3
+ "author": {
4
+ "email": "support@xyo.network",
5
+ "name": "XYO Development Team",
6
+ "url": "https://xyo.network"
7
+ },
8
+ "bugs": {
9
+ "email": "support@xyo.network",
10
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
11
+ },
12
+ "dependencies": {
13
+ "@xyo-network/crypto-cards-move-payload-plugin": "^2.42.0",
14
+ "@xyo-network/module": "^2.42.0",
15
+ "@xyo-network/payload": "^2.42.0",
16
+ "@xyo-network/payloadset-plugin": "^2.42.0",
17
+ "@xyo-network/promise": "^2.42.0",
18
+ "@xyo-network/witness": "^2.42.0",
19
+ "tslib": "^2.4.1"
20
+ },
21
+ "description": "Primary SDK for using XYO Protocol 2.0",
22
+ "browser": "dist/esm/index.js",
23
+ "docs": "dist/docs.json",
24
+ "exports": {
25
+ ".": {
26
+ "node": {
27
+ "import": "./dist/esm/index.js",
28
+ "require": "./dist/cjs/index.js"
29
+ },
30
+ "browser": {
31
+ "import": "./dist/esm/index.js",
32
+ "require": "./dist/cjs/index.js"
33
+ },
34
+ "default": "./dist/esm/index.js"
35
+ },
36
+ "./dist/docs.json": {
37
+ "default": "./dist/docs.json"
38
+ },
39
+ "./package.json": "./package.json"
40
+ },
41
+ "main": "dist/cjs/index.js",
42
+ "module": "dist/esm/index.js",
43
+ "homepage": "https://xyo.network",
44
+ "license": "LGPL-3.0-only",
45
+ "publishConfig": {
46
+ "access": "public"
47
+ },
48
+ "repository": {
49
+ "type": "git",
50
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
51
+ },
52
+ "sideEffects": false,
53
+ "types": "dist/esm/index.d.ts",
54
+ "version": "2.42.0"
55
+ }
@@ -0,0 +1,13 @@
1
+ import { XyoCryptoCardsMoveSchema } from '@xyo-network/crypto-cards-move-payload-plugin'
2
+ import { PayloadSetPluginResolver } from '@xyo-network/payloadset-plugin'
3
+
4
+ import { XyoCryptoCardsMovePlugin } from './Plugin'
5
+
6
+ describe('XyoCryptoCardsMovePlugin', () => {
7
+ test('Add to Resolver', () => {
8
+ const plugin = XyoCryptoCardsMovePlugin()
9
+ const resolver = new PayloadSetPluginResolver().register(plugin)
10
+ expect(resolver.resolve(plugin.set)).toBeObject()
11
+ expect(resolver.witness(XyoCryptoCardsMoveSchema)).toBeObject()
12
+ })
13
+ })
package/src/Plugin.ts ADDED
@@ -0,0 +1,17 @@
1
+ import { XyoCryptoCardsMoveSchema } from '@xyo-network/crypto-cards-move-payload-plugin'
2
+ import { XyoModuleParams } from '@xyo-network/module'
3
+ import { PayloadSetSchema } from '@xyo-network/payload'
4
+ import { createPayloadSetPlugin, PayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'
5
+
6
+ import { XyoCryptoCardsMoveWitness, XyoCryptoCardsMoveWitnessConfig } from './Witness'
7
+
8
+ export const XyoCryptoCardsMovePlugin = () =>
9
+ createPayloadSetPlugin<PayloadSetWitnessPlugin<XyoModuleParams<XyoCryptoCardsMoveWitnessConfig>>>(
10
+ { required: { [XyoCryptoCardsMoveSchema]: 1 }, schema: PayloadSetSchema },
11
+ {
12
+ witness: async (params) => {
13
+ const result = await XyoCryptoCardsMoveWitness.create(params)
14
+ return result
15
+ },
16
+ },
17
+ )
package/src/Schema.ts ADDED
@@ -0,0 +1,2 @@
1
+ export type XyoCryptoCardsMoveWitnessConfigSchema = 'network.xyo.crypto.cards.move.witness.config'
2
+ export const XyoCryptoCardsMoveWitnessConfigSchema: XyoCryptoCardsMoveWitnessConfigSchema = 'network.xyo.crypto.cards.move.witness.config'
package/src/Witness.ts ADDED
@@ -0,0 +1,22 @@
1
+ import { XyoModuleParams } from '@xyo-network/module'
2
+ import { XyoPayload } from '@xyo-network/payload'
3
+ import { Promisable } from '@xyo-network/promise'
4
+ import { AbstractWitness, XyoWitnessConfig } from '@xyo-network/witness'
5
+
6
+ import { XyoCryptoCardsMoveWitnessConfigSchema } from './Schema'
7
+
8
+ export type XyoCryptoCardsMoveWitnessConfig = XyoWitnessConfig<{
9
+ schema: XyoCryptoCardsMoveWitnessConfigSchema
10
+ }>
11
+
12
+ export class XyoCryptoCardsMoveWitness extends AbstractWitness<XyoCryptoCardsMoveWitnessConfig> {
13
+ static override configSchema = XyoCryptoCardsMoveWitnessConfigSchema
14
+
15
+ static override async create(params?: XyoModuleParams<XyoCryptoCardsMoveWitnessConfig>): Promise<XyoCryptoCardsMoveWitness> {
16
+ return (await super.create(params)) as XyoCryptoCardsMoveWitness
17
+ }
18
+
19
+ override observe(payloads: XyoPayload[]): Promisable<XyoPayload[]> {
20
+ return super.observe(payloads)
21
+ }
22
+ }
package/src/index.ts ADDED
@@ -0,0 +1,9 @@
1
+ import { XyoCryptoCardsMovePlugin } from './Plugin'
2
+
3
+ export * from './Schema'
4
+ export * from './Witness'
5
+
6
+ export { XyoCryptoCardsMovePlugin }
7
+
8
+ // eslint-disable-next-line import/no-default-export
9
+ export default XyoCryptoCardsMovePlugin