@xyo-network/diviner-address-history-model 3.6.9 → 3.6.11
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 { type Payload, type PayloadFindFilter, type Query } from '@xyo-network/payload-model';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
2
|
+
export declare const AddressHistorySchema: "network.xyo.diviner.address.history";
|
|
3
|
+
export type AddressHistorySchema = typeof AddressHistorySchema;
|
|
4
|
+
export declare const AddressHistoryQuerySchema: "network.xyo.diviner.address.history.query";
|
|
5
|
+
export type AddressHistoryQuerySchema = typeof AddressHistoryQuerySchema;
|
|
6
6
|
export type AddressHistoryPayload = Payload<{
|
|
7
7
|
schema: AddressHistorySchema;
|
|
8
8
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,KAAK,EACjD,MAAM,4BAA4B,CAAA;AAEnC,
|
|
1
|
+
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,KAAK,EACjD,MAAM,4BAA4B,CAAA;AAEnC,eAAO,MAAM,oBAAoB,EAAG,qCAA8C,CAAA;AAClF,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAA;AAE9D,eAAO,MAAM,yBAAyB,EAAG,2CAAoD,CAAA;AAC7F,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAA;AAExE,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC;IAAE,MAAM,EAAE,oBAAoB,CAAA;CAAE,CAAC,CAAA;AAC7E,eAAO,MAAM,uBAAuB,OAAQ,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,qBAA2D,CAAA;AAE7H,MAAM,MAAM,0BAA0B,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,yBAAyB,CAAA;CAAE,GAAG,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC,CAAA;AACzH,eAAO,MAAM,4BAA4B;;;;;;;;EAA+E,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
|
|
4
1
|
// src/Diviner.ts
|
|
5
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
isPayloadOfSchemaType
|
|
4
|
+
} from "@xyo-network/payload-model";
|
|
6
5
|
var AddressHistorySchema = "network.xyo.diviner.address.history";
|
|
7
6
|
var AddressHistoryQuerySchema = "network.xyo.diviner.address.history.query";
|
|
8
|
-
var isAddressHistoryPayload =
|
|
7
|
+
var isAddressHistoryPayload = (x) => x?.schema === AddressHistorySchema;
|
|
9
8
|
var isAddressHistoryQueryPayload = isPayloadOfSchemaType(AddressHistoryQuerySchema);
|
|
10
9
|
|
|
11
10
|
// src/Config.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Diviner.ts","../../src/Config.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n type Payload, type PayloadFindFilter, type Query,\n} from '@xyo-network/payload-model'\n\nexport
|
|
1
|
+
{"version":3,"sources":["../../src/Diviner.ts","../../src/Config.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n type Payload, type PayloadFindFilter, type Query,\n} from '@xyo-network/payload-model'\n\nexport const AddressHistorySchema = 'network.xyo.diviner.address.history' as const\nexport type AddressHistorySchema = typeof AddressHistorySchema\n\nexport const AddressHistoryQuerySchema = 'network.xyo.diviner.address.history.query' as const\nexport type AddressHistoryQuerySchema = typeof AddressHistoryQuerySchema\n\nexport type AddressHistoryPayload = Payload<{ schema: AddressHistorySchema }>\nexport const isAddressHistoryPayload = (x?: Payload | null): x is AddressHistoryPayload => x?.schema === AddressHistorySchema\n\nexport type AddressHistoryQueryPayload = Query<{ schema: AddressHistoryQuerySchema } & Omit<PayloadFindFilter, 'schema'>>\nexport const isAddressHistoryQueryPayload = isPayloadOfSchemaType<AddressHistoryQueryPayload>(AddressHistoryQuerySchema)\n","import type { Address } from '@xylabs/hex'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { AddressHistorySchema } from './Diviner.ts'\n\nexport type AddressHistoryDivinerConfigSchema = `${AddressHistorySchema}.config`\nexport const AddressHistoryDivinerConfigSchema: AddressHistoryDivinerConfigSchema = `${AddressHistorySchema}.config`\n\nexport type AddressHistoryDivinerConfig = DivinerConfig<{\n address?: Address\n schema: AddressHistoryDivinerConfigSchema\n}>\n"],"mappings":";AAAA;AAAA,EACE;AAAA,OAEK;AAEA,IAAM,uBAAuB;AAG7B,IAAM,4BAA4B;AAIlC,IAAM,0BAA0B,CAAC,MAAmD,GAAG,WAAW;AAGlG,IAAM,+BAA+B,sBAAkD,yBAAyB;;;ACThH,IAAM,oCAAuE,GAAG,oBAAoB;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-address-history-model",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.11",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/hex": "^4.
|
|
33
|
-
"@xyo-network/diviner-model": "^3.6.
|
|
34
|
-
"@xyo-network/module-model": "^3.6.
|
|
35
|
-
"@xyo-network/payload-model": "^3.6.
|
|
32
|
+
"@xylabs/hex": "^4.5.1",
|
|
33
|
+
"@xyo-network/diviner-model": "^3.6.11",
|
|
34
|
+
"@xyo-network/module-model": "^3.6.11",
|
|
35
|
+
"@xyo-network/payload-model": "^3.6.11"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@xylabs/ts-scripts-yarn3": "^4.2.6",
|
|
39
39
|
"@xylabs/tsconfig": "^4.2.6",
|
|
40
|
-
"typescript": "^5.7.
|
|
40
|
+
"typescript": "^5.7.3"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
package/src/Diviner.ts
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
type Payload, type PayloadFindFilter, type Query,
|
|
4
4
|
} from '@xyo-network/payload-model'
|
|
5
5
|
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export const AddressHistorySchema = 'network.xyo.diviner.address.history' as const
|
|
7
|
+
export type AddressHistorySchema = typeof AddressHistorySchema
|
|
8
8
|
|
|
9
|
-
export
|
|
10
|
-
export
|
|
9
|
+
export const AddressHistoryQuerySchema = 'network.xyo.diviner.address.history.query' as const
|
|
10
|
+
export type AddressHistoryQuerySchema = typeof AddressHistoryQuerySchema
|
|
11
11
|
|
|
12
12
|
export type AddressHistoryPayload = Payload<{ schema: AddressHistorySchema }>
|
|
13
13
|
export const isAddressHistoryPayload = (x?: Payload | null): x is AddressHistoryPayload => x?.schema === AddressHistorySchema
|