UNPKG

@pushchain/ui-kit

Version:

Push Chain is a true universal L1 that is 100% EVM compatible. It allows developers to deploy once and make their apps instantly compatible with users from all other L1s (Ethereum, Solana, etc) with zero on-chain code change.

25 lines (24 loc) 955 B
import type { SignAuthorizationParams, SignedAuthorization } from '@pushchain/core'; export declare const EIP_7702_UNSUPPORTED_ERROR = "Wallet does not support EIP-7702 authorization"; type AuthorizationResult = { chainId?: bigint | number; nonce?: bigint | number; r?: string; s?: string; yParity?: bigint | number; signature?: { r: string; s: string; yParity: bigint | number; }; }; type AuthorizationSigner = { authorize?: (authorization: { address: string; chainId?: number; nonce?: number; }) => Promise<AuthorizationResult>; }; export declare const normalizeSignedAuthorization: (authorization: AuthorizationResult, { contractAddress, chainId, nonce }: SignAuthorizationParams) => SignedAuthorization; export declare const signAuthorizationWithEthersSigner: (signer: AuthorizationSigner, params: SignAuthorizationParams) => Promise<SignedAuthorization>; export {};