@chainflip/processor 1.8.5 → 1.8.7
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 +13 -1
- package/dist/100/flip/remainingImbalance.d.cts +22 -22
- package/dist/100/flip/remainingImbalance.d.ts +22 -22
- package/dist/100/swapping/batchSwapFailed.d.cts +8 -8
- package/dist/100/swapping/batchSwapFailed.d.ts +8 -8
- package/dist/100/swapping/ccmDepositReceived.d.cts +62 -62
- package/dist/100/swapping/ccmDepositReceived.d.ts +62 -62
- package/dist/100/swapping/ccmFailed.d.cts +62 -62
- package/dist/100/swapping/ccmFailed.d.ts +62 -62
- package/dist/100/swapping/minimumSwapAmountSet.d.cts +6 -6
- package/dist/100/swapping/minimumSwapAmountSet.d.ts +6 -6
- package/dist/100/swapping/swapAmountTooLow.d.cts +19 -19
- package/dist/100/swapping/swapAmountTooLow.d.ts +19 -19
- package/dist/100/swapping/swapDepositAddressReady.d.cts +26 -26
- package/dist/100/swapping/swapDepositAddressReady.d.ts +26 -26
- package/dist/100/swapping/swapEgressScheduled.d.cts +6 -6
- package/dist/100/swapping/swapEgressScheduled.d.ts +6 -6
- package/dist/100/swapping/swapExecuted.d.cts +12 -12
- package/dist/100/swapping/swapExecuted.d.ts +12 -12
- package/dist/100/swapping/swapScheduled.d.cts +91 -91
- package/dist/100/swapping/swapScheduled.d.ts +91 -91
- package/dist/100/swapping/withdrawalRequested.d.cts +4 -4
- package/dist/100/swapping/withdrawalRequested.d.ts +4 -4
- package/dist/141/liquidityProvider/accountCredited.d.cts +2 -2
- package/dist/141/liquidityProvider/accountCredited.d.ts +2 -2
- package/dist/141/liquidityProvider/accountDebited.d.cts +2 -2
- package/dist/141/liquidityProvider/accountDebited.d.ts +2 -2
- package/dist/141/liquidityProvider/assetTransferred.d.cts +3 -3
- package/dist/141/liquidityProvider/assetTransferred.d.ts +3 -3
- package/dist/141/liquidityProvider/liquidityDepositAddressReady.d.cts +2 -2
- package/dist/141/liquidityProvider/liquidityDepositAddressReady.d.ts +2 -2
- package/dist/141/liquidityProvider/liquidityDepositCredited.d.cts +2 -2
- package/dist/141/liquidityProvider/liquidityDepositCredited.d.ts +2 -2
- package/dist/141/liquidityProvider/liquidityRefundAddressRegistered.d.cts +2 -2
- package/dist/141/liquidityProvider/liquidityRefundAddressRegistered.d.ts +2 -2
- package/dist/141/polkadotIngressEgress/boostFundsAdded.d.cts +4 -4
- package/dist/141/polkadotIngressEgress/boostFundsAdded.d.ts +4 -4
- package/dist/141/polkadotIngressEgress/ccmEgressInvalid.d.cts +16 -16
- package/dist/141/polkadotIngressEgress/ccmEgressInvalid.d.ts +16 -16
- package/dist/141/polkadotIngressEgress/depositBoosted.d.cts +4 -4
- package/dist/141/polkadotIngressEgress/depositBoosted.d.ts +4 -4
- package/dist/141/polkadotIngressEgress/depositFinalised.d.cts +4 -4
- package/dist/141/polkadotIngressEgress/depositFinalised.d.ts +4 -4
- package/dist/141/polkadotIngressEgress/insufficientBoostLiquidity.d.cts +3 -3
- package/dist/141/polkadotIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
- package/dist/141/polkadotIngressEgress/stoppedBoosting.d.cts +2 -2
- package/dist/141/polkadotIngressEgress/stoppedBoosting.d.ts +2 -2
- package/dist/141/swapping/batchSwapFailed.d.cts +8 -8
- package/dist/141/swapping/batchSwapFailed.d.ts +8 -8
- package/dist/141/swapping/ccmDepositReceived.d.cts +68 -68
- package/dist/141/swapping/ccmDepositReceived.d.ts +68 -68
- package/dist/141/swapping/ccmFailed.d.cts +73 -73
- package/dist/141/swapping/ccmFailed.d.ts +73 -73
- package/dist/141/swapping/maximumSwapAmountSet.d.cts +6 -6
- package/dist/141/swapping/maximumSwapAmountSet.d.ts +6 -6
- package/dist/141/swapping/swapAmountConfiscated.d.cts +12 -12
- package/dist/141/swapping/swapAmountConfiscated.d.ts +12 -12
- package/dist/141/swapping/swapDepositAddressReady.d.cts +26 -26
- package/dist/141/swapping/swapDepositAddressReady.d.ts +26 -26
- package/dist/141/swapping/swapEgressIgnored.d.cts +24 -24
- package/dist/141/swapping/swapEgressIgnored.d.ts +24 -24
- package/dist/141/swapping/swapEgressScheduled.d.cts +8 -8
- package/dist/141/swapping/swapEgressScheduled.d.ts +8 -8
- package/dist/141/swapping/swapExecuted.d.cts +90 -90
- package/dist/141/swapping/swapExecuted.d.ts +90 -90
- package/dist/141/swapping/swapScheduled.d.cts +99 -99
- package/dist/141/swapping/swapScheduled.d.ts +99 -99
- package/dist/141/swapping/withdrawalRequested.d.cts +10 -10
- package/dist/141/swapping/withdrawalRequested.d.ts +10 -10
- package/dist/170/solanaIngressEgress/boostedDepositLost.d.cts +2 -2
- package/dist/170/solanaIngressEgress/boostedDepositLost.d.ts +2 -2
- package/dist/170/solanaIngressEgress/ccmFailed.d.cts +37 -37
- package/dist/170/solanaIngressEgress/ccmFailed.d.ts +37 -37
- package/dist/170/solanaIngressEgress/depositIgnored.d.cts +6 -6
- package/dist/170/solanaIngressEgress/depositIgnored.d.ts +6 -6
- package/dist/170/solanaIngressEgress/failedToBuildAllBatchCall.d.cts +50 -50
- package/dist/170/solanaIngressEgress/failedToBuildAllBatchCall.d.ts +50 -50
- package/dist/180/arbitrumIngressEgress/depositFailed.d.cts +32 -32
- package/dist/180/arbitrumIngressEgress/depositFailed.d.ts +32 -32
- package/dist/180/arbitrumIngressEgress/witnessSafetyMarginSet.cjs +7 -0
- package/dist/180/arbitrumIngressEgress/witnessSafetyMarginSet.d.cts +11 -0
- package/dist/180/arbitrumIngressEgress/witnessSafetyMarginSet.d.ts +11 -0
- package/dist/180/arbitrumIngressEgress/witnessSafetyMarginSet.mjs +7 -0
- package/dist/180/bitcoinIngressEgress/depositFailed.d.cts +146 -146
- package/dist/180/bitcoinIngressEgress/depositFailed.d.ts +146 -146
- package/dist/180/bitcoinIngressEgress/witnessSafetyMarginSet.cjs +7 -0
- package/dist/180/bitcoinIngressEgress/witnessSafetyMarginSet.d.cts +11 -0
- package/dist/180/bitcoinIngressEgress/witnessSafetyMarginSet.d.ts +11 -0
- package/dist/180/bitcoinIngressEgress/witnessSafetyMarginSet.mjs +7 -0
- package/dist/180/common.cjs +7 -7
- package/dist/180/common.d.cts +286 -286
- package/dist/180/common.d.ts +286 -286
- package/dist/180/common.mjs +7 -7
- package/dist/180/ethereumIngressEgress/depositFailed.d.cts +32 -32
- package/dist/180/ethereumIngressEgress/depositFailed.d.ts +32 -32
- package/dist/180/ethereumIngressEgress/witnessSafetyMarginSet.cjs +7 -0
- package/dist/180/ethereumIngressEgress/witnessSafetyMarginSet.d.cts +11 -0
- package/dist/180/ethereumIngressEgress/witnessSafetyMarginSet.d.ts +11 -0
- package/dist/180/ethereumIngressEgress/witnessSafetyMarginSet.mjs +7 -0
- package/dist/180/polkadotIngressEgress/depositFailed.d.cts +32 -32
- package/dist/180/polkadotIngressEgress/depositFailed.d.ts +32 -32
- package/dist/180/polkadotIngressEgress/witnessSafetyMarginSet.cjs +6 -0
- package/dist/180/polkadotIngressEgress/witnessSafetyMarginSet.d.cts +11 -0
- package/dist/180/polkadotIngressEgress/witnessSafetyMarginSet.d.ts +11 -0
- package/dist/180/polkadotIngressEgress/witnessSafetyMarginSet.mjs +6 -0
- package/dist/180/solanaIngressEgress/depositFailed.d.cts +32 -32
- package/dist/180/solanaIngressEgress/depositFailed.d.ts +32 -32
- package/dist/180/solanaIngressEgress/witnessSafetyMarginSet.cjs +7 -0
- package/dist/180/solanaIngressEgress/witnessSafetyMarginSet.d.cts +11 -0
- package/dist/180/solanaIngressEgress/witnessSafetyMarginSet.d.ts +11 -0
- package/dist/180/solanaIngressEgress/witnessSafetyMarginSet.mjs +7 -0
- package/dist/180/solanaThresholdSigner/thresholdSignatureRequest.cjs +1 -1
- package/dist/180/solanaThresholdSigner/thresholdSignatureRequest.mjs +3 -3
- package/dist/180/swapping/affiliateRegistration.cjs +1 -0
- package/dist/180/swapping/affiliateRegistration.d.cts +3 -0
- package/dist/180/swapping/affiliateRegistration.d.ts +3 -0
- package/dist/180/swapping/affiliateRegistration.mjs +2 -1
- package/dist/180/swapping/swapDepositAddressReady.cjs +1 -1
- package/dist/180/swapping/swapDepositAddressReady.d.cts +14 -14
- package/dist/180/swapping/swapDepositAddressReady.d.ts +14 -14
- package/dist/180/swapping/swapDepositAddressReady.mjs +1 -1
- package/dist/180/swapping/withdrawalRequested.cjs +20 -0
- package/dist/180/swapping/withdrawalRequested.d.cts +91 -0
- package/dist/180/swapping/withdrawalRequested.d.ts +91 -0
- package/dist/180/swapping/withdrawalRequested.mjs +20 -0
- package/package.json +4 -4
package/README.MD
CHANGED
|
@@ -5,6 +5,10 @@ In such scenarios, things can break on our end as our backends rely heavily on t
|
|
|
5
5
|
emitted by the state-chain.
|
|
6
6
|
This utility was written to help us spot new events as well as changes in the schemas of the old events so to anticipate and be able to estimate/plan the work.
|
|
7
7
|
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
#### How to run
|
|
11
|
+
|
|
8
12
|
To be able to run the code generation tool, you first need to find out the new spec version of the network and the block hash at which it occured. Once you have these 2 pieces of information, you need to update the [configuration file](../chainspec/metadata/specVersion.json) by adding the new spec verson together with the environment, like so:
|
|
9
13
|
|
|
10
14
|
```json
|
|
@@ -17,7 +21,7 @@ To be able to run the code generation tool, you first need to find out the new s
|
|
|
17
21
|
}
|
|
18
22
|
```
|
|
19
23
|
|
|
20
|
-
We just specified that we want to run the codegen for spec version "170" (1.7.0) and the upgrade occured at block hash
|
|
24
|
+
We just specified that we want to run the codegen for spec version "170" (1.7.0) and the upgrade occured at block hash `0xd9eeefdbd275bf7466b9d76c810a7ebfb1aab16a68301ee1ab605015c7295e95` on the backspin (our devnet) environment.
|
|
21
25
|
|
|
22
26
|
Once this is done, save the file and run the [script](./scripts/generate.ts).
|
|
23
27
|
|
|
@@ -26,3 +30,11 @@ Once this is done, save the file and run the [script](./scripts/generate.ts).
|
|
|
26
30
|
```
|
|
27
31
|
|
|
28
32
|
Voila! You should see the auto-generated code inserted in the respective places.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
### How to re-run for the same version
|
|
37
|
+
|
|
38
|
+
1. Remove the `packages/chainspec/metadata/{version}.scale` file.
|
|
39
|
+
2. Make sure the block hash for the specific version we are targeting is correct.
|
|
40
|
+
3. Run `./scripts/generate.ts`
|
|
@@ -13,54 +13,54 @@ declare const flipRemainingImbalance: z.ZodObject<{
|
|
|
13
13
|
__kind: z.ZodLiteral<"Account">;
|
|
14
14
|
value: z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, `0x${string}`, string>]>, string, string>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
value: string;
|
|
17
16
|
__kind: "Account";
|
|
18
|
-
}, {
|
|
19
17
|
value: string;
|
|
18
|
+
}, {
|
|
20
19
|
__kind: "Account";
|
|
20
|
+
value: string;
|
|
21
21
|
}>, z.ZodObject<{
|
|
22
22
|
__kind: z.ZodLiteral<"Reserve">;
|
|
23
23
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
value: `0x${string}`;
|
|
26
25
|
__kind: "Reserve";
|
|
26
|
+
value: `0x${string}`;
|
|
27
27
|
}, {
|
|
28
|
-
value: string;
|
|
29
28
|
__kind: "Reserve";
|
|
29
|
+
value: string;
|
|
30
30
|
}>, z.ZodObject<{
|
|
31
31
|
__kind: z.ZodLiteral<"PendingRedemption">;
|
|
32
32
|
value: z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, `0x${string}`, string>]>, string, string>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
value: string;
|
|
35
34
|
__kind: "PendingRedemption";
|
|
36
|
-
}, {
|
|
37
35
|
value: string;
|
|
36
|
+
}, {
|
|
38
37
|
__kind: "PendingRedemption";
|
|
38
|
+
value: string;
|
|
39
39
|
}>]>;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
__kind: "Internal";
|
|
41
42
|
value: {
|
|
42
|
-
value: string;
|
|
43
43
|
__kind: "Account";
|
|
44
|
+
value: string;
|
|
44
45
|
} | {
|
|
45
|
-
value: `0x${string}`;
|
|
46
46
|
__kind: "Reserve";
|
|
47
|
+
value: `0x${string}`;
|
|
47
48
|
} | {
|
|
48
|
-
value: string;
|
|
49
49
|
__kind: "PendingRedemption";
|
|
50
|
+
value: string;
|
|
50
51
|
};
|
|
51
|
-
__kind: "Internal";
|
|
52
52
|
}, {
|
|
53
|
+
__kind: "Internal";
|
|
53
54
|
value: {
|
|
54
|
-
value: string;
|
|
55
55
|
__kind: "Account";
|
|
56
|
-
} | {
|
|
57
56
|
value: string;
|
|
58
|
-
__kind: "Reserve";
|
|
59
57
|
} | {
|
|
58
|
+
__kind: "Reserve";
|
|
60
59
|
value: string;
|
|
60
|
+
} | {
|
|
61
61
|
__kind: "PendingRedemption";
|
|
62
|
+
value: string;
|
|
62
63
|
};
|
|
63
|
-
__kind: "Internal";
|
|
64
64
|
}>, z.ZodObject<{
|
|
65
65
|
__kind: z.ZodLiteral<"Emissions">;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -73,17 +73,17 @@ declare const flipRemainingImbalance: z.ZodObject<{
|
|
|
73
73
|
who: {
|
|
74
74
|
__kind: "External";
|
|
75
75
|
} | {
|
|
76
|
+
__kind: "Internal";
|
|
76
77
|
value: {
|
|
77
|
-
value: string;
|
|
78
78
|
__kind: "Account";
|
|
79
|
+
value: string;
|
|
79
80
|
} | {
|
|
80
|
-
value: `0x${string}`;
|
|
81
81
|
__kind: "Reserve";
|
|
82
|
+
value: `0x${string}`;
|
|
82
83
|
} | {
|
|
83
|
-
value: string;
|
|
84
84
|
__kind: "PendingRedemption";
|
|
85
|
+
value: string;
|
|
85
86
|
};
|
|
86
|
-
__kind: "Internal";
|
|
87
87
|
} | {
|
|
88
88
|
__kind: "Emissions";
|
|
89
89
|
};
|
|
@@ -92,17 +92,17 @@ declare const flipRemainingImbalance: z.ZodObject<{
|
|
|
92
92
|
who: {
|
|
93
93
|
__kind: "External";
|
|
94
94
|
} | {
|
|
95
|
+
__kind: "Internal";
|
|
95
96
|
value: {
|
|
96
|
-
value: string;
|
|
97
97
|
__kind: "Account";
|
|
98
|
-
} | {
|
|
99
98
|
value: string;
|
|
100
|
-
__kind: "Reserve";
|
|
101
99
|
} | {
|
|
100
|
+
__kind: "Reserve";
|
|
102
101
|
value: string;
|
|
102
|
+
} | {
|
|
103
103
|
__kind: "PendingRedemption";
|
|
104
|
+
value: string;
|
|
104
105
|
};
|
|
105
|
-
__kind: "Internal";
|
|
106
106
|
} | {
|
|
107
107
|
__kind: "Emissions";
|
|
108
108
|
};
|
|
@@ -13,54 +13,54 @@ declare const flipRemainingImbalance: z.ZodObject<{
|
|
|
13
13
|
__kind: z.ZodLiteral<"Account">;
|
|
14
14
|
value: z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, `0x${string}`, string>]>, string, string>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
value: string;
|
|
17
16
|
__kind: "Account";
|
|
18
|
-
}, {
|
|
19
17
|
value: string;
|
|
18
|
+
}, {
|
|
20
19
|
__kind: "Account";
|
|
20
|
+
value: string;
|
|
21
21
|
}>, z.ZodObject<{
|
|
22
22
|
__kind: z.ZodLiteral<"Reserve">;
|
|
23
23
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
value: `0x${string}`;
|
|
26
25
|
__kind: "Reserve";
|
|
26
|
+
value: `0x${string}`;
|
|
27
27
|
}, {
|
|
28
|
-
value: string;
|
|
29
28
|
__kind: "Reserve";
|
|
29
|
+
value: string;
|
|
30
30
|
}>, z.ZodObject<{
|
|
31
31
|
__kind: z.ZodLiteral<"PendingRedemption">;
|
|
32
32
|
value: z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, `0x${string}`, string>]>, string, string>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
value: string;
|
|
35
34
|
__kind: "PendingRedemption";
|
|
36
|
-
}, {
|
|
37
35
|
value: string;
|
|
36
|
+
}, {
|
|
38
37
|
__kind: "PendingRedemption";
|
|
38
|
+
value: string;
|
|
39
39
|
}>]>;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
__kind: "Internal";
|
|
41
42
|
value: {
|
|
42
|
-
value: string;
|
|
43
43
|
__kind: "Account";
|
|
44
|
+
value: string;
|
|
44
45
|
} | {
|
|
45
|
-
value: `0x${string}`;
|
|
46
46
|
__kind: "Reserve";
|
|
47
|
+
value: `0x${string}`;
|
|
47
48
|
} | {
|
|
48
|
-
value: string;
|
|
49
49
|
__kind: "PendingRedemption";
|
|
50
|
+
value: string;
|
|
50
51
|
};
|
|
51
|
-
__kind: "Internal";
|
|
52
52
|
}, {
|
|
53
|
+
__kind: "Internal";
|
|
53
54
|
value: {
|
|
54
|
-
value: string;
|
|
55
55
|
__kind: "Account";
|
|
56
|
-
} | {
|
|
57
56
|
value: string;
|
|
58
|
-
__kind: "Reserve";
|
|
59
57
|
} | {
|
|
58
|
+
__kind: "Reserve";
|
|
60
59
|
value: string;
|
|
60
|
+
} | {
|
|
61
61
|
__kind: "PendingRedemption";
|
|
62
|
+
value: string;
|
|
62
63
|
};
|
|
63
|
-
__kind: "Internal";
|
|
64
64
|
}>, z.ZodObject<{
|
|
65
65
|
__kind: z.ZodLiteral<"Emissions">;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -73,17 +73,17 @@ declare const flipRemainingImbalance: z.ZodObject<{
|
|
|
73
73
|
who: {
|
|
74
74
|
__kind: "External";
|
|
75
75
|
} | {
|
|
76
|
+
__kind: "Internal";
|
|
76
77
|
value: {
|
|
77
|
-
value: string;
|
|
78
78
|
__kind: "Account";
|
|
79
|
+
value: string;
|
|
79
80
|
} | {
|
|
80
|
-
value: `0x${string}`;
|
|
81
81
|
__kind: "Reserve";
|
|
82
|
+
value: `0x${string}`;
|
|
82
83
|
} | {
|
|
83
|
-
value: string;
|
|
84
84
|
__kind: "PendingRedemption";
|
|
85
|
+
value: string;
|
|
85
86
|
};
|
|
86
|
-
__kind: "Internal";
|
|
87
87
|
} | {
|
|
88
88
|
__kind: "Emissions";
|
|
89
89
|
};
|
|
@@ -92,17 +92,17 @@ declare const flipRemainingImbalance: z.ZodObject<{
|
|
|
92
92
|
who: {
|
|
93
93
|
__kind: "External";
|
|
94
94
|
} | {
|
|
95
|
+
__kind: "Internal";
|
|
95
96
|
value: {
|
|
96
|
-
value: string;
|
|
97
97
|
__kind: "Account";
|
|
98
|
-
} | {
|
|
99
98
|
value: string;
|
|
100
|
-
__kind: "Reserve";
|
|
101
99
|
} | {
|
|
100
|
+
__kind: "Reserve";
|
|
102
101
|
value: string;
|
|
102
|
+
} | {
|
|
103
103
|
__kind: "PendingRedemption";
|
|
104
|
+
value: string;
|
|
104
105
|
};
|
|
105
|
-
__kind: "Internal";
|
|
106
106
|
} | {
|
|
107
107
|
__kind: "Emissions";
|
|
108
108
|
};
|
|
@@ -4,11 +4,11 @@ declare const swappingBatchSwapFailed: z.ZodObject<{
|
|
|
4
4
|
asset: z.ZodEffects<z.ZodObject<{
|
|
5
5
|
__kind: z.ZodEnum<["Eth", "Flip", "Usdc", "Dot", "Btc"]>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
__kind: "Eth" | "
|
|
7
|
+
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
|
|
8
8
|
}, {
|
|
9
|
-
__kind: "Eth" | "
|
|
10
|
-
}>, "Eth" | "
|
|
11
|
-
__kind: "Eth" | "
|
|
9
|
+
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
|
|
10
|
+
}>, "Eth" | "Flip" | "Usdc" | "Dot" | "Btc", {
|
|
11
|
+
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
|
|
12
12
|
}>;
|
|
13
13
|
direction: z.ZodEffects<z.ZodObject<{
|
|
14
14
|
__kind: z.ZodEnum<["FromStable", "ToStable"]>;
|
|
@@ -21,17 +21,17 @@ declare const swappingBatchSwapFailed: z.ZodObject<{
|
|
|
21
21
|
}>;
|
|
22
22
|
amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
asset: "Eth" | "
|
|
25
|
-
amount: bigint;
|
|
24
|
+
asset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
|
|
26
25
|
direction: "FromStable" | "ToStable";
|
|
26
|
+
amount: bigint;
|
|
27
27
|
}, {
|
|
28
28
|
asset: {
|
|
29
|
-
__kind: "Eth" | "
|
|
29
|
+
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
|
|
30
30
|
};
|
|
31
|
-
amount: string | number;
|
|
32
31
|
direction: {
|
|
33
32
|
__kind: "FromStable" | "ToStable";
|
|
34
33
|
};
|
|
34
|
+
amount: string | number;
|
|
35
35
|
}>;
|
|
36
36
|
|
|
37
37
|
export { swappingBatchSwapFailed };
|
|
@@ -4,11 +4,11 @@ declare const swappingBatchSwapFailed: z.ZodObject<{
|
|
|
4
4
|
asset: z.ZodEffects<z.ZodObject<{
|
|
5
5
|
__kind: z.ZodEnum<["Eth", "Flip", "Usdc", "Dot", "Btc"]>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
__kind: "Eth" | "
|
|
7
|
+
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
|
|
8
8
|
}, {
|
|
9
|
-
__kind: "Eth" | "
|
|
10
|
-
}>, "Eth" | "
|
|
11
|
-
__kind: "Eth" | "
|
|
9
|
+
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
|
|
10
|
+
}>, "Eth" | "Flip" | "Usdc" | "Dot" | "Btc", {
|
|
11
|
+
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
|
|
12
12
|
}>;
|
|
13
13
|
direction: z.ZodEffects<z.ZodObject<{
|
|
14
14
|
__kind: z.ZodEnum<["FromStable", "ToStable"]>;
|
|
@@ -21,17 +21,17 @@ declare const swappingBatchSwapFailed: z.ZodObject<{
|
|
|
21
21
|
}>;
|
|
22
22
|
amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
asset: "Eth" | "
|
|
25
|
-
amount: bigint;
|
|
24
|
+
asset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
|
|
26
25
|
direction: "FromStable" | "ToStable";
|
|
26
|
+
amount: bigint;
|
|
27
27
|
}, {
|
|
28
28
|
asset: {
|
|
29
|
-
__kind: "Eth" | "
|
|
29
|
+
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
|
|
30
30
|
};
|
|
31
|
-
amount: string | number;
|
|
32
31
|
direction: {
|
|
33
32
|
__kind: "FromStable" | "ToStable";
|
|
34
33
|
};
|
|
34
|
+
amount: string | number;
|
|
35
35
|
}>;
|
|
36
36
|
|
|
37
37
|
export { swappingBatchSwapFailed };
|
|
@@ -9,11 +9,11 @@ declare const swappingCcmDepositReceived: z.ZodObject<{
|
|
|
9
9
|
__kind: z.ZodEnum<["Eth", "Dot", "Btc"]>;
|
|
10
10
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
value: `0x${string}`;
|
|
13
12
|
__kind: "Eth" | "Dot" | "Btc";
|
|
13
|
+
value: `0x${string}`;
|
|
14
14
|
}, {
|
|
15
|
-
value: string;
|
|
16
15
|
__kind: "Eth" | "Dot" | "Btc";
|
|
16
|
+
value: string;
|
|
17
17
|
}>, {
|
|
18
18
|
readonly chain: "Ethereum";
|
|
19
19
|
readonly address: `0x${string}`;
|
|
@@ -24,8 +24,8 @@ declare const swappingCcmDepositReceived: z.ZodObject<{
|
|
|
24
24
|
readonly chain: "Bitcoin";
|
|
25
25
|
readonly address: string;
|
|
26
26
|
}, {
|
|
27
|
-
value: string;
|
|
28
27
|
__kind: "Eth" | "Dot" | "Btc";
|
|
28
|
+
value: string;
|
|
29
29
|
}>;
|
|
30
30
|
depositMetadata: z.ZodObject<{
|
|
31
31
|
sourceChain: z.ZodEffects<z.ZodObject<{
|
|
@@ -41,67 +41,67 @@ declare const swappingCcmDepositReceived: z.ZodObject<{
|
|
|
41
41
|
__kind: z.ZodLiteral<"Eth">;
|
|
42
42
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
value: `0x${string}`;
|
|
45
44
|
__kind: "Eth";
|
|
45
|
+
value: `0x${string}`;
|
|
46
46
|
}, {
|
|
47
|
-
value: string;
|
|
48
47
|
__kind: "Eth";
|
|
48
|
+
value: string;
|
|
49
49
|
}>, z.ZodObject<{
|
|
50
50
|
__kind: z.ZodLiteral<"Dot">;
|
|
51
51
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
value: `0x${string}`;
|
|
54
53
|
__kind: "Dot";
|
|
54
|
+
value: `0x${string}`;
|
|
55
55
|
}, {
|
|
56
|
-
value: string;
|
|
57
56
|
__kind: "Dot";
|
|
57
|
+
value: string;
|
|
58
58
|
}>, z.ZodObject<{
|
|
59
59
|
__kind: z.ZodLiteral<"Btc">;
|
|
60
60
|
value: z.ZodDiscriminatedUnion<"__kind", [z.ZodObject<{
|
|
61
61
|
__kind: z.ZodLiteral<"P2PKH">;
|
|
62
62
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
value: `0x${string}`;
|
|
65
64
|
__kind: "P2PKH";
|
|
65
|
+
value: `0x${string}`;
|
|
66
66
|
}, {
|
|
67
|
-
value: string;
|
|
68
67
|
__kind: "P2PKH";
|
|
68
|
+
value: string;
|
|
69
69
|
}>, z.ZodObject<{
|
|
70
70
|
__kind: z.ZodLiteral<"P2SH">;
|
|
71
71
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
value: `0x${string}`;
|
|
74
73
|
__kind: "P2SH";
|
|
74
|
+
value: `0x${string}`;
|
|
75
75
|
}, {
|
|
76
|
-
value: string;
|
|
77
76
|
__kind: "P2SH";
|
|
77
|
+
value: string;
|
|
78
78
|
}>, z.ZodObject<{
|
|
79
79
|
__kind: z.ZodLiteral<"P2WPKH">;
|
|
80
80
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
81
81
|
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
value: `0x${string}`;
|
|
83
82
|
__kind: "P2WPKH";
|
|
83
|
+
value: `0x${string}`;
|
|
84
84
|
}, {
|
|
85
|
-
value: string;
|
|
86
85
|
__kind: "P2WPKH";
|
|
86
|
+
value: string;
|
|
87
87
|
}>, z.ZodObject<{
|
|
88
88
|
__kind: z.ZodLiteral<"P2WSH">;
|
|
89
89
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
90
90
|
}, "strip", z.ZodTypeAny, {
|
|
91
|
-
value: `0x${string}`;
|
|
92
91
|
__kind: "P2WSH";
|
|
92
|
+
value: `0x${string}`;
|
|
93
93
|
}, {
|
|
94
|
-
value: string;
|
|
95
94
|
__kind: "P2WSH";
|
|
95
|
+
value: string;
|
|
96
96
|
}>, z.ZodObject<{
|
|
97
97
|
__kind: z.ZodLiteral<"Taproot">;
|
|
98
98
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
value: `0x${string}`;
|
|
101
100
|
__kind: "Taproot";
|
|
101
|
+
value: `0x${string}`;
|
|
102
102
|
}, {
|
|
103
|
-
value: string;
|
|
104
103
|
__kind: "Taproot";
|
|
104
|
+
value: string;
|
|
105
105
|
}>, z.ZodObject<{
|
|
106
106
|
__kind: z.ZodLiteral<"OtherSegwit">;
|
|
107
107
|
version: z.ZodNumber;
|
|
@@ -116,49 +116,49 @@ declare const swappingCcmDepositReceived: z.ZodObject<{
|
|
|
116
116
|
program: string;
|
|
117
117
|
}>]>;
|
|
118
118
|
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
__kind: "Btc";
|
|
119
120
|
value: {
|
|
120
|
-
value: `0x${string}`;
|
|
121
121
|
__kind: "P2PKH";
|
|
122
|
-
} | {
|
|
123
122
|
value: `0x${string}`;
|
|
124
|
-
__kind: "P2SH";
|
|
125
123
|
} | {
|
|
124
|
+
__kind: "P2SH";
|
|
126
125
|
value: `0x${string}`;
|
|
127
|
-
__kind: "P2WPKH";
|
|
128
126
|
} | {
|
|
127
|
+
__kind: "P2WPKH";
|
|
129
128
|
value: `0x${string}`;
|
|
130
|
-
__kind: "P2WSH";
|
|
131
129
|
} | {
|
|
130
|
+
__kind: "P2WSH";
|
|
132
131
|
value: `0x${string}`;
|
|
132
|
+
} | {
|
|
133
133
|
__kind: "Taproot";
|
|
134
|
+
value: `0x${string}`;
|
|
134
135
|
} | {
|
|
135
136
|
__kind: "OtherSegwit";
|
|
136
137
|
version: number;
|
|
137
138
|
program: `0x${string}`;
|
|
138
139
|
};
|
|
139
|
-
__kind: "Btc";
|
|
140
140
|
}, {
|
|
141
|
+
__kind: "Btc";
|
|
141
142
|
value: {
|
|
142
|
-
value: string;
|
|
143
143
|
__kind: "P2PKH";
|
|
144
|
-
} | {
|
|
145
144
|
value: string;
|
|
146
|
-
__kind: "P2SH";
|
|
147
145
|
} | {
|
|
146
|
+
__kind: "P2SH";
|
|
148
147
|
value: string;
|
|
149
|
-
__kind: "P2WPKH";
|
|
150
148
|
} | {
|
|
149
|
+
__kind: "P2WPKH";
|
|
151
150
|
value: string;
|
|
152
|
-
__kind: "P2WSH";
|
|
153
151
|
} | {
|
|
152
|
+
__kind: "P2WSH";
|
|
154
153
|
value: string;
|
|
154
|
+
} | {
|
|
155
155
|
__kind: "Taproot";
|
|
156
|
+
value: string;
|
|
156
157
|
} | {
|
|
157
158
|
__kind: "OtherSegwit";
|
|
158
159
|
version: number;
|
|
159
160
|
program: string;
|
|
160
161
|
};
|
|
161
|
-
__kind: "Btc";
|
|
162
162
|
}>]>>>;
|
|
163
163
|
channelMetadata: z.ZodObject<{
|
|
164
164
|
message: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
@@ -181,33 +181,33 @@ declare const swappingCcmDepositReceived: z.ZodObject<{
|
|
|
181
181
|
cfParameters: `0x${string}`;
|
|
182
182
|
};
|
|
183
183
|
sourceAddress?: {
|
|
184
|
-
value: `0x${string}`;
|
|
185
184
|
__kind: "Eth";
|
|
186
|
-
} | {
|
|
187
185
|
value: `0x${string}`;
|
|
186
|
+
} | {
|
|
188
187
|
__kind: "Dot";
|
|
188
|
+
value: `0x${string}`;
|
|
189
189
|
} | {
|
|
190
|
+
__kind: "Btc";
|
|
190
191
|
value: {
|
|
191
|
-
value: `0x${string}`;
|
|
192
192
|
__kind: "P2PKH";
|
|
193
|
-
} | {
|
|
194
193
|
value: `0x${string}`;
|
|
195
|
-
__kind: "P2SH";
|
|
196
194
|
} | {
|
|
195
|
+
__kind: "P2SH";
|
|
197
196
|
value: `0x${string}`;
|
|
198
|
-
__kind: "P2WPKH";
|
|
199
197
|
} | {
|
|
198
|
+
__kind: "P2WPKH";
|
|
200
199
|
value: `0x${string}`;
|
|
201
|
-
__kind: "P2WSH";
|
|
202
200
|
} | {
|
|
201
|
+
__kind: "P2WSH";
|
|
203
202
|
value: `0x${string}`;
|
|
203
|
+
} | {
|
|
204
204
|
__kind: "Taproot";
|
|
205
|
+
value: `0x${string}`;
|
|
205
206
|
} | {
|
|
206
207
|
__kind: "OtherSegwit";
|
|
207
208
|
version: number;
|
|
208
209
|
program: `0x${string}`;
|
|
209
210
|
};
|
|
210
|
-
__kind: "Btc";
|
|
211
211
|
} | null | undefined;
|
|
212
212
|
}, {
|
|
213
213
|
sourceChain: {
|
|
@@ -219,33 +219,33 @@ declare const swappingCcmDepositReceived: z.ZodObject<{
|
|
|
219
219
|
cfParameters: string;
|
|
220
220
|
};
|
|
221
221
|
sourceAddress?: {
|
|
222
|
-
value: string;
|
|
223
222
|
__kind: "Eth";
|
|
224
|
-
} | {
|
|
225
223
|
value: string;
|
|
224
|
+
} | {
|
|
226
225
|
__kind: "Dot";
|
|
226
|
+
value: string;
|
|
227
227
|
} | {
|
|
228
|
+
__kind: "Btc";
|
|
228
229
|
value: {
|
|
229
|
-
value: string;
|
|
230
230
|
__kind: "P2PKH";
|
|
231
|
-
} | {
|
|
232
231
|
value: string;
|
|
233
|
-
__kind: "P2SH";
|
|
234
232
|
} | {
|
|
233
|
+
__kind: "P2SH";
|
|
235
234
|
value: string;
|
|
236
|
-
__kind: "P2WPKH";
|
|
237
235
|
} | {
|
|
236
|
+
__kind: "P2WPKH";
|
|
238
237
|
value: string;
|
|
239
|
-
__kind: "P2WSH";
|
|
240
238
|
} | {
|
|
239
|
+
__kind: "P2WSH";
|
|
241
240
|
value: string;
|
|
241
|
+
} | {
|
|
242
242
|
__kind: "Taproot";
|
|
243
|
+
value: string;
|
|
243
244
|
} | {
|
|
244
245
|
__kind: "OtherSegwit";
|
|
245
246
|
version: number;
|
|
246
247
|
program: string;
|
|
247
248
|
};
|
|
248
|
-
__kind: "Btc";
|
|
249
249
|
} | null | undefined;
|
|
250
250
|
}>;
|
|
251
251
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -269,33 +269,33 @@ declare const swappingCcmDepositReceived: z.ZodObject<{
|
|
|
269
269
|
cfParameters: `0x${string}`;
|
|
270
270
|
};
|
|
271
271
|
sourceAddress?: {
|
|
272
|
-
value: `0x${string}`;
|
|
273
272
|
__kind: "Eth";
|
|
274
|
-
} | {
|
|
275
273
|
value: `0x${string}`;
|
|
274
|
+
} | {
|
|
276
275
|
__kind: "Dot";
|
|
276
|
+
value: `0x${string}`;
|
|
277
277
|
} | {
|
|
278
|
+
__kind: "Btc";
|
|
278
279
|
value: {
|
|
279
|
-
value: `0x${string}`;
|
|
280
280
|
__kind: "P2PKH";
|
|
281
|
-
} | {
|
|
282
281
|
value: `0x${string}`;
|
|
283
|
-
__kind: "P2SH";
|
|
284
282
|
} | {
|
|
283
|
+
__kind: "P2SH";
|
|
285
284
|
value: `0x${string}`;
|
|
286
|
-
__kind: "P2WPKH";
|
|
287
285
|
} | {
|
|
286
|
+
__kind: "P2WPKH";
|
|
288
287
|
value: `0x${string}`;
|
|
289
|
-
__kind: "P2WSH";
|
|
290
288
|
} | {
|
|
289
|
+
__kind: "P2WSH";
|
|
291
290
|
value: `0x${string}`;
|
|
291
|
+
} | {
|
|
292
292
|
__kind: "Taproot";
|
|
293
|
+
value: `0x${string}`;
|
|
293
294
|
} | {
|
|
294
295
|
__kind: "OtherSegwit";
|
|
295
296
|
version: number;
|
|
296
297
|
program: `0x${string}`;
|
|
297
298
|
};
|
|
298
|
-
__kind: "Btc";
|
|
299
299
|
} | null | undefined;
|
|
300
300
|
};
|
|
301
301
|
principalSwapId?: bigint | null | undefined;
|
|
@@ -304,8 +304,8 @@ declare const swappingCcmDepositReceived: z.ZodObject<{
|
|
|
304
304
|
ccmId: string | number;
|
|
305
305
|
depositAmount: string | number;
|
|
306
306
|
destinationAddress: {
|
|
307
|
-
value: string;
|
|
308
307
|
__kind: "Eth" | "Dot" | "Btc";
|
|
308
|
+
value: string;
|
|
309
309
|
};
|
|
310
310
|
depositMetadata: {
|
|
311
311
|
sourceChain: {
|
|
@@ -317,33 +317,33 @@ declare const swappingCcmDepositReceived: z.ZodObject<{
|
|
|
317
317
|
cfParameters: string;
|
|
318
318
|
};
|
|
319
319
|
sourceAddress?: {
|
|
320
|
-
value: string;
|
|
321
320
|
__kind: "Eth";
|
|
322
|
-
} | {
|
|
323
321
|
value: string;
|
|
322
|
+
} | {
|
|
324
323
|
__kind: "Dot";
|
|
324
|
+
value: string;
|
|
325
325
|
} | {
|
|
326
|
+
__kind: "Btc";
|
|
326
327
|
value: {
|
|
327
|
-
value: string;
|
|
328
328
|
__kind: "P2PKH";
|
|
329
|
-
} | {
|
|
330
329
|
value: string;
|
|
331
|
-
__kind: "P2SH";
|
|
332
330
|
} | {
|
|
331
|
+
__kind: "P2SH";
|
|
333
332
|
value: string;
|
|
334
|
-
__kind: "P2WPKH";
|
|
335
333
|
} | {
|
|
334
|
+
__kind: "P2WPKH";
|
|
336
335
|
value: string;
|
|
337
|
-
__kind: "P2WSH";
|
|
338
336
|
} | {
|
|
337
|
+
__kind: "P2WSH";
|
|
339
338
|
value: string;
|
|
339
|
+
} | {
|
|
340
340
|
__kind: "Taproot";
|
|
341
|
+
value: string;
|
|
341
342
|
} | {
|
|
342
343
|
__kind: "OtherSegwit";
|
|
343
344
|
version: number;
|
|
344
345
|
program: string;
|
|
345
346
|
};
|
|
346
|
-
__kind: "Btc";
|
|
347
347
|
} | null | undefined;
|
|
348
348
|
};
|
|
349
349
|
principalSwapId?: string | number | null | undefined;
|