@xyo-network/xl1-protocol 1.13.13 → 1.14.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/neutral/block/AllowedBlockPayload.d.ts +1 -1
- package/dist/neutral/block/AllowedBlockPayload.d.ts.map +1 -1
- package/dist/neutral/block/index.d.ts +0 -2
- package/dist/neutral/block/index.d.ts.map +1 -1
- package/dist/neutral/chain/ChainAnalyzer.d.ts +1 -1
- package/dist/neutral/chain/ChainAnalyzer.d.ts.map +1 -1
- package/dist/neutral/constants/defaultTransactionFees.d.ts +1 -1
- package/dist/neutral/constants/defaultTransactionFees.d.ts.map +1 -1
- package/dist/neutral/constants/minTransactionFees.d.ts +1 -1
- package/dist/neutral/constants/minTransactionFees.d.ts.map +1 -1
- package/dist/neutral/index.d.ts +1 -1
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +520 -231
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/repository/TransactionReadRepository.d.ts +1 -1
- package/dist/neutral/repository/TransactionReadRepository.d.ts.map +1 -1
- package/dist/neutral/repository/TransactionRepositoryIterator.d.ts +1 -1
- package/dist/neutral/repository/TransactionRepositoryIterator.d.ts.map +1 -1
- package/dist/neutral/repository/TransactionWriteRepository.d.ts +1 -1
- package/dist/neutral/repository/TransactionWriteRepository.d.ts.map +1 -1
- package/dist/neutral/validation/payload/InBlockPayloadValidationFunction.d.ts +1 -1
- package/dist/neutral/validation/payload/InBlockPayloadValidationFunction.d.ts.map +1 -1
- package/dist/neutral/validation/payload/error.d.ts +1 -1
- package/dist/neutral/validation/payload/error.d.ts.map +1 -1
- package/dist/neutral/validation/transaction/HydratedTransactionStateValidationFunction.d.ts +2 -2
- package/dist/neutral/validation/transaction/HydratedTransactionStateValidationFunction.d.ts.map +1 -1
- package/dist/neutral/validation/transaction/HydratedTransactionValidationFunction.d.ts +2 -2
- package/dist/neutral/validation/transaction/HydratedTransactionValidationFunction.d.ts.map +1 -1
- package/dist/neutral/validation/transaction/error.d.ts +1 -1
- package/dist/neutral/validation/transaction/error.d.ts.map +1 -1
- package/dist/neutral/zod/ArrayBuffer.d.ts +4 -0
- package/dist/neutral/zod/ArrayBuffer.d.ts.map +1 -0
- package/dist/neutral/zod/BlockBoundWitness.d.ts +63 -0
- package/dist/neutral/zod/BlockBoundWitness.d.ts.map +1 -0
- package/dist/neutral/zod/BoundWitness.d.ts +111 -0
- package/dist/neutral/zod/BoundWitness.d.ts.map +1 -0
- package/dist/neutral/zod/Chain.d.ts +4 -0
- package/dist/neutral/zod/Chain.d.ts.map +1 -0
- package/dist/neutral/zod/HydratedBlock.d.ts +788 -0
- package/dist/neutral/zod/HydratedBlock.d.ts.map +1 -0
- package/dist/neutral/zod/HydratedTransaction.d.ts +1603 -0
- package/dist/neutral/zod/HydratedTransaction.d.ts.map +1 -0
- package/dist/neutral/zod/Permission.d.ts +53 -0
- package/dist/neutral/zod/Permission.d.ts.map +1 -0
- package/dist/neutral/zod/RewardsRangeOptions.d.ts +11 -0
- package/dist/neutral/zod/RewardsRangeOptions.d.ts.map +1 -0
- package/dist/neutral/zod/Sequence.d.ts +9 -0
- package/dist/neutral/zod/Sequence.d.ts.map +1 -0
- package/dist/neutral/zod/Stake.d.ts +62 -0
- package/dist/neutral/zod/Stake.d.ts.map +1 -0
- package/dist/neutral/zod/TimeDomain.d.ts +3 -0
- package/dist/neutral/zod/TimeDomain.d.ts.map +1 -0
- package/dist/neutral/zod/TransactionBoundWitness.d.ts +416 -0
- package/dist/neutral/zod/TransactionBoundWitness.d.ts.map +1 -0
- package/dist/neutral/zod/TransactionFees.d.ts +121 -0
- package/dist/neutral/zod/TransactionFees.d.ts.map +1 -0
- package/dist/neutral/zod/TransferPair.d.ts +3 -0
- package/dist/neutral/zod/TransferPair.d.ts.map +1 -0
- package/dist/neutral/zod/index.d.ts +15 -0
- package/dist/neutral/zod/index.d.ts.map +1 -0
- package/package.json +8 -6
- package/src/block/AllowedBlockPayload.ts +1 -1
- package/src/block/index.ts +0 -2
- package/src/chain/ChainAnalyzer.ts +1 -1
- package/src/constants/defaultTransactionFees.ts +1 -1
- package/src/constants/minTransactionFees.ts +1 -1
- package/src/index.ts +1 -1
- package/src/repository/TransactionReadRepository.ts +1 -1
- package/src/repository/TransactionRepositoryIterator.ts +1 -1
- package/src/repository/TransactionWriteRepository.ts +1 -1
- package/src/validation/payload/InBlockPayloadValidationFunction.ts +1 -1
- package/src/validation/payload/error.ts +1 -1
- package/src/validation/transaction/HydratedTransactionStateValidationFunction.ts +2 -2
- package/src/validation/transaction/HydratedTransactionValidationFunction.ts +2 -2
- package/src/validation/transaction/error.ts +1 -1
- package/src/zod/ArrayBuffer.ts +42 -0
- package/src/zod/BlockBoundWitness.ts +38 -0
- package/src/zod/BoundWitness.ts +59 -0
- package/src/zod/Chain.ts +6 -0
- package/src/zod/HydratedBlock.ts +83 -0
- package/src/zod/HydratedTransaction.ts +138 -0
- package/src/zod/Permission.ts +23 -0
- package/src/zod/RewardsRangeOptions.ts +11 -0
- package/src/zod/Sequence.ts +15 -0
- package/src/zod/Stake.ts +43 -0
- package/src/zod/TimeDomain.ts +7 -0
- package/src/zod/TransactionBoundWitness.ts +57 -0
- package/src/zod/TransactionFees.ts +57 -0
- package/src/zod/TransferPair.ts +6 -0
- package/src/zod/index.ts +14 -0
- package/dist/neutral/block/BlockBoundWitness.d.ts +0 -33
- package/dist/neutral/block/BlockBoundWitness.d.ts.map +0 -1
- package/dist/neutral/block/HydratedBlock.d.ts +0 -7
- package/dist/neutral/block/HydratedBlock.d.ts.map +0 -1
- package/dist/neutral/transaction/AnyHydratedTransaction.d.ts +0 -6
- package/dist/neutral/transaction/AnyHydratedTransaction.d.ts.map +0 -1
- package/dist/neutral/transaction/HydratedTransaction.d.ts +0 -10
- package/dist/neutral/transaction/HydratedTransaction.d.ts.map +0 -1
- package/dist/neutral/transaction/HydratedTransactionWithHashMeta.d.ts +0 -7
- package/dist/neutral/transaction/HydratedTransactionWithHashMeta.d.ts.map +0 -1
- package/dist/neutral/transaction/HydratedTransactionWithStorageMeta.d.ts +0 -7
- package/dist/neutral/transaction/HydratedTransactionWithStorageMeta.d.ts.map +0 -1
- package/dist/neutral/transaction/SignedHydratedTransaction.d.ts +0 -7
- package/dist/neutral/transaction/SignedHydratedTransaction.d.ts.map +0 -1
- package/dist/neutral/transaction/SignedHydratedTransactionWithHashMeta.d.ts +0 -7
- package/dist/neutral/transaction/SignedHydratedTransactionWithHashMeta.d.ts.map +0 -1
- package/dist/neutral/transaction/SignedHydratedTransactionWithStorageMeta.d.ts +0 -7
- package/dist/neutral/transaction/SignedHydratedTransactionWithStorageMeta.d.ts.map +0 -1
- package/dist/neutral/transaction/TransactionBoundWitness.d.ts +0 -14
- package/dist/neutral/transaction/TransactionBoundWitness.d.ts.map +0 -1
- package/dist/neutral/transaction/TransactionBoundWitnessDeprecated.d.ts +0 -11
- package/dist/neutral/transaction/TransactionBoundWitnessDeprecated.d.ts.map +0 -1
- package/dist/neutral/transaction/TransactionFeesFields.d.ts +0 -19
- package/dist/neutral/transaction/TransactionFeesFields.d.ts.map +0 -1
- package/dist/neutral/transaction/UnsignedHydratedTransaction.d.ts +0 -6
- package/dist/neutral/transaction/UnsignedHydratedTransaction.d.ts.map +0 -1
- package/dist/neutral/transaction/UnsignedHydratedTransactionWithHashMeta.d.ts +0 -7
- package/dist/neutral/transaction/UnsignedHydratedTransactionWithHashMeta.d.ts.map +0 -1
- package/dist/neutral/transaction/index.d.ts +0 -13
- package/dist/neutral/transaction/index.d.ts.map +0 -1
- package/src/block/BlockBoundWitness.ts +0 -64
- package/src/block/HydratedBlock.ts +0 -24
- package/src/transaction/AnyHydratedTransaction.ts +0 -20
- package/src/transaction/HydratedTransaction.ts +0 -29
- package/src/transaction/HydratedTransactionWithHashMeta.ts +0 -23
- package/src/transaction/HydratedTransactionWithStorageMeta.ts +0 -23
- package/src/transaction/SignedHydratedTransaction.ts +0 -22
- package/src/transaction/SignedHydratedTransactionWithHashMeta.ts +0 -25
- package/src/transaction/SignedHydratedTransactionWithStorageMeta.ts +0 -25
- package/src/transaction/TransactionBoundWitness.ts +0 -27
- package/src/transaction/TransactionBoundWitnessDeprecated.ts +0 -33
- package/src/transaction/TransactionFeesFields.ts +0 -58
- package/src/transaction/UnsignedHydratedTransaction.ts +0 -21
- package/src/transaction/UnsignedHydratedTransactionWithHashMeta.ts +0 -24
- package/src/transaction/index.ts +0 -12
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HydratedTransaction.d.ts","sourceRoot":"","sources":["../../../src/zod/HydratedTransaction.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CaveatTypesZod: z.ZodEnum<{
|
|
3
|
+
chain: "chain";
|
|
4
|
+
expiration: "expiration";
|
|
5
|
+
filteredResponse: "filteredResponse";
|
|
6
|
+
rateLimit: "rateLimit";
|
|
7
|
+
restrictReturnedAccounts: "restrictReturnedAccounts";
|
|
8
|
+
}>;
|
|
9
|
+
export declare const CaveatsZod: z.ZodObject<{
|
|
10
|
+
type: z.ZodEnum<{
|
|
11
|
+
chain: "chain";
|
|
12
|
+
expiration: "expiration";
|
|
13
|
+
filteredResponse: "filteredResponse";
|
|
14
|
+
rateLimit: "rateLimit";
|
|
15
|
+
restrictReturnedAccounts: "restrictReturnedAccounts";
|
|
16
|
+
}>;
|
|
17
|
+
value: z.ZodJSONSchema;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export declare const PermissionZod: z.ZodObject<{
|
|
20
|
+
parentCapability: z.ZodString;
|
|
21
|
+
caveats: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
22
|
+
type: z.ZodEnum<{
|
|
23
|
+
chain: "chain";
|
|
24
|
+
expiration: "expiration";
|
|
25
|
+
filteredResponse: "filteredResponse";
|
|
26
|
+
rateLimit: "rateLimit";
|
|
27
|
+
restrictReturnedAccounts: "restrictReturnedAccounts";
|
|
28
|
+
}>;
|
|
29
|
+
value: z.ZodJSONSchema;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
31
|
+
invoker: z.ZodString;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export declare const InvokerPermissionZod: z.ZodObject<{
|
|
34
|
+
parentCapability: z.ZodString;
|
|
35
|
+
caveats: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
36
|
+
type: z.ZodEnum<{
|
|
37
|
+
chain: "chain";
|
|
38
|
+
expiration: "expiration";
|
|
39
|
+
filteredResponse: "filteredResponse";
|
|
40
|
+
rateLimit: "rateLimit";
|
|
41
|
+
restrictReturnedAccounts: "restrictReturnedAccounts";
|
|
42
|
+
}>;
|
|
43
|
+
value: z.ZodJSONSchema;
|
|
44
|
+
}, z.core.$strip>>>;
|
|
45
|
+
invoker: z.ZodString;
|
|
46
|
+
date: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export declare const PermissionRequestZod: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
49
|
+
export declare const RequestedPermissionZod: z.ZodObject<{
|
|
50
|
+
parentCapability: z.ZodString;
|
|
51
|
+
date: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
//# sourceMappingURL=Permission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Permission.d.ts","sourceRoot":"","sources":["../../../src/zod/Permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,cAAc;;;;;;EAA+F,CAAA;AAE1H,eAAO,MAAM,UAAU;;;;;;;;;iBAGrB,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;iBAIxB,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;iBAAwD,CAAA;AAEzF,eAAO,MAAM,oBAAoB,8DAAsD,CAAA;AAEvF,eAAO,MAAM,sBAAsB;;;iBAGjC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const RewardsRangeOptionsZod: z.ZodObject<{
|
|
3
|
+
positions: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
4
|
+
range: z.ZodOptional<z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../model/index.ts").BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../model/index.ts").BlockNumber, number>>], null>>;
|
|
5
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
+
block: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../model/index.ts").XL1BlockNumber, number>>;
|
|
7
|
+
step: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
stakers: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
//# sourceMappingURL=RewardsRangeOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RewardsRangeOptions.d.ts","sourceRoot":"","sources":["../../../src/zod/RewardsRangeOptions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,sBAAsB;;;;;;;;iBAKjC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { LocalSequence, QualifiedSequence } from '@xyo-network/payload-model';
|
|
2
|
+
import * as z from 'zod';
|
|
3
|
+
export declare const LocalSequenceToStringZod: z.ZodString;
|
|
4
|
+
export declare const LocalSequenceFromStringZod: z.ZodPipe<z.ZodString, z.ZodTransform<LocalSequence, string>>;
|
|
5
|
+
export declare const QualifiedSequenceToStringZod: z.ZodString;
|
|
6
|
+
export declare const QualifiedSequenceFromStringZod: z.ZodPipe<z.ZodString, z.ZodTransform<QualifiedSequence, string>>;
|
|
7
|
+
export declare const SequenceToStringZod: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
8
|
+
export declare const SequenceFromStringZod: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<LocalSequence, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<QualifiedSequence, string>>]>;
|
|
9
|
+
//# sourceMappingURL=Sequence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sequence.d.ts","sourceRoot":"","sources":["../../../src/zod/Sequence.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAElF,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAGxB,eAAO,MAAM,wBAAwB,aAAuC,CAAA;AAC5E,eAAO,MAAM,0BAA0B,+DAAgG,CAAA;AAGvI,eAAO,MAAM,4BAA4B,aAA2C,CAAA;AACpF,eAAO,MAAM,8BAA8B,mEAA4G,CAAA;AAEvJ,eAAO,MAAM,mBAAmB,iDAAoE,CAAA;AACpG,eAAO,MAAM,qBAAqB,yJAAwE,CAAA"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
import type { PositionId } from '../model/index.ts';
|
|
3
|
+
export declare const StakeZod: z.ZodObject<{
|
|
4
|
+
amount: z.ZodBigInt;
|
|
5
|
+
addBlock: z.ZodNumber;
|
|
6
|
+
id: z.ZodNumber;
|
|
7
|
+
removeBlock: z.ZodNumber;
|
|
8
|
+
staked: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>;
|
|
9
|
+
staker: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>;
|
|
10
|
+
withdrawBlock: z.ZodNumber;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const StakeToJsonZod: z.ZodPipe<z.ZodObject<{
|
|
13
|
+
amount: z.ZodBigInt;
|
|
14
|
+
addBlock: z.ZodNumber;
|
|
15
|
+
id: z.ZodNumber;
|
|
16
|
+
removeBlock: z.ZodNumber;
|
|
17
|
+
staked: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>;
|
|
18
|
+
staker: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>;
|
|
19
|
+
withdrawBlock: z.ZodNumber;
|
|
20
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
21
|
+
addBlock: number;
|
|
22
|
+
amount: import("@xylabs/sdk-js").Hex;
|
|
23
|
+
id: number;
|
|
24
|
+
removeBlock: number;
|
|
25
|
+
staked: import("@xylabs/sdk-js").Address;
|
|
26
|
+
staker: import("@xylabs/sdk-js").Address;
|
|
27
|
+
withdrawBlock: number;
|
|
28
|
+
}, {
|
|
29
|
+
amount: bigint;
|
|
30
|
+
addBlock: number;
|
|
31
|
+
id: number;
|
|
32
|
+
removeBlock: number;
|
|
33
|
+
staked: import("@xylabs/sdk-js").Address;
|
|
34
|
+
staker: import("@xylabs/sdk-js").Address;
|
|
35
|
+
withdrawBlock: number;
|
|
36
|
+
}>>;
|
|
37
|
+
export declare const JsonToStakeZod: z.ZodPipe<z.ZodObject<{
|
|
38
|
+
addBlock: z.ZodNumber;
|
|
39
|
+
id: z.ZodNumber;
|
|
40
|
+
removeBlock: z.ZodNumber;
|
|
41
|
+
staked: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>;
|
|
42
|
+
staker: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>;
|
|
43
|
+
withdrawBlock: z.ZodNumber;
|
|
44
|
+
amount: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
45
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
46
|
+
addBlock: number;
|
|
47
|
+
amount: import("../index.ts").AttoXL1;
|
|
48
|
+
id: PositionId;
|
|
49
|
+
removeBlock: number;
|
|
50
|
+
staked: import("@xylabs/sdk-js").Address;
|
|
51
|
+
staker: import("@xylabs/sdk-js").Address;
|
|
52
|
+
withdrawBlock: number;
|
|
53
|
+
}, {
|
|
54
|
+
addBlock: number;
|
|
55
|
+
id: number;
|
|
56
|
+
removeBlock: number;
|
|
57
|
+
staked: import("@xylabs/sdk-js").Address;
|
|
58
|
+
staker: import("@xylabs/sdk-js").Address;
|
|
59
|
+
withdrawBlock: number;
|
|
60
|
+
amount: import("@xylabs/sdk-js").Hex;
|
|
61
|
+
}>>;
|
|
62
|
+
//# sourceMappingURL=Stake.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stake.d.ts","sourceRoot":"","sources":["../../../src/zod/Stake.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAKnD,eAAO,MAAM,QAAQ;;;;;;;;iBAcnB,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;GAQxB,CAAA;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;QAGX,UAAU;;;;;;;;;;;;;GAKvB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeDomain.d.ts","sourceRoot":"","sources":["../../../src/zod/TimeDomain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,eAAO,MAAM,aAAa,6FAIxB,CAAA"}
|
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const BlockStartZod: z.ZodObject<{
|
|
3
|
+
nbf: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../model/index.ts").BlockNumber, number>>;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export declare const BlockEndZod: z.ZodObject<{
|
|
6
|
+
exp: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../model/index.ts").BlockNumber, number>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const BlockDurationZod: z.ZodObject<{
|
|
9
|
+
nbf: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../model/index.ts").BlockNumber, number>>;
|
|
10
|
+
exp: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../model/index.ts").BlockNumber, number>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const BlockScriptsZod: z.ZodObject<{
|
|
13
|
+
script: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const TransactionFeesZod: z.ZodObject<{
|
|
16
|
+
fees: z.ZodObject<{
|
|
17
|
+
base: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
18
|
+
gasLimit: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
19
|
+
gasPrice: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
20
|
+
priority: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export declare const TransactionBoundWitnessZod: z.ZodObject<{
|
|
24
|
+
schema: z.ZodLiteral<"network.xyo.boundwitness">;
|
|
25
|
+
addresses: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>>;
|
|
26
|
+
payload_hashes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hash, string>>>;
|
|
27
|
+
payload_schemas: z.ZodArray<z.ZodString>;
|
|
28
|
+
previous_hashes: z.ZodArray<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hash, string>>>>;
|
|
29
|
+
$destination: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>>;
|
|
30
|
+
$sourceQuery: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hash, string>>>;
|
|
31
|
+
$signatures: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>, z.ZodNull]>>;
|
|
32
|
+
nbf: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../model/index.ts").BlockNumber, number>>;
|
|
33
|
+
exp: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../model/index.ts").BlockNumber, number>>;
|
|
34
|
+
fees: z.ZodObject<{
|
|
35
|
+
base: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
36
|
+
gasLimit: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
37
|
+
gasPrice: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
38
|
+
priority: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
chain: z.ZodPipe<z.ZodString, z.ZodTransform<import("../model/ChainId.ts").ChainId, string>>;
|
|
41
|
+
from: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>;
|
|
42
|
+
script: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type TransactionBoundWitness = z.infer<typeof TransactionBoundWitnessZod>;
|
|
45
|
+
export declare const isTransactionBoundWitness: (value: unknown) => value is {
|
|
46
|
+
schema: "network.xyo.boundwitness";
|
|
47
|
+
addresses: import("@xylabs/sdk-js").Address[];
|
|
48
|
+
payload_hashes: import("@xylabs/sdk-js").Hash[];
|
|
49
|
+
payload_schemas: string[];
|
|
50
|
+
previous_hashes: (import("@xylabs/sdk-js").Hash | null)[];
|
|
51
|
+
$signatures: (import("@xylabs/sdk-js").Hex | null)[];
|
|
52
|
+
nbf: import("../model/index.ts").BlockNumber;
|
|
53
|
+
exp: import("../model/index.ts").BlockNumber;
|
|
54
|
+
fees: {
|
|
55
|
+
base: import("@xylabs/sdk-js").Hex;
|
|
56
|
+
gasLimit: import("@xylabs/sdk-js").Hex;
|
|
57
|
+
gasPrice: import("@xylabs/sdk-js").Hex;
|
|
58
|
+
priority: import("@xylabs/sdk-js").Hex;
|
|
59
|
+
};
|
|
60
|
+
chain: import("../model/ChainId.ts").ChainId;
|
|
61
|
+
from: import("@xylabs/sdk-js").Address;
|
|
62
|
+
$destination?: import("@xylabs/sdk-js").Address | undefined;
|
|
63
|
+
$sourceQuery?: import("@xylabs/sdk-js").Hash | undefined;
|
|
64
|
+
script?: string[] | undefined;
|
|
65
|
+
};
|
|
66
|
+
export declare const asTransactionBoundWitness: {
|
|
67
|
+
(value: unknown): {
|
|
68
|
+
schema: "network.xyo.boundwitness";
|
|
69
|
+
addresses: import("@xylabs/sdk-js").Address[];
|
|
70
|
+
payload_hashes: import("@xylabs/sdk-js").Hash[];
|
|
71
|
+
payload_schemas: string[];
|
|
72
|
+
previous_hashes: (import("@xylabs/sdk-js").Hash | null)[];
|
|
73
|
+
$signatures: (import("@xylabs/sdk-js").Hex | null)[];
|
|
74
|
+
nbf: import("../model/index.ts").BlockNumber;
|
|
75
|
+
exp: import("../model/index.ts").BlockNumber;
|
|
76
|
+
fees: {
|
|
77
|
+
base: import("@xylabs/sdk-js").Hex;
|
|
78
|
+
gasLimit: import("@xylabs/sdk-js").Hex;
|
|
79
|
+
gasPrice: import("@xylabs/sdk-js").Hex;
|
|
80
|
+
priority: import("@xylabs/sdk-js").Hex;
|
|
81
|
+
};
|
|
82
|
+
chain: import("../model/ChainId.ts").ChainId;
|
|
83
|
+
from: import("@xylabs/sdk-js").Address;
|
|
84
|
+
$destination?: import("@xylabs/sdk-js").Address | undefined;
|
|
85
|
+
$sourceQuery?: import("@xylabs/sdk-js").Hash | undefined;
|
|
86
|
+
script?: string[] | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
(value: unknown, assert: import("@xylabs/zod").ZodFactoryConfig): {
|
|
89
|
+
schema: "network.xyo.boundwitness";
|
|
90
|
+
addresses: import("@xylabs/sdk-js").Address[];
|
|
91
|
+
payload_hashes: import("@xylabs/sdk-js").Hash[];
|
|
92
|
+
payload_schemas: string[];
|
|
93
|
+
previous_hashes: (import("@xylabs/sdk-js").Hash | null)[];
|
|
94
|
+
$signatures: (import("@xylabs/sdk-js").Hex | null)[];
|
|
95
|
+
nbf: import("../model/index.ts").BlockNumber;
|
|
96
|
+
exp: import("../model/index.ts").BlockNumber;
|
|
97
|
+
fees: {
|
|
98
|
+
base: import("@xylabs/sdk-js").Hex;
|
|
99
|
+
gasLimit: import("@xylabs/sdk-js").Hex;
|
|
100
|
+
gasPrice: import("@xylabs/sdk-js").Hex;
|
|
101
|
+
priority: import("@xylabs/sdk-js").Hex;
|
|
102
|
+
};
|
|
103
|
+
chain: import("../model/ChainId.ts").ChainId;
|
|
104
|
+
from: import("@xylabs/sdk-js").Address;
|
|
105
|
+
$destination?: import("@xylabs/sdk-js").Address | undefined;
|
|
106
|
+
$sourceQuery?: import("@xylabs/sdk-js").Hash | undefined;
|
|
107
|
+
script?: string[] | undefined;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
export declare const toTransactionBoundWitness: {
|
|
111
|
+
(value: unknown): {
|
|
112
|
+
schema: "network.xyo.boundwitness";
|
|
113
|
+
addresses: import("@xylabs/sdk-js").Address[];
|
|
114
|
+
payload_hashes: import("@xylabs/sdk-js").Hash[];
|
|
115
|
+
payload_schemas: string[];
|
|
116
|
+
previous_hashes: (import("@xylabs/sdk-js").Hash | null)[];
|
|
117
|
+
$signatures: (import("@xylabs/sdk-js").Hex | null)[];
|
|
118
|
+
nbf: import("../model/index.ts").BlockNumber;
|
|
119
|
+
exp: import("../model/index.ts").BlockNumber;
|
|
120
|
+
fees: {
|
|
121
|
+
base: import("@xylabs/sdk-js").Hex;
|
|
122
|
+
gasLimit: import("@xylabs/sdk-js").Hex;
|
|
123
|
+
gasPrice: import("@xylabs/sdk-js").Hex;
|
|
124
|
+
priority: import("@xylabs/sdk-js").Hex;
|
|
125
|
+
};
|
|
126
|
+
chain: import("../model/ChainId.ts").ChainId;
|
|
127
|
+
from: import("@xylabs/sdk-js").Address;
|
|
128
|
+
$destination?: import("@xylabs/sdk-js").Address | undefined;
|
|
129
|
+
$sourceQuery?: import("@xylabs/sdk-js").Hash | undefined;
|
|
130
|
+
script?: string[] | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
(value: unknown, assert: import("@xylabs/zod").ZodFactoryConfig): {
|
|
133
|
+
schema: "network.xyo.boundwitness";
|
|
134
|
+
addresses: import("@xylabs/sdk-js").Address[];
|
|
135
|
+
payload_hashes: import("@xylabs/sdk-js").Hash[];
|
|
136
|
+
payload_schemas: string[];
|
|
137
|
+
previous_hashes: (import("@xylabs/sdk-js").Hash | null)[];
|
|
138
|
+
$signatures: (import("@xylabs/sdk-js").Hex | null)[];
|
|
139
|
+
nbf: import("../model/index.ts").BlockNumber;
|
|
140
|
+
exp: import("../model/index.ts").BlockNumber;
|
|
141
|
+
fees: {
|
|
142
|
+
base: import("@xylabs/sdk-js").Hex;
|
|
143
|
+
gasLimit: import("@xylabs/sdk-js").Hex;
|
|
144
|
+
gasPrice: import("@xylabs/sdk-js").Hex;
|
|
145
|
+
priority: import("@xylabs/sdk-js").Hex;
|
|
146
|
+
};
|
|
147
|
+
chain: import("../model/ChainId.ts").ChainId;
|
|
148
|
+
from: import("@xylabs/sdk-js").Address;
|
|
149
|
+
$destination?: import("@xylabs/sdk-js").Address | undefined;
|
|
150
|
+
$sourceQuery?: import("@xylabs/sdk-js").Hash | undefined;
|
|
151
|
+
script?: string[] | undefined;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
export declare const UnsignedTransactionBoundWitnessZod: z.ZodObject<{
|
|
155
|
+
schema: z.ZodLiteral<"network.xyo.boundwitness">;
|
|
156
|
+
addresses: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>>;
|
|
157
|
+
payload_hashes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hash, string>>>;
|
|
158
|
+
payload_schemas: z.ZodArray<z.ZodString>;
|
|
159
|
+
previous_hashes: z.ZodArray<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hash, string>>>>;
|
|
160
|
+
$destination: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>>;
|
|
161
|
+
$sourceQuery: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hash, string>>>;
|
|
162
|
+
$signatures: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>, z.ZodNull]>>;
|
|
163
|
+
nbf: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../model/index.ts").BlockNumber, number>>;
|
|
164
|
+
exp: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../model/index.ts").BlockNumber, number>>;
|
|
165
|
+
fees: z.ZodObject<{
|
|
166
|
+
base: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
167
|
+
gasLimit: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
168
|
+
gasPrice: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
169
|
+
priority: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
chain: z.ZodPipe<z.ZodString, z.ZodTransform<import("../model/ChainId.ts").ChainId, string>>;
|
|
172
|
+
from: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>;
|
|
173
|
+
script: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
174
|
+
}, z.core.$strip>;
|
|
175
|
+
export type UnsignedTransactionBoundWitness = z.infer<typeof UnsignedTransactionBoundWitnessZod>;
|
|
176
|
+
export declare const isUnsignedTransactionBoundWitness: (value: unknown) => value is {
|
|
177
|
+
schema: "network.xyo.boundwitness";
|
|
178
|
+
addresses: import("@xylabs/sdk-js").Address[];
|
|
179
|
+
payload_hashes: import("@xylabs/sdk-js").Hash[];
|
|
180
|
+
payload_schemas: string[];
|
|
181
|
+
previous_hashes: (import("@xylabs/sdk-js").Hash | null)[];
|
|
182
|
+
$signatures: (import("@xylabs/sdk-js").Hex | null)[];
|
|
183
|
+
nbf: import("../model/index.ts").BlockNumber;
|
|
184
|
+
exp: import("../model/index.ts").BlockNumber;
|
|
185
|
+
fees: {
|
|
186
|
+
base: import("@xylabs/sdk-js").Hex;
|
|
187
|
+
gasLimit: import("@xylabs/sdk-js").Hex;
|
|
188
|
+
gasPrice: import("@xylabs/sdk-js").Hex;
|
|
189
|
+
priority: import("@xylabs/sdk-js").Hex;
|
|
190
|
+
};
|
|
191
|
+
chain: import("../model/ChainId.ts").ChainId;
|
|
192
|
+
from: import("@xylabs/sdk-js").Address;
|
|
193
|
+
$destination?: import("@xylabs/sdk-js").Address | undefined;
|
|
194
|
+
$sourceQuery?: import("@xylabs/sdk-js").Hash | undefined;
|
|
195
|
+
script?: string[] | undefined;
|
|
196
|
+
};
|
|
197
|
+
export declare const asUnsignedTransactionBoundWitness: {
|
|
198
|
+
(value: unknown): {
|
|
199
|
+
schema: "network.xyo.boundwitness";
|
|
200
|
+
addresses: import("@xylabs/sdk-js").Address[];
|
|
201
|
+
payload_hashes: import("@xylabs/sdk-js").Hash[];
|
|
202
|
+
payload_schemas: string[];
|
|
203
|
+
previous_hashes: (import("@xylabs/sdk-js").Hash | null)[];
|
|
204
|
+
$signatures: (import("@xylabs/sdk-js").Hex | null)[];
|
|
205
|
+
nbf: import("../model/index.ts").BlockNumber;
|
|
206
|
+
exp: import("../model/index.ts").BlockNumber;
|
|
207
|
+
fees: {
|
|
208
|
+
base: import("@xylabs/sdk-js").Hex;
|
|
209
|
+
gasLimit: import("@xylabs/sdk-js").Hex;
|
|
210
|
+
gasPrice: import("@xylabs/sdk-js").Hex;
|
|
211
|
+
priority: import("@xylabs/sdk-js").Hex;
|
|
212
|
+
};
|
|
213
|
+
chain: import("../model/ChainId.ts").ChainId;
|
|
214
|
+
from: import("@xylabs/sdk-js").Address;
|
|
215
|
+
$destination?: import("@xylabs/sdk-js").Address | undefined;
|
|
216
|
+
$sourceQuery?: import("@xylabs/sdk-js").Hash | undefined;
|
|
217
|
+
script?: string[] | undefined;
|
|
218
|
+
} | undefined;
|
|
219
|
+
(value: unknown, assert: import("@xylabs/zod").ZodFactoryConfig): {
|
|
220
|
+
schema: "network.xyo.boundwitness";
|
|
221
|
+
addresses: import("@xylabs/sdk-js").Address[];
|
|
222
|
+
payload_hashes: import("@xylabs/sdk-js").Hash[];
|
|
223
|
+
payload_schemas: string[];
|
|
224
|
+
previous_hashes: (import("@xylabs/sdk-js").Hash | null)[];
|
|
225
|
+
$signatures: (import("@xylabs/sdk-js").Hex | null)[];
|
|
226
|
+
nbf: import("../model/index.ts").BlockNumber;
|
|
227
|
+
exp: import("../model/index.ts").BlockNumber;
|
|
228
|
+
fees: {
|
|
229
|
+
base: import("@xylabs/sdk-js").Hex;
|
|
230
|
+
gasLimit: import("@xylabs/sdk-js").Hex;
|
|
231
|
+
gasPrice: import("@xylabs/sdk-js").Hex;
|
|
232
|
+
priority: import("@xylabs/sdk-js").Hex;
|
|
233
|
+
};
|
|
234
|
+
chain: import("../model/ChainId.ts").ChainId;
|
|
235
|
+
from: import("@xylabs/sdk-js").Address;
|
|
236
|
+
$destination?: import("@xylabs/sdk-js").Address | undefined;
|
|
237
|
+
$sourceQuery?: import("@xylabs/sdk-js").Hash | undefined;
|
|
238
|
+
script?: string[] | undefined;
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
export declare const toUnsignedTransactionBoundWitness: {
|
|
242
|
+
(value: unknown): {
|
|
243
|
+
schema: "network.xyo.boundwitness";
|
|
244
|
+
addresses: import("@xylabs/sdk-js").Address[];
|
|
245
|
+
payload_hashes: import("@xylabs/sdk-js").Hash[];
|
|
246
|
+
payload_schemas: string[];
|
|
247
|
+
previous_hashes: (import("@xylabs/sdk-js").Hash | null)[];
|
|
248
|
+
$signatures: (import("@xylabs/sdk-js").Hex | null)[];
|
|
249
|
+
nbf: import("../model/index.ts").BlockNumber;
|
|
250
|
+
exp: import("../model/index.ts").BlockNumber;
|
|
251
|
+
fees: {
|
|
252
|
+
base: import("@xylabs/sdk-js").Hex;
|
|
253
|
+
gasLimit: import("@xylabs/sdk-js").Hex;
|
|
254
|
+
gasPrice: import("@xylabs/sdk-js").Hex;
|
|
255
|
+
priority: import("@xylabs/sdk-js").Hex;
|
|
256
|
+
};
|
|
257
|
+
chain: import("../model/ChainId.ts").ChainId;
|
|
258
|
+
from: import("@xylabs/sdk-js").Address;
|
|
259
|
+
$destination?: import("@xylabs/sdk-js").Address | undefined;
|
|
260
|
+
$sourceQuery?: import("@xylabs/sdk-js").Hash | undefined;
|
|
261
|
+
script?: string[] | undefined;
|
|
262
|
+
} | undefined;
|
|
263
|
+
(value: unknown, assert: import("@xylabs/zod").ZodFactoryConfig): {
|
|
264
|
+
schema: "network.xyo.boundwitness";
|
|
265
|
+
addresses: import("@xylabs/sdk-js").Address[];
|
|
266
|
+
payload_hashes: import("@xylabs/sdk-js").Hash[];
|
|
267
|
+
payload_schemas: string[];
|
|
268
|
+
previous_hashes: (import("@xylabs/sdk-js").Hash | null)[];
|
|
269
|
+
$signatures: (import("@xylabs/sdk-js").Hex | null)[];
|
|
270
|
+
nbf: import("../model/index.ts").BlockNumber;
|
|
271
|
+
exp: import("../model/index.ts").BlockNumber;
|
|
272
|
+
fees: {
|
|
273
|
+
base: import("@xylabs/sdk-js").Hex;
|
|
274
|
+
gasLimit: import("@xylabs/sdk-js").Hex;
|
|
275
|
+
gasPrice: import("@xylabs/sdk-js").Hex;
|
|
276
|
+
priority: import("@xylabs/sdk-js").Hex;
|
|
277
|
+
};
|
|
278
|
+
chain: import("../model/ChainId.ts").ChainId;
|
|
279
|
+
from: import("@xylabs/sdk-js").Address;
|
|
280
|
+
$destination?: import("@xylabs/sdk-js").Address | undefined;
|
|
281
|
+
$sourceQuery?: import("@xylabs/sdk-js").Hash | undefined;
|
|
282
|
+
script?: string[] | undefined;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
export declare const SignedTransactionBoundWitnessZod: z.ZodObject<{
|
|
286
|
+
schema: z.ZodLiteral<"network.xyo.boundwitness">;
|
|
287
|
+
addresses: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>>;
|
|
288
|
+
payload_hashes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hash, string>>>;
|
|
289
|
+
payload_schemas: z.ZodArray<z.ZodString>;
|
|
290
|
+
previous_hashes: z.ZodArray<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hash, string>>>>;
|
|
291
|
+
$destination: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>>;
|
|
292
|
+
$sourceQuery: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hash, string>>>;
|
|
293
|
+
$signatures: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>, z.ZodNull]>>;
|
|
294
|
+
nbf: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../model/index.ts").BlockNumber, number>>;
|
|
295
|
+
exp: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../model/index.ts").BlockNumber, number>>;
|
|
296
|
+
fees: z.ZodObject<{
|
|
297
|
+
base: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
298
|
+
gasLimit: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
299
|
+
gasPrice: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
300
|
+
priority: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
301
|
+
}, z.core.$strip>;
|
|
302
|
+
chain: z.ZodPipe<z.ZodString, z.ZodTransform<import("../model/ChainId.ts").ChainId, string>>;
|
|
303
|
+
from: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>;
|
|
304
|
+
script: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
305
|
+
}, z.core.$strip>;
|
|
306
|
+
export type SignedTransactionBoundWitness = z.infer<typeof SignedTransactionBoundWitnessZod>;
|
|
307
|
+
export declare const isSignedTransactionBoundWitness: (value: unknown) => value is {
|
|
308
|
+
schema: "network.xyo.boundwitness";
|
|
309
|
+
addresses: import("@xylabs/sdk-js").Address[];
|
|
310
|
+
payload_hashes: import("@xylabs/sdk-js").Hash[];
|
|
311
|
+
payload_schemas: string[];
|
|
312
|
+
previous_hashes: (import("@xylabs/sdk-js").Hash | null)[];
|
|
313
|
+
$signatures: (import("@xylabs/sdk-js").Hex | null)[];
|
|
314
|
+
nbf: import("../model/index.ts").BlockNumber;
|
|
315
|
+
exp: import("../model/index.ts").BlockNumber;
|
|
316
|
+
fees: {
|
|
317
|
+
base: import("@xylabs/sdk-js").Hex;
|
|
318
|
+
gasLimit: import("@xylabs/sdk-js").Hex;
|
|
319
|
+
gasPrice: import("@xylabs/sdk-js").Hex;
|
|
320
|
+
priority: import("@xylabs/sdk-js").Hex;
|
|
321
|
+
};
|
|
322
|
+
chain: import("../model/ChainId.ts").ChainId;
|
|
323
|
+
from: import("@xylabs/sdk-js").Address;
|
|
324
|
+
$destination?: import("@xylabs/sdk-js").Address | undefined;
|
|
325
|
+
$sourceQuery?: import("@xylabs/sdk-js").Hash | undefined;
|
|
326
|
+
script?: string[] | undefined;
|
|
327
|
+
};
|
|
328
|
+
export declare const asSignedTransactionBoundWitness: {
|
|
329
|
+
(value: unknown): {
|
|
330
|
+
schema: "network.xyo.boundwitness";
|
|
331
|
+
addresses: import("@xylabs/sdk-js").Address[];
|
|
332
|
+
payload_hashes: import("@xylabs/sdk-js").Hash[];
|
|
333
|
+
payload_schemas: string[];
|
|
334
|
+
previous_hashes: (import("@xylabs/sdk-js").Hash | null)[];
|
|
335
|
+
$signatures: (import("@xylabs/sdk-js").Hex | null)[];
|
|
336
|
+
nbf: import("../model/index.ts").BlockNumber;
|
|
337
|
+
exp: import("../model/index.ts").BlockNumber;
|
|
338
|
+
fees: {
|
|
339
|
+
base: import("@xylabs/sdk-js").Hex;
|
|
340
|
+
gasLimit: import("@xylabs/sdk-js").Hex;
|
|
341
|
+
gasPrice: import("@xylabs/sdk-js").Hex;
|
|
342
|
+
priority: import("@xylabs/sdk-js").Hex;
|
|
343
|
+
};
|
|
344
|
+
chain: import("../model/ChainId.ts").ChainId;
|
|
345
|
+
from: import("@xylabs/sdk-js").Address;
|
|
346
|
+
$destination?: import("@xylabs/sdk-js").Address | undefined;
|
|
347
|
+
$sourceQuery?: import("@xylabs/sdk-js").Hash | undefined;
|
|
348
|
+
script?: string[] | undefined;
|
|
349
|
+
} | undefined;
|
|
350
|
+
(value: unknown, assert: import("@xylabs/zod").ZodFactoryConfig): {
|
|
351
|
+
schema: "network.xyo.boundwitness";
|
|
352
|
+
addresses: import("@xylabs/sdk-js").Address[];
|
|
353
|
+
payload_hashes: import("@xylabs/sdk-js").Hash[];
|
|
354
|
+
payload_schemas: string[];
|
|
355
|
+
previous_hashes: (import("@xylabs/sdk-js").Hash | null)[];
|
|
356
|
+
$signatures: (import("@xylabs/sdk-js").Hex | null)[];
|
|
357
|
+
nbf: import("../model/index.ts").BlockNumber;
|
|
358
|
+
exp: import("../model/index.ts").BlockNumber;
|
|
359
|
+
fees: {
|
|
360
|
+
base: import("@xylabs/sdk-js").Hex;
|
|
361
|
+
gasLimit: import("@xylabs/sdk-js").Hex;
|
|
362
|
+
gasPrice: import("@xylabs/sdk-js").Hex;
|
|
363
|
+
priority: import("@xylabs/sdk-js").Hex;
|
|
364
|
+
};
|
|
365
|
+
chain: import("../model/ChainId.ts").ChainId;
|
|
366
|
+
from: import("@xylabs/sdk-js").Address;
|
|
367
|
+
$destination?: import("@xylabs/sdk-js").Address | undefined;
|
|
368
|
+
$sourceQuery?: import("@xylabs/sdk-js").Hash | undefined;
|
|
369
|
+
script?: string[] | undefined;
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
export declare const toSignedTransactionBoundWitness: {
|
|
373
|
+
(value: unknown): {
|
|
374
|
+
schema: "network.xyo.boundwitness";
|
|
375
|
+
addresses: import("@xylabs/sdk-js").Address[];
|
|
376
|
+
payload_hashes: import("@xylabs/sdk-js").Hash[];
|
|
377
|
+
payload_schemas: string[];
|
|
378
|
+
previous_hashes: (import("@xylabs/sdk-js").Hash | null)[];
|
|
379
|
+
$signatures: (import("@xylabs/sdk-js").Hex | null)[];
|
|
380
|
+
nbf: import("../model/index.ts").BlockNumber;
|
|
381
|
+
exp: import("../model/index.ts").BlockNumber;
|
|
382
|
+
fees: {
|
|
383
|
+
base: import("@xylabs/sdk-js").Hex;
|
|
384
|
+
gasLimit: import("@xylabs/sdk-js").Hex;
|
|
385
|
+
gasPrice: import("@xylabs/sdk-js").Hex;
|
|
386
|
+
priority: import("@xylabs/sdk-js").Hex;
|
|
387
|
+
};
|
|
388
|
+
chain: import("../model/ChainId.ts").ChainId;
|
|
389
|
+
from: import("@xylabs/sdk-js").Address;
|
|
390
|
+
$destination?: import("@xylabs/sdk-js").Address | undefined;
|
|
391
|
+
$sourceQuery?: import("@xylabs/sdk-js").Hash | undefined;
|
|
392
|
+
script?: string[] | undefined;
|
|
393
|
+
} | undefined;
|
|
394
|
+
(value: unknown, assert: import("@xylabs/zod").ZodFactoryConfig): {
|
|
395
|
+
schema: "network.xyo.boundwitness";
|
|
396
|
+
addresses: import("@xylabs/sdk-js").Address[];
|
|
397
|
+
payload_hashes: import("@xylabs/sdk-js").Hash[];
|
|
398
|
+
payload_schemas: string[];
|
|
399
|
+
previous_hashes: (import("@xylabs/sdk-js").Hash | null)[];
|
|
400
|
+
$signatures: (import("@xylabs/sdk-js").Hex | null)[];
|
|
401
|
+
nbf: import("../model/index.ts").BlockNumber;
|
|
402
|
+
exp: import("../model/index.ts").BlockNumber;
|
|
403
|
+
fees: {
|
|
404
|
+
base: import("@xylabs/sdk-js").Hex;
|
|
405
|
+
gasLimit: import("@xylabs/sdk-js").Hex;
|
|
406
|
+
gasPrice: import("@xylabs/sdk-js").Hex;
|
|
407
|
+
priority: import("@xylabs/sdk-js").Hex;
|
|
408
|
+
};
|
|
409
|
+
chain: import("../model/ChainId.ts").ChainId;
|
|
410
|
+
from: import("@xylabs/sdk-js").Address;
|
|
411
|
+
$destination?: import("@xylabs/sdk-js").Address | undefined;
|
|
412
|
+
$sourceQuery?: import("@xylabs/sdk-js").Hash | undefined;
|
|
413
|
+
script?: string[] | undefined;
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
//# sourceMappingURL=TransactionBoundWitness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/zod/TransactionBoundWitness.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AASxB,eAAO,MAAM,aAAa;;iBAAoC,CAAA;AAC9D,eAAO,MAAM,WAAW;;iBAAoC,CAAA;AAC5D,eAAO,MAAM,gBAAgB;;;iBAAyD,CAAA;AACtF,eAAO,MAAM,eAAe;;iBAAuD,CAAA;AAEnF,eAAO,MAAM,kBAAkB;;;;;;;iBAA4C,CAAA;AAI3E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;iBAIP,CAAA;AAEhC,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAEhF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;CAA2C,CAAA;AACjF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwE,CAAA;AAC9G,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwE,CAAA;AAE9G,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;iBAIf,CAAA;AAEhC,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAEhG,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;CAAmD,CAAA;AACjG,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwF,CAAA;AACtI,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwF,CAAA;AAEtI,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;iBAIb,CAAA;AAEhC,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAE5F,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;CAAiD,CAAA;AAC7F,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoF,CAAA;AAChI,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoF,CAAA"}
|