@chainflip/rpc 1.4.10 → 1.5.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/common.d.cts +92 -0
- package/dist/common.d.ts +92 -0
- package/dist/parsers.cjs +3 -1
- package/dist/parsers.d.cts +92 -0
- package/dist/parsers.d.ts +92 -0
- package/dist/parsers.mjs +3 -1
- package/package.json +1 -1
package/dist/common.d.cts
CHANGED
|
@@ -946,6 +946,22 @@ declare const rpcResult: {
|
|
|
946
946
|
Polkadot: string | number;
|
|
947
947
|
Arbitrum?: string | number | undefined;
|
|
948
948
|
}>;
|
|
949
|
+
max_swap_retry_duration_blocks: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
950
|
+
Bitcoin: z.ZodNumber;
|
|
951
|
+
Ethereum: z.ZodNumber;
|
|
952
|
+
Polkadot: z.ZodNumber;
|
|
953
|
+
Arbitrum: z.ZodDefault<z.ZodNumber>;
|
|
954
|
+
}, "strip", z.ZodTypeAny, {
|
|
955
|
+
Bitcoin: number;
|
|
956
|
+
Ethereum: number;
|
|
957
|
+
Polkadot: number;
|
|
958
|
+
Arbitrum: number;
|
|
959
|
+
}, {
|
|
960
|
+
Bitcoin: number;
|
|
961
|
+
Ethereum: number;
|
|
962
|
+
Polkadot: number;
|
|
963
|
+
Arbitrum?: number | undefined;
|
|
964
|
+
}>>>;
|
|
949
965
|
}, "strip", z.ZodTypeAny, {
|
|
950
966
|
minimum_deposit_amounts: {
|
|
951
967
|
Bitcoin: {
|
|
@@ -1031,6 +1047,12 @@ declare const rpcResult: {
|
|
|
1031
1047
|
Polkadot: bigint;
|
|
1032
1048
|
Arbitrum: bigint;
|
|
1033
1049
|
};
|
|
1050
|
+
max_swap_retry_duration_blocks: {
|
|
1051
|
+
Bitcoin: number;
|
|
1052
|
+
Ethereum: number;
|
|
1053
|
+
Polkadot: number;
|
|
1054
|
+
Arbitrum: number;
|
|
1055
|
+
};
|
|
1034
1056
|
}, {
|
|
1035
1057
|
minimum_deposit_amounts: {
|
|
1036
1058
|
Bitcoin: {
|
|
@@ -1116,6 +1138,12 @@ declare const rpcResult: {
|
|
|
1116
1138
|
Polkadot: string | number;
|
|
1117
1139
|
Arbitrum?: string | number | undefined;
|
|
1118
1140
|
};
|
|
1141
|
+
max_swap_retry_duration_blocks?: {
|
|
1142
|
+
Bitcoin: number;
|
|
1143
|
+
Ethereum: number;
|
|
1144
|
+
Polkadot: number;
|
|
1145
|
+
Arbitrum?: number | undefined;
|
|
1146
|
+
} | undefined;
|
|
1119
1147
|
}>, Omit<{
|
|
1120
1148
|
minimum_deposit_amounts: {
|
|
1121
1149
|
Bitcoin: {
|
|
@@ -1201,6 +1229,12 @@ declare const rpcResult: {
|
|
|
1201
1229
|
Polkadot: bigint;
|
|
1202
1230
|
Arbitrum: bigint;
|
|
1203
1231
|
};
|
|
1232
|
+
max_swap_retry_duration_blocks: {
|
|
1233
|
+
Bitcoin: number;
|
|
1234
|
+
Ethereum: number;
|
|
1235
|
+
Polkadot: number;
|
|
1236
|
+
Arbitrum: number;
|
|
1237
|
+
};
|
|
1204
1238
|
}, "egress_dust_limits"> & {
|
|
1205
1239
|
readonly minimum_egress_amounts: {
|
|
1206
1240
|
Bitcoin: {
|
|
@@ -1305,6 +1339,12 @@ declare const rpcResult: {
|
|
|
1305
1339
|
Polkadot: string | number;
|
|
1306
1340
|
Arbitrum?: string | number | undefined;
|
|
1307
1341
|
};
|
|
1342
|
+
max_swap_retry_duration_blocks?: {
|
|
1343
|
+
Bitcoin: number;
|
|
1344
|
+
Ethereum: number;
|
|
1345
|
+
Polkadot: number;
|
|
1346
|
+
Arbitrum?: number | undefined;
|
|
1347
|
+
} | undefined;
|
|
1308
1348
|
}>;
|
|
1309
1349
|
swapping: z.ZodObject<{
|
|
1310
1350
|
maximum_swap_amounts: z.ZodObject<{
|
|
@@ -3289,6 +3329,12 @@ declare const rpcResult: {
|
|
|
3289
3329
|
Polkadot: bigint;
|
|
3290
3330
|
Arbitrum: bigint;
|
|
3291
3331
|
};
|
|
3332
|
+
max_swap_retry_duration_blocks: {
|
|
3333
|
+
Bitcoin: number;
|
|
3334
|
+
Ethereum: number;
|
|
3335
|
+
Polkadot: number;
|
|
3336
|
+
Arbitrum: number;
|
|
3337
|
+
};
|
|
3292
3338
|
}, "egress_dust_limits"> & {
|
|
3293
3339
|
readonly minimum_egress_amounts: {
|
|
3294
3340
|
Bitcoin: {
|
|
@@ -3600,6 +3646,12 @@ declare const rpcResult: {
|
|
|
3600
3646
|
Polkadot: string | number;
|
|
3601
3647
|
Arbitrum?: string | number | undefined;
|
|
3602
3648
|
};
|
|
3649
|
+
max_swap_retry_duration_blocks?: {
|
|
3650
|
+
Bitcoin: number;
|
|
3651
|
+
Ethereum: number;
|
|
3652
|
+
Polkadot: number;
|
|
3653
|
+
Arbitrum?: number | undefined;
|
|
3654
|
+
} | undefined;
|
|
3603
3655
|
};
|
|
3604
3656
|
swapping: {
|
|
3605
3657
|
maximum_swap_amounts: {
|
|
@@ -4154,6 +4206,22 @@ declare const rpcResult: {
|
|
|
4154
4206
|
Polkadot: string | number;
|
|
4155
4207
|
Arbitrum?: string | number | undefined;
|
|
4156
4208
|
}>;
|
|
4209
|
+
max_swap_retry_duration_blocks: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
4210
|
+
Bitcoin: z.ZodNumber;
|
|
4211
|
+
Ethereum: z.ZodNumber;
|
|
4212
|
+
Polkadot: z.ZodNumber;
|
|
4213
|
+
Arbitrum: z.ZodDefault<z.ZodNumber>;
|
|
4214
|
+
}, "strip", z.ZodTypeAny, {
|
|
4215
|
+
Bitcoin: number;
|
|
4216
|
+
Ethereum: number;
|
|
4217
|
+
Polkadot: number;
|
|
4218
|
+
Arbitrum: number;
|
|
4219
|
+
}, {
|
|
4220
|
+
Bitcoin: number;
|
|
4221
|
+
Ethereum: number;
|
|
4222
|
+
Polkadot: number;
|
|
4223
|
+
Arbitrum?: number | undefined;
|
|
4224
|
+
}>>>;
|
|
4157
4225
|
}, "strip", z.ZodTypeAny, {
|
|
4158
4226
|
minimum_deposit_amounts: {
|
|
4159
4227
|
Bitcoin: {
|
|
@@ -4239,6 +4307,12 @@ declare const rpcResult: {
|
|
|
4239
4307
|
Polkadot: bigint;
|
|
4240
4308
|
Arbitrum: bigint;
|
|
4241
4309
|
};
|
|
4310
|
+
max_swap_retry_duration_blocks: {
|
|
4311
|
+
Bitcoin: number;
|
|
4312
|
+
Ethereum: number;
|
|
4313
|
+
Polkadot: number;
|
|
4314
|
+
Arbitrum: number;
|
|
4315
|
+
};
|
|
4242
4316
|
}, {
|
|
4243
4317
|
minimum_deposit_amounts: {
|
|
4244
4318
|
Bitcoin: {
|
|
@@ -4324,6 +4398,12 @@ declare const rpcResult: {
|
|
|
4324
4398
|
Polkadot: string | number;
|
|
4325
4399
|
Arbitrum?: string | number | undefined;
|
|
4326
4400
|
};
|
|
4401
|
+
max_swap_retry_duration_blocks?: {
|
|
4402
|
+
Bitcoin: number;
|
|
4403
|
+
Ethereum: number;
|
|
4404
|
+
Polkadot: number;
|
|
4405
|
+
Arbitrum?: number | undefined;
|
|
4406
|
+
} | undefined;
|
|
4327
4407
|
}>, Omit<{
|
|
4328
4408
|
minimum_deposit_amounts: {
|
|
4329
4409
|
Bitcoin: {
|
|
@@ -4409,6 +4489,12 @@ declare const rpcResult: {
|
|
|
4409
4489
|
Polkadot: bigint;
|
|
4410
4490
|
Arbitrum: bigint;
|
|
4411
4491
|
};
|
|
4492
|
+
max_swap_retry_duration_blocks: {
|
|
4493
|
+
Bitcoin: number;
|
|
4494
|
+
Ethereum: number;
|
|
4495
|
+
Polkadot: number;
|
|
4496
|
+
Arbitrum: number;
|
|
4497
|
+
};
|
|
4412
4498
|
}, "egress_dust_limits"> & {
|
|
4413
4499
|
readonly minimum_egress_amounts: {
|
|
4414
4500
|
Bitcoin: {
|
|
@@ -4513,6 +4599,12 @@ declare const rpcResult: {
|
|
|
4513
4599
|
Polkadot: string | number;
|
|
4514
4600
|
Arbitrum?: string | number | undefined;
|
|
4515
4601
|
};
|
|
4602
|
+
max_swap_retry_duration_blocks?: {
|
|
4603
|
+
Bitcoin: number;
|
|
4604
|
+
Ethereum: number;
|
|
4605
|
+
Polkadot: number;
|
|
4606
|
+
Arbitrum?: number | undefined;
|
|
4607
|
+
} | undefined;
|
|
4516
4608
|
}>;
|
|
4517
4609
|
readonly cf_pool_orders: z.ZodObject<{
|
|
4518
4610
|
limit_orders: z.ZodObject<{
|
package/dist/common.d.ts
CHANGED
|
@@ -946,6 +946,22 @@ declare const rpcResult: {
|
|
|
946
946
|
Polkadot: string | number;
|
|
947
947
|
Arbitrum?: string | number | undefined;
|
|
948
948
|
}>;
|
|
949
|
+
max_swap_retry_duration_blocks: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
950
|
+
Bitcoin: z.ZodNumber;
|
|
951
|
+
Ethereum: z.ZodNumber;
|
|
952
|
+
Polkadot: z.ZodNumber;
|
|
953
|
+
Arbitrum: z.ZodDefault<z.ZodNumber>;
|
|
954
|
+
}, "strip", z.ZodTypeAny, {
|
|
955
|
+
Bitcoin: number;
|
|
956
|
+
Ethereum: number;
|
|
957
|
+
Polkadot: number;
|
|
958
|
+
Arbitrum: number;
|
|
959
|
+
}, {
|
|
960
|
+
Bitcoin: number;
|
|
961
|
+
Ethereum: number;
|
|
962
|
+
Polkadot: number;
|
|
963
|
+
Arbitrum?: number | undefined;
|
|
964
|
+
}>>>;
|
|
949
965
|
}, "strip", z.ZodTypeAny, {
|
|
950
966
|
minimum_deposit_amounts: {
|
|
951
967
|
Bitcoin: {
|
|
@@ -1031,6 +1047,12 @@ declare const rpcResult: {
|
|
|
1031
1047
|
Polkadot: bigint;
|
|
1032
1048
|
Arbitrum: bigint;
|
|
1033
1049
|
};
|
|
1050
|
+
max_swap_retry_duration_blocks: {
|
|
1051
|
+
Bitcoin: number;
|
|
1052
|
+
Ethereum: number;
|
|
1053
|
+
Polkadot: number;
|
|
1054
|
+
Arbitrum: number;
|
|
1055
|
+
};
|
|
1034
1056
|
}, {
|
|
1035
1057
|
minimum_deposit_amounts: {
|
|
1036
1058
|
Bitcoin: {
|
|
@@ -1116,6 +1138,12 @@ declare const rpcResult: {
|
|
|
1116
1138
|
Polkadot: string | number;
|
|
1117
1139
|
Arbitrum?: string | number | undefined;
|
|
1118
1140
|
};
|
|
1141
|
+
max_swap_retry_duration_blocks?: {
|
|
1142
|
+
Bitcoin: number;
|
|
1143
|
+
Ethereum: number;
|
|
1144
|
+
Polkadot: number;
|
|
1145
|
+
Arbitrum?: number | undefined;
|
|
1146
|
+
} | undefined;
|
|
1119
1147
|
}>, Omit<{
|
|
1120
1148
|
minimum_deposit_amounts: {
|
|
1121
1149
|
Bitcoin: {
|
|
@@ -1201,6 +1229,12 @@ declare const rpcResult: {
|
|
|
1201
1229
|
Polkadot: bigint;
|
|
1202
1230
|
Arbitrum: bigint;
|
|
1203
1231
|
};
|
|
1232
|
+
max_swap_retry_duration_blocks: {
|
|
1233
|
+
Bitcoin: number;
|
|
1234
|
+
Ethereum: number;
|
|
1235
|
+
Polkadot: number;
|
|
1236
|
+
Arbitrum: number;
|
|
1237
|
+
};
|
|
1204
1238
|
}, "egress_dust_limits"> & {
|
|
1205
1239
|
readonly minimum_egress_amounts: {
|
|
1206
1240
|
Bitcoin: {
|
|
@@ -1305,6 +1339,12 @@ declare const rpcResult: {
|
|
|
1305
1339
|
Polkadot: string | number;
|
|
1306
1340
|
Arbitrum?: string | number | undefined;
|
|
1307
1341
|
};
|
|
1342
|
+
max_swap_retry_duration_blocks?: {
|
|
1343
|
+
Bitcoin: number;
|
|
1344
|
+
Ethereum: number;
|
|
1345
|
+
Polkadot: number;
|
|
1346
|
+
Arbitrum?: number | undefined;
|
|
1347
|
+
} | undefined;
|
|
1308
1348
|
}>;
|
|
1309
1349
|
swapping: z.ZodObject<{
|
|
1310
1350
|
maximum_swap_amounts: z.ZodObject<{
|
|
@@ -3289,6 +3329,12 @@ declare const rpcResult: {
|
|
|
3289
3329
|
Polkadot: bigint;
|
|
3290
3330
|
Arbitrum: bigint;
|
|
3291
3331
|
};
|
|
3332
|
+
max_swap_retry_duration_blocks: {
|
|
3333
|
+
Bitcoin: number;
|
|
3334
|
+
Ethereum: number;
|
|
3335
|
+
Polkadot: number;
|
|
3336
|
+
Arbitrum: number;
|
|
3337
|
+
};
|
|
3292
3338
|
}, "egress_dust_limits"> & {
|
|
3293
3339
|
readonly minimum_egress_amounts: {
|
|
3294
3340
|
Bitcoin: {
|
|
@@ -3600,6 +3646,12 @@ declare const rpcResult: {
|
|
|
3600
3646
|
Polkadot: string | number;
|
|
3601
3647
|
Arbitrum?: string | number | undefined;
|
|
3602
3648
|
};
|
|
3649
|
+
max_swap_retry_duration_blocks?: {
|
|
3650
|
+
Bitcoin: number;
|
|
3651
|
+
Ethereum: number;
|
|
3652
|
+
Polkadot: number;
|
|
3653
|
+
Arbitrum?: number | undefined;
|
|
3654
|
+
} | undefined;
|
|
3603
3655
|
};
|
|
3604
3656
|
swapping: {
|
|
3605
3657
|
maximum_swap_amounts: {
|
|
@@ -4154,6 +4206,22 @@ declare const rpcResult: {
|
|
|
4154
4206
|
Polkadot: string | number;
|
|
4155
4207
|
Arbitrum?: string | number | undefined;
|
|
4156
4208
|
}>;
|
|
4209
|
+
max_swap_retry_duration_blocks: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
4210
|
+
Bitcoin: z.ZodNumber;
|
|
4211
|
+
Ethereum: z.ZodNumber;
|
|
4212
|
+
Polkadot: z.ZodNumber;
|
|
4213
|
+
Arbitrum: z.ZodDefault<z.ZodNumber>;
|
|
4214
|
+
}, "strip", z.ZodTypeAny, {
|
|
4215
|
+
Bitcoin: number;
|
|
4216
|
+
Ethereum: number;
|
|
4217
|
+
Polkadot: number;
|
|
4218
|
+
Arbitrum: number;
|
|
4219
|
+
}, {
|
|
4220
|
+
Bitcoin: number;
|
|
4221
|
+
Ethereum: number;
|
|
4222
|
+
Polkadot: number;
|
|
4223
|
+
Arbitrum?: number | undefined;
|
|
4224
|
+
}>>>;
|
|
4157
4225
|
}, "strip", z.ZodTypeAny, {
|
|
4158
4226
|
minimum_deposit_amounts: {
|
|
4159
4227
|
Bitcoin: {
|
|
@@ -4239,6 +4307,12 @@ declare const rpcResult: {
|
|
|
4239
4307
|
Polkadot: bigint;
|
|
4240
4308
|
Arbitrum: bigint;
|
|
4241
4309
|
};
|
|
4310
|
+
max_swap_retry_duration_blocks: {
|
|
4311
|
+
Bitcoin: number;
|
|
4312
|
+
Ethereum: number;
|
|
4313
|
+
Polkadot: number;
|
|
4314
|
+
Arbitrum: number;
|
|
4315
|
+
};
|
|
4242
4316
|
}, {
|
|
4243
4317
|
minimum_deposit_amounts: {
|
|
4244
4318
|
Bitcoin: {
|
|
@@ -4324,6 +4398,12 @@ declare const rpcResult: {
|
|
|
4324
4398
|
Polkadot: string | number;
|
|
4325
4399
|
Arbitrum?: string | number | undefined;
|
|
4326
4400
|
};
|
|
4401
|
+
max_swap_retry_duration_blocks?: {
|
|
4402
|
+
Bitcoin: number;
|
|
4403
|
+
Ethereum: number;
|
|
4404
|
+
Polkadot: number;
|
|
4405
|
+
Arbitrum?: number | undefined;
|
|
4406
|
+
} | undefined;
|
|
4327
4407
|
}>, Omit<{
|
|
4328
4408
|
minimum_deposit_amounts: {
|
|
4329
4409
|
Bitcoin: {
|
|
@@ -4409,6 +4489,12 @@ declare const rpcResult: {
|
|
|
4409
4489
|
Polkadot: bigint;
|
|
4410
4490
|
Arbitrum: bigint;
|
|
4411
4491
|
};
|
|
4492
|
+
max_swap_retry_duration_blocks: {
|
|
4493
|
+
Bitcoin: number;
|
|
4494
|
+
Ethereum: number;
|
|
4495
|
+
Polkadot: number;
|
|
4496
|
+
Arbitrum: number;
|
|
4497
|
+
};
|
|
4412
4498
|
}, "egress_dust_limits"> & {
|
|
4413
4499
|
readonly minimum_egress_amounts: {
|
|
4414
4500
|
Bitcoin: {
|
|
@@ -4513,6 +4599,12 @@ declare const rpcResult: {
|
|
|
4513
4599
|
Polkadot: string | number;
|
|
4514
4600
|
Arbitrum?: string | number | undefined;
|
|
4515
4601
|
};
|
|
4602
|
+
max_swap_retry_duration_blocks?: {
|
|
4603
|
+
Bitcoin: number;
|
|
4604
|
+
Ethereum: number;
|
|
4605
|
+
Polkadot: number;
|
|
4606
|
+
Arbitrum?: number | undefined;
|
|
4607
|
+
} | undefined;
|
|
4516
4608
|
}>;
|
|
4517
4609
|
readonly cf_pool_orders: z.ZodObject<{
|
|
4518
4610
|
limit_orders: z.ZodObject<{
|
package/dist/parsers.cjs
CHANGED
|
@@ -82,7 +82,9 @@ var cfIngressEgressEnvironment = _zod.z.object({
|
|
|
82
82
|
egress_fees: chainAssetMapFactory(numberOrHex.nullable(), null),
|
|
83
83
|
witness_safety_margins: chainMapFactory(_zod.z.number().nullable(), null),
|
|
84
84
|
egress_dust_limits: chainAssetMapFactory(numberOrHex, 0),
|
|
85
|
-
channel_opening_fees: chainMapFactory(numberOrHex, 0)
|
|
85
|
+
channel_opening_fees: chainMapFactory(numberOrHex, 0),
|
|
86
|
+
// TODO(1.6): no longer optional
|
|
87
|
+
max_swap_retry_duration_blocks: chainMapFactory(_zod.z.number(), 0).optional().default({ Arbitrum: 0, Bitcoin: 0, Ethereum: 0, Polkadot: 0 })
|
|
86
88
|
}).transform(rename({ egress_dust_limits: "minimum_egress_amounts" }));
|
|
87
89
|
var cfSwappingEnvironment = _zod.z.object({
|
|
88
90
|
maximum_swap_amounts: chainAssetMapFactory(numberOrHex.nullable(), null),
|
package/dist/parsers.d.cts
CHANGED
|
@@ -908,6 +908,22 @@ declare const cfIngressEgressEnvironment: z.ZodEffects<z.ZodObject<{
|
|
|
908
908
|
Polkadot: string | number;
|
|
909
909
|
Arbitrum?: string | number | undefined;
|
|
910
910
|
}>;
|
|
911
|
+
max_swap_retry_duration_blocks: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
912
|
+
Bitcoin: z.ZodNumber;
|
|
913
|
+
Ethereum: z.ZodNumber;
|
|
914
|
+
Polkadot: z.ZodNumber;
|
|
915
|
+
Arbitrum: z.ZodDefault<z.ZodNumber>;
|
|
916
|
+
}, "strip", z.ZodTypeAny, {
|
|
917
|
+
Bitcoin: number;
|
|
918
|
+
Ethereum: number;
|
|
919
|
+
Polkadot: number;
|
|
920
|
+
Arbitrum: number;
|
|
921
|
+
}, {
|
|
922
|
+
Bitcoin: number;
|
|
923
|
+
Ethereum: number;
|
|
924
|
+
Polkadot: number;
|
|
925
|
+
Arbitrum?: number | undefined;
|
|
926
|
+
}>>>;
|
|
911
927
|
}, "strip", z.ZodTypeAny, {
|
|
912
928
|
minimum_deposit_amounts: {
|
|
913
929
|
Bitcoin: {
|
|
@@ -993,6 +1009,12 @@ declare const cfIngressEgressEnvironment: z.ZodEffects<z.ZodObject<{
|
|
|
993
1009
|
Polkadot: bigint;
|
|
994
1010
|
Arbitrum: bigint;
|
|
995
1011
|
};
|
|
1012
|
+
max_swap_retry_duration_blocks: {
|
|
1013
|
+
Bitcoin: number;
|
|
1014
|
+
Ethereum: number;
|
|
1015
|
+
Polkadot: number;
|
|
1016
|
+
Arbitrum: number;
|
|
1017
|
+
};
|
|
996
1018
|
}, {
|
|
997
1019
|
minimum_deposit_amounts: {
|
|
998
1020
|
Bitcoin: {
|
|
@@ -1078,6 +1100,12 @@ declare const cfIngressEgressEnvironment: z.ZodEffects<z.ZodObject<{
|
|
|
1078
1100
|
Polkadot: string | number;
|
|
1079
1101
|
Arbitrum?: string | number | undefined;
|
|
1080
1102
|
};
|
|
1103
|
+
max_swap_retry_duration_blocks?: {
|
|
1104
|
+
Bitcoin: number;
|
|
1105
|
+
Ethereum: number;
|
|
1106
|
+
Polkadot: number;
|
|
1107
|
+
Arbitrum?: number | undefined;
|
|
1108
|
+
} | undefined;
|
|
1081
1109
|
}>, Rename<{
|
|
1082
1110
|
minimum_deposit_amounts: {
|
|
1083
1111
|
Bitcoin: {
|
|
@@ -1163,6 +1191,12 @@ declare const cfIngressEgressEnvironment: z.ZodEffects<z.ZodObject<{
|
|
|
1163
1191
|
Polkadot: bigint;
|
|
1164
1192
|
Arbitrum: bigint;
|
|
1165
1193
|
};
|
|
1194
|
+
max_swap_retry_duration_blocks: {
|
|
1195
|
+
Bitcoin: number;
|
|
1196
|
+
Ethereum: number;
|
|
1197
|
+
Polkadot: number;
|
|
1198
|
+
Arbitrum: number;
|
|
1199
|
+
};
|
|
1166
1200
|
}, {
|
|
1167
1201
|
readonly egress_dust_limits: "minimum_egress_amounts";
|
|
1168
1202
|
}>, {
|
|
@@ -1250,6 +1284,12 @@ declare const cfIngressEgressEnvironment: z.ZodEffects<z.ZodObject<{
|
|
|
1250
1284
|
Polkadot: string | number;
|
|
1251
1285
|
Arbitrum?: string | number | undefined;
|
|
1252
1286
|
};
|
|
1287
|
+
max_swap_retry_duration_blocks?: {
|
|
1288
|
+
Bitcoin: number;
|
|
1289
|
+
Ethereum: number;
|
|
1290
|
+
Polkadot: number;
|
|
1291
|
+
Arbitrum?: number | undefined;
|
|
1292
|
+
} | undefined;
|
|
1253
1293
|
}>;
|
|
1254
1294
|
declare const cfSwappingEnvironment: z.ZodObject<{
|
|
1255
1295
|
maximum_swap_amounts: z.ZodObject<{
|
|
@@ -3486,6 +3526,22 @@ declare const cfEnvironment: z.ZodObject<{
|
|
|
3486
3526
|
Polkadot: string | number;
|
|
3487
3527
|
Arbitrum?: string | number | undefined;
|
|
3488
3528
|
}>;
|
|
3529
|
+
max_swap_retry_duration_blocks: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
3530
|
+
Bitcoin: z.ZodNumber;
|
|
3531
|
+
Ethereum: z.ZodNumber;
|
|
3532
|
+
Polkadot: z.ZodNumber;
|
|
3533
|
+
Arbitrum: z.ZodDefault<z.ZodNumber>;
|
|
3534
|
+
}, "strip", z.ZodTypeAny, {
|
|
3535
|
+
Bitcoin: number;
|
|
3536
|
+
Ethereum: number;
|
|
3537
|
+
Polkadot: number;
|
|
3538
|
+
Arbitrum: number;
|
|
3539
|
+
}, {
|
|
3540
|
+
Bitcoin: number;
|
|
3541
|
+
Ethereum: number;
|
|
3542
|
+
Polkadot: number;
|
|
3543
|
+
Arbitrum?: number | undefined;
|
|
3544
|
+
}>>>;
|
|
3489
3545
|
}, "strip", z.ZodTypeAny, {
|
|
3490
3546
|
minimum_deposit_amounts: {
|
|
3491
3547
|
Bitcoin: {
|
|
@@ -3571,6 +3627,12 @@ declare const cfEnvironment: z.ZodObject<{
|
|
|
3571
3627
|
Polkadot: bigint;
|
|
3572
3628
|
Arbitrum: bigint;
|
|
3573
3629
|
};
|
|
3630
|
+
max_swap_retry_duration_blocks: {
|
|
3631
|
+
Bitcoin: number;
|
|
3632
|
+
Ethereum: number;
|
|
3633
|
+
Polkadot: number;
|
|
3634
|
+
Arbitrum: number;
|
|
3635
|
+
};
|
|
3574
3636
|
}, {
|
|
3575
3637
|
minimum_deposit_amounts: {
|
|
3576
3638
|
Bitcoin: {
|
|
@@ -3656,6 +3718,12 @@ declare const cfEnvironment: z.ZodObject<{
|
|
|
3656
3718
|
Polkadot: string | number;
|
|
3657
3719
|
Arbitrum?: string | number | undefined;
|
|
3658
3720
|
};
|
|
3721
|
+
max_swap_retry_duration_blocks?: {
|
|
3722
|
+
Bitcoin: number;
|
|
3723
|
+
Ethereum: number;
|
|
3724
|
+
Polkadot: number;
|
|
3725
|
+
Arbitrum?: number | undefined;
|
|
3726
|
+
} | undefined;
|
|
3659
3727
|
}>, Rename<{
|
|
3660
3728
|
minimum_deposit_amounts: {
|
|
3661
3729
|
Bitcoin: {
|
|
@@ -3741,6 +3809,12 @@ declare const cfEnvironment: z.ZodObject<{
|
|
|
3741
3809
|
Polkadot: bigint;
|
|
3742
3810
|
Arbitrum: bigint;
|
|
3743
3811
|
};
|
|
3812
|
+
max_swap_retry_duration_blocks: {
|
|
3813
|
+
Bitcoin: number;
|
|
3814
|
+
Ethereum: number;
|
|
3815
|
+
Polkadot: number;
|
|
3816
|
+
Arbitrum: number;
|
|
3817
|
+
};
|
|
3744
3818
|
}, {
|
|
3745
3819
|
readonly egress_dust_limits: "minimum_egress_amounts";
|
|
3746
3820
|
}>, {
|
|
@@ -3828,6 +3902,12 @@ declare const cfEnvironment: z.ZodObject<{
|
|
|
3828
3902
|
Polkadot: string | number;
|
|
3829
3903
|
Arbitrum?: string | number | undefined;
|
|
3830
3904
|
};
|
|
3905
|
+
max_swap_retry_duration_blocks?: {
|
|
3906
|
+
Bitcoin: number;
|
|
3907
|
+
Ethereum: number;
|
|
3908
|
+
Polkadot: number;
|
|
3909
|
+
Arbitrum?: number | undefined;
|
|
3910
|
+
} | undefined;
|
|
3831
3911
|
}>;
|
|
3832
3912
|
swapping: z.ZodObject<{
|
|
3833
3913
|
maximum_swap_amounts: z.ZodObject<{
|
|
@@ -5812,6 +5892,12 @@ declare const cfEnvironment: z.ZodObject<{
|
|
|
5812
5892
|
Polkadot: bigint;
|
|
5813
5893
|
Arbitrum: bigint;
|
|
5814
5894
|
};
|
|
5895
|
+
max_swap_retry_duration_blocks: {
|
|
5896
|
+
Bitcoin: number;
|
|
5897
|
+
Ethereum: number;
|
|
5898
|
+
Polkadot: number;
|
|
5899
|
+
Arbitrum: number;
|
|
5900
|
+
};
|
|
5815
5901
|
}, "egress_dust_limits"> & {
|
|
5816
5902
|
readonly minimum_egress_amounts: {
|
|
5817
5903
|
Bitcoin: {
|
|
@@ -6123,6 +6209,12 @@ declare const cfEnvironment: z.ZodObject<{
|
|
|
6123
6209
|
Polkadot: string | number;
|
|
6124
6210
|
Arbitrum?: string | number | undefined;
|
|
6125
6211
|
};
|
|
6212
|
+
max_swap_retry_duration_blocks?: {
|
|
6213
|
+
Bitcoin: number;
|
|
6214
|
+
Ethereum: number;
|
|
6215
|
+
Polkadot: number;
|
|
6216
|
+
Arbitrum?: number | undefined;
|
|
6217
|
+
} | undefined;
|
|
6126
6218
|
};
|
|
6127
6219
|
swapping: {
|
|
6128
6220
|
maximum_swap_amounts: {
|
package/dist/parsers.d.ts
CHANGED
|
@@ -908,6 +908,22 @@ declare const cfIngressEgressEnvironment: z.ZodEffects<z.ZodObject<{
|
|
|
908
908
|
Polkadot: string | number;
|
|
909
909
|
Arbitrum?: string | number | undefined;
|
|
910
910
|
}>;
|
|
911
|
+
max_swap_retry_duration_blocks: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
912
|
+
Bitcoin: z.ZodNumber;
|
|
913
|
+
Ethereum: z.ZodNumber;
|
|
914
|
+
Polkadot: z.ZodNumber;
|
|
915
|
+
Arbitrum: z.ZodDefault<z.ZodNumber>;
|
|
916
|
+
}, "strip", z.ZodTypeAny, {
|
|
917
|
+
Bitcoin: number;
|
|
918
|
+
Ethereum: number;
|
|
919
|
+
Polkadot: number;
|
|
920
|
+
Arbitrum: number;
|
|
921
|
+
}, {
|
|
922
|
+
Bitcoin: number;
|
|
923
|
+
Ethereum: number;
|
|
924
|
+
Polkadot: number;
|
|
925
|
+
Arbitrum?: number | undefined;
|
|
926
|
+
}>>>;
|
|
911
927
|
}, "strip", z.ZodTypeAny, {
|
|
912
928
|
minimum_deposit_amounts: {
|
|
913
929
|
Bitcoin: {
|
|
@@ -993,6 +1009,12 @@ declare const cfIngressEgressEnvironment: z.ZodEffects<z.ZodObject<{
|
|
|
993
1009
|
Polkadot: bigint;
|
|
994
1010
|
Arbitrum: bigint;
|
|
995
1011
|
};
|
|
1012
|
+
max_swap_retry_duration_blocks: {
|
|
1013
|
+
Bitcoin: number;
|
|
1014
|
+
Ethereum: number;
|
|
1015
|
+
Polkadot: number;
|
|
1016
|
+
Arbitrum: number;
|
|
1017
|
+
};
|
|
996
1018
|
}, {
|
|
997
1019
|
minimum_deposit_amounts: {
|
|
998
1020
|
Bitcoin: {
|
|
@@ -1078,6 +1100,12 @@ declare const cfIngressEgressEnvironment: z.ZodEffects<z.ZodObject<{
|
|
|
1078
1100
|
Polkadot: string | number;
|
|
1079
1101
|
Arbitrum?: string | number | undefined;
|
|
1080
1102
|
};
|
|
1103
|
+
max_swap_retry_duration_blocks?: {
|
|
1104
|
+
Bitcoin: number;
|
|
1105
|
+
Ethereum: number;
|
|
1106
|
+
Polkadot: number;
|
|
1107
|
+
Arbitrum?: number | undefined;
|
|
1108
|
+
} | undefined;
|
|
1081
1109
|
}>, Rename<{
|
|
1082
1110
|
minimum_deposit_amounts: {
|
|
1083
1111
|
Bitcoin: {
|
|
@@ -1163,6 +1191,12 @@ declare const cfIngressEgressEnvironment: z.ZodEffects<z.ZodObject<{
|
|
|
1163
1191
|
Polkadot: bigint;
|
|
1164
1192
|
Arbitrum: bigint;
|
|
1165
1193
|
};
|
|
1194
|
+
max_swap_retry_duration_blocks: {
|
|
1195
|
+
Bitcoin: number;
|
|
1196
|
+
Ethereum: number;
|
|
1197
|
+
Polkadot: number;
|
|
1198
|
+
Arbitrum: number;
|
|
1199
|
+
};
|
|
1166
1200
|
}, {
|
|
1167
1201
|
readonly egress_dust_limits: "minimum_egress_amounts";
|
|
1168
1202
|
}>, {
|
|
@@ -1250,6 +1284,12 @@ declare const cfIngressEgressEnvironment: z.ZodEffects<z.ZodObject<{
|
|
|
1250
1284
|
Polkadot: string | number;
|
|
1251
1285
|
Arbitrum?: string | number | undefined;
|
|
1252
1286
|
};
|
|
1287
|
+
max_swap_retry_duration_blocks?: {
|
|
1288
|
+
Bitcoin: number;
|
|
1289
|
+
Ethereum: number;
|
|
1290
|
+
Polkadot: number;
|
|
1291
|
+
Arbitrum?: number | undefined;
|
|
1292
|
+
} | undefined;
|
|
1253
1293
|
}>;
|
|
1254
1294
|
declare const cfSwappingEnvironment: z.ZodObject<{
|
|
1255
1295
|
maximum_swap_amounts: z.ZodObject<{
|
|
@@ -3486,6 +3526,22 @@ declare const cfEnvironment: z.ZodObject<{
|
|
|
3486
3526
|
Polkadot: string | number;
|
|
3487
3527
|
Arbitrum?: string | number | undefined;
|
|
3488
3528
|
}>;
|
|
3529
|
+
max_swap_retry_duration_blocks: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
3530
|
+
Bitcoin: z.ZodNumber;
|
|
3531
|
+
Ethereum: z.ZodNumber;
|
|
3532
|
+
Polkadot: z.ZodNumber;
|
|
3533
|
+
Arbitrum: z.ZodDefault<z.ZodNumber>;
|
|
3534
|
+
}, "strip", z.ZodTypeAny, {
|
|
3535
|
+
Bitcoin: number;
|
|
3536
|
+
Ethereum: number;
|
|
3537
|
+
Polkadot: number;
|
|
3538
|
+
Arbitrum: number;
|
|
3539
|
+
}, {
|
|
3540
|
+
Bitcoin: number;
|
|
3541
|
+
Ethereum: number;
|
|
3542
|
+
Polkadot: number;
|
|
3543
|
+
Arbitrum?: number | undefined;
|
|
3544
|
+
}>>>;
|
|
3489
3545
|
}, "strip", z.ZodTypeAny, {
|
|
3490
3546
|
minimum_deposit_amounts: {
|
|
3491
3547
|
Bitcoin: {
|
|
@@ -3571,6 +3627,12 @@ declare const cfEnvironment: z.ZodObject<{
|
|
|
3571
3627
|
Polkadot: bigint;
|
|
3572
3628
|
Arbitrum: bigint;
|
|
3573
3629
|
};
|
|
3630
|
+
max_swap_retry_duration_blocks: {
|
|
3631
|
+
Bitcoin: number;
|
|
3632
|
+
Ethereum: number;
|
|
3633
|
+
Polkadot: number;
|
|
3634
|
+
Arbitrum: number;
|
|
3635
|
+
};
|
|
3574
3636
|
}, {
|
|
3575
3637
|
minimum_deposit_amounts: {
|
|
3576
3638
|
Bitcoin: {
|
|
@@ -3656,6 +3718,12 @@ declare const cfEnvironment: z.ZodObject<{
|
|
|
3656
3718
|
Polkadot: string | number;
|
|
3657
3719
|
Arbitrum?: string | number | undefined;
|
|
3658
3720
|
};
|
|
3721
|
+
max_swap_retry_duration_blocks?: {
|
|
3722
|
+
Bitcoin: number;
|
|
3723
|
+
Ethereum: number;
|
|
3724
|
+
Polkadot: number;
|
|
3725
|
+
Arbitrum?: number | undefined;
|
|
3726
|
+
} | undefined;
|
|
3659
3727
|
}>, Rename<{
|
|
3660
3728
|
minimum_deposit_amounts: {
|
|
3661
3729
|
Bitcoin: {
|
|
@@ -3741,6 +3809,12 @@ declare const cfEnvironment: z.ZodObject<{
|
|
|
3741
3809
|
Polkadot: bigint;
|
|
3742
3810
|
Arbitrum: bigint;
|
|
3743
3811
|
};
|
|
3812
|
+
max_swap_retry_duration_blocks: {
|
|
3813
|
+
Bitcoin: number;
|
|
3814
|
+
Ethereum: number;
|
|
3815
|
+
Polkadot: number;
|
|
3816
|
+
Arbitrum: number;
|
|
3817
|
+
};
|
|
3744
3818
|
}, {
|
|
3745
3819
|
readonly egress_dust_limits: "minimum_egress_amounts";
|
|
3746
3820
|
}>, {
|
|
@@ -3828,6 +3902,12 @@ declare const cfEnvironment: z.ZodObject<{
|
|
|
3828
3902
|
Polkadot: string | number;
|
|
3829
3903
|
Arbitrum?: string | number | undefined;
|
|
3830
3904
|
};
|
|
3905
|
+
max_swap_retry_duration_blocks?: {
|
|
3906
|
+
Bitcoin: number;
|
|
3907
|
+
Ethereum: number;
|
|
3908
|
+
Polkadot: number;
|
|
3909
|
+
Arbitrum?: number | undefined;
|
|
3910
|
+
} | undefined;
|
|
3831
3911
|
}>;
|
|
3832
3912
|
swapping: z.ZodObject<{
|
|
3833
3913
|
maximum_swap_amounts: z.ZodObject<{
|
|
@@ -5812,6 +5892,12 @@ declare const cfEnvironment: z.ZodObject<{
|
|
|
5812
5892
|
Polkadot: bigint;
|
|
5813
5893
|
Arbitrum: bigint;
|
|
5814
5894
|
};
|
|
5895
|
+
max_swap_retry_duration_blocks: {
|
|
5896
|
+
Bitcoin: number;
|
|
5897
|
+
Ethereum: number;
|
|
5898
|
+
Polkadot: number;
|
|
5899
|
+
Arbitrum: number;
|
|
5900
|
+
};
|
|
5815
5901
|
}, "egress_dust_limits"> & {
|
|
5816
5902
|
readonly minimum_egress_amounts: {
|
|
5817
5903
|
Bitcoin: {
|
|
@@ -6123,6 +6209,12 @@ declare const cfEnvironment: z.ZodObject<{
|
|
|
6123
6209
|
Polkadot: string | number;
|
|
6124
6210
|
Arbitrum?: string | number | undefined;
|
|
6125
6211
|
};
|
|
6212
|
+
max_swap_retry_duration_blocks?: {
|
|
6213
|
+
Bitcoin: number;
|
|
6214
|
+
Ethereum: number;
|
|
6215
|
+
Polkadot: number;
|
|
6216
|
+
Arbitrum?: number | undefined;
|
|
6217
|
+
} | undefined;
|
|
6126
6218
|
};
|
|
6127
6219
|
swapping: {
|
|
6128
6220
|
maximum_swap_amounts: {
|
package/dist/parsers.mjs
CHANGED
|
@@ -82,7 +82,9 @@ var cfIngressEgressEnvironment = z.object({
|
|
|
82
82
|
egress_fees: chainAssetMapFactory(numberOrHex.nullable(), null),
|
|
83
83
|
witness_safety_margins: chainMapFactory(z.number().nullable(), null),
|
|
84
84
|
egress_dust_limits: chainAssetMapFactory(numberOrHex, 0),
|
|
85
|
-
channel_opening_fees: chainMapFactory(numberOrHex, 0)
|
|
85
|
+
channel_opening_fees: chainMapFactory(numberOrHex, 0),
|
|
86
|
+
// TODO(1.6): no longer optional
|
|
87
|
+
max_swap_retry_duration_blocks: chainMapFactory(z.number(), 0).optional().default({ Arbitrum: 0, Bitcoin: 0, Ethereum: 0, Polkadot: 0 })
|
|
86
88
|
}).transform(rename({ egress_dust_limits: "minimum_egress_amounts" }));
|
|
87
89
|
var cfSwappingEnvironment = z.object({
|
|
88
90
|
maximum_swap_amounts: chainAssetMapFactory(numberOrHex.nullable(), null),
|