@orb-labs/orby-ethers6 0.0.1 → 0.0.3
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/CHANGELOG.md +15 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/orby_provider.d.ts +42 -9
- package/dist/orby_provider.js +164 -382
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -3
- package/dist/wallet.d.ts +0 -17
- package/dist/wallet.js +0 -132
package/dist/orby_provider.js
CHANGED
@@ -1,383 +1,165 @@
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
2
|
-
var extendStatics = function (d, b) {
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
6
|
-
return extendStatics(d, b);
|
7
|
-
};
|
8
|
-
return function (d, b) {
|
9
|
-
if (typeof b !== "function" && b !== null)
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
11
|
-
extendStatics(d, b);
|
12
|
-
function __() { this.constructor = d; }
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
14
|
-
};
|
15
|
-
})();
|
16
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
17
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
18
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
19
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
20
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
21
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
22
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
23
|
-
});
|
24
|
-
};
|
25
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
26
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
27
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
28
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
29
|
-
function step(op) {
|
30
|
-
if (f) throw new TypeError("Generator is already executing.");
|
31
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
32
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
33
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
34
|
-
switch (op[0]) {
|
35
|
-
case 0: case 1: t = op; break;
|
36
|
-
case 4: _.label++; return { value: op[1], done: false };
|
37
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
38
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
39
|
-
default:
|
40
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
41
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
42
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
43
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
44
|
-
if (t[2]) _.ops.pop();
|
45
|
-
_.trys.pop(); continue;
|
46
|
-
}
|
47
|
-
op = body.call(thisArg, _);
|
48
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
49
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
50
|
-
}
|
51
|
-
};
|
52
1
|
import { ethers } from "ethers";
|
53
|
-
import { AccountClusterActions, AdminActions, ApplicationActions, InstanceActions, LIBRARY_TYPE, OperationActions, TokenActions, } from "@orb-labs/orby-core";
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
}
|
80
|
-
|
81
|
-
return
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
}
|
101
|
-
|
102
|
-
return
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
}
|
122
|
-
|
123
|
-
return
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
}
|
143
|
-
|
144
|
-
return
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
}
|
164
|
-
|
165
|
-
return
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
}
|
185
|
-
|
186
|
-
return
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
}
|
213
|
-
|
214
|
-
return
|
215
|
-
|
216
|
-
|
217
|
-
});
|
218
|
-
});
|
219
|
-
};
|
220
|
-
OrbyProvider.prototype.getChainsSupportedByDefault = function () {
|
221
|
-
return __awaiter(this, void 0, void 0, function () {
|
222
|
-
return __generator(this, function (_a) {
|
223
|
-
return [2 /*return*/, this.instanceActions.getChainsSupportedByDefault()];
|
224
|
-
});
|
225
|
-
});
|
226
|
-
};
|
227
|
-
OrbyProvider.prototype.enabledChainAbstractionForInstance = function (enable) {
|
228
|
-
return __awaiter(this, void 0, void 0, function () {
|
229
|
-
return __generator(this, function (_a) {
|
230
|
-
return [2 /*return*/, this.instanceActions.enabledChainAbstractionForInstance(enable)];
|
231
|
-
});
|
232
|
-
});
|
233
|
-
};
|
234
|
-
OrbyProvider.prototype.enableGasSponsorshipForInstance = function (enable) {
|
235
|
-
return __awaiter(this, void 0, void 0, function () {
|
236
|
-
return __generator(this, function (_a) {
|
237
|
-
return [2 /*return*/, this.instanceActions.enableGasSponsorshipForInstance(enable)];
|
238
|
-
});
|
239
|
-
});
|
240
|
-
};
|
241
|
-
OrbyProvider.prototype.getGasSponsorForInstance = function () {
|
242
|
-
return __awaiter(this, void 0, void 0, function () {
|
243
|
-
return __generator(this, function (_a) {
|
244
|
-
return [2 /*return*/, this.instanceActions.getGasSponsorForInstance()];
|
245
|
-
});
|
246
|
-
});
|
247
|
-
};
|
248
|
-
OrbyProvider.prototype.getOrbyGasSponsorPolicyForInstance = function () {
|
249
|
-
return __awaiter(this, void 0, void 0, function () {
|
250
|
-
return __generator(this, function (_a) {
|
251
|
-
return [2 /*return*/, this.instanceActions.getOrbyGasSponsorPolicyForInstance()];
|
252
|
-
});
|
253
|
-
});
|
254
|
-
};
|
255
|
-
OrbyProvider.prototype.setOrbyGasSponsorPolicyForInstance = function (gasSponsorshipPolicy) {
|
256
|
-
return __awaiter(this, void 0, void 0, function () {
|
257
|
-
return __generator(this, function (_a) {
|
258
|
-
return [2 /*return*/, this.instanceActions.setOrbyGasSponsorPolicyForInstance(gasSponsorshipPolicy)];
|
259
|
-
});
|
260
|
-
});
|
261
|
-
};
|
262
|
-
OrbyProvider.prototype.removeOrbyGasSponsorPolicyForInstance = function () {
|
263
|
-
return __awaiter(this, void 0, void 0, function () {
|
264
|
-
return __generator(this, function (_a) {
|
265
|
-
return [2 /*return*/, this.instanceActions.removeOrbyGasSponsorPolicyForInstance()];
|
266
|
-
});
|
267
|
-
});
|
268
|
-
};
|
269
|
-
OrbyProvider.prototype.getOperationsToExecuteTransaction = function (accountClusterId, to, data, value) {
|
270
|
-
return __awaiter(this, void 0, void 0, function () {
|
271
|
-
return __generator(this, function (_a) {
|
272
|
-
return [2 /*return*/, this.operationActions.getOperationsToExecuteTransaction(accountClusterId, to, data, value)];
|
273
|
-
});
|
274
|
-
});
|
275
|
-
};
|
276
|
-
OrbyProvider.prototype.getOperationsToSignTypedData = function (accountClusterId, data) {
|
277
|
-
return __awaiter(this, void 0, void 0, function () {
|
278
|
-
return __generator(this, function (_a) {
|
279
|
-
return [2 /*return*/, this.operationActions.getOperationsToSignTypedData(accountClusterId, data)];
|
280
|
-
});
|
281
|
-
});
|
282
|
-
};
|
283
|
-
OrbyProvider.prototype.getOperationsToCancelTransaction = function (accountClusterId, operationSetId) {
|
284
|
-
return __awaiter(this, void 0, void 0, function () {
|
285
|
-
return __generator(this, function (_a) {
|
286
|
-
return [2 /*return*/, this.operationActions.getOperationsToCancelTransaction(accountClusterId, operationSetId)];
|
287
|
-
});
|
288
|
-
});
|
289
|
-
};
|
290
|
-
OrbyProvider.prototype.isTransactionPreconditionSatisfied = function (accountClusterId, to, data, value) {
|
291
|
-
return __awaiter(this, void 0, void 0, function () {
|
292
|
-
return __generator(this, function (_a) {
|
293
|
-
return [2 /*return*/, this.operationActions.isTransactionPreconditionSatisfied(accountClusterId, to, data, value)];
|
294
|
-
});
|
295
|
-
});
|
296
|
-
};
|
297
|
-
OrbyProvider.prototype.isTypedDataPreconditionSatisfied = function (accountClusterId, data) {
|
298
|
-
return __awaiter(this, void 0, void 0, function () {
|
299
|
-
return __generator(this, function (_a) {
|
300
|
-
return [2 /*return*/, this.operationActions.isTypedDataPreconditionSatisfied(accountClusterId, data)];
|
301
|
-
});
|
302
|
-
});
|
303
|
-
};
|
304
|
-
OrbyProvider.prototype.sendSignedOperations = function (accountClusterId, signedOperations) {
|
305
|
-
return __awaiter(this, void 0, void 0, function () {
|
306
|
-
return __generator(this, function (_a) {
|
307
|
-
return [2 /*return*/, this.operationActions.sendSignedOperations(accountClusterId, signedOperations)];
|
308
|
-
});
|
309
|
-
});
|
310
|
-
};
|
311
|
-
OrbyProvider.prototype.getOperationStatuses = function (operationIds) {
|
312
|
-
return __awaiter(this, void 0, void 0, function () {
|
313
|
-
return __generator(this, function (_a) {
|
314
|
-
return [2 /*return*/, this.operationActions.getOperationStatuses(operationIds)];
|
315
|
-
});
|
316
|
-
});
|
317
|
-
};
|
318
|
-
OrbyProvider.prototype.estimateFiatCostToExecuteTransaction = function (to, data, value) {
|
319
|
-
return __awaiter(this, void 0, void 0, function () {
|
320
|
-
return __generator(this, function (_a) {
|
321
|
-
return [2 /*return*/, this.operationActions.estimateFiatCostToExecuteTransaction(to, data, value)];
|
322
|
-
});
|
323
|
-
});
|
324
|
-
};
|
325
|
-
OrbyProvider.prototype.estimateFiatCostToSignTypedData = function (data) {
|
326
|
-
return __awaiter(this, void 0, void 0, function () {
|
327
|
-
return __generator(this, function (_a) {
|
328
|
-
return [2 /*return*/, this.operationActions.estimateFiatCostToSignTypedData(data)];
|
329
|
-
});
|
330
|
-
});
|
331
|
-
};
|
332
|
-
OrbyProvider.prototype.getOperationsToTransferToken = function (accountClusterId, standardizedTokenId, amount, recipient, gasToken) {
|
333
|
-
return __awaiter(this, void 0, void 0, function () {
|
334
|
-
return __generator(this, function (_a) {
|
335
|
-
return [2 /*return*/, this.operationActions.getOperationsToTransferToken(accountClusterId, standardizedTokenId, amount, recipient, gasToken)];
|
336
|
-
});
|
337
|
-
});
|
338
|
-
};
|
339
|
-
OrbyProvider.prototype.getOperationsToSwap = function (accountClusterId, swapType, input, output, gasToken) {
|
340
|
-
return __awaiter(this, void 0, void 0, function () {
|
341
|
-
return __generator(this, function (_a) {
|
342
|
-
return [2 /*return*/, this.operationActions.getOperationsToSwap(accountClusterId, swapType, input, output, gasToken)];
|
343
|
-
});
|
344
|
-
});
|
345
|
-
};
|
346
|
-
OrbyProvider.prototype.getQuote = function (accountClusterId, swapType, input, output) {
|
347
|
-
return __awaiter(this, void 0, void 0, function () {
|
348
|
-
return __generator(this, function (_a) {
|
349
|
-
return [2 /*return*/, this.operationActions.getQuote(accountClusterId, swapType, input, output)];
|
350
|
-
});
|
351
|
-
});
|
352
|
-
};
|
353
|
-
OrbyProvider.prototype.getOperationsToBridge = function (accountClusterId, standardizedTokenId, amount, tokenSources, tokenDestination, gasToken) {
|
354
|
-
return __awaiter(this, void 0, void 0, function () {
|
355
|
-
return __generator(this, function (_a) {
|
356
|
-
return [2 /*return*/, this.operationActions.getOperationsToBridge(accountClusterId, standardizedTokenId, amount, tokenSources, tokenDestination, gasToken)];
|
357
|
-
});
|
358
|
-
});
|
359
|
-
};
|
360
|
-
OrbyProvider.prototype.getStandardizedTokenIds = function (tokens) {
|
361
|
-
return __awaiter(this, void 0, void 0, function () {
|
362
|
-
return __generator(this, function (_a) {
|
363
|
-
return [2 /*return*/, this.tokenActions.getStandardizedTokenIds(tokens)];
|
364
|
-
});
|
365
|
-
});
|
366
|
-
};
|
367
|
-
OrbyProvider.prototype.getStandardizedTokens = function (tokens) {
|
368
|
-
return __awaiter(this, void 0, void 0, function () {
|
369
|
-
return __generator(this, function (_a) {
|
370
|
-
return [2 /*return*/, this.tokenActions.getStandardizedTokens(tokens)];
|
371
|
-
});
|
372
|
-
});
|
373
|
-
};
|
374
|
-
OrbyProvider.prototype.getFungibleTokenData = function (standardizedTokenIds) {
|
375
|
-
return __awaiter(this, void 0, void 0, function () {
|
376
|
-
return __generator(this, function (_a) {
|
377
|
-
return [2 /*return*/, this.tokenActions.getFungibleTokenData(standardizedTokenIds)];
|
378
|
-
});
|
379
|
-
});
|
380
|
-
};
|
381
|
-
return OrbyProvider;
|
382
|
-
}(ethers.JsonRpcProvider));
|
383
|
-
export { OrbyProvider };
|
2
|
+
import { AccountClusterActions, AdminActions, ApplicationActions, InstanceActions, LIBRARY_TYPE, OperationActions, TokenActions, BlockchainActions, } from "@orb-labs/orby-core";
|
3
|
+
export class OrbyProvider extends ethers.JsonRpcProvider {
|
4
|
+
constructor(url) {
|
5
|
+
super(url);
|
6
|
+
this.accountClusterActions = new AccountClusterActions(LIBRARY_TYPE.ETHERS, undefined, this);
|
7
|
+
this.adminActions = new AdminActions(LIBRARY_TYPE.ETHERS, undefined, this);
|
8
|
+
this.applicationActions = new ApplicationActions(LIBRARY_TYPE.ETHERS, undefined, this);
|
9
|
+
this.instanceActions = new InstanceActions(LIBRARY_TYPE.ETHERS, undefined, this);
|
10
|
+
this.operationActions = new OperationActions(LIBRARY_TYPE.ETHERS, undefined, this);
|
11
|
+
this.tokenActions = new TokenActions(LIBRARY_TYPE.ETHERS, undefined, this);
|
12
|
+
this.blockchainActions = new BlockchainActions(LIBRARY_TYPE.ETHERS, undefined, this);
|
13
|
+
}
|
14
|
+
async createAccountCluster(accounts) {
|
15
|
+
return this.accountClusterActions.createAccountCluster(accounts);
|
16
|
+
}
|
17
|
+
async addToAccountCluster(accounts, accountClusterId) {
|
18
|
+
return this.accountClusterActions.addToAccountCluster(accounts, accountClusterId);
|
19
|
+
}
|
20
|
+
async removeFromAccountCluster(accounts, accountClusterId) {
|
21
|
+
return this.accountClusterActions.removeFromAccountCluster(accounts, accountClusterId);
|
22
|
+
}
|
23
|
+
async getVirtualNodeRpcUrlsForSupportedChains(accountClusterId) {
|
24
|
+
return this.accountClusterActions.getVirtualNodeRpcUrlsForSupportedChains(accountClusterId);
|
25
|
+
}
|
26
|
+
async enableChainAbstractionForAccountCluster(accountClusterId, enable) {
|
27
|
+
return this.accountClusterActions.enableChainAbstractionForAccountCluster(accountClusterId, enable);
|
28
|
+
}
|
29
|
+
async setCustomChainEndpointsForAccountCluster(accountClusterId, chainEndpoints) {
|
30
|
+
return this.accountClusterActions.setCustomChainEndpointsForAccountCluster(accountClusterId, chainEndpoints);
|
31
|
+
}
|
32
|
+
async removeCustomChainEndpointsForAccountCluster(accountClusterId, chainIds) {
|
33
|
+
return this.accountClusterActions.removeCustomChainEndpointsForAccountCluster(accountClusterId, chainIds);
|
34
|
+
}
|
35
|
+
async getCustomChainEndpointsForAccountCluster(accountClusterId, returnChainIdsOnly) {
|
36
|
+
return this.accountClusterActions.getCustomChainEndpointsForAccountCluster(accountClusterId, returnChainIdsOnly);
|
37
|
+
}
|
38
|
+
async isChainSupportedOnAccountCluster(accountClusterId, chainId) {
|
39
|
+
return this.accountClusterActions.isChainSupportedOnAccountCluster(accountClusterId, chainId);
|
40
|
+
}
|
41
|
+
async getNodeRpcUrl(accountClusterId, chainId) {
|
42
|
+
return this.accountClusterActions.getNodeRpcUrl(accountClusterId, chainId);
|
43
|
+
}
|
44
|
+
async getVirtualNodeRpcUrl(accountClusterId, chainId, entrypointAccountAddress) {
|
45
|
+
return this.accountClusterActions.getVirtualNodeRpcUrl(accountClusterId, chainId, entrypointAccountAddress);
|
46
|
+
}
|
47
|
+
async getActivity(accountClusterId, limit, offset, order, startDate, endDate, filters) {
|
48
|
+
return this.accountClusterActions.getActivity(accountClusterId, limit, offset, order, startDate, endDate, filters);
|
49
|
+
}
|
50
|
+
async getPortfolioOverview(accountClusterId) {
|
51
|
+
return this.accountClusterActions.getPortfolioOverview(accountClusterId);
|
52
|
+
}
|
53
|
+
async getFungibleTokenPortfolio(accountClusterId) {
|
54
|
+
return this.accountClusterActions.getFungibleTokenPortfolio(accountClusterId);
|
55
|
+
}
|
56
|
+
async getFungibleTokenBalances(accountClusterId, offset, limit, chainId, tokensToOmit) {
|
57
|
+
return this.accountClusterActions.getFungibleTokenBalances(accountClusterId, offset, limit, chainId, tokensToOmit);
|
58
|
+
}
|
59
|
+
async createInstance(name) {
|
60
|
+
return this.adminActions.createInstance(name);
|
61
|
+
}
|
62
|
+
async getInstanceUrls(name) {
|
63
|
+
return this.adminActions.getInstanceUrls(name);
|
64
|
+
}
|
65
|
+
async getGasSpentForCustomer(month, year) {
|
66
|
+
return this.adminActions.getGasSpentForCustomer(month, year);
|
67
|
+
}
|
68
|
+
async getGasSpentForInstances(month, year, instanceNames) {
|
69
|
+
return this.adminActions.getGasSpentForInstances(month, year, instanceNames);
|
70
|
+
}
|
71
|
+
async isChainAbstractionCompatible(appDomainUrl) {
|
72
|
+
return this.applicationActions.isChainAbstractionCompatible(appDomainUrl);
|
73
|
+
}
|
74
|
+
async setCustomChainEndpointsForInstance(chainEndpoints) {
|
75
|
+
return this.instanceActions.setCustomChainEndpointsForInstance(chainEndpoints);
|
76
|
+
}
|
77
|
+
async removeCustomChainEndpointForInstance(chainIds) {
|
78
|
+
return this.instanceActions.removeCustomChainEndpointForInstance(chainIds);
|
79
|
+
}
|
80
|
+
async getCustomChainEndpointsForInstance(returnChainIdsOnly) {
|
81
|
+
return this.instanceActions.getCustomChainEndpointsForInstance(returnChainIdsOnly);
|
82
|
+
}
|
83
|
+
async getChainsSupportedByDefault() {
|
84
|
+
return this.blockchainActions.getChainsSupportedByDefault();
|
85
|
+
}
|
86
|
+
async getBlockchainInformation(chainId) {
|
87
|
+
return this.blockchainActions.getBlockchainInformation(chainId);
|
88
|
+
}
|
89
|
+
async listBlockchainsInformation(offset, limit) {
|
90
|
+
return this.blockchainActions.listBlockchainsInformation(offset, limit);
|
91
|
+
}
|
92
|
+
async enabledChainAbstractionForInstance(enable) {
|
93
|
+
return this.instanceActions.enabledChainAbstractionForInstance(enable);
|
94
|
+
}
|
95
|
+
async enableGasSponsorshipForInstance(enable) {
|
96
|
+
return this.instanceActions.enableGasSponsorshipForInstance(enable);
|
97
|
+
}
|
98
|
+
async getGasSponsorForInstance() {
|
99
|
+
return this.instanceActions.getGasSponsorForInstance();
|
100
|
+
}
|
101
|
+
async getOrbyGasSponsorPolicyForInstance() {
|
102
|
+
return this.instanceActions.getOrbyGasSponsorPolicyForInstance();
|
103
|
+
}
|
104
|
+
async setOrbyGasSponsorPolicyForInstance(gasSponsorshipPolicy) {
|
105
|
+
return this.instanceActions.setOrbyGasSponsorPolicyForInstance(gasSponsorshipPolicy);
|
106
|
+
}
|
107
|
+
async removeOrbyGasSponsorPolicyForInstance() {
|
108
|
+
return this.instanceActions.removeOrbyGasSponsorPolicyForInstance();
|
109
|
+
}
|
110
|
+
async getOperationsToExecuteTransaction(accountClusterId, to, data, value) {
|
111
|
+
return this.operationActions.getOperationsToExecuteTransaction(accountClusterId, to, data, value);
|
112
|
+
}
|
113
|
+
async getOperationsToSignTypedData(accountClusterId, data, gasToken) {
|
114
|
+
return this.operationActions.getOperationsToSignTypedData(accountClusterId, data, gasToken);
|
115
|
+
}
|
116
|
+
async getOperationsToCancelTransaction(accountClusterId, operationSetId) {
|
117
|
+
return this.operationActions.getOperationsToCancelTransaction(accountClusterId, operationSetId);
|
118
|
+
}
|
119
|
+
async isTransactionPreconditionSatisfied(accountClusterId, to, data, value) {
|
120
|
+
return this.operationActions.isTransactionPreconditionSatisfied(accountClusterId, to, data, value);
|
121
|
+
}
|
122
|
+
async isTypedDataPreconditionSatisfied(accountClusterId, data) {
|
123
|
+
return this.operationActions.isTypedDataPreconditionSatisfied(accountClusterId, data);
|
124
|
+
}
|
125
|
+
async sendSignedOperations(accountClusterId, signedOperations) {
|
126
|
+
return this.operationActions.sendSignedOperations(accountClusterId, signedOperations);
|
127
|
+
}
|
128
|
+
async getOperationStatuses(operationIds) {
|
129
|
+
return this.operationActions.getOperationStatuses(operationIds);
|
130
|
+
}
|
131
|
+
async estimateFiatCostToExecuteTransaction(to, data, value) {
|
132
|
+
return this.operationActions.estimateFiatCostToExecuteTransaction(to, data, value);
|
133
|
+
}
|
134
|
+
async estimateFiatCostToSignTypedData(data) {
|
135
|
+
return this.operationActions.estimateFiatCostToSignTypedData(data);
|
136
|
+
}
|
137
|
+
async getOperationsToTransferToken(accountClusterId, standardizedTokenId, amount, recipient, gasToken) {
|
138
|
+
return this.operationActions.getOperationsToTransferToken(accountClusterId, standardizedTokenId, amount, recipient, gasToken);
|
139
|
+
}
|
140
|
+
async getOperationsToSwap(accountClusterId, swapType, input, output, gasToken) {
|
141
|
+
return this.operationActions.getOperationsToSwap(accountClusterId, swapType, input, output, gasToken);
|
142
|
+
}
|
143
|
+
async getQuote(accountClusterId, swapType, input, output) {
|
144
|
+
return this.operationActions.getQuote(accountClusterId, swapType, input, output);
|
145
|
+
}
|
146
|
+
async getOperationsToBridge(accountClusterId, standardizedTokenId, amount, tokenSources, tokenDestination, gasToken) {
|
147
|
+
return this.operationActions.getOperationsToBridge(accountClusterId, standardizedTokenId, amount, tokenSources, tokenDestination, gasToken);
|
148
|
+
}
|
149
|
+
subscribeToOperationStatuses(ids, onOperationStatusesUpdateCallback) {
|
150
|
+
// @ts-ignore
|
151
|
+
return this.operationActions.subscribeToOperationStatuses(ids, onOperationStatusesUpdateCallback);
|
152
|
+
}
|
153
|
+
async sendOperationSet(accountClusterId, operationSet, signOperation) {
|
154
|
+
return this.operationActions.sendOperationSet(accountClusterId, operationSet, signOperation);
|
155
|
+
}
|
156
|
+
async getStandardizedTokenIds(tokens) {
|
157
|
+
return this.tokenActions.getStandardizedTokenIds(tokens);
|
158
|
+
}
|
159
|
+
async getStandardizedTokens(tokens) {
|
160
|
+
return this.tokenActions.getStandardizedTokens(tokens);
|
161
|
+
}
|
162
|
+
async getFungibleTokenData(standardizedTokenIds) {
|
163
|
+
return this.tokenActions.getFungibleTokenData(standardizedTokenIds);
|
164
|
+
}
|
165
|
+
}
|