/** * RPC quote. * * @see https://github.com/ithacaxyz/relay/blob/main/src/types/quote.rs */ import { z } from 'zod/mini'; export declare const AssetDeficit: z.ZodMiniObject<{ /** Asset address. null represents the native token. */ address: z.ZodMiniUnion, z.ZodMiniNull]>; /** Token decimals. */ decimals: z.ZodMiniOptional>; /** Deficit for the asset. */ deficit: z.ZodMiniCodec, z.ZodMiniBigInt>; /** Fiat value of the deficit. */ fiat: z.ZodMiniOptional; value: z.ZodMiniString; }, z.core.$strip>>; /** Token name. */ name: z.ZodMiniOptional>; /** Required amount for the asset. */ required: z.ZodMiniCodec, z.ZodMiniBigInt>; /** Token symbol. */ symbol: z.ZodMiniOptional>; }, z.core.$strip>; export type AssetDeficit = z.infer; /** A quote from the RPC for a given `Intent`. */ export declare const Quote: z.ZodMiniObject<{ /** An optional additional authorization address, which would be used to delegate the feepayer */ additionalAuthorization: z.ZodMiniOptional; chainId: z.ZodMiniCodec, z.ZodMiniNumber>; nonce: z.ZodMiniCodec, z.ZodMiniNumber>; r: z.ZodMiniTemplateLiteral<`0x${string}`>; s: z.ZodMiniTemplateLiteral<`0x${string}`>; yParity: z.ZodMiniCodec, z.ZodMiniNumber>; }, z.core.$strip>>>; /** Assets missing for the intent to execute. */ assetDeficits: z.ZodMiniOptional, z.ZodMiniNull]>; /** Token decimals. */ decimals: z.ZodMiniOptional>; /** Deficit for the asset. */ deficit: z.ZodMiniCodec, z.ZodMiniBigInt>; /** Fiat value of the deficit. */ fiat: z.ZodMiniOptional; value: z.ZodMiniString; }, z.core.$strip>>; /** Token name. */ name: z.ZodMiniOptional>; /** Required amount for the asset. */ required: z.ZodMiniCodec, z.ZodMiniBigInt>; /** Token symbol. */ symbol: z.ZodMiniOptional>; }, z.core.$strip>>>; /** * An optional unsigned authorization item. * The account in `eoa` will be delegated to this address. */ authorizationAddress: z.ZodMiniOptional, z.ZodMiniNull]>>; /** Chain ID the quote is for. */ chainId: z.ZodMiniCodec, z.ZodMiniNumber>; /** The price (in wei) of ETH in the payment token. */ ethPrice: z.ZodMiniCodec, z.ZodMiniBigInt>; /** Extra payment for e.g L1 DA fee that is paid on top of the execution gas. */ extraPayment: z.ZodMiniCodec, z.ZodMiniBigInt>; /** The deficit of the fee token. */ feeTokenDeficit: z.ZodMiniCodec, z.ZodMiniBigInt>; /** The fee estimate for the bundle in the destination chains native token. */ intent: z.ZodMiniUnion, z.ZodMiniBigInt>; encodedFundTransfers: z.ZodMiniReadonly>>; encodedPreCalls: z.ZodMiniReadonly>>; eoa: z.ZodMiniTemplateLiteral<`0x${string}`>; executionData: z.ZodMiniTemplateLiteral<`0x${string}`>; expiry: z.ZodMiniCodec, z.ZodMiniBigInt>; funder: z.ZodMiniTemplateLiteral<`0x${string}`>; funderSignature: z.ZodMiniTemplateLiteral<`0x${string}`>; isMultichain: z.ZodMiniBoolean; nonce: z.ZodMiniCodec, z.ZodMiniBigInt>; payer: z.ZodMiniTemplateLiteral<`0x${string}`>; paymentAmount: z.ZodMiniCodec, z.ZodMiniBigInt>; paymentMaxAmount: z.ZodMiniCodec, z.ZodMiniBigInt>; paymentRecipient: z.ZodMiniTemplateLiteral<`0x${string}`>; paymentSignature: z.ZodMiniTemplateLiteral<`0x${string}`>; paymentToken: z.ZodMiniTemplateLiteral<`0x${string}`>; settler: z.ZodMiniTemplateLiteral<`0x${string}`>; settlerContext: z.ZodMiniTemplateLiteral<`0x${string}`>; signature: z.ZodMiniTemplateLiteral<`0x${string}`>; supportedAccountImplementation: z.ZodMiniTemplateLiteral<`0x${string}`>; }, z.core.$strip>, z.ZodMiniObject<{ combinedGas: z.ZodMiniCodec, z.ZodMiniBigInt>; encodedFundTransfers: z.ZodMiniReadonly>>; encodedPreCalls: z.ZodMiniReadonly>>; eoa: z.ZodMiniTemplateLiteral<`0x${string}`>; executionData: z.ZodMiniTemplateLiteral<`0x${string}`>; expiry: z.ZodMiniCodec, z.ZodMiniBigInt>; funder: z.ZodMiniTemplateLiteral<`0x${string}`>; funderSignature: z.ZodMiniTemplateLiteral<`0x${string}`>; isMultichain: z.ZodMiniBoolean; nonce: z.ZodMiniCodec, z.ZodMiniBigInt>; payer: z.ZodMiniTemplateLiteral<`0x${string}`>; paymentRecipient: z.ZodMiniTemplateLiteral<`0x${string}`>; paymentSignature: z.ZodMiniTemplateLiteral<`0x${string}`>; paymentToken: z.ZodMiniTemplateLiteral<`0x${string}`>; prePaymentAmount: z.ZodMiniCodec, z.ZodMiniBigInt>; prePaymentMaxAmount: z.ZodMiniCodec, z.ZodMiniBigInt>; settler: z.ZodMiniTemplateLiteral<`0x${string}`>; settlerContext: z.ZodMiniTemplateLiteral<`0x${string}`>; signature: z.ZodMiniTemplateLiteral<`0x${string}`>; supportedAccountImplementation: z.ZodMiniTemplateLiteral<`0x${string}`>; totalPaymentAmount: z.ZodMiniCodec, z.ZodMiniBigInt>; totalPaymentMaxAmount: z.ZodMiniCodec, z.ZodMiniBigInt>; }, z.core.$strip>]>; /** The `Intent` the quote is for. */ nativeFeeEstimate: z.ZodMiniObject<{ /** The maximum fee per gas for the bundle. */ maxFeePerGas: z.ZodMiniCodec, z.ZodMiniBigInt>; /** The maximum priority fee per gas for the bundle. */ maxPriorityFeePerGas: z.ZodMiniCodec, z.ZodMiniBigInt>; }, z.core.$strip>; /** The orchestrator for the quote. */ orchestrator: z.ZodMiniTemplateLiteral<`0x${string}`>; /** The decimals of the payment token. */ paymentTokenDecimals: z.ZodMiniNumber; /** The recommended gas limit for the bundle. */ txGas: z.ZodMiniCodec, z.ZodMiniBigInt>; }, z.core.$strip>; export type Quote = z.infer; export declare const Quotes: z.ZodMiniObject<{ /** Merkle root if it's a multichain workflow. */ multiChainRoot: z.ZodMiniOptional, z.ZodMiniNull]>>; /** * A quote for each intent. * * - For a single-chain workflow, this will have exactly one item, the output intent. * - For a multi-chain workflow, this will have multiple items, where the last one is the output * intent. */ quotes: z.ZodMiniReadonly; chainId: z.ZodMiniCodec, z.ZodMiniNumber>; nonce: z.ZodMiniCodec, z.ZodMiniNumber>; r: z.ZodMiniTemplateLiteral<`0x${string}`>; s: z.ZodMiniTemplateLiteral<`0x${string}`>; yParity: z.ZodMiniCodec, z.ZodMiniNumber>; }, z.core.$strip>>>; /** Assets missing for the intent to execute. */ assetDeficits: z.ZodMiniOptional, z.ZodMiniNull]>; /** Token decimals. */ decimals: z.ZodMiniOptional>; /** Deficit for the asset. */ deficit: z.ZodMiniCodec, z.ZodMiniBigInt>; /** Fiat value of the deficit. */ fiat: z.ZodMiniOptional; value: z.ZodMiniString; }, z.core.$strip>>; /** Token name. */ name: z.ZodMiniOptional>; /** Required amount for the asset. */ required: z.ZodMiniCodec, z.ZodMiniBigInt>; /** Token symbol. */ symbol: z.ZodMiniOptional>; }, z.core.$strip>>>; /** * An optional unsigned authorization item. * The account in `eoa` will be delegated to this address. */ authorizationAddress: z.ZodMiniOptional, z.ZodMiniNull]>>; /** Chain ID the quote is for. */ chainId: z.ZodMiniCodec, z.ZodMiniNumber>; /** The price (in wei) of ETH in the payment token. */ ethPrice: z.ZodMiniCodec, z.ZodMiniBigInt>; /** Extra payment for e.g L1 DA fee that is paid on top of the execution gas. */ extraPayment: z.ZodMiniCodec, z.ZodMiniBigInt>; /** The deficit of the fee token. */ feeTokenDeficit: z.ZodMiniCodec, z.ZodMiniBigInt>; /** The fee estimate for the bundle in the destination chains native token. */ intent: z.ZodMiniUnion, z.ZodMiniBigInt>; encodedFundTransfers: z.ZodMiniReadonly>>; encodedPreCalls: z.ZodMiniReadonly>>; eoa: z.ZodMiniTemplateLiteral<`0x${string}`>; executionData: z.ZodMiniTemplateLiteral<`0x${string}`>; expiry: z.ZodMiniCodec, z.ZodMiniBigInt>; funder: z.ZodMiniTemplateLiteral<`0x${string}`>; funderSignature: z.ZodMiniTemplateLiteral<`0x${string}`>; isMultichain: z.ZodMiniBoolean; nonce: z.ZodMiniCodec, z.ZodMiniBigInt>; payer: z.ZodMiniTemplateLiteral<`0x${string}`>; paymentAmount: z.ZodMiniCodec, z.ZodMiniBigInt>; paymentMaxAmount: z.ZodMiniCodec, z.ZodMiniBigInt>; paymentRecipient: z.ZodMiniTemplateLiteral<`0x${string}`>; paymentSignature: z.ZodMiniTemplateLiteral<`0x${string}`>; paymentToken: z.ZodMiniTemplateLiteral<`0x${string}`>; settler: z.ZodMiniTemplateLiteral<`0x${string}`>; settlerContext: z.ZodMiniTemplateLiteral<`0x${string}`>; signature: z.ZodMiniTemplateLiteral<`0x${string}`>; supportedAccountImplementation: z.ZodMiniTemplateLiteral<`0x${string}`>; }, z.core.$strip>, z.ZodMiniObject<{ combinedGas: z.ZodMiniCodec, z.ZodMiniBigInt>; encodedFundTransfers: z.ZodMiniReadonly>>; encodedPreCalls: z.ZodMiniReadonly>>; eoa: z.ZodMiniTemplateLiteral<`0x${string}`>; executionData: z.ZodMiniTemplateLiteral<`0x${string}`>; expiry: z.ZodMiniCodec, z.ZodMiniBigInt>; funder: z.ZodMiniTemplateLiteral<`0x${string}`>; funderSignature: z.ZodMiniTemplateLiteral<`0x${string}`>; isMultichain: z.ZodMiniBoolean; nonce: z.ZodMiniCodec, z.ZodMiniBigInt>; payer: z.ZodMiniTemplateLiteral<`0x${string}`>; paymentRecipient: z.ZodMiniTemplateLiteral<`0x${string}`>; paymentSignature: z.ZodMiniTemplateLiteral<`0x${string}`>; paymentToken: z.ZodMiniTemplateLiteral<`0x${string}`>; prePaymentAmount: z.ZodMiniCodec, z.ZodMiniBigInt>; prePaymentMaxAmount: z.ZodMiniCodec, z.ZodMiniBigInt>; settler: z.ZodMiniTemplateLiteral<`0x${string}`>; settlerContext: z.ZodMiniTemplateLiteral<`0x${string}`>; signature: z.ZodMiniTemplateLiteral<`0x${string}`>; supportedAccountImplementation: z.ZodMiniTemplateLiteral<`0x${string}`>; totalPaymentAmount: z.ZodMiniCodec, z.ZodMiniBigInt>; totalPaymentMaxAmount: z.ZodMiniCodec, z.ZodMiniBigInt>; }, z.core.$strip>]>; /** The `Intent` the quote is for. */ nativeFeeEstimate: z.ZodMiniObject<{ /** The maximum fee per gas for the bundle. */ maxFeePerGas: z.ZodMiniCodec, z.ZodMiniBigInt>; /** The maximum priority fee per gas for the bundle. */ maxPriorityFeePerGas: z.ZodMiniCodec, z.ZodMiniBigInt>; }, z.core.$strip>; /** The orchestrator for the quote. */ orchestrator: z.ZodMiniTemplateLiteral<`0x${string}`>; /** The decimals of the payment token. */ paymentTokenDecimals: z.ZodMiniNumber; /** The recommended gas limit for the bundle. */ txGas: z.ZodMiniCodec, z.ZodMiniBigInt>; }, z.core.$strip>>>; /** The time-to-live (UNIX timestamp) of the quotes. */ ttl: z.ZodMiniNumber; }, z.core.$strip>; export declare const Signed: z.ZodMiniObject<{ hash: z.ZodMiniTemplateLiteral<`0x${string}`>; r: z.ZodMiniTemplateLiteral<`0x${string}`>; s: z.ZodMiniTemplateLiteral<`0x${string}`>; v: z.ZodMiniOptional>; yParity: z.ZodMiniOptional>; /** Merkle root if it's a multichain workflow. */ multiChainRoot: z.ZodMiniOptional, z.ZodMiniNull]>>; /** * A quote for each intent. * * - For a single-chain workflow, this will have exactly one item, the output intent. * - For a multi-chain workflow, this will have multiple items, where the last one is the output * intent. */ quotes: z.ZodMiniReadonly; chainId: z.ZodMiniCodec, z.ZodMiniNumber>; nonce: z.ZodMiniCodec, z.ZodMiniNumber>; r: z.ZodMiniTemplateLiteral<`0x${string}`>; s: z.ZodMiniTemplateLiteral<`0x${string}`>; yParity: z.ZodMiniCodec, z.ZodMiniNumber>; }, z.core.$strip>>>; /** Assets missing for the intent to execute. */ assetDeficits: z.ZodMiniOptional, z.ZodMiniNull]>; /** Token decimals. */ decimals: z.ZodMiniOptional>; /** Deficit for the asset. */ deficit: z.ZodMiniCodec, z.ZodMiniBigInt>; /** Fiat value of the deficit. */ fiat: z.ZodMiniOptional; value: z.ZodMiniString; }, z.core.$strip>>; /** Token name. */ name: z.ZodMiniOptional>; /** Required amount for the asset. */ required: z.ZodMiniCodec, z.ZodMiniBigInt>; /** Token symbol. */ symbol: z.ZodMiniOptional>; }, z.core.$strip>>>; /** * An optional unsigned authorization item. * The account in `eoa` will be delegated to this address. */ authorizationAddress: z.ZodMiniOptional, z.ZodMiniNull]>>; /** Chain ID the quote is for. */ chainId: z.ZodMiniCodec, z.ZodMiniNumber>; /** The price (in wei) of ETH in the payment token. */ ethPrice: z.ZodMiniCodec, z.ZodMiniBigInt>; /** Extra payment for e.g L1 DA fee that is paid on top of the execution gas. */ extraPayment: z.ZodMiniCodec, z.ZodMiniBigInt>; /** The deficit of the fee token. */ feeTokenDeficit: z.ZodMiniCodec, z.ZodMiniBigInt>; /** The fee estimate for the bundle in the destination chains native token. */ intent: z.ZodMiniUnion, z.ZodMiniBigInt>; encodedFundTransfers: z.ZodMiniReadonly>>; encodedPreCalls: z.ZodMiniReadonly>>; eoa: z.ZodMiniTemplateLiteral<`0x${string}`>; executionData: z.ZodMiniTemplateLiteral<`0x${string}`>; expiry: z.ZodMiniCodec, z.ZodMiniBigInt>; funder: z.ZodMiniTemplateLiteral<`0x${string}`>; funderSignature: z.ZodMiniTemplateLiteral<`0x${string}`>; isMultichain: z.ZodMiniBoolean; nonce: z.ZodMiniCodec, z.ZodMiniBigInt>; payer: z.ZodMiniTemplateLiteral<`0x${string}`>; paymentAmount: z.ZodMiniCodec, z.ZodMiniBigInt>; paymentMaxAmount: z.ZodMiniCodec, z.ZodMiniBigInt>; paymentRecipient: z.ZodMiniTemplateLiteral<`0x${string}`>; paymentSignature: z.ZodMiniTemplateLiteral<`0x${string}`>; paymentToken: z.ZodMiniTemplateLiteral<`0x${string}`>; settler: z.ZodMiniTemplateLiteral<`0x${string}`>; settlerContext: z.ZodMiniTemplateLiteral<`0x${string}`>; signature: z.ZodMiniTemplateLiteral<`0x${string}`>; supportedAccountImplementation: z.ZodMiniTemplateLiteral<`0x${string}`>; }, z.core.$strip>, z.ZodMiniObject<{ combinedGas: z.ZodMiniCodec, z.ZodMiniBigInt>; encodedFundTransfers: z.ZodMiniReadonly>>; encodedPreCalls: z.ZodMiniReadonly>>; eoa: z.ZodMiniTemplateLiteral<`0x${string}`>; executionData: z.ZodMiniTemplateLiteral<`0x${string}`>; expiry: z.ZodMiniCodec, z.ZodMiniBigInt>; funder: z.ZodMiniTemplateLiteral<`0x${string}`>; funderSignature: z.ZodMiniTemplateLiteral<`0x${string}`>; isMultichain: z.ZodMiniBoolean; nonce: z.ZodMiniCodec, z.ZodMiniBigInt>; payer: z.ZodMiniTemplateLiteral<`0x${string}`>; paymentRecipient: z.ZodMiniTemplateLiteral<`0x${string}`>; paymentSignature: z.ZodMiniTemplateLiteral<`0x${string}`>; paymentToken: z.ZodMiniTemplateLiteral<`0x${string}`>; prePaymentAmount: z.ZodMiniCodec, z.ZodMiniBigInt>; prePaymentMaxAmount: z.ZodMiniCodec, z.ZodMiniBigInt>; settler: z.ZodMiniTemplateLiteral<`0x${string}`>; settlerContext: z.ZodMiniTemplateLiteral<`0x${string}`>; signature: z.ZodMiniTemplateLiteral<`0x${string}`>; supportedAccountImplementation: z.ZodMiniTemplateLiteral<`0x${string}`>; totalPaymentAmount: z.ZodMiniCodec, z.ZodMiniBigInt>; totalPaymentMaxAmount: z.ZodMiniCodec, z.ZodMiniBigInt>; }, z.core.$strip>]>; /** The `Intent` the quote is for. */ nativeFeeEstimate: z.ZodMiniObject<{ /** The maximum fee per gas for the bundle. */ maxFeePerGas: z.ZodMiniCodec, z.ZodMiniBigInt>; /** The maximum priority fee per gas for the bundle. */ maxPriorityFeePerGas: z.ZodMiniCodec, z.ZodMiniBigInt>; }, z.core.$strip>; /** The orchestrator for the quote. */ orchestrator: z.ZodMiniTemplateLiteral<`0x${string}`>; /** The decimals of the payment token. */ paymentTokenDecimals: z.ZodMiniNumber; /** The recommended gas limit for the bundle. */ txGas: z.ZodMiniCodec, z.ZodMiniBigInt>; }, z.core.$strip>>>; /** The time-to-live (UNIX timestamp) of the quotes. */ ttl: z.ZodMiniNumber; }, z.core.$strip>; export type Signed = z.infer; //# sourceMappingURL=quotes.d.ts.map