UNPKG

@dzapio/sdk

Version:

A TypeScript/JavaScript SDK for interacting with the DZap protocol, providing utilities for DeFi operations including Swaps, Bridges, and Zaps.

16 lines (15 loc) 772 B
import { HexString } from '../../types'; import { Address, PublicClient } from 'viem'; export declare class NonceManager { private static readonly POSITION_BITS; private static readonly MAX_POSITION; private static readonly POSITION_MASK; private static readonly MAX_WORD_ITERATIONS; private readonly permit2Contract; constructor(publicClient: PublicClient, permit2Address: HexString); nextNonce(owner: Address): Promise<bigint>; private nonceFromWordAndPos; getNonceBitmap(owner: Address, word: bigint): Promise<bigint>; isNonceUsed(owner: Address, nonce: bigint): Promise<boolean>; } export declare const getNextPermit2Nonce: (permitAddress: HexString, account: HexString, chainId: number, rpcUrls?: string[]) => Promise<bigint>;