@funkit/core 2.2.9 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +0,0 @@
1
- /**
2
- * Get the name of an NFT collection
3
- * @param {string} chainId https://chainlist.org/
4
- * @param {string} nftAddress Address of NFT
5
- * @returns JSON
6
- * {
7
- * "success": true,
8
- * "name": "Anatomy Science Ape Club"
9
- * }
10
- */
11
- export declare function getNftName(chainId: string, nftAddress: string): Promise<any>;
12
- /**
13
- * Get the address and chainId of an NFT collection
14
- * @param {string} name Name of NFT
15
- * @returns JSON
16
- * {
17
- * "success": true,
18
- * "address": "0x96fc56721d2b79485692350014875b3b67cb00eb",
19
- * "chain": "1"
20
- * }
21
- */
22
- export declare function getNftAddress(name: string): Promise<any>;
@@ -1,10 +0,0 @@
1
- import type { PaymasterType } from '../sponsors/types';
2
- export interface PaymasterTransaction {
3
- action: string;
4
- amount: number;
5
- from: string;
6
- to: string;
7
- token: string;
8
- txid?: string;
9
- }
10
- export declare function addTransaction(chainId: string, timestamp: number, txid: any, transaction: PaymasterTransaction, paymasterType: PaymasterType, sponsorAddress: string): Promise<any>;
@@ -1,4 +0,0 @@
1
- import type { TransactionParams } from '../common';
2
- export declare function get1InchSwapTx(chainId: string, src: string, dst: string, amount: string, from: string, slippage: string, disableEstimate: string, allowPartialFill: string): Promise<TransactionParams>;
3
- export declare function get1InchAllowance(chainId: string, tokenAddress: string, walletAddress: string): Promise<number>;
4
- export declare function get1InchApproveTx(chainId: string, tokenAddress: string, amount: string): Promise<TransactionParams>;
@@ -1,33 +0,0 @@
1
- import { type Address, type PublicClient } from 'viem';
2
- import type { UniswapPoolFeeOptions } from '../actions';
3
- export declare function fromReadableAmount(amount: number, decimals: number): bigint;
4
- type SwapParamsUtils = {
5
- tokenInAddress: Address;
6
- tokenOutAddress: Address;
7
- amountIn: number;
8
- recipient: Address;
9
- percentDecimal: number;
10
- slippage: number;
11
- poolFee: UniswapPoolFeeOptions;
12
- };
13
- export type UniswapV3Addrs = {
14
- univ3quoter: Address;
15
- univ3factory: Address;
16
- univ3router: Address;
17
- };
18
- export type UniswapV2Addrs = {
19
- factory: Address;
20
- router: Address;
21
- };
22
- export declare function swapExec(client: PublicClient, uniswapAddrs: UniswapV3Addrs, swapParams: SwapParamsUtils, chainId: number): Promise<{
23
- amount: string;
24
- data: string;
25
- to: string;
26
- value: string;
27
- }>;
28
- export declare function swapExecV2(client: PublicClient, uniswapAddrs: UniswapV2Addrs, swapParams: SwapParamsUtils, chainId: number): Promise<{
29
- data: `0x${string}` | undefined;
30
- to: `0x${string}`;
31
- amount: string;
32
- }>;
33
- export {};