@across-protocol/sdk 4.3.18 → 4.3.19-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/arch/svm/BlockUtils.js +4 -31
- package/dist/cjs/arch/svm/BlockUtils.js.map +1 -1
- package/dist/cjs/arch/svm/SpokeUtils.d.ts +8 -8
- package/dist/cjs/arch/svm/SpokeUtils.js +33 -36
- package/dist/cjs/arch/svm/SpokeUtils.js.map +1 -1
- package/dist/cjs/arch/svm/utils.d.ts +10 -2
- package/dist/cjs/arch/svm/utils.js +35 -1
- package/dist/cjs/arch/svm/utils.js.map +1 -1
- package/dist/cjs/clients/BundleDataClient/utils/SuperstructUtils.d.ts +120 -120
- package/dist/cjs/relayFeeCalculator/chain-queries/svmQuery.d.ts +1 -1
- package/dist/esm/arch/svm/BlockUtils.js +4 -31
- package/dist/esm/arch/svm/BlockUtils.js.map +1 -1
- package/dist/esm/arch/svm/SpokeUtils.d.ts +8 -8
- package/dist/esm/arch/svm/SpokeUtils.js +35 -36
- package/dist/esm/arch/svm/SpokeUtils.js.map +1 -1
- package/dist/esm/arch/svm/utils.d.ts +16 -2
- package/dist/esm/arch/svm/utils.js +39 -0
- package/dist/esm/arch/svm/utils.js.map +1 -1
- package/dist/esm/clients/BundleDataClient/utils/SuperstructUtils.d.ts +120 -120
- package/dist/esm/relayFeeCalculator/chain-queries/svmQuery.d.ts +1 -1
- package/dist/types/arch/svm/BlockUtils.d.ts.map +1 -1
- package/dist/types/arch/svm/SpokeUtils.d.ts +8 -8
- package/dist/types/arch/svm/SpokeUtils.d.ts.map +1 -1
- package/dist/types/arch/svm/utils.d.ts +16 -2
- package/dist/types/arch/svm/utils.d.ts.map +1 -1
- package/dist/types/clients/BundleDataClient/utils/SuperstructUtils.d.ts +120 -120
- package/dist/types/relayFeeCalculator/chain-queries/svmQuery.d.ts +1 -1
- package/package.json +1 -1
- package/src/arch/svm/BlockUtils.ts +4 -12
- package/src/arch/svm/SpokeUtils.ts +24 -20
- package/src/arch/svm/utils.ts +24 -0
|
@@ -11,68 +11,68 @@ export declare const SortableEventSS: {
|
|
|
11
11
|
export declare const BundleDataSS: import("superstruct").Struct<{
|
|
12
12
|
bundleDepositsV3: Record<string, Record<string, {
|
|
13
13
|
message: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
inputAmount: BigNumber;
|
|
14
|
+
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
15
|
+
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
17
16
|
originChainId: number;
|
|
18
|
-
destinationChainId: number;
|
|
19
|
-
fromLiteChain: boolean;
|
|
20
|
-
toLiteChain: boolean;
|
|
21
|
-
messageHash: string;
|
|
22
|
-
quoteTimestamp: number;
|
|
23
17
|
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
24
|
-
|
|
18
|
+
depositId: BigNumber;
|
|
25
19
|
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
26
|
-
|
|
20
|
+
inputAmount: BigNumber;
|
|
21
|
+
outputAmount: BigNumber;
|
|
27
22
|
fillDeadline: number;
|
|
28
23
|
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
29
24
|
exclusivityDeadline: number;
|
|
25
|
+
destinationChainId: number;
|
|
26
|
+
quoteTimestamp: number;
|
|
27
|
+
fromLiteChain: boolean;
|
|
28
|
+
toLiteChain: boolean;
|
|
29
|
+
messageHash: string;
|
|
30
30
|
blockNumber: number;
|
|
31
31
|
logIndex: number;
|
|
32
32
|
quoteBlockNumber: number;
|
|
33
33
|
updatedRecipient?: SvmAddress | EvmAddress | RawAddress | undefined;
|
|
34
34
|
updatedOutputAmount?: BigNumber | undefined;
|
|
35
35
|
updatedMessage?: string | undefined;
|
|
36
|
+
transactionHash?: string | undefined;
|
|
37
|
+
transactionIndex?: number | undefined;
|
|
36
38
|
speedUpSignature?: string | undefined;
|
|
37
39
|
txnIndex?: number | undefined;
|
|
38
40
|
txnRef?: string | undefined;
|
|
39
|
-
transactionHash?: string | undefined;
|
|
40
|
-
transactionIndex?: number | undefined;
|
|
41
41
|
relayerFeePct?: BigNumber | undefined;
|
|
42
42
|
}[]>>;
|
|
43
43
|
bundleFillsV3: Record<string, Record<string, {
|
|
44
44
|
fills: {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
inputAmount: BigNumber;
|
|
45
|
+
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
46
|
+
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
48
47
|
originChainId: number;
|
|
49
|
-
destinationChainId: number;
|
|
50
|
-
repaymentChainId: number;
|
|
51
|
-
messageHash: string;
|
|
52
|
-
quoteTimestamp: number;
|
|
53
48
|
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
54
|
-
|
|
49
|
+
depositId: BigNumber;
|
|
55
50
|
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
56
|
-
|
|
51
|
+
inputAmount: BigNumber;
|
|
52
|
+
outputAmount: BigNumber;
|
|
57
53
|
fillDeadline: number;
|
|
58
54
|
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
59
55
|
exclusivityDeadline: number;
|
|
56
|
+
destinationChainId: number;
|
|
57
|
+
repaymentChainId: number;
|
|
58
|
+
quoteTimestamp: number;
|
|
59
|
+
messageHash: string;
|
|
60
60
|
blockNumber: number;
|
|
61
61
|
logIndex: number;
|
|
62
62
|
lpFeePct: BigNumber;
|
|
63
63
|
relayer: SvmAddress | EvmAddress | RawAddress;
|
|
64
64
|
relayExecutionInfo: {
|
|
65
|
-
fillType: number;
|
|
66
65
|
updatedRecipient: SvmAddress | EvmAddress | RawAddress;
|
|
67
66
|
updatedOutputAmount: BigNumber;
|
|
67
|
+
fillType: number;
|
|
68
68
|
updatedMessageHash: string;
|
|
69
69
|
updatedMessage?: string | undefined;
|
|
70
70
|
};
|
|
71
71
|
message?: string | undefined;
|
|
72
|
-
txnIndex?: number | undefined;
|
|
73
|
-
txnRef?: string | undefined;
|
|
74
72
|
transactionHash?: string | undefined;
|
|
75
73
|
transactionIndex?: number | undefined;
|
|
74
|
+
txnIndex?: number | undefined;
|
|
75
|
+
txnRef?: string | undefined;
|
|
76
76
|
}[];
|
|
77
77
|
refunds: Record<string, BigNumber>;
|
|
78
78
|
realizedLpFees: BigNumber;
|
|
@@ -80,22 +80,22 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
80
80
|
}>>;
|
|
81
81
|
bundleSlowFillsV3: Record<string, Record<string, {
|
|
82
82
|
message: string;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
inputAmount: BigNumber;
|
|
83
|
+
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
84
|
+
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
86
85
|
originChainId: number;
|
|
87
|
-
destinationChainId: number;
|
|
88
|
-
fromLiteChain: boolean;
|
|
89
|
-
toLiteChain: boolean;
|
|
90
|
-
messageHash: string;
|
|
91
|
-
quoteTimestamp: number;
|
|
92
86
|
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
93
|
-
|
|
87
|
+
depositId: BigNumber;
|
|
94
88
|
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
95
|
-
|
|
89
|
+
inputAmount: BigNumber;
|
|
90
|
+
outputAmount: BigNumber;
|
|
96
91
|
fillDeadline: number;
|
|
97
92
|
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
98
93
|
exclusivityDeadline: number;
|
|
94
|
+
destinationChainId: number;
|
|
95
|
+
quoteTimestamp: number;
|
|
96
|
+
fromLiteChain: boolean;
|
|
97
|
+
toLiteChain: boolean;
|
|
98
|
+
messageHash: string;
|
|
99
99
|
blockNumber: number;
|
|
100
100
|
logIndex: number;
|
|
101
101
|
quoteBlockNumber: number;
|
|
@@ -103,62 +103,62 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
103
103
|
updatedRecipient?: SvmAddress | EvmAddress | RawAddress | undefined;
|
|
104
104
|
updatedOutputAmount?: BigNumber | undefined;
|
|
105
105
|
updatedMessage?: string | undefined;
|
|
106
|
+
transactionHash?: string | undefined;
|
|
107
|
+
transactionIndex?: number | undefined;
|
|
106
108
|
speedUpSignature?: string | undefined;
|
|
107
109
|
txnIndex?: number | undefined;
|
|
108
110
|
txnRef?: string | undefined;
|
|
109
|
-
transactionHash?: string | undefined;
|
|
110
|
-
transactionIndex?: number | undefined;
|
|
111
111
|
relayerFeePct?: BigNumber | undefined;
|
|
112
112
|
}[]>>;
|
|
113
113
|
expiredDepositsToRefundV3: Record<string, Record<string, {
|
|
114
114
|
message: string;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
inputAmount: BigNumber;
|
|
115
|
+
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
116
|
+
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
118
117
|
originChainId: number;
|
|
119
|
-
destinationChainId: number;
|
|
120
|
-
fromLiteChain: boolean;
|
|
121
|
-
toLiteChain: boolean;
|
|
122
|
-
messageHash: string;
|
|
123
|
-
quoteTimestamp: number;
|
|
124
118
|
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
125
|
-
|
|
119
|
+
depositId: BigNumber;
|
|
126
120
|
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
127
|
-
|
|
121
|
+
inputAmount: BigNumber;
|
|
122
|
+
outputAmount: BigNumber;
|
|
128
123
|
fillDeadline: number;
|
|
129
124
|
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
130
125
|
exclusivityDeadline: number;
|
|
126
|
+
destinationChainId: number;
|
|
127
|
+
quoteTimestamp: number;
|
|
128
|
+
fromLiteChain: boolean;
|
|
129
|
+
toLiteChain: boolean;
|
|
130
|
+
messageHash: string;
|
|
131
131
|
blockNumber: number;
|
|
132
132
|
logIndex: number;
|
|
133
133
|
quoteBlockNumber: number;
|
|
134
134
|
updatedRecipient?: SvmAddress | EvmAddress | RawAddress | undefined;
|
|
135
135
|
updatedOutputAmount?: BigNumber | undefined;
|
|
136
136
|
updatedMessage?: string | undefined;
|
|
137
|
+
transactionHash?: string | undefined;
|
|
138
|
+
transactionIndex?: number | undefined;
|
|
137
139
|
speedUpSignature?: string | undefined;
|
|
138
140
|
txnIndex?: number | undefined;
|
|
139
141
|
txnRef?: string | undefined;
|
|
140
|
-
transactionHash?: string | undefined;
|
|
141
|
-
transactionIndex?: number | undefined;
|
|
142
142
|
relayerFeePct?: BigNumber | undefined;
|
|
143
143
|
}[]>>;
|
|
144
144
|
unexecutableSlowFills: Record<string, Record<string, {
|
|
145
145
|
message: string;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
inputAmount: BigNumber;
|
|
146
|
+
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
147
|
+
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
149
148
|
originChainId: number;
|
|
150
|
-
destinationChainId: number;
|
|
151
|
-
fromLiteChain: boolean;
|
|
152
|
-
toLiteChain: boolean;
|
|
153
|
-
messageHash: string;
|
|
154
|
-
quoteTimestamp: number;
|
|
155
149
|
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
156
|
-
|
|
150
|
+
depositId: BigNumber;
|
|
157
151
|
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
158
|
-
|
|
152
|
+
inputAmount: BigNumber;
|
|
153
|
+
outputAmount: BigNumber;
|
|
159
154
|
fillDeadline: number;
|
|
160
155
|
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
161
156
|
exclusivityDeadline: number;
|
|
157
|
+
destinationChainId: number;
|
|
158
|
+
quoteTimestamp: number;
|
|
159
|
+
fromLiteChain: boolean;
|
|
160
|
+
toLiteChain: boolean;
|
|
161
|
+
messageHash: string;
|
|
162
162
|
blockNumber: number;
|
|
163
163
|
logIndex: number;
|
|
164
164
|
quoteBlockNumber: number;
|
|
@@ -166,94 +166,94 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
166
166
|
updatedRecipient?: SvmAddress | EvmAddress | RawAddress | undefined;
|
|
167
167
|
updatedOutputAmount?: BigNumber | undefined;
|
|
168
168
|
updatedMessage?: string | undefined;
|
|
169
|
+
transactionHash?: string | undefined;
|
|
170
|
+
transactionIndex?: number | undefined;
|
|
169
171
|
speedUpSignature?: string | undefined;
|
|
170
172
|
txnIndex?: number | undefined;
|
|
171
173
|
txnRef?: string | undefined;
|
|
172
|
-
transactionHash?: string | undefined;
|
|
173
|
-
transactionIndex?: number | undefined;
|
|
174
174
|
relayerFeePct?: BigNumber | undefined;
|
|
175
175
|
}[]>>;
|
|
176
176
|
}, {
|
|
177
177
|
bundleDepositsV3: import("superstruct").Struct<Record<string, Record<string, {
|
|
178
178
|
message: string;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
inputAmount: BigNumber;
|
|
179
|
+
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
180
|
+
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
182
181
|
originChainId: number;
|
|
183
|
-
destinationChainId: number;
|
|
184
|
-
fromLiteChain: boolean;
|
|
185
|
-
toLiteChain: boolean;
|
|
186
|
-
messageHash: string;
|
|
187
|
-
quoteTimestamp: number;
|
|
188
182
|
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
189
|
-
|
|
183
|
+
depositId: BigNumber;
|
|
190
184
|
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
191
|
-
|
|
185
|
+
inputAmount: BigNumber;
|
|
186
|
+
outputAmount: BigNumber;
|
|
192
187
|
fillDeadline: number;
|
|
193
188
|
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
194
189
|
exclusivityDeadline: number;
|
|
190
|
+
destinationChainId: number;
|
|
191
|
+
quoteTimestamp: number;
|
|
192
|
+
fromLiteChain: boolean;
|
|
193
|
+
toLiteChain: boolean;
|
|
194
|
+
messageHash: string;
|
|
195
195
|
blockNumber: number;
|
|
196
196
|
logIndex: number;
|
|
197
197
|
quoteBlockNumber: number;
|
|
198
198
|
updatedRecipient?: SvmAddress | EvmAddress | RawAddress | undefined;
|
|
199
199
|
updatedOutputAmount?: BigNumber | undefined;
|
|
200
200
|
updatedMessage?: string | undefined;
|
|
201
|
+
transactionHash?: string | undefined;
|
|
202
|
+
transactionIndex?: number | undefined;
|
|
201
203
|
speedUpSignature?: string | undefined;
|
|
202
204
|
txnIndex?: number | undefined;
|
|
203
205
|
txnRef?: string | undefined;
|
|
204
|
-
transactionHash?: string | undefined;
|
|
205
|
-
transactionIndex?: number | undefined;
|
|
206
206
|
relayerFeePct?: BigNumber | undefined;
|
|
207
207
|
}[]>>, null>;
|
|
208
208
|
expiredDepositsToRefundV3: import("superstruct").Struct<Record<string, Record<string, {
|
|
209
209
|
message: string;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
inputAmount: BigNumber;
|
|
210
|
+
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
211
|
+
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
213
212
|
originChainId: number;
|
|
214
|
-
destinationChainId: number;
|
|
215
|
-
fromLiteChain: boolean;
|
|
216
|
-
toLiteChain: boolean;
|
|
217
|
-
messageHash: string;
|
|
218
|
-
quoteTimestamp: number;
|
|
219
213
|
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
220
|
-
|
|
214
|
+
depositId: BigNumber;
|
|
221
215
|
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
222
|
-
|
|
216
|
+
inputAmount: BigNumber;
|
|
217
|
+
outputAmount: BigNumber;
|
|
223
218
|
fillDeadline: number;
|
|
224
219
|
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
225
220
|
exclusivityDeadline: number;
|
|
221
|
+
destinationChainId: number;
|
|
222
|
+
quoteTimestamp: number;
|
|
223
|
+
fromLiteChain: boolean;
|
|
224
|
+
toLiteChain: boolean;
|
|
225
|
+
messageHash: string;
|
|
226
226
|
blockNumber: number;
|
|
227
227
|
logIndex: number;
|
|
228
228
|
quoteBlockNumber: number;
|
|
229
229
|
updatedRecipient?: SvmAddress | EvmAddress | RawAddress | undefined;
|
|
230
230
|
updatedOutputAmount?: BigNumber | undefined;
|
|
231
231
|
updatedMessage?: string | undefined;
|
|
232
|
+
transactionHash?: string | undefined;
|
|
233
|
+
transactionIndex?: number | undefined;
|
|
232
234
|
speedUpSignature?: string | undefined;
|
|
233
235
|
txnIndex?: number | undefined;
|
|
234
236
|
txnRef?: string | undefined;
|
|
235
|
-
transactionHash?: string | undefined;
|
|
236
|
-
transactionIndex?: number | undefined;
|
|
237
237
|
relayerFeePct?: BigNumber | undefined;
|
|
238
238
|
}[]>>, null>;
|
|
239
239
|
unexecutableSlowFills: import("superstruct").Struct<Record<string, Record<string, {
|
|
240
240
|
message: string;
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
inputAmount: BigNumber;
|
|
241
|
+
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
242
|
+
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
244
243
|
originChainId: number;
|
|
245
|
-
destinationChainId: number;
|
|
246
|
-
fromLiteChain: boolean;
|
|
247
|
-
toLiteChain: boolean;
|
|
248
|
-
messageHash: string;
|
|
249
|
-
quoteTimestamp: number;
|
|
250
244
|
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
251
|
-
|
|
245
|
+
depositId: BigNumber;
|
|
252
246
|
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
253
|
-
|
|
247
|
+
inputAmount: BigNumber;
|
|
248
|
+
outputAmount: BigNumber;
|
|
254
249
|
fillDeadline: number;
|
|
255
250
|
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
256
251
|
exclusivityDeadline: number;
|
|
252
|
+
destinationChainId: number;
|
|
253
|
+
quoteTimestamp: number;
|
|
254
|
+
fromLiteChain: boolean;
|
|
255
|
+
toLiteChain: boolean;
|
|
256
|
+
messageHash: string;
|
|
257
257
|
blockNumber: number;
|
|
258
258
|
logIndex: number;
|
|
259
259
|
quoteBlockNumber: number;
|
|
@@ -261,31 +261,31 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
261
261
|
updatedRecipient?: SvmAddress | EvmAddress | RawAddress | undefined;
|
|
262
262
|
updatedOutputAmount?: BigNumber | undefined;
|
|
263
263
|
updatedMessage?: string | undefined;
|
|
264
|
+
transactionHash?: string | undefined;
|
|
265
|
+
transactionIndex?: number | undefined;
|
|
264
266
|
speedUpSignature?: string | undefined;
|
|
265
267
|
txnIndex?: number | undefined;
|
|
266
268
|
txnRef?: string | undefined;
|
|
267
|
-
transactionHash?: string | undefined;
|
|
268
|
-
transactionIndex?: number | undefined;
|
|
269
269
|
relayerFeePct?: BigNumber | undefined;
|
|
270
270
|
}[]>>, null>;
|
|
271
271
|
bundleSlowFillsV3: import("superstruct").Struct<Record<string, Record<string, {
|
|
272
272
|
message: string;
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
inputAmount: BigNumber;
|
|
273
|
+
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
274
|
+
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
276
275
|
originChainId: number;
|
|
277
|
-
destinationChainId: number;
|
|
278
|
-
fromLiteChain: boolean;
|
|
279
|
-
toLiteChain: boolean;
|
|
280
|
-
messageHash: string;
|
|
281
|
-
quoteTimestamp: number;
|
|
282
276
|
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
283
|
-
|
|
277
|
+
depositId: BigNumber;
|
|
284
278
|
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
285
|
-
|
|
279
|
+
inputAmount: BigNumber;
|
|
280
|
+
outputAmount: BigNumber;
|
|
286
281
|
fillDeadline: number;
|
|
287
282
|
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
288
283
|
exclusivityDeadline: number;
|
|
284
|
+
destinationChainId: number;
|
|
285
|
+
quoteTimestamp: number;
|
|
286
|
+
fromLiteChain: boolean;
|
|
287
|
+
toLiteChain: boolean;
|
|
288
|
+
messageHash: string;
|
|
289
289
|
blockNumber: number;
|
|
290
290
|
logIndex: number;
|
|
291
291
|
quoteBlockNumber: number;
|
|
@@ -293,46 +293,46 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
293
293
|
updatedRecipient?: SvmAddress | EvmAddress | RawAddress | undefined;
|
|
294
294
|
updatedOutputAmount?: BigNumber | undefined;
|
|
295
295
|
updatedMessage?: string | undefined;
|
|
296
|
+
transactionHash?: string | undefined;
|
|
297
|
+
transactionIndex?: number | undefined;
|
|
296
298
|
speedUpSignature?: string | undefined;
|
|
297
299
|
txnIndex?: number | undefined;
|
|
298
300
|
txnRef?: string | undefined;
|
|
299
|
-
transactionHash?: string | undefined;
|
|
300
|
-
transactionIndex?: number | undefined;
|
|
301
301
|
relayerFeePct?: BigNumber | undefined;
|
|
302
302
|
}[]>>, null>;
|
|
303
303
|
bundleFillsV3: import("superstruct").Struct<Record<string, Record<string, {
|
|
304
304
|
fills: {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
inputAmount: BigNumber;
|
|
305
|
+
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
306
|
+
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
308
307
|
originChainId: number;
|
|
309
|
-
destinationChainId: number;
|
|
310
|
-
repaymentChainId: number;
|
|
311
|
-
messageHash: string;
|
|
312
|
-
quoteTimestamp: number;
|
|
313
308
|
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
314
|
-
|
|
309
|
+
depositId: BigNumber;
|
|
315
310
|
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
316
|
-
|
|
311
|
+
inputAmount: BigNumber;
|
|
312
|
+
outputAmount: BigNumber;
|
|
317
313
|
fillDeadline: number;
|
|
318
314
|
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
319
315
|
exclusivityDeadline: number;
|
|
316
|
+
destinationChainId: number;
|
|
317
|
+
repaymentChainId: number;
|
|
318
|
+
quoteTimestamp: number;
|
|
319
|
+
messageHash: string;
|
|
320
320
|
blockNumber: number;
|
|
321
321
|
logIndex: number;
|
|
322
322
|
lpFeePct: BigNumber;
|
|
323
323
|
relayer: SvmAddress | EvmAddress | RawAddress;
|
|
324
324
|
relayExecutionInfo: {
|
|
325
|
-
fillType: number;
|
|
326
325
|
updatedRecipient: SvmAddress | EvmAddress | RawAddress;
|
|
327
326
|
updatedOutputAmount: BigNumber;
|
|
327
|
+
fillType: number;
|
|
328
328
|
updatedMessageHash: string;
|
|
329
329
|
updatedMessage?: string | undefined;
|
|
330
330
|
};
|
|
331
331
|
message?: string | undefined;
|
|
332
|
-
txnIndex?: number | undefined;
|
|
333
|
-
txnRef?: string | undefined;
|
|
334
332
|
transactionHash?: string | undefined;
|
|
335
333
|
transactionIndex?: number | undefined;
|
|
334
|
+
txnIndex?: number | undefined;
|
|
335
|
+
txnRef?: string | undefined;
|
|
336
336
|
}[];
|
|
337
337
|
refunds: Record<string, BigNumber>;
|
|
338
338
|
realizedLpFees: BigNumber;
|
|
@@ -37,7 +37,7 @@ export declare class SvmQuery implements QueryInterface {
|
|
|
37
37
|
recipient: SvmAddress;
|
|
38
38
|
outputToken: SvmAddress;
|
|
39
39
|
}, signer: TransactionSigner, repaymentChainId: number, repaymentAddress: Address): Promise<import("@solana/kit").TransactionMessageWithBlockhashLifetime & import("@solana/kit").ITransactionMessageWithFeePayerSigner<string, TransactionSigner<string>> & Omit<Readonly<{
|
|
40
|
-
instructions: readonly import("@solana/kit").IInstruction<string, readonly (import("@solana/kit").
|
|
40
|
+
instructions: readonly import("@solana/kit").IInstruction<string, readonly (import("@solana/kit").IAccountMeta<string> | import("@solana/kit").IAccountLookupMeta<string, string>)[]>[];
|
|
41
41
|
version: 0;
|
|
42
42
|
}>, "feePayer">>;
|
|
43
43
|
getTokenPrice(tokenSymbol: string): Promise<number>;
|
|
@@ -6,7 +6,7 @@ import { BlockFinder } from "../../utils/BlockFinder";
|
|
|
6
6
|
import { isDefined } from "../../utils/TypeGuards";
|
|
7
7
|
import { getCurrentTime } from "../../utils/TimeUtils";
|
|
8
8
|
import { CHAIN_IDs } from "../../constants";
|
|
9
|
-
import {
|
|
9
|
+
import { getNearestSlotTime } from "./utils";
|
|
10
10
|
var now = getCurrentTime();
|
|
11
11
|
var averageBlockTimes = (_a = {},
|
|
12
12
|
_a[CHAIN_IDs.SOLANA] = { average: 0.4, timestamp: now, blockRange: 1 },
|
|
@@ -101,36 +101,9 @@ var SVMBlockFinder = /** @class */ (function (_super) {
|
|
|
101
101
|
* immediate preceding block timestamp will be used. Note that this may return an eventually-incorrect timestamp for
|
|
102
102
|
* future slots.
|
|
103
103
|
*/
|
|
104
|
-
SVMBlockFinder.prototype.getBlockTime = function (
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
return __generator(this, function (_b) {
|
|
108
|
-
switch (_b.label) {
|
|
109
|
-
case 0:
|
|
110
|
-
if (!(_slot !== null && _slot !== void 0)) return [3 /*break*/, 1];
|
|
111
|
-
_a = _slot;
|
|
112
|
-
return [3 /*break*/, 3];
|
|
113
|
-
case 1: return [4 /*yield*/, this.provider.getSlot({ commitment: "finalized" }).send()];
|
|
114
|
-
case 2:
|
|
115
|
-
_a = (_b.sent());
|
|
116
|
-
_b.label = 3;
|
|
117
|
-
case 3:
|
|
118
|
-
slot = _a;
|
|
119
|
-
_b.label = 4;
|
|
120
|
-
case 4: return [4 /*yield*/, getTimestampForSlot(this.provider, slot)];
|
|
121
|
-
case 5:
|
|
122
|
-
timestamp = _b.sent();
|
|
123
|
-
_b.label = 6;
|
|
124
|
-
case 6:
|
|
125
|
-
if (!isDefined(timestamp) && --slot) return [3 /*break*/, 4];
|
|
126
|
-
_b.label = 7;
|
|
127
|
-
case 7:
|
|
128
|
-
assert(isDefined(timestamp), "Unable to resolve block time for SVM slot ".concat(_slot !== null && _slot !== void 0 ? _slot : "latest"));
|
|
129
|
-
assert(BigInt(Number(timestamp) === timestamp), "Unexpected SVM block timestamp: ".concat(timestamp));
|
|
130
|
-
return [2 /*return*/, { slot: slot, timestamp: Number(timestamp) }];
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
});
|
|
104
|
+
SVMBlockFinder.prototype.getBlockTime = function (slot) {
|
|
105
|
+
var opts = isDefined(slot) ? { slot: slot } : undefined;
|
|
106
|
+
return getNearestSlotTime(this.provider, opts);
|
|
134
107
|
};
|
|
135
108
|
// Grabs the most recent slot and caches it.
|
|
136
109
|
SVMBlockFinder.prototype.getLatestBlock = function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockUtils.js","sourceRoot":"","sources":["../../../../src/arch/svm/BlockUtils.ts"],"names":[],"mappings":";;AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,WAAW,EAA4D,MAAM,yBAAyB,CAAC;AAChH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"BlockUtils.js","sourceRoot":"","sources":["../../../../src/arch/svm/BlockUtils.ts"],"names":[],"mappings":";;AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,WAAW,EAA4D,MAAM,yBAAyB,CAAC;AAChH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAI7C,IAAM,GAAG,GAAG,cAAc,EAAE,CAAC;AAC7B,IAAM,iBAAiB;IACrB,GAAC,SAAS,CAAC,MAAM,IAA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C,MAAM,KAAK,UAAU,CAAC,MAAM,EAAE,kCAAkC,CAAC,CAAC;wBAClF,MAAM,CACJ,SAAS,GAAG,QAAQ,CAAC,SAAS,IAAI,SAAS,GAAG,UAAU,CAAC,SAAS,EAClE,+CAA+C,CAChD,CAAC;wBAGI,mBAAmB,GAAG,QAAQ,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;wBAChE,kBAAkB,GAAG,QAAQ,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;wBACzD,eAAe,GAAG,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,GAAG,mBAAmB,CAAC;wBAC3E,cAAc,GAAG,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,eAAe,GAAG,kBAAkB,CAAC,CAAC;wBAG3E,qBAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,EAAE,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,EAAA;;wBAAjG,QAAQ,GAAG,SAAsF;wBAEvG,0GAA0G;wBAC1G,IAAI,QAAQ,CAAC,SAAS,GAAG,SAAS,EAAE;4BAClC,sBAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAC;yBACtD;6BAAM;4BACL,sBAAO,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAC;yBACxD;;;;;KACF;IACH,qBAAC;AAAD,CAAC,AA9ID,CAAoC,WAAW,GA8I9C"}
|
|
@@ -130,7 +130,7 @@ export declare function getFillRelayTx(spokePoolAddr: SvmAddress, solanaClient:
|
|
|
130
130
|
recipient: SvmAddress;
|
|
131
131
|
outputToken: SvmAddress;
|
|
132
132
|
}, signer: TransactionSigner, repaymentChainId: number, repaymentAddress: SdkAddress): Promise<import("@solana/kit").TransactionMessageWithBlockhashLifetime & import("@solana/kit").ITransactionMessageWithFeePayerSigner<string, TransactionSigner<string>> & Omit<Readonly<{
|
|
133
|
-
instructions: readonly import("@solana/kit").IInstruction<string, readonly (import("@solana/kit").IAccountLookupMeta<string, string>
|
|
133
|
+
instructions: readonly import("@solana/kit").IInstruction<string, readonly (IAccountMeta<string> | import("@solana/kit").IAccountLookupMeta<string, string>)[]>[];
|
|
134
134
|
version: 0;
|
|
135
135
|
}>, "feePayer">>;
|
|
136
136
|
/**
|
|
@@ -143,7 +143,7 @@ export declare function getFillRelayTx(spokePoolAddr: SvmAddress, solanaClient:
|
|
|
143
143
|
* @returns The fill instruction.
|
|
144
144
|
*/
|
|
145
145
|
export declare const createFillInstruction: (signer: TransactionSigner, solanaClient: SVMProvider, fillInput: SvmSpokeClient.FillRelayInput, tokenDecimals: number, createRecipientAtaIfNeeded?: boolean) => Promise<import("@solana/kit").TransactionMessageWithBlockhashLifetime & import("@solana/kit").ITransactionMessageWithFeePayerSigner<string, TransactionSigner<string>> & Omit<Readonly<{
|
|
146
|
-
instructions: readonly import("@solana/kit").IInstruction<string, readonly (import("@solana/kit").IAccountLookupMeta<string, string>
|
|
146
|
+
instructions: readonly import("@solana/kit").IInstruction<string, readonly (IAccountMeta<string> | import("@solana/kit").IAccountLookupMeta<string, string>)[]>[];
|
|
147
147
|
version: 0;
|
|
148
148
|
}>, "feePayer">>;
|
|
149
149
|
/**
|
|
@@ -156,7 +156,7 @@ export declare const createFillInstruction: (signer: TransactionSigner, solanaCl
|
|
|
156
156
|
* @returns The deposit instruction.
|
|
157
157
|
*/
|
|
158
158
|
export declare const createDepositInstruction: (signer: TransactionSigner, solanaClient: SVMProvider, depositInput: SvmSpokeClient.DepositInput, tokenDecimals: number, createVaultAtaIfNeeded?: boolean) => Promise<import("@solana/kit").TransactionMessageWithBlockhashLifetime & import("@solana/kit").ITransactionMessageWithFeePayerSigner<string, TransactionSigner<string>> & Omit<Readonly<{
|
|
159
|
-
instructions: readonly import("@solana/kit").IInstruction<string, readonly (import("@solana/kit").IAccountLookupMeta<string, string>
|
|
159
|
+
instructions: readonly import("@solana/kit").IInstruction<string, readonly (IAccountMeta<string> | import("@solana/kit").IAccountLookupMeta<string, string>)[]>[];
|
|
160
160
|
version: 0;
|
|
161
161
|
}>, "feePayer">>;
|
|
162
162
|
/**
|
|
@@ -167,7 +167,7 @@ export declare const createDepositInstruction: (signer: TransactionSigner, solan
|
|
|
167
167
|
* @returns The request slow fill instruction.
|
|
168
168
|
*/
|
|
169
169
|
export declare const createRequestSlowFillInstruction: (signer: TransactionSigner, solanaClient: SVMProvider, requestSlowFillInput: SvmSpokeClient.RequestSlowFillInput) => Promise<import("@solana/kit").TransactionMessageWithBlockhashLifetime & import("@solana/kit").ITransactionMessageWithFeePayerSigner<string, TransactionSigner<string>> & Omit<Readonly<{
|
|
170
|
-
instructions: readonly import("@solana/kit").IInstruction<string, readonly (import("@solana/kit").IAccountLookupMeta<string, string>
|
|
170
|
+
instructions: readonly import("@solana/kit").IInstruction<string, readonly (IAccountMeta<string> | import("@solana/kit").IAccountLookupMeta<string, string>)[]>[];
|
|
171
171
|
version: 0;
|
|
172
172
|
}>, "feePayer">>;
|
|
173
173
|
/**
|
|
@@ -183,7 +183,7 @@ export declare function getSlowFillRequestTx(spokePoolAddr: SvmAddress, solanaCl
|
|
|
183
183
|
recipient: SvmAddress;
|
|
184
184
|
outputToken: SvmAddress;
|
|
185
185
|
}, signer: TransactionSigner): Promise<import("@solana/kit").TransactionMessageWithBlockhashLifetime & import("@solana/kit").ITransactionMessageWithFeePayerSigner<string, TransactionSigner<string>> & Omit<Readonly<{
|
|
186
|
-
instructions: readonly import("@solana/kit").IInstruction<string, readonly (import("@solana/kit").IAccountLookupMeta<string, string>
|
|
186
|
+
instructions: readonly import("@solana/kit").IInstruction<string, readonly (IAccountMeta<string> | import("@solana/kit").IAccountLookupMeta<string, string>)[]>[];
|
|
187
187
|
version: 0;
|
|
188
188
|
}>, "feePayer">>;
|
|
189
189
|
/**
|
|
@@ -194,11 +194,11 @@ export declare function getSlowFillRequestTx(spokePoolAddr: SvmAddress, solanaCl
|
|
|
194
194
|
* @returns The close fill PDA instruction.
|
|
195
195
|
*/
|
|
196
196
|
export declare const createCloseFillPdaInstruction: (signer: TransactionSigner, solanaClient: SVMProvider, fillStatusPda: Address) => Promise<import("@solana/kit").TransactionMessageWithBlockhashLifetime & import("@solana/kit").ITransactionMessageWithFeePayerSigner<string, TransactionSigner<string>> & Omit<Readonly<{
|
|
197
|
-
instructions: readonly import("@solana/kit").IInstruction<string, readonly (import("@solana/kit").IAccountLookupMeta<string, string>
|
|
197
|
+
instructions: readonly import("@solana/kit").IInstruction<string, readonly (IAccountMeta<string> | import("@solana/kit").IAccountLookupMeta<string, string>)[]>[];
|
|
198
198
|
version: 0;
|
|
199
199
|
}>, "feePayer">>;
|
|
200
200
|
export declare const createReceiveMessageInstruction: (signer: TransactionSigner, solanaClient: SVMProvider, input: MessageTransmitterClient.ReceiveMessageInput, remainingAccounts: IAccountMeta<string>[]) => Promise<import("@solana/kit").TransactionMessageWithBlockhashLifetime & import("@solana/kit").ITransactionMessageWithFeePayerSigner<string, TransactionSigner<string>> & Omit<Readonly<{
|
|
201
|
-
instructions: readonly import("@solana/kit").IInstruction<string, readonly (import("@solana/kit").IAccountLookupMeta<string, string>
|
|
201
|
+
instructions: readonly import("@solana/kit").IInstruction<string, readonly (IAccountMeta<string> | import("@solana/kit").IAccountLookupMeta<string, string>)[]>[];
|
|
202
202
|
version: 0;
|
|
203
203
|
}>, "feePayer">>;
|
|
204
204
|
export declare function getAssociatedTokenAddress(owner: SvmAddress, mint: SvmAddress, tokenProgramId?: Address<string>): Promise<Address<string>>;
|
|
@@ -263,7 +263,7 @@ export declare function getAccountMetasForTokenlessMessage(): Promise<IAccountMe
|
|
|
263
263
|
* @returns The CCTP v1 receive message transaction.
|
|
264
264
|
*/
|
|
265
265
|
export declare function getCCTPV1ReceiveMessageTx(solanaClient: SVMProvider, signer: KeyPairSigner, message: AttestedCCTPMessage, hubChainId: number): Promise<import("@solana/kit").TransactionMessageWithBlockhashLifetime & import("@solana/kit").ITransactionMessageWithFeePayerSigner<string, TransactionSigner<string>> & Omit<Readonly<{
|
|
266
|
-
instructions: readonly import("@solana/kit").IInstruction<string, readonly (import("@solana/kit").IAccountLookupMeta<string, string>
|
|
266
|
+
instructions: readonly import("@solana/kit").IInstruction<string, readonly (IAccountMeta<string> | import("@solana/kit").IAccountLookupMeta<string, string>)[]>[];
|
|
267
267
|
version: 0;
|
|
268
268
|
}>, "feePayer">>;
|
|
269
269
|
/**
|