@0xsequence/relayer 2.3.42 → 2.3.44
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/0xsequence-relayer.cjs.dev.js +178 -50
- package/dist/0xsequence-relayer.cjs.prod.js +178 -50
- package/dist/0xsequence-relayer.esm.js +178 -50
- package/dist/declarations/src/rpc-relayer/relayer.gen.d.ts +193 -48
- package/package.json +6 -6
- package/src/local-relayer.ts +2 -2
- package/src/rpc-relayer/index.ts +2 -2
- package/src/rpc-relayer/relayer.gen.ts +748 -567
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const WebrpcVersion = "v1";
|
|
2
2
|
export declare const WebrpcSchemaVersion = "v0.4.1";
|
|
3
|
-
export declare const WebrpcSchemaHash = "
|
|
3
|
+
export declare const WebrpcSchemaHash = "b5902e32e652488166fc44a95f5cda0c67e10d82";
|
|
4
4
|
export interface RelayerClient {
|
|
5
5
|
ping(headers?: object, signal?: AbortSignal): Promise<PingReturn>;
|
|
6
6
|
version(headers?: object, signal?: AbortSignal): Promise<VersionReturn>;
|
|
@@ -35,20 +35,26 @@ export interface RelayerClient {
|
|
|
35
35
|
feeTokens(headers?: object, signal?: AbortSignal): Promise<FeeTokensReturn>;
|
|
36
36
|
feeOptions(req: FeeOptionsArgs, headers?: object, signal?: AbortSignal): Promise<FeeOptionsReturn>;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Bridge gas endpoints for S2S calls
|
|
39
|
+
* Used for bridge fees (e.g., LayerZero messaging fees) that require msg.value to be fronted at runtime.
|
|
40
|
+
* bridgeGas will be included in fee calculation so the relayer gets reimbursed.
|
|
39
41
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
getTransactionCost(req: GetTransactionCostArgs, headers?: object, signal?: AbortSignal): Promise<GetTransactionCostReturn>;
|
|
42
|
+
sendMetaTxnWithBridgeGas(req: SendMetaTxnWithBridgeGasArgs, headers?: object, signal?: AbortSignal): Promise<SendMetaTxnWithBridgeGasReturn>;
|
|
43
|
+
feeOptionsWithBridgeGas(req: FeeOptionsWithBridgeGasArgs, headers?: object, signal?: AbortSignal): Promise<FeeOptionsWithBridgeGasReturn>;
|
|
43
44
|
/**
|
|
44
|
-
*
|
|
45
|
+
* TODO: deprecated, to be removed by https://github.com/0xsequence/stack/pull/356 at a later date
|
|
45
46
|
*/
|
|
46
|
-
|
|
47
|
+
getMetaTxnNetworkFeeOptions(req: GetMetaTxnNetworkFeeOptionsArgs, headers?: object, signal?: AbortSignal): Promise<GetMetaTxnNetworkFeeOptionsReturn>;
|
|
47
48
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
49
|
+
*
|
|
50
|
+
* Sender administration
|
|
51
|
+
*
|
|
50
52
|
*/
|
|
51
|
-
|
|
53
|
+
startSender(req: StartSenderArgs, headers?: object, signal?: AbortSignal): Promise<StartSenderReturn>;
|
|
54
|
+
stopSender(req: StopSenderArgs, headers?: object, signal?: AbortSignal): Promise<StopSenderReturn>;
|
|
55
|
+
repairSender(req: RepairSenderArgs, headers?: object, signal?: AbortSignal): Promise<RepairSenderReturn>;
|
|
56
|
+
getMetaTransactions(req: GetMetaTransactionsArgs, headers?: object, signal?: AbortSignal): Promise<GetMetaTransactionsReturn>;
|
|
57
|
+
getTransactionCost(req: GetTransactionCostArgs, headers?: object, signal?: AbortSignal): Promise<GetTransactionCostReturn>;
|
|
52
58
|
/**
|
|
53
59
|
* Legacy Gas Tank
|
|
54
60
|
*/
|
|
@@ -63,13 +69,21 @@ export interface RelayerClient {
|
|
|
63
69
|
getGasTankBalanceAdjustment(req: GetGasTankBalanceAdjustmentArgs, headers?: object, signal?: AbortSignal): Promise<GetGasTankBalanceAdjustmentReturn>;
|
|
64
70
|
listGasTankBalanceAdjustments(req: ListGasTankBalanceAdjustmentsArgs, headers?: object, signal?: AbortSignal): Promise<ListGasTankBalanceAdjustmentsReturn>;
|
|
65
71
|
/**
|
|
66
|
-
* Gas Sponsorship
|
|
72
|
+
* Project-Level Gas Sponsorship
|
|
67
73
|
*/
|
|
68
74
|
listGasSponsors(req: ListGasSponsorsArgs, headers?: object, signal?: AbortSignal): Promise<ListGasSponsorsReturn>;
|
|
69
75
|
getGasSponsor(req: GetGasSponsorArgs, headers?: object, signal?: AbortSignal): Promise<GetGasSponsorReturn>;
|
|
70
76
|
addGasSponsor(req: AddGasSponsorArgs, headers?: object, signal?: AbortSignal): Promise<AddGasSponsorReturn>;
|
|
71
77
|
updateGasSponsor(req: UpdateGasSponsorArgs, headers?: object, signal?: AbortSignal): Promise<UpdateGasSponsorReturn>;
|
|
72
78
|
removeGasSponsor(req: RemoveGasSponsorArgs, headers?: object, signal?: AbortSignal): Promise<RemoveGasSponsorReturn>;
|
|
79
|
+
/**
|
|
80
|
+
* Ecosystem-level Gas Sponsorship
|
|
81
|
+
*/
|
|
82
|
+
listEcosystemGasSponsors(req: ListEcosystemGasSponsorsArgs, headers?: object, signal?: AbortSignal): Promise<ListEcosystemGasSponsorsReturn>;
|
|
83
|
+
getEcosystemGasSponsor(req: GetEcosystemGasSponsorArgs, headers?: object, signal?: AbortSignal): Promise<GetEcosystemGasSponsorReturn>;
|
|
84
|
+
addEcosystemGasSponsor(req: AddEcosystemGasSponsorArgs, headers?: object, signal?: AbortSignal): Promise<AddEcosystemGasSponsorReturn>;
|
|
85
|
+
updateEcosystemGasSponsor(req: UpdateEcosystemGasSponsorArgs, headers?: object, signal?: AbortSignal): Promise<UpdateEcosystemGasSponsorReturn>;
|
|
86
|
+
removeEcosystemGasSponsor(req: RemoveEcosystemGasSponsorArgs, headers?: object, signal?: AbortSignal): Promise<RemoveEcosystemGasSponsorReturn>;
|
|
73
87
|
/**
|
|
74
88
|
* Gas Sponsor Lookup
|
|
75
89
|
*/
|
|
@@ -80,6 +94,11 @@ export interface RelayerClient {
|
|
|
80
94
|
getProjectBalance(req: GetProjectBalanceArgs, headers?: object, signal?: AbortSignal): Promise<GetProjectBalanceReturn>;
|
|
81
95
|
adjustProjectBalance(req: AdjustProjectBalanceArgs, headers?: object, signal?: AbortSignal): Promise<AdjustProjectBalanceReturn>;
|
|
82
96
|
}
|
|
97
|
+
export declare enum RepairOperation {
|
|
98
|
+
SKIP = "SKIP",
|
|
99
|
+
REQUEUE = "REQUEUE",
|
|
100
|
+
DROP = "DROP"
|
|
101
|
+
}
|
|
83
102
|
export declare enum ETHTxnStatus {
|
|
84
103
|
UNKNOWN = "UNKNOWN",
|
|
85
104
|
DROPPED = "DROPPED",
|
|
@@ -88,7 +107,8 @@ export declare enum ETHTxnStatus {
|
|
|
88
107
|
SUCCEEDED = "SUCCEEDED",
|
|
89
108
|
PARTIALLY_FAILED = "PARTIALLY_FAILED",
|
|
90
109
|
FAILED = "FAILED",
|
|
91
|
-
PENDING_PRECONDITION = "PENDING_PRECONDITION"
|
|
110
|
+
PENDING_PRECONDITION = "PENDING_PRECONDITION",
|
|
111
|
+
MINED = "MINED"
|
|
92
112
|
}
|
|
93
113
|
export declare enum TransferType {
|
|
94
114
|
SEND = "SEND",
|
|
@@ -111,7 +131,7 @@ export declare enum FeeTokenType {
|
|
|
111
131
|
ERC20_TOKEN = "ERC20_TOKEN",
|
|
112
132
|
ERC1155_TOKEN = "ERC1155_TOKEN"
|
|
113
133
|
}
|
|
114
|
-
export declare enum
|
|
134
|
+
export declare enum Order {
|
|
115
135
|
DESC = "DESC",
|
|
116
136
|
ASC = "ASC"
|
|
117
137
|
}
|
|
@@ -137,7 +157,28 @@ export interface SenderStatus {
|
|
|
137
157
|
index: number;
|
|
138
158
|
address: string;
|
|
139
159
|
etherBalance: number;
|
|
160
|
+
enabled: boolean;
|
|
140
161
|
active: boolean;
|
|
162
|
+
nonce?: NonceStatus;
|
|
163
|
+
current?: CurrentStatus;
|
|
164
|
+
}
|
|
165
|
+
export interface NonceStatus {
|
|
166
|
+
chain: number;
|
|
167
|
+
mempool: number;
|
|
168
|
+
}
|
|
169
|
+
export interface CurrentStatus {
|
|
170
|
+
transaction: string;
|
|
171
|
+
first: TransactionStatus;
|
|
172
|
+
latest?: TransactionStatus;
|
|
173
|
+
}
|
|
174
|
+
export interface TransactionStatus {
|
|
175
|
+
transaction: string;
|
|
176
|
+
gas: number;
|
|
177
|
+
gasPrice: string;
|
|
178
|
+
priorityFee: string;
|
|
179
|
+
time: string;
|
|
180
|
+
age: string;
|
|
181
|
+
error?: string;
|
|
141
182
|
}
|
|
142
183
|
export interface RuntimeChecks {
|
|
143
184
|
}
|
|
@@ -170,10 +211,13 @@ export interface GasSponsor {
|
|
|
170
211
|
id: number;
|
|
171
212
|
gasTankId: number;
|
|
172
213
|
projectId: number;
|
|
214
|
+
ecosystemId: number;
|
|
173
215
|
chainId: number;
|
|
174
216
|
address: string;
|
|
175
217
|
name: string;
|
|
176
218
|
active: boolean;
|
|
219
|
+
webhookUrl: string;
|
|
220
|
+
webhookAuthToken: string;
|
|
177
221
|
updatedAt: string;
|
|
178
222
|
createdAt: string;
|
|
179
223
|
deletedAt: string;
|
|
@@ -193,6 +237,13 @@ export interface MetaTxn {
|
|
|
193
237
|
walletAddress: string;
|
|
194
238
|
contract: string;
|
|
195
239
|
input: string;
|
|
240
|
+
authorization?: EIP7702Authorization;
|
|
241
|
+
}
|
|
242
|
+
export interface EIP7702Authorization {
|
|
243
|
+
chainId: number;
|
|
244
|
+
implementation: string;
|
|
245
|
+
nonce: number;
|
|
246
|
+
signature: string;
|
|
196
247
|
}
|
|
197
248
|
export interface MetaTxnLog {
|
|
198
249
|
id: number;
|
|
@@ -209,6 +260,7 @@ export interface MetaTxnLog {
|
|
|
209
260
|
minedAt: string;
|
|
210
261
|
target: string;
|
|
211
262
|
input: string;
|
|
263
|
+
bridgeGas?: string;
|
|
212
264
|
txnArgs: {
|
|
213
265
|
[key: string]: any;
|
|
214
266
|
};
|
|
@@ -278,10 +330,6 @@ export interface TxnLogTransfer {
|
|
|
278
330
|
ids: Array<string>;
|
|
279
331
|
amounts: Array<string>;
|
|
280
332
|
}
|
|
281
|
-
export interface SentTransactionsFilter {
|
|
282
|
-
pending?: boolean;
|
|
283
|
-
failed?: boolean;
|
|
284
|
-
}
|
|
285
333
|
export interface SimulateResult {
|
|
286
334
|
executed: boolean;
|
|
287
335
|
succeeded: boolean;
|
|
@@ -314,18 +362,15 @@ export interface FeeToken {
|
|
|
314
362
|
tokenID?: string;
|
|
315
363
|
}
|
|
316
364
|
export interface Page {
|
|
317
|
-
pageSize
|
|
318
|
-
page
|
|
319
|
-
more
|
|
320
|
-
totalRecords?: number;
|
|
321
|
-
column?: string;
|
|
322
|
-
before?: any;
|
|
323
|
-
after?: any;
|
|
324
|
-
sort?: Array<SortBy>;
|
|
325
|
-
}
|
|
326
|
-
export interface SortBy {
|
|
365
|
+
pageSize: number;
|
|
366
|
+
page: number;
|
|
367
|
+
more: boolean;
|
|
327
368
|
column: string;
|
|
328
|
-
|
|
369
|
+
sort: Array<Sort>;
|
|
370
|
+
}
|
|
371
|
+
export interface Sort {
|
|
372
|
+
column: string;
|
|
373
|
+
order: Order;
|
|
329
374
|
}
|
|
330
375
|
export interface PingArgs {
|
|
331
376
|
}
|
|
@@ -374,6 +419,7 @@ export interface GetMetaTxnReceiptArgs {
|
|
|
374
419
|
}
|
|
375
420
|
export interface GetMetaTxnReceiptReturn {
|
|
376
421
|
receipt: MetaTxnReceipt;
|
|
422
|
+
metaTxnEnqueued: boolean;
|
|
377
423
|
}
|
|
378
424
|
export interface SimulateArgs {
|
|
379
425
|
wallet: string;
|
|
@@ -409,12 +455,37 @@ export interface FeeOptionsArgs {
|
|
|
409
455
|
to: string;
|
|
410
456
|
data: string;
|
|
411
457
|
simulate?: boolean;
|
|
458
|
+
authorization?: EIP7702Authorization;
|
|
412
459
|
}
|
|
413
460
|
export interface FeeOptionsReturn {
|
|
414
461
|
options: Array<FeeOption>;
|
|
415
462
|
sponsored: boolean;
|
|
416
463
|
quote?: string;
|
|
417
464
|
}
|
|
465
|
+
export interface SendMetaTxnWithBridgeGasArgs {
|
|
466
|
+
call: MetaTxn;
|
|
467
|
+
quote?: string;
|
|
468
|
+
projectID?: number;
|
|
469
|
+
bridgeGas: string;
|
|
470
|
+
preconditions?: Array<TransactionPrecondition>;
|
|
471
|
+
}
|
|
472
|
+
export interface SendMetaTxnWithBridgeGasReturn {
|
|
473
|
+
status: boolean;
|
|
474
|
+
txnHash: string;
|
|
475
|
+
}
|
|
476
|
+
export interface FeeOptionsWithBridgeGasArgs {
|
|
477
|
+
wallet: string;
|
|
478
|
+
to: string;
|
|
479
|
+
data: string;
|
|
480
|
+
simulate?: boolean;
|
|
481
|
+
bridgeGas: string;
|
|
482
|
+
authorization?: EIP7702Authorization;
|
|
483
|
+
}
|
|
484
|
+
export interface FeeOptionsWithBridgeGasReturn {
|
|
485
|
+
options: Array<FeeOption>;
|
|
486
|
+
sponsored: boolean;
|
|
487
|
+
quote?: string;
|
|
488
|
+
}
|
|
418
489
|
export interface GetMetaTxnNetworkFeeOptionsArgs {
|
|
419
490
|
walletConfig: any;
|
|
420
491
|
payload: string;
|
|
@@ -422,9 +493,27 @@ export interface GetMetaTxnNetworkFeeOptionsArgs {
|
|
|
422
493
|
export interface GetMetaTxnNetworkFeeOptionsReturn {
|
|
423
494
|
options: Array<FeeOption>;
|
|
424
495
|
}
|
|
496
|
+
export interface StartSenderArgs {
|
|
497
|
+
sender: number;
|
|
498
|
+
}
|
|
499
|
+
export interface StartSenderReturn {
|
|
500
|
+
}
|
|
501
|
+
export interface StopSenderArgs {
|
|
502
|
+
sender: number;
|
|
503
|
+
}
|
|
504
|
+
export interface StopSenderReturn {
|
|
505
|
+
}
|
|
506
|
+
export interface RepairSenderArgs {
|
|
507
|
+
sender: number;
|
|
508
|
+
nonce: number;
|
|
509
|
+
operation: RepairOperation;
|
|
510
|
+
}
|
|
511
|
+
export interface RepairSenderReturn {
|
|
512
|
+
}
|
|
425
513
|
export interface GetMetaTransactionsArgs {
|
|
426
514
|
projectId: number;
|
|
427
515
|
page?: Page;
|
|
516
|
+
includeNonSponsored?: boolean;
|
|
428
517
|
}
|
|
429
518
|
export interface GetMetaTransactionsReturn {
|
|
430
519
|
page: Page;
|
|
@@ -438,21 +527,6 @@ export interface GetTransactionCostArgs {
|
|
|
438
527
|
export interface GetTransactionCostReturn {
|
|
439
528
|
cost: number;
|
|
440
529
|
}
|
|
441
|
-
export interface SentTransactionsArgs {
|
|
442
|
-
filter?: SentTransactionsFilter;
|
|
443
|
-
page?: Page;
|
|
444
|
-
}
|
|
445
|
-
export interface SentTransactionsReturn {
|
|
446
|
-
page: Page;
|
|
447
|
-
transactions: Array<Transaction>;
|
|
448
|
-
}
|
|
449
|
-
export interface PendingTransactionsArgs {
|
|
450
|
-
page?: Page;
|
|
451
|
-
}
|
|
452
|
-
export interface PendingTransactionsReturn {
|
|
453
|
-
page: Page;
|
|
454
|
-
transactions: Array<Transaction>;
|
|
455
|
-
}
|
|
456
530
|
export interface GetGasTankArgs {
|
|
457
531
|
id: number;
|
|
458
532
|
}
|
|
@@ -528,6 +602,8 @@ export interface AddGasSponsorArgs {
|
|
|
528
602
|
address: string;
|
|
529
603
|
name?: string;
|
|
530
604
|
active?: boolean;
|
|
605
|
+
webhookUrl?: string;
|
|
606
|
+
webhookAuthToken?: string;
|
|
531
607
|
}
|
|
532
608
|
export interface AddGasSponsorReturn {
|
|
533
609
|
status: boolean;
|
|
@@ -538,6 +614,8 @@ export interface UpdateGasSponsorArgs {
|
|
|
538
614
|
id: number;
|
|
539
615
|
name?: string;
|
|
540
616
|
active?: boolean;
|
|
617
|
+
webhookUrl?: string;
|
|
618
|
+
webhookAuthToken?: string;
|
|
541
619
|
}
|
|
542
620
|
export interface UpdateGasSponsorReturn {
|
|
543
621
|
status: boolean;
|
|
@@ -550,6 +628,52 @@ export interface RemoveGasSponsorArgs {
|
|
|
550
628
|
export interface RemoveGasSponsorReturn {
|
|
551
629
|
status: boolean;
|
|
552
630
|
}
|
|
631
|
+
export interface ListEcosystemGasSponsorsArgs {
|
|
632
|
+
ecosystemId: number;
|
|
633
|
+
page?: Page;
|
|
634
|
+
}
|
|
635
|
+
export interface ListEcosystemGasSponsorsReturn {
|
|
636
|
+
page: Page;
|
|
637
|
+
gasSponsors: Array<GasSponsor>;
|
|
638
|
+
}
|
|
639
|
+
export interface GetEcosystemGasSponsorArgs {
|
|
640
|
+
ecosystemId: number;
|
|
641
|
+
id: number;
|
|
642
|
+
}
|
|
643
|
+
export interface GetEcosystemGasSponsorReturn {
|
|
644
|
+
gasSponsor: GasSponsor;
|
|
645
|
+
}
|
|
646
|
+
export interface AddEcosystemGasSponsorArgs {
|
|
647
|
+
ecosystemId: number;
|
|
648
|
+
address: string;
|
|
649
|
+
name?: string;
|
|
650
|
+
active?: boolean;
|
|
651
|
+
webhookUrl?: string;
|
|
652
|
+
webhookAuthToken?: string;
|
|
653
|
+
}
|
|
654
|
+
export interface AddEcosystemGasSponsorReturn {
|
|
655
|
+
status: boolean;
|
|
656
|
+
gasSponsor: GasSponsor;
|
|
657
|
+
}
|
|
658
|
+
export interface UpdateEcosystemGasSponsorArgs {
|
|
659
|
+
ecosystemId: number;
|
|
660
|
+
id: number;
|
|
661
|
+
name?: string;
|
|
662
|
+
active?: boolean;
|
|
663
|
+
webhookUrl?: string;
|
|
664
|
+
webhookAuthToken?: string;
|
|
665
|
+
}
|
|
666
|
+
export interface UpdateEcosystemGasSponsorReturn {
|
|
667
|
+
status: boolean;
|
|
668
|
+
gasSponsor: GasSponsor;
|
|
669
|
+
}
|
|
670
|
+
export interface RemoveEcosystemGasSponsorArgs {
|
|
671
|
+
ecosystemId: number;
|
|
672
|
+
id: number;
|
|
673
|
+
}
|
|
674
|
+
export interface RemoveEcosystemGasSponsorReturn {
|
|
675
|
+
status: boolean;
|
|
676
|
+
}
|
|
553
677
|
export interface AddressGasSponsorsArgs {
|
|
554
678
|
address: string;
|
|
555
679
|
page?: Page;
|
|
@@ -592,11 +716,14 @@ export declare class Relayer implements RelayerClient {
|
|
|
592
716
|
updateMetaTxnGasLimits: (req: UpdateMetaTxnGasLimitsArgs) => readonly ["Relayer", "updateMetaTxnGasLimits", UpdateMetaTxnGasLimitsArgs];
|
|
593
717
|
feeTokens: () => readonly ["Relayer", "feeTokens"];
|
|
594
718
|
feeOptions: (req: FeeOptionsArgs) => readonly ["Relayer", "feeOptions", FeeOptionsArgs];
|
|
719
|
+
sendMetaTxnWithBridgeGas: (req: SendMetaTxnWithBridgeGasArgs) => readonly ["Relayer", "sendMetaTxnWithBridgeGas", SendMetaTxnWithBridgeGasArgs];
|
|
720
|
+
feeOptionsWithBridgeGas: (req: FeeOptionsWithBridgeGasArgs) => readonly ["Relayer", "feeOptionsWithBridgeGas", FeeOptionsWithBridgeGasArgs];
|
|
595
721
|
getMetaTxnNetworkFeeOptions: (req: GetMetaTxnNetworkFeeOptionsArgs) => readonly ["Relayer", "getMetaTxnNetworkFeeOptions", GetMetaTxnNetworkFeeOptionsArgs];
|
|
722
|
+
startSender: (req: StartSenderArgs) => readonly ["Relayer", "startSender", StartSenderArgs];
|
|
723
|
+
stopSender: (req: StopSenderArgs) => readonly ["Relayer", "stopSender", StopSenderArgs];
|
|
724
|
+
repairSender: (req: RepairSenderArgs) => readonly ["Relayer", "repairSender", RepairSenderArgs];
|
|
596
725
|
getMetaTransactions: (req: GetMetaTransactionsArgs) => readonly ["Relayer", "getMetaTransactions", GetMetaTransactionsArgs];
|
|
597
726
|
getTransactionCost: (req: GetTransactionCostArgs) => readonly ["Relayer", "getTransactionCost", GetTransactionCostArgs];
|
|
598
|
-
sentTransactions: (req: SentTransactionsArgs) => readonly ["Relayer", "sentTransactions", SentTransactionsArgs];
|
|
599
|
-
pendingTransactions: (req: PendingTransactionsArgs) => readonly ["Relayer", "pendingTransactions", PendingTransactionsArgs];
|
|
600
727
|
getGasTank: (req: GetGasTankArgs) => readonly ["Relayer", "getGasTank", GetGasTankArgs];
|
|
601
728
|
addGasTank: (req: AddGasTankArgs) => readonly ["Relayer", "addGasTank", AddGasTankArgs];
|
|
602
729
|
updateGasTank: (req: UpdateGasTankArgs) => readonly ["Relayer", "updateGasTank", UpdateGasTankArgs];
|
|
@@ -609,6 +736,11 @@ export declare class Relayer implements RelayerClient {
|
|
|
609
736
|
addGasSponsor: (req: AddGasSponsorArgs) => readonly ["Relayer", "addGasSponsor", AddGasSponsorArgs];
|
|
610
737
|
updateGasSponsor: (req: UpdateGasSponsorArgs) => readonly ["Relayer", "updateGasSponsor", UpdateGasSponsorArgs];
|
|
611
738
|
removeGasSponsor: (req: RemoveGasSponsorArgs) => readonly ["Relayer", "removeGasSponsor", RemoveGasSponsorArgs];
|
|
739
|
+
listEcosystemGasSponsors: (req: ListEcosystemGasSponsorsArgs) => readonly ["Relayer", "listEcosystemGasSponsors", ListEcosystemGasSponsorsArgs];
|
|
740
|
+
getEcosystemGasSponsor: (req: GetEcosystemGasSponsorArgs) => readonly ["Relayer", "getEcosystemGasSponsor", GetEcosystemGasSponsorArgs];
|
|
741
|
+
addEcosystemGasSponsor: (req: AddEcosystemGasSponsorArgs) => readonly ["Relayer", "addEcosystemGasSponsor", AddEcosystemGasSponsorArgs];
|
|
742
|
+
updateEcosystemGasSponsor: (req: UpdateEcosystemGasSponsorArgs) => readonly ["Relayer", "updateEcosystemGasSponsor", UpdateEcosystemGasSponsorArgs];
|
|
743
|
+
removeEcosystemGasSponsor: (req: RemoveEcosystemGasSponsorArgs) => readonly ["Relayer", "removeEcosystemGasSponsor", RemoveEcosystemGasSponsorArgs];
|
|
612
744
|
addressGasSponsors: (req: AddressGasSponsorsArgs) => readonly ["Relayer", "addressGasSponsors", AddressGasSponsorsArgs];
|
|
613
745
|
getProjectBalance: (req: GetProjectBalanceArgs) => readonly ["Relayer", "getProjectBalance", GetProjectBalanceArgs];
|
|
614
746
|
adjustProjectBalance: (req: AdjustProjectBalanceArgs) => readonly ["Relayer", "adjustProjectBalance", AdjustProjectBalanceArgs];
|
|
@@ -626,11 +758,14 @@ export declare class Relayer implements RelayerClient {
|
|
|
626
758
|
updateMetaTxnGasLimits: (req: UpdateMetaTxnGasLimitsArgs, headers?: object, signal?: AbortSignal) => Promise<UpdateMetaTxnGasLimitsReturn>;
|
|
627
759
|
feeTokens: (headers?: object, signal?: AbortSignal) => Promise<FeeTokensReturn>;
|
|
628
760
|
feeOptions: (req: FeeOptionsArgs, headers?: object, signal?: AbortSignal) => Promise<FeeOptionsReturn>;
|
|
761
|
+
sendMetaTxnWithBridgeGas: (req: SendMetaTxnWithBridgeGasArgs, headers?: object, signal?: AbortSignal) => Promise<SendMetaTxnWithBridgeGasReturn>;
|
|
762
|
+
feeOptionsWithBridgeGas: (req: FeeOptionsWithBridgeGasArgs, headers?: object, signal?: AbortSignal) => Promise<FeeOptionsWithBridgeGasReturn>;
|
|
629
763
|
getMetaTxnNetworkFeeOptions: (req: GetMetaTxnNetworkFeeOptionsArgs, headers?: object, signal?: AbortSignal) => Promise<GetMetaTxnNetworkFeeOptionsReturn>;
|
|
764
|
+
startSender: (req: StartSenderArgs, headers?: object, signal?: AbortSignal) => Promise<StartSenderReturn>;
|
|
765
|
+
stopSender: (req: StopSenderArgs, headers?: object, signal?: AbortSignal) => Promise<StopSenderReturn>;
|
|
766
|
+
repairSender: (req: RepairSenderArgs, headers?: object, signal?: AbortSignal) => Promise<RepairSenderReturn>;
|
|
630
767
|
getMetaTransactions: (req: GetMetaTransactionsArgs, headers?: object, signal?: AbortSignal) => Promise<GetMetaTransactionsReturn>;
|
|
631
768
|
getTransactionCost: (req: GetTransactionCostArgs, headers?: object, signal?: AbortSignal) => Promise<GetTransactionCostReturn>;
|
|
632
|
-
sentTransactions: (req: SentTransactionsArgs, headers?: object, signal?: AbortSignal) => Promise<SentTransactionsReturn>;
|
|
633
|
-
pendingTransactions: (req: PendingTransactionsArgs, headers?: object, signal?: AbortSignal) => Promise<PendingTransactionsReturn>;
|
|
634
769
|
getGasTank: (req: GetGasTankArgs, headers?: object, signal?: AbortSignal) => Promise<GetGasTankReturn>;
|
|
635
770
|
addGasTank: (req: AddGasTankArgs, headers?: object, signal?: AbortSignal) => Promise<AddGasTankReturn>;
|
|
636
771
|
updateGasTank: (req: UpdateGasTankArgs, headers?: object, signal?: AbortSignal) => Promise<UpdateGasTankReturn>;
|
|
@@ -643,6 +778,11 @@ export declare class Relayer implements RelayerClient {
|
|
|
643
778
|
addGasSponsor: (req: AddGasSponsorArgs, headers?: object, signal?: AbortSignal) => Promise<AddGasSponsorReturn>;
|
|
644
779
|
updateGasSponsor: (req: UpdateGasSponsorArgs, headers?: object, signal?: AbortSignal) => Promise<UpdateGasSponsorReturn>;
|
|
645
780
|
removeGasSponsor: (req: RemoveGasSponsorArgs, headers?: object, signal?: AbortSignal) => Promise<RemoveGasSponsorReturn>;
|
|
781
|
+
listEcosystemGasSponsors: (req: ListEcosystemGasSponsorsArgs, headers?: object, signal?: AbortSignal) => Promise<ListEcosystemGasSponsorsReturn>;
|
|
782
|
+
getEcosystemGasSponsor: (req: GetEcosystemGasSponsorArgs, headers?: object, signal?: AbortSignal) => Promise<GetEcosystemGasSponsorReturn>;
|
|
783
|
+
addEcosystemGasSponsor: (req: AddEcosystemGasSponsorArgs, headers?: object, signal?: AbortSignal) => Promise<AddEcosystemGasSponsorReturn>;
|
|
784
|
+
updateEcosystemGasSponsor: (req: UpdateEcosystemGasSponsorArgs, headers?: object, signal?: AbortSignal) => Promise<UpdateEcosystemGasSponsorReturn>;
|
|
785
|
+
removeEcosystemGasSponsor: (req: RemoveEcosystemGasSponsorArgs, headers?: object, signal?: AbortSignal) => Promise<RemoveEcosystemGasSponsorReturn>;
|
|
646
786
|
addressGasSponsors: (req: AddressGasSponsorsArgs, headers?: object, signal?: AbortSignal) => Promise<AddressGasSponsorsReturn>;
|
|
647
787
|
getProjectBalance: (req: GetProjectBalanceArgs, headers?: object, signal?: AbortSignal) => Promise<GetProjectBalanceReturn>;
|
|
648
788
|
adjustProjectBalance: (req: AdjustProjectBalanceArgs, headers?: object, signal?: AbortSignal) => Promise<AdjustProjectBalanceReturn>;
|
|
@@ -738,6 +878,9 @@ export declare class InvalidServiceError extends WebrpcError {
|
|
|
738
878
|
export declare class UnauthorizedUserError extends WebrpcError {
|
|
739
879
|
constructor(error?: WebrpcErrorParams);
|
|
740
880
|
}
|
|
881
|
+
export declare class InvalidChainError extends WebrpcError {
|
|
882
|
+
constructor(error?: WebrpcErrorParams);
|
|
883
|
+
}
|
|
741
884
|
export declare class QuotaExceededError extends WebrpcError {
|
|
742
885
|
constructor(error?: WebrpcErrorParams);
|
|
743
886
|
}
|
|
@@ -803,6 +946,7 @@ export declare enum errors {
|
|
|
803
946
|
InvalidOrigin = "InvalidOrigin",
|
|
804
947
|
InvalidService = "InvalidService",
|
|
805
948
|
UnauthorizedUser = "UnauthorizedUser",
|
|
949
|
+
InvalidChain = "InvalidChain",
|
|
806
950
|
QuotaExceeded = "QuotaExceeded",
|
|
807
951
|
QuotaRateLimit = "QuotaRateLimit",
|
|
808
952
|
NoDefaultKey = "NoDefaultKey",
|
|
@@ -843,6 +987,7 @@ export declare enum WebrpcErrorCodes {
|
|
|
843
987
|
InvalidOrigin = 1103,
|
|
844
988
|
InvalidService = 1104,
|
|
845
989
|
UnauthorizedUser = 1105,
|
|
990
|
+
InvalidChain = 1106,
|
|
846
991
|
QuotaExceeded = 1200,
|
|
847
992
|
QuotaRateLimit = 1201,
|
|
848
993
|
NoDefaultKey = 1300,
|
|
@@ -861,7 +1006,7 @@ export declare const webrpcErrorByCode: {
|
|
|
861
1006
|
[code: number]: any;
|
|
862
1007
|
};
|
|
863
1008
|
export declare const WebrpcHeader = "Webrpc";
|
|
864
|
-
export declare const WebrpcHeaderValue = "webrpc@v0.
|
|
1009
|
+
export declare const WebrpcHeaderValue = "webrpc@v0.32.2;gen-typescript@v0.23.1;sequence-relayer@v0.4.1";
|
|
865
1010
|
type WebrpcGenVersions = {
|
|
866
1011
|
WebrpcGenVersion: string;
|
|
867
1012
|
codeGenName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/relayer",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.44",
|
|
4
4
|
"description": "relayer sub-package for Sequence",
|
|
5
5
|
"repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/relayer",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
"ethers": ">=6"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@0xsequence/
|
|
16
|
-
"@0xsequence/
|
|
17
|
-
"@0xsequence/
|
|
15
|
+
"@0xsequence/utils": "2.3.44",
|
|
16
|
+
"@0xsequence/core": "2.3.44",
|
|
17
|
+
"@0xsequence/abi": "2.3.44"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@0xsequence/wallet-contracts": "^3.0.1",
|
|
21
21
|
"ethers": "6.13.4",
|
|
22
|
-
"@0xsequence/
|
|
23
|
-
"@0xsequence/
|
|
22
|
+
"@0xsequence/tests": "2.3.44",
|
|
23
|
+
"@0xsequence/signhub": "2.3.44"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"src",
|
package/src/local-relayer.ts
CHANGED
|
@@ -84,7 +84,7 @@ export class LocalRelayer extends ProviderRelayer implements Relayer {
|
|
|
84
84
|
page: proto.Page
|
|
85
85
|
transactions: proto.MetaTxnLog[]
|
|
86
86
|
}> {
|
|
87
|
-
return { page: { page: 0, pageSize: 100 }, transactions: [] }
|
|
87
|
+
return { page: { page: 0, pageSize: 100, more: false, column: '', sort: [] }, transactions: [] }
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
async getTransactionCost(
|
|
@@ -98,7 +98,7 @@ export class LocalRelayer extends ProviderRelayer implements Relayer {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
async listGasSponsors(args: proto.ListGasSponsorsArgs): Promise<proto.ListGasSponsorsReturn> {
|
|
101
|
-
return { page: { page: 0, pageSize: 100 }, gasSponsors: [] }
|
|
101
|
+
return { page: { page: 0, pageSize: 100, more: false, column: '', sort: [] }, gasSponsors: [] }
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
async addGasSponsor(args: proto.AddGasSponsorArgs): Promise<proto.AddGasSponsorReturn> {
|
package/src/rpc-relayer/index.ts
CHANGED
|
@@ -80,7 +80,7 @@ export class RpcRelayer implements Relayer {
|
|
|
80
80
|
|
|
81
81
|
while (isCancelled === undefined || !isCancelled()) {
|
|
82
82
|
try {
|
|
83
|
-
const { receipt } = await this.service.getMetaTxnReceipt({ metaTxID: metaTxnId })
|
|
83
|
+
const { receipt, metaTxnEnqueued } = await this.service.getMetaTxnReceipt({ metaTxID: metaTxnId })
|
|
84
84
|
|
|
85
85
|
if (
|
|
86
86
|
receipt &&
|
|
@@ -88,7 +88,7 @@ export class RpcRelayer implements Relayer {
|
|
|
88
88
|
receipt.txnReceipt !== 'null' &&
|
|
89
89
|
FINAL_STATUSES.includes(receipt.status as proto.ETHTxnStatus)
|
|
90
90
|
) {
|
|
91
|
-
return { receipt }
|
|
91
|
+
return { receipt, metaTxnEnqueued }
|
|
92
92
|
}
|
|
93
93
|
} catch (e) {
|
|
94
94
|
fails++
|