@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.
- package/dist/cjs/Plugin.js +1 -1
- package/dist/cjs/Plugin.js.map +1 -1
- package/dist/cjs/Witness.js +0 -9
- package/dist/cjs/Witness.js.map +1 -1
- package/dist/docs.json +9718 -6611
- package/dist/esm/Plugin.js +2 -2
- package/dist/esm/Plugin.js.map +1 -1
- package/dist/esm/Witness.js +0 -3
- package/dist/esm/Witness.js.map +1 -1
- package/dist/types/Plugin.d.ts +1 -17
- package/dist/types/Plugin.d.ts.map +1 -1
- package/dist/types/Witness.d.ts +3 -2
- package/dist/types/Witness.d.ts.map +1 -1
- package/package.json +8 -7
- package/src/Plugin.ts +4 -5
- package/src/Witness.ts +4 -5
package/dist/esm/Plugin.js
CHANGED
|
@@ -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 {
|
|
3
|
+
import { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin';
|
|
4
4
|
import { XyoCryptoCardsGameWitness } from './Witness';
|
|
5
|
-
export const XyoCryptoCardsGamePlugin = () =>
|
|
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;
|
package/dist/esm/Plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,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"}
|
package/dist/esm/Witness.js
CHANGED
|
@@ -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
|
}
|
package/dist/esm/Witness.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Witness.js","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"
|
|
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"}
|
package/dist/types/Plugin.d.ts
CHANGED
|
@@ -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: () =>
|
|
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":"
|
|
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"}
|
package/dist/types/Witness.d.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';
|
|
@@ -5,9 +6,9 @@ import { XyoCryptoCardsGameWitnessConfigSchema } from './Schema';
|
|
|
5
6
|
export type XyoCryptoCardsGameWitnessConfig = XyoWitnessConfig<{
|
|
6
7
|
schema: XyoCryptoCardsGameWitnessConfigSchema;
|
|
7
8
|
}>;
|
|
8
|
-
export
|
|
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,
|
|
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.
|
|
14
|
-
"@xyo-network/module": "^2.
|
|
15
|
-
"@xyo-network/payload-model": "^2.
|
|
16
|
-
"@xyo-network/payloadset-plugin": "^2.
|
|
17
|
-
"@xyo-network/promise": "^2.
|
|
18
|
-
"@xyo-network/witness": "^2.
|
|
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.
|
|
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 {
|
|
3
|
+
import { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'
|
|
5
4
|
|
|
6
|
-
import { XyoCryptoCardsGameWitness
|
|
5
|
+
import { XyoCryptoCardsGameWitness } from './Witness'
|
|
7
6
|
|
|
8
7
|
export const XyoCryptoCardsGamePlugin = () =>
|
|
9
|
-
|
|
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
|
|
12
|
-
static override configSchema = XyoCryptoCardsGameWitnessConfigSchema
|
|
12
|
+
export type XyoCryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<XyoCryptoCardsGameWitnessConfig>>
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
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)
|