@xyo-network/crypto-cards-game-plugin 2.92.1 → 2.93.1
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/Witness.d.cts +3 -2
- package/dist/browser/Witness.d.cts.map +1 -1
- package/dist/browser/Witness.d.mts +3 -2
- package/dist/browser/Witness.d.mts.map +1 -1
- package/dist/browser/Witness.d.ts +3 -2
- package/dist/browser/Witness.d.ts.map +1 -1
- package/dist/browser/index.cjs +2 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +2 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/node/Witness.d.cts +3 -2
- package/dist/node/Witness.d.cts.map +1 -1
- package/dist/node/Witness.d.mts +3 -2
- package/dist/node/Witness.d.mts.map +1 -1
- package/dist/node/Witness.d.ts +3 -2
- package/dist/node/Witness.d.ts.map +1 -1
- package/dist/node/index.cjs +2 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +2 -1
- package/dist/node/index.js.map +1 -1
- package/package.json +10 -10
- package/src/Witness.ts +3 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Promisable } from '@xylabs/promise';
|
|
2
2
|
import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
3
3
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
|
-
import { Payload } from '@xyo-network/payload-model';
|
|
4
|
+
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
5
5
|
import { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model';
|
|
6
6
|
import { CryptoCardsGameWitnessConfigSchema } from './Schema';
|
|
7
7
|
export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
@@ -9,7 +9,8 @@ export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
|
9
9
|
}>;
|
|
10
10
|
export type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>;
|
|
11
11
|
export declare class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {
|
|
12
|
-
static configSchemas:
|
|
12
|
+
static configSchemas: Schema[];
|
|
13
|
+
static defaultConfigSchema: Schema;
|
|
13
14
|
protected observeHandler(payloads?: Payload[]): Promisable<Payload[]>;
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=Witness.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAExF,OAAO,EAAE,kCAAkC,EAAE,MAAM,UAAU,CAAA;AAE7D,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC;IACvD,MAAM,EAAE,kCAAkC,CAAA;CAC3C,CAAC,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC,CAAA;AAEvG,qBAAa,sBAAuB,SAAQ,eAAe,CAAC,4BAA4B,CAAE,YAAW,aAAa;IAChH,OAAgB,aAAa,EAAE,MAAM,EAAE,CAA+D;IACtG,OAAgB,mBAAmB,EAAE,MAAM,CAAqC;cAE7D,cAAc,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC;CAG/E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Promisable } from '@xylabs/promise';
|
|
2
2
|
import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
3
3
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
|
-
import { Payload } from '@xyo-network/payload-model';
|
|
4
|
+
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
5
5
|
import { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model';
|
|
6
6
|
import { CryptoCardsGameWitnessConfigSchema } from './Schema';
|
|
7
7
|
export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
@@ -9,7 +9,8 @@ export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
|
9
9
|
}>;
|
|
10
10
|
export type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>;
|
|
11
11
|
export declare class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {
|
|
12
|
-
static configSchemas:
|
|
12
|
+
static configSchemas: Schema[];
|
|
13
|
+
static defaultConfigSchema: Schema;
|
|
13
14
|
protected observeHandler(payloads?: Payload[]): Promisable<Payload[]>;
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=Witness.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAExF,OAAO,EAAE,kCAAkC,EAAE,MAAM,UAAU,CAAA;AAE7D,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC;IACvD,MAAM,EAAE,kCAAkC,CAAA;CAC3C,CAAC,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC,CAAA;AAEvG,qBAAa,sBAAuB,SAAQ,eAAe,CAAC,4BAA4B,CAAE,YAAW,aAAa;IAChH,OAAgB,aAAa,EAAE,MAAM,EAAE,CAA+D;IACtG,OAAgB,mBAAmB,EAAE,MAAM,CAAqC;cAE7D,cAAc,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC;CAG/E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Promisable } from '@xylabs/promise';
|
|
2
2
|
import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
3
3
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
|
-
import { Payload } from '@xyo-network/payload-model';
|
|
4
|
+
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
5
5
|
import { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model';
|
|
6
6
|
import { CryptoCardsGameWitnessConfigSchema } from './Schema';
|
|
7
7
|
export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
@@ -9,7 +9,8 @@ export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
|
9
9
|
}>;
|
|
10
10
|
export type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>;
|
|
11
11
|
export declare class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {
|
|
12
|
-
static configSchemas:
|
|
12
|
+
static configSchemas: Schema[];
|
|
13
|
+
static defaultConfigSchema: Schema;
|
|
13
14
|
protected observeHandler(payloads?: Payload[]): Promisable<Payload[]>;
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=Witness.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAExF,OAAO,EAAE,kCAAkC,EAAE,MAAM,UAAU,CAAA;AAE7D,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC;IACvD,MAAM,EAAE,kCAAkC,CAAA;CAC3C,CAAC,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC,CAAA;AAEvG,qBAAa,sBAAuB,SAAQ,eAAe,CAAC,4BAA4B,CAAE,YAAW,aAAa;IAChH,OAAgB,aAAa,EAAE,MAAM,EAAE,CAA+D;IACtG,OAAgB,mBAAmB,EAAE,MAAM,CAAqC;cAE7D,cAAc,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC;CAG/E"}
|
package/dist/browser/index.cjs
CHANGED
|
@@ -40,7 +40,8 @@ var CryptoCardsGameWitnessConfigSchema = "network.xyo.crypto.cards.game.witness.
|
|
|
40
40
|
|
|
41
41
|
// src/Witness.ts
|
|
42
42
|
var CryptoCardsGameWitness = class extends import_abstract_witness.AbstractWitness {
|
|
43
|
-
static configSchemas = [CryptoCardsGameWitnessConfigSchema];
|
|
43
|
+
static configSchemas = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema];
|
|
44
|
+
static defaultConfigSchema = CryptoCardsGameWitnessConfigSchema;
|
|
44
45
|
observeHandler(payloads) {
|
|
45
46
|
return payloads ?? [];
|
|
46
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin'\nexport * from './Schema'\nexport * from './Witness'\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'\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 } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema'\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 configSchemas = [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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,8CAAsC;AACtC,2BAAiC;AACjC,+BAA8C;;;ACD9C,8BAAgC;;;ACAzB,IAAM,qCAAyE;;;ADa/E,IAAM,yBAAN,cAAqC,wCAAuE;AAAA,EACjH,OAAgB,
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin'\nexport * from './Schema'\nexport * from './Witness'\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'\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'\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 configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override 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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,8CAAsC;AACtC,2BAAiC;AACjC,+BAA8C;;;ACD9C,8BAAgC;;;ACAzB,IAAM,qCAAyE;;;ADa/E,IAAM,yBAAN,cAAqC,wCAAuE;AAAA,EACjH,OAAgB,gBAA0B,CAAC,GAAG,MAAM,eAAe,kCAAkC;AAAA,EACrG,OAAgB,sBAA8B;AAAA,EAE3B,eAAe,UAA6C;AAC7E,WAAO,YAAY,CAAC;AAAA,EACtB;AACF;;;ADfO,IAAM,wBAAwB,UACnC;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,6DAAqB,GAAG,EAAE,GAAG,QAAQ,sCAAiB;AAAA,EACrE;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,uBAAuB,OAAO,MAAM;AACzD,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
|
package/dist/browser/index.js
CHANGED
|
@@ -11,7 +11,8 @@ var CryptoCardsGameWitnessConfigSchema = "network.xyo.crypto.cards.game.witness.
|
|
|
11
11
|
|
|
12
12
|
// src/Witness.ts
|
|
13
13
|
var CryptoCardsGameWitness = class extends AbstractWitness {
|
|
14
|
-
static configSchemas = [CryptoCardsGameWitnessConfigSchema];
|
|
14
|
+
static configSchemas = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema];
|
|
15
|
+
static defaultConfigSchema = CryptoCardsGameWitnessConfigSchema;
|
|
15
16
|
observeHandler(payloads) {
|
|
16
17
|
return payloads ?? [];
|
|
17
18
|
}
|
|
@@ -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'\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 } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema'\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 configSchemas = [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,SAAS,6BAA6B;AACtC,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACD9C,SAAS,uBAAuB;;;ACAzB,IAAM,qCAAyE;;;ADa/E,IAAM,yBAAN,cAAqC,gBAAuE;AAAA,EACjH,OAAgB,
|
|
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'\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'\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 configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override 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,SAAS,6BAA6B;AACtC,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACD9C,SAAS,uBAAuB;;;ACAzB,IAAM,qCAAyE;;;ADa/E,IAAM,yBAAN,cAAqC,gBAAuE;AAAA,EACjH,OAAgB,gBAA0B,CAAC,GAAG,MAAM,eAAe,kCAAkC;AAAA,EACrG,OAAgB,sBAA8B;AAAA,EAE3B,eAAe,UAA6C;AAC7E,WAAO,YAAY,CAAC;AAAA,EACtB;AACF;;;ADfO,IAAM,wBAAwB,MACnC;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,qBAAqB,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EACrE;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,uBAAuB,OAAO,MAAM;AACzD,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
|
package/dist/node/Witness.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Promisable } from '@xylabs/promise';
|
|
2
2
|
import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
3
3
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
|
-
import { Payload } from '@xyo-network/payload-model';
|
|
4
|
+
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
5
5
|
import { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model';
|
|
6
6
|
import { CryptoCardsGameWitnessConfigSchema } from './Schema';
|
|
7
7
|
export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
@@ -9,7 +9,8 @@ export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
|
9
9
|
}>;
|
|
10
10
|
export type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>;
|
|
11
11
|
export declare class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {
|
|
12
|
-
static configSchemas:
|
|
12
|
+
static configSchemas: Schema[];
|
|
13
|
+
static defaultConfigSchema: Schema;
|
|
13
14
|
protected observeHandler(payloads?: Payload[]): Promisable<Payload[]>;
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=Witness.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAExF,OAAO,EAAE,kCAAkC,EAAE,MAAM,UAAU,CAAA;AAE7D,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC;IACvD,MAAM,EAAE,kCAAkC,CAAA;CAC3C,CAAC,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC,CAAA;AAEvG,qBAAa,sBAAuB,SAAQ,eAAe,CAAC,4BAA4B,CAAE,YAAW,aAAa;IAChH,OAAgB,aAAa,EAAE,MAAM,EAAE,CAA+D;IACtG,OAAgB,mBAAmB,EAAE,MAAM,CAAqC;cAE7D,cAAc,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC;CAG/E"}
|
package/dist/node/Witness.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Promisable } from '@xylabs/promise';
|
|
2
2
|
import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
3
3
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
|
-
import { Payload } from '@xyo-network/payload-model';
|
|
4
|
+
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
5
5
|
import { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model';
|
|
6
6
|
import { CryptoCardsGameWitnessConfigSchema } from './Schema';
|
|
7
7
|
export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
@@ -9,7 +9,8 @@ export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
|
9
9
|
}>;
|
|
10
10
|
export type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>;
|
|
11
11
|
export declare class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {
|
|
12
|
-
static configSchemas:
|
|
12
|
+
static configSchemas: Schema[];
|
|
13
|
+
static defaultConfigSchema: Schema;
|
|
13
14
|
protected observeHandler(payloads?: Payload[]): Promisable<Payload[]>;
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=Witness.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAExF,OAAO,EAAE,kCAAkC,EAAE,MAAM,UAAU,CAAA;AAE7D,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC;IACvD,MAAM,EAAE,kCAAkC,CAAA;CAC3C,CAAC,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC,CAAA;AAEvG,qBAAa,sBAAuB,SAAQ,eAAe,CAAC,4BAA4B,CAAE,YAAW,aAAa;IAChH,OAAgB,aAAa,EAAE,MAAM,EAAE,CAA+D;IACtG,OAAgB,mBAAmB,EAAE,MAAM,CAAqC;cAE7D,cAAc,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC;CAG/E"}
|
package/dist/node/Witness.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Promisable } from '@xylabs/promise';
|
|
2
2
|
import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
3
3
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
|
-
import { Payload } from '@xyo-network/payload-model';
|
|
4
|
+
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
5
5
|
import { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model';
|
|
6
6
|
import { CryptoCardsGameWitnessConfigSchema } from './Schema';
|
|
7
7
|
export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
@@ -9,7 +9,8 @@ export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
|
9
9
|
}>;
|
|
10
10
|
export type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>;
|
|
11
11
|
export declare class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {
|
|
12
|
-
static configSchemas:
|
|
12
|
+
static configSchemas: Schema[];
|
|
13
|
+
static defaultConfigSchema: Schema;
|
|
13
14
|
protected observeHandler(payloads?: Payload[]): Promisable<Payload[]>;
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=Witness.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAExF,OAAO,EAAE,kCAAkC,EAAE,MAAM,UAAU,CAAA;AAE7D,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC;IACvD,MAAM,EAAE,kCAAkC,CAAA;CAC3C,CAAC,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC,CAAA;AAEvG,qBAAa,sBAAuB,SAAQ,eAAe,CAAC,4BAA4B,CAAE,YAAW,aAAa;IAChH,OAAgB,aAAa,EAAE,MAAM,EAAE,CAA+D;IACtG,OAAgB,mBAAmB,EAAE,MAAM,CAAqC;cAE7D,cAAc,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC;CAG/E"}
|
package/dist/node/index.cjs
CHANGED
|
@@ -40,7 +40,8 @@ var CryptoCardsGameWitnessConfigSchema = "network.xyo.crypto.cards.game.witness.
|
|
|
40
40
|
|
|
41
41
|
// src/Witness.ts
|
|
42
42
|
var CryptoCardsGameWitness = class extends import_abstract_witness.AbstractWitness {
|
|
43
|
-
static configSchemas = [CryptoCardsGameWitnessConfigSchema];
|
|
43
|
+
static configSchemas = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema];
|
|
44
|
+
static defaultConfigSchema = CryptoCardsGameWitnessConfigSchema;
|
|
44
45
|
observeHandler(payloads) {
|
|
45
46
|
return payloads ?? [];
|
|
46
47
|
}
|
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":["export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin'\nexport * from './Schema'\nexport * from './Witness'\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'\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 } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema'\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 configSchemas = [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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,8CAAsC;AACtC,2BAAiC;AACjC,+BAA8C;;;ACD9C,8BAAgC;;;ACAzB,IAAM,qCAAyE;;;ADa/E,IAAM,yBAAN,cAAqC,wCAAuE;AAAA,EACjH,OAAgB,
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin'\nexport * from './Schema'\nexport * from './Witness'\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'\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'\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 configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override 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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,8CAAsC;AACtC,2BAAiC;AACjC,+BAA8C;;;ACD9C,8BAAgC;;;ACAzB,IAAM,qCAAyE;;;ADa/E,IAAM,yBAAN,cAAqC,wCAAuE;AAAA,EACjH,OAAgB,gBAA0B,CAAC,GAAG,MAAM,eAAe,kCAAkC;AAAA,EACrG,OAAgB,sBAA8B;AAAA,EAE3B,eAAe,UAA6C;AAC7E,WAAO,YAAY,CAAC;AAAA,EACtB;AACF;;;ADfO,IAAM,wBAAwB,UACnC;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,6DAAqB,GAAG,EAAE,GAAG,QAAQ,sCAAiB;AAAA,EACrE;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,uBAAuB,OAAO,MAAM;AACzD,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
|
package/dist/node/index.js
CHANGED
|
@@ -11,7 +11,8 @@ var CryptoCardsGameWitnessConfigSchema = "network.xyo.crypto.cards.game.witness.
|
|
|
11
11
|
|
|
12
12
|
// src/Witness.ts
|
|
13
13
|
var CryptoCardsGameWitness = class extends AbstractWitness {
|
|
14
|
-
static configSchemas = [CryptoCardsGameWitnessConfigSchema];
|
|
14
|
+
static configSchemas = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema];
|
|
15
|
+
static defaultConfigSchema = CryptoCardsGameWitnessConfigSchema;
|
|
15
16
|
observeHandler(payloads) {
|
|
16
17
|
return payloads ?? [];
|
|
17
18
|
}
|
package/dist/node/index.js.map
CHANGED
|
@@ -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'\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 } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema'\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 configSchemas = [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,SAAS,6BAA6B;AACtC,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACD9C,SAAS,uBAAuB;;;ACAzB,IAAM,qCAAyE;;;ADa/E,IAAM,yBAAN,cAAqC,gBAAuE;AAAA,EACjH,OAAgB,
|
|
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'\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'\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 configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override 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,SAAS,6BAA6B;AACtC,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACD9C,SAAS,uBAAuB;;;ACAzB,IAAM,qCAAyE;;;ADa/E,IAAM,yBAAN,cAAqC,gBAAuE;AAAA,EACjH,OAAgB,gBAA0B,CAAC,GAAG,MAAM,eAAe,kCAAkC;AAAA,EACrG,OAAgB,sBAA8B;AAAA,EAE3B,eAAe,UAA6C;AAC7E,WAAO,YAAY,CAAC;AAAA,EACtB;AACF;;;ADfO,IAAM,wBAAwB,MACnC;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,qBAAqB,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EACrE;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,uBAAuB,OAAO,MAAM;AACzD,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
|
package/package.json
CHANGED
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/plugins/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/promise": "^3.1.
|
|
14
|
-
"@xyo-network/abstract-witness": "^2.
|
|
15
|
-
"@xyo-network/crypto-cards-game-payload-plugin": "~2.
|
|
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.1.10",
|
|
14
|
+
"@xyo-network/abstract-witness": "^2.98.3",
|
|
15
|
+
"@xyo-network/crypto-cards-game-payload-plugin": "~2.93.1",
|
|
16
|
+
"@xyo-network/module-model": "^2.98.3",
|
|
17
|
+
"@xyo-network/payload-model": "^2.98.3",
|
|
18
|
+
"@xyo-network/payloadset-plugin": "^2.98.3",
|
|
19
|
+
"@xyo-network/witness-model": "^2.98.3"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@xylabs/ts-scripts-yarn3": "^3.9.
|
|
23
|
-
"@xylabs/tsconfig": "^3.9.
|
|
22
|
+
"@xylabs/ts-scripts-yarn3": "^3.9.1",
|
|
23
|
+
"@xylabs/tsconfig": "^3.9.1",
|
|
24
24
|
"typescript": "^5.4.5"
|
|
25
25
|
},
|
|
26
26
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"url": "https://github.com/XYOracleNetwork/plugins.git"
|
|
63
63
|
},
|
|
64
64
|
"sideEffects": false,
|
|
65
|
-
"version": "2.
|
|
65
|
+
"version": "2.93.1",
|
|
66
66
|
"type": "module"
|
|
67
67
|
}
|
package/src/Witness.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Promisable } from '@xylabs/promise'
|
|
2
2
|
import { AbstractWitness } from '@xyo-network/abstract-witness'
|
|
3
3
|
import { AnyConfigSchema } from '@xyo-network/module-model'
|
|
4
|
-
import { Payload } from '@xyo-network/payload-model'
|
|
4
|
+
import { Payload, Schema } from '@xyo-network/payload-model'
|
|
5
5
|
import { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'
|
|
6
6
|
|
|
7
7
|
import { CryptoCardsGameWitnessConfigSchema } from './Schema'
|
|
@@ -13,7 +13,8 @@ export type CryptoCardsGameWitnessConfig = WitnessConfig<{
|
|
|
13
13
|
export type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>
|
|
14
14
|
|
|
15
15
|
export class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {
|
|
16
|
-
static override configSchemas = [CryptoCardsGameWitnessConfigSchema]
|
|
16
|
+
static override configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]
|
|
17
|
+
static override defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema
|
|
17
18
|
|
|
18
19
|
protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {
|
|
19
20
|
return payloads ?? []
|