import { TransactionId } from '../index.js'; import * as _polymarket_types from '@polymarket/types'; import { z } from 'zod'; declare enum RelayerTransactionType { SAFE = "SAFE", PROXY = "PROXY", SAFE_CREATE = "SAFE-CREATE", WALLET = "WALLET", WALLET_CREATE = "WALLET-CREATE" } declare const RelayerTransactionTypeSchema: z.ZodEnum; declare enum RelayerTransactionState { STATE_NEW = "STATE_NEW", STATE_EXECUTED = "STATE_EXECUTED", STATE_MINED = "STATE_MINED", STATE_CONFIRMED = "STATE_CONFIRMED", STATE_INVALID = "STATE_INVALID", STATE_FAILED = "STATE_FAILED" } declare const RelayerExecuteParamsSchema: z.ZodObject<{ address: z.ZodPipe>; nonce: z.ZodString; }, z.core.$strip>; type RelayerExecuteParams = z.output; declare const RelayerLegacyExecuteRequestSchema: z.ZodObject<{ data: z.ZodString; from: z.ZodPipe>; metadata: z.ZodOptional; nonce: z.ZodOptional; proxyWallet: z.ZodPipe>; signature: z.ZodString; signatureParams: z.ZodObject<{ baseGas: z.ZodOptional; gasLimit: z.ZodOptional; gasPrice: z.ZodOptional; gasToken: z.ZodOptional>>; operation: z.ZodOptional; payment: z.ZodOptional; paymentReceiver: z.ZodOptional>>; paymentToken: z.ZodOptional>>; refundReceiver: z.ZodOptional>>; relay: z.ZodOptional>>; relayHub: z.ZodOptional>>; relayerFee: z.ZodOptional; safeTxnGas: z.ZodOptional; }, z.core.$strip>; to: z.ZodPipe>; type: z.ZodEnum<{ SAFE: RelayerTransactionType.SAFE; PROXY: RelayerTransactionType.PROXY; "SAFE-CREATE": RelayerTransactionType.SAFE_CREATE; }>; value: z.ZodOptional; }, z.core.$strip>; type RelayerLegacyExecuteRequest = z.input; declare const DepositWalletCallSchema: z.ZodObject<{ data: z.ZodString; target: z.ZodPipe>; value: z.ZodString; }, z.core.$strip>; type DepositWalletCall = z.input; declare const DepositWalletParamsSchema: z.ZodObject<{ calls: z.ZodArray>; value: z.ZodString; }, z.core.$strip>>; deadline: z.ZodString; depositWallet: z.ZodPipe>; }, z.core.$strip>; type DepositWalletParams = z.input; declare const RelayerDepositWalletExecuteRequestSchema: z.ZodObject<{ depositWalletParams: z.ZodObject<{ calls: z.ZodArray>; value: z.ZodString; }, z.core.$strip>>; deadline: z.ZodString; depositWallet: z.ZodPipe>; }, z.core.$strip>; from: z.ZodPipe>; metadata: z.ZodOptional; nonce: z.ZodString; signature: z.ZodString; to: z.ZodPipe>; type: z.ZodLiteral; }, z.core.$strip>; type RelayerDepositWalletExecuteRequest = z.input; declare const RelayerDepositWalletCreateRequestSchema: z.ZodObject<{ from: z.ZodPipe>; metadata: z.ZodOptional; to: z.ZodPipe>; type: z.ZodLiteral; }, z.core.$strip>; type RelayerDepositWalletCreateRequest = z.input; declare const RelayerExecuteRequestSchema: z.ZodUnion>; metadata: z.ZodOptional; nonce: z.ZodOptional; proxyWallet: z.ZodPipe>; signature: z.ZodString; signatureParams: z.ZodObject<{ baseGas: z.ZodOptional; gasLimit: z.ZodOptional; gasPrice: z.ZodOptional; gasToken: z.ZodOptional>>; operation: z.ZodOptional; payment: z.ZodOptional; paymentReceiver: z.ZodOptional>>; paymentToken: z.ZodOptional>>; refundReceiver: z.ZodOptional>>; relay: z.ZodOptional>>; relayHub: z.ZodOptional>>; relayerFee: z.ZodOptional; safeTxnGas: z.ZodOptional; }, z.core.$strip>; to: z.ZodPipe>; type: z.ZodEnum<{ SAFE: RelayerTransactionType.SAFE; PROXY: RelayerTransactionType.PROXY; "SAFE-CREATE": RelayerTransactionType.SAFE_CREATE; }>; value: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ depositWalletParams: z.ZodObject<{ calls: z.ZodArray>; value: z.ZodString; }, z.core.$strip>>; deadline: z.ZodString; depositWallet: z.ZodPipe>; }, z.core.$strip>; from: z.ZodPipe>; metadata: z.ZodOptional; nonce: z.ZodString; signature: z.ZodString; to: z.ZodPipe>; type: z.ZodLiteral; }, z.core.$strip>, z.ZodObject<{ from: z.ZodPipe>; metadata: z.ZodOptional; to: z.ZodPipe>; type: z.ZodLiteral; }, z.core.$strip>]>; type RelayerExecuteRequest = z.input; declare const RelayerExecuteResponseSchema: z.ZodPipe; transactionHash: z.ZodPipe>>>, z.ZodTransform<_polymarket_types.TxHash | null, _polymarket_types.TxHash | null | undefined>>; transactionID: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ transactionHash: _polymarket_types.TxHash | null; transactionId: TransactionId; state: RelayerTransactionState; }, { state: RelayerTransactionState; transactionHash: _polymarket_types.TxHash | null; transactionID: TransactionId; }>>; type RelayerExecuteResponse = z.output; declare const RelayerDeployedResponseSchema: z.ZodObject<{ deployed: z.ZodBoolean; }, z.core.$strip>; type RelayerDeployedResponse = z.output; declare const GaslessTransactionSchema: z.ZodPipe>; state: z.ZodEnum; transaction_hash: z.ZodPipe, z.ZodPipe>]>, z.ZodTransform<_polymarket_types.TxHash | null, "" | _polymarket_types.TxHash>>; transaction_id: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ errorMsg: string | null; transactionHash: _polymarket_types.TxHash | null; transactionId: TransactionId; state: RelayerTransactionState; }, { state: RelayerTransactionState; transaction_hash: _polymarket_types.TxHash | null; transaction_id: TransactionId; error_msg?: string | null | undefined; }>>; type GaslessTransaction = z.output; export { type DepositWalletCall, DepositWalletCallSchema, type DepositWalletParams, DepositWalletParamsSchema, type GaslessTransaction, GaslessTransactionSchema, type RelayerDeployedResponse, RelayerDeployedResponseSchema, type RelayerDepositWalletCreateRequest, RelayerDepositWalletCreateRequestSchema, type RelayerDepositWalletExecuteRequest, RelayerDepositWalletExecuteRequestSchema, type RelayerExecuteParams, RelayerExecuteParamsSchema, type RelayerExecuteRequest, RelayerExecuteRequestSchema, type RelayerExecuteResponse, RelayerExecuteResponseSchema, type RelayerLegacyExecuteRequest, RelayerLegacyExecuteRequestSchema, RelayerTransactionState, RelayerTransactionType, RelayerTransactionTypeSchema };