viem 2.56.9 → 2.57.1
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 +46 -0
- package/_cjs/actions/public/waitForTransactionReceipt.js +12 -1
- package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
- package/_cjs/chains/definitions/blockdag.js +23 -0
- package/_cjs/chains/definitions/blockdag.js.map +1 -0
- package/_cjs/chains/definitions/candyChain.js +29 -0
- package/_cjs/chains/definitions/candyChain.js.map +1 -0
- package/_cjs/chains/definitions/creditCoin3Devnet.js +6 -0
- package/_cjs/chains/definitions/creditCoin3Devnet.js.map +1 -1
- package/_cjs/chains/definitions/creditCoin3Mainnet.js +6 -0
- package/_cjs/chains/definitions/creditCoin3Mainnet.js.map +1 -1
- package/_cjs/chains/definitions/creditCoin3Testnet.js +6 -0
- package/_cjs/chains/definitions/creditCoin3Testnet.js.map +1 -1
- package/_cjs/chains/definitions/kortana.js +23 -0
- package/_cjs/chains/definitions/kortana.js.map +1 -0
- package/_cjs/chains/index.js +20 -14
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/clients/createClientResolver.js +45 -0
- package/_cjs/clients/createClientResolver.js.map +1 -0
- package/_cjs/errors/version.js +1 -1
- package/_cjs/index.js +13 -9
- package/_cjs/index.js.map +1 -1
- package/_cjs/op-stack/actions/getGame.js +1 -1
- package/_cjs/op-stack/actions/getGame.js.map +1 -1
- package/_cjs/op-stack/actions/getGames.js +1 -1
- package/_cjs/op-stack/actions/getGames.js.map +1 -1
- package/_cjs/op-stack/actions/getTimeToNextGame.js +1 -1
- package/_cjs/op-stack/actions/getTimeToNextGame.js.map +1 -1
- package/_cjs/op-stack/actions/getTimeToNextL2Output.js +1 -1
- package/_cjs/op-stack/actions/getTimeToNextL2Output.js.map +1 -1
- package/_cjs/tempo/Client.js +2 -10
- package/_cjs/tempo/Client.js.map +1 -1
- package/_cjs/tempo/ExecutionError.js +290 -0
- package/_cjs/tempo/ExecutionError.js.map +1 -0
- package/_cjs/tempo/Relay.js +88 -0
- package/_cjs/tempo/Relay.js.map +1 -0
- package/_cjs/tempo/Transaction.js.map +1 -1
- package/_cjs/tempo/Transport.js +21 -12
- package/_cjs/tempo/Transport.js.map +1 -1
- package/_cjs/tempo/chainConfig.js +3 -0
- package/_cjs/tempo/chainConfig.js.map +1 -1
- package/_cjs/tempo/index.js +3 -3
- package/_cjs/tempo/index.js.map +1 -1
- package/_cjs/tempo/internal/relay/cache.js +74 -0
- package/_cjs/tempo/internal/relay/cache.js.map +1 -0
- package/_cjs/tempo/internal/relay/deadline.js +35 -0
- package/_cjs/tempo/internal/relay/deadline.js.map +1 -0
- package/_cjs/tempo/internal/relay/error.js +102 -0
- package/_cjs/tempo/internal/relay/error.js.map +1 -0
- package/_cjs/tempo/internal/relay/feePayer.js +426 -0
- package/_cjs/tempo/internal/relay/feePayer.js.map +1 -0
- package/_cjs/tempo/internal/relay/feeToken.js +143 -0
- package/_cjs/tempo/internal/relay/feeToken.js.map +1 -0
- package/_cjs/tempo/{Multisig.js → internal/relay/multisig.js} +132 -122
- package/_cjs/tempo/internal/relay/multisig.js.map +1 -0
- package/_cjs/tempo/internal/relay/plugin.js +13 -0
- package/_cjs/tempo/internal/relay/plugin.js.map +1 -0
- package/_cjs/tempo/internal/relay/preflight.js +58 -0
- package/_cjs/tempo/internal/relay/preflight.js.map +1 -0
- package/_cjs/tempo/internal/relay/request.js +319 -0
- package/_cjs/tempo/internal/relay/request.js.map +1 -0
- package/_cjs/tempo/internal/relay/simulate.js +267 -0
- package/_cjs/tempo/internal/relay/simulate.js.map +1 -0
- package/_cjs/tempo/internal/relay/utils.js +174 -0
- package/_cjs/tempo/internal/relay/utils.js.map +1 -0
- package/_cjs/tempo/internal/relay/virtualAddress.js +78 -0
- package/_cjs/tempo/internal/relay/virtualAddress.js.map +1 -0
- package/_cjs/tempo/internal/relay.js +139 -0
- package/_cjs/tempo/internal/relay.js.map +1 -0
- package/_cjs/tempo/multisig/Config.js +0 -2
- package/_cjs/tempo/multisig/Config.js.map +1 -1
- package/_cjs/tempo/multisig/Operation.js +1 -2
- package/_cjs/tempo/multisig/Operation.js.map +1 -1
- package/_cjs/tokens/definitions/ousd.js +16 -0
- package/_cjs/tokens/definitions/ousd.js.map +1 -0
- package/_cjs/tokens/index.js +3 -1
- package/_cjs/tokens/index.js.map +1 -1
- package/_cjs/tokens/sets.js +3 -0
- package/_cjs/tokens/sets.js.map +1 -1
- package/_cjs/utils/siwe/parseSiweMessage.js +3 -3
- package/_cjs/utils/siwe/parseSiweMessage.js.map +1 -1
- package/_esm/actions/public/waitForTransactionReceipt.js +15 -1
- package/_esm/actions/public/waitForTransactionReceipt.js.map +1 -1
- package/_esm/chains/definitions/blockdag.js +20 -0
- package/_esm/chains/definitions/blockdag.js.map +1 -0
- package/_esm/chains/definitions/candyChain.js +26 -0
- package/_esm/chains/definitions/candyChain.js.map +1 -0
- package/_esm/chains/definitions/creditCoin3Devnet.js +6 -0
- package/_esm/chains/definitions/creditCoin3Devnet.js.map +1 -1
- package/_esm/chains/definitions/creditCoin3Mainnet.js +6 -0
- package/_esm/chains/definitions/creditCoin3Mainnet.js.map +1 -1
- package/_esm/chains/definitions/creditCoin3Testnet.js +6 -0
- package/_esm/chains/definitions/creditCoin3Testnet.js.map +1 -1
- package/_esm/chains/definitions/kortana.js +20 -0
- package/_esm/chains/definitions/kortana.js.map +1 -0
- package/_esm/chains/index.js +3 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/clients/createClientResolver.js +64 -0
- package/_esm/clients/createClientResolver.js.map +1 -0
- package/_esm/errors/version.js +1 -1
- package/_esm/index.js +2 -0
- package/_esm/index.js.map +1 -1
- package/_esm/op-stack/actions/getGame.js +1 -1
- package/_esm/op-stack/actions/getGame.js.map +1 -1
- package/_esm/op-stack/actions/getGames.js +1 -1
- package/_esm/op-stack/actions/getGames.js.map +1 -1
- package/_esm/op-stack/actions/getTimeToNextGame.js +2 -2
- package/_esm/op-stack/actions/getTimeToNextGame.js.map +1 -1
- package/_esm/op-stack/actions/getTimeToNextL2Output.js +2 -2
- package/_esm/op-stack/actions/getTimeToNextL2Output.js.map +1 -1
- package/_esm/tempo/Client.js +8 -14
- package/_esm/tempo/Client.js.map +1 -1
- package/_esm/tempo/ExecutionError.js +306 -0
- package/_esm/tempo/ExecutionError.js.map +1 -0
- package/_esm/tempo/Relay.js +170 -0
- package/_esm/tempo/Relay.js.map +1 -0
- package/_esm/tempo/Transaction.js.map +1 -1
- package/_esm/tempo/Transport.js +21 -46
- package/_esm/tempo/Transport.js.map +1 -1
- package/_esm/tempo/chainConfig.js +4 -0
- package/_esm/tempo/chainConfig.js.map +1 -1
- package/_esm/tempo/index.js +8 -3
- package/_esm/tempo/index.js.map +1 -1
- package/_esm/tempo/internal/relay/cache.js +72 -0
- package/_esm/tempo/internal/relay/cache.js.map +1 -0
- package/_esm/tempo/internal/relay/deadline.js +34 -0
- package/_esm/tempo/internal/relay/deadline.js.map +1 -0
- package/_esm/tempo/internal/relay/error.js +101 -0
- package/_esm/tempo/internal/relay/error.js.map +1 -0
- package/_esm/tempo/internal/relay/feePayer.js +442 -0
- package/_esm/tempo/internal/relay/feePayer.js.map +1 -0
- package/_esm/tempo/internal/relay/feeToken.js +143 -0
- package/_esm/tempo/internal/relay/feeToken.js.map +1 -0
- package/_esm/tempo/{Multisig.js → internal/relay/multisig.js} +133 -129
- package/_esm/tempo/internal/relay/multisig.js.map +1 -0
- package/_esm/tempo/internal/relay/plugin.js +10 -0
- package/_esm/tempo/internal/relay/plugin.js.map +1 -0
- package/_esm/tempo/internal/relay/preflight.js +57 -0
- package/_esm/tempo/internal/relay/preflight.js.map +1 -0
- package/_esm/tempo/internal/relay/request.js +321 -0
- package/_esm/tempo/internal/relay/request.js.map +1 -0
- package/_esm/tempo/internal/relay/simulate.js +277 -0
- package/_esm/tempo/internal/relay/simulate.js.map +1 -0
- package/_esm/tempo/internal/relay/utils.js +174 -0
- package/_esm/tempo/internal/relay/utils.js.map +1 -0
- package/_esm/tempo/internal/relay/virtualAddress.js +73 -0
- package/_esm/tempo/internal/relay/virtualAddress.js.map +1 -0
- package/_esm/tempo/internal/relay.js +138 -0
- package/_esm/tempo/internal/relay.js.map +1 -0
- package/_esm/tempo/multisig/Config.js +2 -1
- package/_esm/tempo/multisig/Config.js.map +1 -1
- package/_esm/tempo/multisig/Operation.js +1 -1
- package/_esm/tempo/multisig/Operation.js.map +1 -1
- package/_esm/tokens/definitions/ousd.js +25 -0
- package/_esm/tokens/definitions/ousd.js.map +1 -0
- package/_esm/tokens/index.js +1 -0
- package/_esm/tokens/index.js.map +1 -1
- package/_esm/tokens/sets.js +3 -0
- package/_esm/tokens/sets.js.map +1 -1
- package/_esm/utils/siwe/parseSiweMessage.js +3 -3
- package/_esm/utils/siwe/parseSiweMessage.js.map +1 -1
- package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
- package/_types/chains/definitions/blockdag.d.ts +51 -0
- package/_types/chains/definitions/blockdag.d.ts.map +1 -0
- package/_types/chains/definitions/candyChain.d.ts +48 -0
- package/_types/chains/definitions/candyChain.d.ts.map +1 -0
- package/_types/chains/definitions/creditCoin3Devnet.d.ts +6 -9
- package/_types/chains/definitions/creditCoin3Devnet.d.ts.map +1 -1
- package/_types/chains/definitions/creditCoin3Mainnet.d.ts +6 -9
- package/_types/chains/definitions/creditCoin3Mainnet.d.ts.map +1 -1
- package/_types/chains/definitions/creditCoin3Testnet.d.ts +6 -9
- package/_types/chains/definitions/creditCoin3Testnet.d.ts.map +1 -1
- package/_types/chains/definitions/kortana.d.ts +51 -0
- package/_types/chains/definitions/kortana.d.ts.map +1 -0
- package/_types/chains/index.d.ts +3 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/clients/createClientResolver.d.ts +76 -0
- package/_types/clients/createClientResolver.d.ts.map +1 -0
- package/_types/errors/version.d.ts +1 -1
- package/_types/index.d.ts +2 -0
- package/_types/index.d.ts.map +1 -1
- package/_types/op-stack/actions/getGame.d.ts.map +1 -1
- package/_types/tempo/Capabilities.d.ts +7 -28
- package/_types/tempo/Capabilities.d.ts.map +1 -1
- package/_types/tempo/Client.d.ts +6 -15
- package/_types/tempo/Client.d.ts.map +1 -1
- package/_types/tempo/ExecutionError.d.ts +79 -0
- package/_types/tempo/ExecutionError.d.ts.map +1 -0
- package/_types/tempo/Relay.d.ts +302 -0
- package/_types/tempo/Relay.d.ts.map +1 -0
- package/_types/tempo/Transaction.d.ts +2 -1
- package/_types/tempo/Transaction.d.ts.map +1 -1
- package/_types/tempo/Transport.d.ts +15 -29
- package/_types/tempo/Transport.d.ts.map +1 -1
- package/_types/tempo/chainConfig.d.ts.map +1 -1
- package/_types/tempo/index.d.ts +8 -3
- package/_types/tempo/index.d.ts.map +1 -1
- package/_types/tempo/internal/relay/cache.d.ts +9 -0
- package/_types/tempo/internal/relay/cache.d.ts.map +1 -0
- package/_types/tempo/internal/relay/deadline.d.ts +4 -0
- package/_types/tempo/internal/relay/deadline.d.ts.map +1 -0
- package/_types/tempo/internal/relay/error.d.ts +47 -0
- package/_types/tempo/internal/relay/error.d.ts.map +1 -0
- package/_types/tempo/internal/relay/feePayer.d.ts +70 -0
- package/_types/tempo/internal/relay/feePayer.d.ts.map +1 -0
- package/_types/tempo/internal/relay/feeToken.d.ts +38 -0
- package/_types/tempo/internal/relay/feeToken.d.ts.map +1 -0
- package/_types/tempo/internal/relay/multisig.d.ts +4 -0
- package/_types/tempo/internal/relay/multisig.d.ts.map +1 -0
- package/_types/tempo/internal/relay/plugin.d.ts +5 -0
- package/_types/tempo/internal/relay/plugin.d.ts.map +1 -0
- package/_types/tempo/internal/relay/preflight.d.ts +17 -0
- package/_types/tempo/internal/relay/preflight.d.ts.map +1 -0
- package/_types/tempo/internal/relay/request.d.ts +16 -0
- package/_types/tempo/internal/relay/request.d.ts.map +1 -0
- package/_types/tempo/internal/relay/simulate.d.ts +59 -0
- package/_types/tempo/internal/relay/simulate.d.ts.map +1 -0
- package/_types/tempo/internal/relay/utils.d.ts +294 -0
- package/_types/tempo/internal/relay/utils.d.ts.map +1 -0
- package/_types/tempo/internal/relay/virtualAddress.d.ts +9 -0
- package/_types/tempo/internal/relay/virtualAddress.d.ts.map +1 -0
- package/_types/tempo/internal/relay.d.ts +4 -0
- package/_types/tempo/internal/relay.d.ts.map +1 -0
- package/_types/tempo/multisig/Config.d.ts +0 -13
- package/_types/tempo/multisig/Config.d.ts.map +1 -1
- package/_types/tempo/multisig/Operation.d.ts +0 -5
- package/_types/tempo/multisig/Operation.d.ts.map +1 -1
- package/_types/tokens/definitions/ousd.d.ts +25 -0
- package/_types/tokens/definitions/ousd.d.ts.map +1 -0
- package/_types/tokens/index.d.ts +1 -0
- package/_types/tokens/index.d.ts.map +1 -1
- package/_types/tokens/sets.d.ts +20 -0
- package/_types/tokens/sets.d.ts.map +1 -1
- package/_types/utils/siwe/parseSiweMessage.d.ts.map +1 -1
- package/actions/public/waitForTransactionReceipt.ts +16 -2
- package/chains/definitions/blockdag.ts +20 -0
- package/chains/definitions/candyChain.ts +26 -0
- package/chains/definitions/creditCoin3Devnet.ts +6 -0
- package/chains/definitions/creditCoin3Mainnet.ts +6 -0
- package/chains/definitions/creditCoin3Testnet.ts +6 -0
- package/chains/definitions/kortana.ts +20 -0
- package/chains/index.ts +3 -0
- package/clients/createClientResolver.ts +191 -0
- package/errors/version.ts +1 -1
- package/index.ts +6 -0
- package/op-stack/actions/getGame.ts +3 -1
- package/op-stack/actions/getGames.ts +1 -1
- package/op-stack/actions/getTimeToNextGame.ts +2 -2
- package/op-stack/actions/getTimeToNextL2Output.ts +2 -2
- package/package.json +1 -1
- package/tempo/Capabilities.ts +7 -29
- package/tempo/Client.ts +8 -38
- package/tempo/ExecutionError.ts +418 -0
- package/tempo/Relay.ts +428 -0
- package/tempo/Transaction.ts +2 -1
- package/tempo/Transport.ts +69 -60
- package/tempo/chainConfig.ts +4 -0
- package/tempo/index.ts +7 -3
- package/tempo/internal/relay/cache.ts +82 -0
- package/tempo/internal/relay/deadline.ts +45 -0
- package/tempo/internal/relay/error.ts +128 -0
- package/tempo/internal/relay/feePayer.ts +692 -0
- package/tempo/internal/relay/feeToken.ts +190 -0
- package/tempo/{Multisig.ts → internal/relay/multisig.ts} +162 -193
- package/tempo/internal/relay/plugin.ts +13 -0
- package/tempo/internal/relay/preflight.ts +81 -0
- package/tempo/internal/relay/request.ts +391 -0
- package/tempo/internal/relay/simulate.ts +367 -0
- package/tempo/internal/relay/utils.ts +202 -0
- package/tempo/internal/relay/virtualAddress.ts +95 -0
- package/tempo/internal/relay.ts +158 -0
- package/tempo/multisig/Config.ts +3 -2
- package/tempo/multisig/Operation.ts +1 -1
- package/tokens/definitions/ousd.ts +25 -0
- package/tokens/index.ts +1 -0
- package/tokens/sets.ts +3 -0
- package/utils/siwe/parseSiweMessage.ts +21 -13
- package/_cjs/tempo/Multisig.js.map +0 -1
- package/_esm/tempo/Multisig.js.map +0 -1
- package/_types/tempo/Multisig.d.ts +0 -37
- package/_types/tempo/Multisig.d.ts.map +0 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { Address } from 'abitype';
|
|
2
|
+
import { type Hex } from 'ox';
|
|
3
|
+
import type { LocalAccount } from '../../../accounts/types.js';
|
|
4
|
+
import type * as Relay from '../../Relay.js';
|
|
5
|
+
import * as Transaction from '../../Transaction.js';
|
|
6
|
+
export declare function create(options: Relay.feePayer.Options): Relay.Plugin;
|
|
7
|
+
/** Checks a prepared transaction with its chain ID. Rejected fills fall back to sender payment; rejected raw submissions return a refusal. */
|
|
8
|
+
export type Validate = (request: Transaction.TransactionRequest & {
|
|
9
|
+
chainId?: number | Hex.Hex | undefined;
|
|
10
|
+
}) => Validation | Promise<Validation>;
|
|
11
|
+
/** A sponsorship verdict: `true` sponsors; `false` or a named reason refuses. */
|
|
12
|
+
export type Validation = boolean | 'billing_past_due' | 'billing_required' | 'fee_token_unsupported' | 'spend_limit_exceeded' | 'tx_fee_limit_exceeded';
|
|
13
|
+
/** Details recorded for a sponsored transaction. */
|
|
14
|
+
export type SponsorshipDetails = {
|
|
15
|
+
/** Whether Tempo subsidizes the sponsorship instead of charging the API-key organization. */
|
|
16
|
+
subsidized: boolean;
|
|
17
|
+
};
|
|
18
|
+
/** Signs a filled transaction as the fee payer. */
|
|
19
|
+
export declare function sign(options: sign.Options): Promise<{
|
|
20
|
+
transaction: {
|
|
21
|
+
feePayerSignature: {
|
|
22
|
+
r: bigint;
|
|
23
|
+
s: bigint;
|
|
24
|
+
yParity: number;
|
|
25
|
+
};
|
|
26
|
+
from: `0x${string}` | undefined;
|
|
27
|
+
};
|
|
28
|
+
sponsorshipDetails?: SponsorshipDetails;
|
|
29
|
+
}>;
|
|
30
|
+
export declare namespace sign {
|
|
31
|
+
type Options = {
|
|
32
|
+
/** Abort signal for the enclosing fill. */
|
|
33
|
+
signal?: AbortSignal | undefined;
|
|
34
|
+
/** Account used as the fee payer. */
|
|
35
|
+
account: LocalAccount;
|
|
36
|
+
/** Called once the fee payer has signed the fill. Awaited: a throw aborts the fill. */
|
|
37
|
+
onSponsored?: ((event: SponsoredEvent) => SponsorshipDetails | Promise<SponsorshipDetails | void> | void) | undefined;
|
|
38
|
+
/** Filled transaction to sign. */
|
|
39
|
+
transaction: Record<string, unknown>;
|
|
40
|
+
/** Sender address from the original request. */
|
|
41
|
+
sender?: Address | undefined;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/** Facts of one sponsorship commitment, emitted at fee-payer signing time. */
|
|
45
|
+
export type SponsoredEvent = {
|
|
46
|
+
/** Chain the sponsored transaction targets. */
|
|
47
|
+
chainId: number;
|
|
48
|
+
/** Fee token the sponsorship resolved, when known. */
|
|
49
|
+
feeToken?: Address | undefined;
|
|
50
|
+
/** Method that triggered sponsorship: a fill (intent) or a raw submission. */
|
|
51
|
+
method: 'eth_fillTransaction' | 'eth_signRawTransaction' | 'eth_sendRawTransaction' | 'eth_sendRawTransactionSync';
|
|
52
|
+
/** Transaction sender. */
|
|
53
|
+
sender: Address;
|
|
54
|
+
/** Fee-payer sign payload: a stable identity for the sponsored envelope. */
|
|
55
|
+
signPayload: Hex.Hex;
|
|
56
|
+
/** Serialized sponsored transaction (sender-unsigned for fill intents). */
|
|
57
|
+
transaction: Hex.Hex;
|
|
58
|
+
/** Transaction hash (keccak256 of the signed envelope); absent for fill intents, whose senders have not signed yet. */
|
|
59
|
+
transactionHash?: Hex.Hex | undefined;
|
|
60
|
+
};
|
|
61
|
+
export declare namespace ExternalFeePayerUrl {
|
|
62
|
+
type Options = {
|
|
63
|
+
/** Whether to allow non-HTTPS or local/private external fee payer URLs. */
|
|
64
|
+
allowUnsafe?: boolean | undefined;
|
|
65
|
+
};
|
|
66
|
+
/** Normalizes external fee-payer relay URLs before forwarding fill payloads. */
|
|
67
|
+
export function normalize(value: string, options?: Options): string;
|
|
68
|
+
export {};
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=feePayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feePayer.d.ts","sourceRoot":"","sources":["../../../../tempo/internal/relay/feePayer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAQ,KAAK,GAAG,EAA0B,MAAM,IAAI,CAAA;AAE3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAG9D,OAAO,KAAK,KAAK,KAAK,MAAM,gBAAgB,CAAA;AAC5C,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAA;AAInD,wBAAgB,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,OAAO,GAAG,KAAK,CAAC,MAAM,CAuNpE;AAED,8IAA8I;AAC9I,MAAM,MAAM,QAAQ,GAAG,CACrB,OAAO,EAAE,WAAW,CAAC,kBAAkB,GAAG;IACxC,OAAO,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,GAAG,GAAG,S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,2EAA2E;IAC3E,WAAW,EAAE,GAAG,CAAC,GAAG,CAAA;IACpB,uHAAuH;IACvH,eAAe,CAAC,EAAE,GAAG,CAAC,GAAG,GAAG,SAAS,CAAA;CACtC,CAAA;AAED,yBAAiB,mBAAmB,CAAC;IACnC,KAAK,OAAO,GAAG;QACb,2EAA2E;QAC3E,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAClC,CAAA;IAED,gFAAgF;IAChF,MAAM,UAAU,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,OAAY,GAAG,MAAM,CA4BtE;;CA0GF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Address } from 'abitype';
|
|
2
|
+
import type { Client } from '../../../clients/createClient.js';
|
|
3
|
+
import type * as Relay from '../../Relay.js';
|
|
4
|
+
import * as Store from './cache.js';
|
|
5
|
+
export declare function create(): Relay.Plugin;
|
|
6
|
+
export declare function getDefaultTokens(chainId: number): Promise<readonly Address[]>;
|
|
7
|
+
/** Resolves a funded fee-token candidate. @internal */
|
|
8
|
+
export declare function resolveFeeToken(client: Client, options: resolveFeeToken.Options): Promise<{
|
|
9
|
+
feeToken: `0x${string}` | undefined;
|
|
10
|
+
virtualAddresses: Record<`0x${string}`, `0x${string}` | null> | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export declare namespace resolveFeeToken {
|
|
13
|
+
type Options = {
|
|
14
|
+
minimumBalance?: bigint | undefined;
|
|
15
|
+
exclude?: Address | undefined;
|
|
16
|
+
feeToken?: Address | undefined;
|
|
17
|
+
account?: Address | undefined;
|
|
18
|
+
tokens?: readonly Address[] | undefined;
|
|
19
|
+
targets?: readonly Address[] | undefined;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare function resolveTokenMetadata(client: Client, options: resolveTokenMetadata.Options): Promise<{
|
|
23
|
+
decimals: number;
|
|
24
|
+
symbol: string;
|
|
25
|
+
name: string;
|
|
26
|
+
}>;
|
|
27
|
+
export declare namespace resolveTokenMetadata {
|
|
28
|
+
type Options = {
|
|
29
|
+
token: Address;
|
|
30
|
+
tokenMetadata?: Record<Address, {
|
|
31
|
+
name: string;
|
|
32
|
+
symbol: string;
|
|
33
|
+
currency: string;
|
|
34
|
+
}> | undefined;
|
|
35
|
+
store?: Store.Store | undefined;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=feeToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feeToken.d.ts","sourceRoot":"","sources":["../../../../tempo/internal/relay/feeToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AAG9D,OAAO,KAAK,KAAK,KAAK,MAAM,gBAAgB,CAAA;AAC5C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAKnC,wBAAgB,MAAM,IAAI,KAAK,CAAC,MAAM,CA2DrC;AAED,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,SAAS,OAAO,EAAE,CAAC,CAK7B;AAED,uDAAuD;AACvD,wBAAsB,eAAe,CACnC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,CAAC,OAAO;;;GAkCjC;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,KAAK,OAAO,GAAG;QACb,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;QACnC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;QAC7B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;QAC9B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;QAC7B,MAAM,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,CAAA;QACvC,OAAO,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,CAAA;KACzC,CAAA;CACF;AAyBD,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,oBAAoB,CAAC,OAAO;;;;GAuBtC;AAED,MAAM,CAAC,OAAO,WAAW,oBAAoB,CAAC;IAC5C,KAAK,OAAO,GAAG;QACb,KAAK,EAAE,OAAO,CAAA;QACd,aAAa,CAAC,EACV,MAAM,CAAC,OAAO,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,CAAC,GACnE,SAAS,CAAA;QACb,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,GAAG,SAAS,CAAA;KAChC,CAAA;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multisig.d.ts","sourceRoot":"","sources":["../../../../tempo/internal/relay/multisig.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,KAAK,KAAK,MAAM,gBAAgB,CAAA;AAQ5C,uEAAuE;AACvE,wBAAgB,MAAM,CACpB,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,OAAO,GAC9B,KAAK,CAAC,QAAQ,CAAC,UAAU,CA0K3B"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type * as Relay from '../../Relay.js';
|
|
2
|
+
/** Registers the built-in multisig plugin for transport capability detection. */
|
|
3
|
+
export declare function multisig(plugin: Relay.Plugin): Relay.multisig.ReturnType;
|
|
4
|
+
export declare function isMultisig(plugin: Relay.Plugin): boolean;
|
|
5
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../tempo/internal/relay/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,gBAAgB,CAAA;AAI5C,iFAAiF;AACjF,wBAAgB,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAGxE;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,GAAG,OAAO,CAExD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Address } from 'abitype';
|
|
2
|
+
import type { Client } from '../../../clients/createClient.js';
|
|
3
|
+
/** Reads fee preferences, balances, and virtual masters without dependent RPC requests. */
|
|
4
|
+
export declare function read(client: Client, options: {
|
|
5
|
+
account?: Address | undefined;
|
|
6
|
+
tokens?: readonly Address[] | undefined;
|
|
7
|
+
targets?: readonly Address[] | undefined;
|
|
8
|
+
}): Promise<{
|
|
9
|
+
preferredToken: `0x${string}`;
|
|
10
|
+
preferredBalance: bigint;
|
|
11
|
+
balances: {
|
|
12
|
+
address: `0x${string}`;
|
|
13
|
+
balance: bigint;
|
|
14
|
+
}[];
|
|
15
|
+
virtualAddresses: Record<`0x${string}`, `0x${string}` | null> | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
//# sourceMappingURL=preflight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preflight.d.ts","sourceRoot":"","sources":["../../../../tempo/internal/relay/preflight.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAGtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AAO9D,2FAA2F;AAC3F,wBAAsB,IAAI,CACxB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE;IACP,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,CAAA;IACvC,OAAO,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,CAAA;CACzC;;;;;;;;GA2DF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Client } from '../../../clients/createClient.js';
|
|
2
|
+
import type * as Relay from '../../Relay.js';
|
|
3
|
+
export type Result = {
|
|
4
|
+
tx: Record<string, unknown>;
|
|
5
|
+
capabilities?: Record<string, unknown> | undefined;
|
|
6
|
+
sponsor?: unknown;
|
|
7
|
+
};
|
|
8
|
+
/** Compose middleware and execute post-fill hooks once for the selected result. */
|
|
9
|
+
export declare function compose(downstream: Relay.handleRequest.Handler, options?: Relay.handleRequest.Options, resolveClient?: ((chainId: number) => {
|
|
10
|
+
chain: {
|
|
11
|
+
id: number;
|
|
12
|
+
};
|
|
13
|
+
}) | undefined): Relay.handleRequest.Handler;
|
|
14
|
+
/** Normalize a downstream fill without discarding capabilities added by other plugins. */
|
|
15
|
+
export declare function fill(client: Client, transaction: Record<string, unknown>, options?: Relay.handleRequest.RequestOptions): Promise<Result>;
|
|
16
|
+
//# sourceMappingURL=request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../tempo/internal/relay/request.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,kCAAkC,CAAA;AAE5E,OAAO,KAAK,KAAK,KAAK,MAAM,gBAAgB,CAAA;AAa5C,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;IAClD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,mFAAmF;AACnF,wBAAgB,OAAO,CACrB,UAAU,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,EACvC,OAAO,GAAE,KAAK,CAAC,aAAa,CAAC,OAAY,EACzC,aAAa,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK;IAAE,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC,GAAG,SAAS,GAC3E,KAAK,CAAC,aAAa,CAAC,OAAO,CAkU7B;AAWD,0FAA0F;AAC1F,wBAAsB,IAAI,CACxB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,OAAO,GAAE,KAAK,CAAC,aAAa,CAAC,cAAmB,GAC/C,OAAO,CAAC,MAAM,CAAC,CAsBjB"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { Address } from 'abitype';
|
|
2
|
+
import type { Client } from '../../../clients/createClient.js';
|
|
3
|
+
import type { Call } from '../../../types/calls.js';
|
|
4
|
+
import type { Log } from '../../../types/log.js';
|
|
5
|
+
import * as Actions from '../../actions/index.js';
|
|
6
|
+
import type * as Capabilities from '../../Capabilities.js';
|
|
7
|
+
import type * as Relay from '../../Relay.js';
|
|
8
|
+
import type * as Store from './cache.js';
|
|
9
|
+
export declare function create(options: Relay.simulate.Options): Relay.Plugin;
|
|
10
|
+
export declare function simulateAndParseDiffs(client: Client, options: simulateAndParseDiffs.Options): Promise<{
|
|
11
|
+
balanceDiffs: {
|
|
12
|
+
[x: string]: Capabilities.BalanceDiff[];
|
|
13
|
+
} | undefined;
|
|
14
|
+
fee: {
|
|
15
|
+
amount: `0x${string}`;
|
|
16
|
+
decimals: number;
|
|
17
|
+
formatted: string;
|
|
18
|
+
symbol: string;
|
|
19
|
+
} | undefined;
|
|
20
|
+
tokenMetadata: Actions.simulate.TokenMetadata;
|
|
21
|
+
} | {
|
|
22
|
+
balanceDiffs: undefined;
|
|
23
|
+
fee: {
|
|
24
|
+
amount: `0x${string}`;
|
|
25
|
+
decimals: number;
|
|
26
|
+
formatted: string;
|
|
27
|
+
symbol: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
tokenMetadata: undefined;
|
|
30
|
+
}>;
|
|
31
|
+
export declare namespace simulateAndParseDiffs {
|
|
32
|
+
type Options = {
|
|
33
|
+
account?: Address | undefined;
|
|
34
|
+
calls: readonly Call[];
|
|
35
|
+
feeToken?: Address | undefined;
|
|
36
|
+
gas?: bigint | undefined;
|
|
37
|
+
store?: Store.Store | undefined;
|
|
38
|
+
signal?: AbortSignal | undefined;
|
|
39
|
+
maxFeePerGas?: bigint | undefined;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
/** Builds a complete preview within the metadata lookup budget. @internal */
|
|
43
|
+
export declare function buildBalanceDiffs(client: Client, options: buildBalanceDiffs.Options): Promise<{
|
|
44
|
+
[x: string]: Capabilities.BalanceDiff[];
|
|
45
|
+
} | undefined>;
|
|
46
|
+
export declare namespace buildBalanceDiffs {
|
|
47
|
+
type Options = {
|
|
48
|
+
account: Address;
|
|
49
|
+
store?: Store.Store | undefined;
|
|
50
|
+
signal?: AbortSignal | undefined;
|
|
51
|
+
logs: Log[];
|
|
52
|
+
tokenMetadata: Record<Address, {
|
|
53
|
+
name: string;
|
|
54
|
+
symbol: string;
|
|
55
|
+
currency: string;
|
|
56
|
+
}>;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=simulate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulate.d.ts","sourceRoot":"","sources":["../../../../tempo/internal/relay/simulate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AAE9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAIhD,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAA;AACjD,OAAO,KAAK,KAAK,YAAY,MAAM,uBAAuB,CAAA;AAC1D,OAAO,KAAK,KAAK,KAAK,MAAM,gBAAgB,CAAA;AAC5C,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAA;AAMxC,wBAAgB,MAAM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+
import { Address, Hex, RpcResponse } from 'ox';
|
|
2
|
+
import { Transaction as core_Transaction, KeyAuthorization } from 'ox/tempo';
|
|
3
|
+
import type { Client } from '../../../clients/createClient.js';
|
|
4
|
+
export declare function resolveChainId(value: unknown): number | undefined;
|
|
5
|
+
export declare function formatFillTransactionRequest(client: Client, value: Record<string, unknown>): Record<string, unknown>;
|
|
6
|
+
export declare function normalizeFillTransactionRequest(tx: Record<string, unknown>): Record<string, unknown> & {
|
|
7
|
+
calls: unknown[];
|
|
8
|
+
};
|
|
9
|
+
/** Returns whether a raw transaction uses a Tempo sender or fee-payer wire prefix. */
|
|
10
|
+
export declare function isSerializedTempoTransaction(value: unknown): value is `0x76${string}` | `0x78${string}`;
|
|
11
|
+
export declare function normalizeTempoTransaction(value: Record<string, unknown> | undefined): core_Transaction.Transaction<false, bigint, number>;
|
|
12
|
+
/** Preserves the nonce domain when serializing filled Tempo transactions. */
|
|
13
|
+
export declare function formatTempoTransaction(transaction: core_Transaction.Transaction): {
|
|
14
|
+
nonceKey?: `0x${string}` | undefined;
|
|
15
|
+
blockHash: `0x${string}`;
|
|
16
|
+
blockNumber: `0x${string}`;
|
|
17
|
+
blockTimestamp?: `0x${string}` | undefined;
|
|
18
|
+
chainId: `0x${string}`;
|
|
19
|
+
data?: `0x${string}` | undefined;
|
|
20
|
+
from: Address.Address;
|
|
21
|
+
hash: Hex.Hex;
|
|
22
|
+
input: Hex.Hex;
|
|
23
|
+
gas: `0x${string}`;
|
|
24
|
+
nonce: `0x${string}`;
|
|
25
|
+
to: Address.Address | null;
|
|
26
|
+
transactionIndex: `0x${string}`;
|
|
27
|
+
type: `0x${string}`;
|
|
28
|
+
value: `0x${string}`;
|
|
29
|
+
r: `0x${string}`;
|
|
30
|
+
s: `0x${string}`;
|
|
31
|
+
yParity: `0x${string}`;
|
|
32
|
+
v?: `0x${string}` | undefined;
|
|
33
|
+
gasPrice?: undefined;
|
|
34
|
+
maxFeePerBlobGas?: undefined;
|
|
35
|
+
maxFeePerGas?: undefined;
|
|
36
|
+
maxPriorityFeePerGas?: undefined;
|
|
37
|
+
blobVersionedHashes?: undefined;
|
|
38
|
+
accessList?: undefined;
|
|
39
|
+
authorizationList?: undefined;
|
|
40
|
+
signature?: undefined;
|
|
41
|
+
calls?: undefined;
|
|
42
|
+
feePayerSignature?: undefined;
|
|
43
|
+
keyAuthorization?: undefined;
|
|
44
|
+
feeToken?: undefined;
|
|
45
|
+
validAfter?: undefined;
|
|
46
|
+
validBefore?: undefined;
|
|
47
|
+
aaAuthorizationList?: undefined;
|
|
48
|
+
} | {
|
|
49
|
+
nonceKey?: `0x${string}` | undefined;
|
|
50
|
+
type: "0x76";
|
|
51
|
+
gasPrice?: `0x${string}` | undefined;
|
|
52
|
+
maxFeePerGas: `0x${string}`;
|
|
53
|
+
maxPriorityFeePerGas: `0x${string}`;
|
|
54
|
+
data?: `0x${string}` | undefined;
|
|
55
|
+
from: Address.Address;
|
|
56
|
+
gas: `0x${string}`;
|
|
57
|
+
nonce: `0x${string}`;
|
|
58
|
+
accessList: readonly {
|
|
59
|
+
address: Address.Address;
|
|
60
|
+
storageKeys: readonly Hex.Hex[];
|
|
61
|
+
}[];
|
|
62
|
+
blockHash: `0x${string}`;
|
|
63
|
+
blockNumber: `0x${string}`;
|
|
64
|
+
blockTimestamp?: `0x${string}` | undefined;
|
|
65
|
+
hash: Hex.Hex;
|
|
66
|
+
transactionIndex: `0x${string}`;
|
|
67
|
+
chainId: `0x${string}`;
|
|
68
|
+
feePayerSignature?: {
|
|
69
|
+
r: `0x${string}`;
|
|
70
|
+
s: `0x${string}`;
|
|
71
|
+
yParity: `0x${string}`;
|
|
72
|
+
v?: `0x${string}` | undefined;
|
|
73
|
+
} | undefined;
|
|
74
|
+
feeToken: Address.Address;
|
|
75
|
+
validAfter?: `0x${string}` | undefined;
|
|
76
|
+
validBefore?: `0x${string}` | undefined;
|
|
77
|
+
aaAuthorizationList?: import("ox/tempo/AuthorizationTempo").ListRpc | undefined;
|
|
78
|
+
calls: readonly {
|
|
79
|
+
input?: Hex.Hex | undefined;
|
|
80
|
+
to?: Hex.Hex | undefined;
|
|
81
|
+
value?: Hex.Hex | undefined;
|
|
82
|
+
}[] | undefined;
|
|
83
|
+
keyAuthorization?: KeyAuthorization.Rpc | undefined;
|
|
84
|
+
signature: import("ox/tempo/SignatureEnvelope").SignatureEnvelopeRpc;
|
|
85
|
+
r?: undefined;
|
|
86
|
+
s?: undefined;
|
|
87
|
+
v?: undefined;
|
|
88
|
+
yParity?: undefined;
|
|
89
|
+
maxFeePerBlobGas?: undefined;
|
|
90
|
+
to?: undefined;
|
|
91
|
+
value?: undefined;
|
|
92
|
+
blobVersionedHashes?: undefined;
|
|
93
|
+
authorizationList?: undefined;
|
|
94
|
+
input?: undefined;
|
|
95
|
+
} | {
|
|
96
|
+
nonceKey?: `0x${string}` | undefined;
|
|
97
|
+
type: "0x0";
|
|
98
|
+
r: `0x${string}`;
|
|
99
|
+
s: `0x${string}`;
|
|
100
|
+
to: Address.Address | null;
|
|
101
|
+
data?: `0x${string}` | undefined;
|
|
102
|
+
from: Address.Address;
|
|
103
|
+
gas: `0x${string}`;
|
|
104
|
+
nonce: `0x${string}`;
|
|
105
|
+
value: `0x${string}`;
|
|
106
|
+
blockHash: `0x${string}`;
|
|
107
|
+
blockNumber: `0x${string}`;
|
|
108
|
+
blockTimestamp?: `0x${string}` | undefined;
|
|
109
|
+
hash: Hex.Hex;
|
|
110
|
+
input: Hex.Hex;
|
|
111
|
+
transactionIndex: `0x${string}`;
|
|
112
|
+
chainId?: `0x${string}` | undefined;
|
|
113
|
+
gasPrice: `0x${string}`;
|
|
114
|
+
v: `0x${string}`;
|
|
115
|
+
yParity?: `0x${string}` | undefined;
|
|
116
|
+
maxFeePerBlobGas?: undefined;
|
|
117
|
+
maxFeePerGas?: undefined;
|
|
118
|
+
maxPriorityFeePerGas?: undefined;
|
|
119
|
+
blobVersionedHashes?: undefined;
|
|
120
|
+
accessList?: undefined;
|
|
121
|
+
authorizationList?: undefined;
|
|
122
|
+
signature?: undefined;
|
|
123
|
+
calls?: undefined;
|
|
124
|
+
feePayerSignature?: undefined;
|
|
125
|
+
keyAuthorization?: undefined;
|
|
126
|
+
feeToken?: undefined;
|
|
127
|
+
validAfter?: undefined;
|
|
128
|
+
validBefore?: undefined;
|
|
129
|
+
aaAuthorizationList?: undefined;
|
|
130
|
+
} | {
|
|
131
|
+
nonceKey?: `0x${string}` | undefined;
|
|
132
|
+
blockHash: `0x${string}`;
|
|
133
|
+
blockNumber: `0x${string}`;
|
|
134
|
+
blockTimestamp?: `0x${string}` | undefined;
|
|
135
|
+
chainId: `0x${string}`;
|
|
136
|
+
data?: `0x${string}` | undefined;
|
|
137
|
+
from: Address.Address;
|
|
138
|
+
hash: Hex.Hex;
|
|
139
|
+
input: Hex.Hex;
|
|
140
|
+
gas: `0x${string}`;
|
|
141
|
+
nonce: `0x${string}`;
|
|
142
|
+
to: Address.Address | null;
|
|
143
|
+
transactionIndex: `0x${string}`;
|
|
144
|
+
type: "0x2";
|
|
145
|
+
value: `0x${string}`;
|
|
146
|
+
r: `0x${string}`;
|
|
147
|
+
s: `0x${string}`;
|
|
148
|
+
yParity: `0x${string}`;
|
|
149
|
+
v?: `0x${string}` | undefined;
|
|
150
|
+
accessList: readonly {
|
|
151
|
+
address: Address.Address;
|
|
152
|
+
storageKeys: readonly Hex.Hex[];
|
|
153
|
+
}[];
|
|
154
|
+
gasPrice?: `0x${string}` | undefined;
|
|
155
|
+
maxFeePerGas: `0x${string}`;
|
|
156
|
+
maxPriorityFeePerGas: `0x${string}`;
|
|
157
|
+
maxFeePerBlobGas?: undefined;
|
|
158
|
+
blobVersionedHashes?: undefined;
|
|
159
|
+
authorizationList?: undefined;
|
|
160
|
+
signature?: undefined;
|
|
161
|
+
calls?: undefined;
|
|
162
|
+
feePayerSignature?: undefined;
|
|
163
|
+
keyAuthorization?: undefined;
|
|
164
|
+
feeToken?: undefined;
|
|
165
|
+
validAfter?: undefined;
|
|
166
|
+
validBefore?: undefined;
|
|
167
|
+
aaAuthorizationList?: undefined;
|
|
168
|
+
} | {
|
|
169
|
+
nonceKey?: `0x${string}` | undefined;
|
|
170
|
+
blockHash: `0x${string}`;
|
|
171
|
+
blockNumber: `0x${string}`;
|
|
172
|
+
blockTimestamp?: `0x${string}` | undefined;
|
|
173
|
+
chainId: `0x${string}`;
|
|
174
|
+
data?: `0x${string}` | undefined;
|
|
175
|
+
from: Address.Address;
|
|
176
|
+
hash: Hex.Hex;
|
|
177
|
+
input: Hex.Hex;
|
|
178
|
+
gas: `0x${string}`;
|
|
179
|
+
nonce: `0x${string}`;
|
|
180
|
+
to: Address.Address | null;
|
|
181
|
+
transactionIndex: `0x${string}`;
|
|
182
|
+
type: "0x1";
|
|
183
|
+
value: `0x${string}`;
|
|
184
|
+
r: `0x${string}`;
|
|
185
|
+
s: `0x${string}`;
|
|
186
|
+
yParity: `0x${string}`;
|
|
187
|
+
v?: `0x${string}` | undefined;
|
|
188
|
+
accessList: readonly {
|
|
189
|
+
address: Address.Address;
|
|
190
|
+
storageKeys: readonly Hex.Hex[];
|
|
191
|
+
}[];
|
|
192
|
+
gasPrice: `0x${string}`;
|
|
193
|
+
maxFeePerBlobGas?: undefined;
|
|
194
|
+
maxFeePerGas?: undefined;
|
|
195
|
+
maxPriorityFeePerGas?: undefined;
|
|
196
|
+
blobVersionedHashes?: undefined;
|
|
197
|
+
authorizationList?: undefined;
|
|
198
|
+
signature?: undefined;
|
|
199
|
+
calls?: undefined;
|
|
200
|
+
feePayerSignature?: undefined;
|
|
201
|
+
keyAuthorization?: undefined;
|
|
202
|
+
feeToken?: undefined;
|
|
203
|
+
validAfter?: undefined;
|
|
204
|
+
validBefore?: undefined;
|
|
205
|
+
aaAuthorizationList?: undefined;
|
|
206
|
+
} | {
|
|
207
|
+
nonceKey?: `0x${string}` | undefined;
|
|
208
|
+
blockHash: `0x${string}`;
|
|
209
|
+
blockNumber: `0x${string}`;
|
|
210
|
+
blockTimestamp?: `0x${string}` | undefined;
|
|
211
|
+
chainId: `0x${string}`;
|
|
212
|
+
data?: `0x${string}` | undefined;
|
|
213
|
+
from: Address.Address;
|
|
214
|
+
hash: Hex.Hex;
|
|
215
|
+
input: Hex.Hex;
|
|
216
|
+
gas: `0x${string}`;
|
|
217
|
+
nonce: `0x${string}`;
|
|
218
|
+
to: Address.Address | null;
|
|
219
|
+
transactionIndex: `0x${string}`;
|
|
220
|
+
type: "0x3";
|
|
221
|
+
value: `0x${string}`;
|
|
222
|
+
r: `0x${string}`;
|
|
223
|
+
s: `0x${string}`;
|
|
224
|
+
yParity: `0x${string}`;
|
|
225
|
+
v?: `0x${string}` | undefined;
|
|
226
|
+
accessList: readonly {
|
|
227
|
+
address: Address.Address;
|
|
228
|
+
storageKeys: readonly Hex.Hex[];
|
|
229
|
+
}[];
|
|
230
|
+
blobVersionedHashes: readonly Hex.Hex[];
|
|
231
|
+
maxFeePerBlobGas: `0x${string}`;
|
|
232
|
+
maxFeePerGas: `0x${string}`;
|
|
233
|
+
maxPriorityFeePerGas: `0x${string}`;
|
|
234
|
+
gasPrice?: undefined;
|
|
235
|
+
authorizationList?: undefined;
|
|
236
|
+
signature?: undefined;
|
|
237
|
+
calls?: undefined;
|
|
238
|
+
feePayerSignature?: undefined;
|
|
239
|
+
keyAuthorization?: undefined;
|
|
240
|
+
feeToken?: undefined;
|
|
241
|
+
validAfter?: undefined;
|
|
242
|
+
validBefore?: undefined;
|
|
243
|
+
aaAuthorizationList?: undefined;
|
|
244
|
+
} | {
|
|
245
|
+
nonceKey?: `0x${string}` | undefined;
|
|
246
|
+
blockHash: `0x${string}`;
|
|
247
|
+
blockNumber: `0x${string}`;
|
|
248
|
+
blockTimestamp?: `0x${string}` | undefined;
|
|
249
|
+
chainId: `0x${string}`;
|
|
250
|
+
data?: `0x${string}` | undefined;
|
|
251
|
+
from: Address.Address;
|
|
252
|
+
hash: Hex.Hex;
|
|
253
|
+
input: Hex.Hex;
|
|
254
|
+
gas: `0x${string}`;
|
|
255
|
+
nonce: `0x${string}`;
|
|
256
|
+
to: Address.Address | null;
|
|
257
|
+
transactionIndex: `0x${string}`;
|
|
258
|
+
type: "0x4";
|
|
259
|
+
value: `0x${string}`;
|
|
260
|
+
r: `0x${string}`;
|
|
261
|
+
s: `0x${string}`;
|
|
262
|
+
yParity: `0x${string}`;
|
|
263
|
+
v?: `0x${string}` | undefined;
|
|
264
|
+
accessList: readonly {
|
|
265
|
+
address: Address.Address;
|
|
266
|
+
storageKeys: readonly Hex.Hex[];
|
|
267
|
+
}[];
|
|
268
|
+
authorizationList: readonly {
|
|
269
|
+
address: Address.Address;
|
|
270
|
+
chainId: `0x${string}`;
|
|
271
|
+
nonce: `0x${string}`;
|
|
272
|
+
r: `0x${string}`;
|
|
273
|
+
s: `0x${string}`;
|
|
274
|
+
yParity: `0x${string}`;
|
|
275
|
+
}[];
|
|
276
|
+
maxFeePerGas: `0x${string}`;
|
|
277
|
+
maxPriorityFeePerGas: `0x${string}`;
|
|
278
|
+
gasPrice?: undefined;
|
|
279
|
+
maxFeePerBlobGas?: undefined;
|
|
280
|
+
blobVersionedHashes?: undefined;
|
|
281
|
+
signature?: undefined;
|
|
282
|
+
calls?: undefined;
|
|
283
|
+
feePayerSignature?: undefined;
|
|
284
|
+
keyAuthorization?: undefined;
|
|
285
|
+
feeToken?: undefined;
|
|
286
|
+
validAfter?: undefined;
|
|
287
|
+
validBefore?: undefined;
|
|
288
|
+
aaAuthorizationList?: undefined;
|
|
289
|
+
};
|
|
290
|
+
/** Preserves upstream RPC errors and the relay's expired-transaction contract. */
|
|
291
|
+
export declare function toRpcError(error: unknown): RpcResponse.BaseError;
|
|
292
|
+
/** Preserves envelope inputs omitted by the node, including calls and chain ID. Filled fields take precedence; legacy calls are normalized separately. */
|
|
293
|
+
export declare function mergeCallsFromRequest(resultTx: Record<string, unknown>, request: Record<string, unknown>): Record<string, unknown>;
|
|
294
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBtB;AAED,kFAAkF;AAClF,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,CAAC,SAAS,CAsChE;AAED,0JAA0J;AAC1J,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA2BzB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Address } from 'abitype';
|
|
2
|
+
import type { Client } from '../../../clients/createClient.js';
|
|
3
|
+
import type { Call } from '../../../types/calls.js';
|
|
4
|
+
export declare function resolveVirtualAddresses(client: Client, options: {
|
|
5
|
+
calls: readonly Call[];
|
|
6
|
+
}): Promise<Record<Address, Address | null> | undefined>;
|
|
7
|
+
export declare function getVirtualAddressTargets(calls: readonly Call[]): readonly Address[];
|
|
8
|
+
export declare function extractCalls(transaction: Record<string, unknown>): readonly Call[];
|
|
9
|
+
//# sourceMappingURL=virtualAddress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"virtualAddress.d.ts","sourceRoot":"","sources":["../../../../tempo/internal/relay/virtualAddress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAGtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAA;AAMnD,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,MAAM,EACd,OAAO,EAAE;IAAE,KAAK,EAAE,SAAS,IAAI,EAAE,CAAA;CAAE,GAClC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC,CAMtD;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,SAAS,IAAI,EAAE,GACrB,SAAS,OAAO,EAAE,CAepB;AAsCD,wBAAgB,YAAY,CAC1B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,SAAS,IAAI,EAAE,CAgBjB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type * as Relay from '../Relay.js';
|
|
2
|
+
/** Adapts an RPC handler to the Fetch API without changing its method results. */
|
|
3
|
+
export declare function fetch(request: Request, handler: Relay.handleRequest.Handler, options?: Relay.handleRequest.RequestOptions): Promise<Response>;
|
|
4
|
+
//# sourceMappingURL=relay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relay.d.ts","sourceRoot":"","sources":["../../../tempo/internal/relay.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAA;AAEzC,kFAAkF;AAClF,wBAAsB,KAAK,CACzB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,EACpC,OAAO,GAAE,KAAK,CAAC,aAAa,CAAC,cAAmB,GAC/C,OAAO,CAAC,QAAQ,CAAC,CAmJnB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as Address from 'ox/Address';
|
|
2
2
|
import type * as Hex from 'ox/Hex';
|
|
3
3
|
import { MultisigConfig } from 'ox/tempo';
|
|
4
|
-
import { BaseError } from '../../errors/base.js';
|
|
5
4
|
import type * as Store from '../Store.js';
|
|
6
5
|
/** Reads a cached multisig config. */
|
|
7
6
|
export declare function read(store: Store.Store, options: read.Options): Promise<MultisigConfig.Config | null>;
|
|
@@ -27,16 +26,4 @@ export declare namespace write {
|
|
|
27
26
|
config: MultisigConfig.Config;
|
|
28
27
|
};
|
|
29
28
|
}
|
|
30
|
-
/** Thrown when a stored multisig config is malformed or mismatched. */
|
|
31
|
-
export declare class InvalidStoreValueError extends BaseError {
|
|
32
|
-
/** Creates an invalid store value error. */
|
|
33
|
-
constructor(options?: InvalidStoreValueError.Options);
|
|
34
|
-
}
|
|
35
|
-
export declare namespace InvalidStoreValueError {
|
|
36
|
-
/** Error construction options. */
|
|
37
|
-
type Options = {
|
|
38
|
-
/** Underlying error. */
|
|
39
|
-
cause?: unknown | undefined;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
29
|
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../tempo/multisig/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,YAAY,CAAA;AAErC,OAAO,KAAK,KAAK,GAAG,MAAM,QAAQ,CAAA;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../tempo/multisig/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,YAAY,CAAA;AAErC,OAAO,KAAK,KAAK,GAAG,MAAM,QAAQ,CAAA;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAGzC,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAA;AAQzC,sCAAsC;AACtC,wBAAsB,IAAI,CACxB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,OAAO,EAAE,IAAI,CAAC,OAAO,GACpB,OAAO,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAOvC;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,mCAAmC;IACnC,KAAY,OAAO,GAAG;QACpB,gCAAgC;QAChC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAA;QACxB,0CAA0C;QAC1C,UAAU,EAAE,GAAG,CAAC,GAAG,CAAA;KACpB,CAAA;CACF;AAED,0CAA0C;AAC1C,wBAAsB,KAAK,CACzB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,OAAO,EAAE,KAAK,CAAC,OAAO,GACrB,OAAO,CAAC,IAAI,CAAC,CAYf;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,oCAAoC;IACpC,KAAY,OAAO,GAAG;QACpB,gCAAgC;QAChC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAA;QACxB,yCAAyC;QACzC,UAAU,EAAE,GAAG,CAAC,GAAG,CAAA;QACnB,uBAAuB;QACvB,MAAM,EAAE,cAAc,CAAC,MAAM,CAAA;KAC9B,CAAA;CACF"}
|
|
@@ -24,9 +24,4 @@ export declare namespace InvalidStoreValueError {
|
|
|
24
24
|
cause?: unknown | undefined;
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
/** Thrown when a multisig operation cannot be updated due to contention. */
|
|
28
|
-
export declare class StoreConflictError extends BaseError {
|
|
29
|
-
/** Creates a store conflict error. */
|
|
30
|
-
constructor();
|
|
31
|
-
}
|
|
32
27
|
//# sourceMappingURL=Operation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operation.d.ts","sourceRoot":"","sources":["../../../tempo/multisig/Operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,QAAQ,CAAA;AAElC,OAAO,EAAE,iBAAiB,EAAqB,eAAe,EAAE,MAAM,UAAU,CAAA;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAA;AAWzC,4CAA4C;AAC5C,wBAAsB,IAAI,CACxB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,IAAI,EAAE,GAAG,CAAC,GAAG,GACZ,OAAO,CAAC,iBAAiB,CAAC,SAAS,GAAG,IAAI,CAAC,CAO7C;AAED,+CAA+C;AAC/C,wBAAsB,MAAM,CAC1B,KAAK,EAAE,KAAK,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ACtC,OAAO,CAAC,IAAI,CAAC,CAkBf;AA4DD,2EAA2E;AAC3E,qBAAa,sBAAuB,SAAQ,SAAS;IACnD,4CAA4C;gBAChC,OAAO,GAAE,sBAAsB,CAAC,OAAY;CAMzD;AAED,MAAM,CAAC,OAAO,WAAW,sBAAsB,CAAC;IAC9C,kCAAkC;IAClC,KAAY,OAAO,GAAG;QACpB,wBAAwB;QACxB,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAC5B,CAAA;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineToken } from '../defineToken.js';
|
|
2
|
+
/**
|
|
3
|
+
* [Open USD](https://joinopenstandard.com/) token, with canonical contract
|
|
4
|
+
* addresses on Ethereum, Tempo, and Base.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { ousd } from 'viem/tokens'
|
|
9
|
+
*
|
|
10
|
+
* ousd(4217)
|
|
11
|
+
* // { address: '0x20c0000000000000000000006a37DA5C996874BE', ... }
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare const ousd: defineToken.ReturnType<{
|
|
15
|
+
readonly addresses: {
|
|
16
|
+
readonly 1: "0x9f6F3991D525015a6F8CaF062C83b62fD3AC4436";
|
|
17
|
+
readonly 4217: "0x20c0000000000000000000006a37DA5C996874BE";
|
|
18
|
+
readonly 8453: "0xB2000000000000000000002fEb517dFeC7415344";
|
|
19
|
+
};
|
|
20
|
+
readonly currency: "USD";
|
|
21
|
+
readonly decimals: 6;
|
|
22
|
+
readonly name: "OpenUSD";
|
|
23
|
+
readonly symbol: "OUSD";
|
|
24
|
+
}>;
|
|
25
|
+
//# sourceMappingURL=ousd.d.ts.map
|