@qntx/wallet-chains 0.12.0 → 0.14.0
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/README.md +13 -10
- package/dist/{account-ref-D2rW_qlI.mjs → account-ref-BFTeEyHt.mjs} +2 -2
- package/dist/{account-ref-D2rW_qlI.mjs.map → account-ref-BFTeEyHt.mjs.map} +1 -1
- package/dist/assemble-8GvNDony.mjs +405 -0
- package/dist/assemble-8GvNDony.mjs.map +1 -0
- package/dist/assemble-B3sO9Fvc.mjs +629 -0
- package/dist/assemble-B3sO9Fvc.mjs.map +1 -0
- package/dist/assemble-BdiPo0ZX.mjs +32 -0
- package/dist/assemble-BdiPo0ZX.mjs.map +1 -0
- package/dist/assets-sg2_Z3nZ.mjs +200 -0
- package/dist/assets-sg2_Z3nZ.mjs.map +1 -0
- package/dist/bitcoin-sign.d.mts +3 -0
- package/dist/bitcoin-sign.mjs +52 -18
- package/dist/bitcoin-sign.mjs.map +1 -1
- package/dist/bitcoin.d.mts +123 -7
- package/dist/bitcoin.mjs +162 -69
- package/dist/bitcoin.mjs.map +1 -1
- package/dist/evm-sign.d.mts +3 -1
- package/dist/evm-sign.mjs +25 -82
- package/dist/evm-sign.mjs.map +1 -1
- package/dist/evm.d.mts +252 -22
- package/dist/evm.mjs +2460 -448
- package/dist/evm.mjs.map +1 -1
- package/dist/families-BlgplKAJ.mjs +412 -0
- package/dist/families-BlgplKAJ.mjs.map +1 -0
- package/dist/index-CIRaHKpx.d.mts +941 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/networks.d.mts +29 -0
- package/dist/networks.mjs +245 -0
- package/dist/networks.mjs.map +1 -0
- package/dist/plan-wCnxHqRu.mjs +1311 -0
- package/dist/plan-wCnxHqRu.mjs.map +1 -0
- package/dist/solana-sign.d.mts +3 -0
- package/dist/solana-sign.mjs +23 -10
- package/dist/solana-sign.mjs.map +1 -1
- package/dist/solana.d.mts +136 -24
- package/dist/solana.mjs +1244 -63
- package/dist/solana.mjs.map +1 -1
- package/dist/src-CHB_z45M.mjs +387 -0
- package/dist/src-CHB_z45M.mjs.map +1 -0
- package/dist/tasks-7AFv3PQn.mjs +86 -0
- package/dist/tasks-7AFv3PQn.mjs.map +1 -0
- package/dist/token-call-DH22g8BL.mjs +914 -0
- package/dist/token-call-DH22g8BL.mjs.map +1 -0
- package/dist/tron-sign.d.mts +10 -0
- package/dist/tron-sign.mjs +36 -0
- package/dist/tron-sign.mjs.map +1 -0
- package/dist/tron.d.mts +328 -0
- package/dist/tron.mjs +1484 -0
- package/dist/tron.mjs.map +1 -0
- package/dist/typed-data-CE9h4U0F.d.mts +51 -0
- package/dist/typed-data-DRtKULsH.mjs +466 -0
- package/dist/typed-data-DRtKULsH.mjs.map +1 -0
- package/package.json +17 -10
- package/dist/index-DYwm4-Ec.d.mts +0 -256
- package/dist/message-ChhEZ0lx.mjs +0 -188
- package/dist/message-ChhEZ0lx.mjs.map +0 -1
- package/dist/src-8NZeEnrW.mjs +0 -67
- package/dist/src-8NZeEnrW.mjs.map +0 -1
- package/dist/typed-data-J5g2WemC.mjs +0 -227
- package/dist/typed-data-J5g2WemC.mjs.map +0 -1
package/dist/evm.d.mts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as SignRequest, G as Verifiability, _ as EvmTransaction, a as AssetAmount, i as Assembled, m as EcdsaTask, p as DisplayIntent, z as TaskKey } from "./index-CIRaHKpx.mjs";
|
|
2
|
+
import { a as parseTypedData, i as TypedDataInput, n as TYPED_FIELD_BUDGET, o as typedDataFields, r as TYPED_FIELD_CODE_POINTS, s as typedDataHashes } from "./typed-data-CE9h4U0F.mjs";
|
|
3
|
+
import "ox/AbiFunction";
|
|
4
|
+
import "ox/Hex";
|
|
5
|
+
import "ox/Authorization";
|
|
6
|
+
import "ox/Signature";
|
|
2
7
|
/** The native asset id in `AssetFlow` and simulated asset changes. */
|
|
3
8
|
export declare const EVM_NATIVE_ASSET = "native";
|
|
4
9
|
/** EIP-55 checksummed address, e.g. `0x52908400098527886E0F7030069857D2E4169EE7`. */
|
|
@@ -8,7 +13,7 @@ export declare function checksumEvmAddress(address: string): string;
|
|
|
8
13
|
export declare function evmAddressFromPublicKey(pubkey: Uint8Array): string;
|
|
9
14
|
export declare const isCanonicalHex: (value: string) => boolean;
|
|
10
15
|
export declare const canonicalHex: (value: bigint) => string;
|
|
11
|
-
/** The EIP-155 part of a CAIP-2 `network` string, e.g. `eip155:1` → 1. */
|
|
16
|
+
/** The EIP-155 part of a CAIP-2 `network` string, e.g. `eip155:1` → 1. Chain 0 does not exist. */
|
|
12
17
|
export declare const networkChainId: (network: string) => number;
|
|
13
18
|
/**
|
|
14
19
|
* Canonicalizes an EVM transaction: exact key sets per type, all required fields present, `0x`
|
|
@@ -24,44 +29,73 @@ type EvmToken = {
|
|
|
24
29
|
readonly symbol: string;
|
|
25
30
|
readonly decimals: number;
|
|
26
31
|
readonly name?: string;
|
|
32
|
+
/**
|
|
33
|
+
* "native-alias": an ERC-20 view that moves the chain's native balance — its calls are described
|
|
34
|
+
* like any listed token's, but it is never counted as a separate balance nor offered by
|
|
35
|
+
* discovery. "wrapped-native": a WETH9-style deposit/withdraw contract.
|
|
36
|
+
*/
|
|
37
|
+
readonly role?: "native-alias" | "wrapped-native";
|
|
27
38
|
};
|
|
28
39
|
type EvmTokenTable = Readonly<Record<string, Readonly<Record<string, EvmToken>>>>;
|
|
29
40
|
/** The built-in table. */
|
|
30
41
|
export declare const evmTokenTable: EvmTokenTable;
|
|
31
42
|
export declare const lookupEvmToken: (table: EvmTokenTable, chainId: number, address: string) => EvmToken | undefined;
|
|
43
|
+
export declare const MAX_UINT256: bigint;
|
|
32
44
|
/** The canonical Permit2 deployment (the same address on every supported chain). */
|
|
33
45
|
export declare const PERMIT2_ADDRESS = "0x000000000022D473030F116dDEE9F6B43aC78BA3";
|
|
34
46
|
/** What the signer can guarantee about this request (WD-065). */
|
|
35
|
-
export declare const verifiabilityEvm: (request: SignRequest) => Verifiability;
|
|
47
|
+
export declare const verifiabilityEvm: (request: SignRequest, signer: string) => Verifiability;
|
|
36
48
|
/**
|
|
37
|
-
* Decodes a normalized request into a DisplayIntent.
|
|
38
|
-
*
|
|
49
|
+
* Decodes a normalized request into a DisplayIntent. `signer` is the address of the signing
|
|
50
|
+
* account; the token table parameter is for tests.
|
|
39
51
|
*/
|
|
40
|
-
export declare const decodeEvm: (request: SignRequest, table?: EvmTokenTable) => DisplayIntent;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
52
|
+
export declare const decodeEvm: (request: SignRequest, signer: string, table?: EvmTokenTable) => DisplayIntent;
|
|
53
|
+
/** MetaMask Delegation Framework v1.3.0 DelegationManager — the same address on every chain. */
|
|
54
|
+
export declare const DELEGATION_MANAGER = "0xdb9B1e94B5b69Df7e401DDbedE43491141047dB3";
|
|
55
|
+
/** ERC-4337 EntryPoint v0.8 — the same address on every chain. */
|
|
56
|
+
export declare const ENTRY_POINT_V08 = "0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108";
|
|
57
|
+
/**
|
|
58
|
+
* Typed data whose domain targets an execution context over the signer's account turns a signature
|
|
59
|
+
* into execution rights: a Delegation the DelegationManager redeems, a PackedUserOperation the
|
|
60
|
+
* EntryPoint runs for a delegated 7702 account, or an action the account's own EIP-712 domain
|
|
61
|
+
* authorizes. A generic typed-data request must never produce such a signature.
|
|
62
|
+
*/
|
|
63
|
+
export declare const assertNoExecutionGrant: (domain: Record<string, unknown>, signer: string) => void;
|
|
45
64
|
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
65
|
+
* MetaMask Delegation Framework EIP7702StatelessDeleGator v1.3.0 — deterministic CREATE2, the same
|
|
66
|
+
* address on every chain that supports it.
|
|
48
67
|
*/
|
|
49
|
-
|
|
50
|
-
readonly
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
53
|
-
readonly message: Record<string, unknown>;
|
|
68
|
+
export declare const EVM_DELEGATOR: {
|
|
69
|
+
readonly address: "0x63c0c19a282a1B52b07dD5a65b58948A07DAE32B";
|
|
70
|
+
readonly name: "EIP7702StatelessDeleGator";
|
|
71
|
+
readonly version: "1.3.0";
|
|
54
72
|
};
|
|
55
|
-
|
|
56
|
-
|
|
73
|
+
/** The EIP-7702 designator byte prefix: `0xef0100 ‖ address` marks a delegated account's code. */
|
|
74
|
+
export declare const EVM_DELEGATION_PREFIX = "0xef0100";
|
|
75
|
+
/** ERC-7821 batch-default self-call payload for `execute` on the delegator. */
|
|
76
|
+
export declare const encodeBatchExecute: (calls: ReadonlyArray<{
|
|
77
|
+
readonly to: string;
|
|
78
|
+
readonly value: bigint;
|
|
79
|
+
readonly data: string;
|
|
80
|
+
}>) => string;
|
|
81
|
+
type Execution = {
|
|
82
|
+
readonly to: string;
|
|
83
|
+
readonly value: bigint;
|
|
84
|
+
readonly data: string;
|
|
57
85
|
};
|
|
58
|
-
/**
|
|
59
|
-
export declare const
|
|
86
|
+
/** Decodes an `execute` call; undefined unless the encoding is canonical batch-default mode. */
|
|
87
|
+
export declare const decodeBatchExecute: (data: string) => ReadonlyArray<Execution> | undefined;
|
|
60
88
|
/**
|
|
61
89
|
* Canonical MultiSendCallOnly deployments (safe-global/safe-deployments): 1.3.0, the 1.3.0 eip155
|
|
62
90
|
* variant and 1.4.1, lowercase for a checksum-insensitive compare.
|
|
63
91
|
*/
|
|
64
92
|
export declare const SAFE_MULTISEND_CALL_ONLY: ReadonlySet<string>;
|
|
93
|
+
/**
|
|
94
|
+
* The most items any side of an order may carry before the document is too large to show in full:
|
|
95
|
+
* Seaport offer/consideration, UniswapX outputs. Over the limit the decoder blinds the document
|
|
96
|
+
* with `typed-data-oversize` rather than let the prompt truncate what it signs.
|
|
97
|
+
*/
|
|
98
|
+
export declare const ORDER_ITEMS = 8;
|
|
65
99
|
/**
|
|
66
100
|
* The EIP-55 address that produced `result` for `request` — a `chain.sign` round-trip check
|
|
67
101
|
* (`{kind:"evm.transaction",signedTransaction}` | `{kind,signature}`).
|
|
@@ -72,10 +106,206 @@ export declare const recoverEvmSigner: (request: Extract<SignRequest, {
|
|
|
72
106
|
readonly signedTransaction?: Uint8Array;
|
|
73
107
|
readonly signature?: Uint8Array;
|
|
74
108
|
}) => string;
|
|
109
|
+
/**
|
|
110
|
+
* The 0x AllowanceHolder (`exec`) is deployed at the same address on every chain the taker Settler
|
|
111
|
+
* supports. `exec` grants the caller a one-time allowance of `amount` of `token` to `operator`,
|
|
112
|
+
* then calls `target` with `data` (forwarding `msg.value`).
|
|
113
|
+
*/
|
|
114
|
+
export declare const ALLOWANCE_HOLDER = "0x0000000000001fF3684f28c67538d4D072C22734";
|
|
115
|
+
/** Chains whose AllowanceHolder + Settler deployment this decoder recognises. */
|
|
116
|
+
export declare const ZEROX_CHAINS: ReadonlySet<number>;
|
|
117
|
+
/**
|
|
118
|
+
* Whether `address` is a `feature` 0x Settler on `chainId` — 2 taker, 3 MetaTxn (Deployer.sol's
|
|
119
|
+
* `ownerOf(tokenId)`). Settlers deploy as a CREATE2 shim whose CREATE child is the contract: `salt
|
|
120
|
+
* = (feature << 128) | (chainId << 64) | nonce`, `shim = CREATE2(deployer, salt, initHash)`,
|
|
121
|
+
* `settler = CREATE(shim, 1)`. Settler is redeployed roughly monthly, so nonces 1..256 leave
|
|
122
|
+
* decades of headroom; the loop runs 512 keccaks and is only reached for an AllowanceHolder `exec`
|
|
123
|
+
* or a Permit2 `slippageAndActions` witness. Feature 5 (bridge) is deliberately not matched.
|
|
124
|
+
*/
|
|
125
|
+
export declare const isZeroExSettler: (chainId: number, address: string, feature?: bigint) => boolean;
|
|
126
|
+
/**
|
|
127
|
+
* The `DisplayIntent` for a call to AllowanceHolder `exec` on a chain this decoder covers: a swap
|
|
128
|
+
* when the operator calls the taker Settler's own `execute` (operator == target, an on-chain
|
|
129
|
+
* Settler, a canonical inner call) and a generic one-time allowance otherwise. `undefined` when the
|
|
130
|
+
* call is not to AllowanceHolder or not `exec`.
|
|
131
|
+
*/
|
|
132
|
+
export declare const decodeZeroX: (chainId: number, call: {
|
|
133
|
+
readonly to: string | undefined;
|
|
134
|
+
readonly value: bigint;
|
|
135
|
+
readonly data: string;
|
|
136
|
+
}, table: EvmTokenTable) => (Pick<DisplayIntent, "summary" | "outflows" | "approvals" | "verifiability"> & {
|
|
137
|
+
readonly minimumReceived?: DisplayIntent["minimumReceived"];
|
|
138
|
+
}) | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* Across SpokePool proxies per origin chain — UUPS upgradeable, so the kernel recognises them by
|
|
141
|
+
* address only. Verified against the Across deployments registry on 2026-11-08.
|
|
142
|
+
*/
|
|
143
|
+
export declare const ACROSS_SPOKEPOOLS: Readonly<Record<number, string>>;
|
|
144
|
+
/** Each pool's `wrappedNativeToken()` — read on-chain on 2026-11-08. */
|
|
145
|
+
export declare const ACROSS_WRAPPED_NATIVE: Readonly<Record<number, string>>;
|
|
146
|
+
type AcrossBridge = {
|
|
147
|
+
readonly outflows: ReadonlyArray<{
|
|
148
|
+
readonly to: string;
|
|
149
|
+
readonly amount: AssetAmount;
|
|
150
|
+
readonly verified: boolean;
|
|
151
|
+
}>;
|
|
152
|
+
readonly minimumReceived: ReadonlyArray<{
|
|
153
|
+
readonly to: string;
|
|
154
|
+
readonly amount: AssetAmount;
|
|
155
|
+
readonly verified: boolean;
|
|
156
|
+
}>;
|
|
157
|
+
readonly bridge: {
|
|
158
|
+
readonly destinationNetwork: string;
|
|
159
|
+
readonly fillDeadline: number;
|
|
160
|
+
readonly refundTo: string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Decodes a `deposit`/`depositV3` to the chain's SpokePool — empty `message` only; bytes32 fields
|
|
165
|
+
* must carry left-padded EVM addresses (non-EVM destinations are not recognised). The deposit
|
|
166
|
+
* guarantees `outputAmount` on the destination chain or a refund to `depositor` after
|
|
167
|
+
* `fillDeadline`, so the intent's `minimumReceived` and `bridge` fields carry those terms.
|
|
168
|
+
*/
|
|
169
|
+
export declare const decodeAcross: (chainId: number, call: {
|
|
170
|
+
to: string | undefined;
|
|
171
|
+
data: string;
|
|
172
|
+
value: bigint;
|
|
173
|
+
}, table?: EvmTokenTable) => AcrossBridge | undefined;
|
|
174
|
+
/**
|
|
175
|
+
* CCTP TokenMessengerV2 `depositForBurnWithHook` deposits USDC into Hyperliquid via Circle's
|
|
176
|
+
* CctpForwarder on HyperEVM (destination domain 19). Only the Hyperliquid route is described — a
|
|
177
|
+
* call to the messenger on these chains that does not match it exactly is blind
|
|
178
|
+
* (`cctp-destination`): an unrecognised hook could send the burn anywhere.
|
|
179
|
+
*
|
|
180
|
+
* Verified on chain 2026-11-21 (code present).
|
|
181
|
+
*/
|
|
182
|
+
export declare const CCTP_MESSENGERS: Readonly<Record<number, string>>;
|
|
183
|
+
export declare const CCTP_USDC: Readonly<Record<number, string>>;
|
|
184
|
+
/** Circle's CctpForwarder on HyperEVM (999 mainnet, 998 testnet) — the mint recipient on domain 19. */
|
|
185
|
+
export declare const CCTP_FORWARDERS: Readonly<Record<number, string>>;
|
|
186
|
+
export declare const HYPERLIQUID_DOMAIN = 19;
|
|
187
|
+
/** The Lido contracts the kernel recognises by address — Ethereum mainnet only. */
|
|
188
|
+
export declare const LIDO_CHAIN = 1;
|
|
189
|
+
export declare const LIDO_STETH = "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84";
|
|
190
|
+
export declare const LIDO_WSTETH = "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0";
|
|
191
|
+
export declare const LIDO_QUEUE = "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1";
|
|
192
|
+
type HyperliquidNetwork = "Mainnet" | "Testnet";
|
|
193
|
+
type HyperliquidL1Order = {
|
|
194
|
+
readonly a: number;
|
|
195
|
+
readonly b: boolean;
|
|
196
|
+
readonly p: string;
|
|
197
|
+
readonly s: string;
|
|
198
|
+
readonly r: boolean;
|
|
199
|
+
readonly t: {
|
|
200
|
+
readonly limit: {
|
|
201
|
+
readonly tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket";
|
|
202
|
+
};
|
|
203
|
+
} | {
|
|
204
|
+
readonly trigger: {
|
|
205
|
+
readonly isMarket: boolean;
|
|
206
|
+
readonly triggerPx: string;
|
|
207
|
+
readonly tpsl: "tp" | "sl";
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
readonly c?: string;
|
|
211
|
+
};
|
|
212
|
+
/** The nine allow-listed L1 actions (research H2-T), in the table's order. */
|
|
213
|
+
type HyperliquidL1Action = {
|
|
214
|
+
readonly type: "order";
|
|
215
|
+
readonly orders: ReadonlyArray<HyperliquidL1Order>;
|
|
216
|
+
readonly grouping: "na" | "normalTpsl" | "positionTpsl";
|
|
217
|
+
readonly builder?: {
|
|
218
|
+
readonly b: string;
|
|
219
|
+
readonly f: number;
|
|
220
|
+
};
|
|
221
|
+
} | {
|
|
222
|
+
readonly type: "cancel";
|
|
223
|
+
readonly cancels: ReadonlyArray<{
|
|
224
|
+
readonly a: number;
|
|
225
|
+
readonly o: number;
|
|
226
|
+
}>;
|
|
227
|
+
readonly f?: true;
|
|
228
|
+
} | {
|
|
229
|
+
readonly type: "cancelByCloid";
|
|
230
|
+
readonly cancels: ReadonlyArray<{
|
|
231
|
+
readonly asset: number;
|
|
232
|
+
readonly cloid: string;
|
|
233
|
+
}>;
|
|
234
|
+
readonly f?: true;
|
|
235
|
+
} | {
|
|
236
|
+
readonly type: "modify";
|
|
237
|
+
readonly oid: number | string;
|
|
238
|
+
readonly order: HyperliquidL1Order;
|
|
239
|
+
readonly a?: true;
|
|
240
|
+
} | {
|
|
241
|
+
readonly type: "batchModify";
|
|
242
|
+
readonly modifies: ReadonlyArray<{
|
|
243
|
+
readonly oid: number | string;
|
|
244
|
+
readonly order: HyperliquidL1Order;
|
|
245
|
+
}>;
|
|
246
|
+
readonly a?: true;
|
|
247
|
+
} | {
|
|
248
|
+
readonly type: "updateLeverage";
|
|
249
|
+
readonly asset: number;
|
|
250
|
+
readonly isCross: boolean;
|
|
251
|
+
readonly leverage: number;
|
|
252
|
+
} | {
|
|
253
|
+
readonly type: "updateIsolatedMargin";
|
|
254
|
+
readonly asset: number;
|
|
255
|
+
readonly isBuy: boolean;
|
|
256
|
+
readonly ntli: number;
|
|
257
|
+
} | {
|
|
258
|
+
readonly type: "twapCancel";
|
|
259
|
+
readonly a: number;
|
|
260
|
+
readonly t: number;
|
|
261
|
+
};
|
|
262
|
+
type HyperliquidL1Params = {
|
|
263
|
+
readonly action: HyperliquidL1Action;
|
|
264
|
+
readonly nonce: number;
|
|
265
|
+
readonly vaultAddress?: string;
|
|
266
|
+
/** Wall-clock ms after which Hyperliquid rejects the action — at most 60 s after signing. */
|
|
267
|
+
readonly expiresAfter: number;
|
|
268
|
+
};
|
|
269
|
+
/** The phantom-agent typed-data JSON an L1 `params` signs, shared by kernel and host. */
|
|
270
|
+
export declare function hyperliquidL1Document(params: HyperliquidL1Params, network: HyperliquidNetwork): string;
|
|
271
|
+
/**
|
|
272
|
+
* The Fiat24 contracts (SR Saphirstein AG) the decoder recognises by address — Arbitrum One only.
|
|
273
|
+
* The pinned proxies come from the issuer's own list
|
|
274
|
+
* (https://docs.fiat24.com/developer/integration-guide/part-1-smart-contracts.md) re-read on chain
|
|
275
|
+
* at block 526439604: EIP-1967 implementation slots, symbol()/decimals() — Sourcify full matches,
|
|
276
|
+
* solc 0.8.18.
|
|
277
|
+
*/
|
|
278
|
+
export declare const FIAT24_CHAIN = 42161;
|
|
279
|
+
/** The exact personal-message text a `evm.fiat24-session` request signs. */
|
|
280
|
+
export declare const fiat24SessionMessage: (chainId: number, tokenId: string, deadline: number) => string;
|
|
281
|
+
/**
|
|
282
|
+
* The unsigned signing preimage of `tx`: the EIP-155 / EIP-2718 serialization whose keccak256 is
|
|
283
|
+
* `evmEnvelope(tx).payload`. An `eip7702` transaction has no unsigned preimage — its payload is the
|
|
284
|
+
* authorization's, produced by `evmAuthorization(tx)`.
|
|
285
|
+
*/
|
|
286
|
+
export declare const evmSigningPreimage: (tx: EvmTransaction) => Uint8Array;
|
|
287
|
+
/**
|
|
288
|
+
* `authorization` is the 65-byte `r‖s‖v` of the stage-1 signature; it is present only on the
|
|
289
|
+
* second-stage plan `assembleEvm` returns for an `eip7702` transaction.
|
|
290
|
+
*/
|
|
291
|
+
type EvmSignPlan = {
|
|
292
|
+
readonly kind: "evm.transaction";
|
|
293
|
+
readonly tx: EvmTransaction;
|
|
294
|
+
readonly authorization?: Uint8Array;
|
|
295
|
+
readonly tasks: readonly [EcdsaTask];
|
|
296
|
+
} | {
|
|
297
|
+
readonly kind: "evm.personal-message" | "evm.fiat24-session" | "evm.typed-data";
|
|
298
|
+
readonly tasks: readonly [EcdsaTask];
|
|
299
|
+
};
|
|
300
|
+
/** The plan of a normalized request; the task keeps the request kind so the kernel can wrap it. */
|
|
301
|
+
export declare const planEvm: (request: Extract<SignRequest, {
|
|
302
|
+
kind: "evm.transaction" | "evm.personal-message" | "evm.fiat24-session" | "evm.typed-data";
|
|
303
|
+
}>, key: TaskKey) => EvmSignPlan;
|
|
304
|
+
export declare const assembleEvm: (plan: EvmSignPlan, signatures: ReadonlyArray<Uint8Array>) => Assembled<Uint8Array, EvmSignPlan>;
|
|
75
305
|
/**
|
|
76
306
|
* Normalizes a SignRequest for the EVM family: exact key sets, chainId vs the CAIP-2 `network`,
|
|
77
307
|
* canonical quantities and EIP-55 addresses. Idempotent.
|
|
78
308
|
*/
|
|
79
309
|
export declare const normalizeEvm: (request: unknown) => SignRequest;
|
|
80
|
-
export type
|
|
310
|
+
export { type EvmSignPlan, type EvmToken, type EvmTokenTable, type HyperliquidL1Action, type HyperliquidL1Order, type HyperliquidL1Params, type HyperliquidNetwork, TYPED_FIELD_BUDGET, TYPED_FIELD_CODE_POINTS, type TypedDataInput, parseTypedData, typedDataFields, typedDataHashes };
|
|
81
311
|
//# sourceMappingURL=evm.d.mts.map
|