@xyo-network/crypto-cards-game-plugin 2.99.3 → 2.99.5
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/Plugin.d.cts +1 -1
- package/dist/browser/Plugin.d.mts +1 -1
- package/dist/browser/Plugin.d.ts +1 -1
- package/dist/browser/Witness.d.cts +1 -1
- package/dist/browser/Witness.d.mts +1 -1
- package/dist/browser/Witness.d.ts +1 -1
- package/dist/browser/index.cjs +19 -10
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts +3 -3
- package/dist/browser/index.d.mts +3 -3
- package/dist/browser/index.d.ts +3 -3
- package/dist/browser/{index.js → index.mjs} +22 -11
- package/dist/{node/index.js.map → browser/index.mjs.map} +1 -1
- package/dist/neutral/Plugin.d.cts +1 -1
- package/dist/neutral/Plugin.d.mts +1 -1
- package/dist/neutral/Plugin.d.ts +1 -1
- package/dist/neutral/Witness.d.cts +1 -1
- package/dist/neutral/Witness.d.mts +1 -1
- package/dist/neutral/Witness.d.ts +1 -1
- package/dist/neutral/index.cjs +19 -10
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.d.cts +3 -3
- package/dist/neutral/index.d.mts +3 -3
- package/dist/neutral/index.d.ts +3 -3
- package/dist/{node/index.js → neutral/index.mjs} +22 -11
- package/dist/{browser/index.js.map → neutral/index.mjs.map} +1 -1
- package/dist/node/Plugin.d.cts +1 -1
- package/dist/node/Plugin.d.mts +1 -1
- package/dist/node/Plugin.d.ts +1 -1
- package/dist/node/Witness.d.cts +1 -1
- package/dist/node/Witness.d.mts +1 -1
- package/dist/node/Witness.d.ts +1 -1
- package/dist/node/index.cjs +25 -12
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +3 -3
- package/dist/node/index.d.mts +3 -3
- package/dist/node/index.d.ts +3 -3
- package/dist/node/index.mjs +52 -0
- package/dist/{neutral/index.js.map → node/index.mjs.map} +1 -1
- package/package.json +14 -14
- package/src/Plugin.ts +1 -1
- package/src/Witness.ts +1 -1
- package/src/index.ts +3 -3
- package/dist/neutral/index.js +0 -37
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CryptoCardsGameWitness } from './Witness.
|
|
1
|
+
import { CryptoCardsGameWitness } from './Witness.ts';
|
|
2
2
|
export declare const CryptoCardsGamePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CryptoCardsGameWitness>;
|
|
3
3
|
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CryptoCardsGameWitness } from './Witness.
|
|
1
|
+
import { CryptoCardsGameWitness } from './Witness.ts';
|
|
2
2
|
export declare const CryptoCardsGamePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CryptoCardsGameWitness>;
|
|
3
3
|
//# sourceMappingURL=Plugin.d.ts.map
|
package/dist/browser/Plugin.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CryptoCardsGameWitness } from './Witness.
|
|
1
|
+
import { CryptoCardsGameWitness } from './Witness.ts';
|
|
2
2
|
export declare const CryptoCardsGamePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CryptoCardsGameWitness>;
|
|
3
3
|
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -3,7 +3,7 @@ import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
|
3
3
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
4
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
5
5
|
import { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model';
|
|
6
|
-
import { CryptoCardsGameWitnessConfigSchema } from './Schema.
|
|
6
|
+
import { CryptoCardsGameWitnessConfigSchema } from './Schema.ts';
|
|
7
7
|
export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
8
8
|
schema: CryptoCardsGameWitnessConfigSchema;
|
|
9
9
|
}>;
|
|
@@ -3,7 +3,7 @@ import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
|
3
3
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
4
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
5
5
|
import { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model';
|
|
6
|
-
import { CryptoCardsGameWitnessConfigSchema } from './Schema.
|
|
6
|
+
import { CryptoCardsGameWitnessConfigSchema } from './Schema.ts';
|
|
7
7
|
export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
8
8
|
schema: CryptoCardsGameWitnessConfigSchema;
|
|
9
9
|
}>;
|
|
@@ -3,7 +3,7 @@ import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
|
3
3
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
4
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
5
5
|
import { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model';
|
|
6
|
-
import { CryptoCardsGameWitnessConfigSchema } from './Schema.
|
|
6
|
+
import { CryptoCardsGameWitnessConfigSchema } from './Schema.ts';
|
|
7
7
|
export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
8
8
|
schema: CryptoCardsGameWitnessConfigSchema;
|
|
9
9
|
}>;
|
package/dist/browser/index.cjs
CHANGED
|
@@ -3,6 +3,7 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
7
|
var __export = (target, all) => {
|
|
7
8
|
for (var name in all)
|
|
8
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -40,7 +41,13 @@ var CryptoCardsGameWitnessConfigSchema = "network.xyo.crypto.cards.game.witness.
|
|
|
40
41
|
|
|
41
42
|
// src/Witness.ts
|
|
42
43
|
var CryptoCardsGameWitness = class extends import_abstract_witness.AbstractWitness {
|
|
43
|
-
static
|
|
44
|
+
static {
|
|
45
|
+
__name(this, "CryptoCardsGameWitness");
|
|
46
|
+
}
|
|
47
|
+
static configSchemas = [
|
|
48
|
+
...super.configSchemas,
|
|
49
|
+
CryptoCardsGameWitnessConfigSchema
|
|
50
|
+
];
|
|
44
51
|
static defaultConfigSchema = CryptoCardsGameWitnessConfigSchema;
|
|
45
52
|
observeHandler(payloads) {
|
|
46
53
|
return payloads ?? [];
|
|
@@ -48,13 +55,15 @@ var CryptoCardsGameWitness = class extends import_abstract_witness.AbstractWitne
|
|
|
48
55
|
};
|
|
49
56
|
|
|
50
57
|
// src/Plugin.ts
|
|
51
|
-
var CryptoCardsGamePlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
var CryptoCardsGamePlugin = /* @__PURE__ */ __name(() => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)({
|
|
59
|
+
required: {
|
|
60
|
+
[import_crypto_cards_game_payload_plugin.CryptoCardsGameSchema]: 1
|
|
61
|
+
},
|
|
62
|
+
schema: import_payload_model.PayloadSetSchema
|
|
63
|
+
}, {
|
|
64
|
+
witness: /* @__PURE__ */ __name(async (params) => {
|
|
65
|
+
const result = await CryptoCardsGameWitness.create(params);
|
|
66
|
+
return result;
|
|
67
|
+
}, "witness")
|
|
68
|
+
}), "CryptoCardsGamePlugin");
|
|
60
69
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["// eslint-disable-next-line import/no-default-export\nexport { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["// eslint-disable-next-line import/no-default-export\nexport { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts'\nexport * from './Schema.ts'\nexport * from './Witness.ts'\n","import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.ts'\n\nexport const CryptoCardsGamePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(\n { required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await CryptoCardsGameWitness.create(params)\n return result as CryptoCardsGameWitness\n },\n },\n )\n","import { Promisable } from '@xylabs/promise'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsGameWitnessConfig = WitnessConfig<{\n schema: CryptoCardsGameWitnessConfigSchema\n}>\n\nexport type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>\n\nexport class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\nexport const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA,8CAAsC;AACtC,2BAAiC;AACjC,+BAA8C;;;ACD9C,8BAAgC;;;ACAzB,IAAMA,qCAAyE;;;ADa/E,IAAMC,yBAAN,cAAqCC,wCAAAA;EAb5C,OAa4CA;;;EAC1C,OAAyBC,gBAA0B;OAAI,MAAMA;IAAeC;;EAC5E,OAAyBC,sBAA8BD;EAEpCE,eAAeC,UAA6C;AAC7E,WAAOA,YAAY,CAAA;EACrB;AACF;;;ADfO,IAAMC,wBAAwB,iCACnCC,wDACE;EAAEC,UAAU;IAAE,CAACC,6DAAAA,GAAwB;EAAE;EAAGC,QAAQC;AAAiB,GACrE;EACEC,SAAS,8BAAOC,WAAAA;AACd,UAAMC,SAAS,MAAMC,uBAAuBC,OAAOH,MAAAA;AACnD,WAAOC;EACT,GAHS;AAIX,CAAA,GARiC;","names":["CryptoCardsGameWitnessConfigSchema","CryptoCardsGameWitness","AbstractWitness","configSchemas","CryptoCardsGameWitnessConfigSchema","defaultConfigSchema","observeHandler","payloads","CryptoCardsGamePlugin","createPayloadSetWitnessPlugin","required","CryptoCardsGameSchema","schema","PayloadSetSchema","witness","params","result","CryptoCardsGameWitness","create"]}
|
package/dist/browser/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.
|
|
2
|
-
export * from './Schema.
|
|
3
|
-
export * from './Witness.
|
|
1
|
+
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts';
|
|
2
|
+
export * from './Schema.ts';
|
|
3
|
+
export * from './Witness.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/browser/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.
|
|
2
|
-
export * from './Schema.
|
|
3
|
-
export * from './Witness.
|
|
1
|
+
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts';
|
|
2
|
+
export * from './Schema.ts';
|
|
3
|
+
export * from './Witness.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.
|
|
2
|
-
export * from './Schema.
|
|
3
|
-
export * from './Witness.
|
|
1
|
+
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts';
|
|
2
|
+
export * from './Schema.ts';
|
|
3
|
+
export * from './Witness.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
|
|
1
4
|
// src/Plugin.ts
|
|
2
5
|
import { CryptoCardsGameSchema } from "@xyo-network/crypto-cards-game-payload-plugin";
|
|
3
6
|
import { PayloadSetSchema } from "@xyo-network/payload-model";
|
|
@@ -11,7 +14,13 @@ var CryptoCardsGameWitnessConfigSchema = "network.xyo.crypto.cards.game.witness.
|
|
|
11
14
|
|
|
12
15
|
// src/Witness.ts
|
|
13
16
|
var CryptoCardsGameWitness = class extends AbstractWitness {
|
|
14
|
-
static
|
|
17
|
+
static {
|
|
18
|
+
__name(this, "CryptoCardsGameWitness");
|
|
19
|
+
}
|
|
20
|
+
static configSchemas = [
|
|
21
|
+
...super.configSchemas,
|
|
22
|
+
CryptoCardsGameWitnessConfigSchema
|
|
23
|
+
];
|
|
15
24
|
static defaultConfigSchema = CryptoCardsGameWitnessConfigSchema;
|
|
16
25
|
observeHandler(payloads) {
|
|
17
26
|
return payloads ?? [];
|
|
@@ -19,19 +28,21 @@ var CryptoCardsGameWitness = class extends AbstractWitness {
|
|
|
19
28
|
};
|
|
20
29
|
|
|
21
30
|
// src/Plugin.ts
|
|
22
|
-
var CryptoCardsGamePlugin = () => createPayloadSetWitnessPlugin(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
var CryptoCardsGamePlugin = /* @__PURE__ */ __name(() => createPayloadSetWitnessPlugin({
|
|
32
|
+
required: {
|
|
33
|
+
[CryptoCardsGameSchema]: 1
|
|
34
|
+
},
|
|
35
|
+
schema: PayloadSetSchema
|
|
36
|
+
}, {
|
|
37
|
+
witness: /* @__PURE__ */ __name(async (params) => {
|
|
38
|
+
const result = await CryptoCardsGameWitness.create(params);
|
|
39
|
+
return result;
|
|
40
|
+
}, "witness")
|
|
41
|
+
}), "CryptoCardsGamePlugin");
|
|
31
42
|
export {
|
|
32
43
|
CryptoCardsGamePlugin,
|
|
33
44
|
CryptoCardsGameWitness,
|
|
34
45
|
CryptoCardsGameWitnessConfigSchema,
|
|
35
46
|
CryptoCardsGamePlugin as default
|
|
36
47
|
};
|
|
37
|
-
//# sourceMappingURL=index.
|
|
48
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.ts'\n\nexport const CryptoCardsGamePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(\n { required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await CryptoCardsGameWitness.create(params)\n return result as CryptoCardsGameWitness\n },\n },\n )\n","import { Promisable } from '@xylabs/promise'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsGameWitnessConfig = WitnessConfig<{\n schema: CryptoCardsGameWitnessConfigSchema\n}>\n\nexport type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>\n\nexport class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\nexport const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\n"],"mappings":";;;;AAAA,SAASA,6BAA6B;AACtC,SAASC,wBAAwB;AACjC,SAASC,qCAAqC;;;ACD9C,SAASC,uBAAuB;;;ACAzB,IAAMC,qCAAyE;;;ADa/E,IAAMC,yBAAN,cAAqCC,gBAAAA;EAb5C,OAa4CA;;;EAC1C,OAAyBC,gBAA0B;OAAI,MAAMA;IAAeC;;EAC5E,OAAyBC,sBAA8BD;EAEpCE,eAAeC,UAA6C;AAC7E,WAAOA,YAAY,CAAA;EACrB;AACF;;;ADfO,IAAMC,wBAAwB,6BACnCC,8BACE;EAAEC,UAAU;IAAE,CAACC,qBAAAA,GAAwB;EAAE;EAAGC,QAAQC;AAAiB,GACrE;EACEC,SAAS,8BAAOC,WAAAA;AACd,UAAMC,SAAS,MAAMC,uBAAuBC,OAAOH,MAAAA;AACnD,WAAOC;EACT,GAHS;AAIX,CAAA,GARiC;","names":["CryptoCardsGameSchema","PayloadSetSchema","createPayloadSetWitnessPlugin","AbstractWitness","CryptoCardsGameWitnessConfigSchema","CryptoCardsGameWitness","AbstractWitness","configSchemas","CryptoCardsGameWitnessConfigSchema","defaultConfigSchema","observeHandler","payloads","CryptoCardsGamePlugin","createPayloadSetWitnessPlugin","required","CryptoCardsGameSchema","schema","PayloadSetSchema","witness","params","result","CryptoCardsGameWitness","create"]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CryptoCardsGameWitness } from './Witness.
|
|
1
|
+
import { CryptoCardsGameWitness } from './Witness.ts';
|
|
2
2
|
export declare const CryptoCardsGamePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CryptoCardsGameWitness>;
|
|
3
3
|
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CryptoCardsGameWitness } from './Witness.
|
|
1
|
+
import { CryptoCardsGameWitness } from './Witness.ts';
|
|
2
2
|
export declare const CryptoCardsGamePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CryptoCardsGameWitness>;
|
|
3
3
|
//# sourceMappingURL=Plugin.d.ts.map
|
package/dist/neutral/Plugin.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CryptoCardsGameWitness } from './Witness.
|
|
1
|
+
import { CryptoCardsGameWitness } from './Witness.ts';
|
|
2
2
|
export declare const CryptoCardsGamePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CryptoCardsGameWitness>;
|
|
3
3
|
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -3,7 +3,7 @@ import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
|
3
3
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
4
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
5
5
|
import { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model';
|
|
6
|
-
import { CryptoCardsGameWitnessConfigSchema } from './Schema.
|
|
6
|
+
import { CryptoCardsGameWitnessConfigSchema } from './Schema.ts';
|
|
7
7
|
export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
8
8
|
schema: CryptoCardsGameWitnessConfigSchema;
|
|
9
9
|
}>;
|
|
@@ -3,7 +3,7 @@ import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
|
3
3
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
4
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
5
5
|
import { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model';
|
|
6
|
-
import { CryptoCardsGameWitnessConfigSchema } from './Schema.
|
|
6
|
+
import { CryptoCardsGameWitnessConfigSchema } from './Schema.ts';
|
|
7
7
|
export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
8
8
|
schema: CryptoCardsGameWitnessConfigSchema;
|
|
9
9
|
}>;
|
|
@@ -3,7 +3,7 @@ import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
|
3
3
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
4
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
5
5
|
import { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model';
|
|
6
|
-
import { CryptoCardsGameWitnessConfigSchema } from './Schema.
|
|
6
|
+
import { CryptoCardsGameWitnessConfigSchema } from './Schema.ts';
|
|
7
7
|
export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
8
8
|
schema: CryptoCardsGameWitnessConfigSchema;
|
|
9
9
|
}>;
|
package/dist/neutral/index.cjs
CHANGED
|
@@ -3,6 +3,7 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
7
|
var __export = (target, all) => {
|
|
7
8
|
for (var name in all)
|
|
8
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -40,7 +41,13 @@ var CryptoCardsGameWitnessConfigSchema = "network.xyo.crypto.cards.game.witness.
|
|
|
40
41
|
|
|
41
42
|
// src/Witness.ts
|
|
42
43
|
var CryptoCardsGameWitness = class extends import_abstract_witness.AbstractWitness {
|
|
43
|
-
static
|
|
44
|
+
static {
|
|
45
|
+
__name(this, "CryptoCardsGameWitness");
|
|
46
|
+
}
|
|
47
|
+
static configSchemas = [
|
|
48
|
+
...super.configSchemas,
|
|
49
|
+
CryptoCardsGameWitnessConfigSchema
|
|
50
|
+
];
|
|
44
51
|
static defaultConfigSchema = CryptoCardsGameWitnessConfigSchema;
|
|
45
52
|
observeHandler(payloads) {
|
|
46
53
|
return payloads ?? [];
|
|
@@ -48,13 +55,15 @@ var CryptoCardsGameWitness = class extends import_abstract_witness.AbstractWitne
|
|
|
48
55
|
};
|
|
49
56
|
|
|
50
57
|
// src/Plugin.ts
|
|
51
|
-
var CryptoCardsGamePlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
var CryptoCardsGamePlugin = /* @__PURE__ */ __name(() => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)({
|
|
59
|
+
required: {
|
|
60
|
+
[import_crypto_cards_game_payload_plugin.CryptoCardsGameSchema]: 1
|
|
61
|
+
},
|
|
62
|
+
schema: import_payload_model.PayloadSetSchema
|
|
63
|
+
}, {
|
|
64
|
+
witness: /* @__PURE__ */ __name(async (params) => {
|
|
65
|
+
const result = await CryptoCardsGameWitness.create(params);
|
|
66
|
+
return result;
|
|
67
|
+
}, "witness")
|
|
68
|
+
}), "CryptoCardsGamePlugin");
|
|
60
69
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["// eslint-disable-next-line import/no-default-export\nexport { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["// eslint-disable-next-line import/no-default-export\nexport { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts'\nexport * from './Schema.ts'\nexport * from './Witness.ts'\n","import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.ts'\n\nexport const CryptoCardsGamePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(\n { required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await CryptoCardsGameWitness.create(params)\n return result as CryptoCardsGameWitness\n },\n },\n )\n","import { Promisable } from '@xylabs/promise'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsGameWitnessConfig = WitnessConfig<{\n schema: CryptoCardsGameWitnessConfigSchema\n}>\n\nexport type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>\n\nexport class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\nexport const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA,8CAAsC;AACtC,2BAAiC;AACjC,+BAA8C;;;ACD9C,8BAAgC;;;ACAzB,IAAMA,qCAAyE;;;ADa/E,IAAMC,yBAAN,cAAqCC,wCAAAA;EAb5C,OAa4CA;;;EAC1C,OAAyBC,gBAA0B;OAAI,MAAMA;IAAeC;;EAC5E,OAAyBC,sBAA8BD;EAEpCE,eAAeC,UAA6C;AAC7E,WAAOA,YAAY,CAAA;EACrB;AACF;;;ADfO,IAAMC,wBAAwB,iCACnCC,wDACE;EAAEC,UAAU;IAAE,CAACC,6DAAAA,GAAwB;EAAE;EAAGC,QAAQC;AAAiB,GACrE;EACEC,SAAS,8BAAOC,WAAAA;AACd,UAAMC,SAAS,MAAMC,uBAAuBC,OAAOH,MAAAA;AACnD,WAAOC;EACT,GAHS;AAIX,CAAA,GARiC;","names":["CryptoCardsGameWitnessConfigSchema","CryptoCardsGameWitness","AbstractWitness","configSchemas","CryptoCardsGameWitnessConfigSchema","defaultConfigSchema","observeHandler","payloads","CryptoCardsGamePlugin","createPayloadSetWitnessPlugin","required","CryptoCardsGameSchema","schema","PayloadSetSchema","witness","params","result","CryptoCardsGameWitness","create"]}
|
package/dist/neutral/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.
|
|
2
|
-
export * from './Schema.
|
|
3
|
-
export * from './Witness.
|
|
1
|
+
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts';
|
|
2
|
+
export * from './Schema.ts';
|
|
3
|
+
export * from './Witness.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/neutral/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.
|
|
2
|
-
export * from './Schema.
|
|
3
|
-
export * from './Witness.
|
|
1
|
+
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts';
|
|
2
|
+
export * from './Schema.ts';
|
|
3
|
+
export * from './Witness.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.
|
|
2
|
-
export * from './Schema.
|
|
3
|
-
export * from './Witness.
|
|
1
|
+
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts';
|
|
2
|
+
export * from './Schema.ts';
|
|
3
|
+
export * from './Witness.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
|
|
1
4
|
// src/Plugin.ts
|
|
2
5
|
import { CryptoCardsGameSchema } from "@xyo-network/crypto-cards-game-payload-plugin";
|
|
3
6
|
import { PayloadSetSchema } from "@xyo-network/payload-model";
|
|
@@ -11,7 +14,13 @@ var CryptoCardsGameWitnessConfigSchema = "network.xyo.crypto.cards.game.witness.
|
|
|
11
14
|
|
|
12
15
|
// src/Witness.ts
|
|
13
16
|
var CryptoCardsGameWitness = class extends AbstractWitness {
|
|
14
|
-
static
|
|
17
|
+
static {
|
|
18
|
+
__name(this, "CryptoCardsGameWitness");
|
|
19
|
+
}
|
|
20
|
+
static configSchemas = [
|
|
21
|
+
...super.configSchemas,
|
|
22
|
+
CryptoCardsGameWitnessConfigSchema
|
|
23
|
+
];
|
|
15
24
|
static defaultConfigSchema = CryptoCardsGameWitnessConfigSchema;
|
|
16
25
|
observeHandler(payloads) {
|
|
17
26
|
return payloads ?? [];
|
|
@@ -19,19 +28,21 @@ var CryptoCardsGameWitness = class extends AbstractWitness {
|
|
|
19
28
|
};
|
|
20
29
|
|
|
21
30
|
// src/Plugin.ts
|
|
22
|
-
var CryptoCardsGamePlugin = () => createPayloadSetWitnessPlugin(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
var CryptoCardsGamePlugin = /* @__PURE__ */ __name(() => createPayloadSetWitnessPlugin({
|
|
32
|
+
required: {
|
|
33
|
+
[CryptoCardsGameSchema]: 1
|
|
34
|
+
},
|
|
35
|
+
schema: PayloadSetSchema
|
|
36
|
+
}, {
|
|
37
|
+
witness: /* @__PURE__ */ __name(async (params) => {
|
|
38
|
+
const result = await CryptoCardsGameWitness.create(params);
|
|
39
|
+
return result;
|
|
40
|
+
}, "witness")
|
|
41
|
+
}), "CryptoCardsGamePlugin");
|
|
31
42
|
export {
|
|
32
43
|
CryptoCardsGamePlugin,
|
|
33
44
|
CryptoCardsGameWitness,
|
|
34
45
|
CryptoCardsGameWitnessConfigSchema,
|
|
35
46
|
CryptoCardsGamePlugin as default
|
|
36
47
|
};
|
|
37
|
-
//# sourceMappingURL=index.
|
|
48
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.ts'\n\nexport const CryptoCardsGamePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(\n { required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await CryptoCardsGameWitness.create(params)\n return result as CryptoCardsGameWitness\n },\n },\n )\n","import { Promisable } from '@xylabs/promise'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsGameWitnessConfig = WitnessConfig<{\n schema: CryptoCardsGameWitnessConfigSchema\n}>\n\nexport type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>\n\nexport class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\nexport const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\n"],"mappings":";;;;AAAA,SAASA,6BAA6B;AACtC,SAASC,wBAAwB;AACjC,SAASC,qCAAqC;;;ACD9C,SAASC,uBAAuB;;;ACAzB,IAAMC,qCAAyE;;;ADa/E,IAAMC,yBAAN,cAAqCC,gBAAAA;EAb5C,OAa4CA;;;EAC1C,OAAyBC,gBAA0B;OAAI,MAAMA;IAAeC;;EAC5E,OAAyBC,sBAA8BD;EAEpCE,eAAeC,UAA6C;AAC7E,WAAOA,YAAY,CAAA;EACrB;AACF;;;ADfO,IAAMC,wBAAwB,6BACnCC,8BACE;EAAEC,UAAU;IAAE,CAACC,qBAAAA,GAAwB;EAAE;EAAGC,QAAQC;AAAiB,GACrE;EACEC,SAAS,8BAAOC,WAAAA;AACd,UAAMC,SAAS,MAAMC,uBAAuBC,OAAOH,MAAAA;AACnD,WAAOC;EACT,GAHS;AAIX,CAAA,GARiC;","names":["CryptoCardsGameSchema","PayloadSetSchema","createPayloadSetWitnessPlugin","AbstractWitness","CryptoCardsGameWitnessConfigSchema","CryptoCardsGameWitness","AbstractWitness","configSchemas","CryptoCardsGameWitnessConfigSchema","defaultConfigSchema","observeHandler","payloads","CryptoCardsGamePlugin","createPayloadSetWitnessPlugin","required","CryptoCardsGameSchema","schema","PayloadSetSchema","witness","params","result","CryptoCardsGameWitness","create"]}
|
package/dist/node/Plugin.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CryptoCardsGameWitness } from './Witness.
|
|
1
|
+
import { CryptoCardsGameWitness } from './Witness.ts';
|
|
2
2
|
export declare const CryptoCardsGamePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CryptoCardsGameWitness>;
|
|
3
3
|
//# sourceMappingURL=Plugin.d.ts.map
|
package/dist/node/Plugin.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CryptoCardsGameWitness } from './Witness.
|
|
1
|
+
import { CryptoCardsGameWitness } from './Witness.ts';
|
|
2
2
|
export declare const CryptoCardsGamePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CryptoCardsGameWitness>;
|
|
3
3
|
//# sourceMappingURL=Plugin.d.ts.map
|
package/dist/node/Plugin.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CryptoCardsGameWitness } from './Witness.
|
|
1
|
+
import { CryptoCardsGameWitness } from './Witness.ts';
|
|
2
2
|
export declare const CryptoCardsGamePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CryptoCardsGameWitness>;
|
|
3
3
|
//# sourceMappingURL=Plugin.d.ts.map
|
package/dist/node/Witness.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
|
3
3
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
4
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
5
5
|
import { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model';
|
|
6
|
-
import { CryptoCardsGameWitnessConfigSchema } from './Schema.
|
|
6
|
+
import { CryptoCardsGameWitnessConfigSchema } from './Schema.ts';
|
|
7
7
|
export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
8
8
|
schema: CryptoCardsGameWitnessConfigSchema;
|
|
9
9
|
}>;
|
package/dist/node/Witness.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
|
3
3
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
4
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
5
5
|
import { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model';
|
|
6
|
-
import { CryptoCardsGameWitnessConfigSchema } from './Schema.
|
|
6
|
+
import { CryptoCardsGameWitnessConfigSchema } from './Schema.ts';
|
|
7
7
|
export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
8
8
|
schema: CryptoCardsGameWitnessConfigSchema;
|
|
9
9
|
}>;
|
package/dist/node/Witness.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
|
3
3
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
4
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
5
5
|
import { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model';
|
|
6
|
-
import { CryptoCardsGameWitnessConfigSchema } from './Schema.
|
|
6
|
+
import { CryptoCardsGameWitnessConfigSchema } from './Schema.ts';
|
|
7
7
|
export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
8
8
|
schema: CryptoCardsGameWitnessConfigSchema;
|
|
9
9
|
}>;
|
package/dist/node/index.cjs
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __reflectGet = Reflect.get;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
10
|
var __export = (target, all) => {
|
|
7
11
|
for (var name in all)
|
|
8
12
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -16,6 +20,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
20
|
return to;
|
|
17
21
|
};
|
|
18
22
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
24
|
+
var __superGet = (cls, obj, key) => __reflectGet(__getProtoOf(cls), key, obj);
|
|
19
25
|
|
|
20
26
|
// src/index.ts
|
|
21
27
|
var src_exports = {};
|
|
@@ -39,24 +45,31 @@ var import_abstract_witness = require("@xyo-network/abstract-witness");
|
|
|
39
45
|
var CryptoCardsGameWitnessConfigSchema = "network.xyo.crypto.cards.game.witness.config";
|
|
40
46
|
|
|
41
47
|
// src/Witness.ts
|
|
42
|
-
var
|
|
43
|
-
static configSchemas = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema];
|
|
44
|
-
static defaultConfigSchema = CryptoCardsGameWitnessConfigSchema;
|
|
48
|
+
var _CryptoCardsGameWitness = class _CryptoCardsGameWitness extends import_abstract_witness.AbstractWitness {
|
|
45
49
|
observeHandler(payloads) {
|
|
46
50
|
return payloads ?? [];
|
|
47
51
|
}
|
|
48
52
|
};
|
|
53
|
+
__name(_CryptoCardsGameWitness, "CryptoCardsGameWitness");
|
|
54
|
+
__publicField(_CryptoCardsGameWitness, "configSchemas", [
|
|
55
|
+
...__superGet(_CryptoCardsGameWitness, _CryptoCardsGameWitness, "configSchemas"),
|
|
56
|
+
CryptoCardsGameWitnessConfigSchema
|
|
57
|
+
]);
|
|
58
|
+
__publicField(_CryptoCardsGameWitness, "defaultConfigSchema", CryptoCardsGameWitnessConfigSchema);
|
|
59
|
+
var CryptoCardsGameWitness = _CryptoCardsGameWitness;
|
|
49
60
|
|
|
50
61
|
// src/Plugin.ts
|
|
51
|
-
var CryptoCardsGamePlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
62
|
+
var CryptoCardsGamePlugin = /* @__PURE__ */ __name(() => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)({
|
|
63
|
+
required: {
|
|
64
|
+
[import_crypto_cards_game_payload_plugin.CryptoCardsGameSchema]: 1
|
|
65
|
+
},
|
|
66
|
+
schema: import_payload_model.PayloadSetSchema
|
|
67
|
+
}, {
|
|
68
|
+
witness: /* @__PURE__ */ __name(async (params) => {
|
|
69
|
+
const result = await CryptoCardsGameWitness.create(params);
|
|
70
|
+
return result;
|
|
71
|
+
}, "witness")
|
|
72
|
+
}), "CryptoCardsGamePlugin");
|
|
60
73
|
// Annotate the CommonJS export names for ESM import in node:
|
|
61
74
|
0 && (module.exports = {
|
|
62
75
|
CryptoCardsGamePlugin,
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["// eslint-disable-next-line import/no-default-export\nexport { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["// eslint-disable-next-line import/no-default-export\nexport { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts'\nexport * from './Schema.ts'\nexport * from './Witness.ts'\n","import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.ts'\n\nexport const CryptoCardsGamePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(\n { required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await CryptoCardsGameWitness.create(params)\n return result as CryptoCardsGameWitness\n },\n },\n )\n","import { Promisable } from '@xylabs/promise'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsGameWitnessConfig = WitnessConfig<{\n schema: CryptoCardsGameWitnessConfigSchema\n}>\n\nexport type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>\n\nexport class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\nexport const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA,8CAAsC;AACtC,2BAAiC;AACjC,+BAA8C;;;ACD9C,8BAAgC;;;ACAzB,IAAMA,qCAAyE;;;ADa/E,IAAMC,0BAAN,MAAMA,gCAA+BC,wCAAAA;EAIvBC,eAAeC,UAA6C;AAC7E,WAAOA,YAAY,CAAA;EACrB;AACF;AAP4CF;AAC1C,cADWD,yBACcI,iBAA0B;KAAI,6DAAMA;EAAeC;;AAC5E,cAFWL,yBAEcM,uBAA8BD;AAFlD,IAAML,yBAAN;;;ADRA,IAAMO,wBAAwB,iCACnCC,wDACE;EAAEC,UAAU;IAAE,CAACC,6DAAAA,GAAwB;EAAE;EAAGC,QAAQC;AAAiB,GACrE;EACEC,SAAS,8BAAOC,WAAAA;AACd,UAAMC,SAAS,MAAMC,uBAAuBC,OAAOH,MAAAA;AACnD,WAAOC;EACT,GAHS;AAIX,CAAA,GARiC;","names":["CryptoCardsGameWitnessConfigSchema","CryptoCardsGameWitness","AbstractWitness","observeHandler","payloads","configSchemas","CryptoCardsGameWitnessConfigSchema","defaultConfigSchema","CryptoCardsGamePlugin","createPayloadSetWitnessPlugin","required","CryptoCardsGameSchema","schema","PayloadSetSchema","witness","params","result","CryptoCardsGameWitness","create"]}
|
package/dist/node/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.
|
|
2
|
-
export * from './Schema.
|
|
3
|
-
export * from './Witness.
|
|
1
|
+
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts';
|
|
2
|
+
export * from './Schema.ts';
|
|
3
|
+
export * from './Witness.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/node/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.
|
|
2
|
-
export * from './Schema.
|
|
3
|
-
export * from './Witness.
|
|
1
|
+
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts';
|
|
2
|
+
export * from './Schema.ts';
|
|
3
|
+
export * from './Witness.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.
|
|
2
|
-
export * from './Schema.
|
|
3
|
-
export * from './Witness.
|
|
1
|
+
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts';
|
|
2
|
+
export * from './Schema.ts';
|
|
3
|
+
export * from './Witness.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
3
|
+
var __reflectGet = Reflect.get;
|
|
4
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
|
+
var __superGet = (cls, obj, key) => __reflectGet(__getProtoOf(cls), key, obj);
|
|
8
|
+
|
|
9
|
+
// src/Plugin.ts
|
|
10
|
+
import { CryptoCardsGameSchema } from "@xyo-network/crypto-cards-game-payload-plugin";
|
|
11
|
+
import { PayloadSetSchema } from "@xyo-network/payload-model";
|
|
12
|
+
import { createPayloadSetWitnessPlugin } from "@xyo-network/payloadset-plugin";
|
|
13
|
+
|
|
14
|
+
// src/Witness.ts
|
|
15
|
+
import { AbstractWitness } from "@xyo-network/abstract-witness";
|
|
16
|
+
|
|
17
|
+
// src/Schema.ts
|
|
18
|
+
var CryptoCardsGameWitnessConfigSchema = "network.xyo.crypto.cards.game.witness.config";
|
|
19
|
+
|
|
20
|
+
// src/Witness.ts
|
|
21
|
+
var _CryptoCardsGameWitness = class _CryptoCardsGameWitness extends AbstractWitness {
|
|
22
|
+
observeHandler(payloads) {
|
|
23
|
+
return payloads ?? [];
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
__name(_CryptoCardsGameWitness, "CryptoCardsGameWitness");
|
|
27
|
+
__publicField(_CryptoCardsGameWitness, "configSchemas", [
|
|
28
|
+
...__superGet(_CryptoCardsGameWitness, _CryptoCardsGameWitness, "configSchemas"),
|
|
29
|
+
CryptoCardsGameWitnessConfigSchema
|
|
30
|
+
]);
|
|
31
|
+
__publicField(_CryptoCardsGameWitness, "defaultConfigSchema", CryptoCardsGameWitnessConfigSchema);
|
|
32
|
+
var CryptoCardsGameWitness = _CryptoCardsGameWitness;
|
|
33
|
+
|
|
34
|
+
// src/Plugin.ts
|
|
35
|
+
var CryptoCardsGamePlugin = /* @__PURE__ */ __name(() => createPayloadSetWitnessPlugin({
|
|
36
|
+
required: {
|
|
37
|
+
[CryptoCardsGameSchema]: 1
|
|
38
|
+
},
|
|
39
|
+
schema: PayloadSetSchema
|
|
40
|
+
}, {
|
|
41
|
+
witness: /* @__PURE__ */ __name(async (params) => {
|
|
42
|
+
const result = await CryptoCardsGameWitness.create(params);
|
|
43
|
+
return result;
|
|
44
|
+
}, "witness")
|
|
45
|
+
}), "CryptoCardsGamePlugin");
|
|
46
|
+
export {
|
|
47
|
+
CryptoCardsGamePlugin,
|
|
48
|
+
CryptoCardsGameWitness,
|
|
49
|
+
CryptoCardsGameWitnessConfigSchema,
|
|
50
|
+
CryptoCardsGamePlugin as default
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.ts'\n\nexport const CryptoCardsGamePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(\n { required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await CryptoCardsGameWitness.create(params)\n return result as CryptoCardsGameWitness\n },\n },\n )\n","import { Promisable } from '@xylabs/promise'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsGameWitnessConfig = WitnessConfig<{\n schema: CryptoCardsGameWitnessConfigSchema\n}>\n\nexport type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>\n\nexport class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\nexport const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\n"],"mappings":";;;;;;;;;AAAA,SAASA,6BAA6B;AACtC,SAASC,wBAAwB;AACjC,SAASC,qCAAqC;;;ACD9C,SAASC,uBAAuB;;;ACAzB,IAAMC,qCAAyE;;;ADa/E,IAAMC,0BAAN,MAAMA,gCAA+BC,gBAAAA;EAIvBC,eAAeC,UAA6C;AAC7E,WAAOA,YAAY,CAAA;EACrB;AACF;AAP4CF;AAC1C,cADWD,yBACcI,iBAA0B;KAAI,6DAAMA;EAAeC;;AAC5E,cAFWL,yBAEcM,uBAA8BD;AAFlD,IAAML,yBAAN;;;ADRA,IAAMO,wBAAwB,6BACnCC,8BACE;EAAEC,UAAU;IAAE,CAACC,qBAAAA,GAAwB;EAAE;EAAGC,QAAQC;AAAiB,GACrE;EACEC,SAAS,8BAAOC,WAAAA;AACd,UAAMC,SAAS,MAAMC,uBAAuBC,OAAOH,MAAAA;AACnD,WAAOC;EACT,GAHS;AAIX,CAAA,GARiC;","names":["CryptoCardsGameSchema","PayloadSetSchema","createPayloadSetWitnessPlugin","AbstractWitness","CryptoCardsGameWitnessConfigSchema","CryptoCardsGameWitness","AbstractWitness","observeHandler","payloads","configSchemas","CryptoCardsGameWitnessConfigSchema","defaultConfigSchema","CryptoCardsGamePlugin","createPayloadSetWitnessPlugin","required","CryptoCardsGameSchema","schema","PayloadSetSchema","witness","params","result","CryptoCardsGameWitness","create"]}
|
package/package.json
CHANGED
|
@@ -10,18 +10,18 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/plugins/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/promise": "^3.6.
|
|
14
|
-
"@xyo-network/abstract-witness": "^2.
|
|
15
|
-
"@xyo-network/crypto-cards-game-payload-plugin": "^2.99.
|
|
16
|
-
"@xyo-network/module-model": "^2.
|
|
17
|
-
"@xyo-network/payload-model": "^2.
|
|
18
|
-
"@xyo-network/payloadset-plugin": "^2.
|
|
19
|
-
"@xyo-network/witness-model": "^2.
|
|
13
|
+
"@xylabs/promise": "^3.6.8",
|
|
14
|
+
"@xyo-network/abstract-witness": "^2.111.2",
|
|
15
|
+
"@xyo-network/crypto-cards-game-payload-plugin": "^2.99.5",
|
|
16
|
+
"@xyo-network/module-model": "^2.111.2",
|
|
17
|
+
"@xyo-network/payload-model": "^2.111.2",
|
|
18
|
+
"@xyo-network/payloadset-plugin": "^2.111.2",
|
|
19
|
+
"@xyo-network/witness-model": "^2.111.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@xylabs/ts-scripts-yarn3": "^3.
|
|
23
|
-
"@xylabs/tsconfig": "^3.
|
|
24
|
-
"typescript": "^5.5.
|
|
22
|
+
"@xylabs/ts-scripts-yarn3": "^3.15.13",
|
|
23
|
+
"@xylabs/tsconfig": "^3.15.13",
|
|
24
|
+
"typescript": "^5.5.4"
|
|
25
25
|
},
|
|
26
26
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
27
27
|
"types": "dist/node/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"import": {
|
|
36
36
|
"types": "./dist/browser/index.d.mts",
|
|
37
|
-
"default": "./dist/browser/index.
|
|
37
|
+
"default": "./dist/browser/index.mjs"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"node": {
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
},
|
|
45
45
|
"import": {
|
|
46
46
|
"types": "./dist/node/index.d.mts",
|
|
47
|
-
"default": "./dist/node/index.
|
|
47
|
+
"default": "./dist/node/index.mjs"
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"./package.json": "./package.json"
|
|
52
52
|
},
|
|
53
53
|
"main": "dist/node/index.cjs",
|
|
54
|
-
"module": "dist/node/index.
|
|
54
|
+
"module": "dist/node/index.mjs",
|
|
55
55
|
"homepage": "https://xyo.network",
|
|
56
56
|
"license": "LGPL-3.0-only",
|
|
57
57
|
"publishConfig": {
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"url": "https://github.com/XYOracleNetwork/plugins.git"
|
|
63
63
|
},
|
|
64
64
|
"sideEffects": false,
|
|
65
|
-
"version": "2.99.
|
|
65
|
+
"version": "2.99.5",
|
|
66
66
|
"type": "module"
|
|
67
67
|
}
|
package/src/Plugin.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-pl
|
|
|
2
2
|
import { PayloadSetSchema } from '@xyo-network/payload-model'
|
|
3
3
|
import { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'
|
|
4
4
|
|
|
5
|
-
import { CryptoCardsGameWitness } from './Witness.
|
|
5
|
+
import { CryptoCardsGameWitness } from './Witness.ts'
|
|
6
6
|
|
|
7
7
|
export const CryptoCardsGamePlugin = () =>
|
|
8
8
|
createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(
|
package/src/Witness.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { AnyConfigSchema } from '@xyo-network/module-model'
|
|
|
4
4
|
import { Payload, Schema } from '@xyo-network/payload-model'
|
|
5
5
|
import { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'
|
|
6
6
|
|
|
7
|
-
import { CryptoCardsGameWitnessConfigSchema } from './Schema.
|
|
7
|
+
import { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'
|
|
8
8
|
|
|
9
9
|
export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
10
10
|
schema: CryptoCardsGameWitnessConfigSchema
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// eslint-disable-next-line import/no-default-export
|
|
2
|
-
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.
|
|
3
|
-
export * from './Schema.
|
|
4
|
-
export * from './Witness.
|
|
2
|
+
export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts'
|
|
3
|
+
export * from './Schema.ts'
|
|
4
|
+
export * from './Witness.ts'
|
package/dist/neutral/index.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
// src/Plugin.ts
|
|
2
|
-
import { CryptoCardsGameSchema } from "@xyo-network/crypto-cards-game-payload-plugin";
|
|
3
|
-
import { PayloadSetSchema } from "@xyo-network/payload-model";
|
|
4
|
-
import { createPayloadSetWitnessPlugin } from "@xyo-network/payloadset-plugin";
|
|
5
|
-
|
|
6
|
-
// src/Witness.ts
|
|
7
|
-
import { AbstractWitness } from "@xyo-network/abstract-witness";
|
|
8
|
-
|
|
9
|
-
// src/Schema.ts
|
|
10
|
-
var CryptoCardsGameWitnessConfigSchema = "network.xyo.crypto.cards.game.witness.config";
|
|
11
|
-
|
|
12
|
-
// src/Witness.ts
|
|
13
|
-
var CryptoCardsGameWitness = class extends AbstractWitness {
|
|
14
|
-
static configSchemas = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema];
|
|
15
|
-
static defaultConfigSchema = CryptoCardsGameWitnessConfigSchema;
|
|
16
|
-
observeHandler(payloads) {
|
|
17
|
-
return payloads ?? [];
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
// src/Plugin.ts
|
|
22
|
-
var CryptoCardsGamePlugin = () => createPayloadSetWitnessPlugin(
|
|
23
|
-
{ required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },
|
|
24
|
-
{
|
|
25
|
-
witness: async (params) => {
|
|
26
|
-
const result = await CryptoCardsGameWitness.create(params);
|
|
27
|
-
return result;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
export {
|
|
32
|
-
CryptoCardsGamePlugin,
|
|
33
|
-
CryptoCardsGameWitness,
|
|
34
|
-
CryptoCardsGameWitnessConfigSchema,
|
|
35
|
-
CryptoCardsGamePlugin as default
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=index.js.map
|