@xyo-network/xns-record-payload-plugins 3.1.1 → 3.2.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/browser/Address/Payload.d.ts +7 -4
- package/dist/browser/Address/Payload.d.ts.map +1 -1
- package/dist/browser/DNS/Witness/Config.d.ts +12 -0
- package/dist/browser/DNS/Witness/Config.d.ts.map +1 -1
- package/dist/browser/DNS/Witness/Payload/Request.d.ts +15 -1
- package/dist/browser/DNS/Witness/Payload/Request.d.ts.map +1 -1
- package/dist/browser/DNS/Witness/Payload/Response.d.ts +9 -1
- package/dist/browser/DNS/Witness/Payload/Response.d.ts.map +1 -1
- package/dist/browser/DNS/types/Header.d.ts +33 -0
- package/dist/browser/DNS/types/Header.d.ts.map +1 -1
- package/dist/browser/DNS/types/Request.d.ts +10 -0
- package/dist/browser/DNS/types/Request.d.ts.map +1 -1
- package/dist/browser/Domain/Domain.d.ts +21 -3
- package/dist/browser/Domain/Domain.d.ts.map +1 -1
- package/dist/browser/Domain/DomainLease.d.ts +12 -3
- package/dist/browser/Domain/DomainLease.d.ts.map +1 -1
- package/dist/browser/DomainEstimate/DomainEstimate.d.ts +4 -4
- package/dist/browser/DomainEstimate/DomainEstimate.d.ts.map +1 -1
- package/dist/browser/DomainRegistration/DomainRegistration.d.ts +15 -3
- package/dist/browser/DomainRegistration/DomainRegistration.d.ts.map +1 -1
- package/dist/browser/DomainRegistration/DomainRegistrationLease.d.ts +12 -6
- package/dist/browser/DomainRegistration/DomainRegistrationLease.d.ts.map +1 -1
- package/dist/browser/Duration/Duration.d.ts +6 -0
- package/dist/browser/Duration/Duration.d.ts.map +1 -1
- package/dist/browser/Hash/Payload.d.ts +7 -4
- package/dist/browser/Hash/Payload.d.ts.map +1 -1
- package/dist/browser/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts +18 -3
- package/dist/browser/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts.map +1 -1
- package/dist/browser/diviner/DomainLeaseEstimateDiviner/Schema.d.ts.map +1 -1
- package/dist/browser/diviner/lib/parseEstimatesFromArray.d.ts +9 -4
- package/dist/browser/diviner/lib/parseEstimatesFromArray.d.ts.map +1 -1
- package/dist/browser/index.mjs +8 -50
- package/dist/browser/index.mjs.map +1 -1
- package/dist/neutral/Address/Payload.d.ts +7 -4
- package/dist/neutral/Address/Payload.d.ts.map +1 -1
- package/dist/neutral/DNS/Witness/Config.d.ts +12 -0
- package/dist/neutral/DNS/Witness/Config.d.ts.map +1 -1
- package/dist/neutral/DNS/Witness/Payload/Request.d.ts +15 -1
- package/dist/neutral/DNS/Witness/Payload/Request.d.ts.map +1 -1
- package/dist/neutral/DNS/Witness/Payload/Response.d.ts +9 -1
- package/dist/neutral/DNS/Witness/Payload/Response.d.ts.map +1 -1
- package/dist/neutral/DNS/types/Header.d.ts +33 -0
- package/dist/neutral/DNS/types/Header.d.ts.map +1 -1
- package/dist/neutral/DNS/types/Request.d.ts +10 -0
- package/dist/neutral/DNS/types/Request.d.ts.map +1 -1
- package/dist/neutral/Domain/Domain.d.ts +21 -3
- package/dist/neutral/Domain/Domain.d.ts.map +1 -1
- package/dist/neutral/Domain/DomainLease.d.ts +12 -3
- package/dist/neutral/Domain/DomainLease.d.ts.map +1 -1
- package/dist/neutral/DomainEstimate/DomainEstimate.d.ts +4 -4
- package/dist/neutral/DomainEstimate/DomainEstimate.d.ts.map +1 -1
- package/dist/neutral/DomainRegistration/DomainRegistration.d.ts +15 -3
- package/dist/neutral/DomainRegistration/DomainRegistration.d.ts.map +1 -1
- package/dist/neutral/DomainRegistration/DomainRegistrationLease.d.ts +12 -6
- package/dist/neutral/DomainRegistration/DomainRegistrationLease.d.ts.map +1 -1
- package/dist/neutral/Duration/Duration.d.ts +6 -0
- package/dist/neutral/Duration/Duration.d.ts.map +1 -1
- package/dist/neutral/Hash/Payload.d.ts +7 -4
- package/dist/neutral/Hash/Payload.d.ts.map +1 -1
- package/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts +18 -3
- package/dist/neutral/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts.map +1 -1
- package/dist/neutral/diviner/DomainLeaseEstimateDiviner/Schema.d.ts.map +1 -1
- package/dist/neutral/diviner/lib/parseEstimatesFromArray.d.ts +9 -4
- package/dist/neutral/diviner/lib/parseEstimatesFromArray.d.ts.map +1 -1
- package/dist/neutral/index.mjs +8 -50
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/node/Address/Payload.d.ts +7 -4
- package/dist/node/Address/Payload.d.ts.map +1 -1
- package/dist/node/DNS/Witness/Config.d.ts +12 -0
- package/dist/node/DNS/Witness/Config.d.ts.map +1 -1
- package/dist/node/DNS/Witness/Payload/Request.d.ts +15 -1
- package/dist/node/DNS/Witness/Payload/Request.d.ts.map +1 -1
- package/dist/node/DNS/Witness/Payload/Response.d.ts +9 -1
- package/dist/node/DNS/Witness/Payload/Response.d.ts.map +1 -1
- package/dist/node/DNS/types/Header.d.ts +33 -0
- package/dist/node/DNS/types/Header.d.ts.map +1 -1
- package/dist/node/DNS/types/Request.d.ts +10 -0
- package/dist/node/DNS/types/Request.d.ts.map +1 -1
- package/dist/node/Domain/Domain.d.ts +21 -3
- package/dist/node/Domain/Domain.d.ts.map +1 -1
- package/dist/node/Domain/DomainLease.d.ts +12 -3
- package/dist/node/Domain/DomainLease.d.ts.map +1 -1
- package/dist/node/DomainEstimate/DomainEstimate.d.ts +4 -4
- package/dist/node/DomainEstimate/DomainEstimate.d.ts.map +1 -1
- package/dist/node/DomainRegistration/DomainRegistration.d.ts +15 -3
- package/dist/node/DomainRegistration/DomainRegistration.d.ts.map +1 -1
- package/dist/node/DomainRegistration/DomainRegistrationLease.d.ts +12 -6
- package/dist/node/DomainRegistration/DomainRegistrationLease.d.ts.map +1 -1
- package/dist/node/Duration/Duration.d.ts +6 -0
- package/dist/node/Duration/Duration.d.ts.map +1 -1
- package/dist/node/Hash/Payload.d.ts +7 -4
- package/dist/node/Hash/Payload.d.ts.map +1 -1
- package/dist/node/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts +18 -3
- package/dist/node/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.d.ts.map +1 -1
- package/dist/node/diviner/DomainLeaseEstimateDiviner/Schema.d.ts.map +1 -1
- package/dist/node/diviner/lib/parseEstimatesFromArray.d.ts +9 -4
- package/dist/node/diviner/lib/parseEstimatesFromArray.d.ts.map +1 -1
- package/dist/node/index.mjs +8 -50
- package/dist/node/index.mjs.map +1 -1
- package/package.json +19 -16
- package/src/Address/Payload.ts +1 -2
- package/src/DNS/Witness/Payload/Request.ts +0 -6
- package/src/DNS/Witness/Payload/Response.ts +0 -6
- package/src/Domain/Domain.ts +1 -8
- package/src/Domain/DomainLease.ts +1 -8
- package/src/DomainEstimate/DomainEstimate.ts +4 -4
- package/src/DomainRegistration/DomainRegistration.ts +1 -8
- package/src/DomainRegistration/DomainRegistrationLease.ts +1 -12
- package/src/Hash/Payload.ts +1 -2
- package/src/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.ts +1 -9
- package/src/diviner/lib/parseEstimatesFromArray.ts +10 -13
|
@@ -1,19 +1,37 @@
|
|
|
1
1
|
import type { Payload } from '@xyo-network/payload-model';
|
|
2
2
|
export type DomainSchema = 'network.xyo.ns.domain';
|
|
3
3
|
export declare const DomainSchema: DomainSchema;
|
|
4
|
+
/**
|
|
5
|
+
* The supported TLDs for XNS
|
|
6
|
+
*/
|
|
4
7
|
export type TopLevelDomain = 'xyo';
|
|
8
|
+
/**
|
|
9
|
+
* The fields for a domain record
|
|
10
|
+
*/
|
|
5
11
|
export interface DomainFields {
|
|
12
|
+
/**
|
|
13
|
+
* The XNS domain of the record
|
|
14
|
+
*/
|
|
6
15
|
domain: string;
|
|
16
|
+
/**
|
|
17
|
+
* The Top-Level Domain of the domain
|
|
18
|
+
*/
|
|
7
19
|
tld: TopLevelDomain;
|
|
8
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* A domain record is a record of a domain
|
|
23
|
+
*/
|
|
9
24
|
export type Domain = Payload<DomainFields, DomainSchema>;
|
|
25
|
+
/**
|
|
26
|
+
* Identity function for Domain payload
|
|
27
|
+
*/
|
|
10
28
|
export declare const isDomain: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & DomainFields & {
|
|
11
29
|
schema: "network.xyo.ns.domain";
|
|
12
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* Identity function for Domain payload with sources
|
|
33
|
+
*/
|
|
13
34
|
export declare const isDomainWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & DomainFields & {
|
|
14
35
|
schema: "network.xyo.ns.domain";
|
|
15
36
|
}>;
|
|
16
|
-
export declare const isDomainWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & DomainFields & {
|
|
17
|
-
schema: "network.xyo.ns.domain";
|
|
18
|
-
}>;
|
|
19
37
|
//# sourceMappingURL=Domain.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Domain.d.ts","sourceRoot":"","sources":["../../../src/Domain/Domain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Domain.d.ts","sourceRoot":"","sources":["../../../src/Domain/Domain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,MAAM,MAAM,YAAY,GAAG,uBAAuB,CAAA;AAClD,eAAO,MAAM,YAAY,EAAE,YAAsC,CAAA;AAEjE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAA;AAElC;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,GAAG,EAAE,cAAc,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,YAAY,CAAC,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,QAAQ;;CAA8C,CAAA;AAEnE;;GAEG;AACH,eAAO,MAAM,mBAAmB;;EAAyD,CAAA"}
|
|
@@ -3,16 +3,25 @@ import type { DurationFields } from '../Duration/index.ts';
|
|
|
3
3
|
import type { DomainFields } from './Domain.ts';
|
|
4
4
|
export type DomainLeaseSchema = 'network.xyo.ns.domain.lease';
|
|
5
5
|
export declare const DomainLeaseSchema: DomainLeaseSchema;
|
|
6
|
+
/**
|
|
7
|
+
* A domain is leased for a duration
|
|
8
|
+
*/
|
|
6
9
|
export interface DomainLeaseFields extends DomainFields, DurationFields {
|
|
7
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* A domain lease is a record of a domain and the duration it is leased for
|
|
13
|
+
*/
|
|
8
14
|
export type DomainLease = Payload<DomainLeaseFields, DomainLeaseSchema>;
|
|
15
|
+
/**
|
|
16
|
+
* Identity function for DomainLease payload
|
|
17
|
+
*/
|
|
9
18
|
export declare const isDomainLease: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & DomainLeaseFields & {
|
|
10
19
|
schema: "network.xyo.ns.domain.lease";
|
|
11
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* Identity function for DomainLease payload with sources
|
|
23
|
+
*/
|
|
12
24
|
export declare const isDomainLeaseWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & DomainLeaseFields & {
|
|
13
25
|
schema: "network.xyo.ns.domain.lease";
|
|
14
26
|
}>;
|
|
15
|
-
export declare const isDomainLeaseWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & DomainLeaseFields & {
|
|
16
|
-
schema: "network.xyo.ns.domain.lease";
|
|
17
|
-
}>;
|
|
18
27
|
//# sourceMappingURL=DomainLease.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomainLease.d.ts","sourceRoot":"","sources":["../../../src/Domain/DomainLease.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"DomainLease.d.ts","sourceRoot":"","sources":["../../../src/Domain/DomainLease.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C,MAAM,MAAM,iBAAiB,GAAG,6BAA6B,CAAA;AAC7D,eAAO,MAAM,iBAAiB,EAAE,iBAAiD,CAAA;AAEjF;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,YAAY,EAAE,cAAc;CAAG;AAE1E;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAA;AAEvE;;GAEG;AACH,eAAO,MAAM,aAAa;;CAAwD,CAAA;AAElF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;EAAmE,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
2
2
|
import type { HashLeaseEstimate } from '@xyo-network/diviner-hash-lease';
|
|
3
|
-
import type {
|
|
3
|
+
import type { WithSources } from '@xyo-network/payload-model';
|
|
4
4
|
import type { DomainRegistrationLease } from '../DomainRegistration/index.ts';
|
|
5
5
|
export type DomainEstimate = [
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
BoundWitness,
|
|
7
|
+
WithSources<HashLeaseEstimate>,
|
|
8
|
+
WithSources<DomainRegistrationLease>
|
|
9
9
|
];
|
|
10
10
|
//# sourceMappingURL=DomainEstimate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomainEstimate.d.ts","sourceRoot":"","sources":["../../../src/DomainEstimate/DomainEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"DomainEstimate.d.ts","sourceRoot":"","sources":["../../../src/DomainEstimate/DomainEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAE7D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AAE7E,MAAM,MAAM,cAAc,GAAG;IAC3B,YAAY;IACZ,WAAW,CAAC,iBAAiB,CAAC;IAC9B,WAAW,CAAC,uBAAuB,CAAC;CACrC,CAAA"}
|
|
@@ -4,17 +4,29 @@ import type { DomainFields } from '../Domain/index.ts';
|
|
|
4
4
|
export declare const DomainRegistrationSchema: "network.xyo.ns.domain.registration";
|
|
5
5
|
export type DomainRegistrationSchema = typeof DomainRegistrationSchema;
|
|
6
6
|
export interface DomainRegistrationFields extends DomainFields {
|
|
7
|
+
/**
|
|
8
|
+
* The registrant of the domain
|
|
9
|
+
*/
|
|
7
10
|
registrant: Address[];
|
|
11
|
+
/**
|
|
12
|
+
* The registrar of the domain
|
|
13
|
+
*/
|
|
8
14
|
registrar: Address[];
|
|
9
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Delegation of a domain to a registrar by a registrant
|
|
18
|
+
*/
|
|
10
19
|
export type DomainRegistration = Payload<DomainRegistrationFields, DomainRegistrationSchema>;
|
|
20
|
+
/**
|
|
21
|
+
* Identity function for DomainRegistration payload
|
|
22
|
+
*/
|
|
11
23
|
export declare const isDomainRegistration: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & DomainRegistrationFields & {
|
|
12
24
|
schema: "network.xyo.ns.domain.registration";
|
|
13
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* Identity function for DomainRegistration payload with sources
|
|
28
|
+
*/
|
|
14
29
|
export declare const isDomainRegistrationWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & DomainRegistrationFields & {
|
|
15
30
|
schema: "network.xyo.ns.domain.registration";
|
|
16
31
|
}>;
|
|
17
|
-
export declare const isDomainRegistrationWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & DomainRegistrationFields & {
|
|
18
|
-
schema: "network.xyo.ns.domain.registration";
|
|
19
|
-
}>;
|
|
20
32
|
//# sourceMappingURL=DomainRegistration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomainRegistration.d.ts","sourceRoot":"","sources":["../../../src/DomainRegistration/DomainRegistration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"DomainRegistration.d.ts","sourceRoot":"","sources":["../../../src/DomainRegistration/DomainRegistration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAGtD,eAAO,MAAM,wBAAwB,sCAA0C,CAAA;AAC/E,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAA;AAEtE,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC5D;;OAEG;IACH,UAAU,EAAE,OAAO,EAAE,CAAA;IACrB;;OAEG;IACH,SAAS,EAAE,OAAO,EAAE,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,wBAAwB,EAAE,wBAAwB,CAAC,CAAA;AAE5F;;GAEG;AACH,eAAO,MAAM,oBAAoB;;CAAsE,CAAA;AAEvG;;GAEG;AACH,eAAO,MAAM,+BAA+B;;EAAiF,CAAA"}
|
|
@@ -5,20 +5,26 @@ export declare const DomainRegistrationLeaseSchema: "network.xyo.ns.domain.regis
|
|
|
5
5
|
export type DomainRegistrationLeaseSchema = typeof DomainRegistrationLeaseSchema;
|
|
6
6
|
export interface DomainRegistrationLeaseFields extends DomainRegistrationFields, DurationFields {
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* Temporal delegation of a domain to a registrar by a registrant
|
|
10
|
+
*/
|
|
8
11
|
export type DomainRegistrationLease = Payload<DomainRegistrationLeaseFields, DomainRegistrationLeaseSchema>;
|
|
12
|
+
/**
|
|
13
|
+
* Identity function for DomainRegistrationLease payload
|
|
14
|
+
*/
|
|
9
15
|
export declare const isDomainRegistrationLease: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & DomainRegistrationLeaseFields & {
|
|
10
16
|
schema: "network.xyo.ns.domain.registration.lease";
|
|
11
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* Identity function for DomainRegistrationLease payload with sources
|
|
20
|
+
*/
|
|
12
21
|
export declare const isDomainRegistrationLeaseWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & DomainRegistrationLeaseFields & {
|
|
13
22
|
schema: "network.xyo.ns.domain.registration.lease";
|
|
14
23
|
}>;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use isDomainRegistrationLeaseWithSources instead
|
|
26
|
+
*/
|
|
15
27
|
export declare const isDomainRegistrationLeaseSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & DomainRegistrationLeaseFields & {
|
|
16
28
|
schema: "network.xyo.ns.domain.registration.lease";
|
|
17
29
|
}>;
|
|
18
|
-
export declare const isDomainRegistrationLeaseWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & DomainRegistrationLeaseFields & {
|
|
19
|
-
schema: "network.xyo.ns.domain.registration.lease";
|
|
20
|
-
}>;
|
|
21
|
-
export declare const isDomainRegistrationLeaseMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & DomainRegistrationLeaseFields & {
|
|
22
|
-
schema: "network.xyo.ns.domain.registration.lease";
|
|
23
|
-
}>;
|
|
24
30
|
//# sourceMappingURL=DomainRegistrationLease.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomainRegistrationLease.d.ts","sourceRoot":"","sources":["../../../src/DomainRegistration/DomainRegistrationLease.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"DomainRegistrationLease.d.ts","sourceRoot":"","sources":["../../../src/DomainRegistration/DomainRegistrationLease.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAGvE,eAAO,MAAM,6BAA6B,4CAA+C,CAAA;AACzF,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAA;AAEhF,MAAM,WAAW,6BAA8B,SAAQ,wBAAwB,EAAE,cAAc;CAAG;AAElG;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,6BAA6B,EAAE,6BAA6B,CAAC,CAAA;AAE3G;;GAEG;AACH,eAAO,MAAM,yBAAyB;;CAAgF,CAAA;AAEtH;;GAEG;AACH,eAAO,MAAM,oCAAoC;;EAA2F,CAAA;AAC5I;;GAEG;AACH,eAAO,MAAM,gCAAgC;;EAAuC,CAAA"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export interface DurationFields {
|
|
2
|
+
/**
|
|
3
|
+
* A timestamp that indicates the expiration time of the record
|
|
4
|
+
*/
|
|
2
5
|
exp: number;
|
|
6
|
+
/**
|
|
7
|
+
* A timestamp that indicates the time before which the record is not valid
|
|
8
|
+
*/
|
|
3
9
|
nbf: number;
|
|
4
10
|
}
|
|
5
11
|
//# sourceMappingURL=Duration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Duration.d.ts","sourceRoot":"","sources":["../../../src/Duration/Duration.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;
|
|
1
|
+
{"version":3,"file":"Duration.d.ts","sourceRoot":"","sources":["../../../src/Duration/Duration.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;CACZ"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { Payload
|
|
2
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
3
3
|
import type { DomainFields } from '../Domain/index.ts';
|
|
4
4
|
export type HashRecordSchema = 'network.xyo.ns.record.hash';
|
|
5
5
|
export declare const HashRecordSchema: HashRecordSchema;
|
|
6
6
|
export interface HashRecordFields extends DomainFields {
|
|
7
|
+
/**
|
|
8
|
+
* The hash the record points to
|
|
9
|
+
*/
|
|
7
10
|
hash: Hash[];
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* An hash record points a domain to an hash
|
|
14
|
+
*/
|
|
9
15
|
export type HashRecord = Payload<HashRecordFields, HashRecordSchema>;
|
|
10
16
|
export declare const isHashRecord: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashRecordFields & {
|
|
11
17
|
schema: "network.xyo.ns.record.hash";
|
|
12
18
|
};
|
|
13
|
-
export declare const isHashRecordWithMeta: (x?: unknown | null) => x is WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashRecordFields & {
|
|
14
|
-
schema: "network.xyo.ns.record.hash";
|
|
15
|
-
}>;
|
|
16
19
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Hash/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Hash/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEtD,MAAM,MAAM,gBAAgB,GAAG,4BAA4B,CAAA;AAC3D,eAAO,MAAM,gBAAgB,EAAE,gBAA+C,CAAA;AAE9E,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD;;OAEG;IACH,IAAI,EAAE,IAAI,EAAE,CAAA;CACb;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAA;AAEpE,eAAO,MAAM,YAAY;;CAAsD,CAAA"}
|
|
@@ -2,21 +2,36 @@ import type { Payload } from '@xyo-network/payload-model';
|
|
|
2
2
|
import { DomainLeaseEstimateDivinerValidationErrorDetailsSchema } from '../Schema.ts';
|
|
3
3
|
export interface ErrorDetails<TErrorCode extends string | undefined = string | undefined> {
|
|
4
4
|
[key: string]: any;
|
|
5
|
+
/**
|
|
6
|
+
* A string code indicating the error type.
|
|
7
|
+
*/
|
|
5
8
|
code: TErrorCode;
|
|
9
|
+
/**
|
|
10
|
+
* A human-readable explanation specific to this occurrence of the problem
|
|
11
|
+
*/
|
|
6
12
|
detail?: string;
|
|
13
|
+
/**
|
|
14
|
+
* A short, human-readable summary of the problem type.
|
|
15
|
+
*/
|
|
7
16
|
title?: string;
|
|
8
17
|
}
|
|
9
18
|
export type ErrorDetailsDictionary<T extends number = number> = {
|
|
10
19
|
readonly [K in T]: ErrorDetails<`${K}`>;
|
|
11
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* A payment authorization token payload
|
|
23
|
+
*/
|
|
12
24
|
export type DomainLeaseEstimateDivinerValidationErrorDetails<TErrorCode extends string | undefined = string> = Payload<ErrorDetails<TErrorCode>, DomainLeaseEstimateDivinerValidationErrorDetailsSchema>;
|
|
25
|
+
/**
|
|
26
|
+
* Identity function for DomainLeaseEstimateDivinerValidationErrorDetails payload
|
|
27
|
+
*/
|
|
13
28
|
export declare const isDomainLeaseEstimateDivinerValidationErrorDetails: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & ErrorDetails<string> & {
|
|
14
29
|
schema: "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details";
|
|
15
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* Identity function for DomainLeaseEstimateDivinerValidationErrorDetails payload with sources
|
|
33
|
+
*/
|
|
16
34
|
export declare const isDomainLeaseEstimateDivinerValidationErrorDetailsWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & ErrorDetails<string> & {
|
|
17
35
|
schema: "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details";
|
|
18
36
|
}>;
|
|
19
|
-
export declare const isDomainLeaseEstimateDivinerValidationErrorDetailsWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & ErrorDetails<string> & {
|
|
20
|
-
schema: "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details";
|
|
21
|
-
}>;
|
|
22
37
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,EAAE,sDAAsD,EAAE,MAAM,cAAc,CAAA;AAErF,MAAM,WAAW,YAAY,CAAC,UAAU,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS;IAEtF,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IAClB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAA;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAC9D,QAAQ,EAAE,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;CACxC,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,gDAAgD,CAAC,UAAU,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,IAAI,OAAO,CACpH,YAAY,CAAC,UAAU,CAAC,EACxB,sDAAsD,CACvD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kDAAkD;;CAE9D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,6DAA6D;;EACoE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/diviner/DomainLeaseEstimateDiviner/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sDAAsD,
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/diviner/DomainLeaseEstimateDiviner/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sDAAsD,EAC/D,oFAA6F,CAAA;AAEjG,MAAM,MAAM,sDAAsD,GAAG,OAAO,sDAAsD,CAAA"}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { type BoundWitness } from '@xyo-network/boundwitness-model';
|
|
2
2
|
import { type HashLeaseEstimate } from '@xyo-network/diviner-hash-lease';
|
|
3
|
-
import type { Payload,
|
|
3
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model';
|
|
4
4
|
import { type DomainRegistrationLease } from '../../DomainRegistration/index.ts';
|
|
5
5
|
export type Estimate = [
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
BoundWitness,
|
|
7
|
+
WithSources<HashLeaseEstimate>,
|
|
8
|
+
WithSources<DomainRegistrationLease>
|
|
9
9
|
];
|
|
10
|
+
/**
|
|
11
|
+
* Parses a generic array of payloads into estimates
|
|
12
|
+
* @param payloads An array of payloads
|
|
13
|
+
* @returns Parsed estimates
|
|
14
|
+
*/
|
|
10
15
|
export declare const parseEstimatesFromArray: (payloads?: Payload[]) => Promise<Estimate[]>;
|
|
11
16
|
//# sourceMappingURL=parseEstimatesFromArray.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseEstimatesFromArray.d.ts","sourceRoot":"","sources":["../../../../src/diviner/lib/parseEstimatesFromArray.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,iCAAiC,CAAA;AACnF,OAAO,EACL,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"parseEstimatesFromArray.d.ts","sourceRoot":"","sources":["../../../../src/diviner/lib/parseEstimatesFromArray.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,iCAAiC,CAAA;AACnF,OAAO,EACL,KAAK,iBAAiB,EACvB,MAAM,iCAAiC,CAAA;AAExC,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAEtE,OAAO,EACL,KAAK,uBAAuB,EAC7B,MAAM,mCAAmC,CAAA;AAE1C,MAAM,MAAM,QAAQ,GAAG;IACrB,YAAY;IACZ,WAAW,CAAC,iBAAiB,CAAC;IAC9B,WAAW,CAAC,uBAAuB,CAAC;CACrC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,cAAqB,OAAO,EAAE,KAAG,OAAO,CAAC,QAAQ,EAAE,CA0BtF,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
|
|
3
3
|
var AddressRecordSchema = "network.xyo.ns.record.address";
|
|
4
4
|
var isAddressRecord = isPayloadOfSchemaType(AddressRecordSchema);
|
|
5
|
-
var isAddressRecordWithMeta = isPayloadOfSchemaType(AddressRecordSchema);
|
|
6
5
|
|
|
7
6
|
// src/diviner/DomainLeaseEstimateDiviner/Schema.ts
|
|
8
7
|
var DomainLeaseEstimateDivinerValidationErrorDetailsSchema = "network.xyo.diviner.ns.domain.registration.lease.estimate.validation.error.details";
|
|
@@ -57,73 +56,47 @@ var DomainLeaseEstimateDivinerErrorDetailsDictionary = {
|
|
|
57
56
|
};
|
|
58
57
|
|
|
59
58
|
// src/diviner/DomainLeaseEstimateDiviner/ErrorDetails/Payload.ts
|
|
60
|
-
import {
|
|
61
|
-
isPayloadOfSchemaType as isPayloadOfSchemaType2,
|
|
62
|
-
isPayloadOfSchemaTypeWithMeta,
|
|
63
|
-
isPayloadOfSchemaTypeWithSources
|
|
64
|
-
} from "@xyo-network/payload-model";
|
|
59
|
+
import { isPayloadOfSchemaType as isPayloadOfSchemaType2, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
|
|
65
60
|
var isDomainLeaseEstimateDivinerValidationErrorDetails = isPayloadOfSchemaType2(
|
|
66
61
|
DomainLeaseEstimateDivinerValidationErrorDetailsSchema
|
|
67
62
|
);
|
|
68
63
|
var isDomainLeaseEstimateDivinerValidationErrorDetailsWithSources = isPayloadOfSchemaTypeWithSources(DomainLeaseEstimateDivinerValidationErrorDetailsSchema);
|
|
69
|
-
var isDomainLeaseEstimateDivinerValidationErrorDetailsWithMeta = isPayloadOfSchemaTypeWithMeta(DomainLeaseEstimateDivinerValidationErrorDetailsSchema);
|
|
70
64
|
|
|
71
65
|
// src/diviner/lib/parseEstimatesFromArray.ts
|
|
72
66
|
import { exists } from "@xylabs/exists";
|
|
73
67
|
import { isBoundWitness } from "@xyo-network/boundwitness-model";
|
|
74
68
|
import {
|
|
75
69
|
HashLeaseEstimateSchema,
|
|
76
|
-
|
|
70
|
+
isHashLeaseEstimate
|
|
77
71
|
} from "@xyo-network/diviner-hash-lease";
|
|
78
72
|
import { PayloadBuilder } from "@xyo-network/payload-builder";
|
|
79
73
|
|
|
80
74
|
// src/DomainRegistration/DomainRegistration.ts
|
|
81
|
-
import {
|
|
82
|
-
isPayloadOfSchemaType as isPayloadOfSchemaType5,
|
|
83
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta4,
|
|
84
|
-
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources4
|
|
85
|
-
} from "@xyo-network/payload-model";
|
|
75
|
+
import { isPayloadOfSchemaType as isPayloadOfSchemaType5, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources4 } from "@xyo-network/payload-model";
|
|
86
76
|
|
|
87
77
|
// src/Domain/Domain.ts
|
|
88
|
-
import {
|
|
89
|
-
isPayloadOfSchemaType as isPayloadOfSchemaType3,
|
|
90
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta2,
|
|
91
|
-
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources2
|
|
92
|
-
} from "@xyo-network/payload-model";
|
|
78
|
+
import { isPayloadOfSchemaType as isPayloadOfSchemaType3, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources2 } from "@xyo-network/payload-model";
|
|
93
79
|
var DomainSchema = "network.xyo.ns.domain";
|
|
94
80
|
var isDomain = isPayloadOfSchemaType3(DomainSchema);
|
|
95
81
|
var isDomainWithSources = isPayloadOfSchemaTypeWithSources2(DomainSchema);
|
|
96
|
-
var isDomainWithMeta = isPayloadOfSchemaTypeWithMeta2(DomainSchema);
|
|
97
82
|
|
|
98
83
|
// src/Domain/DomainLease.ts
|
|
99
|
-
import {
|
|
100
|
-
isPayloadOfSchemaType as isPayloadOfSchemaType4,
|
|
101
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta3,
|
|
102
|
-
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources3
|
|
103
|
-
} from "@xyo-network/payload-model";
|
|
84
|
+
import { isPayloadOfSchemaType as isPayloadOfSchemaType4, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources3 } from "@xyo-network/payload-model";
|
|
104
85
|
var DomainLeaseSchema = "network.xyo.ns.domain.lease";
|
|
105
86
|
var isDomainLease = isPayloadOfSchemaType4(DomainLeaseSchema);
|
|
106
87
|
var isDomainLeaseWithSources = isPayloadOfSchemaTypeWithSources3(DomainLeaseSchema);
|
|
107
|
-
var isDomainLeaseWithMeta = isPayloadOfSchemaTypeWithMeta3(DomainLeaseSchema);
|
|
108
88
|
|
|
109
89
|
// src/DomainRegistration/DomainRegistration.ts
|
|
110
90
|
var DomainRegistrationSchema = `${DomainSchema}.registration`;
|
|
111
91
|
var isDomainRegistration = isPayloadOfSchemaType5(DomainRegistrationSchema);
|
|
112
92
|
var isDomainRegistrationWithSources = isPayloadOfSchemaTypeWithSources4(DomainRegistrationSchema);
|
|
113
|
-
var isDomainRegistrationWithMeta = isPayloadOfSchemaTypeWithMeta4(DomainRegistrationSchema);
|
|
114
93
|
|
|
115
94
|
// src/DomainRegistration/DomainRegistrationLease.ts
|
|
116
|
-
import {
|
|
117
|
-
isPayloadOfSchemaType as isPayloadOfSchemaType6,
|
|
118
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta5,
|
|
119
|
-
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources5
|
|
120
|
-
} from "@xyo-network/payload-model";
|
|
95
|
+
import { isPayloadOfSchemaType as isPayloadOfSchemaType6, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources5 } from "@xyo-network/payload-model";
|
|
121
96
|
var DomainRegistrationLeaseSchema = `${DomainRegistrationSchema}.lease`;
|
|
122
97
|
var isDomainRegistrationLease = isPayloadOfSchemaType6(DomainRegistrationLeaseSchema);
|
|
123
98
|
var isDomainRegistrationLeaseWithSources = isPayloadOfSchemaTypeWithSources5(DomainRegistrationLeaseSchema);
|
|
124
99
|
var isDomainRegistrationLeaseSources = isDomainRegistrationLeaseWithSources;
|
|
125
|
-
var isDomainRegistrationLeaseWithMeta = isPayloadOfSchemaTypeWithMeta5(DomainRegistrationLeaseSchema);
|
|
126
|
-
var isDomainRegistrationLeaseMeta = isDomainRegistrationLeaseWithMeta;
|
|
127
100
|
|
|
128
101
|
// src/diviner/lib/parseEstimatesFromArray.ts
|
|
129
102
|
var parseEstimatesFromArray = async (payloads) => {
|
|
@@ -136,14 +109,14 @@ var parseEstimatesFromArray = async (payloads) => {
|
|
|
136
109
|
bw,
|
|
137
110
|
HashLeaseEstimateSchema,
|
|
138
111
|
hashMap,
|
|
139
|
-
|
|
112
|
+
isHashLeaseEstimate
|
|
140
113
|
);
|
|
141
114
|
if (!hashLeaseEstimate) return;
|
|
142
115
|
const domainLease = getPayloadBySchemaFromBoundWitness(
|
|
143
116
|
bw,
|
|
144
117
|
DomainRegistrationLeaseSchema,
|
|
145
118
|
hashMap,
|
|
146
|
-
|
|
119
|
+
isDomainRegistrationLease
|
|
147
120
|
);
|
|
148
121
|
if (!domainLease) return;
|
|
149
122
|
return [bw, hashLeaseEstimate, domainLease];
|
|
@@ -445,12 +418,10 @@ var DNSWitnessConfigSchema = `${DNSSchema}.witness.config`;
|
|
|
445
418
|
// src/DNS/Witness/Payload/Request.ts
|
|
446
419
|
import {
|
|
447
420
|
isPayloadOfSchemaType as isPayloadOfSchemaType7,
|
|
448
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta6,
|
|
449
421
|
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources6
|
|
450
422
|
} from "@xyo-network/payload-model";
|
|
451
423
|
var isDNSRequest = isPayloadOfSchemaType7(DNSSchema);
|
|
452
424
|
var isDNSRequestWithSources = isPayloadOfSchemaTypeWithSources6(DNSSchema);
|
|
453
|
-
var isDNSRequestWithMeta = isPayloadOfSchemaTypeWithMeta6(DNSSchema);
|
|
454
425
|
var getDnsRequestFor = (domain, type = DNSResourceRecordTypes.A) => {
|
|
455
426
|
return { ...getRequestFor(domain, type), schema: DNSSchema };
|
|
456
427
|
};
|
|
@@ -458,12 +429,10 @@ var getDnsRequestFor = (domain, type = DNSResourceRecordTypes.A) => {
|
|
|
458
429
|
// src/DNS/Witness/Payload/Response.ts
|
|
459
430
|
import {
|
|
460
431
|
isPayloadOfSchemaType as isPayloadOfSchemaType8,
|
|
461
|
-
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta7,
|
|
462
432
|
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources7
|
|
463
433
|
} from "@xyo-network/payload-model";
|
|
464
434
|
var isDNSResponse = isPayloadOfSchemaType8(DNSSchema);
|
|
465
435
|
var isDNSResponseWithSources = isPayloadOfSchemaTypeWithSources7(DNSSchema);
|
|
466
|
-
var isDNSResponseWithMeta = isPayloadOfSchemaTypeWithMeta7(DNSSchema);
|
|
467
436
|
|
|
468
437
|
// src/Duration/validation/validateBoundWitness.ts
|
|
469
438
|
import { BoundWitnessValidator } from "@xyo-network/boundwitness-validator";
|
|
@@ -512,7 +481,6 @@ var validateBoundWitnessWithDuration = async (recordBw, recordPayload) => {
|
|
|
512
481
|
import { isPayloadOfSchemaType as isPayloadOfSchemaType9 } from "@xyo-network/payload-model";
|
|
513
482
|
var HashRecordSchema = "network.xyo.ns.record.hash";
|
|
514
483
|
var isHashRecord = isPayloadOfSchemaType9(HashRecordSchema);
|
|
515
|
-
var isHashRecordWithMeta = isPayloadOfSchemaType9(HashRecordSchema);
|
|
516
484
|
export {
|
|
517
485
|
AddressRecordSchema,
|
|
518
486
|
DNSQueryOpcodes,
|
|
@@ -533,32 +501,22 @@ export {
|
|
|
533
501
|
getRandomId,
|
|
534
502
|
getRequestFor,
|
|
535
503
|
isAddressRecord,
|
|
536
|
-
isAddressRecordWithMeta,
|
|
537
504
|
isDNSRequest,
|
|
538
|
-
isDNSRequestWithMeta,
|
|
539
505
|
isDNSRequestWithSources,
|
|
540
506
|
isDNSResponse,
|
|
541
|
-
isDNSResponseWithMeta,
|
|
542
507
|
isDNSResponseWithSources,
|
|
543
508
|
isDomain,
|
|
544
509
|
isDomainLease,
|
|
545
510
|
isDomainLeaseEstimateDivinerValidationErrorDetails,
|
|
546
|
-
isDomainLeaseEstimateDivinerValidationErrorDetailsWithMeta,
|
|
547
511
|
isDomainLeaseEstimateDivinerValidationErrorDetailsWithSources,
|
|
548
|
-
isDomainLeaseWithMeta,
|
|
549
512
|
isDomainLeaseWithSources,
|
|
550
513
|
isDomainRegistration,
|
|
551
514
|
isDomainRegistrationLease,
|
|
552
|
-
isDomainRegistrationLeaseMeta,
|
|
553
515
|
isDomainRegistrationLeaseSources,
|
|
554
|
-
isDomainRegistrationLeaseWithMeta,
|
|
555
516
|
isDomainRegistrationLeaseWithSources,
|
|
556
|
-
isDomainRegistrationWithMeta,
|
|
557
517
|
isDomainRegistrationWithSources,
|
|
558
|
-
isDomainWithMeta,
|
|
559
518
|
isDomainWithSources,
|
|
560
519
|
isHashRecord,
|
|
561
|
-
isHashRecordWithMeta,
|
|
562
520
|
isWithinDelegatedTimeframe,
|
|
563
521
|
parseEstimatesFromArray,
|
|
564
522
|
validateBoundWitnessWithDuration,
|