gondi 0.30.2 → 0.30.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.
@@ -22,6 +22,7 @@ export declare const addStepCallback: (props: {
22
22
  [x: `uint8[${string}]`]: undefined;
23
23
  [x: `int256[${string}]`]: undefined;
24
24
  [x: `uint64[${string}]`]: undefined;
25
+ [x: `uint40[${string}]`]: undefined;
25
26
  [x: `bytes1[${string}]`]: undefined;
26
27
  [x: `bytes2[${string}]`]: undefined;
27
28
  [x: `bytes16[${string}]`]: undefined;
@@ -41,16 +42,16 @@ export declare const addStepCallback: (props: {
41
42
  [x: `bytes19[${string}]`]: undefined;
42
43
  [x: `bytes30[${string}]`]: undefined;
43
44
  [x: `bytes15[${string}]`]: undefined;
45
+ [x: `bytes22[${string}]`]: undefined;
44
46
  [x: `bytes11[${string}]`]: undefined;
45
- [x: `bytes12[${string}]`]: undefined;
46
- [x: `bytes17[${string}]`]: undefined;
47
+ [x: `bytes25[${string}]`]: undefined;
47
48
  [x: `bytes18[${string}]`]: undefined;
48
- [x: `bytes22[${string}]`]: undefined;
49
49
  [x: `bytes23[${string}]`]: undefined;
50
- [x: `bytes25[${string}]`]: undefined;
51
- [x: `bytes27[${string}]`]: undefined;
52
50
  [x: `bytes28[${string}]`]: undefined;
53
51
  [x: `bytes29[${string}]`]: undefined;
52
+ [x: `bytes17[${string}]`]: undefined;
53
+ [x: `bytes12[${string}]`]: undefined;
54
+ [x: `bytes27[${string}]`]: undefined;
54
55
  [x: `bytes31[${string}]`]: undefined;
55
56
  [x: `int[${string}]`]: undefined;
56
57
  [x: `int16[${string}]`]: undefined;
@@ -87,7 +88,6 @@ export declare const addStepCallback: (props: {
87
88
  [x: `uint[${string}]`]: undefined;
88
89
  [x: `uint24[${string}]`]: undefined;
89
90
  [x: `uint32[${string}]`]: undefined;
90
- [x: `uint40[${string}]`]: undefined;
91
91
  [x: `uint56[${string}]`]: undefined;
92
92
  [x: `uint72[${string}]`]: undefined;
93
93
  [x: `uint80[${string}]`]: undefined;
@@ -124,6 +124,7 @@ export declare const addStepCallback: (props: {
124
124
  uint8?: undefined;
125
125
  int256?: undefined;
126
126
  uint64?: undefined;
127
+ uint40?: undefined;
127
128
  bytes1?: undefined;
128
129
  bytes2?: undefined;
129
130
  bytes16?: undefined;
@@ -143,16 +144,16 @@ export declare const addStepCallback: (props: {
143
144
  bytes19?: undefined;
144
145
  bytes30?: undefined;
145
146
  bytes15?: undefined;
147
+ bytes22?: undefined;
146
148
  bytes11?: undefined;
147
- bytes12?: undefined;
148
- bytes17?: undefined;
149
+ bytes25?: undefined;
149
150
  bytes18?: undefined;
150
- bytes22?: undefined;
151
151
  bytes23?: undefined;
152
- bytes25?: undefined;
153
- bytes27?: undefined;
154
152
  bytes28?: undefined;
155
153
  bytes29?: undefined;
154
+ bytes17?: undefined;
155
+ bytes12?: undefined;
156
+ bytes27?: undefined;
156
157
  bytes31?: undefined;
157
158
  int16?: undefined;
158
159
  int8?: undefined;
@@ -187,7 +188,6 @@ export declare const addStepCallback: (props: {
187
188
  int248?: undefined;
188
189
  uint24?: undefined;
189
190
  uint32?: undefined;
190
- uint40?: undefined;
191
191
  uint56?: undefined;
192
192
  uint72?: undefined;
193
193
  uint80?: undefined;
@@ -3492,7 +3492,7 @@ export declare const addStepCallback: (props: {
3492
3492
  authorizationList: import("viem").TransactionSerializableEIP7702["authorizationList"];
3493
3493
  } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? import("viem").TransactionRequestEIP7702 : never : never : never)>> & {
3494
3494
  chainId?: number | undefined;
3495
- }, (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "fees" | "chainId") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "fees" | "chainId") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: T[K]; } : never>;
3495
+ }, (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "nonce" | "type" | "gas" | "blobVersionedHashes" | "chainId") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "nonce" | "type" | "gas" | "blobVersionedHashes" | "chainId") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: T[K]; } : never>;
3496
3496
  requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
3497
3497
  requestPermissions: (args: import("viem").RequestPermissionsParameters) => Promise<import("viem").RequestPermissionsReturnType>;
3498
3498
  sendCalls: <const calls extends readonly unknown[], chainOverride extends import("viem").Chain | undefined = undefined>(parameters: import("viem").SendCallsParameters<import("viem").Chain, import("viem").Account, chainOverride, calls>) => Promise<{
@@ -1,2 +1,27 @@
1
+ import { PublicClient } from 'viem';
1
2
  import { HexString } from '../blockchain';
2
3
  export declare const isEmptyCalldata: (calldata: HexString) => calldata is "0x";
4
+ /**
5
+ * Total time a receipt wait keeps trying before giving up on a broadcast
6
+ * transaction. Slow-to-mine transactions usually confirm well within this
7
+ * window; viem's own default gives up after 180s.
8
+ */
9
+ export declare const WAIT_FOR_RECEIPT_TIMEOUT_MILLIS = 360000;
10
+ type ReceiptWaiter = Pick<PublicClient, 'waitForTransactionReceipt'>;
11
+ interface ReceiptWaitOptions {
12
+ timeoutMillis?: number;
13
+ retryDelayMillis?: number;
14
+ }
15
+ /**
16
+ * Wraps a public client so `waitForTransactionReceipt` stays patient for
17
+ * {@link WAIT_FOR_RECEIPT_TIMEOUT_MILLIS} instead of viem's 180s default.
18
+ *
19
+ * viem's wait also rejects with `TransactionReceiptNotFoundError` /
20
+ * `TransactionNotFoundError` long before its timeout when the RPC node lags
21
+ * behind the mempool (its internal lookups exhaust their retries). Those
22
+ * rejections mean the transaction is still pending, so the wrapper retries
23
+ * the wait until the deadline and only then throws
24
+ * `WaitForTransactionReceiptTimeoutError` with the transaction hash.
25
+ */
26
+ export declare const withRetriedReceiptWait: <TClient extends ReceiptWaiter>(client: TClient, options?: ReceiptWaitOptions) => TClient;
27
+ export {};