@xyo-network/crypto-cards-move-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 +2 -2
- package/dist/browser/Plugin.d.mts +2 -2
- package/dist/browser/Plugin.d.ts +2 -2
- 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 +18 -9
- 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} +21 -10
- package/dist/{node/index.js.map → browser/index.mjs.map} +1 -1
- package/dist/neutral/Plugin.d.cts +2 -2
- package/dist/neutral/Plugin.d.mts +2 -2
- package/dist/neutral/Plugin.d.ts +2 -2
- 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 +18 -9
- 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} +21 -10
- package/dist/{browser/index.js.map → neutral/index.mjs.map} +1 -1
- package/dist/node/Plugin.d.cts +2 -2
- package/dist/node/Plugin.d.mts +2 -2
- package/dist/node/Plugin.d.ts +2 -2
- 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 +24 -11
- 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 +51 -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 -36
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CryptoCardsMoveWitness } from './Witness.
|
|
1
|
+
import { CryptoCardsMoveWitness } from './Witness.ts';
|
|
2
2
|
export declare const CryptoCardsMovePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CryptoCardsMoveWitness<import("@xylabs/object").BaseParamsFields & {
|
|
3
3
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
4
|
addToResolvers?: boolean;
|
|
@@ -7,7 +7,7 @@ export declare const CryptoCardsMovePlugin: () => import("@xyo-network/payloadse
|
|
|
7
7
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
8
8
|
schema: "network.xyo.crypto.cards.move.witness.config";
|
|
9
9
|
} & {
|
|
10
|
-
schema: import("./Schema.
|
|
10
|
+
schema: import("./Schema.ts").CryptoCardsMoveWitnessConfigSchema;
|
|
11
11
|
}, "schema"> & {
|
|
12
12
|
schema: "network.xyo.crypto.cards.move.witness.config";
|
|
13
13
|
}, "schema"> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CryptoCardsMoveWitness } from './Witness.
|
|
1
|
+
import { CryptoCardsMoveWitness } from './Witness.ts';
|
|
2
2
|
export declare const CryptoCardsMovePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CryptoCardsMoveWitness<import("@xylabs/object").BaseParamsFields & {
|
|
3
3
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
4
|
addToResolvers?: boolean;
|
|
@@ -7,7 +7,7 @@ export declare const CryptoCardsMovePlugin: () => import("@xyo-network/payloadse
|
|
|
7
7
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
8
8
|
schema: "network.xyo.crypto.cards.move.witness.config";
|
|
9
9
|
} & {
|
|
10
|
-
schema: import("./Schema.
|
|
10
|
+
schema: import("./Schema.ts").CryptoCardsMoveWitnessConfigSchema;
|
|
11
11
|
}, "schema"> & {
|
|
12
12
|
schema: "network.xyo.crypto.cards.move.witness.config";
|
|
13
13
|
}, "schema"> & {
|
package/dist/browser/Plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CryptoCardsMoveWitness } from './Witness.
|
|
1
|
+
import { CryptoCardsMoveWitness } from './Witness.ts';
|
|
2
2
|
export declare const CryptoCardsMovePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CryptoCardsMoveWitness<import("@xylabs/object").BaseParamsFields & {
|
|
3
3
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
4
|
addToResolvers?: boolean;
|
|
@@ -7,7 +7,7 @@ export declare const CryptoCardsMovePlugin: () => import("@xyo-network/payloadse
|
|
|
7
7
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
8
8
|
schema: "network.xyo.crypto.cards.move.witness.config";
|
|
9
9
|
} & {
|
|
10
|
-
schema: import("./Schema.
|
|
10
|
+
schema: import("./Schema.ts").CryptoCardsMoveWitnessConfigSchema;
|
|
11
11
|
}, "schema"> & {
|
|
12
12
|
schema: "network.xyo.crypto.cards.move.witness.config";
|
|
13
13
|
}, "schema"> & {
|
|
@@ -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, WitnessParams } from '@xyo-network/witness-model';
|
|
6
|
-
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.
|
|
6
|
+
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.ts';
|
|
7
7
|
export type CryptoCardsMoveWitnessConfig = WitnessConfig<{
|
|
8
8
|
schema: CryptoCardsMoveWitnessConfigSchema;
|
|
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, WitnessParams } from '@xyo-network/witness-model';
|
|
6
|
-
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.
|
|
6
|
+
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.ts';
|
|
7
7
|
export type CryptoCardsMoveWitnessConfig = WitnessConfig<{
|
|
8
8
|
schema: CryptoCardsMoveWitnessConfigSchema;
|
|
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, WitnessParams } from '@xyo-network/witness-model';
|
|
6
|
-
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.
|
|
6
|
+
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.ts';
|
|
7
7
|
export type CryptoCardsMoveWitnessConfig = WitnessConfig<{
|
|
8
8
|
schema: CryptoCardsMoveWitnessConfigSchema;
|
|
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 CryptoCardsMoveWitnessConfigSchema = "network.xyo.crypto.cards.move.witness.
|
|
|
40
41
|
|
|
41
42
|
// src/Witness.ts
|
|
42
43
|
var CryptoCardsMoveWitness = class extends import_abstract_witness.AbstractWitness {
|
|
43
|
-
static
|
|
44
|
+
static {
|
|
45
|
+
__name(this, "CryptoCardsMoveWitness");
|
|
46
|
+
}
|
|
47
|
+
static configSchemas = [
|
|
48
|
+
...super.configSchemas,
|
|
49
|
+
CryptoCardsMoveWitnessConfigSchema
|
|
50
|
+
];
|
|
44
51
|
static defaultConfigSchema = CryptoCardsMoveWitnessConfigSchema;
|
|
45
52
|
observeHandler(payloads) {
|
|
46
53
|
return payloads ?? [];
|
|
@@ -48,12 +55,14 @@ var CryptoCardsMoveWitness = class extends import_abstract_witness.AbstractWitne
|
|
|
48
55
|
};
|
|
49
56
|
|
|
50
57
|
// src/Plugin.ts
|
|
51
|
-
var CryptoCardsMovePlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
);
|
|
58
|
+
var CryptoCardsMovePlugin = /* @__PURE__ */ __name(() => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)({
|
|
59
|
+
required: {
|
|
60
|
+
[import_crypto_cards_move_payload_plugin.CryptoCardsMoveSchema]: 1
|
|
61
|
+
},
|
|
62
|
+
schema: import_payload_model.PayloadSetSchema
|
|
63
|
+
}, {
|
|
64
|
+
witness: /* @__PURE__ */ __name(async (params) => {
|
|
65
|
+
return await CryptoCardsMoveWitness.create(params);
|
|
66
|
+
}, "witness")
|
|
67
|
+
}), "CryptoCardsMovePlugin");
|
|
59
68
|
//# 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 { CryptoCardsMovePlugin, CryptoCardsMovePlugin 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 { CryptoCardsMovePlugin, CryptoCardsMovePlugin as default } from './Plugin.ts'\nexport * from './Schema.ts'\nexport * from './Witness.ts'\n","import { CryptoCardsMoveSchema } from '@xyo-network/crypto-cards-move-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsMoveWitness } from './Witness.ts'\n\nexport const CryptoCardsMovePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsMoveWitness>(\n { required: { [CryptoCardsMoveSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return await CryptoCardsMoveWitness.create(params)\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, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsMoveWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsMoveWitnessConfig = WitnessConfig<{\n schema: CryptoCardsMoveWitnessConfigSchema\n}>\n\nexport type CryptoCardsMoveWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsMoveWitnessConfig>>\n\nexport class CryptoCardsMoveWitness<TParams extends CryptoCardsMoveWitnessParams = CryptoCardsMoveWitnessParams> extends AbstractWitness<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsMoveWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsMoveWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsMoveWitnessConfigSchema = 'network.xyo.crypto.cards.move.witness.config'\nexport const CryptoCardsMoveWitnessConfigSchema: CryptoCardsMoveWitnessConfigSchema = 'network.xyo.crypto.cards.move.witness.config'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA,8CAAsC;AACtC,2BAAiC;AACjC,+BAA8C;;;ACD9C,8BAAgC;;;ACAzB,IAAMA,qCAAyE;;;ADa/E,IAAMC,yBAAN,cAAkHC,wCAAAA;EAbzH,OAayHA;;;EACvH,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,WAAO,MAAMC,uBAAuBC,OAAOF,MAAAA;EAC7C,GAFS;AAGX,CAAA,GAPiC;","names":["CryptoCardsMoveWitnessConfigSchema","CryptoCardsMoveWitness","AbstractWitness","configSchemas","CryptoCardsMoveWitnessConfigSchema","defaultConfigSchema","observeHandler","payloads","CryptoCardsMovePlugin","createPayloadSetWitnessPlugin","required","CryptoCardsMoveSchema","schema","PayloadSetSchema","witness","params","CryptoCardsMoveWitness","create"]}
|
package/dist/browser/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CryptoCardsMovePlugin, CryptoCardsMovePlugin as default } from './Plugin.
|
|
2
|
-
export * from './Schema.
|
|
3
|
-
export * from './Witness.
|
|
1
|
+
export { CryptoCardsMovePlugin, CryptoCardsMovePlugin 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 { CryptoCardsMovePlugin, CryptoCardsMovePlugin as default } from './Plugin.
|
|
2
|
-
export * from './Schema.
|
|
3
|
-
export * from './Witness.
|
|
1
|
+
export { CryptoCardsMovePlugin, CryptoCardsMovePlugin 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 { CryptoCardsMovePlugin, CryptoCardsMovePlugin as default } from './Plugin.
|
|
2
|
-
export * from './Schema.
|
|
3
|
-
export * from './Witness.
|
|
1
|
+
export { CryptoCardsMovePlugin, CryptoCardsMovePlugin 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 { CryptoCardsMoveSchema } from "@xyo-network/crypto-cards-move-payload-plugin";
|
|
3
6
|
import { PayloadSetSchema } from "@xyo-network/payload-model";
|
|
@@ -11,7 +14,13 @@ var CryptoCardsMoveWitnessConfigSchema = "network.xyo.crypto.cards.move.witness.
|
|
|
11
14
|
|
|
12
15
|
// src/Witness.ts
|
|
13
16
|
var CryptoCardsMoveWitness = class extends AbstractWitness {
|
|
14
|
-
static
|
|
17
|
+
static {
|
|
18
|
+
__name(this, "CryptoCardsMoveWitness");
|
|
19
|
+
}
|
|
20
|
+
static configSchemas = [
|
|
21
|
+
...super.configSchemas,
|
|
22
|
+
CryptoCardsMoveWitnessConfigSchema
|
|
23
|
+
];
|
|
15
24
|
static defaultConfigSchema = CryptoCardsMoveWitnessConfigSchema;
|
|
16
25
|
observeHandler(payloads) {
|
|
17
26
|
return payloads ?? [];
|
|
@@ -19,18 +28,20 @@ var CryptoCardsMoveWitness = class extends AbstractWitness {
|
|
|
19
28
|
};
|
|
20
29
|
|
|
21
30
|
// src/Plugin.ts
|
|
22
|
-
var CryptoCardsMovePlugin = () => createPayloadSetWitnessPlugin(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
);
|
|
31
|
+
var CryptoCardsMovePlugin = /* @__PURE__ */ __name(() => createPayloadSetWitnessPlugin({
|
|
32
|
+
required: {
|
|
33
|
+
[CryptoCardsMoveSchema]: 1
|
|
34
|
+
},
|
|
35
|
+
schema: PayloadSetSchema
|
|
36
|
+
}, {
|
|
37
|
+
witness: /* @__PURE__ */ __name(async (params) => {
|
|
38
|
+
return await CryptoCardsMoveWitness.create(params);
|
|
39
|
+
}, "witness")
|
|
40
|
+
}), "CryptoCardsMovePlugin");
|
|
30
41
|
export {
|
|
31
42
|
CryptoCardsMovePlugin,
|
|
32
43
|
CryptoCardsMoveWitness,
|
|
33
44
|
CryptoCardsMoveWitnessConfigSchema,
|
|
34
45
|
CryptoCardsMovePlugin as default
|
|
35
46
|
};
|
|
36
|
-
//# sourceMappingURL=index.
|
|
47
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsMoveSchema } from '@xyo-network/crypto-cards-move-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsMoveWitness } from './Witness.
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsMoveSchema } from '@xyo-network/crypto-cards-move-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsMoveWitness } from './Witness.ts'\n\nexport const CryptoCardsMovePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsMoveWitness>(\n { required: { [CryptoCardsMoveSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return await CryptoCardsMoveWitness.create(params)\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, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsMoveWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsMoveWitnessConfig = WitnessConfig<{\n schema: CryptoCardsMoveWitnessConfigSchema\n}>\n\nexport type CryptoCardsMoveWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsMoveWitnessConfig>>\n\nexport class CryptoCardsMoveWitness<TParams extends CryptoCardsMoveWitnessParams = CryptoCardsMoveWitnessParams> extends AbstractWitness<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsMoveWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsMoveWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsMoveWitnessConfigSchema = 'network.xyo.crypto.cards.move.witness.config'\nexport const CryptoCardsMoveWitnessConfigSchema: CryptoCardsMoveWitnessConfigSchema = 'network.xyo.crypto.cards.move.witness.config'\n"],"mappings":";;;;AAAA,SAASA,6BAA6B;AACtC,SAASC,wBAAwB;AACjC,SAASC,qCAAqC;;;ACD9C,SAASC,uBAAuB;;;ACAzB,IAAMC,qCAAyE;;;ADa/E,IAAMC,yBAAN,cAAkHC,gBAAAA;EAbzH,OAayHA;;;EACvH,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,WAAO,MAAMC,uBAAuBC,OAAOF,MAAAA;EAC7C,GAFS;AAGX,CAAA,GAPiC;","names":["CryptoCardsMoveSchema","PayloadSetSchema","createPayloadSetWitnessPlugin","AbstractWitness","CryptoCardsMoveWitnessConfigSchema","CryptoCardsMoveWitness","AbstractWitness","configSchemas","CryptoCardsMoveWitnessConfigSchema","defaultConfigSchema","observeHandler","payloads","CryptoCardsMovePlugin","createPayloadSetWitnessPlugin","required","CryptoCardsMoveSchema","schema","PayloadSetSchema","witness","params","CryptoCardsMoveWitness","create"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CryptoCardsMoveWitness } from './Witness.
|
|
1
|
+
import { CryptoCardsMoveWitness } from './Witness.ts';
|
|
2
2
|
export declare const CryptoCardsMovePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CryptoCardsMoveWitness<import("@xylabs/object").BaseParamsFields & {
|
|
3
3
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
4
|
addToResolvers?: boolean;
|
|
@@ -7,7 +7,7 @@ export declare const CryptoCardsMovePlugin: () => import("@xyo-network/payloadse
|
|
|
7
7
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
8
8
|
schema: "network.xyo.crypto.cards.move.witness.config";
|
|
9
9
|
} & {
|
|
10
|
-
schema: import("./Schema.
|
|
10
|
+
schema: import("./Schema.ts").CryptoCardsMoveWitnessConfigSchema;
|
|
11
11
|
}, "schema"> & {
|
|
12
12
|
schema: "network.xyo.crypto.cards.move.witness.config";
|
|
13
13
|
}, "schema"> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CryptoCardsMoveWitness } from './Witness.
|
|
1
|
+
import { CryptoCardsMoveWitness } from './Witness.ts';
|
|
2
2
|
export declare const CryptoCardsMovePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CryptoCardsMoveWitness<import("@xylabs/object").BaseParamsFields & {
|
|
3
3
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
4
|
addToResolvers?: boolean;
|
|
@@ -7,7 +7,7 @@ export declare const CryptoCardsMovePlugin: () => import("@xyo-network/payloadse
|
|
|
7
7
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
8
8
|
schema: "network.xyo.crypto.cards.move.witness.config";
|
|
9
9
|
} & {
|
|
10
|
-
schema: import("./Schema.
|
|
10
|
+
schema: import("./Schema.ts").CryptoCardsMoveWitnessConfigSchema;
|
|
11
11
|
}, "schema"> & {
|
|
12
12
|
schema: "network.xyo.crypto.cards.move.witness.config";
|
|
13
13
|
}, "schema"> & {
|
package/dist/neutral/Plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CryptoCardsMoveWitness } from './Witness.
|
|
1
|
+
import { CryptoCardsMoveWitness } from './Witness.ts';
|
|
2
2
|
export declare const CryptoCardsMovePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CryptoCardsMoveWitness<import("@xylabs/object").BaseParamsFields & {
|
|
3
3
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
4
|
addToResolvers?: boolean;
|
|
@@ -7,7 +7,7 @@ export declare const CryptoCardsMovePlugin: () => import("@xyo-network/payloadse
|
|
|
7
7
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
8
8
|
schema: "network.xyo.crypto.cards.move.witness.config";
|
|
9
9
|
} & {
|
|
10
|
-
schema: import("./Schema.
|
|
10
|
+
schema: import("./Schema.ts").CryptoCardsMoveWitnessConfigSchema;
|
|
11
11
|
}, "schema"> & {
|
|
12
12
|
schema: "network.xyo.crypto.cards.move.witness.config";
|
|
13
13
|
}, "schema"> & {
|
|
@@ -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, WitnessParams } from '@xyo-network/witness-model';
|
|
6
|
-
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.
|
|
6
|
+
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.ts';
|
|
7
7
|
export type CryptoCardsMoveWitnessConfig = WitnessConfig<{
|
|
8
8
|
schema: CryptoCardsMoveWitnessConfigSchema;
|
|
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, WitnessParams } from '@xyo-network/witness-model';
|
|
6
|
-
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.
|
|
6
|
+
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.ts';
|
|
7
7
|
export type CryptoCardsMoveWitnessConfig = WitnessConfig<{
|
|
8
8
|
schema: CryptoCardsMoveWitnessConfigSchema;
|
|
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, WitnessParams } from '@xyo-network/witness-model';
|
|
6
|
-
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.
|
|
6
|
+
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.ts';
|
|
7
7
|
export type CryptoCardsMoveWitnessConfig = WitnessConfig<{
|
|
8
8
|
schema: CryptoCardsMoveWitnessConfigSchema;
|
|
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 CryptoCardsMoveWitnessConfigSchema = "network.xyo.crypto.cards.move.witness.
|
|
|
40
41
|
|
|
41
42
|
// src/Witness.ts
|
|
42
43
|
var CryptoCardsMoveWitness = class extends import_abstract_witness.AbstractWitness {
|
|
43
|
-
static
|
|
44
|
+
static {
|
|
45
|
+
__name(this, "CryptoCardsMoveWitness");
|
|
46
|
+
}
|
|
47
|
+
static configSchemas = [
|
|
48
|
+
...super.configSchemas,
|
|
49
|
+
CryptoCardsMoveWitnessConfigSchema
|
|
50
|
+
];
|
|
44
51
|
static defaultConfigSchema = CryptoCardsMoveWitnessConfigSchema;
|
|
45
52
|
observeHandler(payloads) {
|
|
46
53
|
return payloads ?? [];
|
|
@@ -48,12 +55,14 @@ var CryptoCardsMoveWitness = class extends import_abstract_witness.AbstractWitne
|
|
|
48
55
|
};
|
|
49
56
|
|
|
50
57
|
// src/Plugin.ts
|
|
51
|
-
var CryptoCardsMovePlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
);
|
|
58
|
+
var CryptoCardsMovePlugin = /* @__PURE__ */ __name(() => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)({
|
|
59
|
+
required: {
|
|
60
|
+
[import_crypto_cards_move_payload_plugin.CryptoCardsMoveSchema]: 1
|
|
61
|
+
},
|
|
62
|
+
schema: import_payload_model.PayloadSetSchema
|
|
63
|
+
}, {
|
|
64
|
+
witness: /* @__PURE__ */ __name(async (params) => {
|
|
65
|
+
return await CryptoCardsMoveWitness.create(params);
|
|
66
|
+
}, "witness")
|
|
67
|
+
}), "CryptoCardsMovePlugin");
|
|
59
68
|
//# 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 { CryptoCardsMovePlugin, CryptoCardsMovePlugin 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 { CryptoCardsMovePlugin, CryptoCardsMovePlugin as default } from './Plugin.ts'\nexport * from './Schema.ts'\nexport * from './Witness.ts'\n","import { CryptoCardsMoveSchema } from '@xyo-network/crypto-cards-move-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsMoveWitness } from './Witness.ts'\n\nexport const CryptoCardsMovePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsMoveWitness>(\n { required: { [CryptoCardsMoveSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return await CryptoCardsMoveWitness.create(params)\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, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsMoveWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsMoveWitnessConfig = WitnessConfig<{\n schema: CryptoCardsMoveWitnessConfigSchema\n}>\n\nexport type CryptoCardsMoveWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsMoveWitnessConfig>>\n\nexport class CryptoCardsMoveWitness<TParams extends CryptoCardsMoveWitnessParams = CryptoCardsMoveWitnessParams> extends AbstractWitness<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsMoveWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsMoveWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsMoveWitnessConfigSchema = 'network.xyo.crypto.cards.move.witness.config'\nexport const CryptoCardsMoveWitnessConfigSchema: CryptoCardsMoveWitnessConfigSchema = 'network.xyo.crypto.cards.move.witness.config'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA,8CAAsC;AACtC,2BAAiC;AACjC,+BAA8C;;;ACD9C,8BAAgC;;;ACAzB,IAAMA,qCAAyE;;;ADa/E,IAAMC,yBAAN,cAAkHC,wCAAAA;EAbzH,OAayHA;;;EACvH,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,WAAO,MAAMC,uBAAuBC,OAAOF,MAAAA;EAC7C,GAFS;AAGX,CAAA,GAPiC;","names":["CryptoCardsMoveWitnessConfigSchema","CryptoCardsMoveWitness","AbstractWitness","configSchemas","CryptoCardsMoveWitnessConfigSchema","defaultConfigSchema","observeHandler","payloads","CryptoCardsMovePlugin","createPayloadSetWitnessPlugin","required","CryptoCardsMoveSchema","schema","PayloadSetSchema","witness","params","CryptoCardsMoveWitness","create"]}
|
package/dist/neutral/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CryptoCardsMovePlugin, CryptoCardsMovePlugin as default } from './Plugin.
|
|
2
|
-
export * from './Schema.
|
|
3
|
-
export * from './Witness.
|
|
1
|
+
export { CryptoCardsMovePlugin, CryptoCardsMovePlugin 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 { CryptoCardsMovePlugin, CryptoCardsMovePlugin as default } from './Plugin.
|
|
2
|
-
export * from './Schema.
|
|
3
|
-
export * from './Witness.
|
|
1
|
+
export { CryptoCardsMovePlugin, CryptoCardsMovePlugin 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 { CryptoCardsMovePlugin, CryptoCardsMovePlugin as default } from './Plugin.
|
|
2
|
-
export * from './Schema.
|
|
3
|
-
export * from './Witness.
|
|
1
|
+
export { CryptoCardsMovePlugin, CryptoCardsMovePlugin 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 { CryptoCardsMoveSchema } from "@xyo-network/crypto-cards-move-payload-plugin";
|
|
3
6
|
import { PayloadSetSchema } from "@xyo-network/payload-model";
|
|
@@ -11,7 +14,13 @@ var CryptoCardsMoveWitnessConfigSchema = "network.xyo.crypto.cards.move.witness.
|
|
|
11
14
|
|
|
12
15
|
// src/Witness.ts
|
|
13
16
|
var CryptoCardsMoveWitness = class extends AbstractWitness {
|
|
14
|
-
static
|
|
17
|
+
static {
|
|
18
|
+
__name(this, "CryptoCardsMoveWitness");
|
|
19
|
+
}
|
|
20
|
+
static configSchemas = [
|
|
21
|
+
...super.configSchemas,
|
|
22
|
+
CryptoCardsMoveWitnessConfigSchema
|
|
23
|
+
];
|
|
15
24
|
static defaultConfigSchema = CryptoCardsMoveWitnessConfigSchema;
|
|
16
25
|
observeHandler(payloads) {
|
|
17
26
|
return payloads ?? [];
|
|
@@ -19,18 +28,20 @@ var CryptoCardsMoveWitness = class extends AbstractWitness {
|
|
|
19
28
|
};
|
|
20
29
|
|
|
21
30
|
// src/Plugin.ts
|
|
22
|
-
var CryptoCardsMovePlugin = () => createPayloadSetWitnessPlugin(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
);
|
|
31
|
+
var CryptoCardsMovePlugin = /* @__PURE__ */ __name(() => createPayloadSetWitnessPlugin({
|
|
32
|
+
required: {
|
|
33
|
+
[CryptoCardsMoveSchema]: 1
|
|
34
|
+
},
|
|
35
|
+
schema: PayloadSetSchema
|
|
36
|
+
}, {
|
|
37
|
+
witness: /* @__PURE__ */ __name(async (params) => {
|
|
38
|
+
return await CryptoCardsMoveWitness.create(params);
|
|
39
|
+
}, "witness")
|
|
40
|
+
}), "CryptoCardsMovePlugin");
|
|
30
41
|
export {
|
|
31
42
|
CryptoCardsMovePlugin,
|
|
32
43
|
CryptoCardsMoveWitness,
|
|
33
44
|
CryptoCardsMoveWitnessConfigSchema,
|
|
34
45
|
CryptoCardsMovePlugin as default
|
|
35
46
|
};
|
|
36
|
-
//# sourceMappingURL=index.
|
|
47
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsMoveSchema } from '@xyo-network/crypto-cards-move-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsMoveWitness } from './Witness.
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsMoveSchema } from '@xyo-network/crypto-cards-move-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsMoveWitness } from './Witness.ts'\n\nexport const CryptoCardsMovePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsMoveWitness>(\n { required: { [CryptoCardsMoveSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return await CryptoCardsMoveWitness.create(params)\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, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsMoveWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsMoveWitnessConfig = WitnessConfig<{\n schema: CryptoCardsMoveWitnessConfigSchema\n}>\n\nexport type CryptoCardsMoveWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsMoveWitnessConfig>>\n\nexport class CryptoCardsMoveWitness<TParams extends CryptoCardsMoveWitnessParams = CryptoCardsMoveWitnessParams> extends AbstractWitness<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsMoveWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsMoveWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsMoveWitnessConfigSchema = 'network.xyo.crypto.cards.move.witness.config'\nexport const CryptoCardsMoveWitnessConfigSchema: CryptoCardsMoveWitnessConfigSchema = 'network.xyo.crypto.cards.move.witness.config'\n"],"mappings":";;;;AAAA,SAASA,6BAA6B;AACtC,SAASC,wBAAwB;AACjC,SAASC,qCAAqC;;;ACD9C,SAASC,uBAAuB;;;ACAzB,IAAMC,qCAAyE;;;ADa/E,IAAMC,yBAAN,cAAkHC,gBAAAA;EAbzH,OAayHA;;;EACvH,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,WAAO,MAAMC,uBAAuBC,OAAOF,MAAAA;EAC7C,GAFS;AAGX,CAAA,GAPiC;","names":["CryptoCardsMoveSchema","PayloadSetSchema","createPayloadSetWitnessPlugin","AbstractWitness","CryptoCardsMoveWitnessConfigSchema","CryptoCardsMoveWitness","AbstractWitness","configSchemas","CryptoCardsMoveWitnessConfigSchema","defaultConfigSchema","observeHandler","payloads","CryptoCardsMovePlugin","createPayloadSetWitnessPlugin","required","CryptoCardsMoveSchema","schema","PayloadSetSchema","witness","params","CryptoCardsMoveWitness","create"]}
|
package/dist/node/Plugin.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CryptoCardsMoveWitness } from './Witness.
|
|
1
|
+
import { CryptoCardsMoveWitness } from './Witness.ts';
|
|
2
2
|
export declare const CryptoCardsMovePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CryptoCardsMoveWitness<import("@xylabs/object").BaseParamsFields & {
|
|
3
3
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
4
|
addToResolvers?: boolean;
|
|
@@ -7,7 +7,7 @@ export declare const CryptoCardsMovePlugin: () => import("@xyo-network/payloadse
|
|
|
7
7
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
8
8
|
schema: "network.xyo.crypto.cards.move.witness.config";
|
|
9
9
|
} & {
|
|
10
|
-
schema: import("./Schema.
|
|
10
|
+
schema: import("./Schema.ts").CryptoCardsMoveWitnessConfigSchema;
|
|
11
11
|
}, "schema"> & {
|
|
12
12
|
schema: "network.xyo.crypto.cards.move.witness.config";
|
|
13
13
|
}, "schema"> & {
|
package/dist/node/Plugin.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CryptoCardsMoveWitness } from './Witness.
|
|
1
|
+
import { CryptoCardsMoveWitness } from './Witness.ts';
|
|
2
2
|
export declare const CryptoCardsMovePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CryptoCardsMoveWitness<import("@xylabs/object").BaseParamsFields & {
|
|
3
3
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
4
|
addToResolvers?: boolean;
|
|
@@ -7,7 +7,7 @@ export declare const CryptoCardsMovePlugin: () => import("@xyo-network/payloadse
|
|
|
7
7
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
8
8
|
schema: "network.xyo.crypto.cards.move.witness.config";
|
|
9
9
|
} & {
|
|
10
|
-
schema: import("./Schema.
|
|
10
|
+
schema: import("./Schema.ts").CryptoCardsMoveWitnessConfigSchema;
|
|
11
11
|
}, "schema"> & {
|
|
12
12
|
schema: "network.xyo.crypto.cards.move.witness.config";
|
|
13
13
|
}, "schema"> & {
|
package/dist/node/Plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CryptoCardsMoveWitness } from './Witness.
|
|
1
|
+
import { CryptoCardsMoveWitness } from './Witness.ts';
|
|
2
2
|
export declare const CryptoCardsMovePlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CryptoCardsMoveWitness<import("@xylabs/object").BaseParamsFields & {
|
|
3
3
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
4
|
addToResolvers?: boolean;
|
|
@@ -7,7 +7,7 @@ export declare const CryptoCardsMovePlugin: () => import("@xyo-network/payloadse
|
|
|
7
7
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
8
8
|
schema: "network.xyo.crypto.cards.move.witness.config";
|
|
9
9
|
} & {
|
|
10
|
-
schema: import("./Schema.
|
|
10
|
+
schema: import("./Schema.ts").CryptoCardsMoveWitnessConfigSchema;
|
|
11
11
|
}, "schema"> & {
|
|
12
12
|
schema: "network.xyo.crypto.cards.move.witness.config";
|
|
13
13
|
}, "schema"> & {
|
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, WitnessParams } from '@xyo-network/witness-model';
|
|
6
|
-
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.
|
|
6
|
+
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.ts';
|
|
7
7
|
export type CryptoCardsMoveWitnessConfig = WitnessConfig<{
|
|
8
8
|
schema: CryptoCardsMoveWitnessConfigSchema;
|
|
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, WitnessParams } from '@xyo-network/witness-model';
|
|
6
|
-
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.
|
|
6
|
+
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.ts';
|
|
7
7
|
export type CryptoCardsMoveWitnessConfig = WitnessConfig<{
|
|
8
8
|
schema: CryptoCardsMoveWitnessConfigSchema;
|
|
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, WitnessParams } from '@xyo-network/witness-model';
|
|
6
|
-
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.
|
|
6
|
+
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.ts';
|
|
7
7
|
export type CryptoCardsMoveWitnessConfig = WitnessConfig<{
|
|
8
8
|
schema: CryptoCardsMoveWitnessConfigSchema;
|
|
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,23 +45,30 @@ var import_abstract_witness = require("@xyo-network/abstract-witness");
|
|
|
39
45
|
var CryptoCardsMoveWitnessConfigSchema = "network.xyo.crypto.cards.move.witness.config";
|
|
40
46
|
|
|
41
47
|
// src/Witness.ts
|
|
42
|
-
var
|
|
43
|
-
static configSchemas = [...super.configSchemas, CryptoCardsMoveWitnessConfigSchema];
|
|
44
|
-
static defaultConfigSchema = CryptoCardsMoveWitnessConfigSchema;
|
|
48
|
+
var _CryptoCardsMoveWitness = class _CryptoCardsMoveWitness extends import_abstract_witness.AbstractWitness {
|
|
45
49
|
observeHandler(payloads) {
|
|
46
50
|
return payloads ?? [];
|
|
47
51
|
}
|
|
48
52
|
};
|
|
53
|
+
__name(_CryptoCardsMoveWitness, "CryptoCardsMoveWitness");
|
|
54
|
+
__publicField(_CryptoCardsMoveWitness, "configSchemas", [
|
|
55
|
+
...__superGet(_CryptoCardsMoveWitness, _CryptoCardsMoveWitness, "configSchemas"),
|
|
56
|
+
CryptoCardsMoveWitnessConfigSchema
|
|
57
|
+
]);
|
|
58
|
+
__publicField(_CryptoCardsMoveWitness, "defaultConfigSchema", CryptoCardsMoveWitnessConfigSchema);
|
|
59
|
+
var CryptoCardsMoveWitness = _CryptoCardsMoveWitness;
|
|
49
60
|
|
|
50
61
|
// src/Plugin.ts
|
|
51
|
-
var CryptoCardsMovePlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
);
|
|
62
|
+
var CryptoCardsMovePlugin = /* @__PURE__ */ __name(() => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)({
|
|
63
|
+
required: {
|
|
64
|
+
[import_crypto_cards_move_payload_plugin.CryptoCardsMoveSchema]: 1
|
|
65
|
+
},
|
|
66
|
+
schema: import_payload_model.PayloadSetSchema
|
|
67
|
+
}, {
|
|
68
|
+
witness: /* @__PURE__ */ __name(async (params) => {
|
|
69
|
+
return await CryptoCardsMoveWitness.create(params);
|
|
70
|
+
}, "witness")
|
|
71
|
+
}), "CryptoCardsMovePlugin");
|
|
59
72
|
// Annotate the CommonJS export names for ESM import in node:
|
|
60
73
|
0 && (module.exports = {
|
|
61
74
|
CryptoCardsMovePlugin,
|
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 { CryptoCardsMovePlugin, CryptoCardsMovePlugin 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 { CryptoCardsMovePlugin, CryptoCardsMovePlugin as default } from './Plugin.ts'\nexport * from './Schema.ts'\nexport * from './Witness.ts'\n","import { CryptoCardsMoveSchema } from '@xyo-network/crypto-cards-move-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsMoveWitness } from './Witness.ts'\n\nexport const CryptoCardsMovePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsMoveWitness>(\n { required: { [CryptoCardsMoveSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return await CryptoCardsMoveWitness.create(params)\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, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsMoveWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsMoveWitnessConfig = WitnessConfig<{\n schema: CryptoCardsMoveWitnessConfigSchema\n}>\n\nexport type CryptoCardsMoveWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsMoveWitnessConfig>>\n\nexport class CryptoCardsMoveWitness<TParams extends CryptoCardsMoveWitnessParams = CryptoCardsMoveWitnessParams> extends AbstractWitness<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsMoveWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsMoveWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsMoveWitnessConfigSchema = 'network.xyo.crypto.cards.move.witness.config'\nexport const CryptoCardsMoveWitnessConfigSchema: CryptoCardsMoveWitnessConfigSchema = 'network.xyo.crypto.cards.move.witness.config'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA,8CAAsC;AACtC,2BAAiC;AACjC,+BAA8C;;;ACD9C,8BAAgC;;;ACAzB,IAAMA,qCAAyE;;;ADa/E,IAAMC,0BAAN,MAAMA,gCAA4GC,wCAAAA;EAIpGC,eAAeC,UAA6C;AAC7E,WAAOA,YAAY,CAAA;EACrB;AACF;AAPyHF;AACvH,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,WAAO,MAAMC,uBAAuBC,OAAOF,MAAAA;EAC7C,GAFS;AAGX,CAAA,GAPiC;","names":["CryptoCardsMoveWitnessConfigSchema","CryptoCardsMoveWitness","AbstractWitness","observeHandler","payloads","configSchemas","CryptoCardsMoveWitnessConfigSchema","defaultConfigSchema","CryptoCardsMovePlugin","createPayloadSetWitnessPlugin","required","CryptoCardsMoveSchema","schema","PayloadSetSchema","witness","params","CryptoCardsMoveWitness","create"]}
|
package/dist/node/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CryptoCardsMovePlugin, CryptoCardsMovePlugin as default } from './Plugin.
|
|
2
|
-
export * from './Schema.
|
|
3
|
-
export * from './Witness.
|
|
1
|
+
export { CryptoCardsMovePlugin, CryptoCardsMovePlugin 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 { CryptoCardsMovePlugin, CryptoCardsMovePlugin as default } from './Plugin.
|
|
2
|
-
export * from './Schema.
|
|
3
|
-
export * from './Witness.
|
|
1
|
+
export { CryptoCardsMovePlugin, CryptoCardsMovePlugin 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 { CryptoCardsMovePlugin, CryptoCardsMovePlugin as default } from './Plugin.
|
|
2
|
-
export * from './Schema.
|
|
3
|
-
export * from './Witness.
|
|
1
|
+
export { CryptoCardsMovePlugin, CryptoCardsMovePlugin 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,51 @@
|
|
|
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 { CryptoCardsMoveSchema } from "@xyo-network/crypto-cards-move-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 CryptoCardsMoveWitnessConfigSchema = "network.xyo.crypto.cards.move.witness.config";
|
|
19
|
+
|
|
20
|
+
// src/Witness.ts
|
|
21
|
+
var _CryptoCardsMoveWitness = class _CryptoCardsMoveWitness extends AbstractWitness {
|
|
22
|
+
observeHandler(payloads) {
|
|
23
|
+
return payloads ?? [];
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
__name(_CryptoCardsMoveWitness, "CryptoCardsMoveWitness");
|
|
27
|
+
__publicField(_CryptoCardsMoveWitness, "configSchemas", [
|
|
28
|
+
...__superGet(_CryptoCardsMoveWitness, _CryptoCardsMoveWitness, "configSchemas"),
|
|
29
|
+
CryptoCardsMoveWitnessConfigSchema
|
|
30
|
+
]);
|
|
31
|
+
__publicField(_CryptoCardsMoveWitness, "defaultConfigSchema", CryptoCardsMoveWitnessConfigSchema);
|
|
32
|
+
var CryptoCardsMoveWitness = _CryptoCardsMoveWitness;
|
|
33
|
+
|
|
34
|
+
// src/Plugin.ts
|
|
35
|
+
var CryptoCardsMovePlugin = /* @__PURE__ */ __name(() => createPayloadSetWitnessPlugin({
|
|
36
|
+
required: {
|
|
37
|
+
[CryptoCardsMoveSchema]: 1
|
|
38
|
+
},
|
|
39
|
+
schema: PayloadSetSchema
|
|
40
|
+
}, {
|
|
41
|
+
witness: /* @__PURE__ */ __name(async (params) => {
|
|
42
|
+
return await CryptoCardsMoveWitness.create(params);
|
|
43
|
+
}, "witness")
|
|
44
|
+
}), "CryptoCardsMovePlugin");
|
|
45
|
+
export {
|
|
46
|
+
CryptoCardsMovePlugin,
|
|
47
|
+
CryptoCardsMoveWitness,
|
|
48
|
+
CryptoCardsMoveWitnessConfigSchema,
|
|
49
|
+
CryptoCardsMovePlugin as default
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsMoveSchema } from '@xyo-network/crypto-cards-move-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsMoveWitness } from './Witness.
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsMoveSchema } from '@xyo-network/crypto-cards-move-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsMoveWitness } from './Witness.ts'\n\nexport const CryptoCardsMovePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsMoveWitness>(\n { required: { [CryptoCardsMoveSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return await CryptoCardsMoveWitness.create(params)\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, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsMoveWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsMoveWitnessConfig = WitnessConfig<{\n schema: CryptoCardsMoveWitnessConfigSchema\n}>\n\nexport type CryptoCardsMoveWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsMoveWitnessConfig>>\n\nexport class CryptoCardsMoveWitness<TParams extends CryptoCardsMoveWitnessParams = CryptoCardsMoveWitnessParams> extends AbstractWitness<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsMoveWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsMoveWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsMoveWitnessConfigSchema = 'network.xyo.crypto.cards.move.witness.config'\nexport const CryptoCardsMoveWitnessConfigSchema: CryptoCardsMoveWitnessConfigSchema = 'network.xyo.crypto.cards.move.witness.config'\n"],"mappings":";;;;;;;;;AAAA,SAASA,6BAA6B;AACtC,SAASC,wBAAwB;AACjC,SAASC,qCAAqC;;;ACD9C,SAASC,uBAAuB;;;ACAzB,IAAMC,qCAAyE;;;ADa/E,IAAMC,0BAAN,MAAMA,gCAA4GC,gBAAAA;EAIpGC,eAAeC,UAA6C;AAC7E,WAAOA,YAAY,CAAA;EACrB;AACF;AAPyHF;AACvH,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,WAAO,MAAMC,uBAAuBC,OAAOF,MAAAA;EAC7C,GAFS;AAGX,CAAA,GAPiC;","names":["CryptoCardsMoveSchema","PayloadSetSchema","createPayloadSetWitnessPlugin","AbstractWitness","CryptoCardsMoveWitnessConfigSchema","CryptoCardsMoveWitness","AbstractWitness","observeHandler","payloads","configSchemas","CryptoCardsMoveWitnessConfigSchema","defaultConfigSchema","CryptoCardsMovePlugin","createPayloadSetWitnessPlugin","required","CryptoCardsMoveSchema","schema","PayloadSetSchema","witness","params","CryptoCardsMoveWitness","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-move-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-move-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 { CryptoCardsMoveSchema } from '@xyo-network/crypto-cards-move-payload-pl
|
|
|
2
2
|
import { PayloadSetSchema } from '@xyo-network/payload-model'
|
|
3
3
|
import { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'
|
|
4
4
|
|
|
5
|
-
import { CryptoCardsMoveWitness } from './Witness.
|
|
5
|
+
import { CryptoCardsMoveWitness } from './Witness.ts'
|
|
6
6
|
|
|
7
7
|
export const CryptoCardsMovePlugin = () =>
|
|
8
8
|
createPayloadSetWitnessPlugin<CryptoCardsMoveWitness>(
|
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, WitnessParams } from '@xyo-network/witness-model'
|
|
6
6
|
|
|
7
|
-
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.
|
|
7
|
+
import { CryptoCardsMoveWitnessConfigSchema } from './Schema.ts'
|
|
8
8
|
|
|
9
9
|
export type CryptoCardsMoveWitnessConfig = WitnessConfig<{
|
|
10
10
|
schema: CryptoCardsMoveWitnessConfigSchema
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// eslint-disable-next-line import/no-default-export
|
|
2
|
-
export { CryptoCardsMovePlugin, CryptoCardsMovePlugin as default } from './Plugin.
|
|
3
|
-
export * from './Schema.
|
|
4
|
-
export * from './Witness.
|
|
2
|
+
export { CryptoCardsMovePlugin, CryptoCardsMovePlugin as default } from './Plugin.ts'
|
|
3
|
+
export * from './Schema.ts'
|
|
4
|
+
export * from './Witness.ts'
|
package/dist/neutral/index.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// src/Plugin.ts
|
|
2
|
-
import { CryptoCardsMoveSchema } from "@xyo-network/crypto-cards-move-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 CryptoCardsMoveWitnessConfigSchema = "network.xyo.crypto.cards.move.witness.config";
|
|
11
|
-
|
|
12
|
-
// src/Witness.ts
|
|
13
|
-
var CryptoCardsMoveWitness = class extends AbstractWitness {
|
|
14
|
-
static configSchemas = [...super.configSchemas, CryptoCardsMoveWitnessConfigSchema];
|
|
15
|
-
static defaultConfigSchema = CryptoCardsMoveWitnessConfigSchema;
|
|
16
|
-
observeHandler(payloads) {
|
|
17
|
-
return payloads ?? [];
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
// src/Plugin.ts
|
|
22
|
-
var CryptoCardsMovePlugin = () => createPayloadSetWitnessPlugin(
|
|
23
|
-
{ required: { [CryptoCardsMoveSchema]: 1 }, schema: PayloadSetSchema },
|
|
24
|
-
{
|
|
25
|
-
witness: async (params) => {
|
|
26
|
-
return await CryptoCardsMoveWitness.create(params);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
export {
|
|
31
|
-
CryptoCardsMovePlugin,
|
|
32
|
-
CryptoCardsMoveWitness,
|
|
33
|
-
CryptoCardsMoveWitnessConfigSchema,
|
|
34
|
-
CryptoCardsMovePlugin as default
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=index.js.map
|