@chainflip/processor 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/100/common.cjs +16 -26
- package/dist/100/common.d.cts +84 -171
- package/dist/100/common.d.ts +84 -171
- package/dist/100/common.mjs +16 -26
- package/dist/100/funding/failedFundingAttempt.d.cts +2 -2
- package/dist/100/funding/failedFundingAttempt.d.ts +2 -2
- package/dist/100/funding/funded.d.cts +2 -2
- package/dist/100/funding/funded.d.ts +2 -2
- package/dist/100/funding/redemptionRequested.d.cts +2 -2
- package/dist/100/funding/redemptionRequested.d.ts +2 -2
- package/dist/100/liquidityPools/limitOrderUpdated.cjs +1 -1
- package/dist/100/liquidityPools/limitOrderUpdated.d.cts +10 -106
- package/dist/100/liquidityPools/limitOrderUpdated.d.ts +10 -106
- package/dist/100/liquidityPools/limitOrderUpdated.mjs +2 -2
- package/dist/100/liquidityPools/rangeOrderUpdated.cjs +1 -1
- package/dist/100/liquidityPools/rangeOrderUpdated.mjs +2 -2
- package/dist/100/liquidityProvider/accountCredited.d.cts +2 -2
- package/dist/100/liquidityProvider/accountCredited.d.ts +2 -2
- package/dist/100/liquidityProvider/accountDebited.d.cts +2 -2
- package/dist/100/liquidityProvider/accountDebited.d.ts +2 -2
- package/dist/100/liquidityProvider/liquidityDepositAddressReady.d.cts +2 -2
- package/dist/100/liquidityProvider/liquidityDepositAddressReady.d.ts +2 -2
- package/dist/100/swapping/swapAmountTooLow.d.cts +5 -19
- package/dist/100/swapping/swapAmountTooLow.d.ts +5 -19
- package/dist/100/swapping/swapScheduled.d.cts +5 -19
- package/dist/100/swapping/swapScheduled.d.ts +5 -19
- package/dist/100/validator/palletConfigUpdated.d.cts +90 -218
- package/dist/100/validator/palletConfigUpdated.d.ts +90 -218
- package/dist/102/common.cjs +9 -27
- package/dist/102/common.d.cts +61 -167
- package/dist/102/common.d.ts +61 -167
- package/dist/102/common.mjs +9 -27
- package/dist/102/validator/palletConfigUpdated.d.cts +95 -237
- package/dist/102/validator/palletConfigUpdated.d.ts +95 -237
- package/dist/111/common.cjs +7 -2
- package/dist/111/common.d.cts +21 -2
- package/dist/111/common.d.ts +21 -2
- package/dist/111/common.mjs +7 -2
- package/dist/111/liquidityPools/limitOrderUpdated.cjs +1 -1
- package/dist/111/liquidityPools/limitOrderUpdated.d.cts +10 -106
- package/dist/111/liquidityPools/limitOrderUpdated.d.ts +10 -106
- package/dist/111/liquidityPools/limitOrderUpdated.mjs +2 -2
- package/dist/111/liquidityPools/rangeOrderUpdated.cjs +1 -1
- package/dist/111/liquidityPools/rangeOrderUpdated.mjs +2 -2
- package/dist/111/liquidityPools/scheduledLimitOrderUpdateDispatchFailure.d.cts +4 -4
- package/dist/111/liquidityPools/scheduledLimitOrderUpdateDispatchFailure.d.ts +4 -4
- package/dist/120/bitcoinIngressEgress/depositIgnored.cjs +1 -1
- package/dist/120/bitcoinIngressEgress/depositIgnored.mjs +2 -2
- package/dist/120/bitcoinIngressEgress/depositReceived.cjs +1 -1
- package/dist/120/bitcoinIngressEgress/depositReceived.d.cts +10 -38
- package/dist/120/bitcoinIngressEgress/depositReceived.d.ts +10 -38
- package/dist/120/bitcoinIngressEgress/depositReceived.mjs +2 -2
- package/dist/120/common.cjs +5 -35
- package/dist/120/common.d.cts +9 -185
- package/dist/120/common.d.ts +9 -185
- package/dist/120/common.mjs +6 -36
- package/dist/120/ethereumIngressEgress/depositIgnored.cjs +1 -1
- package/dist/120/ethereumIngressEgress/depositIgnored.mjs +2 -2
- package/dist/120/ethereumIngressEgress/depositReceived.cjs +1 -1
- package/dist/120/ethereumIngressEgress/depositReceived.d.cts +10 -38
- package/dist/120/ethereumIngressEgress/depositReceived.d.ts +10 -38
- package/dist/120/ethereumIngressEgress/depositReceived.mjs +2 -2
- package/dist/120/polkadotIngressEgress/depositIgnored.cjs +1 -1
- package/dist/120/polkadotIngressEgress/depositIgnored.mjs +2 -2
- package/dist/120/polkadotIngressEgress/depositReceived.cjs +1 -1
- package/dist/120/polkadotIngressEgress/depositReceived.d.cts +10 -38
- package/dist/120/polkadotIngressEgress/depositReceived.d.ts +10 -38
- package/dist/120/polkadotIngressEgress/depositReceived.mjs +2 -2
- package/dist/120/swapping/swapEgressIgnored.d.cts +2 -2
- package/dist/120/swapping/swapEgressIgnored.d.ts +2 -2
- package/dist/120/swapping/swapEgressScheduled.d.cts +2 -2
- package/dist/120/swapping/swapEgressScheduled.d.ts +2 -2
- package/dist/131/bitcoinIngressEgress/depositIgnored.cjs +1 -1
- package/dist/131/bitcoinIngressEgress/depositIgnored.mjs +2 -2
- package/dist/131/bitcoinIngressEgress/depositReceived.cjs +1 -1
- package/dist/131/bitcoinIngressEgress/depositReceived.d.cts +10 -38
- package/dist/131/bitcoinIngressEgress/depositReceived.d.ts +10 -38
- package/dist/131/bitcoinIngressEgress/depositReceived.mjs +2 -2
- package/dist/131/common.cjs +11 -21
- package/dist/131/common.d.cts +32 -121
- package/dist/131/common.d.ts +32 -121
- package/dist/131/common.mjs +14 -24
- package/dist/131/ethereumIngressEgress/depositIgnored.cjs +1 -1
- package/dist/131/ethereumIngressEgress/depositIgnored.mjs +2 -2
- package/dist/131/ethereumIngressEgress/depositReceived.cjs +1 -1
- package/dist/131/ethereumIngressEgress/depositReceived.d.cts +10 -38
- package/dist/131/ethereumIngressEgress/depositReceived.d.ts +10 -38
- package/dist/131/ethereumIngressEgress/depositReceived.mjs +2 -2
- package/dist/131/liquidityPools/limitOrderUpdated.cjs +1 -1
- package/dist/131/liquidityPools/limitOrderUpdated.d.cts +10 -106
- package/dist/131/liquidityPools/limitOrderUpdated.d.ts +10 -106
- package/dist/131/liquidityPools/limitOrderUpdated.mjs +2 -2
- package/dist/131/liquidityPools/rangeOrderUpdated.cjs +1 -1
- package/dist/131/liquidityPools/rangeOrderUpdated.mjs +2 -2
- package/dist/131/swapping/ccmFailed.d.cts +5 -19
- package/dist/131/swapping/ccmFailed.d.ts +5 -19
- package/dist/131/swapping/swapScheduled.d.cts +5 -19
- package/dist/131/swapping/swapScheduled.d.ts +5 -19
- package/dist/141/arbitrumIngressEgress/depositBoosted.cjs +1 -1
- package/dist/141/arbitrumIngressEgress/depositBoosted.d.cts +15 -57
- package/dist/141/arbitrumIngressEgress/depositBoosted.d.ts +15 -57
- package/dist/141/arbitrumIngressEgress/depositBoosted.mjs +2 -2
- package/dist/141/arbitrumIngressEgress/depositFinalised.cjs +1 -1
- package/dist/141/arbitrumIngressEgress/depositFinalised.d.cts +15 -57
- package/dist/141/arbitrumIngressEgress/depositFinalised.d.ts +15 -57
- package/dist/141/arbitrumIngressEgress/depositFinalised.mjs +2 -2
- package/dist/141/arbitrumIngressEgress/depositIgnored.cjs +1 -1
- package/dist/141/arbitrumIngressEgress/depositIgnored.mjs +2 -2
- package/dist/141/bitcoinIngressEgress/depositBoosted.cjs +1 -1
- package/dist/141/bitcoinIngressEgress/depositBoosted.d.cts +15 -57
- package/dist/141/bitcoinIngressEgress/depositBoosted.d.ts +15 -57
- package/dist/141/bitcoinIngressEgress/depositBoosted.mjs +2 -2
- package/dist/141/bitcoinIngressEgress/depositFinalised.cjs +1 -1
- package/dist/141/bitcoinIngressEgress/depositFinalised.d.cts +15 -57
- package/dist/141/bitcoinIngressEgress/depositFinalised.d.ts +15 -57
- package/dist/141/bitcoinIngressEgress/depositFinalised.mjs +2 -2
- package/dist/141/common.cjs +12 -52
- package/dist/141/common.d.cts +35 -320
- package/dist/141/common.d.ts +35 -320
- package/dist/141/common.mjs +15 -55
- package/dist/141/ethereumIngressEgress/depositBoosted.cjs +1 -1
- package/dist/141/ethereumIngressEgress/depositBoosted.d.cts +15 -57
- package/dist/141/ethereumIngressEgress/depositBoosted.d.ts +15 -57
- package/dist/141/ethereumIngressEgress/depositBoosted.mjs +2 -2
- package/dist/141/ethereumIngressEgress/depositFinalised.cjs +1 -1
- package/dist/141/ethereumIngressEgress/depositFinalised.d.cts +15 -57
- package/dist/141/ethereumIngressEgress/depositFinalised.d.ts +15 -57
- package/dist/141/ethereumIngressEgress/depositFinalised.mjs +2 -2
- package/dist/141/liquidityPools/limitOrderUpdated.cjs +1 -1
- package/dist/141/liquidityPools/limitOrderUpdated.d.cts +10 -106
- package/dist/141/liquidityPools/limitOrderUpdated.d.ts +10 -106
- package/dist/141/liquidityPools/limitOrderUpdated.mjs +2 -2
- package/dist/141/liquidityPools/rangeOrderUpdated.cjs +1 -1
- package/dist/141/liquidityPools/rangeOrderUpdated.mjs +2 -2
- package/dist/141/polkadotIngressEgress/depositBoosted.cjs +1 -1
- package/dist/141/polkadotIngressEgress/depositBoosted.d.cts +15 -57
- package/dist/141/polkadotIngressEgress/depositBoosted.d.ts +15 -57
- package/dist/141/polkadotIngressEgress/depositBoosted.mjs +2 -2
- package/dist/141/polkadotIngressEgress/depositFinalised.cjs +1 -1
- package/dist/141/polkadotIngressEgress/depositFinalised.d.cts +15 -57
- package/dist/141/polkadotIngressEgress/depositFinalised.d.ts +15 -57
- package/dist/141/polkadotIngressEgress/depositFinalised.mjs +2 -2
- package/dist/141/swapping/ccmFailed.d.cts +5 -19
- package/dist/141/swapping/ccmFailed.d.ts +5 -19
- package/dist/141/swapping/swapScheduled.d.cts +5 -19
- package/dist/141/swapping/swapScheduled.d.ts +5 -19
- package/dist/Processor.cjs +2 -2
- package/dist/Processor.mjs +2 -2
- package/dist/types.d.cts +1 -3
- package/dist/types.d.ts +1 -3
- package/package.json +1 -1
|
@@ -15,42 +15,22 @@ declare const polkadotIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
15
15
|
ingressFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
16
16
|
action: z.ZodUnion<[z.ZodObject<{
|
|
17
17
|
__kind: z.ZodLiteral<"Swap">;
|
|
18
|
-
|
|
19
|
-
swapId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
20
|
-
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
swapId: bigint;
|
|
22
|
-
}, {
|
|
23
|
-
swapId: string | number;
|
|
24
|
-
}>;
|
|
18
|
+
swapId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
25
19
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
value: {
|
|
27
|
-
swapId: bigint;
|
|
28
|
-
};
|
|
29
20
|
__kind: "Swap";
|
|
21
|
+
swapId: bigint;
|
|
30
22
|
}, {
|
|
31
|
-
value: {
|
|
32
|
-
swapId: string | number;
|
|
33
|
-
};
|
|
34
23
|
__kind: "Swap";
|
|
24
|
+
swapId: string | number;
|
|
35
25
|
}>, z.ZodObject<{
|
|
36
26
|
__kind: z.ZodLiteral<"LiquidityProvision">;
|
|
37
|
-
|
|
38
|
-
lpAccount: z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, `0x${string}`, string>]>, string, string>;
|
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
lpAccount: string;
|
|
41
|
-
}, {
|
|
42
|
-
lpAccount: string;
|
|
43
|
-
}>;
|
|
27
|
+
lpAccount: z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, `0x${string}`, string>]>, string, string>;
|
|
44
28
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
value: {
|
|
46
|
-
lpAccount: string;
|
|
47
|
-
};
|
|
48
29
|
__kind: "LiquidityProvision";
|
|
30
|
+
lpAccount: string;
|
|
49
31
|
}, {
|
|
50
|
-
value: {
|
|
51
|
-
lpAccount: string;
|
|
52
|
-
};
|
|
53
32
|
__kind: "LiquidityProvision";
|
|
33
|
+
lpAccount: string;
|
|
54
34
|
}>, z.ZodObject<{
|
|
55
35
|
__kind: z.ZodLiteral<"CcmTransfer">;
|
|
56
36
|
value: z.ZodObject<{
|
|
@@ -83,23 +63,13 @@ declare const polkadotIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
83
63
|
__kind: "NoAction";
|
|
84
64
|
}>, z.ZodObject<{
|
|
85
65
|
__kind: z.ZodLiteral<"BoostersCredited">;
|
|
86
|
-
|
|
87
|
-
prewitnessedDepositId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
88
|
-
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
prewitnessedDepositId: bigint;
|
|
90
|
-
}, {
|
|
91
|
-
prewitnessedDepositId: string | number;
|
|
92
|
-
}>;
|
|
66
|
+
prewitnessedDepositId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
93
67
|
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
value: {
|
|
95
|
-
prewitnessedDepositId: bigint;
|
|
96
|
-
};
|
|
97
68
|
__kind: "BoostersCredited";
|
|
69
|
+
prewitnessedDepositId: bigint;
|
|
98
70
|
}, {
|
|
99
|
-
value: {
|
|
100
|
-
prewitnessedDepositId: string | number;
|
|
101
|
-
};
|
|
102
71
|
__kind: "BoostersCredited";
|
|
72
|
+
prewitnessedDepositId: string | number;
|
|
103
73
|
}>]>;
|
|
104
74
|
channelId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
105
75
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -109,15 +79,11 @@ declare const polkadotIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
109
79
|
asset: "Dot";
|
|
110
80
|
ingressFee: bigint;
|
|
111
81
|
action: {
|
|
112
|
-
value: {
|
|
113
|
-
swapId: bigint;
|
|
114
|
-
};
|
|
115
82
|
__kind: "Swap";
|
|
83
|
+
swapId: bigint;
|
|
116
84
|
} | {
|
|
117
|
-
value: {
|
|
118
|
-
lpAccount: string;
|
|
119
|
-
};
|
|
120
85
|
__kind: "LiquidityProvision";
|
|
86
|
+
lpAccount: string;
|
|
121
87
|
} | {
|
|
122
88
|
value: {
|
|
123
89
|
principalSwapId?: bigint | null | undefined;
|
|
@@ -127,10 +93,8 @@ declare const polkadotIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
127
93
|
} | {
|
|
128
94
|
__kind: "NoAction";
|
|
129
95
|
} | {
|
|
130
|
-
value: {
|
|
131
|
-
prewitnessedDepositId: bigint;
|
|
132
|
-
};
|
|
133
96
|
__kind: "BoostersCredited";
|
|
97
|
+
prewitnessedDepositId: bigint;
|
|
134
98
|
};
|
|
135
99
|
}, {
|
|
136
100
|
amount: string | number;
|
|
@@ -141,15 +105,11 @@ declare const polkadotIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
141
105
|
};
|
|
142
106
|
ingressFee: string | number;
|
|
143
107
|
action: {
|
|
144
|
-
value: {
|
|
145
|
-
swapId: string | number;
|
|
146
|
-
};
|
|
147
108
|
__kind: "Swap";
|
|
109
|
+
swapId: string | number;
|
|
148
110
|
} | {
|
|
149
|
-
value: {
|
|
150
|
-
lpAccount: string;
|
|
151
|
-
};
|
|
152
111
|
__kind: "LiquidityProvision";
|
|
112
|
+
lpAccount: string;
|
|
153
113
|
} | {
|
|
154
114
|
value: {
|
|
155
115
|
principalSwapId?: string | number | null | undefined;
|
|
@@ -159,10 +119,8 @@ declare const polkadotIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
159
119
|
} | {
|
|
160
120
|
__kind: "NoAction";
|
|
161
121
|
} | {
|
|
162
|
-
value: {
|
|
163
|
-
prewitnessedDepositId: string | number;
|
|
164
|
-
};
|
|
165
122
|
__kind: "BoostersCredited";
|
|
123
|
+
prewitnessedDepositId: string | number;
|
|
166
124
|
};
|
|
167
125
|
}>;
|
|
168
126
|
|
|
@@ -15,42 +15,22 @@ declare const polkadotIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
15
15
|
ingressFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
16
16
|
action: z.ZodUnion<[z.ZodObject<{
|
|
17
17
|
__kind: z.ZodLiteral<"Swap">;
|
|
18
|
-
|
|
19
|
-
swapId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
20
|
-
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
swapId: bigint;
|
|
22
|
-
}, {
|
|
23
|
-
swapId: string | number;
|
|
24
|
-
}>;
|
|
18
|
+
swapId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
25
19
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
value: {
|
|
27
|
-
swapId: bigint;
|
|
28
|
-
};
|
|
29
20
|
__kind: "Swap";
|
|
21
|
+
swapId: bigint;
|
|
30
22
|
}, {
|
|
31
|
-
value: {
|
|
32
|
-
swapId: string | number;
|
|
33
|
-
};
|
|
34
23
|
__kind: "Swap";
|
|
24
|
+
swapId: string | number;
|
|
35
25
|
}>, z.ZodObject<{
|
|
36
26
|
__kind: z.ZodLiteral<"LiquidityProvision">;
|
|
37
|
-
|
|
38
|
-
lpAccount: z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, `0x${string}`, string>]>, string, string>;
|
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
lpAccount: string;
|
|
41
|
-
}, {
|
|
42
|
-
lpAccount: string;
|
|
43
|
-
}>;
|
|
27
|
+
lpAccount: z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, `0x${string}`, string>]>, string, string>;
|
|
44
28
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
value: {
|
|
46
|
-
lpAccount: string;
|
|
47
|
-
};
|
|
48
29
|
__kind: "LiquidityProvision";
|
|
30
|
+
lpAccount: string;
|
|
49
31
|
}, {
|
|
50
|
-
value: {
|
|
51
|
-
lpAccount: string;
|
|
52
|
-
};
|
|
53
32
|
__kind: "LiquidityProvision";
|
|
33
|
+
lpAccount: string;
|
|
54
34
|
}>, z.ZodObject<{
|
|
55
35
|
__kind: z.ZodLiteral<"CcmTransfer">;
|
|
56
36
|
value: z.ZodObject<{
|
|
@@ -83,23 +63,13 @@ declare const polkadotIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
83
63
|
__kind: "NoAction";
|
|
84
64
|
}>, z.ZodObject<{
|
|
85
65
|
__kind: z.ZodLiteral<"BoostersCredited">;
|
|
86
|
-
|
|
87
|
-
prewitnessedDepositId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
88
|
-
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
prewitnessedDepositId: bigint;
|
|
90
|
-
}, {
|
|
91
|
-
prewitnessedDepositId: string | number;
|
|
92
|
-
}>;
|
|
66
|
+
prewitnessedDepositId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
93
67
|
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
value: {
|
|
95
|
-
prewitnessedDepositId: bigint;
|
|
96
|
-
};
|
|
97
68
|
__kind: "BoostersCredited";
|
|
69
|
+
prewitnessedDepositId: bigint;
|
|
98
70
|
}, {
|
|
99
|
-
value: {
|
|
100
|
-
prewitnessedDepositId: string | number;
|
|
101
|
-
};
|
|
102
71
|
__kind: "BoostersCredited";
|
|
72
|
+
prewitnessedDepositId: string | number;
|
|
103
73
|
}>]>;
|
|
104
74
|
channelId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
105
75
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -109,15 +79,11 @@ declare const polkadotIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
109
79
|
asset: "Dot";
|
|
110
80
|
ingressFee: bigint;
|
|
111
81
|
action: {
|
|
112
|
-
value: {
|
|
113
|
-
swapId: bigint;
|
|
114
|
-
};
|
|
115
82
|
__kind: "Swap";
|
|
83
|
+
swapId: bigint;
|
|
116
84
|
} | {
|
|
117
|
-
value: {
|
|
118
|
-
lpAccount: string;
|
|
119
|
-
};
|
|
120
85
|
__kind: "LiquidityProvision";
|
|
86
|
+
lpAccount: string;
|
|
121
87
|
} | {
|
|
122
88
|
value: {
|
|
123
89
|
principalSwapId?: bigint | null | undefined;
|
|
@@ -127,10 +93,8 @@ declare const polkadotIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
127
93
|
} | {
|
|
128
94
|
__kind: "NoAction";
|
|
129
95
|
} | {
|
|
130
|
-
value: {
|
|
131
|
-
prewitnessedDepositId: bigint;
|
|
132
|
-
};
|
|
133
96
|
__kind: "BoostersCredited";
|
|
97
|
+
prewitnessedDepositId: bigint;
|
|
134
98
|
};
|
|
135
99
|
}, {
|
|
136
100
|
amount: string | number;
|
|
@@ -141,15 +105,11 @@ declare const polkadotIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
141
105
|
};
|
|
142
106
|
ingressFee: string | number;
|
|
143
107
|
action: {
|
|
144
|
-
value: {
|
|
145
|
-
swapId: string | number;
|
|
146
|
-
};
|
|
147
108
|
__kind: "Swap";
|
|
109
|
+
swapId: string | number;
|
|
148
110
|
} | {
|
|
149
|
-
value: {
|
|
150
|
-
lpAccount: string;
|
|
151
|
-
};
|
|
152
111
|
__kind: "LiquidityProvision";
|
|
112
|
+
lpAccount: string;
|
|
153
113
|
} | {
|
|
154
114
|
value: {
|
|
155
115
|
principalSwapId?: string | number | null | undefined;
|
|
@@ -159,10 +119,8 @@ declare const polkadotIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
159
119
|
} | {
|
|
160
120
|
__kind: "NoAction";
|
|
161
121
|
} | {
|
|
162
|
-
value: {
|
|
163
|
-
prewitnessedDepositId: string | number;
|
|
164
|
-
};
|
|
165
122
|
__kind: "BoostersCredited";
|
|
123
|
+
prewitnessedDepositId: string | number;
|
|
166
124
|
};
|
|
167
125
|
}>;
|
|
168
126
|
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
cfPrimitivesChainsAssetsDotAsset,
|
|
5
5
|
hexString,
|
|
6
6
|
numberOrHex,
|
|
7
|
-
|
|
7
|
+
palletCfIngressEgressDepositAction
|
|
8
8
|
} from "../common.mjs";
|
|
9
9
|
var polkadotIngressEgressDepositFinalised = z.object({
|
|
10
10
|
depositAddress: hexString,
|
|
11
11
|
asset: cfPrimitivesChainsAssetsDotAsset,
|
|
12
12
|
amount: numberOrHex,
|
|
13
13
|
ingressFee: numberOrHex,
|
|
14
|
-
action:
|
|
14
|
+
action: palletCfIngressEgressDepositAction,
|
|
15
15
|
channelId: numberOrHex
|
|
16
16
|
});
|
|
17
17
|
export {
|
|
@@ -418,23 +418,13 @@ declare const swappingCcmFailed: z.ZodObject<{
|
|
|
418
418
|
__kind: "DepositChannel";
|
|
419
419
|
}>, z.ZodObject<{
|
|
420
420
|
__kind: z.ZodLiteral<"Vault">;
|
|
421
|
-
|
|
422
|
-
txHash: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
423
|
-
}, "strip", z.ZodTypeAny, {
|
|
424
|
-
txHash: `0x${string}`;
|
|
425
|
-
}, {
|
|
426
|
-
txHash: string;
|
|
427
|
-
}>;
|
|
421
|
+
txHash: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
428
422
|
}, "strip", z.ZodTypeAny, {
|
|
429
|
-
value: {
|
|
430
|
-
txHash: `0x${string}`;
|
|
431
|
-
};
|
|
432
423
|
__kind: "Vault";
|
|
424
|
+
txHash: `0x${string}`;
|
|
433
425
|
}, {
|
|
434
|
-
value: {
|
|
435
|
-
txHash: string;
|
|
436
|
-
};
|
|
437
426
|
__kind: "Vault";
|
|
427
|
+
txHash: string;
|
|
438
428
|
}>]>;
|
|
439
429
|
}, "strip", z.ZodTypeAny, {
|
|
440
430
|
destinationAddress: {
|
|
@@ -470,10 +460,8 @@ declare const swappingCcmFailed: z.ZodObject<{
|
|
|
470
460
|
};
|
|
471
461
|
__kind: "DepositChannel";
|
|
472
462
|
} | {
|
|
473
|
-
value: {
|
|
474
|
-
txHash: `0x${string}`;
|
|
475
|
-
};
|
|
476
463
|
__kind: "Vault";
|
|
464
|
+
txHash: `0x${string}`;
|
|
477
465
|
};
|
|
478
466
|
depositMetadata: {
|
|
479
467
|
sourceChain: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
|
|
@@ -552,10 +540,8 @@ declare const swappingCcmFailed: z.ZodObject<{
|
|
|
552
540
|
};
|
|
553
541
|
__kind: "DepositChannel";
|
|
554
542
|
} | {
|
|
555
|
-
value: {
|
|
556
|
-
txHash: string;
|
|
557
|
-
};
|
|
558
543
|
__kind: "Vault";
|
|
544
|
+
txHash: string;
|
|
559
545
|
};
|
|
560
546
|
depositMetadata: {
|
|
561
547
|
sourceChain: {
|
|
@@ -418,23 +418,13 @@ declare const swappingCcmFailed: z.ZodObject<{
|
|
|
418
418
|
__kind: "DepositChannel";
|
|
419
419
|
}>, z.ZodObject<{
|
|
420
420
|
__kind: z.ZodLiteral<"Vault">;
|
|
421
|
-
|
|
422
|
-
txHash: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
423
|
-
}, "strip", z.ZodTypeAny, {
|
|
424
|
-
txHash: `0x${string}`;
|
|
425
|
-
}, {
|
|
426
|
-
txHash: string;
|
|
427
|
-
}>;
|
|
421
|
+
txHash: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
428
422
|
}, "strip", z.ZodTypeAny, {
|
|
429
|
-
value: {
|
|
430
|
-
txHash: `0x${string}`;
|
|
431
|
-
};
|
|
432
423
|
__kind: "Vault";
|
|
424
|
+
txHash: `0x${string}`;
|
|
433
425
|
}, {
|
|
434
|
-
value: {
|
|
435
|
-
txHash: string;
|
|
436
|
-
};
|
|
437
426
|
__kind: "Vault";
|
|
427
|
+
txHash: string;
|
|
438
428
|
}>]>;
|
|
439
429
|
}, "strip", z.ZodTypeAny, {
|
|
440
430
|
destinationAddress: {
|
|
@@ -470,10 +460,8 @@ declare const swappingCcmFailed: z.ZodObject<{
|
|
|
470
460
|
};
|
|
471
461
|
__kind: "DepositChannel";
|
|
472
462
|
} | {
|
|
473
|
-
value: {
|
|
474
|
-
txHash: `0x${string}`;
|
|
475
|
-
};
|
|
476
463
|
__kind: "Vault";
|
|
464
|
+
txHash: `0x${string}`;
|
|
477
465
|
};
|
|
478
466
|
depositMetadata: {
|
|
479
467
|
sourceChain: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
|
|
@@ -552,10 +540,8 @@ declare const swappingCcmFailed: z.ZodObject<{
|
|
|
552
540
|
};
|
|
553
541
|
__kind: "DepositChannel";
|
|
554
542
|
} | {
|
|
555
|
-
value: {
|
|
556
|
-
txHash: string;
|
|
557
|
-
};
|
|
558
543
|
__kind: "Vault";
|
|
544
|
+
txHash: string;
|
|
559
545
|
};
|
|
560
546
|
depositMetadata: {
|
|
561
547
|
sourceChain: {
|
|
@@ -173,23 +173,13 @@ declare const swappingSwapScheduled: z.ZodObject<{
|
|
|
173
173
|
__kind: "DepositChannel";
|
|
174
174
|
}>, z.ZodObject<{
|
|
175
175
|
__kind: z.ZodLiteral<"Vault">;
|
|
176
|
-
|
|
177
|
-
txHash: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
178
|
-
}, "strip", z.ZodTypeAny, {
|
|
179
|
-
txHash: `0x${string}`;
|
|
180
|
-
}, {
|
|
181
|
-
txHash: string;
|
|
182
|
-
}>;
|
|
176
|
+
txHash: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
183
177
|
}, "strip", z.ZodTypeAny, {
|
|
184
|
-
value: {
|
|
185
|
-
txHash: `0x${string}`;
|
|
186
|
-
};
|
|
187
178
|
__kind: "Vault";
|
|
179
|
+
txHash: `0x${string}`;
|
|
188
180
|
}, {
|
|
189
|
-
value: {
|
|
190
|
-
txHash: string;
|
|
191
|
-
};
|
|
192
181
|
__kind: "Vault";
|
|
182
|
+
txHash: string;
|
|
193
183
|
}>]>;
|
|
194
184
|
swapType: z.ZodUnion<[z.ZodObject<{
|
|
195
185
|
__kind: z.ZodLiteral<"Swap">;
|
|
@@ -485,10 +475,8 @@ declare const swappingSwapScheduled: z.ZodObject<{
|
|
|
485
475
|
};
|
|
486
476
|
__kind: "DepositChannel";
|
|
487
477
|
} | {
|
|
488
|
-
value: {
|
|
489
|
-
txHash: `0x${string}`;
|
|
490
|
-
};
|
|
491
478
|
__kind: "Vault";
|
|
479
|
+
txHash: `0x${string}`;
|
|
492
480
|
};
|
|
493
481
|
swapType: {
|
|
494
482
|
value: {
|
|
@@ -582,10 +570,8 @@ declare const swappingSwapScheduled: z.ZodObject<{
|
|
|
582
570
|
};
|
|
583
571
|
__kind: "DepositChannel";
|
|
584
572
|
} | {
|
|
585
|
-
value: {
|
|
586
|
-
txHash: string;
|
|
587
|
-
};
|
|
588
573
|
__kind: "Vault";
|
|
574
|
+
txHash: string;
|
|
589
575
|
};
|
|
590
576
|
swapType: {
|
|
591
577
|
value: {
|
|
@@ -173,23 +173,13 @@ declare const swappingSwapScheduled: z.ZodObject<{
|
|
|
173
173
|
__kind: "DepositChannel";
|
|
174
174
|
}>, z.ZodObject<{
|
|
175
175
|
__kind: z.ZodLiteral<"Vault">;
|
|
176
|
-
|
|
177
|
-
txHash: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
178
|
-
}, "strip", z.ZodTypeAny, {
|
|
179
|
-
txHash: `0x${string}`;
|
|
180
|
-
}, {
|
|
181
|
-
txHash: string;
|
|
182
|
-
}>;
|
|
176
|
+
txHash: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
183
177
|
}, "strip", z.ZodTypeAny, {
|
|
184
|
-
value: {
|
|
185
|
-
txHash: `0x${string}`;
|
|
186
|
-
};
|
|
187
178
|
__kind: "Vault";
|
|
179
|
+
txHash: `0x${string}`;
|
|
188
180
|
}, {
|
|
189
|
-
value: {
|
|
190
|
-
txHash: string;
|
|
191
|
-
};
|
|
192
181
|
__kind: "Vault";
|
|
182
|
+
txHash: string;
|
|
193
183
|
}>]>;
|
|
194
184
|
swapType: z.ZodUnion<[z.ZodObject<{
|
|
195
185
|
__kind: z.ZodLiteral<"Swap">;
|
|
@@ -485,10 +475,8 @@ declare const swappingSwapScheduled: z.ZodObject<{
|
|
|
485
475
|
};
|
|
486
476
|
__kind: "DepositChannel";
|
|
487
477
|
} | {
|
|
488
|
-
value: {
|
|
489
|
-
txHash: `0x${string}`;
|
|
490
|
-
};
|
|
491
478
|
__kind: "Vault";
|
|
479
|
+
txHash: `0x${string}`;
|
|
492
480
|
};
|
|
493
481
|
swapType: {
|
|
494
482
|
value: {
|
|
@@ -582,10 +570,8 @@ declare const swappingSwapScheduled: z.ZodObject<{
|
|
|
582
570
|
};
|
|
583
571
|
__kind: "DepositChannel";
|
|
584
572
|
} | {
|
|
585
|
-
value: {
|
|
586
|
-
txHash: string;
|
|
587
|
-
};
|
|
588
573
|
__kind: "Vault";
|
|
574
|
+
txHash: string;
|
|
589
575
|
};
|
|
590
576
|
swapType: {
|
|
591
577
|
value: {
|
package/dist/Processor.cjs
CHANGED
|
@@ -167,8 +167,8 @@ var Processor = (_class = class {
|
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
async updateState(store, block) {
|
|
170
|
-
const
|
|
171
|
-
_assert2.default.call(void 0,
|
|
170
|
+
const updated = await store.updateState(this.name, block.height);
|
|
171
|
+
_assert2.default.call(void 0, updated, "failed to update state, maybe another process is running");
|
|
172
172
|
}
|
|
173
173
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
174
174
|
shouldProcessBlock(_block) {
|
package/dist/Processor.mjs
CHANGED
|
@@ -167,8 +167,8 @@ var Processor = class {
|
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
async updateState(store, block) {
|
|
170
|
-
const
|
|
171
|
-
assert(
|
|
170
|
+
const updated = await store.updateState(this.name, block.height);
|
|
171
|
+
assert(updated, "failed to update state, maybe another process is running");
|
|
172
172
|
}
|
|
173
173
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
174
174
|
shouldProcessBlock(_block) {
|
package/dist/types.d.cts
CHANGED
|
@@ -70,9 +70,7 @@ interface ProcessorStore<Ev, Ex> extends Store {
|
|
|
70
70
|
initializeState(processorName: string, startHeight: number, endHeight?: number): Promise<State>;
|
|
71
71
|
getEventInfo(blockId: number, indexInBlock: number): Promise<Ev>;
|
|
72
72
|
getExtrinsicInfo(blockHeight: number, indexInBlock: number): Promise<Ex>;
|
|
73
|
-
|
|
74
|
-
count: number;
|
|
75
|
-
}>;
|
|
73
|
+
updateState(processorName: string, height: number): Promise<boolean>;
|
|
76
74
|
getCurrentState(processorName: string): Promise<State>;
|
|
77
75
|
}
|
|
78
76
|
interface IndexerStore {
|
package/dist/types.d.ts
CHANGED
|
@@ -70,9 +70,7 @@ interface ProcessorStore<Ev, Ex> extends Store {
|
|
|
70
70
|
initializeState(processorName: string, startHeight: number, endHeight?: number): Promise<State>;
|
|
71
71
|
getEventInfo(blockId: number, indexInBlock: number): Promise<Ev>;
|
|
72
72
|
getExtrinsicInfo(blockHeight: number, indexInBlock: number): Promise<Ex>;
|
|
73
|
-
|
|
74
|
-
count: number;
|
|
75
|
-
}>;
|
|
73
|
+
updateState(processorName: string, height: number): Promise<boolean>;
|
|
76
74
|
getCurrentState(processorName: string): Promise<State>;
|
|
77
75
|
}
|
|
78
76
|
interface IndexerStore {
|