UNPKG

@admin-jigsaw/jigsaw-sdk

Version:

Returns predefined data for Jigsaw platform and exposes functionality to retrieve the necessary data

86 lines (85 loc) 3.35 kB
import { Address } from "viem"; export declare const MOCK_HOLDING_ADDRESS: Address; export declare const MOCK_STRATEGY_ADDRESS_1: Address; export declare const MOCK_STRATEGY_ADDRESS_2: Address; export declare const createMockClient: (chainId?: number) => { readContract: import("vitest").Mock<(...args: any[]) => any>; multicall: import("vitest").Mock<(...args: any[]) => any>; getGasPrice: import("vitest").Mock<(...args: any[]) => any>; chain: { blockExplorers: { readonly default: { readonly name: "Etherscan"; readonly url: "https://etherscan.io"; readonly apiUrl: "https://api.etherscan.io/api"; }; }; blockTime: 12000; contracts: { readonly ensUniversalResolver: { readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee"; readonly blockCreated: 23085558; }; readonly multicall3: { readonly address: "0xca11bde05977b3631167028862be2a173976ca11"; readonly blockCreated: 14353601; }; }; ensTlds?: readonly string[] | undefined; id: 1; name: "Ethereum"; nativeCurrency: { readonly name: "Ether"; readonly symbol: "ETH"; readonly decimals: 18; }; experimental_preconfirmationTime?: number | undefined | undefined; rpcUrls: { readonly default: { readonly http: readonly ["https://eth.merkle.io"]; }; }; sourceId?: number | undefined | undefined; testnet?: boolean | undefined | undefined; custom?: Record<string, unknown> | undefined; fees?: import("viem").ChainFees<undefined> | undefined; formatters?: undefined; serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined; } | { blockExplorers: { readonly default: { readonly name: "Sonic Explorer"; readonly url: "https://sonicscan.org"; }; }; blockTime: 630; contracts: { readonly multicall3: { readonly address: "0xca11bde05977b3631167028862be2a173976ca11"; readonly blockCreated: 60; }; }; ensTlds?: readonly string[] | undefined; id: 146; name: "Sonic"; nativeCurrency: { readonly decimals: 18; readonly name: "Sonic"; readonly symbol: "S"; }; experimental_preconfirmationTime?: number | undefined | undefined; rpcUrls: { readonly default: { readonly http: readonly ["https://rpc.soniclabs.com"]; }; }; sourceId?: number | undefined | undefined; testnet: false; custom?: Record<string, unknown> | undefined; fees?: import("viem").ChainFees<undefined> | undefined; formatters?: undefined; serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined; }; }; export declare const MOCK_STRATEGY_DATA: `0x${string}`[]; export declare const createMockReadContractResponse: (strategies?: Address[]) => `0x${string}`[];