@hyperlane-xyz/rebalancer 0.1.2 → 1.0.0
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/README.md +134 -14
- package/dist/config/RebalancerConfig.d.ts +2 -2
- package/dist/config/RebalancerConfig.d.ts.map +1 -1
- package/dist/config/RebalancerConfig.js +4 -3
- package/dist/config/RebalancerConfig.js.map +1 -1
- package/dist/config/RebalancerConfig.test.js +434 -163
- package/dist/config/RebalancerConfig.test.js.map +1 -1
- package/dist/config/types.d.ts +1650 -290
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js +124 -46
- package/dist/config/types.js.map +1 -1
- package/dist/core/Rebalancer.d.ts +14 -7
- package/dist/core/Rebalancer.d.ts.map +1 -1
- package/dist/core/Rebalancer.js +168 -99
- package/dist/core/Rebalancer.js.map +1 -1
- package/dist/core/Rebalancer.test.d.ts +2 -0
- package/dist/core/Rebalancer.test.d.ts.map +1 -0
- package/dist/core/Rebalancer.test.js +391 -0
- package/dist/core/Rebalancer.test.js.map +1 -0
- package/dist/core/RebalancerService.d.ts +16 -2
- package/dist/core/RebalancerService.d.ts.map +1 -1
- package/dist/core/RebalancerService.js +164 -21
- package/dist/core/RebalancerService.js.map +1 -1
- package/dist/core/RebalancerService.test.d.ts +2 -0
- package/dist/core/RebalancerService.test.d.ts.map +1 -0
- package/dist/core/RebalancerService.test.js +809 -0
- package/dist/core/RebalancerService.test.js.map +1 -0
- package/dist/factories/RebalancerContextFactory.d.ts +11 -0
- package/dist/factories/RebalancerContextFactory.d.ts.map +1 -1
- package/dist/factories/RebalancerContextFactory.js +60 -13
- package/dist/factories/RebalancerContextFactory.js.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/interfaces/IMonitor.d.ts +6 -8
- package/dist/interfaces/IMonitor.d.ts.map +1 -1
- package/dist/interfaces/IMonitor.js.map +1 -1
- package/dist/interfaces/IRebalancer.d.ts +20 -4
- package/dist/interfaces/IRebalancer.d.ts.map +1 -1
- package/dist/interfaces/IStrategy.d.ts +18 -2
- package/dist/interfaces/IStrategy.d.ts.map +1 -1
- package/dist/metrics/Metrics.d.ts +4 -2
- package/dist/metrics/Metrics.d.ts.map +1 -1
- package/dist/metrics/Metrics.js +21 -1
- package/dist/metrics/Metrics.js.map +1 -1
- package/dist/metrics/scripts/metrics.d.ts +2 -0
- package/dist/metrics/scripts/metrics.d.ts.map +1 -1
- package/dist/metrics/scripts/metrics.js +12 -0
- package/dist/metrics/scripts/metrics.js.map +1 -1
- package/dist/monitor/Monitor.d.ts +8 -3
- package/dist/monitor/Monitor.d.ts.map +1 -1
- package/dist/monitor/Monitor.js +75 -15
- package/dist/monitor/Monitor.js.map +1 -1
- package/dist/strategy/BaseStrategy.d.ts +51 -5
- package/dist/strategy/BaseStrategy.d.ts.map +1 -1
- package/dist/strategy/BaseStrategy.js +199 -19
- package/dist/strategy/BaseStrategy.js.map +1 -1
- package/dist/strategy/CollateralDeficitStrategy.d.ts +65 -0
- package/dist/strategy/CollateralDeficitStrategy.d.ts.map +1 -0
- package/dist/strategy/CollateralDeficitStrategy.js +245 -0
- package/dist/strategy/CollateralDeficitStrategy.js.map +1 -0
- package/dist/strategy/CollateralDeficitStrategy.test.d.ts +2 -0
- package/dist/strategy/CollateralDeficitStrategy.test.d.ts.map +1 -0
- package/dist/strategy/CollateralDeficitStrategy.test.js +364 -0
- package/dist/strategy/CollateralDeficitStrategy.test.js.map +1 -0
- package/dist/strategy/CompositeStrategy.d.ts +18 -0
- package/dist/strategy/CompositeStrategy.d.ts.map +1 -0
- package/dist/strategy/CompositeStrategy.js +63 -0
- package/dist/strategy/CompositeStrategy.js.map +1 -0
- package/dist/strategy/CompositeStrategy.test.d.ts +2 -0
- package/dist/strategy/CompositeStrategy.test.d.ts.map +1 -0
- package/dist/strategy/CompositeStrategy.test.js +265 -0
- package/dist/strategy/CompositeStrategy.test.js.map +1 -0
- package/dist/strategy/MinAmountStrategy.d.ts +12 -5
- package/dist/strategy/MinAmountStrategy.d.ts.map +1 -1
- package/dist/strategy/MinAmountStrategy.js +23 -14
- package/dist/strategy/MinAmountStrategy.js.map +1 -1
- package/dist/strategy/MinAmountStrategy.test.js +88 -20
- package/dist/strategy/MinAmountStrategy.test.js.map +1 -1
- package/dist/strategy/StrategyFactory.d.ts +15 -6
- package/dist/strategy/StrategyFactory.d.ts.map +1 -1
- package/dist/strategy/StrategyFactory.js +48 -10
- package/dist/strategy/StrategyFactory.js.map +1 -1
- package/dist/strategy/StrategyFactory.test.js +2 -2
- package/dist/strategy/StrategyFactory.test.js.map +1 -1
- package/dist/strategy/WeightedStrategy.d.ts +13 -4
- package/dist/strategy/WeightedStrategy.d.ts.map +1 -1
- package/dist/strategy/WeightedStrategy.js +18 -6
- package/dist/strategy/WeightedStrategy.js.map +1 -1
- package/dist/strategy/WeightedStrategy.test.js +108 -18
- package/dist/strategy/WeightedStrategy.test.js.map +1 -1
- package/dist/strategy/index.d.ts +2 -0
- package/dist/strategy/index.d.ts.map +1 -1
- package/dist/strategy/index.js +2 -0
- package/dist/strategy/index.js.map +1 -1
- package/dist/test/helpers.d.ts +93 -3
- package/dist/test/helpers.d.ts.map +1 -1
- package/dist/test/helpers.js +267 -10
- package/dist/test/helpers.js.map +1 -1
- package/dist/tracking/ActionTracker.d.ts +49 -0
- package/dist/tracking/ActionTracker.d.ts.map +1 -0
- package/dist/tracking/ActionTracker.js +422 -0
- package/dist/tracking/ActionTracker.js.map +1 -0
- package/dist/tracking/ActionTracker.test.d.ts +2 -0
- package/dist/tracking/ActionTracker.test.d.ts.map +1 -0
- package/dist/tracking/ActionTracker.test.js +637 -0
- package/dist/tracking/ActionTracker.test.js.map +1 -0
- package/dist/tracking/IActionTracker.d.ts +101 -0
- package/dist/tracking/IActionTracker.d.ts.map +1 -0
- package/dist/tracking/IActionTracker.js +2 -0
- package/dist/tracking/IActionTracker.js.map +1 -0
- package/dist/tracking/InflightContextAdapter.d.ts +18 -0
- package/dist/tracking/InflightContextAdapter.d.ts.map +1 -0
- package/dist/tracking/InflightContextAdapter.js +35 -0
- package/dist/tracking/InflightContextAdapter.js.map +1 -0
- package/dist/tracking/InflightContextAdapter.test.d.ts +2 -0
- package/dist/tracking/InflightContextAdapter.test.d.ts.map +1 -0
- package/dist/tracking/InflightContextAdapter.test.js +172 -0
- package/dist/tracking/InflightContextAdapter.test.js.map +1 -0
- package/dist/tracking/index.d.ts +7 -0
- package/dist/tracking/index.d.ts.map +1 -0
- package/dist/tracking/index.js +6 -0
- package/dist/tracking/index.js.map +1 -0
- package/dist/tracking/store/IStore.d.ts +41 -0
- package/dist/tracking/store/IStore.d.ts.map +1 -0
- package/dist/tracking/store/IStore.js +2 -0
- package/dist/tracking/store/IStore.js.map +1 -0
- package/dist/tracking/store/InMemoryStore.d.ts +21 -0
- package/dist/tracking/store/InMemoryStore.d.ts.map +1 -0
- package/dist/tracking/store/InMemoryStore.js +40 -0
- package/dist/tracking/store/InMemoryStore.js.map +1 -0
- package/dist/tracking/store/InMemoryStore.test.d.ts +2 -0
- package/dist/tracking/store/InMemoryStore.test.d.ts.map +1 -0
- package/dist/tracking/store/InMemoryStore.test.js +290 -0
- package/dist/tracking/store/InMemoryStore.test.js.map +1 -0
- package/dist/tracking/store/index.d.ts +3 -0
- package/dist/tracking/store/index.d.ts.map +1 -0
- package/dist/tracking/store/index.js +2 -0
- package/dist/tracking/store/index.js.map +1 -0
- package/dist/tracking/types.d.ts +43 -0
- package/dist/tracking/types.d.ts.map +1 -0
- package/dist/tracking/types.js +2 -0
- package/dist/tracking/types.js.map +1 -0
- package/dist/utils/ExplorerClient.d.ts +39 -1
- package/dist/utils/ExplorerClient.d.ts.map +1 -1
- package/dist/utils/ExplorerClient.js +205 -2
- package/dist/utils/ExplorerClient.js.map +1 -1
- package/dist/utils/balanceUtils.js +2 -2
- package/dist/utils/balanceUtils.js.map +1 -1
- package/dist/utils/balanceUtils.test.js +1 -0
- package/dist/utils/balanceUtils.test.js.map +1 -1
- package/dist/utils/bridgeUtils.d.ts +1 -3
- package/dist/utils/bridgeUtils.d.ts.map +1 -1
- package/dist/utils/bridgeUtils.js +1 -5
- package/dist/utils/bridgeUtils.js.map +1 -1
- package/dist/utils/bridgeUtils.test.js +3 -14
- package/dist/utils/bridgeUtils.test.js.map +1 -1
- package/package.json +11 -9
- package/src/config/RebalancerConfig.test.ts +459 -163
- package/src/config/RebalancerConfig.ts +5 -3
- package/src/config/types.ts +159 -52
- package/src/core/Rebalancer.test.ts +632 -0
- package/src/core/Rebalancer.ts +247 -157
- package/src/core/RebalancerService.test.ts +1144 -0
- package/src/core/RebalancerService.ts +245 -23
- package/src/factories/RebalancerContextFactory.ts +115 -14
- package/src/index.ts +16 -4
- package/src/interfaces/IMonitor.ts +15 -8
- package/src/interfaces/IRebalancer.ts +22 -4
- package/src/interfaces/IStrategy.ts +23 -2
- package/src/metrics/Metrics.ts +26 -5
- package/src/metrics/scripts/metrics.ts +14 -0
- package/src/monitor/Monitor.ts +109 -22
- package/src/strategy/BaseStrategy.ts +316 -26
- package/src/strategy/CollateralDeficitStrategy.test.ts +551 -0
- package/src/strategy/CollateralDeficitStrategy.ts +390 -0
- package/src/strategy/CompositeStrategy.test.ts +405 -0
- package/src/strategy/CompositeStrategy.ts +102 -0
- package/src/strategy/MinAmountStrategy.test.ts +189 -88
- package/src/strategy/MinAmountStrategy.ts +44 -13
- package/src/strategy/StrategyFactory.test.ts +2 -2
- package/src/strategy/StrategyFactory.ts +91 -8
- package/src/strategy/WeightedStrategy.test.ts +187 -72
- package/src/strategy/WeightedStrategy.ts +41 -7
- package/src/strategy/index.ts +2 -0
- package/src/test/helpers.ts +418 -14
- package/src/tracking/ActionTracker.test.ts +783 -0
- package/src/tracking/ActionTracker.ts +647 -0
- package/src/tracking/IActionTracker.ts +140 -0
- package/src/tracking/InflightContextAdapter.test.ts +203 -0
- package/src/tracking/InflightContextAdapter.ts +42 -0
- package/src/tracking/index.ts +36 -0
- package/src/tracking/store/IStore.ts +48 -0
- package/src/tracking/store/InMemoryStore.test.ts +338 -0
- package/src/tracking/store/InMemoryStore.ts +58 -0
- package/src/tracking/store/index.ts +2 -0
- package/src/tracking/types.ts +74 -0
- package/src/utils/ExplorerClient.ts +266 -3
- package/src/utils/balanceUtils.test.ts +1 -0
- package/src/utils/balanceUtils.ts +2 -2
- package/src/utils/bridgeUtils.test.ts +3 -15
- package/src/utils/bridgeUtils.ts +0 -10
- package/dist/core/WithInflightGuard.d.ts +0 -20
- package/dist/core/WithInflightGuard.d.ts.map +0 -1
- package/dist/core/WithInflightGuard.js +0 -47
- package/dist/core/WithInflightGuard.js.map +0 -1
- package/dist/core/WithInflightGuard.test.d.ts +0 -2
- package/dist/core/WithInflightGuard.test.d.ts.map +0 -1
- package/dist/core/WithInflightGuard.test.js +0 -64
- package/dist/core/WithInflightGuard.test.js.map +0 -1
- package/dist/core/WithSemaphore.d.ts +0 -22
- package/dist/core/WithSemaphore.d.ts.map +0 -1
- package/dist/core/WithSemaphore.js +0 -67
- package/dist/core/WithSemaphore.js.map +0 -1
- package/dist/core/WithSemaphore.test.d.ts +0 -2
- package/dist/core/WithSemaphore.test.d.ts.map +0 -1
- package/dist/core/WithSemaphore.test.js +0 -83
- package/dist/core/WithSemaphore.test.js.map +0 -1
- package/src/core/WithInflightGuard.test.ts +0 -131
- package/src/core/WithInflightGuard.ts +0 -67
- package/src/core/WithSemaphore.test.ts +0 -111
- package/src/core/WithSemaphore.ts +0 -92
package/dist/config/types.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare enum RebalancerStrategyOptions {
|
|
3
3
|
Weighted = "weighted",
|
|
4
|
-
MinAmount = "minAmount"
|
|
4
|
+
MinAmount = "minAmount",
|
|
5
|
+
CollateralDeficit = "collateralDeficit"
|
|
5
6
|
}
|
|
6
7
|
export declare const RebalancerWeightedChainConfigSchema: z.ZodObject<{
|
|
7
8
|
weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
|
|
@@ -33,46 +34,79 @@ export declare const RebalancerMinAmountConfigSchema: z.ZodObject<{
|
|
|
33
34
|
export declare const RebalancerBaseChainConfigSchema: z.ZodObject<{
|
|
34
35
|
bridge: z.ZodString;
|
|
35
36
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
36
|
-
bridgeLockTime: z.ZodEffects<z.ZodNumber, number, number
|
|
37
|
-
bridgeIsWarp: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
38
38
|
} & {
|
|
39
39
|
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
40
40
|
bridge: z.ZodOptional<z.ZodString>;
|
|
41
41
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
42
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
43
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
42
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
44
43
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
45
44
|
bridge: z.ZodOptional<z.ZodString>;
|
|
46
45
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
47
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
48
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
46
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
49
47
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
50
48
|
bridge: z.ZodOptional<z.ZodString>;
|
|
51
49
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
52
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
53
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
50
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
54
51
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
55
52
|
}, "strip", z.ZodTypeAny, {
|
|
56
53
|
bridge: string;
|
|
57
|
-
bridgeLockTime: number;
|
|
58
54
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
59
|
-
|
|
55
|
+
bridgeLockTime?: number | undefined;
|
|
60
56
|
override?: Record<string, z.objectOutputType<{
|
|
61
57
|
bridge: z.ZodOptional<z.ZodString>;
|
|
62
58
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
63
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
64
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
59
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
65
60
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
66
61
|
}, {
|
|
67
62
|
bridge: string;
|
|
68
|
-
bridgeLockTime: number;
|
|
69
63
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
70
|
-
|
|
64
|
+
bridgeLockTime?: number | undefined;
|
|
71
65
|
override?: Record<string, z.objectInputType<{
|
|
72
66
|
bridge: z.ZodOptional<z.ZodString>;
|
|
73
67
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
74
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
75
|
-
|
|
68
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
69
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
declare const CollateralDeficitChainConfigSchema: z.ZodObject<{
|
|
72
|
+
bridge: z.ZodString;
|
|
73
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
74
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
75
|
+
} & {
|
|
76
|
+
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
77
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
78
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
79
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
80
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
81
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
82
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
83
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
84
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
85
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
86
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
87
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
88
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
89
|
+
} & {
|
|
90
|
+
buffer: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
bridge: string;
|
|
93
|
+
buffer: string | number;
|
|
94
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
95
|
+
bridgeLockTime?: number | undefined;
|
|
96
|
+
override?: Record<string, z.objectOutputType<{
|
|
97
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
98
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
99
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
100
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
101
|
+
}, {
|
|
102
|
+
bridge: string;
|
|
103
|
+
buffer: string | number;
|
|
104
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
105
|
+
bridgeLockTime?: number | undefined;
|
|
106
|
+
override?: Record<string, z.objectInputType<{
|
|
107
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
108
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
109
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
76
110
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
77
111
|
}>;
|
|
78
112
|
declare const WeightedStrategySchema: z.ZodObject<{
|
|
@@ -80,24 +114,20 @@ declare const WeightedStrategySchema: z.ZodObject<{
|
|
|
80
114
|
chains: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
81
115
|
bridge: z.ZodString;
|
|
82
116
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
83
|
-
bridgeLockTime: z.ZodEffects<z.ZodNumber, number, number
|
|
84
|
-
bridgeIsWarp: z.ZodOptional<z.ZodBoolean>;
|
|
117
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
85
118
|
} & {
|
|
86
119
|
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
87
120
|
bridge: z.ZodOptional<z.ZodString>;
|
|
88
121
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
89
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
90
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
122
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
91
123
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
92
124
|
bridge: z.ZodOptional<z.ZodString>;
|
|
93
125
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
94
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
95
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
126
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
96
127
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
97
128
|
bridge: z.ZodOptional<z.ZodString>;
|
|
98
129
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
99
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
100
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
130
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
101
131
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
102
132
|
} & {
|
|
103
133
|
weighted: z.ZodObject<{
|
|
@@ -116,14 +146,12 @@ declare const WeightedStrategySchema: z.ZodObject<{
|
|
|
116
146
|
tolerance: bigint;
|
|
117
147
|
};
|
|
118
148
|
bridge: string;
|
|
119
|
-
bridgeLockTime: number;
|
|
120
149
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
121
|
-
|
|
150
|
+
bridgeLockTime?: number | undefined;
|
|
122
151
|
override?: Record<string, z.objectOutputType<{
|
|
123
152
|
bridge: z.ZodOptional<z.ZodString>;
|
|
124
153
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
125
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
126
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
154
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
127
155
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
128
156
|
}, {
|
|
129
157
|
weighted: {
|
|
@@ -131,14 +159,12 @@ declare const WeightedStrategySchema: z.ZodObject<{
|
|
|
131
159
|
tolerance: string | number;
|
|
132
160
|
};
|
|
133
161
|
bridge: string;
|
|
134
|
-
bridgeLockTime: number;
|
|
135
162
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
136
|
-
|
|
163
|
+
bridgeLockTime?: number | undefined;
|
|
137
164
|
override?: Record<string, z.objectInputType<{
|
|
138
165
|
bridge: z.ZodOptional<z.ZodString>;
|
|
139
166
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
140
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
141
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
167
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
142
168
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
143
169
|
}>>;
|
|
144
170
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -149,14 +175,12 @@ declare const WeightedStrategySchema: z.ZodObject<{
|
|
|
149
175
|
tolerance: bigint;
|
|
150
176
|
};
|
|
151
177
|
bridge: string;
|
|
152
|
-
bridgeLockTime: number;
|
|
153
178
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
154
|
-
|
|
179
|
+
bridgeLockTime?: number | undefined;
|
|
155
180
|
override?: Record<string, z.objectOutputType<{
|
|
156
181
|
bridge: z.ZodOptional<z.ZodString>;
|
|
157
182
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
158
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
159
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
183
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
160
184
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
161
185
|
}>;
|
|
162
186
|
}, {
|
|
@@ -167,14 +191,12 @@ declare const WeightedStrategySchema: z.ZodObject<{
|
|
|
167
191
|
tolerance: string | number;
|
|
168
192
|
};
|
|
169
193
|
bridge: string;
|
|
170
|
-
bridgeLockTime: number;
|
|
171
194
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
172
|
-
|
|
195
|
+
bridgeLockTime?: number | undefined;
|
|
173
196
|
override?: Record<string, z.objectInputType<{
|
|
174
197
|
bridge: z.ZodOptional<z.ZodString>;
|
|
175
198
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
176
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
177
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
199
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
178
200
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
179
201
|
}>;
|
|
180
202
|
}>;
|
|
@@ -183,24 +205,20 @@ declare const MinAmountStrategySchema: z.ZodObject<{
|
|
|
183
205
|
chains: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
184
206
|
bridge: z.ZodString;
|
|
185
207
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
186
|
-
bridgeLockTime: z.ZodEffects<z.ZodNumber, number, number
|
|
187
|
-
bridgeIsWarp: z.ZodOptional<z.ZodBoolean>;
|
|
208
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
188
209
|
} & {
|
|
189
210
|
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
190
211
|
bridge: z.ZodOptional<z.ZodString>;
|
|
191
212
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
192
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
193
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
213
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
194
214
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
195
215
|
bridge: z.ZodOptional<z.ZodString>;
|
|
196
216
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
197
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
198
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
217
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
199
218
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
200
219
|
bridge: z.ZodOptional<z.ZodString>;
|
|
201
220
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
202
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
203
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
221
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
204
222
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
205
223
|
} & {
|
|
206
224
|
minAmount: z.ZodObject<{
|
|
@@ -223,14 +241,12 @@ declare const MinAmountStrategySchema: z.ZodObject<{
|
|
|
223
241
|
target: string | number;
|
|
224
242
|
};
|
|
225
243
|
bridge: string;
|
|
226
|
-
bridgeLockTime: number;
|
|
227
244
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
228
|
-
|
|
245
|
+
bridgeLockTime?: number | undefined;
|
|
229
246
|
override?: Record<string, z.objectOutputType<{
|
|
230
247
|
bridge: z.ZodOptional<z.ZodString>;
|
|
231
248
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
232
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
233
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
249
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
234
250
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
235
251
|
}, {
|
|
236
252
|
minAmount: {
|
|
@@ -239,14 +255,12 @@ declare const MinAmountStrategySchema: z.ZodObject<{
|
|
|
239
255
|
target: string | number;
|
|
240
256
|
};
|
|
241
257
|
bridge: string;
|
|
242
|
-
bridgeLockTime: number;
|
|
243
258
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
244
|
-
|
|
259
|
+
bridgeLockTime?: number | undefined;
|
|
245
260
|
override?: Record<string, z.objectInputType<{
|
|
246
261
|
bridge: z.ZodOptional<z.ZodString>;
|
|
247
262
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
248
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
249
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
263
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
250
264
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
251
265
|
}>>;
|
|
252
266
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -258,14 +272,12 @@ declare const MinAmountStrategySchema: z.ZodObject<{
|
|
|
258
272
|
target: string | number;
|
|
259
273
|
};
|
|
260
274
|
bridge: string;
|
|
261
|
-
bridgeLockTime: number;
|
|
262
275
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
263
|
-
|
|
276
|
+
bridgeLockTime?: number | undefined;
|
|
264
277
|
override?: Record<string, z.objectOutputType<{
|
|
265
278
|
bridge: z.ZodOptional<z.ZodString>;
|
|
266
279
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
267
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
268
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
280
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
269
281
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
270
282
|
}>;
|
|
271
283
|
}, {
|
|
@@ -277,44 +289,110 @@ declare const MinAmountStrategySchema: z.ZodObject<{
|
|
|
277
289
|
target: string | number;
|
|
278
290
|
};
|
|
279
291
|
bridge: string;
|
|
280
|
-
bridgeLockTime: number;
|
|
281
292
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
282
|
-
|
|
293
|
+
bridgeLockTime?: number | undefined;
|
|
283
294
|
override?: Record<string, z.objectInputType<{
|
|
284
295
|
bridge: z.ZodOptional<z.ZodString>;
|
|
285
296
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
286
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
287
|
-
|
|
297
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
298
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
299
|
+
}>;
|
|
300
|
+
}>;
|
|
301
|
+
declare const CollateralDeficitStrategySchema: z.ZodObject<{
|
|
302
|
+
rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.CollateralDeficit>;
|
|
303
|
+
chains: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
304
|
+
bridge: z.ZodString;
|
|
305
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
306
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
307
|
+
} & {
|
|
308
|
+
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
309
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
310
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
311
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
312
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
313
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
314
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
315
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
316
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
317
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
318
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
319
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
320
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
321
|
+
} & {
|
|
322
|
+
buffer: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
323
|
+
}, "strip", z.ZodTypeAny, {
|
|
324
|
+
bridge: string;
|
|
325
|
+
buffer: string | number;
|
|
326
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
327
|
+
bridgeLockTime?: number | undefined;
|
|
328
|
+
override?: Record<string, z.objectOutputType<{
|
|
329
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
330
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
331
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
332
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
333
|
+
}, {
|
|
334
|
+
bridge: string;
|
|
335
|
+
buffer: string | number;
|
|
336
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
337
|
+
bridgeLockTime?: number | undefined;
|
|
338
|
+
override?: Record<string, z.objectInputType<{
|
|
339
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
340
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
341
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
342
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
343
|
+
}>>;
|
|
344
|
+
}, "strip", z.ZodTypeAny, {
|
|
345
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
346
|
+
chains: Record<string, {
|
|
347
|
+
bridge: string;
|
|
348
|
+
buffer: string | number;
|
|
349
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
350
|
+
bridgeLockTime?: number | undefined;
|
|
351
|
+
override?: Record<string, z.objectOutputType<{
|
|
352
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
353
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
354
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
355
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
356
|
+
}>;
|
|
357
|
+
}, {
|
|
358
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
359
|
+
chains: Record<string, {
|
|
360
|
+
bridge: string;
|
|
361
|
+
buffer: string | number;
|
|
362
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
363
|
+
bridgeLockTime?: number | undefined;
|
|
364
|
+
override?: Record<string, z.objectInputType<{
|
|
365
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
366
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
367
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
288
368
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
289
369
|
}>;
|
|
290
370
|
}>;
|
|
291
371
|
export type WeightedStrategy = z.infer<typeof WeightedStrategySchema>;
|
|
292
372
|
export type MinAmountStrategy = z.infer<typeof MinAmountStrategySchema>;
|
|
373
|
+
export type CollateralDeficitStrategy = z.infer<typeof CollateralDeficitStrategySchema>;
|
|
293
374
|
export type WeightedStrategyConfig = WeightedStrategy['chains'];
|
|
294
375
|
export type MinAmountStrategyConfig = MinAmountStrategy['chains'];
|
|
376
|
+
export type CollateralDeficitStrategyConfig = CollateralDeficitStrategy['chains'];
|
|
295
377
|
export declare const StrategyConfigSchema: z.ZodDiscriminatedUnion<"rebalanceStrategy", [z.ZodObject<{
|
|
296
378
|
rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.Weighted>;
|
|
297
379
|
chains: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
298
380
|
bridge: z.ZodString;
|
|
299
381
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
300
|
-
bridgeLockTime: z.ZodEffects<z.ZodNumber, number, number
|
|
301
|
-
bridgeIsWarp: z.ZodOptional<z.ZodBoolean>;
|
|
382
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
302
383
|
} & {
|
|
303
384
|
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
304
385
|
bridge: z.ZodOptional<z.ZodString>;
|
|
305
386
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
306
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
307
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
387
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
308
388
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
309
389
|
bridge: z.ZodOptional<z.ZodString>;
|
|
310
390
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
311
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
312
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
391
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
313
392
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
314
393
|
bridge: z.ZodOptional<z.ZodString>;
|
|
315
394
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
316
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
317
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
395
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
318
396
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
319
397
|
} & {
|
|
320
398
|
weighted: z.ZodObject<{
|
|
@@ -333,14 +411,12 @@ export declare const StrategyConfigSchema: z.ZodDiscriminatedUnion<"rebalanceStr
|
|
|
333
411
|
tolerance: bigint;
|
|
334
412
|
};
|
|
335
413
|
bridge: string;
|
|
336
|
-
bridgeLockTime: number;
|
|
337
414
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
338
|
-
|
|
415
|
+
bridgeLockTime?: number | undefined;
|
|
339
416
|
override?: Record<string, z.objectOutputType<{
|
|
340
417
|
bridge: z.ZodOptional<z.ZodString>;
|
|
341
418
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
342
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
343
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
419
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
344
420
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
345
421
|
}, {
|
|
346
422
|
weighted: {
|
|
@@ -348,14 +424,12 @@ export declare const StrategyConfigSchema: z.ZodDiscriminatedUnion<"rebalanceStr
|
|
|
348
424
|
tolerance: string | number;
|
|
349
425
|
};
|
|
350
426
|
bridge: string;
|
|
351
|
-
bridgeLockTime: number;
|
|
352
427
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
353
|
-
|
|
428
|
+
bridgeLockTime?: number | undefined;
|
|
354
429
|
override?: Record<string, z.objectInputType<{
|
|
355
430
|
bridge: z.ZodOptional<z.ZodString>;
|
|
356
431
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
357
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
358
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
432
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
359
433
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
360
434
|
}>>;
|
|
361
435
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -366,14 +440,12 @@ export declare const StrategyConfigSchema: z.ZodDiscriminatedUnion<"rebalanceStr
|
|
|
366
440
|
tolerance: bigint;
|
|
367
441
|
};
|
|
368
442
|
bridge: string;
|
|
369
|
-
bridgeLockTime: number;
|
|
370
443
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
371
|
-
|
|
444
|
+
bridgeLockTime?: number | undefined;
|
|
372
445
|
override?: Record<string, z.objectOutputType<{
|
|
373
446
|
bridge: z.ZodOptional<z.ZodString>;
|
|
374
447
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
375
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
376
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
448
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
377
449
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
378
450
|
}>;
|
|
379
451
|
}, {
|
|
@@ -384,14 +456,12 @@ export declare const StrategyConfigSchema: z.ZodDiscriminatedUnion<"rebalanceStr
|
|
|
384
456
|
tolerance: string | number;
|
|
385
457
|
};
|
|
386
458
|
bridge: string;
|
|
387
|
-
bridgeLockTime: number;
|
|
388
459
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
389
|
-
|
|
460
|
+
bridgeLockTime?: number | undefined;
|
|
390
461
|
override?: Record<string, z.objectInputType<{
|
|
391
462
|
bridge: z.ZodOptional<z.ZodString>;
|
|
392
463
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
393
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
394
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
464
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
395
465
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
396
466
|
}>;
|
|
397
467
|
}>, z.ZodObject<{
|
|
@@ -399,24 +469,20 @@ export declare const StrategyConfigSchema: z.ZodDiscriminatedUnion<"rebalanceStr
|
|
|
399
469
|
chains: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
400
470
|
bridge: z.ZodString;
|
|
401
471
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
402
|
-
bridgeLockTime: z.ZodEffects<z.ZodNumber, number, number
|
|
403
|
-
bridgeIsWarp: z.ZodOptional<z.ZodBoolean>;
|
|
472
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
404
473
|
} & {
|
|
405
474
|
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
406
475
|
bridge: z.ZodOptional<z.ZodString>;
|
|
407
476
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
408
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
409
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
477
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
410
478
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
411
479
|
bridge: z.ZodOptional<z.ZodString>;
|
|
412
480
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
413
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
414
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
481
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
415
482
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
416
483
|
bridge: z.ZodOptional<z.ZodString>;
|
|
417
484
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
418
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
419
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
485
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
420
486
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
421
487
|
} & {
|
|
422
488
|
minAmount: z.ZodObject<{
|
|
@@ -439,14 +505,12 @@ export declare const StrategyConfigSchema: z.ZodDiscriminatedUnion<"rebalanceStr
|
|
|
439
505
|
target: string | number;
|
|
440
506
|
};
|
|
441
507
|
bridge: string;
|
|
442
|
-
bridgeLockTime: number;
|
|
443
508
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
444
|
-
|
|
509
|
+
bridgeLockTime?: number | undefined;
|
|
445
510
|
override?: Record<string, z.objectOutputType<{
|
|
446
511
|
bridge: z.ZodOptional<z.ZodString>;
|
|
447
512
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
448
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
449
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
513
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
450
514
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
451
515
|
}, {
|
|
452
516
|
minAmount: {
|
|
@@ -455,14 +519,12 @@ export declare const StrategyConfigSchema: z.ZodDiscriminatedUnion<"rebalanceStr
|
|
|
455
519
|
target: string | number;
|
|
456
520
|
};
|
|
457
521
|
bridge: string;
|
|
458
|
-
bridgeLockTime: number;
|
|
459
522
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
460
|
-
|
|
523
|
+
bridgeLockTime?: number | undefined;
|
|
461
524
|
override?: Record<string, z.objectInputType<{
|
|
462
525
|
bridge: z.ZodOptional<z.ZodString>;
|
|
463
526
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
464
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
465
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
527
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
466
528
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
467
529
|
}>>;
|
|
468
530
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -474,14 +536,12 @@ export declare const StrategyConfigSchema: z.ZodDiscriminatedUnion<"rebalanceStr
|
|
|
474
536
|
target: string | number;
|
|
475
537
|
};
|
|
476
538
|
bridge: string;
|
|
477
|
-
bridgeLockTime: number;
|
|
478
539
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
479
|
-
|
|
540
|
+
bridgeLockTime?: number | undefined;
|
|
480
541
|
override?: Record<string, z.objectOutputType<{
|
|
481
542
|
bridge: z.ZodOptional<z.ZodString>;
|
|
482
543
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
483
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
484
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
544
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
485
545
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
486
546
|
}>;
|
|
487
547
|
}, {
|
|
@@ -493,193 +553,1312 @@ export declare const StrategyConfigSchema: z.ZodDiscriminatedUnion<"rebalanceStr
|
|
|
493
553
|
target: string | number;
|
|
494
554
|
};
|
|
495
555
|
bridge: string;
|
|
496
|
-
bridgeLockTime: number;
|
|
497
556
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
498
|
-
|
|
557
|
+
bridgeLockTime?: number | undefined;
|
|
499
558
|
override?: Record<string, z.objectInputType<{
|
|
500
559
|
bridge: z.ZodOptional<z.ZodString>;
|
|
501
560
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
502
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
503
|
-
|
|
561
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
562
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
563
|
+
}>;
|
|
564
|
+
}>, z.ZodObject<{
|
|
565
|
+
rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.CollateralDeficit>;
|
|
566
|
+
chains: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
567
|
+
bridge: z.ZodString;
|
|
568
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
569
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
570
|
+
} & {
|
|
571
|
+
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
572
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
573
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
574
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
575
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
576
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
577
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
578
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
579
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
580
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
581
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
582
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
583
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
584
|
+
} & {
|
|
585
|
+
buffer: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
586
|
+
}, "strip", z.ZodTypeAny, {
|
|
587
|
+
bridge: string;
|
|
588
|
+
buffer: string | number;
|
|
589
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
590
|
+
bridgeLockTime?: number | undefined;
|
|
591
|
+
override?: Record<string, z.objectOutputType<{
|
|
592
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
593
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
594
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
595
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
596
|
+
}, {
|
|
597
|
+
bridge: string;
|
|
598
|
+
buffer: string | number;
|
|
599
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
600
|
+
bridgeLockTime?: number | undefined;
|
|
601
|
+
override?: Record<string, z.objectInputType<{
|
|
602
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
603
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
604
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
605
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
606
|
+
}>>;
|
|
607
|
+
}, "strip", z.ZodTypeAny, {
|
|
608
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
609
|
+
chains: Record<string, {
|
|
610
|
+
bridge: string;
|
|
611
|
+
buffer: string | number;
|
|
612
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
613
|
+
bridgeLockTime?: number | undefined;
|
|
614
|
+
override?: Record<string, z.objectOutputType<{
|
|
615
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
616
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
617
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
618
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
619
|
+
}>;
|
|
620
|
+
}, {
|
|
621
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
622
|
+
chains: Record<string, {
|
|
623
|
+
bridge: string;
|
|
624
|
+
buffer: string | number;
|
|
625
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
626
|
+
bridgeLockTime?: number | undefined;
|
|
627
|
+
override?: Record<string, z.objectInputType<{
|
|
628
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
629
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
630
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
504
631
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
505
632
|
}>;
|
|
506
633
|
}>]>;
|
|
507
|
-
export declare const
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
532
|
-
}, z.ZodTypeAny, "passthrough">>>>;
|
|
533
|
-
} & {
|
|
534
|
-
weighted: z.ZodObject<{
|
|
535
|
-
weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
|
|
536
|
-
tolerance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
|
|
537
|
-
}, "strip", z.ZodTypeAny, {
|
|
538
|
-
weight: bigint;
|
|
539
|
-
tolerance: bigint;
|
|
540
|
-
}, {
|
|
541
|
-
weight: string | number;
|
|
542
|
-
tolerance: string | number;
|
|
543
|
-
}>;
|
|
634
|
+
export declare const RebalancerStrategySchema: z.ZodEffects<z.ZodUnion<[z.ZodDiscriminatedUnion<"rebalanceStrategy", [z.ZodObject<{
|
|
635
|
+
rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.Weighted>;
|
|
636
|
+
chains: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
637
|
+
bridge: z.ZodString;
|
|
638
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
639
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
640
|
+
} & {
|
|
641
|
+
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
642
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
643
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
644
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
645
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
646
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
647
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
648
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
649
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
650
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
651
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
652
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
653
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
654
|
+
} & {
|
|
655
|
+
weighted: z.ZodObject<{
|
|
656
|
+
weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
|
|
657
|
+
tolerance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
|
|
544
658
|
}, "strip", z.ZodTypeAny, {
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
tolerance: bigint;
|
|
548
|
-
};
|
|
549
|
-
bridge: string;
|
|
550
|
-
bridgeLockTime: number;
|
|
551
|
-
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
552
|
-
bridgeIsWarp?: boolean | undefined;
|
|
553
|
-
override?: Record<string, z.objectOutputType<{
|
|
554
|
-
bridge: z.ZodOptional<z.ZodString>;
|
|
555
|
-
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
556
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
557
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
558
|
-
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
659
|
+
weight: bigint;
|
|
660
|
+
tolerance: bigint;
|
|
559
661
|
}, {
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
tolerance: string | number;
|
|
563
|
-
};
|
|
564
|
-
bridge: string;
|
|
565
|
-
bridgeLockTime: number;
|
|
566
|
-
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
567
|
-
bridgeIsWarp?: boolean | undefined;
|
|
568
|
-
override?: Record<string, z.objectInputType<{
|
|
569
|
-
bridge: z.ZodOptional<z.ZodString>;
|
|
570
|
-
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
571
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
572
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
573
|
-
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
574
|
-
}>>;
|
|
575
|
-
}, "strip", z.ZodTypeAny, {
|
|
576
|
-
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
577
|
-
chains: Record<string, {
|
|
578
|
-
weighted: {
|
|
579
|
-
weight: bigint;
|
|
580
|
-
tolerance: bigint;
|
|
581
|
-
};
|
|
582
|
-
bridge: string;
|
|
583
|
-
bridgeLockTime: number;
|
|
584
|
-
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
585
|
-
bridgeIsWarp?: boolean | undefined;
|
|
586
|
-
override?: Record<string, z.objectOutputType<{
|
|
587
|
-
bridge: z.ZodOptional<z.ZodString>;
|
|
588
|
-
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
589
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
590
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
591
|
-
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
662
|
+
weight: string | number;
|
|
663
|
+
tolerance: string | number;
|
|
592
664
|
}>;
|
|
593
|
-
}, {
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
665
|
+
}, "strip", z.ZodTypeAny, {
|
|
666
|
+
weighted: {
|
|
667
|
+
weight: bigint;
|
|
668
|
+
tolerance: bigint;
|
|
669
|
+
};
|
|
670
|
+
bridge: string;
|
|
671
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
672
|
+
bridgeLockTime?: number | undefined;
|
|
673
|
+
override?: Record<string, z.objectOutputType<{
|
|
674
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
675
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
676
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
677
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
678
|
+
}, {
|
|
679
|
+
weighted: {
|
|
680
|
+
weight: string | number;
|
|
681
|
+
tolerance: string | number;
|
|
682
|
+
};
|
|
683
|
+
bridge: string;
|
|
684
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
685
|
+
bridgeLockTime?: number | undefined;
|
|
686
|
+
override?: Record<string, z.objectInputType<{
|
|
687
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
688
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
689
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
690
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
691
|
+
}>>;
|
|
692
|
+
}, "strip", z.ZodTypeAny, {
|
|
693
|
+
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
694
|
+
chains: Record<string, {
|
|
695
|
+
weighted: {
|
|
696
|
+
weight: bigint;
|
|
697
|
+
tolerance: bigint;
|
|
698
|
+
};
|
|
699
|
+
bridge: string;
|
|
700
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
701
|
+
bridgeLockTime?: number | undefined;
|
|
702
|
+
override?: Record<string, z.objectOutputType<{
|
|
703
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
704
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
705
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
706
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
707
|
+
}>;
|
|
708
|
+
}, {
|
|
709
|
+
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
710
|
+
chains: Record<string, {
|
|
711
|
+
weighted: {
|
|
712
|
+
weight: string | number;
|
|
713
|
+
tolerance: string | number;
|
|
714
|
+
};
|
|
715
|
+
bridge: string;
|
|
716
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
717
|
+
bridgeLockTime?: number | undefined;
|
|
718
|
+
override?: Record<string, z.objectInputType<{
|
|
719
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
720
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
721
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
722
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
723
|
+
}>;
|
|
724
|
+
}>, z.ZodObject<{
|
|
725
|
+
rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.MinAmount>;
|
|
726
|
+
chains: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
727
|
+
bridge: z.ZodString;
|
|
728
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
729
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
730
|
+
} & {
|
|
731
|
+
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
732
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
733
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
734
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
735
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
736
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
737
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
738
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
739
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
740
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
741
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
742
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
743
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
744
|
+
} & {
|
|
745
|
+
minAmount: z.ZodObject<{
|
|
746
|
+
min: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
747
|
+
target: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
748
|
+
type: z.ZodNativeEnum<typeof RebalancerMinAmountType>;
|
|
749
|
+
}, "strip", z.ZodTypeAny, {
|
|
750
|
+
type: RebalancerMinAmountType;
|
|
751
|
+
min: string | number;
|
|
752
|
+
target: string | number;
|
|
753
|
+
}, {
|
|
754
|
+
type: RebalancerMinAmountType;
|
|
755
|
+
min: string | number;
|
|
756
|
+
target: string | number;
|
|
757
|
+
}>;
|
|
758
|
+
}, "strip", z.ZodTypeAny, {
|
|
759
|
+
minAmount: {
|
|
760
|
+
type: RebalancerMinAmountType;
|
|
761
|
+
min: string | number;
|
|
762
|
+
target: string | number;
|
|
763
|
+
};
|
|
764
|
+
bridge: string;
|
|
765
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
766
|
+
bridgeLockTime?: number | undefined;
|
|
767
|
+
override?: Record<string, z.objectOutputType<{
|
|
768
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
769
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
770
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
771
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
772
|
+
}, {
|
|
773
|
+
minAmount: {
|
|
774
|
+
type: RebalancerMinAmountType;
|
|
775
|
+
min: string | number;
|
|
776
|
+
target: string | number;
|
|
777
|
+
};
|
|
778
|
+
bridge: string;
|
|
779
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
780
|
+
bridgeLockTime?: number | undefined;
|
|
781
|
+
override?: Record<string, z.objectInputType<{
|
|
782
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
783
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
784
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
785
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
786
|
+
}>>;
|
|
787
|
+
}, "strip", z.ZodTypeAny, {
|
|
788
|
+
rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
|
|
789
|
+
chains: Record<string, {
|
|
790
|
+
minAmount: {
|
|
791
|
+
type: RebalancerMinAmountType;
|
|
792
|
+
min: string | number;
|
|
793
|
+
target: string | number;
|
|
794
|
+
};
|
|
795
|
+
bridge: string;
|
|
796
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
797
|
+
bridgeLockTime?: number | undefined;
|
|
798
|
+
override?: Record<string, z.objectOutputType<{
|
|
799
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
800
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
801
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
802
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
803
|
+
}>;
|
|
804
|
+
}, {
|
|
805
|
+
rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
|
|
806
|
+
chains: Record<string, {
|
|
807
|
+
minAmount: {
|
|
808
|
+
type: RebalancerMinAmountType;
|
|
809
|
+
min: string | number;
|
|
810
|
+
target: string | number;
|
|
811
|
+
};
|
|
812
|
+
bridge: string;
|
|
813
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
814
|
+
bridgeLockTime?: number | undefined;
|
|
815
|
+
override?: Record<string, z.objectInputType<{
|
|
816
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
817
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
818
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
819
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
820
|
+
}>;
|
|
821
|
+
}>, z.ZodObject<{
|
|
822
|
+
rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.CollateralDeficit>;
|
|
823
|
+
chains: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
824
|
+
bridge: z.ZodString;
|
|
825
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
826
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
827
|
+
} & {
|
|
828
|
+
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
829
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
830
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
831
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
832
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
833
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
834
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
835
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
836
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
837
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
838
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
839
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
840
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
841
|
+
} & {
|
|
842
|
+
buffer: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
843
|
+
}, "strip", z.ZodTypeAny, {
|
|
844
|
+
bridge: string;
|
|
845
|
+
buffer: string | number;
|
|
846
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
847
|
+
bridgeLockTime?: number | undefined;
|
|
848
|
+
override?: Record<string, z.objectOutputType<{
|
|
849
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
850
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
851
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
852
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
853
|
+
}, {
|
|
854
|
+
bridge: string;
|
|
855
|
+
buffer: string | number;
|
|
856
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
857
|
+
bridgeLockTime?: number | undefined;
|
|
858
|
+
override?: Record<string, z.objectInputType<{
|
|
859
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
860
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
861
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
862
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
863
|
+
}>>;
|
|
864
|
+
}, "strip", z.ZodTypeAny, {
|
|
865
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
866
|
+
chains: Record<string, {
|
|
867
|
+
bridge: string;
|
|
868
|
+
buffer: string | number;
|
|
869
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
870
|
+
bridgeLockTime?: number | undefined;
|
|
871
|
+
override?: Record<string, z.objectOutputType<{
|
|
872
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
873
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
874
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
875
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
876
|
+
}>;
|
|
877
|
+
}, {
|
|
878
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
879
|
+
chains: Record<string, {
|
|
880
|
+
bridge: string;
|
|
881
|
+
buffer: string | number;
|
|
882
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
883
|
+
bridgeLockTime?: number | undefined;
|
|
884
|
+
override?: Record<string, z.objectInputType<{
|
|
885
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
886
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
887
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
888
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
889
|
+
}>;
|
|
890
|
+
}>]>, z.ZodArray<z.ZodDiscriminatedUnion<"rebalanceStrategy", [z.ZodObject<{
|
|
891
|
+
rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.Weighted>;
|
|
892
|
+
chains: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
893
|
+
bridge: z.ZodString;
|
|
894
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
895
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
896
|
+
} & {
|
|
897
|
+
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
898
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
899
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
900
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
901
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
902
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
903
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
904
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
905
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
906
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
907
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
908
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
909
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
910
|
+
} & {
|
|
911
|
+
weighted: z.ZodObject<{
|
|
912
|
+
weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
|
|
913
|
+
tolerance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
|
|
914
|
+
}, "strip", z.ZodTypeAny, {
|
|
915
|
+
weight: bigint;
|
|
916
|
+
tolerance: bigint;
|
|
917
|
+
}, {
|
|
918
|
+
weight: string | number;
|
|
919
|
+
tolerance: string | number;
|
|
920
|
+
}>;
|
|
921
|
+
}, "strip", z.ZodTypeAny, {
|
|
922
|
+
weighted: {
|
|
923
|
+
weight: bigint;
|
|
924
|
+
tolerance: bigint;
|
|
925
|
+
};
|
|
926
|
+
bridge: string;
|
|
927
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
928
|
+
bridgeLockTime?: number | undefined;
|
|
929
|
+
override?: Record<string, z.objectOutputType<{
|
|
930
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
931
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
932
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
933
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
934
|
+
}, {
|
|
935
|
+
weighted: {
|
|
936
|
+
weight: string | number;
|
|
937
|
+
tolerance: string | number;
|
|
938
|
+
};
|
|
939
|
+
bridge: string;
|
|
940
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
941
|
+
bridgeLockTime?: number | undefined;
|
|
942
|
+
override?: Record<string, z.objectInputType<{
|
|
943
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
944
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
945
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
946
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
947
|
+
}>>;
|
|
948
|
+
}, "strip", z.ZodTypeAny, {
|
|
949
|
+
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
950
|
+
chains: Record<string, {
|
|
951
|
+
weighted: {
|
|
952
|
+
weight: bigint;
|
|
953
|
+
tolerance: bigint;
|
|
954
|
+
};
|
|
955
|
+
bridge: string;
|
|
956
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
957
|
+
bridgeLockTime?: number | undefined;
|
|
958
|
+
override?: Record<string, z.objectOutputType<{
|
|
959
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
960
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
961
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
962
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
963
|
+
}>;
|
|
964
|
+
}, {
|
|
965
|
+
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
966
|
+
chains: Record<string, {
|
|
967
|
+
weighted: {
|
|
968
|
+
weight: string | number;
|
|
969
|
+
tolerance: string | number;
|
|
970
|
+
};
|
|
971
|
+
bridge: string;
|
|
972
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
973
|
+
bridgeLockTime?: number | undefined;
|
|
974
|
+
override?: Record<string, z.objectInputType<{
|
|
975
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
976
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
977
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
978
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
979
|
+
}>;
|
|
980
|
+
}>, z.ZodObject<{
|
|
981
|
+
rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.MinAmount>;
|
|
982
|
+
chains: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
983
|
+
bridge: z.ZodString;
|
|
984
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
985
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
986
|
+
} & {
|
|
987
|
+
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
988
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
989
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
990
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
991
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
992
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
993
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
994
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
995
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
996
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
997
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
998
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
999
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1000
|
+
} & {
|
|
1001
|
+
minAmount: z.ZodObject<{
|
|
1002
|
+
min: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
1003
|
+
target: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
1004
|
+
type: z.ZodNativeEnum<typeof RebalancerMinAmountType>;
|
|
1005
|
+
}, "strip", z.ZodTypeAny, {
|
|
1006
|
+
type: RebalancerMinAmountType;
|
|
1007
|
+
min: string | number;
|
|
1008
|
+
target: string | number;
|
|
1009
|
+
}, {
|
|
1010
|
+
type: RebalancerMinAmountType;
|
|
1011
|
+
min: string | number;
|
|
1012
|
+
target: string | number;
|
|
1013
|
+
}>;
|
|
1014
|
+
}, "strip", z.ZodTypeAny, {
|
|
1015
|
+
minAmount: {
|
|
1016
|
+
type: RebalancerMinAmountType;
|
|
1017
|
+
min: string | number;
|
|
1018
|
+
target: string | number;
|
|
1019
|
+
};
|
|
1020
|
+
bridge: string;
|
|
1021
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1022
|
+
bridgeLockTime?: number | undefined;
|
|
1023
|
+
override?: Record<string, z.objectOutputType<{
|
|
1024
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1025
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1026
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1027
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1028
|
+
}, {
|
|
1029
|
+
minAmount: {
|
|
1030
|
+
type: RebalancerMinAmountType;
|
|
1031
|
+
min: string | number;
|
|
1032
|
+
target: string | number;
|
|
1033
|
+
};
|
|
1034
|
+
bridge: string;
|
|
1035
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1036
|
+
bridgeLockTime?: number | undefined;
|
|
1037
|
+
override?: Record<string, z.objectInputType<{
|
|
1038
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1039
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1040
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1041
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1042
|
+
}>>;
|
|
1043
|
+
}, "strip", z.ZodTypeAny, {
|
|
1044
|
+
rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
|
|
1045
|
+
chains: Record<string, {
|
|
1046
|
+
minAmount: {
|
|
1047
|
+
type: RebalancerMinAmountType;
|
|
1048
|
+
min: string | number;
|
|
1049
|
+
target: string | number;
|
|
1050
|
+
};
|
|
1051
|
+
bridge: string;
|
|
1052
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1053
|
+
bridgeLockTime?: number | undefined;
|
|
1054
|
+
override?: Record<string, z.objectOutputType<{
|
|
1055
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1056
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1057
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1058
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1059
|
+
}>;
|
|
1060
|
+
}, {
|
|
1061
|
+
rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
|
|
1062
|
+
chains: Record<string, {
|
|
1063
|
+
minAmount: {
|
|
1064
|
+
type: RebalancerMinAmountType;
|
|
1065
|
+
min: string | number;
|
|
1066
|
+
target: string | number;
|
|
1067
|
+
};
|
|
1068
|
+
bridge: string;
|
|
1069
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1070
|
+
bridgeLockTime?: number | undefined;
|
|
1071
|
+
override?: Record<string, z.objectInputType<{
|
|
1072
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1073
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1074
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1075
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1076
|
+
}>;
|
|
1077
|
+
}>, z.ZodObject<{
|
|
1078
|
+
rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.CollateralDeficit>;
|
|
1079
|
+
chains: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1080
|
+
bridge: z.ZodString;
|
|
1081
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1082
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
1083
|
+
} & {
|
|
1084
|
+
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1085
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1086
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1087
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1088
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1089
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1090
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1091
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1092
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1093
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1094
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1095
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1096
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1097
|
+
} & {
|
|
1098
|
+
buffer: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
1099
|
+
}, "strip", z.ZodTypeAny, {
|
|
1100
|
+
bridge: string;
|
|
1101
|
+
buffer: string | number;
|
|
1102
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1103
|
+
bridgeLockTime?: number | undefined;
|
|
1104
|
+
override?: Record<string, z.objectOutputType<{
|
|
1105
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1106
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1107
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1108
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1109
|
+
}, {
|
|
1110
|
+
bridge: string;
|
|
1111
|
+
buffer: string | number;
|
|
1112
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1113
|
+
bridgeLockTime?: number | undefined;
|
|
1114
|
+
override?: Record<string, z.objectInputType<{
|
|
1115
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1116
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1117
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1118
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1119
|
+
}>>;
|
|
1120
|
+
}, "strip", z.ZodTypeAny, {
|
|
1121
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
1122
|
+
chains: Record<string, {
|
|
1123
|
+
bridge: string;
|
|
1124
|
+
buffer: string | number;
|
|
1125
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1126
|
+
bridgeLockTime?: number | undefined;
|
|
1127
|
+
override?: Record<string, z.objectOutputType<{
|
|
1128
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1129
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1130
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1131
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1132
|
+
}>;
|
|
1133
|
+
}, {
|
|
1134
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
1135
|
+
chains: Record<string, {
|
|
1136
|
+
bridge: string;
|
|
1137
|
+
buffer: string | number;
|
|
1138
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1139
|
+
bridgeLockTime?: number | undefined;
|
|
1140
|
+
override?: Record<string, z.objectInputType<{
|
|
1141
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1142
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1143
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1144
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1145
|
+
}>;
|
|
1146
|
+
}>]>, "many">]>, ({
|
|
1147
|
+
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
1148
|
+
chains: Record<string, {
|
|
1149
|
+
weighted: {
|
|
1150
|
+
weight: bigint;
|
|
1151
|
+
tolerance: bigint;
|
|
1152
|
+
};
|
|
1153
|
+
bridge: string;
|
|
1154
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1155
|
+
bridgeLockTime?: number | undefined;
|
|
1156
|
+
override?: Record<string, z.objectOutputType<{
|
|
1157
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1158
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1159
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1160
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1161
|
+
}>;
|
|
1162
|
+
} | {
|
|
1163
|
+
rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
|
|
1164
|
+
chains: Record<string, {
|
|
1165
|
+
minAmount: {
|
|
1166
|
+
type: RebalancerMinAmountType;
|
|
1167
|
+
min: string | number;
|
|
1168
|
+
target: string | number;
|
|
1169
|
+
};
|
|
1170
|
+
bridge: string;
|
|
1171
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1172
|
+
bridgeLockTime?: number | undefined;
|
|
1173
|
+
override?: Record<string, z.objectOutputType<{
|
|
1174
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1175
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1176
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1177
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1178
|
+
}>;
|
|
1179
|
+
} | {
|
|
1180
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
1181
|
+
chains: Record<string, {
|
|
1182
|
+
bridge: string;
|
|
1183
|
+
buffer: string | number;
|
|
1184
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1185
|
+
bridgeLockTime?: number | undefined;
|
|
1186
|
+
override?: Record<string, z.objectOutputType<{
|
|
1187
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1188
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1189
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1190
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1191
|
+
}>;
|
|
1192
|
+
})[], {
|
|
1193
|
+
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
1194
|
+
chains: Record<string, {
|
|
1195
|
+
weighted: {
|
|
1196
|
+
weight: string | number;
|
|
1197
|
+
tolerance: string | number;
|
|
1198
|
+
};
|
|
1199
|
+
bridge: string;
|
|
1200
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1201
|
+
bridgeLockTime?: number | undefined;
|
|
1202
|
+
override?: Record<string, z.objectInputType<{
|
|
1203
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1204
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1205
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1206
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1207
|
+
}>;
|
|
1208
|
+
} | {
|
|
1209
|
+
rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
|
|
1210
|
+
chains: Record<string, {
|
|
1211
|
+
minAmount: {
|
|
1212
|
+
type: RebalancerMinAmountType;
|
|
1213
|
+
min: string | number;
|
|
1214
|
+
target: string | number;
|
|
1215
|
+
};
|
|
1216
|
+
bridge: string;
|
|
1217
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1218
|
+
bridgeLockTime?: number | undefined;
|
|
1219
|
+
override?: Record<string, z.objectInputType<{
|
|
1220
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1221
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1222
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1223
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1224
|
+
}>;
|
|
1225
|
+
} | {
|
|
1226
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
1227
|
+
chains: Record<string, {
|
|
1228
|
+
bridge: string;
|
|
1229
|
+
buffer: string | number;
|
|
1230
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1231
|
+
bridgeLockTime?: number | undefined;
|
|
1232
|
+
override?: Record<string, z.objectInputType<{
|
|
1233
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1234
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1235
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1236
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1237
|
+
}>;
|
|
1238
|
+
} | ({
|
|
1239
|
+
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
1240
|
+
chains: Record<string, {
|
|
1241
|
+
weighted: {
|
|
1242
|
+
weight: string | number;
|
|
1243
|
+
tolerance: string | number;
|
|
1244
|
+
};
|
|
1245
|
+
bridge: string;
|
|
1246
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1247
|
+
bridgeLockTime?: number | undefined;
|
|
1248
|
+
override?: Record<string, z.objectInputType<{
|
|
1249
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1250
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1251
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1252
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1253
|
+
}>;
|
|
1254
|
+
} | {
|
|
1255
|
+
rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
|
|
1256
|
+
chains: Record<string, {
|
|
1257
|
+
minAmount: {
|
|
1258
|
+
type: RebalancerMinAmountType;
|
|
1259
|
+
min: string | number;
|
|
1260
|
+
target: string | number;
|
|
1261
|
+
};
|
|
1262
|
+
bridge: string;
|
|
1263
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1264
|
+
bridgeLockTime?: number | undefined;
|
|
1265
|
+
override?: Record<string, z.objectInputType<{
|
|
1266
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1267
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1268
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1269
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1270
|
+
}>;
|
|
1271
|
+
} | {
|
|
1272
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
1273
|
+
chains: Record<string, {
|
|
1274
|
+
bridge: string;
|
|
1275
|
+
buffer: string | number;
|
|
1276
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1277
|
+
bridgeLockTime?: number | undefined;
|
|
1278
|
+
override?: Record<string, z.objectInputType<{
|
|
1279
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1280
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1281
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1282
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1283
|
+
}>;
|
|
1284
|
+
})[]>;
|
|
1285
|
+
export declare const RebalancerConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
1286
|
+
warpRouteId: z.ZodString;
|
|
1287
|
+
strategy: z.ZodEffects<z.ZodUnion<[z.ZodDiscriminatedUnion<"rebalanceStrategy", [z.ZodObject<{
|
|
1288
|
+
rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.Weighted>;
|
|
1289
|
+
chains: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1290
|
+
bridge: z.ZodString;
|
|
1291
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1292
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
1293
|
+
} & {
|
|
1294
|
+
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1295
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1296
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1297
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1298
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1299
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1300
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1301
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1302
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1303
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1304
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1305
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1306
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1307
|
+
} & {
|
|
1308
|
+
weighted: z.ZodObject<{
|
|
1309
|
+
weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
|
|
1310
|
+
tolerance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
|
|
1311
|
+
}, "strip", z.ZodTypeAny, {
|
|
1312
|
+
weight: bigint;
|
|
1313
|
+
tolerance: bigint;
|
|
1314
|
+
}, {
|
|
1315
|
+
weight: string | number;
|
|
1316
|
+
tolerance: string | number;
|
|
1317
|
+
}>;
|
|
1318
|
+
}, "strip", z.ZodTypeAny, {
|
|
1319
|
+
weighted: {
|
|
1320
|
+
weight: bigint;
|
|
1321
|
+
tolerance: bigint;
|
|
1322
|
+
};
|
|
1323
|
+
bridge: string;
|
|
1324
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1325
|
+
bridgeLockTime?: number | undefined;
|
|
1326
|
+
override?: Record<string, z.objectOutputType<{
|
|
1327
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1328
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1329
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1330
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1331
|
+
}, {
|
|
1332
|
+
weighted: {
|
|
1333
|
+
weight: string | number;
|
|
1334
|
+
tolerance: string | number;
|
|
1335
|
+
};
|
|
1336
|
+
bridge: string;
|
|
1337
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1338
|
+
bridgeLockTime?: number | undefined;
|
|
1339
|
+
override?: Record<string, z.objectInputType<{
|
|
1340
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1341
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1342
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1343
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1344
|
+
}>>;
|
|
1345
|
+
}, "strip", z.ZodTypeAny, {
|
|
1346
|
+
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
1347
|
+
chains: Record<string, {
|
|
1348
|
+
weighted: {
|
|
1349
|
+
weight: bigint;
|
|
1350
|
+
tolerance: bigint;
|
|
1351
|
+
};
|
|
1352
|
+
bridge: string;
|
|
1353
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1354
|
+
bridgeLockTime?: number | undefined;
|
|
1355
|
+
override?: Record<string, z.objectOutputType<{
|
|
1356
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1357
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1358
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1359
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1360
|
+
}>;
|
|
1361
|
+
}, {
|
|
1362
|
+
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
1363
|
+
chains: Record<string, {
|
|
1364
|
+
weighted: {
|
|
1365
|
+
weight: string | number;
|
|
1366
|
+
tolerance: string | number;
|
|
1367
|
+
};
|
|
1368
|
+
bridge: string;
|
|
1369
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1370
|
+
bridgeLockTime?: number | undefined;
|
|
1371
|
+
override?: Record<string, z.objectInputType<{
|
|
1372
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1373
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1374
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1375
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1376
|
+
}>;
|
|
1377
|
+
}>, z.ZodObject<{
|
|
1378
|
+
rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.MinAmount>;
|
|
1379
|
+
chains: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1380
|
+
bridge: z.ZodString;
|
|
1381
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1382
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
1383
|
+
} & {
|
|
1384
|
+
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1385
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1386
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1387
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1388
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1389
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1390
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1391
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1392
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1393
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1394
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1395
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1396
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1397
|
+
} & {
|
|
1398
|
+
minAmount: z.ZodObject<{
|
|
1399
|
+
min: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
1400
|
+
target: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
1401
|
+
type: z.ZodNativeEnum<typeof RebalancerMinAmountType>;
|
|
1402
|
+
}, "strip", z.ZodTypeAny, {
|
|
1403
|
+
type: RebalancerMinAmountType;
|
|
1404
|
+
min: string | number;
|
|
1405
|
+
target: string | number;
|
|
1406
|
+
}, {
|
|
1407
|
+
type: RebalancerMinAmountType;
|
|
1408
|
+
min: string | number;
|
|
1409
|
+
target: string | number;
|
|
1410
|
+
}>;
|
|
1411
|
+
}, "strip", z.ZodTypeAny, {
|
|
1412
|
+
minAmount: {
|
|
1413
|
+
type: RebalancerMinAmountType;
|
|
1414
|
+
min: string | number;
|
|
1415
|
+
target: string | number;
|
|
1416
|
+
};
|
|
1417
|
+
bridge: string;
|
|
1418
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1419
|
+
bridgeLockTime?: number | undefined;
|
|
1420
|
+
override?: Record<string, z.objectOutputType<{
|
|
1421
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1422
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1423
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1424
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1425
|
+
}, {
|
|
1426
|
+
minAmount: {
|
|
1427
|
+
type: RebalancerMinAmountType;
|
|
1428
|
+
min: string | number;
|
|
1429
|
+
target: string | number;
|
|
1430
|
+
};
|
|
1431
|
+
bridge: string;
|
|
1432
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1433
|
+
bridgeLockTime?: number | undefined;
|
|
1434
|
+
override?: Record<string, z.objectInputType<{
|
|
1435
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1436
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1437
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1438
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1439
|
+
}>>;
|
|
1440
|
+
}, "strip", z.ZodTypeAny, {
|
|
1441
|
+
rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
|
|
1442
|
+
chains: Record<string, {
|
|
1443
|
+
minAmount: {
|
|
1444
|
+
type: RebalancerMinAmountType;
|
|
1445
|
+
min: string | number;
|
|
1446
|
+
target: string | number;
|
|
1447
|
+
};
|
|
1448
|
+
bridge: string;
|
|
1449
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1450
|
+
bridgeLockTime?: number | undefined;
|
|
1451
|
+
override?: Record<string, z.objectOutputType<{
|
|
1452
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1453
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1454
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1455
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1456
|
+
}>;
|
|
1457
|
+
}, {
|
|
1458
|
+
rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
|
|
1459
|
+
chains: Record<string, {
|
|
1460
|
+
minAmount: {
|
|
1461
|
+
type: RebalancerMinAmountType;
|
|
1462
|
+
min: string | number;
|
|
1463
|
+
target: string | number;
|
|
1464
|
+
};
|
|
1465
|
+
bridge: string;
|
|
1466
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1467
|
+
bridgeLockTime?: number | undefined;
|
|
1468
|
+
override?: Record<string, z.objectInputType<{
|
|
1469
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1470
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1471
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1472
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1473
|
+
}>;
|
|
1474
|
+
}>, z.ZodObject<{
|
|
1475
|
+
rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.CollateralDeficit>;
|
|
1476
|
+
chains: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1477
|
+
bridge: z.ZodString;
|
|
1478
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1479
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
1480
|
+
} & {
|
|
1481
|
+
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1482
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1483
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1484
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1485
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1486
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1487
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1488
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1489
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1490
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1491
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1492
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1493
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1494
|
+
} & {
|
|
1495
|
+
buffer: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
1496
|
+
}, "strip", z.ZodTypeAny, {
|
|
1497
|
+
bridge: string;
|
|
1498
|
+
buffer: string | number;
|
|
1499
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1500
|
+
bridgeLockTime?: number | undefined;
|
|
1501
|
+
override?: Record<string, z.objectOutputType<{
|
|
1502
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1503
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1504
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1505
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1506
|
+
}, {
|
|
1507
|
+
bridge: string;
|
|
1508
|
+
buffer: string | number;
|
|
1509
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1510
|
+
bridgeLockTime?: number | undefined;
|
|
1511
|
+
override?: Record<string, z.objectInputType<{
|
|
1512
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1513
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1514
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1515
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1516
|
+
}>>;
|
|
1517
|
+
}, "strip", z.ZodTypeAny, {
|
|
1518
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
1519
|
+
chains: Record<string, {
|
|
1520
|
+
bridge: string;
|
|
1521
|
+
buffer: string | number;
|
|
1522
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1523
|
+
bridgeLockTime?: number | undefined;
|
|
1524
|
+
override?: Record<string, z.objectOutputType<{
|
|
1525
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1526
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1527
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1528
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1529
|
+
}>;
|
|
1530
|
+
}, {
|
|
1531
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
1532
|
+
chains: Record<string, {
|
|
1533
|
+
bridge: string;
|
|
1534
|
+
buffer: string | number;
|
|
1535
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1536
|
+
bridgeLockTime?: number | undefined;
|
|
1537
|
+
override?: Record<string, z.objectInputType<{
|
|
1538
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1539
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1540
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1541
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1542
|
+
}>;
|
|
1543
|
+
}>]>, z.ZodArray<z.ZodDiscriminatedUnion<"rebalanceStrategy", [z.ZodObject<{
|
|
1544
|
+
rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.Weighted>;
|
|
1545
|
+
chains: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1546
|
+
bridge: z.ZodString;
|
|
1547
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1548
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
1549
|
+
} & {
|
|
1550
|
+
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1551
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1552
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1553
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1554
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1555
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1556
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1557
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1558
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1559
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1560
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1561
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1562
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1563
|
+
} & {
|
|
1564
|
+
weighted: z.ZodObject<{
|
|
1565
|
+
weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
|
|
1566
|
+
tolerance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
|
|
1567
|
+
}, "strip", z.ZodTypeAny, {
|
|
1568
|
+
weight: bigint;
|
|
1569
|
+
tolerance: bigint;
|
|
1570
|
+
}, {
|
|
1571
|
+
weight: string | number;
|
|
1572
|
+
tolerance: string | number;
|
|
1573
|
+
}>;
|
|
1574
|
+
}, "strip", z.ZodTypeAny, {
|
|
1575
|
+
weighted: {
|
|
1576
|
+
weight: bigint;
|
|
1577
|
+
tolerance: bigint;
|
|
1578
|
+
};
|
|
1579
|
+
bridge: string;
|
|
1580
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1581
|
+
bridgeLockTime?: number | undefined;
|
|
1582
|
+
override?: Record<string, z.objectOutputType<{
|
|
1583
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1584
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1585
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1586
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1587
|
+
}, {
|
|
1588
|
+
weighted: {
|
|
1589
|
+
weight: string | number;
|
|
1590
|
+
tolerance: string | number;
|
|
1591
|
+
};
|
|
1592
|
+
bridge: string;
|
|
1593
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1594
|
+
bridgeLockTime?: number | undefined;
|
|
1595
|
+
override?: Record<string, z.objectInputType<{
|
|
1596
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1597
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1598
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1599
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1600
|
+
}>>;
|
|
1601
|
+
}, "strip", z.ZodTypeAny, {
|
|
1602
|
+
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
1603
|
+
chains: Record<string, {
|
|
1604
|
+
weighted: {
|
|
1605
|
+
weight: bigint;
|
|
1606
|
+
tolerance: bigint;
|
|
1607
|
+
};
|
|
1608
|
+
bridge: string;
|
|
1609
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1610
|
+
bridgeLockTime?: number | undefined;
|
|
1611
|
+
override?: Record<string, z.objectOutputType<{
|
|
1612
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1613
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1614
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1615
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1616
|
+
}>;
|
|
1617
|
+
}, {
|
|
1618
|
+
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
1619
|
+
chains: Record<string, {
|
|
1620
|
+
weighted: {
|
|
597
1621
|
weight: string | number;
|
|
598
1622
|
tolerance: string | number;
|
|
599
1623
|
};
|
|
600
1624
|
bridge: string;
|
|
601
|
-
bridgeLockTime: number;
|
|
602
1625
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
603
|
-
|
|
1626
|
+
bridgeLockTime?: number | undefined;
|
|
1627
|
+
override?: Record<string, z.objectInputType<{
|
|
1628
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1629
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1630
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1631
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1632
|
+
}>;
|
|
1633
|
+
}>, z.ZodObject<{
|
|
1634
|
+
rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.MinAmount>;
|
|
1635
|
+
chains: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1636
|
+
bridge: z.ZodString;
|
|
1637
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1638
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
1639
|
+
} & {
|
|
1640
|
+
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1641
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1642
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1643
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1644
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1645
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1646
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1647
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1648
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1649
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1650
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1651
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1652
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1653
|
+
} & {
|
|
1654
|
+
minAmount: z.ZodObject<{
|
|
1655
|
+
min: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
1656
|
+
target: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
1657
|
+
type: z.ZodNativeEnum<typeof RebalancerMinAmountType>;
|
|
1658
|
+
}, "strip", z.ZodTypeAny, {
|
|
1659
|
+
type: RebalancerMinAmountType;
|
|
1660
|
+
min: string | number;
|
|
1661
|
+
target: string | number;
|
|
1662
|
+
}, {
|
|
1663
|
+
type: RebalancerMinAmountType;
|
|
1664
|
+
min: string | number;
|
|
1665
|
+
target: string | number;
|
|
1666
|
+
}>;
|
|
1667
|
+
}, "strip", z.ZodTypeAny, {
|
|
1668
|
+
minAmount: {
|
|
1669
|
+
type: RebalancerMinAmountType;
|
|
1670
|
+
min: string | number;
|
|
1671
|
+
target: string | number;
|
|
1672
|
+
};
|
|
1673
|
+
bridge: string;
|
|
1674
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1675
|
+
bridgeLockTime?: number | undefined;
|
|
1676
|
+
override?: Record<string, z.objectOutputType<{
|
|
1677
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1678
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1679
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1680
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1681
|
+
}, {
|
|
1682
|
+
minAmount: {
|
|
1683
|
+
type: RebalancerMinAmountType;
|
|
1684
|
+
min: string | number;
|
|
1685
|
+
target: string | number;
|
|
1686
|
+
};
|
|
1687
|
+
bridge: string;
|
|
1688
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1689
|
+
bridgeLockTime?: number | undefined;
|
|
1690
|
+
override?: Record<string, z.objectInputType<{
|
|
1691
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1692
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1693
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1694
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1695
|
+
}>>;
|
|
1696
|
+
}, "strip", z.ZodTypeAny, {
|
|
1697
|
+
rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
|
|
1698
|
+
chains: Record<string, {
|
|
1699
|
+
minAmount: {
|
|
1700
|
+
type: RebalancerMinAmountType;
|
|
1701
|
+
min: string | number;
|
|
1702
|
+
target: string | number;
|
|
1703
|
+
};
|
|
1704
|
+
bridge: string;
|
|
1705
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1706
|
+
bridgeLockTime?: number | undefined;
|
|
1707
|
+
override?: Record<string, z.objectOutputType<{
|
|
1708
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1709
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1710
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1711
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1712
|
+
}>;
|
|
1713
|
+
}, {
|
|
1714
|
+
rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
|
|
1715
|
+
chains: Record<string, {
|
|
1716
|
+
minAmount: {
|
|
1717
|
+
type: RebalancerMinAmountType;
|
|
1718
|
+
min: string | number;
|
|
1719
|
+
target: string | number;
|
|
1720
|
+
};
|
|
1721
|
+
bridge: string;
|
|
1722
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1723
|
+
bridgeLockTime?: number | undefined;
|
|
604
1724
|
override?: Record<string, z.objectInputType<{
|
|
605
1725
|
bridge: z.ZodOptional<z.ZodString>;
|
|
606
1726
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
607
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
608
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1727
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
609
1728
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
610
1729
|
}>;
|
|
611
1730
|
}>, z.ZodObject<{
|
|
612
|
-
rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.
|
|
1731
|
+
rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.CollateralDeficit>;
|
|
613
1732
|
chains: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
614
1733
|
bridge: z.ZodString;
|
|
615
1734
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
616
|
-
bridgeLockTime: z.ZodEffects<z.ZodNumber, number, number
|
|
617
|
-
bridgeIsWarp: z.ZodOptional<z.ZodBoolean>;
|
|
1735
|
+
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
618
1736
|
} & {
|
|
619
1737
|
override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
620
1738
|
bridge: z.ZodOptional<z.ZodString>;
|
|
621
1739
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
622
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
623
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1740
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
624
1741
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
625
1742
|
bridge: z.ZodOptional<z.ZodString>;
|
|
626
1743
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
627
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
628
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1744
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
629
1745
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
630
1746
|
bridge: z.ZodOptional<z.ZodString>;
|
|
631
1747
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
632
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
633
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1748
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
634
1749
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
635
1750
|
} & {
|
|
636
|
-
|
|
637
|
-
min: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
638
|
-
target: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
639
|
-
type: z.ZodNativeEnum<typeof RebalancerMinAmountType>;
|
|
640
|
-
}, "strip", z.ZodTypeAny, {
|
|
641
|
-
type: RebalancerMinAmountType;
|
|
642
|
-
min: string | number;
|
|
643
|
-
target: string | number;
|
|
644
|
-
}, {
|
|
645
|
-
type: RebalancerMinAmountType;
|
|
646
|
-
min: string | number;
|
|
647
|
-
target: string | number;
|
|
648
|
-
}>;
|
|
1751
|
+
buffer: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
649
1752
|
}, "strip", z.ZodTypeAny, {
|
|
650
|
-
minAmount: {
|
|
651
|
-
type: RebalancerMinAmountType;
|
|
652
|
-
min: string | number;
|
|
653
|
-
target: string | number;
|
|
654
|
-
};
|
|
655
1753
|
bridge: string;
|
|
656
|
-
|
|
1754
|
+
buffer: string | number;
|
|
657
1755
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
658
|
-
|
|
1756
|
+
bridgeLockTime?: number | undefined;
|
|
659
1757
|
override?: Record<string, z.objectOutputType<{
|
|
660
1758
|
bridge: z.ZodOptional<z.ZodString>;
|
|
661
1759
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
662
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
663
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1760
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
664
1761
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
665
1762
|
}, {
|
|
1763
|
+
bridge: string;
|
|
1764
|
+
buffer: string | number;
|
|
1765
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1766
|
+
bridgeLockTime?: number | undefined;
|
|
1767
|
+
override?: Record<string, z.objectInputType<{
|
|
1768
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1769
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1770
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1771
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1772
|
+
}>>;
|
|
1773
|
+
}, "strip", z.ZodTypeAny, {
|
|
1774
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
1775
|
+
chains: Record<string, {
|
|
1776
|
+
bridge: string;
|
|
1777
|
+
buffer: string | number;
|
|
1778
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1779
|
+
bridgeLockTime?: number | undefined;
|
|
1780
|
+
override?: Record<string, z.objectOutputType<{
|
|
1781
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1782
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1783
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1784
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1785
|
+
}>;
|
|
1786
|
+
}, {
|
|
1787
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
1788
|
+
chains: Record<string, {
|
|
1789
|
+
bridge: string;
|
|
1790
|
+
buffer: string | number;
|
|
1791
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1792
|
+
bridgeLockTime?: number | undefined;
|
|
1793
|
+
override?: Record<string, z.objectInputType<{
|
|
1794
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1795
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1796
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1797
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1798
|
+
}>;
|
|
1799
|
+
}>]>, "many">]>, ({
|
|
1800
|
+
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
1801
|
+
chains: Record<string, {
|
|
1802
|
+
weighted: {
|
|
1803
|
+
weight: bigint;
|
|
1804
|
+
tolerance: bigint;
|
|
1805
|
+
};
|
|
1806
|
+
bridge: string;
|
|
1807
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1808
|
+
bridgeLockTime?: number | undefined;
|
|
1809
|
+
override?: Record<string, z.objectOutputType<{
|
|
1810
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1811
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1812
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1813
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1814
|
+
}>;
|
|
1815
|
+
} | {
|
|
1816
|
+
rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
|
|
1817
|
+
chains: Record<string, {
|
|
666
1818
|
minAmount: {
|
|
667
1819
|
type: RebalancerMinAmountType;
|
|
668
1820
|
min: string | number;
|
|
669
1821
|
target: string | number;
|
|
670
1822
|
};
|
|
671
1823
|
bridge: string;
|
|
672
|
-
bridgeLockTime: number;
|
|
673
1824
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
674
|
-
|
|
1825
|
+
bridgeLockTime?: number | undefined;
|
|
1826
|
+
override?: Record<string, z.objectOutputType<{
|
|
1827
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1828
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1829
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1830
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1831
|
+
}>;
|
|
1832
|
+
} | {
|
|
1833
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
1834
|
+
chains: Record<string, {
|
|
1835
|
+
bridge: string;
|
|
1836
|
+
buffer: string | number;
|
|
1837
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1838
|
+
bridgeLockTime?: number | undefined;
|
|
1839
|
+
override?: Record<string, z.objectOutputType<{
|
|
1840
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1841
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1842
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1843
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1844
|
+
}>;
|
|
1845
|
+
})[], {
|
|
1846
|
+
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
1847
|
+
chains: Record<string, {
|
|
1848
|
+
weighted: {
|
|
1849
|
+
weight: string | number;
|
|
1850
|
+
tolerance: string | number;
|
|
1851
|
+
};
|
|
1852
|
+
bridge: string;
|
|
1853
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1854
|
+
bridgeLockTime?: number | undefined;
|
|
675
1855
|
override?: Record<string, z.objectInputType<{
|
|
676
1856
|
bridge: z.ZodOptional<z.ZodString>;
|
|
677
1857
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
678
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
679
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1858
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
680
1859
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
681
|
-
}
|
|
682
|
-
}
|
|
1860
|
+
}>;
|
|
1861
|
+
} | {
|
|
683
1862
|
rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
|
|
684
1863
|
chains: Record<string, {
|
|
685
1864
|
minAmount: {
|
|
@@ -688,17 +1867,44 @@ export declare const RebalancerConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
688
1867
|
target: string | number;
|
|
689
1868
|
};
|
|
690
1869
|
bridge: string;
|
|
691
|
-
bridgeLockTime: number;
|
|
692
1870
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
693
|
-
|
|
694
|
-
override?: Record<string, z.
|
|
1871
|
+
bridgeLockTime?: number | undefined;
|
|
1872
|
+
override?: Record<string, z.objectInputType<{
|
|
695
1873
|
bridge: z.ZodOptional<z.ZodString>;
|
|
696
1874
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
697
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
698
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1875
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
699
1876
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
700
1877
|
}>;
|
|
701
|
-
}
|
|
1878
|
+
} | {
|
|
1879
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
1880
|
+
chains: Record<string, {
|
|
1881
|
+
bridge: string;
|
|
1882
|
+
buffer: string | number;
|
|
1883
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1884
|
+
bridgeLockTime?: number | undefined;
|
|
1885
|
+
override?: Record<string, z.objectInputType<{
|
|
1886
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1887
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1888
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1889
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1890
|
+
}>;
|
|
1891
|
+
} | ({
|
|
1892
|
+
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
1893
|
+
chains: Record<string, {
|
|
1894
|
+
weighted: {
|
|
1895
|
+
weight: string | number;
|
|
1896
|
+
tolerance: string | number;
|
|
1897
|
+
};
|
|
1898
|
+
bridge: string;
|
|
1899
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1900
|
+
bridgeLockTime?: number | undefined;
|
|
1901
|
+
override?: Record<string, z.objectInputType<{
|
|
1902
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1903
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1904
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1905
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1906
|
+
}>;
|
|
1907
|
+
} | {
|
|
702
1908
|
rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
|
|
703
1909
|
chains: Record<string, {
|
|
704
1910
|
minAmount: {
|
|
@@ -707,20 +1913,31 @@ export declare const RebalancerConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
707
1913
|
target: string | number;
|
|
708
1914
|
};
|
|
709
1915
|
bridge: string;
|
|
710
|
-
bridgeLockTime: number;
|
|
711
1916
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
712
|
-
|
|
1917
|
+
bridgeLockTime?: number | undefined;
|
|
1918
|
+
override?: Record<string, z.objectInputType<{
|
|
1919
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1920
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1921
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1922
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1923
|
+
}>;
|
|
1924
|
+
} | {
|
|
1925
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
1926
|
+
chains: Record<string, {
|
|
1927
|
+
bridge: string;
|
|
1928
|
+
buffer: string | number;
|
|
1929
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1930
|
+
bridgeLockTime?: number | undefined;
|
|
713
1931
|
override?: Record<string, z.objectInputType<{
|
|
714
1932
|
bridge: z.ZodOptional<z.ZodString>;
|
|
715
1933
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
716
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
717
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1934
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
718
1935
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
719
1936
|
}>;
|
|
720
|
-
}
|
|
1937
|
+
})[]>;
|
|
721
1938
|
}, "strip", z.ZodTypeAny, {
|
|
722
1939
|
warpRouteId: string;
|
|
723
|
-
strategy: {
|
|
1940
|
+
strategy: ({
|
|
724
1941
|
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
725
1942
|
chains: Record<string, {
|
|
726
1943
|
weighted: {
|
|
@@ -728,14 +1945,12 @@ export declare const RebalancerConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
728
1945
|
tolerance: bigint;
|
|
729
1946
|
};
|
|
730
1947
|
bridge: string;
|
|
731
|
-
bridgeLockTime: number;
|
|
732
1948
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
733
|
-
|
|
1949
|
+
bridgeLockTime?: number | undefined;
|
|
734
1950
|
override?: Record<string, z.objectOutputType<{
|
|
735
1951
|
bridge: z.ZodOptional<z.ZodString>;
|
|
736
1952
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
737
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
738
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1953
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
739
1954
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
740
1955
|
}>;
|
|
741
1956
|
} | {
|
|
@@ -747,17 +1962,28 @@ export declare const RebalancerConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
747
1962
|
target: string | number;
|
|
748
1963
|
};
|
|
749
1964
|
bridge: string;
|
|
750
|
-
bridgeLockTime: number;
|
|
751
1965
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
752
|
-
|
|
1966
|
+
bridgeLockTime?: number | undefined;
|
|
1967
|
+
override?: Record<string, z.objectOutputType<{
|
|
1968
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
1969
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
1970
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1971
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
1972
|
+
}>;
|
|
1973
|
+
} | {
|
|
1974
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
1975
|
+
chains: Record<string, {
|
|
1976
|
+
bridge: string;
|
|
1977
|
+
buffer: string | number;
|
|
1978
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
1979
|
+
bridgeLockTime?: number | undefined;
|
|
753
1980
|
override?: Record<string, z.objectOutputType<{
|
|
754
1981
|
bridge: z.ZodOptional<z.ZodString>;
|
|
755
1982
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
756
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
757
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1983
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
758
1984
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
759
1985
|
}>;
|
|
760
|
-
};
|
|
1986
|
+
})[];
|
|
761
1987
|
}, {
|
|
762
1988
|
warpRouteId: string;
|
|
763
1989
|
strategy: {
|
|
@@ -768,14 +1994,58 @@ export declare const RebalancerConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
768
1994
|
tolerance: string | number;
|
|
769
1995
|
};
|
|
770
1996
|
bridge: string;
|
|
771
|
-
bridgeLockTime: number;
|
|
772
1997
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
773
|
-
|
|
1998
|
+
bridgeLockTime?: number | undefined;
|
|
1999
|
+
override?: Record<string, z.objectInputType<{
|
|
2000
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
2001
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
2002
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
2003
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
2004
|
+
}>;
|
|
2005
|
+
} | {
|
|
2006
|
+
rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
|
|
2007
|
+
chains: Record<string, {
|
|
2008
|
+
minAmount: {
|
|
2009
|
+
type: RebalancerMinAmountType;
|
|
2010
|
+
min: string | number;
|
|
2011
|
+
target: string | number;
|
|
2012
|
+
};
|
|
2013
|
+
bridge: string;
|
|
2014
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
2015
|
+
bridgeLockTime?: number | undefined;
|
|
2016
|
+
override?: Record<string, z.objectInputType<{
|
|
2017
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
2018
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
2019
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
2020
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
2021
|
+
}>;
|
|
2022
|
+
} | {
|
|
2023
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
2024
|
+
chains: Record<string, {
|
|
2025
|
+
bridge: string;
|
|
2026
|
+
buffer: string | number;
|
|
2027
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
2028
|
+
bridgeLockTime?: number | undefined;
|
|
2029
|
+
override?: Record<string, z.objectInputType<{
|
|
2030
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
2031
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
2032
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
2033
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
2034
|
+
}>;
|
|
2035
|
+
} | ({
|
|
2036
|
+
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
2037
|
+
chains: Record<string, {
|
|
2038
|
+
weighted: {
|
|
2039
|
+
weight: string | number;
|
|
2040
|
+
tolerance: string | number;
|
|
2041
|
+
};
|
|
2042
|
+
bridge: string;
|
|
2043
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
2044
|
+
bridgeLockTime?: number | undefined;
|
|
774
2045
|
override?: Record<string, z.objectInputType<{
|
|
775
2046
|
bridge: z.ZodOptional<z.ZodString>;
|
|
776
2047
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
777
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
778
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2048
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
779
2049
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
780
2050
|
}>;
|
|
781
2051
|
} | {
|
|
@@ -787,20 +2057,31 @@ export declare const RebalancerConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
787
2057
|
target: string | number;
|
|
788
2058
|
};
|
|
789
2059
|
bridge: string;
|
|
790
|
-
bridgeLockTime: number;
|
|
791
2060
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
792
|
-
|
|
2061
|
+
bridgeLockTime?: number | undefined;
|
|
2062
|
+
override?: Record<string, z.objectInputType<{
|
|
2063
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
2064
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
2065
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
2066
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
2067
|
+
}>;
|
|
2068
|
+
} | {
|
|
2069
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
2070
|
+
chains: Record<string, {
|
|
2071
|
+
bridge: string;
|
|
2072
|
+
buffer: string | number;
|
|
2073
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
2074
|
+
bridgeLockTime?: number | undefined;
|
|
793
2075
|
override?: Record<string, z.objectInputType<{
|
|
794
2076
|
bridge: z.ZodOptional<z.ZodString>;
|
|
795
2077
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
796
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
797
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2078
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
798
2079
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
799
2080
|
}>;
|
|
800
|
-
};
|
|
2081
|
+
})[];
|
|
801
2082
|
}>, {
|
|
802
2083
|
warpRouteId: string;
|
|
803
|
-
strategy: {
|
|
2084
|
+
strategy: ({
|
|
804
2085
|
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
805
2086
|
chains: Record<string, {
|
|
806
2087
|
weighted: {
|
|
@@ -808,14 +2089,12 @@ export declare const RebalancerConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
808
2089
|
tolerance: bigint;
|
|
809
2090
|
};
|
|
810
2091
|
bridge: string;
|
|
811
|
-
bridgeLockTime: number;
|
|
812
2092
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
813
|
-
|
|
2093
|
+
bridgeLockTime?: number | undefined;
|
|
814
2094
|
override?: Record<string, z.objectOutputType<{
|
|
815
2095
|
bridge: z.ZodOptional<z.ZodString>;
|
|
816
2096
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
817
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
818
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2097
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
819
2098
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
820
2099
|
}>;
|
|
821
2100
|
} | {
|
|
@@ -827,17 +2106,28 @@ export declare const RebalancerConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
827
2106
|
target: string | number;
|
|
828
2107
|
};
|
|
829
2108
|
bridge: string;
|
|
830
|
-
bridgeLockTime: number;
|
|
831
2109
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
832
|
-
|
|
2110
|
+
bridgeLockTime?: number | undefined;
|
|
2111
|
+
override?: Record<string, z.objectOutputType<{
|
|
2112
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
2113
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
2114
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
2115
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
2116
|
+
}>;
|
|
2117
|
+
} | {
|
|
2118
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
2119
|
+
chains: Record<string, {
|
|
2120
|
+
bridge: string;
|
|
2121
|
+
buffer: string | number;
|
|
2122
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
2123
|
+
bridgeLockTime?: number | undefined;
|
|
833
2124
|
override?: Record<string, z.objectOutputType<{
|
|
834
2125
|
bridge: z.ZodOptional<z.ZodString>;
|
|
835
2126
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
836
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
837
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2127
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
838
2128
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
839
2129
|
}>;
|
|
840
|
-
};
|
|
2130
|
+
})[];
|
|
841
2131
|
}, {
|
|
842
2132
|
warpRouteId: string;
|
|
843
2133
|
strategy: {
|
|
@@ -848,14 +2138,58 @@ export declare const RebalancerConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
848
2138
|
tolerance: string | number;
|
|
849
2139
|
};
|
|
850
2140
|
bridge: string;
|
|
851
|
-
bridgeLockTime: number;
|
|
852
2141
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
853
|
-
|
|
2142
|
+
bridgeLockTime?: number | undefined;
|
|
2143
|
+
override?: Record<string, z.objectInputType<{
|
|
2144
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
2145
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
2146
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
2147
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
2148
|
+
}>;
|
|
2149
|
+
} | {
|
|
2150
|
+
rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
|
|
2151
|
+
chains: Record<string, {
|
|
2152
|
+
minAmount: {
|
|
2153
|
+
type: RebalancerMinAmountType;
|
|
2154
|
+
min: string | number;
|
|
2155
|
+
target: string | number;
|
|
2156
|
+
};
|
|
2157
|
+
bridge: string;
|
|
2158
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
2159
|
+
bridgeLockTime?: number | undefined;
|
|
2160
|
+
override?: Record<string, z.objectInputType<{
|
|
2161
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
2162
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
2163
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
2164
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
2165
|
+
}>;
|
|
2166
|
+
} | {
|
|
2167
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
2168
|
+
chains: Record<string, {
|
|
2169
|
+
bridge: string;
|
|
2170
|
+
buffer: string | number;
|
|
2171
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
2172
|
+
bridgeLockTime?: number | undefined;
|
|
2173
|
+
override?: Record<string, z.objectInputType<{
|
|
2174
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
2175
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
2176
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
2177
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
2178
|
+
}>;
|
|
2179
|
+
} | ({
|
|
2180
|
+
rebalanceStrategy: RebalancerStrategyOptions.Weighted;
|
|
2181
|
+
chains: Record<string, {
|
|
2182
|
+
weighted: {
|
|
2183
|
+
weight: string | number;
|
|
2184
|
+
tolerance: string | number;
|
|
2185
|
+
};
|
|
2186
|
+
bridge: string;
|
|
2187
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
2188
|
+
bridgeLockTime?: number | undefined;
|
|
854
2189
|
override?: Record<string, z.objectInputType<{
|
|
855
2190
|
bridge: z.ZodOptional<z.ZodString>;
|
|
856
2191
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
857
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
858
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2192
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
859
2193
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
860
2194
|
}>;
|
|
861
2195
|
} | {
|
|
@@ -867,22 +2201,48 @@ export declare const RebalancerConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
867
2201
|
target: string | number;
|
|
868
2202
|
};
|
|
869
2203
|
bridge: string;
|
|
870
|
-
bridgeLockTime: number;
|
|
871
2204
|
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
872
|
-
|
|
2205
|
+
bridgeLockTime?: number | undefined;
|
|
2206
|
+
override?: Record<string, z.objectInputType<{
|
|
2207
|
+
bridge: z.ZodOptional<z.ZodString>;
|
|
2208
|
+
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
2209
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
2210
|
+
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
2211
|
+
}>;
|
|
2212
|
+
} | {
|
|
2213
|
+
rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
|
|
2214
|
+
chains: Record<string, {
|
|
2215
|
+
bridge: string;
|
|
2216
|
+
buffer: string | number;
|
|
2217
|
+
bridgeMinAcceptedAmount?: string | number | undefined;
|
|
2218
|
+
bridgeLockTime?: number | undefined;
|
|
873
2219
|
override?: Record<string, z.objectInputType<{
|
|
874
2220
|
bridge: z.ZodOptional<z.ZodString>;
|
|
875
2221
|
bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
876
|
-
bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number
|
|
877
|
-
bridgeIsWarp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2222
|
+
bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
878
2223
|
}, z.ZodTypeAny, "passthrough">> | undefined;
|
|
879
2224
|
}>;
|
|
880
|
-
};
|
|
2225
|
+
})[];
|
|
881
2226
|
}>;
|
|
882
2227
|
export type RebalancerWeightedChainConfig = z.infer<typeof RebalancerWeightedChainConfigSchema>;
|
|
883
2228
|
export type RebalancerMinAmountChainConfig = z.infer<typeof RebalancerMinAmountConfigSchema>;
|
|
2229
|
+
export type CollateralDeficitChainConfig = z.infer<typeof CollateralDeficitChainConfigSchema>;
|
|
884
2230
|
export type StrategyConfig = z.infer<typeof StrategyConfigSchema>;
|
|
885
2231
|
export type RebalancerConfig = z.infer<typeof RebalancerConfigSchema>;
|
|
886
2232
|
export type RebalancerConfigFileInput = z.input<typeof RebalancerConfigSchema>;
|
|
2233
|
+
/**
|
|
2234
|
+
* Get all unique chain names from strategy config array.
|
|
2235
|
+
*/
|
|
2236
|
+
export declare function getStrategyChainNames(strategies: StrategyConfig[]): string[];
|
|
2237
|
+
/**
|
|
2238
|
+
* Get chain config from the first strategy that has it.
|
|
2239
|
+
* Returns undefined if no strategy has the chain.
|
|
2240
|
+
*/
|
|
2241
|
+
export declare function getStrategyChainConfig(strategies: StrategyConfig[], chainName: string): StrategyConfig['chains'][string] | undefined;
|
|
2242
|
+
/**
|
|
2243
|
+
* Get all unique bridge addresses from all strategies and their overrides.
|
|
2244
|
+
* This is used by ActionTracker to detect inflight rebalances across all configured bridges.
|
|
2245
|
+
*/
|
|
2246
|
+
export declare function getAllBridges(strategies: StrategyConfig[]): string[];
|
|
887
2247
|
export {};
|
|
888
2248
|
//# sourceMappingURL=types.d.ts.map
|