@xyo-network/crypto-cards-game-plugin 2.51.8 → 2.52.0-rc.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.
@@ -1,8 +1,8 @@
1
1
  import { XyoCryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin';
2
2
  import { PayloadSetSchema } from '@xyo-network/payload-model';
3
- import { createPayloadSetPlugin } from '@xyo-network/payloadset-plugin';
3
+ import { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin';
4
4
  import { XyoCryptoCardsGameWitness } from './Witness';
5
- export const XyoCryptoCardsGamePlugin = () => createPayloadSetPlugin({ required: { [XyoCryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema }, {
5
+ export const XyoCryptoCardsGamePlugin = () => createPayloadSetWitnessPlugin({ required: { [XyoCryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema }, {
6
6
  witness: async (params) => {
7
7
  const result = await XyoCryptoCardsGameWitness.create(params);
8
8
  return result;
@@ -1 +1 @@
1
- {"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAA;AAExF,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,sBAAsB,EAA2B,MAAM,gCAAgC,CAAA;AAEhG,OAAO,EAAE,yBAAyB,EAAmC,MAAM,WAAW,CAAA;AAEtF,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,EAAE,CAC3C,sBAAsB,CACpB,EAAE,QAAQ,EAAE,EAAE,CAAC,wBAAwB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE,EACzE;IACE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;QACxB,MAAM,MAAM,GAAG,MAAM,yBAAyB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QAC7D,OAAO,MAAM,CAAA;IACf,CAAC;CACF,CACF,CAAA"}
1
+ {"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAA;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAA;AAE9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAA;AAErD,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,EAAE,CAC3C,6BAA6B,CAC3B,EAAE,QAAQ,EAAE,EAAE,CAAC,wBAAwB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE,EACzE;IACE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;QACxB,MAAM,MAAM,GAAG,MAAM,yBAAyB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QAC7D,OAAO,MAAmC,CAAA;IAC5C,CAAC;CACF,CACF,CAAA"}
@@ -2,9 +2,6 @@ import { AbstractWitness } from '@xyo-network/witness';
2
2
  import { XyoCryptoCardsGameWitnessConfigSchema } from './Schema';
3
3
  export class XyoCryptoCardsGameWitness extends AbstractWitness {
4
4
  static configSchema = XyoCryptoCardsGameWitnessConfigSchema;
5
- static async create(params) {
6
- return (await super.create(params));
7
- }
8
5
  observe(payloads) {
9
6
  return super.observe(payloads);
10
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Witness.js","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAkD,MAAM,sBAAsB,CAAA;AAEtG,OAAO,EAAE,qCAAqC,EAAE,MAAM,UAAU,CAAA;AAMhE,MAAM,OAAO,yBAA0B,SAAQ,eAA+D;IAC5G,MAAM,CAAU,YAAY,GAAG,qCAAqC,CAAA;IAEpE,MAAM,CAAU,KAAK,CAAC,MAAM,CAAC,MAAuD;QAClF,OAAO,CAAC,MAAM,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAA8B,CAAA;IAClE,CAAC;IAEQ,OAAO,CAAC,QAAuB;QACtC,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IAChC,CAAC"}
1
+ {"version":3,"file":"Witness.js","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAkD,MAAM,sBAAsB,CAAA;AAEtG,OAAO,EAAE,qCAAqC,EAAE,MAAM,UAAU,CAAA;AAQhE,MAAM,OAAO,yBAA0B,SAAQ,eAAgD;IAC7F,MAAM,CAAU,YAAY,GAAG,qCAAqC,CAAA;IAE3D,OAAO,CAAC,QAAuB;QACtC,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IAChC,CAAC"}
@@ -1,19 +1,3 @@
1
- import { ModuleParams } from '@xyo-network/module';
2
- import { PayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin';
3
1
  import { XyoCryptoCardsGameWitness } from './Witness';
4
- export declare const XyoCryptoCardsGamePlugin: () => PayloadSetWitnessPlugin<XyoCryptoCardsGameWitness, ModuleParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
5
- name?: string | undefined;
6
- security?: {
7
- allowAnonymous?: boolean | undefined;
8
- allowed?: Record<string, (string | import("@xyo-network/module").CosigningAddressSet)[]> | undefined;
9
- disallowed?: Record<string, string[]> | undefined;
10
- } | undefined;
11
- storeQueries?: boolean | undefined;
12
- } & {
13
- schema: "network.xyo.crypto.cards.game.witness.config";
14
- } & {
15
- targetSet?: (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/payload-model").PayloadSet & {
16
- schema: "network.xyo.payload.set";
17
- }) | undefined;
18
- }, undefined>>;
2
+ export declare const XyoCryptoCardsGamePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<XyoCryptoCardsGameWitness>;
19
3
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,EAA0B,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AAEhG,OAAO,EAAE,yBAAyB,EAAmC,MAAM,WAAW,CAAA;AAEtF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;cASlC,CAAA"}
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAA;AAErD,eAAO,MAAM,wBAAwB,mGASlC,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { AnyConfigSchema } from '@xyo-network/module';
1
2
  import { XyoPayload } from '@xyo-network/payload-model';
2
3
  import { Promisable } from '@xyo-network/promise';
3
4
  import { AbstractWitness, WitnessModule, WitnessParams, XyoWitnessConfig } from '@xyo-network/witness';
@@ -5,9 +6,9 @@ import { XyoCryptoCardsGameWitnessConfigSchema } from './Schema';
5
6
  export type XyoCryptoCardsGameWitnessConfig = XyoWitnessConfig<{
6
7
  schema: XyoCryptoCardsGameWitnessConfigSchema;
7
8
  }>;
8
- export declare class XyoCryptoCardsGameWitness extends AbstractWitness<WitnessParams<XyoCryptoCardsGameWitnessConfig>> implements WitnessModule {
9
+ export type XyoCryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<XyoCryptoCardsGameWitnessConfig>>;
10
+ export declare class XyoCryptoCardsGameWitness extends AbstractWitness<XyoCryptoCardsGameWitnessParams> implements WitnessModule {
9
11
  static configSchema: "network.xyo.crypto.cards.game.witness.config";
10
- static create(params?: WitnessParams<XyoCryptoCardsGameWitnessConfig>): Promise<XyoCryptoCardsGameWitness>;
11
12
  observe(payloads?: XyoPayload[]): Promisable<XyoPayload[]>;
12
13
  }
13
14
  //# 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,4BAA4B,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEtG,OAAO,EAAE,qCAAqC,EAAE,MAAM,UAAU,CAAA;AAEhE,MAAM,MAAM,+BAA+B,GAAG,gBAAgB,CAAC;IAC7D,MAAM,EAAE,qCAAqC,CAAA;CAC9C,CAAC,CAAA;AAEF,qBAAa,yBAA0B,SAAQ,eAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,CAAE,YAAW,aAAa;IACrI,OAAgB,YAAY,iDAAwC;WAE9C,MAAM,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,+BAA+B,CAAC,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAIhH,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,UAAU,EAAE,CAAC;CAGpE"}
1
+ {"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEtG,OAAO,EAAE,qCAAqC,EAAE,MAAM,UAAU,CAAA;AAEhE,MAAM,MAAM,+BAA+B,GAAG,gBAAgB,CAAC;IAC7D,MAAM,EAAE,qCAAqC,CAAA;CAC9C,CAAC,CAAA;AAEF,MAAM,MAAM,+BAA+B,GAAG,aAAa,CAAC,eAAe,CAAC,+BAA+B,CAAC,CAAC,CAAA;AAE7G,qBAAa,yBAA0B,SAAQ,eAAe,CAAC,+BAA+B,CAAE,YAAW,aAAa;IACtH,OAAgB,YAAY,iDAAwC;IAE3D,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,UAAU,EAAE,CAAC;CAGpE"}
package/package.json CHANGED
@@ -10,12 +10,12 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xyo-network/crypto-cards-game-payload-plugin": "^2.51.8",
14
- "@xyo-network/module": "^2.51.8",
15
- "@xyo-network/payload-model": "^2.51.8",
16
- "@xyo-network/payloadset-plugin": "^2.51.8",
17
- "@xyo-network/promise": "^2.51.8",
18
- "@xyo-network/witness": "^2.51.8"
13
+ "@xyo-network/crypto-cards-game-payload-plugin": "^2.52.0-rc.1",
14
+ "@xyo-network/module": "^2.52.0-rc.1",
15
+ "@xyo-network/payload-model": "^2.52.0-rc.1",
16
+ "@xyo-network/payloadset-plugin": "^2.52.0-rc.1",
17
+ "@xyo-network/promise": "^2.52.0-rc.1",
18
+ "@xyo-network/witness": "^2.52.0-rc.1"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@xylabs/ts-scripts-yarn3": "^2.16.1",
@@ -55,5 +55,6 @@
55
55
  },
56
56
  "sideEffects": false,
57
57
  "types": "dist/types/index.d.ts",
58
- "version": "2.51.8"
58
+ "version": "2.52.0-rc.1",
59
+ "stableVersion": "2.51.9"
59
60
  }
package/src/Plugin.ts CHANGED
@@ -1,17 +1,16 @@
1
1
  import { XyoCryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'
2
- import { ModuleParams } from '@xyo-network/module'
3
2
  import { PayloadSetSchema } from '@xyo-network/payload-model'
4
- import { createPayloadSetPlugin, PayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'
3
+ import { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'
5
4
 
6
- import { XyoCryptoCardsGameWitness, XyoCryptoCardsGameWitnessConfig } from './Witness'
5
+ import { XyoCryptoCardsGameWitness } from './Witness'
7
6
 
8
7
  export const XyoCryptoCardsGamePlugin = () =>
9
- createPayloadSetPlugin<PayloadSetWitnessPlugin<XyoCryptoCardsGameWitness, ModuleParams<XyoCryptoCardsGameWitnessConfig>>>(
8
+ createPayloadSetWitnessPlugin<XyoCryptoCardsGameWitness>(
10
9
  { required: { [XyoCryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },
11
10
  {
12
11
  witness: async (params) => {
13
12
  const result = await XyoCryptoCardsGameWitness.create(params)
14
- return result
13
+ return result as XyoCryptoCardsGameWitness
15
14
  },
16
15
  },
17
16
  )
package/src/Witness.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { AnyConfigSchema } from '@xyo-network/module'
1
2
  import { XyoPayload } from '@xyo-network/payload-model'
2
3
  import { Promisable } from '@xyo-network/promise'
3
4
  import { AbstractWitness, WitnessModule, WitnessParams, XyoWitnessConfig } from '@xyo-network/witness'
@@ -8,12 +9,10 @@ export type XyoCryptoCardsGameWitnessConfig = XyoWitnessConfig<{
8
9
  schema: XyoCryptoCardsGameWitnessConfigSchema
9
10
  }>
10
11
 
11
- export class XyoCryptoCardsGameWitness extends AbstractWitness<WitnessParams<XyoCryptoCardsGameWitnessConfig>> implements WitnessModule {
12
- static override configSchema = XyoCryptoCardsGameWitnessConfigSchema
12
+ export type XyoCryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<XyoCryptoCardsGameWitnessConfig>>
13
13
 
14
- static override async create(params?: WitnessParams<XyoCryptoCardsGameWitnessConfig>): Promise<XyoCryptoCardsGameWitness> {
15
- return (await super.create(params)) as XyoCryptoCardsGameWitness
16
- }
14
+ export class XyoCryptoCardsGameWitness extends AbstractWitness<XyoCryptoCardsGameWitnessParams> implements WitnessModule {
15
+ static override configSchema = XyoCryptoCardsGameWitnessConfigSchema
17
16
 
18
17
  override observe(payloads?: XyoPayload[]): Promisable<XyoPayload[]> {
19
18
  return super.observe(payloads)