@across-protocol/sdk 4.3.143-alpha.3 → 4.3.143
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/caching/Arweave/ArweaveClient.d.ts +6 -11
- package/dist/cjs/src/caching/Arweave/ArweaveClient.js +74 -98
- package/dist/cjs/src/caching/Arweave/ArweaveClient.js.map +1 -1
- package/dist/cjs/src/clients/BundleDataClient/utils/SuperstructUtils.d.ts +64 -63
- package/dist/cjs/src/clients/BundleDataClient/utils/SuperstructUtils.js +31 -13
- package/dist/cjs/src/clients/BundleDataClient/utils/SuperstructUtils.js.map +1 -1
- package/dist/esm/src/caching/Arweave/ArweaveClient.d.ts +8 -21
- package/dist/esm/src/caching/Arweave/ArweaveClient.js +80 -113
- package/dist/esm/src/caching/Arweave/ArweaveClient.js.map +1 -1
- package/dist/esm/src/clients/BundleDataClient/utils/SuperstructUtils.d.ts +64 -63
- package/dist/esm/src/clients/BundleDataClient/utils/SuperstructUtils.js +29 -11
- package/dist/esm/src/clients/BundleDataClient/utils/SuperstructUtils.js.map +1 -1
- package/dist/types/src/caching/Arweave/ArweaveClient.d.ts +8 -21
- package/dist/types/src/caching/Arweave/ArweaveClient.d.ts.map +1 -1
- package/dist/types/src/clients/BundleDataClient/utils/SuperstructUtils.d.ts +64 -63
- package/dist/types/src/clients/BundleDataClient/utils/SuperstructUtils.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/caching/Arweave/ArweaveClient.ts +76 -126
- package/src/clients/BundleDataClient/utils/SuperstructUtils.ts +26 -12
|
@@ -2,22 +2,16 @@ import { JWKInterface } from "arweave/node/lib/wallet";
|
|
|
2
2
|
import { Struct } from "superstruct";
|
|
3
3
|
import winston from "winston";
|
|
4
4
|
import { BigNumber } from "../../utils";
|
|
5
|
-
export interface ArweaveGatewayConfig {
|
|
6
|
-
host: string;
|
|
7
|
-
protocol?: string;
|
|
8
|
-
port?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const DEFAULT_ARWEAVE_GATEWAYS: ArweaveGatewayConfig[];
|
|
11
5
|
export declare class ArweaveClient {
|
|
12
6
|
private arweaveJWT;
|
|
13
7
|
private logger;
|
|
8
|
+
gatewayURL: string;
|
|
9
|
+
protocol: string;
|
|
14
10
|
private readonly retries;
|
|
15
11
|
private readonly retryDelaySeconds;
|
|
16
|
-
private
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
private _failoverGateways;
|
|
20
|
-
private _retryRequest;
|
|
12
|
+
private client;
|
|
13
|
+
private gatewayUrl;
|
|
14
|
+
constructor(arweaveJWT: JWKInterface, logger: winston.Logger, gatewayURL?: string, protocol?: string, port?: number, retries?: number, retryDelaySeconds?: number);
|
|
21
15
|
set(value: Record<string, unknown>, topicTag?: string | undefined): Promise<string | undefined>;
|
|
22
16
|
get<T>(transactionID: string, validator: Struct<T>): Promise<T | null>;
|
|
23
17
|
getByTopic<T>(tag: string, validator: Struct<T>, originQueryAddress?: string): Promise<{
|
|
@@ -26,5 +20,6 @@ export declare class ArweaveClient {
|
|
|
26
20
|
}[]>;
|
|
27
21
|
getMetadata(transactionID: string): Promise<Record<string, string> | null>;
|
|
28
22
|
getAddress(): Promise<string>;
|
|
23
|
+
private _retryRequest;
|
|
29
24
|
getBalance(): Promise<BigNumber>;
|
|
30
25
|
}
|
|
@@ -1,127 +1,83 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ArweaveClient =
|
|
3
|
+
exports.ArweaveClient = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const arweave_1 = tslib_1.__importDefault(require("arweave"));
|
|
6
6
|
const superstruct_1 = require("superstruct");
|
|
7
7
|
const constants_1 = require("../../constants");
|
|
8
8
|
const utils_1 = require("../../utils");
|
|
9
|
-
exports.DEFAULT_ARWEAVE_GATEWAYS = [{ host: "arweave.net" }, { host: "ar-io.net" }];
|
|
10
9
|
class ArweaveClient {
|
|
11
10
|
arweaveJWT;
|
|
12
11
|
logger;
|
|
12
|
+
gatewayURL;
|
|
13
|
+
protocol;
|
|
13
14
|
retries;
|
|
14
15
|
retryDelaySeconds;
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
client;
|
|
17
|
+
gatewayUrl;
|
|
18
|
+
constructor(arweaveJWT, logger, gatewayURL = "arweave.net", protocol = "https", port = 443, retries = 2, retryDelaySeconds = 1) {
|
|
17
19
|
this.arweaveJWT = arweaveJWT;
|
|
18
20
|
this.logger = logger;
|
|
21
|
+
this.gatewayURL = gatewayURL;
|
|
22
|
+
this.protocol = protocol;
|
|
19
23
|
this.retries = retries;
|
|
20
24
|
this.retryDelaySeconds = retryDelaySeconds;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
this.gateways = gateways.map(({ host, protocol = "https", port = 443 }) => ({
|
|
31
|
-
client: new arweave_1.default({ host, port, protocol, timeout: 20000, logging: false }),
|
|
32
|
-
url: `${protocol}://${host}:${port}`,
|
|
33
|
-
}));
|
|
25
|
+
this.gatewayUrl = `${protocol}://${gatewayURL}:${port}`;
|
|
26
|
+
this.client = new arweave_1.default({
|
|
27
|
+
host: gatewayURL,
|
|
28
|
+
port,
|
|
29
|
+
protocol,
|
|
30
|
+
timeout: 20000,
|
|
31
|
+
logging: false,
|
|
32
|
+
});
|
|
34
33
|
this.logger.debug({
|
|
35
34
|
at: "ArweaveClient:constructor",
|
|
36
35
|
message: "Arweave client initialized",
|
|
37
|
-
|
|
36
|
+
gateway: this.gatewayUrl,
|
|
38
37
|
});
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
try {
|
|
42
|
-
return await Promise.any(this.gateways.map((gw) => this._retryRequest(() => fn(gw), 0)));
|
|
43
|
-
}
|
|
44
|
-
catch (e) {
|
|
45
|
-
if (e instanceof AggregateError) {
|
|
46
|
-
const details = this.gateways.map((gw, i) => `${gw.url}: ${e.errors[i]}`).join("; ");
|
|
47
|
-
throw new Error(`All Arweave gateways failed for ${label}: ${details}`);
|
|
48
|
-
}
|
|
49
|
-
throw e;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
async _failoverGateways(label, fn) {
|
|
53
|
-
const errors = [];
|
|
54
|
-
for (const gw of this.gateways) {
|
|
55
|
-
try {
|
|
56
|
-
return await this._retryRequest(() => fn(gw), 0);
|
|
57
|
-
}
|
|
58
|
-
catch (e) {
|
|
59
|
-
errors.push(e);
|
|
60
|
-
this.logger.debug({
|
|
61
|
-
at: "ArweaveClient:failoverGateways",
|
|
62
|
-
message: `Gateway ${gw.url} failed for ${label}, trying next: ${e}`,
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
const details = this.gateways.map((gw, i) => `${gw.url}: ${errors[i]}`).join("; ");
|
|
67
|
-
throw new Error(`All Arweave gateways failed for ${label}: ${details}`);
|
|
68
|
-
}
|
|
69
|
-
async _retryRequest(request, retryCount) {
|
|
70
|
-
try {
|
|
71
|
-
return await request();
|
|
38
|
+
if (this.retries < 0) {
|
|
39
|
+
throw new Error(`retries cannot be < 0 and must be an integer. Currently set to ${this.retries}`);
|
|
72
40
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
const baseDelay = this.retryDelaySeconds * Math.pow(2, retryCount);
|
|
76
|
-
const delayS = baseDelay + baseDelay * Math.random();
|
|
77
|
-
this.logger.debug({
|
|
78
|
-
at: "ArweaveClient:retryRequest",
|
|
79
|
-
message: `Arweave request failed, retrying after waiting ${delayS} seconds: ${e}`,
|
|
80
|
-
retryCount,
|
|
81
|
-
});
|
|
82
|
-
await (0, utils_1.delay)(delayS);
|
|
83
|
-
return this._retryRequest(request, retryCount + 1);
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
throw e;
|
|
87
|
-
}
|
|
41
|
+
if (this.retryDelaySeconds < 0) {
|
|
42
|
+
throw new Error(`delay cannot be < 0. Currently set to ${this.retryDelaySeconds}`);
|
|
88
43
|
}
|
|
89
44
|
}
|
|
90
45
|
async set(value, topicTag) {
|
|
91
|
-
const
|
|
92
|
-
const transaction = await templateClient.createTransaction({ data: JSON.stringify(value, utils_1.jsonReplacerWithBigNumbers) }, this.arweaveJWT);
|
|
46
|
+
const transaction = await this.client.createTransaction({ data: JSON.stringify(value, utils_1.jsonReplacerWithBigNumbers) }, this.arweaveJWT);
|
|
93
47
|
transaction.addTag("Content-Type", "application/json");
|
|
94
48
|
transaction.addTag("App-Name", constants_1.ARWEAVE_TAG_APP_NAME);
|
|
95
49
|
transaction.addTag("App-Version", constants_1.ARWEAVE_TAG_APP_VERSION.toString());
|
|
96
50
|
if ((0, utils_1.isDefined)(topicTag)) {
|
|
97
51
|
transaction.addTag("Topic", topicTag);
|
|
98
52
|
}
|
|
99
|
-
await
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
53
|
+
await this.client.transactions.sign(transaction, this.arweaveJWT);
|
|
54
|
+
const result = await this.client.transactions.post(transaction);
|
|
55
|
+
if (result.status !== 200) {
|
|
56
|
+
const message = result?.data?.error?.msg ?? "Unknown error";
|
|
57
|
+
this.logger.error({
|
|
58
|
+
at: "ArweaveClient:set",
|
|
59
|
+
message,
|
|
60
|
+
result,
|
|
61
|
+
txn: transaction.id,
|
|
62
|
+
address: await this.getAddress(),
|
|
63
|
+
balance: (await this.getBalance()).toString(),
|
|
64
|
+
});
|
|
65
|
+
throw new Error(message);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
114
68
|
this.logger.debug({
|
|
115
69
|
at: "ArweaveClient:set",
|
|
116
70
|
message: `Arweave transaction posted with ${transaction.id}`,
|
|
117
71
|
});
|
|
118
|
-
|
|
119
|
-
|
|
72
|
+
}
|
|
73
|
+
return transaction.id;
|
|
120
74
|
}
|
|
121
75
|
async get(transactionID, validator) {
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
|
|
76
|
+
const transactionUrl = `${this.gatewayUrl}/${transactionID}`;
|
|
77
|
+
const request = async () => {
|
|
78
|
+
return await (0, utils_1.fetchWithTimeout)(transactionUrl, {}, {}, 20_000);
|
|
79
|
+
};
|
|
80
|
+
const data = await this._retryRequest(request, 0);
|
|
125
81
|
try {
|
|
126
82
|
return (0, superstruct_1.create)(data, validator);
|
|
127
83
|
}
|
|
@@ -146,13 +102,13 @@ class ArweaveClient {
|
|
|
146
102
|
]
|
|
147
103
|
) { edges { node { id } } }
|
|
148
104
|
}`;
|
|
149
|
-
const response = await this.
|
|
150
|
-
const response = await client.api.post("/graphql", { query });
|
|
105
|
+
const response = await this._retryRequest(async () => {
|
|
106
|
+
const response = await this.client.api.post("/graphql", { query });
|
|
151
107
|
if (!response.ok) {
|
|
152
108
|
throw new Error(`Arweave GraphQL request failed with status ${response.status}`);
|
|
153
109
|
}
|
|
154
110
|
return response;
|
|
155
|
-
});
|
|
111
|
+
}, 0);
|
|
156
112
|
const entries = response?.data?.data?.transactions?.edges ?? [];
|
|
157
113
|
this.logger.debug({
|
|
158
114
|
at: "ArweaveClient:getByTopic",
|
|
@@ -185,9 +141,7 @@ class ArweaveClient {
|
|
|
185
141
|
return results.filter(utils_1.isDefined);
|
|
186
142
|
}
|
|
187
143
|
async getMetadata(transactionID) {
|
|
188
|
-
const transaction = await this.
|
|
189
|
-
return await client.transactions.get(transactionID);
|
|
190
|
-
});
|
|
144
|
+
const transaction = await this.client.transactions.get(transactionID);
|
|
191
145
|
if (!(0, utils_1.isDefined)(transaction)) {
|
|
192
146
|
return null;
|
|
193
147
|
}
|
|
@@ -202,12 +156,33 @@ class ArweaveClient {
|
|
|
202
156
|
};
|
|
203
157
|
}
|
|
204
158
|
getAddress() {
|
|
205
|
-
return this.
|
|
159
|
+
return this.client.wallets.jwkToAddress(this.arweaveJWT);
|
|
160
|
+
}
|
|
161
|
+
async _retryRequest(request, retryCount) {
|
|
162
|
+
try {
|
|
163
|
+
return await request();
|
|
164
|
+
}
|
|
165
|
+
catch (e) {
|
|
166
|
+
if (retryCount < this.retries) {
|
|
167
|
+
const baseDelay = this.retryDelaySeconds * Math.pow(2, retryCount);
|
|
168
|
+
const delayS = baseDelay + baseDelay * Math.random();
|
|
169
|
+
this.logger.debug({
|
|
170
|
+
at: "ArweaveClient:retryRequest",
|
|
171
|
+
message: `Arweave request failed, retrying after waiting ${delayS} seconds: ${e}`,
|
|
172
|
+
retryCount,
|
|
173
|
+
});
|
|
174
|
+
await (0, utils_1.delay)(delayS);
|
|
175
|
+
return this._retryRequest(request, retryCount + 1);
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
throw e;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
206
181
|
}
|
|
207
182
|
async getBalance() {
|
|
208
183
|
const address = await this.getAddress();
|
|
209
|
-
|
|
210
|
-
const balanceInFloat = await client.wallets.getBalance(address);
|
|
184
|
+
const request = async () => {
|
|
185
|
+
const balanceInFloat = await this.client.wallets.getBalance(address);
|
|
211
186
|
if (balanceInFloat.includes("e")) {
|
|
212
187
|
const [balance, exponent] = balanceInFloat.split("e");
|
|
213
188
|
const resultingBN = utils_1.BigNumber.from(balance).mul((0, utils_1.toBN)(10).pow(exponent.replace("+", "")));
|
|
@@ -216,7 +191,8 @@ class ArweaveClient {
|
|
|
216
191
|
else {
|
|
217
192
|
return utils_1.BigNumber.from(balanceInFloat);
|
|
218
193
|
}
|
|
219
|
-
}
|
|
194
|
+
};
|
|
195
|
+
return await this._retryRequest(request, 0);
|
|
220
196
|
}
|
|
221
197
|
}
|
|
222
198
|
exports.ArweaveClient = ArweaveClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArweaveClient.js","sourceRoot":"","sources":["../../../../../src/caching/Arweave/ArweaveClient.ts"],"names":[],"mappings":";;;;AAAA,8DAA8B;AAG9B,6CAA6C;AAE7C,+CAAiH;AACjH,uCAA8G;
|
|
1
|
+
{"version":3,"file":"ArweaveClient.js","sourceRoot":"","sources":["../../../../../src/caching/Arweave/ArweaveClient.ts"],"names":[],"mappings":";;;;AAAA,8DAA8B;AAG9B,6CAA6C;AAE7C,+CAAiH;AACjH,uCAA8G;AAE9G,MAAa,aAAa;IAKd;IACA;IACD;IACA;IAEU;IACA;IAVX,MAAM,CAAU;IAChB,UAAU,CAAS;IAE3B,YACU,UAAwB,EACxB,MAAsB,EACvB,aAAa,aAAa,EAC1B,WAAW,OAAO,EACzB,IAAI,GAAG,GAAG,EACO,UAAU,CAAC,EACX,oBAAoB,CAAC;QAN9B,eAAU,GAAV,UAAU,CAAc;QACxB,WAAM,GAAN,MAAM,CAAgB;QACvB,eAAU,GAAV,UAAU,CAAgB;QAC1B,aAAQ,GAAR,QAAQ,CAAU;QAER,YAAO,GAAP,OAAO,CAAI;QACX,sBAAiB,GAAjB,iBAAiB,CAAI;QAEtC,IAAI,CAAC,UAAU,GAAG,GAAG,QAAQ,MAAM,UAAU,IAAI,IAAI,EAAE,CAAC;QACxD,IAAI,CAAC,MAAM,GAAG,IAAI,iBAAO,CAAC;YACxB,IAAI,EAAE,UAAU;YAChB,IAAI;YACJ,QAAQ;YACR,OAAO,EAAE,KAAK;YACd,OAAO,EAAE,KAAK;SACf,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;YAChB,EAAE,EAAE,2BAA2B;YAC/B,OAAO,EAAE,4BAA4B;YACrC,OAAO,EAAE,IAAI,CAAC,UAAU;SACzB,CAAC,CAAC;QACH,IAAI,IAAI,CAAC,OAAO,GAAG,CAAC,EAAE,CAAC;YACrB,MAAM,IAAI,KAAK,CAAC,kEAAkE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QACpG,CAAC;QACD,IAAI,IAAI,CAAC,iBAAiB,GAAG,CAAC,EAAE,CA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,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;gBACzF,OAAO,iBAAS,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;YAChD,CAAC;iBAAM,CAAC;gBACN,OAAO,iBAAS,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YACxC,CAAC;QACH,CAAC,CAAC;QACF,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IAC9C,CAAC;CACF;AArQD,sCAqQC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Infer } from "superstruct";
|
|
2
|
-
import { BigNumber, EvmAddress, RawAddress, SvmAddress } from "../../../utils";
|
|
2
|
+
import { BigNumber, EvmAddress, RawAddress, SvmAddress, TvmAddress } from "../../../utils";
|
|
3
|
+
export declare const AddressType: import("superstruct").Struct<SvmAddress | EvmAddress | TvmAddress | RawAddress, null>;
|
|
3
4
|
export declare const SortableEventSS: {
|
|
4
5
|
blockNumber: import("superstruct").Struct<number, null>;
|
|
5
6
|
logIndex: import("superstruct").Struct<number, null>;
|
|
@@ -13,13 +14,13 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
13
14
|
message: string;
|
|
14
15
|
destinationChainId: number;
|
|
15
16
|
originChainId: number;
|
|
16
|
-
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
17
|
-
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
18
|
-
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
19
|
-
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
17
|
+
depositor: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
18
|
+
recipient: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
19
|
+
inputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
20
|
+
outputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
20
21
|
inputAmount: BigNumber;
|
|
21
22
|
outputAmount: BigNumber;
|
|
22
|
-
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
23
|
+
exclusiveRelayer: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
23
24
|
quoteTimestamp: number;
|
|
24
25
|
fillDeadline: number;
|
|
25
26
|
depositId: BigNumber;
|
|
@@ -31,7 +32,7 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
31
32
|
blockNumber: number;
|
|
32
33
|
logIndex: number;
|
|
33
34
|
updatedOutputAmount?: BigNumber | undefined;
|
|
34
|
-
updatedRecipient?: SvmAddress | EvmAddress | RawAddress | undefined;
|
|
35
|
+
updatedRecipient?: SvmAddress | EvmAddress | TvmAddress | RawAddress | undefined;
|
|
35
36
|
updatedMessage?: string | undefined;
|
|
36
37
|
speedUpSignature?: string | undefined;
|
|
37
38
|
txnIndex?: number | undefined;
|
|
@@ -44,23 +45,23 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
44
45
|
fills: {
|
|
45
46
|
destinationChainId: number;
|
|
46
47
|
originChainId: number;
|
|
47
|
-
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
48
|
-
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
49
|
-
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
50
|
-
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
48
|
+
depositor: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
49
|
+
recipient: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
50
|
+
inputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
51
|
+
outputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
51
52
|
inputAmount: BigNumber;
|
|
52
53
|
outputAmount: BigNumber;
|
|
53
|
-
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
54
|
+
exclusiveRelayer: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
54
55
|
quoteTimestamp: number;
|
|
55
56
|
fillDeadline: number;
|
|
56
57
|
depositId: BigNumber;
|
|
57
58
|
exclusivityDeadline: number;
|
|
58
59
|
repaymentChainId: number;
|
|
59
|
-
relayer: SvmAddress | EvmAddress | RawAddress;
|
|
60
|
+
relayer: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
60
61
|
messageHash: string;
|
|
61
62
|
relayExecutionInfo: {
|
|
62
63
|
updatedOutputAmount: BigNumber;
|
|
63
|
-
updatedRecipient: SvmAddress | EvmAddress | RawAddress;
|
|
64
|
+
updatedRecipient: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
64
65
|
updatedMessageHash: string;
|
|
65
66
|
fillType: number;
|
|
66
67
|
updatedMessage?: string | undefined;
|
|
@@ -82,13 +83,13 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
82
83
|
message: string;
|
|
83
84
|
destinationChainId: number;
|
|
84
85
|
originChainId: number;
|
|
85
|
-
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
86
|
-
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
87
|
-
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
88
|
-
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
86
|
+
depositor: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
87
|
+
recipient: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
88
|
+
inputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
89
|
+
outputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
89
90
|
inputAmount: BigNumber;
|
|
90
91
|
outputAmount: BigNumber;
|
|
91
|
-
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
92
|
+
exclusiveRelayer: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
92
93
|
quoteTimestamp: number;
|
|
93
94
|
fillDeadline: number;
|
|
94
95
|
depositId: BigNumber;
|
|
@@ -101,7 +102,7 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
101
102
|
logIndex: number;
|
|
102
103
|
lpFeePct: BigNumber;
|
|
103
104
|
updatedOutputAmount?: BigNumber | undefined;
|
|
104
|
-
updatedRecipient?: SvmAddress | EvmAddress | RawAddress | undefined;
|
|
105
|
+
updatedRecipient?: SvmAddress | EvmAddress | TvmAddress | RawAddress | undefined;
|
|
105
106
|
updatedMessage?: string | undefined;
|
|
106
107
|
speedUpSignature?: string | undefined;
|
|
107
108
|
txnIndex?: number | undefined;
|
|
@@ -114,13 +115,13 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
114
115
|
message: string;
|
|
115
116
|
destinationChainId: number;
|
|
116
117
|
originChainId: number;
|
|
117
|
-
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
118
|
-
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
119
|
-
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
120
|
-
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
118
|
+
depositor: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
119
|
+
recipient: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
120
|
+
inputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
121
|
+
outputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
121
122
|
inputAmount: BigNumber;
|
|
122
123
|
outputAmount: BigNumber;
|
|
123
|
-
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
124
|
+
exclusiveRelayer: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
124
125
|
quoteTimestamp: number;
|
|
125
126
|
fillDeadline: number;
|
|
126
127
|
depositId: BigNumber;
|
|
@@ -132,7 +133,7 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
132
133
|
blockNumber: number;
|
|
133
134
|
logIndex: number;
|
|
134
135
|
updatedOutputAmount?: BigNumber | undefined;
|
|
135
|
-
updatedRecipient?: SvmAddress | EvmAddress | RawAddress | undefined;
|
|
136
|
+
updatedRecipient?: SvmAddress | EvmAddress | TvmAddress | RawAddress | undefined;
|
|
136
137
|
updatedMessage?: string | undefined;
|
|
137
138
|
speedUpSignature?: string | undefined;
|
|
138
139
|
txnIndex?: number | undefined;
|
|
@@ -145,13 +146,13 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
145
146
|
message: string;
|
|
146
147
|
destinationChainId: number;
|
|
147
148
|
originChainId: number;
|
|
148
|
-
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
149
|
-
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
150
|
-
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
151
|
-
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
149
|
+
depositor: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
150
|
+
recipient: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
151
|
+
inputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
152
|
+
outputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
152
153
|
inputAmount: BigNumber;
|
|
153
154
|
outputAmount: BigNumber;
|
|
154
|
-
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
155
|
+
exclusiveRelayer: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
155
156
|
quoteTimestamp: number;
|
|
156
157
|
fillDeadline: number;
|
|
157
158
|
depositId: BigNumber;
|
|
@@ -164,7 +165,7 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
164
165
|
logIndex: number;
|
|
165
166
|
lpFeePct: BigNumber;
|
|
166
167
|
updatedOutputAmount?: BigNumber | undefined;
|
|
167
|
-
updatedRecipient?: SvmAddress | EvmAddress | RawAddress | undefined;
|
|
168
|
+
updatedRecipient?: SvmAddress | EvmAddress | TvmAddress | RawAddress | undefined;
|
|
168
169
|
updatedMessage?: string | undefined;
|
|
169
170
|
speedUpSignature?: string | undefined;
|
|
170
171
|
txnIndex?: number | undefined;
|
|
@@ -178,13 +179,13 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
178
179
|
message: string;
|
|
179
180
|
destinationChainId: number;
|
|
180
181
|
originChainId: number;
|
|
181
|
-
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
182
|
-
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
183
|
-
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
184
|
-
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
182
|
+
depositor: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
183
|
+
recipient: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
184
|
+
inputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
185
|
+
outputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
185
186
|
inputAmount: BigNumber;
|
|
186
187
|
outputAmount: BigNumber;
|
|
187
|
-
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
188
|
+
exclusiveRelayer: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
188
189
|
quoteTimestamp: number;
|
|
189
190
|
fillDeadline: number;
|
|
190
191
|
depositId: BigNumber;
|
|
@@ -196,7 +197,7 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
196
197
|
blockNumber: number;
|
|
197
198
|
logIndex: number;
|
|
198
199
|
updatedOutputAmount?: BigNumber | undefined;
|
|
199
|
-
updatedRecipient?: SvmAddress | EvmAddress | RawAddress | undefined;
|
|
200
|
+
updatedRecipient?: SvmAddress | EvmAddress | TvmAddress | RawAddress | undefined;
|
|
200
201
|
updatedMessage?: string | undefined;
|
|
201
202
|
speedUpSignature?: string | undefined;
|
|
202
203
|
txnIndex?: number | undefined;
|
|
@@ -209,13 +210,13 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
209
210
|
message: string;
|
|
210
211
|
destinationChainId: number;
|
|
211
212
|
originChainId: number;
|
|
212
|
-
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
213
|
-
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
214
|
-
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
215
|
-
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
213
|
+
depositor: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
214
|
+
recipient: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
215
|
+
inputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
216
|
+
outputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
216
217
|
inputAmount: BigNumber;
|
|
217
218
|
outputAmount: BigNumber;
|
|
218
|
-
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
219
|
+
exclusiveRelayer: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
219
220
|
quoteTimestamp: number;
|
|
220
221
|
fillDeadline: number;
|
|
221
222
|
depositId: BigNumber;
|
|
@@ -227,7 +228,7 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
227
228
|
blockNumber: number;
|
|
228
229
|
logIndex: number;
|
|
229
230
|
updatedOutputAmount?: BigNumber | undefined;
|
|
230
|
-
updatedRecipient?: SvmAddress | EvmAddress | RawAddress | undefined;
|
|
231
|
+
updatedRecipient?: SvmAddress | EvmAddress | TvmAddress | RawAddress | undefined;
|
|
231
232
|
updatedMessage?: string | undefined;
|
|
232
233
|
speedUpSignature?: string | undefined;
|
|
233
234
|
txnIndex?: number | undefined;
|
|
@@ -240,13 +241,13 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
240
241
|
message: string;
|
|
241
242
|
destinationChainId: number;
|
|
242
243
|
originChainId: number;
|
|
243
|
-
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
244
|
-
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
245
|
-
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
246
|
-
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
244
|
+
depositor: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
245
|
+
recipient: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
246
|
+
inputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
247
|
+
outputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
247
248
|
inputAmount: BigNumber;
|
|
248
249
|
outputAmount: BigNumber;
|
|
249
|
-
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
250
|
+
exclusiveRelayer: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
250
251
|
quoteTimestamp: number;
|
|
251
252
|
fillDeadline: number;
|
|
252
253
|
depositId: BigNumber;
|
|
@@ -259,7 +260,7 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
259
260
|
logIndex: number;
|
|
260
261
|
lpFeePct: BigNumber;
|
|
261
262
|
updatedOutputAmount?: BigNumber | undefined;
|
|
262
|
-
updatedRecipient?: SvmAddress | EvmAddress | RawAddress | undefined;
|
|
263
|
+
updatedRecipient?: SvmAddress | EvmAddress | TvmAddress | RawAddress | undefined;
|
|
263
264
|
updatedMessage?: string | undefined;
|
|
264
265
|
speedUpSignature?: string | undefined;
|
|
265
266
|
txnIndex?: number | undefined;
|
|
@@ -272,13 +273,13 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
272
273
|
message: string;
|
|
273
274
|
destinationChainId: number;
|
|
274
275
|
originChainId: number;
|
|
275
|
-
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
276
|
-
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
277
|
-
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
278
|
-
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
276
|
+
depositor: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
277
|
+
recipient: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
278
|
+
inputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
279
|
+
outputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
279
280
|
inputAmount: BigNumber;
|
|
280
281
|
outputAmount: BigNumber;
|
|
281
|
-
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
282
|
+
exclusiveRelayer: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
282
283
|
quoteTimestamp: number;
|
|
283
284
|
fillDeadline: number;
|
|
284
285
|
depositId: BigNumber;
|
|
@@ -291,7 +292,7 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
291
292
|
logIndex: number;
|
|
292
293
|
lpFeePct: BigNumber;
|
|
293
294
|
updatedOutputAmount?: BigNumber | undefined;
|
|
294
|
-
updatedRecipient?: SvmAddress | EvmAddress | RawAddress | undefined;
|
|
295
|
+
updatedRecipient?: SvmAddress | EvmAddress | TvmAddress | RawAddress | undefined;
|
|
295
296
|
updatedMessage?: string | undefined;
|
|
296
297
|
speedUpSignature?: string | undefined;
|
|
297
298
|
txnIndex?: number | undefined;
|
|
@@ -304,23 +305,23 @@ export declare const BundleDataSS: import("superstruct").Struct<{
|
|
|
304
305
|
fills: {
|
|
305
306
|
destinationChainId: number;
|
|
306
307
|
originChainId: number;
|
|
307
|
-
depositor: SvmAddress | EvmAddress | RawAddress;
|
|
308
|
-
recipient: SvmAddress | EvmAddress | RawAddress;
|
|
309
|
-
inputToken: SvmAddress | EvmAddress | RawAddress;
|
|
310
|
-
outputToken: SvmAddress | EvmAddress | RawAddress;
|
|
308
|
+
depositor: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
309
|
+
recipient: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
310
|
+
inputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
311
|
+
outputToken: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
311
312
|
inputAmount: BigNumber;
|
|
312
313
|
outputAmount: BigNumber;
|
|
313
|
-
exclusiveRelayer: SvmAddress | EvmAddress | RawAddress;
|
|
314
|
+
exclusiveRelayer: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
314
315
|
quoteTimestamp: number;
|
|
315
316
|
fillDeadline: number;
|
|
316
317
|
depositId: BigNumber;
|
|
317
318
|
exclusivityDeadline: number;
|
|
318
319
|
repaymentChainId: number;
|
|
319
|
-
relayer: SvmAddress | EvmAddress | RawAddress;
|
|
320
|
+
relayer: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
320
321
|
messageHash: string;
|
|
321
322
|
relayExecutionInfo: {
|
|
322
323
|
updatedOutputAmount: BigNumber;
|
|
323
|
-
updatedRecipient: SvmAddress | EvmAddress | RawAddress;
|
|
324
|
+
updatedRecipient: SvmAddress | EvmAddress | TvmAddress | RawAddress;
|
|
324
325
|
updatedMessageHash: string;
|
|
325
326
|
fillType: number;
|
|
326
327
|
updatedMessage?: string | undefined;
|