@across-protocol/sdk 4.3.167 → 4.3.168
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/src/arch/evm/UpgradeUtils.d.ts +1 -1
- package/dist/cjs/src/arch/evm/UpgradeUtils.js +2 -2
- package/dist/cjs/src/arch/evm/UpgradeUtils.js.map +1 -1
- package/dist/cjs/src/arch/tvm/SpokeUtils.d.ts +9 -5
- package/dist/cjs/src/arch/tvm/SpokeUtils.js +13 -12
- package/dist/cjs/src/arch/tvm/SpokeUtils.js.map +1 -1
- package/dist/cjs/src/clients/BundleDataClient/BundleDataClient.js +4 -2
- package/dist/cjs/src/clients/BundleDataClient/BundleDataClient.js.map +1 -1
- package/dist/cjs/src/clients/SpokePoolClient/EVMSpokePoolClient.js +19 -6
- package/dist/cjs/src/clients/SpokePoolClient/EVMSpokePoolClient.js.map +1 -1
- package/dist/esm/src/arch/evm/UpgradeUtils.d.ts +2 -1
- package/dist/esm/src/arch/evm/UpgradeUtils.js +3 -2
- package/dist/esm/src/arch/evm/UpgradeUtils.js.map +1 -1
- package/dist/esm/src/arch/tvm/SpokeUtils.d.ts +9 -5
- package/dist/esm/src/arch/tvm/SpokeUtils.js +13 -13
- package/dist/esm/src/arch/tvm/SpokeUtils.js.map +1 -1
- package/dist/esm/src/clients/BundleDataClient/BundleDataClient.js +4 -2
- package/dist/esm/src/clients/BundleDataClient/BundleDataClient.js.map +1 -1
- package/dist/esm/src/clients/SpokePoolClient/EVMSpokePoolClient.js +19 -6
- package/dist/esm/src/clients/SpokePoolClient/EVMSpokePoolClient.js.map +1 -1
- package/dist/types/src/arch/evm/UpgradeUtils.d.ts +2 -1
- package/dist/types/src/arch/evm/UpgradeUtils.d.ts.map +1 -1
- package/dist/types/src/arch/tvm/SpokeUtils.d.ts +9 -5
- package/dist/types/src/arch/tvm/SpokeUtils.d.ts.map +1 -1
- package/dist/types/src/clients/BundleDataClient/BundleDataClient.d.ts.map +1 -1
- package/dist/types/src/clients/SpokePoolClient/EVMSpokePoolClient.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/arch/evm/UpgradeUtils.ts +8 -2
- package/src/arch/tvm/SpokeUtils.ts +20 -13
- package/src/clients/BundleDataClient/BundleDataClient.ts +10 -2
- package/src/clients/SpokePoolClient/EVMSpokePoolClient.ts +19 -6
|
@@ -58,8 +58,13 @@ export class EVMSpokePoolClient extends SpokePoolClient {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
public override relayFillStatus(relayData: RelayData, atHeight?: number): Promise<FillStatus> {
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
if (this.tvm) {
|
|
62
|
+
return relayFillStatusTvm(this.spokePool, relayData, atHeight, this.chainId, {
|
|
63
|
+
from: this.deploymentBlock,
|
|
64
|
+
maxLookBack: this.eventSearchConfig.maxLookBack,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
return relayFillStatus(this.spokePool, relayData, atHeight, this.chainId);
|
|
63
68
|
}
|
|
64
69
|
|
|
65
70
|
public override fillStatusArray(relayData: RelayData[], atHeight?: number): Promise<(FillStatus | undefined)[]> {
|
|
@@ -71,8 +76,12 @@ export class EVMSpokePoolClient extends SpokePoolClient {
|
|
|
71
76
|
// an earlier block reverts because the contract did not yet exist.
|
|
72
77
|
const effectiveStartBlock = Math.max(startBlock, this.deploymentBlock);
|
|
73
78
|
|
|
74
|
-
|
|
75
|
-
|
|
79
|
+
if (this.tvm) {
|
|
80
|
+
return getMaxFillDeadlineTvm(this.spokePool, effectiveStartBlock, endBlock, {
|
|
81
|
+
maxLookBack: this.eventSearchConfig.maxLookBack,
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
return getMaxFillDeadline(this.spokePool, effectiveStartBlock, endBlock);
|
|
76
85
|
}
|
|
77
86
|
|
|
78
87
|
private _availableEventsOnSpoke(eventNames: string[] = knownEventNames): { [eventName: string]: EventFilter } {
|
|
@@ -216,8 +225,12 @@ export class EVMSpokePoolClient extends SpokePoolClient {
|
|
|
216
225
|
* TVM overrides this with an event-based lookup.
|
|
217
226
|
*/
|
|
218
227
|
protected _findDepositBlock(depositId: BigNumber, lowBlock: number, highBlock?: number): Promise<number | undefined> {
|
|
219
|
-
|
|
220
|
-
|
|
228
|
+
if (this.tvm) {
|
|
229
|
+
return findDepositBlockTvm(this.spokePool, depositId, lowBlock, highBlock, {
|
|
230
|
+
maxLookBack: this.eventSearchConfig.maxLookBack,
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
return findDepositBlock(this.spokePool, depositId, lowBlock, highBlock);
|
|
221
234
|
}
|
|
222
235
|
|
|
223
236
|
protected async queryDepositEvents(
|