ox 0.14.45 → 0.14.47
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 +16 -0
- package/Frame/package.json +6 -0
- package/FrameReceipt/package.json +6 -0
- package/FrameSignature/package.json +6 -0
- package/TxEnvelopeEip8141/package.json +6 -0
- package/_cjs/core/Frame.js +147 -0
- package/_cjs/core/Frame.js.map +1 -0
- package/_cjs/core/FrameReceipt.js +34 -0
- package/_cjs/core/FrameReceipt.js.map +1 -0
- package/_cjs/core/FrameSignature.js +203 -0
- package/_cjs/core/FrameSignature.js.map +1 -0
- package/_cjs/core/Transaction.js +18 -2
- package/_cjs/core/Transaction.js.map +1 -1
- package/_cjs/core/TransactionReceipt.js +10 -0
- package/_cjs/core/TransactionReceipt.js.map +1 -1
- package/_cjs/core/TransactionRequest.js +11 -1
- package/_cjs/core/TransactionRequest.js.map +1 -1
- package/_cjs/core/TxEnvelopeEip8141.js +282 -0
- package/_cjs/core/TxEnvelopeEip8141.js.map +1 -0
- package/_cjs/core/internal/curves.js +6 -0
- package/_cjs/core/internal/curves.js.map +1 -0
- package/_cjs/core/internal/quantity.js +10 -0
- package/_cjs/core/internal/quantity.js.map +1 -0
- package/_cjs/erc4337/UserOperationReceipt.js.map +1 -1
- package/_cjs/index.js +6 -2
- package/_cjs/index.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_esm/core/Frame.js +311 -0
- package/_esm/core/Frame.js.map +1 -0
- package/_esm/core/FrameReceipt.js +72 -0
- package/_esm/core/FrameReceipt.js.map +1 -0
- package/_esm/core/FrameSignature.js +422 -0
- package/_esm/core/FrameSignature.js.map +1 -0
- package/_esm/core/Transaction.js +18 -2
- package/_esm/core/Transaction.js.map +1 -1
- package/_esm/core/TransactionReceipt.js +10 -0
- package/_esm/core/TransactionReceipt.js.map +1 -1
- package/_esm/core/TransactionRequest.js +11 -1
- package/_esm/core/TransactionRequest.js.map +1 -1
- package/_esm/core/TxEnvelopeEip8141.js +489 -0
- package/_esm/core/TxEnvelopeEip8141.js.map +1 -0
- package/_esm/core/internal/curves.js +19 -0
- package/_esm/core/internal/curves.js.map +1 -0
- package/_esm/core/internal/quantity.js +14 -0
- package/_esm/core/internal/quantity.js.map +1 -0
- package/_esm/erc4337/UserOperationReceipt.js.map +1 -1
- package/_esm/index.js +73 -0
- package/_esm/index.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_types/core/Frame.d.ts +290 -0
- package/_types/core/Frame.d.ts.map +1 -0
- package/_types/core/FrameReceipt.d.ts +92 -0
- package/_types/core/FrameReceipt.d.ts.map +1 -0
- package/_types/core/FrameSignature.d.ts +357 -0
- package/_types/core/FrameSignature.d.ts.map +1 -0
- package/_types/core/Transaction.d.ts +29 -4
- package/_types/core/Transaction.d.ts.map +1 -1
- package/_types/core/TransactionReceipt.d.ts +15 -6
- package/_types/core/TransactionReceipt.d.ts.map +1 -1
- package/_types/core/TransactionRequest.d.ts +10 -4
- package/_types/core/TransactionRequest.d.ts.map +1 -1
- package/_types/core/TxEnvelopeEip8141.d.ts +343 -0
- package/_types/core/TxEnvelopeEip8141.d.ts.map +1 -0
- package/_types/core/internal/curves.d.ts +19 -0
- package/_types/core/internal/curves.d.ts.map +1 -0
- package/_types/core/internal/quantity.d.ts +10 -0
- package/_types/core/internal/quantity.d.ts.map +1 -0
- package/_types/erc4337/UserOperationReceipt.d.ts +1 -1
- package/_types/erc4337/UserOperationReceipt.d.ts.map +1 -1
- package/_types/index.d.ts +73 -0
- package/_types/index.d.ts.map +1 -1
- package/_types/tempo/Transaction.d.ts +2 -0
- package/_types/tempo/Transaction.d.ts.map +1 -1
- package/_types/tempo/TransactionReceipt.d.ts +2 -0
- package/_types/tempo/TransactionReceipt.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/core/Frame.ts +442 -0
- package/core/FrameReceipt.ts +117 -0
- package/core/FrameSignature.ts +606 -0
- package/core/Transaction.ts +73 -4
- package/core/TransactionReceipt.ts +41 -4
- package/core/TransactionRequest.ts +26 -2
- package/core/TxEnvelopeEip8141.ts +716 -0
- package/core/internal/curves.ts +22 -0
- package/core/internal/quantity.ts +16 -0
- package/erc4337/UserOperationReceipt.ts +1 -6
- package/index.ts +73 -0
- package/package.json +21 -1
- package/version.ts +1 -1
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import * as Address from './Address.js';
|
|
2
|
+
import * as Errors from './Errors.js';
|
|
3
|
+
import * as Hex from './Hex.js';
|
|
4
|
+
import type { Compute, UnionPartialBy } from './internal/types.js';
|
|
5
|
+
import * as PublicKey from './PublicKey.js';
|
|
6
|
+
import * as Signature from './Signature.js';
|
|
7
|
+
/** Signature schemes supported by EIP-8141. */
|
|
8
|
+
export declare const schemes: {
|
|
9
|
+
readonly arbitrary: 0;
|
|
10
|
+
readonly p256: 2;
|
|
11
|
+
readonly secp256k1: 1;
|
|
12
|
+
};
|
|
13
|
+
/** A supported numeric or named frame signature scheme. */
|
|
14
|
+
export type Scheme = keyof typeof schemes | (typeof schemes)[keyof typeof schemes];
|
|
15
|
+
/** Contract-defined signature bytes. */
|
|
16
|
+
export type Arbitrary = {
|
|
17
|
+
/** Explicit nonzero digest. Omit or use empty bytes for the transaction signing hash. */
|
|
18
|
+
payload?: Hex.Hex | undefined;
|
|
19
|
+
/** Contract-defined verification scheme. */
|
|
20
|
+
scheme: 0 | 'arbitrary';
|
|
21
|
+
/** Opaque witness bytes. */
|
|
22
|
+
signature: Hex.Hex;
|
|
23
|
+
/** Arbitrary signatures have no signer metadata. */
|
|
24
|
+
signer?: undefined;
|
|
25
|
+
};
|
|
26
|
+
/** A structured secp256k1 signature entry. */
|
|
27
|
+
export type Secp256k1 = {
|
|
28
|
+
/** Explicit nonzero digest. Omit or use empty bytes for the transaction signing hash. */
|
|
29
|
+
payload?: Hex.Hex | undefined;
|
|
30
|
+
/** secp256k1 verification scheme. */
|
|
31
|
+
scheme: 1 | 'secp256k1';
|
|
32
|
+
/** Recovered signature. Omit for an unsigned entry. */
|
|
33
|
+
signature?: Signature.Signature | undefined;
|
|
34
|
+
/** Signer address. Omit to use the transaction sender. */
|
|
35
|
+
signer?: Address.Address | undefined;
|
|
36
|
+
};
|
|
37
|
+
/** A structured P-256 signature entry. */
|
|
38
|
+
export type P256 = {
|
|
39
|
+
/** Explicit nonzero digest. Omit or use empty bytes for the transaction signing hash. */
|
|
40
|
+
payload?: Hex.Hex | undefined;
|
|
41
|
+
/** P-256 verification scheme. */
|
|
42
|
+
scheme: 2 | 'p256';
|
|
43
|
+
/** Signer address. Omit to use the transaction sender. */
|
|
44
|
+
signer?: Address.Address | undefined;
|
|
45
|
+
} & ({
|
|
46
|
+
/** Uncompressed P-256 public key. */
|
|
47
|
+
publicKey: PublicKey.PublicKey;
|
|
48
|
+
/** P-256 signature. */
|
|
49
|
+
signature: Signature.Signature<false>;
|
|
50
|
+
} | {
|
|
51
|
+
/** Public key, if already known. Empty wire signatures do not retain it. */
|
|
52
|
+
publicKey?: PublicKey.PublicKey | undefined;
|
|
53
|
+
/** Omit for an unsigned entry. */
|
|
54
|
+
signature?: undefined;
|
|
55
|
+
});
|
|
56
|
+
/** An EIP-8141 signature entry. Empty payload selects the transaction signing hash. */
|
|
57
|
+
export type FrameSignature = Arbitrary | Secp256k1 | P256;
|
|
58
|
+
/** JSON-RPC representation of a frame signature. */
|
|
59
|
+
export type Rpc = {
|
|
60
|
+
/** Explicit digest, or empty bytes for the transaction signing hash. */
|
|
61
|
+
msg: Hex.Hex;
|
|
62
|
+
/** Signature verification scheme. */
|
|
63
|
+
scheme: 0 | 1 | 2;
|
|
64
|
+
/** Encoded signature bytes. */
|
|
65
|
+
signature: Hex.Hex;
|
|
66
|
+
/** Signer address; absent for the transaction sender. */
|
|
67
|
+
signer?: Address.Address | null | undefined;
|
|
68
|
+
};
|
|
69
|
+
/** RLP-ready signature entry. The payload occupies the specification's `msg` field. */
|
|
70
|
+
export type Tuple = readonly [
|
|
71
|
+
scheme: Hex.Hex,
|
|
72
|
+
signer: Hex.Hex,
|
|
73
|
+
payload: Hex.Hex,
|
|
74
|
+
signature: Hex.Hex
|
|
75
|
+
];
|
|
76
|
+
/**
|
|
77
|
+
* Asserts that a {@link ox#FrameSignature.FrameSignature} is structurally valid.
|
|
78
|
+
*
|
|
79
|
+
* Checks metadata, signature scalars, and public key shape without verifying
|
|
80
|
+
* authorization.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ### Basic Usage
|
|
84
|
+
*
|
|
85
|
+
* Unsigned protocol entries are accepted by default.
|
|
86
|
+
*
|
|
87
|
+
* ```ts twoslash
|
|
88
|
+
* import { FrameSignature } from 'ox'
|
|
89
|
+
*
|
|
90
|
+
* FrameSignature.assert({
|
|
91
|
+
* payload: '0x',
|
|
92
|
+
* scheme: 'secp256k1'
|
|
93
|
+
* })
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ### Requiring a Signature
|
|
98
|
+
*
|
|
99
|
+
* Set `signed` to require a protocol signature.
|
|
100
|
+
*
|
|
101
|
+
* ```ts twoslash
|
|
102
|
+
* import { FrameSignature, Hash, Secp256k1 } from 'ox'
|
|
103
|
+
*
|
|
104
|
+
* const payload = Hash.keccak256('0xdeadbeef')
|
|
105
|
+
* const privateKey = Secp256k1.randomPrivateKey()
|
|
106
|
+
* const signature = Secp256k1.sign({ payload, privateKey })
|
|
107
|
+
*
|
|
108
|
+
* const entry = FrameSignature.from({
|
|
109
|
+
* payload,
|
|
110
|
+
* scheme: 'secp256k1',
|
|
111
|
+
* signature
|
|
112
|
+
* })
|
|
113
|
+
*
|
|
114
|
+
* FrameSignature.assert(entry, { signed: true })
|
|
115
|
+
* ```
|
|
116
|
+
*
|
|
117
|
+
* @param entry - The signature entry to assert.
|
|
118
|
+
* @param options - Validation options.
|
|
119
|
+
*/
|
|
120
|
+
export declare function assert(entry: FrameSignature, options?: assert.Options): void;
|
|
121
|
+
export declare namespace assert {
|
|
122
|
+
type Options = {
|
|
123
|
+
/**
|
|
124
|
+
* Require a protocol signature. Does not perform cryptographic verification.
|
|
125
|
+
* @default false
|
|
126
|
+
*/
|
|
127
|
+
signed?: boolean | undefined;
|
|
128
|
+
};
|
|
129
|
+
type ErrorType = InvalidError | Address.assert.ErrorType | Hex.assert.ErrorType | Hex.toBigInt.ErrorType | PublicKey.assert.ErrorType | Signature.assert.ErrorType | Errors.GlobalErrorType;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Coerces a value into a {@link ox#FrameSignature.FrameSignature}.
|
|
133
|
+
*
|
|
134
|
+
* Accepts arbitrary signature bytes or a structured signature entry. Omitted
|
|
135
|
+
* `scheme` and `payload` default to `'arbitrary'` and `'0x'`, respectively.
|
|
136
|
+
* An empty payload selects the canonical transaction signing hash; an explicit
|
|
137
|
+
* payload must be a nonzero 32-byte digest.
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* ### From Hex
|
|
141
|
+
*
|
|
142
|
+
* Wrap arbitrary witness bytes for contract-defined verification.
|
|
143
|
+
*
|
|
144
|
+
* ```ts twoslash
|
|
145
|
+
* import { FrameSignature } from 'ox'
|
|
146
|
+
*
|
|
147
|
+
* const entry = FrameSignature.from('0xaabb')
|
|
148
|
+
* // @log: { payload: '0x', scheme: 'arbitrary', signature: '0xaabb' }
|
|
149
|
+
* ```
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ### Secp256k1
|
|
153
|
+
*
|
|
154
|
+
* Wrap a signature over an explicit digest, retaining the same payload in the entry.
|
|
155
|
+
*
|
|
156
|
+
* ```ts twoslash
|
|
157
|
+
* import { FrameSignature, Hash, Secp256k1 } from 'ox'
|
|
158
|
+
*
|
|
159
|
+
* const payload = Hash.keccak256('0xdeadbeef')
|
|
160
|
+
* const privateKey = Secp256k1.randomPrivateKey()
|
|
161
|
+
* const signature = Secp256k1.sign({ payload, privateKey })
|
|
162
|
+
*
|
|
163
|
+
* const entry = FrameSignature.from({
|
|
164
|
+
* payload,
|
|
165
|
+
* scheme: 'secp256k1',
|
|
166
|
+
* signature
|
|
167
|
+
* })
|
|
168
|
+
* ```
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* ### P256
|
|
172
|
+
*
|
|
173
|
+
* Include the public key with a P-256 signature over an explicit digest.
|
|
174
|
+
*
|
|
175
|
+
* ```ts twoslash
|
|
176
|
+
* import { FrameSignature, Hash, P256 } from 'ox'
|
|
177
|
+
*
|
|
178
|
+
* const { privateKey, publicKey } = P256.createKeyPair()
|
|
179
|
+
* const payload = Hash.keccak256('0xdeadbeef')
|
|
180
|
+
* const signature = P256.sign({ payload, privateKey })
|
|
181
|
+
*
|
|
182
|
+
* const entry = FrameSignature.from({
|
|
183
|
+
* payload,
|
|
184
|
+
* publicKey,
|
|
185
|
+
* scheme: 'p256',
|
|
186
|
+
* signature
|
|
187
|
+
* })
|
|
188
|
+
* ```
|
|
189
|
+
*
|
|
190
|
+
* @example
|
|
191
|
+
* ### Unsigned Entries
|
|
192
|
+
*
|
|
193
|
+
* Omit the signature to prepare a protocol entry before signing the transaction.
|
|
194
|
+
*
|
|
195
|
+
* ```ts twoslash
|
|
196
|
+
* import { FrameSignature } from 'ox'
|
|
197
|
+
*
|
|
198
|
+
* const entry = FrameSignature.from({ scheme: 'secp256k1' })
|
|
199
|
+
* // @log: { payload: '0x', scheme: 'secp256k1' }
|
|
200
|
+
* ```
|
|
201
|
+
*
|
|
202
|
+
* @param entry - Arbitrary signature bytes or a structured signature entry.
|
|
203
|
+
* @returns The validated entry, preserving supplied signature and scheme types.
|
|
204
|
+
*/
|
|
205
|
+
export declare function from<const entry extends from.Input>(entry: entry | from.Input): from.ReturnType<entry>;
|
|
206
|
+
export declare namespace from {
|
|
207
|
+
type Input = Hex.Hex | UnionPartialBy<Arbitrary, 'scheme' | 'payload'> | UnionPartialBy<Secp256k1 | P256, 'payload'>;
|
|
208
|
+
type ReturnType<entry extends Input = Input> = entry extends Hex.Hex ? {
|
|
209
|
+
payload: '0x';
|
|
210
|
+
scheme: 'arbitrary';
|
|
211
|
+
signature: entry;
|
|
212
|
+
} : entry extends Input ? Compute<Omit<entry, 'scheme' | 'payload'> & {
|
|
213
|
+
payload: entry extends {
|
|
214
|
+
payload: infer payload extends Hex.Hex;
|
|
215
|
+
} ? payload : 'payload' extends keyof entry ? Exclude<entry['payload'], undefined> | '0x' : '0x';
|
|
216
|
+
scheme: entry extends {
|
|
217
|
+
scheme: infer scheme extends Scheme;
|
|
218
|
+
} ? scheme : 'scheme' extends keyof entry ? Exclude<entry['scheme'], undefined> | 'arbitrary' : 'arbitrary';
|
|
219
|
+
}> : never;
|
|
220
|
+
type ErrorType = assert.ErrorType;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Converts an RPC signature entry to a structured frame signature.
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
* ### Basic Usage
|
|
227
|
+
*
|
|
228
|
+
* ```ts twoslash
|
|
229
|
+
* import { FrameSignature } from 'ox'
|
|
230
|
+
*
|
|
231
|
+
* const entry = FrameSignature.fromRpc({
|
|
232
|
+
* msg: '0x',
|
|
233
|
+
* scheme: 0,
|
|
234
|
+
* signature: '0xdeadbeef'
|
|
235
|
+
* })
|
|
236
|
+
* ```
|
|
237
|
+
*
|
|
238
|
+
* @param entry - The value to convert.
|
|
239
|
+
* @returns The converted value.
|
|
240
|
+
*/
|
|
241
|
+
export declare function fromRpc(entry: Rpc): FrameSignature;
|
|
242
|
+
export declare namespace fromRpc {
|
|
243
|
+
type ErrorType = fromTuple.ErrorType | Hex.fromNumber.ErrorType;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Converts a structured frame signature to its RPC representation.
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
* ### Basic Usage
|
|
250
|
+
*
|
|
251
|
+
* ```ts twoslash
|
|
252
|
+
* import { FrameSignature } from 'ox'
|
|
253
|
+
*
|
|
254
|
+
* const entry = FrameSignature.from('0xdeadbeef')
|
|
255
|
+
* const rpc = FrameSignature.toRpc(entry)
|
|
256
|
+
* ```
|
|
257
|
+
*
|
|
258
|
+
* @param entry - The value to convert.
|
|
259
|
+
* @returns The converted value.
|
|
260
|
+
*/
|
|
261
|
+
export declare function toRpc(entry: FrameSignature): Rpc;
|
|
262
|
+
export declare namespace toRpc {
|
|
263
|
+
type ErrorType = toTuple.ErrorType | Hex.toNumber.ErrorType;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Converts a {@link ox#FrameSignature.Tuple} to a structured
|
|
267
|
+
* {@link ox#FrameSignature.FrameSignature}.
|
|
268
|
+
*
|
|
269
|
+
* Returns a named scheme and unpacks protocol signatures. Empty protocol signatures
|
|
270
|
+
* become unsigned entries. Rejects noncanonical encodings.
|
|
271
|
+
*
|
|
272
|
+
* @example
|
|
273
|
+
* ### Basic Usage
|
|
274
|
+
*
|
|
275
|
+
* Decode an arbitrary signature tuple.
|
|
276
|
+
*
|
|
277
|
+
* ```ts twoslash
|
|
278
|
+
* import { FrameSignature } from 'ox'
|
|
279
|
+
*
|
|
280
|
+
* const entry = FrameSignature.fromTuple([
|
|
281
|
+
* '0x',
|
|
282
|
+
* '0x',
|
|
283
|
+
* '0x',
|
|
284
|
+
* '0xaabb'
|
|
285
|
+
* ])
|
|
286
|
+
* // @log: { payload: '0x', scheme: 'arbitrary', signature: '0xaabb' }
|
|
287
|
+
* ```
|
|
288
|
+
*
|
|
289
|
+
* @param tuple - The signature tuple to convert.
|
|
290
|
+
* @returns The decoded signature entry.
|
|
291
|
+
*/
|
|
292
|
+
export declare function fromTuple(tuple: Tuple): FrameSignature;
|
|
293
|
+
export declare namespace fromTuple {
|
|
294
|
+
type ErrorType = assert.ErrorType | Hex.slice.ErrorType | Hex.toNumber.ErrorType | Hex.toBytes.ErrorType | Hex.toBigInt.ErrorType;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Converts a {@link ox#FrameSignature.FrameSignature} to its RLP-ready
|
|
298
|
+
* {@link ox#FrameSignature.Tuple}.
|
|
299
|
+
*
|
|
300
|
+
* Encodes numeric scheme identifiers and packs protocol signatures without mutating
|
|
301
|
+
* the entry. Omitted protocol signatures become empty bytes.
|
|
302
|
+
*
|
|
303
|
+
* @example
|
|
304
|
+
* ### Basic Usage
|
|
305
|
+
*
|
|
306
|
+
* Encode arbitrary witness bytes with the default scheme and payload.
|
|
307
|
+
*
|
|
308
|
+
* ```ts twoslash
|
|
309
|
+
* import { FrameSignature } from 'ox'
|
|
310
|
+
*
|
|
311
|
+
* const entry = FrameSignature.from('0xaabb')
|
|
312
|
+
* const tuple = FrameSignature.toTuple(entry)
|
|
313
|
+
* // @log: ['0x', '0x', '0x', '0xaabb']
|
|
314
|
+
* ```
|
|
315
|
+
*
|
|
316
|
+
* @param entry - The signature entry to convert.
|
|
317
|
+
* @returns The encoded signature tuple.
|
|
318
|
+
*/
|
|
319
|
+
export declare function toTuple(entry: FrameSignature): Tuple;
|
|
320
|
+
export declare namespace toTuple {
|
|
321
|
+
type ErrorType = assert.ErrorType | Hex.fromNumber.ErrorType | Hex.fromBytes.ErrorType | Hex.concat.ErrorType;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Returns whether a {@link ox#FrameSignature.FrameSignature} is structurally valid.
|
|
325
|
+
*
|
|
326
|
+
* Performs the same checks as {@link ox#FrameSignature.(assert:function)}, returning
|
|
327
|
+
* `false` instead of throwing. Does not verify that the signature authorizes a payload.
|
|
328
|
+
*
|
|
329
|
+
* @example
|
|
330
|
+
* ### Basic Usage
|
|
331
|
+
*
|
|
332
|
+
* Require a signature when checking a protocol entry.
|
|
333
|
+
*
|
|
334
|
+
* ```ts twoslash
|
|
335
|
+
* import { FrameSignature } from 'ox'
|
|
336
|
+
*
|
|
337
|
+
* const entry = FrameSignature.from({ scheme: 'secp256k1' })
|
|
338
|
+
* const valid = FrameSignature.validate(entry, {
|
|
339
|
+
* signed: true
|
|
340
|
+
* })
|
|
341
|
+
* // @log: false
|
|
342
|
+
* ```
|
|
343
|
+
*
|
|
344
|
+
* @param entry - The signature entry to validate.
|
|
345
|
+
* @param options - Validation options.
|
|
346
|
+
* @returns Whether the entry is structurally valid.
|
|
347
|
+
*/
|
|
348
|
+
export declare function validate(entry: FrameSignature, options?: assert.Options): boolean;
|
|
349
|
+
export declare namespace validate {
|
|
350
|
+
type ErrorType = Errors.GlobalErrorType;
|
|
351
|
+
}
|
|
352
|
+
/** Thrown when frame signature metadata or encoding is invalid. */
|
|
353
|
+
export declare class InvalidError extends Errors.BaseError {
|
|
354
|
+
readonly name = "FrameSignature.InvalidError";
|
|
355
|
+
constructor(details: string);
|
|
356
|
+
}
|
|
357
|
+
//# sourceMappingURL=FrameSignature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FrameSignature.d.ts","sourceRoot":"","sources":["../../core/FrameSignature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAE/B,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAClE,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,+CAA+C;AAC/C,eAAO,MAAM,OAAO;;;;CAAmD,CAAA;AAEvE,2DAA2D;AAC3D,MAAM,MAAM,MAAM,GACd,MAAM,OAAO,OAAO,GACpB,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAA;AAE1C,wCAAwC;AACxC,MAAM,MAAM,SAAS,GAAG;IACtB,yFAAyF;IACzF,OAAO,CAAC,EAAE,GAAG,CAAC,GAAG,GAAG,SAAS,CAAA;IAC7B,4CAA4C;IAC5C,MAAM,EAAE,CAAC,GAAG,WAAW,CAAA;IACvB,4B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 +2,21 @@ import type * as AccessList from './AccessList.js';
|
|
|
2
2
|
import type * as Address from './Address.js';
|
|
3
3
|
import * as Authorization from './Authorization.js';
|
|
4
4
|
import type * as Errors from './Errors.js';
|
|
5
|
+
import * as Frame from './Frame.js';
|
|
6
|
+
import * as FrameSignature from './FrameSignature.js';
|
|
5
7
|
import * as Hex from './Hex.js';
|
|
6
8
|
import type { Compute, OneOf, UnionCompute } from './internal/types.js';
|
|
7
9
|
import * as Signature from './Signature.js';
|
|
8
10
|
/**
|
|
9
11
|
* A Transaction as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/transaction.yaml).
|
|
10
12
|
*/
|
|
11
|
-
export type Transaction<pending extends boolean = false, bigintType = bigint, numberType = number> = UnionCompute<OneOf<Legacy<pending, bigintType, numberType> | Eip1559<pending, bigintType, numberType> | Eip2930<pending, bigintType, numberType> | Eip4844<pending, bigintType, numberType> | Eip7702<pending, bigintType, numberType> | (Base & {
|
|
13
|
+
export type Transaction<pending extends boolean = false, bigintType = bigint, numberType = number> = UnionCompute<OneOf<Legacy<pending, bigintType, numberType> | Eip1559<pending, bigintType, numberType> | Eip2930<pending, bigintType, numberType> | Eip4844<pending, bigintType, numberType> | Eip7702<pending, bigintType, numberType> | Eip8141<pending, bigintType, numberType> | (Base & {
|
|
12
14
|
type: Hex.Hex;
|
|
13
15
|
})>>;
|
|
14
16
|
/**
|
|
15
17
|
* An RPC Transaction as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/transaction.yaml).
|
|
16
18
|
*/
|
|
17
|
-
export type Rpc<pending extends boolean = false> = UnionCompute<OneOf<LegacyRpc<pending> | Eip1559Rpc<pending> | Eip2930Rpc<pending> | Eip4844Rpc<pending> | Eip7702Rpc<pending> | (BaseRpc & {
|
|
19
|
+
export type Rpc<pending extends boolean = false> = UnionCompute<OneOf<LegacyRpc<pending> | Eip1559Rpc<pending> | Eip2930Rpc<pending> | Eip4844Rpc<pending> | Eip7702Rpc<pending> | Eip8141Rpc<pending> | (BaseRpc & {
|
|
18
20
|
type: Hex.Hex;
|
|
19
21
|
})>>;
|
|
20
22
|
/** Base properties of a Transaction as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/transaction.yaml). */
|
|
@@ -108,6 +110,27 @@ export type Eip7702<pending extends boolean = false, bigintType = bigint, number
|
|
|
108
110
|
}>;
|
|
109
111
|
/** An RPC [EIP-7702](https://eips.ethereum.org/EIPS/eip-7702) Transaction as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/transaction.yaml). */
|
|
110
112
|
export type Eip7702Rpc<pending extends boolean = false> = Compute<Eip7702<pending, Hex.Hex, Hex.Hex, ToRpcType['eip7702']>>;
|
|
113
|
+
/** An EIP-8141 frame transaction. */
|
|
114
|
+
export type Eip8141<pending extends boolean = false, bigintType = bigint, numberType = number, type extends string = 'eip8141'> = Compute<Omit<Base<type, pending, bigintType, numberType>, 'chainId' | 'r' | 's' | 'v' | 'yParity'> & {
|
|
115
|
+
/** Versioned blob hashes. */
|
|
116
|
+
blobVersionedHashes: readonly Hex.Hex[];
|
|
117
|
+
/** Chain ID, retaining bigint precision when needed. */
|
|
118
|
+
chainId: numberType | bigintType;
|
|
119
|
+
/** Frames in execution order. */
|
|
120
|
+
frames: readonly ([bigintType] extends [Hex.Hex] ? Frame.Rpc : Frame.Frame<bigintType>)[];
|
|
121
|
+
/** Effective gas price. */
|
|
122
|
+
gasPrice?: bigintType | undefined;
|
|
123
|
+
/** Maximum fee per blob gas. */
|
|
124
|
+
maxFeePerBlobGas: bigintType;
|
|
125
|
+
/** Maximum fee per gas. */
|
|
126
|
+
maxFeePerGas: bigintType;
|
|
127
|
+
/** Maximum priority fee per gas. */
|
|
128
|
+
maxPriorityFeePerGas: bigintType;
|
|
129
|
+
/** Frame signature entries. */
|
|
130
|
+
signatures: readonly ([bigintType] extends [Hex.Hex] ? FrameSignature.Rpc : FrameSignature.FrameSignature)[];
|
|
131
|
+
}>;
|
|
132
|
+
/** An EIP-8141 RPC transaction. */
|
|
133
|
+
export type Eip8141Rpc<pending extends boolean = false> = Eip8141<pending, Hex.Hex, Hex.Hex, '0x6'>;
|
|
111
134
|
/** An legacy Transaction as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/transaction.yaml). */
|
|
112
135
|
export type Legacy<pending extends boolean = false, bigintType = bigint, numberType = number, type extends string = 'legacy'> = Compute<Omit<Base<type, pending, bigintType, numberType>, 'chainId' | 'v' | 'yParity'> & {
|
|
113
136
|
chainId?: numberType | undefined;
|
|
@@ -127,6 +150,7 @@ export declare const toRpcType: {
|
|
|
127
150
|
readonly eip1559: "0x2";
|
|
128
151
|
readonly eip4844: "0x3";
|
|
129
152
|
readonly eip7702: "0x4";
|
|
153
|
+
readonly eip8141: "0x6";
|
|
130
154
|
};
|
|
131
155
|
/** Type to RPC Type mapping. */
|
|
132
156
|
export type ToRpcType = typeof toRpcType & {
|
|
@@ -139,6 +163,7 @@ export declare const fromRpcType: {
|
|
|
139
163
|
readonly '0x2': "eip1559";
|
|
140
164
|
readonly '0x3': "eip4844";
|
|
141
165
|
readonly '0x4': "eip7702";
|
|
166
|
+
readonly '0x6': "eip8141";
|
|
142
167
|
};
|
|
143
168
|
/** RPC Type to Type mapping. */
|
|
144
169
|
export type FromRpcType = typeof fromRpcType & {
|
|
@@ -183,7 +208,7 @@ export declare namespace fromRpc {
|
|
|
183
208
|
type Options<pending extends boolean = false> = {
|
|
184
209
|
pending?: pending | boolean | undefined;
|
|
185
210
|
};
|
|
186
|
-
type ErrorType = Signature.extract.ErrorType | Errors.GlobalErrorType;
|
|
211
|
+
type ErrorType = Frame.fromRpc.ErrorType | FrameSignature.fromRpc.ErrorType | Signature.extract.ErrorType | Errors.GlobalErrorType;
|
|
187
212
|
}
|
|
188
213
|
/**
|
|
189
214
|
* Converts an {@link ox#Transaction.Transaction} to an {@link ox#Transaction.Rpc}.
|
|
@@ -225,6 +250,6 @@ export declare namespace toRpc {
|
|
|
225
250
|
type Options<pending extends boolean = false> = {
|
|
226
251
|
pending?: pending | boolean | undefined;
|
|
227
252
|
};
|
|
228
|
-
type ErrorType = Signature.extract.ErrorType | Errors.GlobalErrorType;
|
|
253
|
+
type ErrorType = Frame.toRpc.ErrorType | FrameSignature.toRpc.ErrorType | Signature.extract.ErrorType | Errors.GlobalErrorType;
|
|
229
254
|
}
|
|
230
255
|
//# sourceMappingURL=Transaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../core/Transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,UAAU,MAAM,iBAAiB,CAAA;AAClD,OAAO,KAAK,KAAK,OAAO,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACvE,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C;;GAEG;AACH,MAAM,MAAM,WAAW,CACrB,OAAO,SAAS,OAAO,GAAG,KAAK,EAC/B,UAAU,GAAG,MAAM,EACnB,UAAU,GAAG,MAAM,IACjB,YAAY,CACd,KAAK,CACD,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC,GACvC,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC,GACxC,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC,GACxC,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC,GACxC,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC,GACxC,CAAC,IAAI,GAAG;IAAE,IAAI,EAAE,GAAG,CAAC,GAAG,CA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O,CAAC,OAAO,CAAC,OAAO,CAAM,GACtC,WAAW,SAAS,GAAG,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG,IAAI,CAuDhE;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,KAAK,OAAO,CAAC,OAAO,SAAS,OAAO,GAAG,KAAK,IAAI;QAC9C,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAA;KACxC,CAAA;IAED,KAAK,SAAS,GACV,KAAK,CAAC,OAAO,CAAC,SAAS,GACvB,cAAc,CAAC,OAAO,CAAC,SAAS,GAChC,SAAS,CAAC,OAAO,CAAC,SAAS,GAC3B,MAAM,CAAC,eAAe,CAAA;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,KAAK,CAAC,OAAO,SAAS,OAAO,GAAG,KAAK,EACnD,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,EACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,GAChC,GAAG,CAAC,OAAO,CAAC,CAoDd;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,KAAK,OAAO,CAAC,OAAO,SAAS,OAAO,GAAG,KAAK,IAAI;QAC9C,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAA;KACxC,CAAA;IAED,KAAK,SAAS,GACV,KAAK,CAAC,KAAK,CAAC,SAAS,GACrB,cAAc,CAAC,KAAK,CAAC,SAAS,GAC9B,SAAS,CAAC,OAAO,CAAC,SAAS,GAC3B,MAAM,CAAC,eAAe,CAAA;CAC3B"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type * as Address from './Address.js';
|
|
2
2
|
import type * as Errors from './Errors.js';
|
|
3
|
+
import * as FrameReceipt from './FrameReceipt.js';
|
|
3
4
|
import * as Hex from './Hex.js';
|
|
4
5
|
import type { Compute } from './internal/types.js';
|
|
5
6
|
import * as Log from './Log.js';
|
|
6
7
|
/** An Transaction Receipt as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/receipt.yaml). */
|
|
7
|
-
export type TransactionReceipt<status = Status, type = Type, bigintType = bigint, numberType = number
|
|
8
|
+
export type TransactionReceipt<status = Status, type = Type, bigintType = bigint, numberType = number, frameReceipt = FrameReceipt.FrameReceipt<bigintType>> = Compute<{
|
|
8
9
|
/** The actual value per gas deducted from the sender's account for blob gas. Only specified for blob transactions as defined by EIP-4844. */
|
|
9
10
|
blobGasPrice?: bigintType | undefined;
|
|
10
11
|
/** The amount of blob gas used. Only specified for blob transactions as defined by EIP-4844. */
|
|
@@ -19,6 +20,8 @@ export type TransactionReceipt<status = Status, type = Type, bigintType = bigint
|
|
|
19
20
|
cumulativeGasUsed: bigintType;
|
|
20
21
|
/** Pre-London, it is equal to the transaction's gasPrice. Post-London, it is equal to the actual gas price paid for inclusion. */
|
|
21
22
|
effectiveGasPrice: bigintType;
|
|
23
|
+
/** Results for individual EIP-8141 frames. */
|
|
24
|
+
frameReceipts?: readonly frameReceipt[] | undefined;
|
|
22
25
|
/** Transaction sender */
|
|
23
26
|
from: Address.Address;
|
|
24
27
|
/** Gas used by this transaction */
|
|
@@ -27,6 +30,8 @@ export type TransactionReceipt<status = Status, type = Type, bigintType = bigint
|
|
|
27
30
|
logs: Log.Log<false, bigintType, numberType>[];
|
|
28
31
|
/** Logs bloom filter */
|
|
29
32
|
logsBloom: Hex.Hex;
|
|
33
|
+
/** Account paying for an EIP-8141 transaction. */
|
|
34
|
+
payer?: Address.Address | undefined;
|
|
30
35
|
/** The post-transaction state root. Only specified for transactions included before the Byzantium upgrade. */
|
|
31
36
|
root?: Hex.Hex | undefined;
|
|
32
37
|
/** `success` if this transaction was successful or `reverted` if it failed */
|
|
@@ -41,7 +46,7 @@ export type TransactionReceipt<status = Status, type = Type, bigintType = bigint
|
|
|
41
46
|
type: type;
|
|
42
47
|
}>;
|
|
43
48
|
/** An RPC Transaction Receipt as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/receipt.yaml). */
|
|
44
|
-
export type Rpc = TransactionReceipt<RpcStatus, RpcType, Hex.Hex, Hex.Hex>;
|
|
49
|
+
export type Rpc = TransactionReceipt<RpcStatus, RpcType, Hex.Hex, Hex.Hex, FrameReceipt.Rpc>;
|
|
45
50
|
/**
|
|
46
51
|
* Union of Transaction Receipt statuses.
|
|
47
52
|
*
|
|
@@ -64,9 +69,10 @@ export type RpcStatus = '0x0' | '0x1';
|
|
|
64
69
|
* - `eip2930`
|
|
65
70
|
* - `eip4844`
|
|
66
71
|
* - `eip7702`
|
|
72
|
+
* - `eip8141`
|
|
67
73
|
* - any other string
|
|
68
74
|
*/
|
|
69
|
-
export type Type = 'legacy' | 'eip1559' | 'eip2930' | 'eip4844' | 'eip7702' | (string & {});
|
|
75
|
+
export type Type = 'legacy' | 'eip1559' | 'eip2930' | 'eip4844' | 'eip7702' | 'eip8141' | (string & {});
|
|
70
76
|
/**
|
|
71
77
|
* Union of RPC Transaction Receipt types.
|
|
72
78
|
*
|
|
@@ -75,9 +81,10 @@ export type Type = 'legacy' | 'eip1559' | 'eip2930' | 'eip4844' | 'eip7702' | (s
|
|
|
75
81
|
* - `0x2`: EIP-2930 transactions
|
|
76
82
|
* - `0x3`: EIP-4844 transactions
|
|
77
83
|
* - `0x4`: EIP-7702 transactions
|
|
84
|
+
* - `0x6`: EIP-8141 transactions
|
|
78
85
|
* - any other string
|
|
79
86
|
*/
|
|
80
|
-
export type RpcType = '0x0' | '0x1' | '0x2' | '0x3' | '0x4' | (string & {});
|
|
87
|
+
export type RpcType = '0x0' | '0x1' | '0x2' | '0x3' | '0x4' | '0x6' | (string & {});
|
|
81
88
|
/** RPC status to status mapping. */
|
|
82
89
|
export declare const fromRpcStatus: {
|
|
83
90
|
readonly '0x0': "reverted";
|
|
@@ -95,6 +102,7 @@ export declare const fromRpcType: {
|
|
|
95
102
|
readonly '0x2': "eip1559";
|
|
96
103
|
readonly '0x3': "eip4844";
|
|
97
104
|
readonly '0x4': "eip7702";
|
|
105
|
+
readonly '0x6': "eip8141";
|
|
98
106
|
};
|
|
99
107
|
/** Type to RPC type mapping. */
|
|
100
108
|
export declare const toRpcType: {
|
|
@@ -103,6 +111,7 @@ export declare const toRpcType: {
|
|
|
103
111
|
readonly eip1559: "0x2";
|
|
104
112
|
readonly eip4844: "0x3";
|
|
105
113
|
readonly eip7702: "0x4";
|
|
114
|
+
readonly eip8141: "0x6";
|
|
106
115
|
};
|
|
107
116
|
/**
|
|
108
117
|
* Converts a {@link ox#TransactionReceipt.Rpc} to an {@link ox#TransactionReceipt.TransactionReceipt}.
|
|
@@ -203,7 +212,7 @@ export declare const toRpcType: {
|
|
|
203
212
|
*/
|
|
204
213
|
export declare function fromRpc<const receipt extends Rpc | null>(receipt: receipt | Rpc | null): receipt extends Rpc ? TransactionReceipt : null;
|
|
205
214
|
export declare namespace fromRpc {
|
|
206
|
-
type ErrorType = Log.fromRpc.ErrorType | Errors.GlobalErrorType;
|
|
215
|
+
type ErrorType = FrameReceipt.fromRpc.ErrorType | Log.fromRpc.ErrorType | Errors.GlobalErrorType;
|
|
207
216
|
}
|
|
208
217
|
/**
|
|
209
218
|
* Converts a {@link ox#TransactionReceipt.TransactionReceipt} to a {@link ox#TransactionReceipt.Rpc}.
|
|
@@ -260,6 +269,6 @@ export declare namespace fromRpc {
|
|
|
260
269
|
*/
|
|
261
270
|
export declare function toRpc(receipt: TransactionReceipt): Rpc;
|
|
262
271
|
export declare namespace toRpc {
|
|
263
|
-
type ErrorType = Hex.fromNumber.ErrorType | Errors.GlobalErrorType;
|
|
272
|
+
type ErrorType = FrameReceipt.toRpc.ErrorType | Hex.fromNumber.ErrorType | Errors.GlobalErrorType;
|
|
264
273
|
}
|
|
265
274
|
//# sourceMappingURL=TransactionReceipt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionReceipt.d.ts","sourceRoot":"","sources":["../../core/TransactionReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAE/B,6JAA6J;AAC7J,MAAM,MAAM,kBAAkB,CAC5B,MAAM,GAAG,MAAM,EACf,IAAI,GAAG,IAAI,EACX,UAAU,GAAG,MAAM,EACnB,UAAU,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"TransactionReceipt.d.ts","sourceRoot":"","sources":["../../core/TransactionReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAA;AACjD,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAE/B,6JAA6J;AAC7J,MAAM,MAAM,kBAAkB,CAC5B,MAAM,GAAG,MAAM,EACf,IAAI,GAAG,IAAI,EACX,UAAU,GAAG,MAAM,EACnB,UAAU,GAAG,MAAM,EACnB,YAAY,GAAG,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,IAClD,OAAO,CAAC;IACV,6IAA6I;IAC7I,YAAY,CAAC,EAAE,UAAU,GAAG,SAAS,CAAA;IACrC,gGAAgG;IAChG,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,CAAA;IACpC,gDAAgD;IAChD,SAAS,EAAE,GAAG,CAAC,GAAG,CAAA;IAClB,kDAAkD;IAClD,W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AC7B,KAAY,SAAS,GACjB,YAAY,CAAC,KAAK,CAAC,SAAS,GAC5B,GAAG,CAAC,UAAU,CAAC,SAAS,GACxB,MAAM,CAAC,eAAe,CAAA;CAC3B"}
|
|
@@ -2,10 +2,12 @@ import type * as AccessList from './AccessList.js';
|
|
|
2
2
|
import type * as Address from './Address.js';
|
|
3
3
|
import * as Authorization from './Authorization.js';
|
|
4
4
|
import type * as Errors from './Errors.js';
|
|
5
|
+
import * as Frame from './Frame.js';
|
|
6
|
+
import * as FrameSignature from './FrameSignature.js';
|
|
5
7
|
import * as Hex from './Hex.js';
|
|
6
8
|
import type { Compute } from './internal/types.js';
|
|
7
9
|
/** A Transaction Request that is generic to all transaction types, as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/4aca1d7a3e5aab24c8f6437131289ad386944eaa/src/schemas/transaction.yaml#L358-L423). */
|
|
8
|
-
export type TransactionRequest<bigintType = bigint, numberType = number, type extends string = string> = Compute<{
|
|
10
|
+
export type TransactionRequest<bigintType = bigint, numberType = number, type extends string = string, frame = Frame.Frame<bigintType>, signature = FrameSignature.FrameSignature> = Compute<{
|
|
9
11
|
/** EIP-2930 Access List. */
|
|
10
12
|
accessList?: AccessList.AccessList | undefined;
|
|
11
13
|
/** EIP-7702 Authorization List. */
|
|
@@ -20,6 +22,8 @@ export type TransactionRequest<bigintType = bigint, numberType = number, type ex
|
|
|
20
22
|
data?: Hex.Hex | undefined;
|
|
21
23
|
/** @alias `data` – added for TransactionEnvelope - Transaction compatibility. */
|
|
22
24
|
input?: Hex.Hex | undefined;
|
|
25
|
+
/** Frames in execution order for EIP-8141 transactions. */
|
|
26
|
+
frames?: readonly frame[] | undefined;
|
|
23
27
|
/** Sender of the transaction. */
|
|
24
28
|
from?: Address.Address | undefined;
|
|
25
29
|
/** Gas provided for transaction execution */
|
|
@@ -34,6 +38,8 @@ export type TransactionRequest<bigintType = bigint, numberType = number, type ex
|
|
|
34
38
|
maxPriorityFeePerGas?: bigintType | undefined;
|
|
35
39
|
/** Unique number identifying this transaction */
|
|
36
40
|
nonce?: bigintType | undefined;
|
|
41
|
+
/** Frame signature entries for EIP-8141 transactions. */
|
|
42
|
+
signatures?: readonly signature[] | undefined;
|
|
37
43
|
/** Transaction recipient */
|
|
38
44
|
to?: Address.Address | null | undefined;
|
|
39
45
|
/** Transaction type */
|
|
@@ -42,7 +48,7 @@ export type TransactionRequest<bigintType = bigint, numberType = number, type ex
|
|
|
42
48
|
value?: bigintType | undefined;
|
|
43
49
|
}>;
|
|
44
50
|
/** RPC representation of a {@link ox#TransactionRequest.TransactionRequest}. */
|
|
45
|
-
export type Rpc = TransactionRequest<Hex.Hex, Hex.Hex, string>;
|
|
51
|
+
export type Rpc = TransactionRequest<Hex.Hex, Hex.Hex, string, Frame.Rpc, FrameSignature.Rpc>;
|
|
46
52
|
/**
|
|
47
53
|
* Converts a {@link ox#TransactionRequest.Rpc} to a {@link ox#TransactionRequest.TransactionRequest}.
|
|
48
54
|
*
|
|
@@ -61,7 +67,7 @@ export type Rpc = TransactionRequest<Hex.Hex, Hex.Hex, string>;
|
|
|
61
67
|
*/
|
|
62
68
|
export declare function fromRpc(request: Rpc): TransactionRequest;
|
|
63
69
|
export declare namespace fromRpc {
|
|
64
|
-
type ErrorType = Authorization.fromRpcList.ErrorType | Hex.toNumber.ErrorType | Hex.toBigInt.ErrorType | Errors.GlobalErrorType;
|
|
70
|
+
type ErrorType = Frame.fromRpc.ErrorType | FrameSignature.fromRpc.ErrorType | Authorization.fromRpcList.ErrorType | Hex.toNumber.ErrorType | Hex.toBigInt.ErrorType | Errors.GlobalErrorType;
|
|
65
71
|
}
|
|
66
72
|
/**
|
|
67
73
|
* Converts a {@link ox#TransactionRequest.TransactionRequest} to a {@link ox#TransactionRequest.Rpc}.
|
|
@@ -104,6 +110,6 @@ export declare namespace fromRpc {
|
|
|
104
110
|
*/
|
|
105
111
|
export declare function toRpc(request: TransactionRequest): Rpc;
|
|
106
112
|
export declare namespace toRpc {
|
|
107
|
-
type ErrorType = Authorization.toRpcList.ErrorType | Hex.fromNumber.ErrorType | Errors.GlobalErrorType;
|
|
113
|
+
type ErrorType = Frame.toRpc.ErrorType | FrameSignature.toRpc.ErrorType | Authorization.toRpcList.ErrorType | Hex.fromNumber.ErrorType | Errors.GlobalErrorType;
|
|
108
114
|
}
|
|
109
115
|
//# sourceMappingURL=TransactionRequest.d.ts.map
|