@xyo-network/boundwitness-model 4.1.1 → 4.1.3
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/index.d.ts
CHANGED
|
@@ -1,109 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const BoundWitnessSchema: "network.xyo.boundwitness";
|
|
7
|
-
type BoundWitnessSchema = typeof BoundWitnessSchema;
|
|
8
|
-
|
|
9
|
-
interface BoundWitnessRequiredFields {
|
|
10
|
-
/** @field Array of signatures by the accounts that are listed in addresses */
|
|
11
|
-
addresses: Address[];
|
|
12
|
-
payload_hashes: Hash[];
|
|
13
|
-
payload_schemas: Schema[];
|
|
14
|
-
previous_hashes: (Hash | null)[];
|
|
15
|
-
}
|
|
16
|
-
interface BoundWitnessMeta {
|
|
17
|
-
/**
|
|
18
|
-
* @field The address to which the query is directed
|
|
19
|
-
*/
|
|
20
|
-
$destination?: Address;
|
|
21
|
-
/**
|
|
22
|
-
* @field The query that initiated the bound witness
|
|
23
|
-
*/
|
|
24
|
-
$sourceQuery?: Hash;
|
|
25
|
-
}
|
|
26
|
-
interface BoundWitnessBlockField {
|
|
27
|
-
/** @field sequential number (if this boundwitness is part of a multi-party chain) */
|
|
28
|
-
block: number;
|
|
29
|
-
}
|
|
30
|
-
interface BoundWitnessChainField {
|
|
31
|
-
/** @field unique id of a multi-party chain (usually staking contract address) */
|
|
32
|
-
chain: Hex;
|
|
33
|
-
}
|
|
34
|
-
interface BoundWitnessOptionalFields extends Partial<BoundWitnessBlockField>, Partial<BoundWitnessChainField> {
|
|
35
|
-
root: Hash;
|
|
36
|
-
}
|
|
37
|
-
interface BoundWitnessFields extends BoundWitnessRequiredFields, Partial<BoundWitnessOptionalFields> {
|
|
38
|
-
}
|
|
39
|
-
type UnsignedBoundWitness<T extends EmptyObject | void = void> = Payload<T extends void ? BoundWitnessFields : BoundWitnessFields & T, BoundWitnessSchema> & BoundWitnessMeta;
|
|
40
|
-
type Signed<T extends UnsignedBoundWitness = UnsignedBoundWitness> = T & {
|
|
41
|
-
$signatures: Hex[];
|
|
42
|
-
};
|
|
43
|
-
type SignedBoundWitness = Signed<UnsignedBoundWitness>;
|
|
44
|
-
type WithBlock = BoundWitness & BoundWitnessBlockField;
|
|
45
|
-
declare const hasBlock: (bw: BoundWitness) => bw is WithBlock;
|
|
46
|
-
declare const asBlock: (bw: BoundWitness) => WithBlock;
|
|
47
|
-
type BoundWitness<T extends Payload | EmptyObject | void = void> = Signed<UnsignedBoundWitness<T>>;
|
|
48
|
-
type AnyBoundWitness = BoundWitness<JsonObject>;
|
|
49
|
-
|
|
50
|
-
declare const BoundWitnessJsonSchema: () => {
|
|
51
|
-
$id: string;
|
|
52
|
-
additionalProperties: boolean;
|
|
53
|
-
properties: {
|
|
54
|
-
addresses: {
|
|
55
|
-
items: {
|
|
56
|
-
type: string;
|
|
57
|
-
};
|
|
58
|
-
type: string;
|
|
59
|
-
};
|
|
60
|
-
payload_hashes: {
|
|
61
|
-
items: {
|
|
62
|
-
type: string;
|
|
63
|
-
};
|
|
64
|
-
type: string;
|
|
65
|
-
};
|
|
66
|
-
payload_schemas: {
|
|
67
|
-
items: {
|
|
68
|
-
type: string;
|
|
69
|
-
};
|
|
70
|
-
type: string;
|
|
71
|
-
};
|
|
72
|
-
previous_hashes: {
|
|
73
|
-
items: {
|
|
74
|
-
nullable: boolean;
|
|
75
|
-
type: string;
|
|
76
|
-
};
|
|
77
|
-
type: string;
|
|
78
|
-
};
|
|
79
|
-
schema: {
|
|
80
|
-
type: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
required: string[];
|
|
84
|
-
type: string;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
declare const isBoundWitness: (value: unknown) => value is BoundWitness;
|
|
88
|
-
declare const notBoundWitness: (x?: unknown | null) => x is BoundWitness;
|
|
89
|
-
declare const asBoundWitness: <T extends BoundWitness<{
|
|
90
|
-
schema: string;
|
|
91
|
-
}> = BoundWitness>(payload?: unknown) => T | undefined;
|
|
92
|
-
declare const asOptionalBoundWitness: (value: _store__xylabs_promise_npm_4_13_15_8bdb7d384b_package.AnyNonPromise) => BoundWitness | undefined;
|
|
93
|
-
declare const isBoundWitnessWithStorageMeta: (value: unknown) => value is WithStorageMeta<BoundWitness>;
|
|
94
|
-
declare const asBoundWitnessWithStorageMeta: (value: _store__xylabs_promise_npm_4_13_15_8bdb7d384b_package.AnyNonPromise) => WithStorageMeta<BoundWitness> | undefined;
|
|
95
|
-
declare const asOptionalBoundWitnessWithStorageMeta: (value: _store__xylabs_promise_npm_4_13_15_8bdb7d384b_package.AnyNonPromise) => WithStorageMeta<BoundWitness> | undefined;
|
|
96
|
-
declare const isSigned: (value: unknown) => value is Signed;
|
|
97
|
-
declare const isUnsigned: (value: unknown) => value is UnsignedBoundWitness;
|
|
98
|
-
|
|
99
|
-
type QueryBoundWitnessFields = {
|
|
100
|
-
error_hashes?: Hash[];
|
|
101
|
-
query: Hash;
|
|
102
|
-
};
|
|
103
|
-
type UnsignedQueryBoundWitness = BoundWitness<QueryBoundWitnessFields>;
|
|
104
|
-
type QueryBoundWitness = UnsignedQueryBoundWitness;
|
|
105
|
-
declare const isQueryBoundWitness: (x?: unknown) => x is QueryBoundWitness;
|
|
106
|
-
declare const isQueryBoundWitnessWithStorageMeta: (x?: unknown) => x is WithStorageMeta<QueryBoundWitness>;
|
|
107
|
-
|
|
108
|
-
export { BoundWitnessJsonSchema, BoundWitnessSchema, asBlock, asBoundWitness, asBoundWitnessWithStorageMeta, asOptionalBoundWitness, asOptionalBoundWitnessWithStorageMeta, hasBlock, isBoundWitness, isBoundWitnessWithStorageMeta, isQueryBoundWitness, isQueryBoundWitnessWithStorageMeta, isSigned, isUnsigned, notBoundWitness };
|
|
109
|
-
export type { AnyBoundWitness, BoundWitness, BoundWitnessBlockField, BoundWitnessChainField, BoundWitnessFields, BoundWitnessMeta, BoundWitnessOptionalFields, BoundWitnessRequiredFields, QueryBoundWitness, QueryBoundWitnessFields, Signed, SignedBoundWitness, UnsignedBoundWitness, UnsignedQueryBoundWitness, WithBlock };
|
|
1
|
+
export * from './BoundWitness/index.ts';
|
|
2
|
+
export * from './isBoundWitness.ts';
|
|
3
|
+
export * from './QueryBoundWitness.ts';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -5,10 +5,10 @@ export declare const notBoundWitness: (x?: unknown | null) => x is BoundWitness;
|
|
|
5
5
|
export declare const asBoundWitness: <T extends BoundWitness<{
|
|
6
6
|
schema: string;
|
|
7
7
|
}> = BoundWitness>(payload?: unknown) => T | undefined;
|
|
8
|
-
export declare const asOptionalBoundWitness: (value: import(".store/@xylabs-promise-npm-4.13.
|
|
8
|
+
export declare const asOptionalBoundWitness: (value: import(".store/@xylabs-promise-npm-4.13.16-6146e9e7d0/package").AnyNonPromise) => BoundWitness | undefined;
|
|
9
9
|
export declare const isBoundWitnessWithStorageMeta: (value: unknown) => value is WithStorageMeta<BoundWitness>;
|
|
10
|
-
export declare const asBoundWitnessWithStorageMeta: (value: import(".store/@xylabs-promise-npm-4.13.
|
|
11
|
-
export declare const asOptionalBoundWitnessWithStorageMeta: (value: import(".store/@xylabs-promise-npm-4.13.
|
|
10
|
+
export declare const asBoundWitnessWithStorageMeta: (value: import(".store/@xylabs-promise-npm-4.13.16-6146e9e7d0/package").AnyNonPromise) => WithStorageMeta<BoundWitness> | undefined;
|
|
11
|
+
export declare const asOptionalBoundWitnessWithStorageMeta: (value: import(".store/@xylabs-promise-npm-4.13.16-6146e9e7d0/package").AnyNonPromise) => WithStorageMeta<BoundWitness> | undefined;
|
|
12
12
|
export declare const isSigned: (value: unknown) => value is Signed;
|
|
13
13
|
export declare const isUnsigned: (value: unknown) => value is UnsignedBoundWitness;
|
|
14
14
|
//# sourceMappingURL=isBoundWitness.d.ts.map
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,109 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const BoundWitnessSchema: "network.xyo.boundwitness";
|
|
7
|
-
type BoundWitnessSchema = typeof BoundWitnessSchema;
|
|
8
|
-
|
|
9
|
-
interface BoundWitnessRequiredFields {
|
|
10
|
-
/** @field Array of signatures by the accounts that are listed in addresses */
|
|
11
|
-
addresses: Address[];
|
|
12
|
-
payload_hashes: Hash[];
|
|
13
|
-
payload_schemas: Schema[];
|
|
14
|
-
previous_hashes: (Hash | null)[];
|
|
15
|
-
}
|
|
16
|
-
interface BoundWitnessMeta {
|
|
17
|
-
/**
|
|
18
|
-
* @field The address to which the query is directed
|
|
19
|
-
*/
|
|
20
|
-
$destination?: Address;
|
|
21
|
-
/**
|
|
22
|
-
* @field The query that initiated the bound witness
|
|
23
|
-
*/
|
|
24
|
-
$sourceQuery?: Hash;
|
|
25
|
-
}
|
|
26
|
-
interface BoundWitnessBlockField {
|
|
27
|
-
/** @field sequential number (if this boundwitness is part of a multi-party chain) */
|
|
28
|
-
block: number;
|
|
29
|
-
}
|
|
30
|
-
interface BoundWitnessChainField {
|
|
31
|
-
/** @field unique id of a multi-party chain (usually staking contract address) */
|
|
32
|
-
chain: Hex;
|
|
33
|
-
}
|
|
34
|
-
interface BoundWitnessOptionalFields extends Partial<BoundWitnessBlockField>, Partial<BoundWitnessChainField> {
|
|
35
|
-
root: Hash;
|
|
36
|
-
}
|
|
37
|
-
interface BoundWitnessFields extends BoundWitnessRequiredFields, Partial<BoundWitnessOptionalFields> {
|
|
38
|
-
}
|
|
39
|
-
type UnsignedBoundWitness<T extends EmptyObject | void = void> = Payload<T extends void ? BoundWitnessFields : BoundWitnessFields & T, BoundWitnessSchema> & BoundWitnessMeta;
|
|
40
|
-
type Signed<T extends UnsignedBoundWitness = UnsignedBoundWitness> = T & {
|
|
41
|
-
$signatures: Hex[];
|
|
42
|
-
};
|
|
43
|
-
type SignedBoundWitness = Signed<UnsignedBoundWitness>;
|
|
44
|
-
type WithBlock = BoundWitness & BoundWitnessBlockField;
|
|
45
|
-
declare const hasBlock: (bw: BoundWitness) => bw is WithBlock;
|
|
46
|
-
declare const asBlock: (bw: BoundWitness) => WithBlock;
|
|
47
|
-
type BoundWitness<T extends Payload | EmptyObject | void = void> = Signed<UnsignedBoundWitness<T>>;
|
|
48
|
-
type AnyBoundWitness = BoundWitness<JsonObject>;
|
|
49
|
-
|
|
50
|
-
declare const BoundWitnessJsonSchema: () => {
|
|
51
|
-
$id: string;
|
|
52
|
-
additionalProperties: boolean;
|
|
53
|
-
properties: {
|
|
54
|
-
addresses: {
|
|
55
|
-
items: {
|
|
56
|
-
type: string;
|
|
57
|
-
};
|
|
58
|
-
type: string;
|
|
59
|
-
};
|
|
60
|
-
payload_hashes: {
|
|
61
|
-
items: {
|
|
62
|
-
type: string;
|
|
63
|
-
};
|
|
64
|
-
type: string;
|
|
65
|
-
};
|
|
66
|
-
payload_schemas: {
|
|
67
|
-
items: {
|
|
68
|
-
type: string;
|
|
69
|
-
};
|
|
70
|
-
type: string;
|
|
71
|
-
};
|
|
72
|
-
previous_hashes: {
|
|
73
|
-
items: {
|
|
74
|
-
nullable: boolean;
|
|
75
|
-
type: string;
|
|
76
|
-
};
|
|
77
|
-
type: string;
|
|
78
|
-
};
|
|
79
|
-
schema: {
|
|
80
|
-
type: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
required: string[];
|
|
84
|
-
type: string;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
declare const isBoundWitness: (value: unknown) => value is BoundWitness;
|
|
88
|
-
declare const notBoundWitness: (x?: unknown | null) => x is BoundWitness;
|
|
89
|
-
declare const asBoundWitness: <T extends BoundWitness<{
|
|
90
|
-
schema: string;
|
|
91
|
-
}> = BoundWitness>(payload?: unknown) => T | undefined;
|
|
92
|
-
declare const asOptionalBoundWitness: (value: _store__xylabs_promise_npm_4_13_15_8bdb7d384b_package.AnyNonPromise) => BoundWitness | undefined;
|
|
93
|
-
declare const isBoundWitnessWithStorageMeta: (value: unknown) => value is WithStorageMeta<BoundWitness>;
|
|
94
|
-
declare const asBoundWitnessWithStorageMeta: (value: _store__xylabs_promise_npm_4_13_15_8bdb7d384b_package.AnyNonPromise) => WithStorageMeta<BoundWitness> | undefined;
|
|
95
|
-
declare const asOptionalBoundWitnessWithStorageMeta: (value: _store__xylabs_promise_npm_4_13_15_8bdb7d384b_package.AnyNonPromise) => WithStorageMeta<BoundWitness> | undefined;
|
|
96
|
-
declare const isSigned: (value: unknown) => value is Signed;
|
|
97
|
-
declare const isUnsigned: (value: unknown) => value is UnsignedBoundWitness;
|
|
98
|
-
|
|
99
|
-
type QueryBoundWitnessFields = {
|
|
100
|
-
error_hashes?: Hash[];
|
|
101
|
-
query: Hash;
|
|
102
|
-
};
|
|
103
|
-
type UnsignedQueryBoundWitness = BoundWitness<QueryBoundWitnessFields>;
|
|
104
|
-
type QueryBoundWitness = UnsignedQueryBoundWitness;
|
|
105
|
-
declare const isQueryBoundWitness: (x?: unknown) => x is QueryBoundWitness;
|
|
106
|
-
declare const isQueryBoundWitnessWithStorageMeta: (x?: unknown) => x is WithStorageMeta<QueryBoundWitness>;
|
|
107
|
-
|
|
108
|
-
export { BoundWitnessJsonSchema, BoundWitnessSchema, asBlock, asBoundWitness, asBoundWitnessWithStorageMeta, asOptionalBoundWitness, asOptionalBoundWitnessWithStorageMeta, hasBlock, isBoundWitness, isBoundWitnessWithStorageMeta, isQueryBoundWitness, isQueryBoundWitnessWithStorageMeta, isSigned, isUnsigned, notBoundWitness };
|
|
109
|
-
export type { AnyBoundWitness, BoundWitness, BoundWitnessBlockField, BoundWitnessChainField, BoundWitnessFields, BoundWitnessMeta, BoundWitnessOptionalFields, BoundWitnessRequiredFields, QueryBoundWitness, QueryBoundWitnessFields, Signed, SignedBoundWitness, UnsignedBoundWitness, UnsignedQueryBoundWitness, WithBlock };
|
|
1
|
+
export * from './BoundWitness/index.ts';
|
|
2
|
+
export * from './isBoundWitness.ts';
|
|
3
|
+
export * from './QueryBoundWitness.ts';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -5,10 +5,10 @@ export declare const notBoundWitness: (x?: unknown | null) => x is BoundWitness;
|
|
|
5
5
|
export declare const asBoundWitness: <T extends BoundWitness<{
|
|
6
6
|
schema: string;
|
|
7
7
|
}> = BoundWitness>(payload?: unknown) => T | undefined;
|
|
8
|
-
export declare const asOptionalBoundWitness: (value: import(".store/@xylabs-promise-npm-4.13.
|
|
8
|
+
export declare const asOptionalBoundWitness: (value: import(".store/@xylabs-promise-npm-4.13.16-6146e9e7d0/package").AnyNonPromise) => BoundWitness | undefined;
|
|
9
9
|
export declare const isBoundWitnessWithStorageMeta: (value: unknown) => value is WithStorageMeta<BoundWitness>;
|
|
10
|
-
export declare const asBoundWitnessWithStorageMeta: (value: import(".store/@xylabs-promise-npm-4.13.
|
|
11
|
-
export declare const asOptionalBoundWitnessWithStorageMeta: (value: import(".store/@xylabs-promise-npm-4.13.
|
|
10
|
+
export declare const asBoundWitnessWithStorageMeta: (value: import(".store/@xylabs-promise-npm-4.13.16-6146e9e7d0/package").AnyNonPromise) => WithStorageMeta<BoundWitness> | undefined;
|
|
11
|
+
export declare const asOptionalBoundWitnessWithStorageMeta: (value: import(".store/@xylabs-promise-npm-4.13.16-6146e9e7d0/package").AnyNonPromise) => WithStorageMeta<BoundWitness> | undefined;
|
|
12
12
|
export declare const isSigned: (value: unknown) => value is Signed;
|
|
13
13
|
export declare const isUnsigned: (value: unknown) => value is UnsignedBoundWitness;
|
|
14
14
|
//# sourceMappingURL=isBoundWitness.d.ts.map
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,109 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const BoundWitnessSchema: "network.xyo.boundwitness";
|
|
7
|
-
type BoundWitnessSchema = typeof BoundWitnessSchema;
|
|
8
|
-
|
|
9
|
-
interface BoundWitnessRequiredFields {
|
|
10
|
-
/** @field Array of signatures by the accounts that are listed in addresses */
|
|
11
|
-
addresses: Address[];
|
|
12
|
-
payload_hashes: Hash[];
|
|
13
|
-
payload_schemas: Schema[];
|
|
14
|
-
previous_hashes: (Hash | null)[];
|
|
15
|
-
}
|
|
16
|
-
interface BoundWitnessMeta {
|
|
17
|
-
/**
|
|
18
|
-
* @field The address to which the query is directed
|
|
19
|
-
*/
|
|
20
|
-
$destination?: Address;
|
|
21
|
-
/**
|
|
22
|
-
* @field The query that initiated the bound witness
|
|
23
|
-
*/
|
|
24
|
-
$sourceQuery?: Hash;
|
|
25
|
-
}
|
|
26
|
-
interface BoundWitnessBlockField {
|
|
27
|
-
/** @field sequential number (if this boundwitness is part of a multi-party chain) */
|
|
28
|
-
block: number;
|
|
29
|
-
}
|
|
30
|
-
interface BoundWitnessChainField {
|
|
31
|
-
/** @field unique id of a multi-party chain (usually staking contract address) */
|
|
32
|
-
chain: Hex;
|
|
33
|
-
}
|
|
34
|
-
interface BoundWitnessOptionalFields extends Partial<BoundWitnessBlockField>, Partial<BoundWitnessChainField> {
|
|
35
|
-
root: Hash;
|
|
36
|
-
}
|
|
37
|
-
interface BoundWitnessFields extends BoundWitnessRequiredFields, Partial<BoundWitnessOptionalFields> {
|
|
38
|
-
}
|
|
39
|
-
type UnsignedBoundWitness<T extends EmptyObject | void = void> = Payload<T extends void ? BoundWitnessFields : BoundWitnessFields & T, BoundWitnessSchema> & BoundWitnessMeta;
|
|
40
|
-
type Signed<T extends UnsignedBoundWitness = UnsignedBoundWitness> = T & {
|
|
41
|
-
$signatures: Hex[];
|
|
42
|
-
};
|
|
43
|
-
type SignedBoundWitness = Signed<UnsignedBoundWitness>;
|
|
44
|
-
type WithBlock = BoundWitness & BoundWitnessBlockField;
|
|
45
|
-
declare const hasBlock: (bw: BoundWitness) => bw is WithBlock;
|
|
46
|
-
declare const asBlock: (bw: BoundWitness) => WithBlock;
|
|
47
|
-
type BoundWitness<T extends Payload | EmptyObject | void = void> = Signed<UnsignedBoundWitness<T>>;
|
|
48
|
-
type AnyBoundWitness = BoundWitness<JsonObject>;
|
|
49
|
-
|
|
50
|
-
declare const BoundWitnessJsonSchema: () => {
|
|
51
|
-
$id: string;
|
|
52
|
-
additionalProperties: boolean;
|
|
53
|
-
properties: {
|
|
54
|
-
addresses: {
|
|
55
|
-
items: {
|
|
56
|
-
type: string;
|
|
57
|
-
};
|
|
58
|
-
type: string;
|
|
59
|
-
};
|
|
60
|
-
payload_hashes: {
|
|
61
|
-
items: {
|
|
62
|
-
type: string;
|
|
63
|
-
};
|
|
64
|
-
type: string;
|
|
65
|
-
};
|
|
66
|
-
payload_schemas: {
|
|
67
|
-
items: {
|
|
68
|
-
type: string;
|
|
69
|
-
};
|
|
70
|
-
type: string;
|
|
71
|
-
};
|
|
72
|
-
previous_hashes: {
|
|
73
|
-
items: {
|
|
74
|
-
nullable: boolean;
|
|
75
|
-
type: string;
|
|
76
|
-
};
|
|
77
|
-
type: string;
|
|
78
|
-
};
|
|
79
|
-
schema: {
|
|
80
|
-
type: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
required: string[];
|
|
84
|
-
type: string;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
declare const isBoundWitness: (value: unknown) => value is BoundWitness;
|
|
88
|
-
declare const notBoundWitness: (x?: unknown | null) => x is BoundWitness;
|
|
89
|
-
declare const asBoundWitness: <T extends BoundWitness<{
|
|
90
|
-
schema: string;
|
|
91
|
-
}> = BoundWitness>(payload?: unknown) => T | undefined;
|
|
92
|
-
declare const asOptionalBoundWitness: (value: _store__xylabs_promise_npm_4_13_15_8bdb7d384b_package.AnyNonPromise) => BoundWitness | undefined;
|
|
93
|
-
declare const isBoundWitnessWithStorageMeta: (value: unknown) => value is WithStorageMeta<BoundWitness>;
|
|
94
|
-
declare const asBoundWitnessWithStorageMeta: (value: _store__xylabs_promise_npm_4_13_15_8bdb7d384b_package.AnyNonPromise) => WithStorageMeta<BoundWitness> | undefined;
|
|
95
|
-
declare const asOptionalBoundWitnessWithStorageMeta: (value: _store__xylabs_promise_npm_4_13_15_8bdb7d384b_package.AnyNonPromise) => WithStorageMeta<BoundWitness> | undefined;
|
|
96
|
-
declare const isSigned: (value: unknown) => value is Signed;
|
|
97
|
-
declare const isUnsigned: (value: unknown) => value is UnsignedBoundWitness;
|
|
98
|
-
|
|
99
|
-
type QueryBoundWitnessFields = {
|
|
100
|
-
error_hashes?: Hash[];
|
|
101
|
-
query: Hash;
|
|
102
|
-
};
|
|
103
|
-
type UnsignedQueryBoundWitness = BoundWitness<QueryBoundWitnessFields>;
|
|
104
|
-
type QueryBoundWitness = UnsignedQueryBoundWitness;
|
|
105
|
-
declare const isQueryBoundWitness: (x?: unknown) => x is QueryBoundWitness;
|
|
106
|
-
declare const isQueryBoundWitnessWithStorageMeta: (x?: unknown) => x is WithStorageMeta<QueryBoundWitness>;
|
|
107
|
-
|
|
108
|
-
export { BoundWitnessJsonSchema, BoundWitnessSchema, asBlock, asBoundWitness, asBoundWitnessWithStorageMeta, asOptionalBoundWitness, asOptionalBoundWitnessWithStorageMeta, hasBlock, isBoundWitness, isBoundWitnessWithStorageMeta, isQueryBoundWitness, isQueryBoundWitnessWithStorageMeta, isSigned, isUnsigned, notBoundWitness };
|
|
109
|
-
export type { AnyBoundWitness, BoundWitness, BoundWitnessBlockField, BoundWitnessChainField, BoundWitnessFields, BoundWitnessMeta, BoundWitnessOptionalFields, BoundWitnessRequiredFields, QueryBoundWitness, QueryBoundWitnessFields, Signed, SignedBoundWitness, UnsignedBoundWitness, UnsignedQueryBoundWitness, WithBlock };
|
|
1
|
+
export * from './BoundWitness/index.ts';
|
|
2
|
+
export * from './isBoundWitness.ts';
|
|
3
|
+
export * from './QueryBoundWitness.ts';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -5,10 +5,10 @@ export declare const notBoundWitness: (x?: unknown | null) => x is BoundWitness;
|
|
|
5
5
|
export declare const asBoundWitness: <T extends BoundWitness<{
|
|
6
6
|
schema: string;
|
|
7
7
|
}> = BoundWitness>(payload?: unknown) => T | undefined;
|
|
8
|
-
export declare const asOptionalBoundWitness: (value: import(".store/@xylabs-promise-npm-4.13.
|
|
8
|
+
export declare const asOptionalBoundWitness: (value: import(".store/@xylabs-promise-npm-4.13.16-6146e9e7d0/package").AnyNonPromise) => BoundWitness | undefined;
|
|
9
9
|
export declare const isBoundWitnessWithStorageMeta: (value: unknown) => value is WithStorageMeta<BoundWitness>;
|
|
10
|
-
export declare const asBoundWitnessWithStorageMeta: (value: import(".store/@xylabs-promise-npm-4.13.
|
|
11
|
-
export declare const asOptionalBoundWitnessWithStorageMeta: (value: import(".store/@xylabs-promise-npm-4.13.
|
|
10
|
+
export declare const asBoundWitnessWithStorageMeta: (value: import(".store/@xylabs-promise-npm-4.13.16-6146e9e7d0/package").AnyNonPromise) => WithStorageMeta<BoundWitness> | undefined;
|
|
11
|
+
export declare const asOptionalBoundWitnessWithStorageMeta: (value: import(".store/@xylabs-promise-npm-4.13.16-6146e9e7d0/package").AnyNonPromise) => WithStorageMeta<BoundWitness> | undefined;
|
|
12
12
|
export declare const isSigned: (value: unknown) => value is Signed;
|
|
13
13
|
export declare const isUnsigned: (value: unknown) => value is UnsignedBoundWitness;
|
|
14
14
|
//# sourceMappingURL=isBoundWitness.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/boundwitness-model",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/hex": "^4.13.
|
|
33
|
-
"@xylabs/object": "^4.13.
|
|
34
|
-
"@xyo-network/payload-model": "^4.1.
|
|
32
|
+
"@xylabs/hex": "^4.13.16",
|
|
33
|
+
"@xylabs/object": "^4.13.16",
|
|
34
|
+
"@xyo-network/payload-model": "^4.1.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@types/node": "^24.0.
|
|
38
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.
|
|
39
|
-
"@xylabs/tsconfig": "^7.0.0-rc.
|
|
37
|
+
"@types/node": "^24.0.14",
|
|
38
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
|
|
39
|
+
"@xylabs/tsconfig": "^7.0.0-rc.27",
|
|
40
40
|
"typescript": "^5.8.3"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|