@ocap/types 1.31.4 → 1.31.6
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/interfaces/ledger.ts +16 -0
- package/interfaces/pipeline.ts +1 -1
- package/lib/tx_pb.d.ts +6 -17
- package/package.json +1 -1
package/interfaces/ledger.ts
CHANGED
|
@@ -599,6 +599,22 @@ export interface IWriterLeaseConfig {
|
|
|
599
599
|
enabled: boolean;
|
|
600
600
|
holderId: string;
|
|
601
601
|
ttlMs?: number;
|
|
602
|
+
/**
|
|
603
|
+
* Automatically acquire the lease in `init()`, renew it periodically in the background,
|
|
604
|
+
* and release it on `close()`. Defaults to `false` so manual takeover tests and callers
|
|
605
|
+
* keep explicit control over `acquireLease` / `renewLease` / `releaseLease`.
|
|
606
|
+
*/
|
|
607
|
+
autoAcquire?: boolean;
|
|
608
|
+
/**
|
|
609
|
+
* Optional background renewal interval in ms when `autoAcquire` is `true`
|
|
610
|
+
* (defaults to `Math.max(1000, Math.floor(ttlMs / 3))`).
|
|
611
|
+
*/
|
|
612
|
+
renewIntervalMs?: number;
|
|
613
|
+
/**
|
|
614
|
+
* With `autoAcquire`, how long `init()` keeps retrying while another holder still owns the lease
|
|
615
|
+
* (e.g. the previous process during an upgrade). Defaults to 0: reject immediately.
|
|
616
|
+
*/
|
|
617
|
+
startupWaitMs?: number;
|
|
602
618
|
}
|
|
603
619
|
|
|
604
620
|
/**
|
package/interfaces/pipeline.ts
CHANGED
|
@@ -304,7 +304,7 @@ export interface IGasContext<TItx = unknown> extends IDecodedContext<TItx> {
|
|
|
304
304
|
/** Total gas consumed (set by EnsureGas pipe) */
|
|
305
305
|
totalGas?: BN;
|
|
306
306
|
/** Gas estimate breakdown (set by EnsureGas pipe) */
|
|
307
|
-
gasEstimate?: { create: number; update: number; payment?: number };
|
|
307
|
+
gasEstimate?: { create: number; update: number; payment?: number | string };
|
|
308
308
|
/** Receipts for balance changes */
|
|
309
309
|
receipts?: TTransactionReceipt[];
|
|
310
310
|
|
package/lib/tx_pb.d.ts
CHANGED
|
@@ -356,6 +356,12 @@ export type TDepositTokenV2Tx = {
|
|
|
356
356
|
evidence?: type_pb.TEvidence,
|
|
357
357
|
rollup: string,
|
|
358
358
|
actualFee: string,
|
|
359
|
+
kind: number,
|
|
360
|
+
ordinal: number,
|
|
361
|
+
epoch: number,
|
|
362
|
+
ethSender: string,
|
|
363
|
+
claimSignature: string,
|
|
364
|
+
validatorSignatures: Array<string>,
|
|
359
365
|
data?: google_protobuf_any_pb.Any,
|
|
360
366
|
}
|
|
361
367
|
|
|
@@ -401,21 +407,6 @@ export type TBurnTokenTx = {
|
|
|
401
407
|
data?: google_protobuf_any_pb.Any,
|
|
402
408
|
}
|
|
403
409
|
|
|
404
|
-
export type TReleaseBridgeTokenTx = {
|
|
405
|
-
kind: number,
|
|
406
|
-
evidence: string,
|
|
407
|
-
ordinal: number,
|
|
408
|
-
to: string,
|
|
409
|
-
amount: string,
|
|
410
|
-
ethChainId: string,
|
|
411
|
-
epoch: number,
|
|
412
|
-
ethSender: string,
|
|
413
|
-
claimSignature: string,
|
|
414
|
-
signatures: Array<string>,
|
|
415
|
-
bridge: string,
|
|
416
|
-
data?: google_protobuf_any_pb.Any,
|
|
417
|
-
}
|
|
418
|
-
|
|
419
410
|
export type TItxStub = {
|
|
420
411
|
declare?: TDeclareTx,
|
|
421
412
|
delegate?: TDelegateTx,
|
|
@@ -436,7 +427,6 @@ export type TItxStub = {
|
|
|
436
427
|
updateTokenFactory?: TUpdateTokenFactoryTx,
|
|
437
428
|
mintToken?: TMintTokenTx,
|
|
438
429
|
burnToken?: TBurnTokenTx,
|
|
439
|
-
releaseBridgeToken?: TReleaseBridgeTokenTx,
|
|
440
430
|
createFactory?: TCreateFactoryTx,
|
|
441
431
|
acquireAssetV2?: TAcquireAssetV2Tx,
|
|
442
432
|
acquireAssetV3?: TAcquireAssetV3Tx,
|
|
@@ -480,7 +470,6 @@ export type TItxStub = {
|
|
|
480
470
|
UPDATE_TOKEN_FACTORY = 24,
|
|
481
471
|
MINT_TOKEN = 25,
|
|
482
472
|
BURN_TOKEN = 26,
|
|
483
|
-
RELEASE_BRIDGE_TOKEN = 27,
|
|
484
473
|
CREATE_FACTORY = 30,
|
|
485
474
|
ACQUIRE_ASSET_V2 = 31,
|
|
486
475
|
ACQUIRE_ASSET_V3 = 32,
|