@funkit/core 2.1.8 → 2.2.1
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.
- package/dist/index.js +47 -62
- package/dist/index.js.map +3 -3
- package/dist/src/common/constants.d.ts +66 -66
- package/dist/src/utils/CheckoutUtils.d.ts +0 -5
- package/package.json +2 -2
|
@@ -2690,6 +2690,39 @@ export declare const FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO: {
|
|
|
2690
2690
|
};
|
|
2691
2691
|
export declare const FUNKIT_CONNECT_SUPPORTED_CHAINS_ID_LIST: string[];
|
|
2692
2692
|
export declare const FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO_LIST: ({
|
|
2693
|
+
id: number;
|
|
2694
|
+
name: string;
|
|
2695
|
+
nativeCurrency: {
|
|
2696
|
+
symbol: string;
|
|
2697
|
+
decimals: number;
|
|
2698
|
+
name: string;
|
|
2699
|
+
};
|
|
2700
|
+
rpcUrls: {
|
|
2701
|
+
default: {
|
|
2702
|
+
http: string[];
|
|
2703
|
+
};
|
|
2704
|
+
};
|
|
2705
|
+
blockExplorers: {
|
|
2706
|
+
default: {
|
|
2707
|
+
name: string;
|
|
2708
|
+
url: string;
|
|
2709
|
+
apiUrl: string;
|
|
2710
|
+
};
|
|
2711
|
+
};
|
|
2712
|
+
contracts: {
|
|
2713
|
+
ensRegistry: {
|
|
2714
|
+
address: `0x${string}`;
|
|
2715
|
+
};
|
|
2716
|
+
ensUniversalResolver: {
|
|
2717
|
+
address: `0x${string}`;
|
|
2718
|
+
blockCreated: number;
|
|
2719
|
+
};
|
|
2720
|
+
multicall3: {
|
|
2721
|
+
address: `0x${string}`;
|
|
2722
|
+
blockCreated: number;
|
|
2723
|
+
};
|
|
2724
|
+
};
|
|
2725
|
+
} | {
|
|
2693
2726
|
blockExplorers: {
|
|
2694
2727
|
readonly default: {
|
|
2695
2728
|
readonly name: "Etherscan";
|
|
@@ -3712,39 +3745,6 @@ export declare const FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO_LIST: ({
|
|
|
3712
3745
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
3713
3746
|
formatters?: undefined;
|
|
3714
3747
|
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
3715
|
-
} | {
|
|
3716
|
-
id: number;
|
|
3717
|
-
name: string;
|
|
3718
|
-
nativeCurrency: {
|
|
3719
|
-
symbol: string;
|
|
3720
|
-
decimals: number;
|
|
3721
|
-
name: string;
|
|
3722
|
-
};
|
|
3723
|
-
rpcUrls: {
|
|
3724
|
-
default: {
|
|
3725
|
-
http: string[];
|
|
3726
|
-
};
|
|
3727
|
-
};
|
|
3728
|
-
blockExplorers: {
|
|
3729
|
-
default: {
|
|
3730
|
-
name: string;
|
|
3731
|
-
url: string;
|
|
3732
|
-
apiUrl: string;
|
|
3733
|
-
};
|
|
3734
|
-
};
|
|
3735
|
-
contracts: {
|
|
3736
|
-
ensRegistry: {
|
|
3737
|
-
address: `0x${string}`;
|
|
3738
|
-
};
|
|
3739
|
-
ensUniversalResolver: {
|
|
3740
|
-
address: `0x${string}`;
|
|
3741
|
-
blockCreated: number;
|
|
3742
|
-
};
|
|
3743
|
-
multicall3: {
|
|
3744
|
-
address: `0x${string}`;
|
|
3745
|
-
blockCreated: number;
|
|
3746
|
-
};
|
|
3747
|
-
};
|
|
3748
3748
|
} | {
|
|
3749
3749
|
blockExplorers: {
|
|
3750
3750
|
readonly default: {
|
|
@@ -3851,6 +3851,39 @@ export declare const FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO_LIST: ({
|
|
|
3851
3851
|
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
3852
3852
|
})[];
|
|
3853
3853
|
export declare const FUNKIT_CONNECT_SUPPORTED_CHECKOUT_CHAINS_INFO_LIST: ({
|
|
3854
|
+
id: number;
|
|
3855
|
+
name: string;
|
|
3856
|
+
nativeCurrency: {
|
|
3857
|
+
symbol: string;
|
|
3858
|
+
decimals: number;
|
|
3859
|
+
name: string;
|
|
3860
|
+
};
|
|
3861
|
+
rpcUrls: {
|
|
3862
|
+
default: {
|
|
3863
|
+
http: string[];
|
|
3864
|
+
};
|
|
3865
|
+
};
|
|
3866
|
+
blockExplorers: {
|
|
3867
|
+
default: {
|
|
3868
|
+
name: string;
|
|
3869
|
+
url: string;
|
|
3870
|
+
apiUrl: string;
|
|
3871
|
+
};
|
|
3872
|
+
};
|
|
3873
|
+
contracts: {
|
|
3874
|
+
ensRegistry: {
|
|
3875
|
+
address: `0x${string}`;
|
|
3876
|
+
};
|
|
3877
|
+
ensUniversalResolver: {
|
|
3878
|
+
address: `0x${string}`;
|
|
3879
|
+
blockCreated: number;
|
|
3880
|
+
};
|
|
3881
|
+
multicall3: {
|
|
3882
|
+
address: `0x${string}`;
|
|
3883
|
+
blockCreated: number;
|
|
3884
|
+
};
|
|
3885
|
+
};
|
|
3886
|
+
} | {
|
|
3854
3887
|
blockExplorers: {
|
|
3855
3888
|
readonly default: {
|
|
3856
3889
|
readonly name: "Etherscan";
|
|
@@ -4873,39 +4906,6 @@ export declare const FUNKIT_CONNECT_SUPPORTED_CHECKOUT_CHAINS_INFO_LIST: ({
|
|
|
4873
4906
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
4874
4907
|
formatters?: undefined;
|
|
4875
4908
|
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
4876
|
-
} | {
|
|
4877
|
-
id: number;
|
|
4878
|
-
name: string;
|
|
4879
|
-
nativeCurrency: {
|
|
4880
|
-
symbol: string;
|
|
4881
|
-
decimals: number;
|
|
4882
|
-
name: string;
|
|
4883
|
-
};
|
|
4884
|
-
rpcUrls: {
|
|
4885
|
-
default: {
|
|
4886
|
-
http: string[];
|
|
4887
|
-
};
|
|
4888
|
-
};
|
|
4889
|
-
blockExplorers: {
|
|
4890
|
-
default: {
|
|
4891
|
-
name: string;
|
|
4892
|
-
url: string;
|
|
4893
|
-
apiUrl: string;
|
|
4894
|
-
};
|
|
4895
|
-
};
|
|
4896
|
-
contracts: {
|
|
4897
|
-
ensRegistry: {
|
|
4898
|
-
address: `0x${string}`;
|
|
4899
|
-
};
|
|
4900
|
-
ensUniversalResolver: {
|
|
4901
|
-
address: `0x${string}`;
|
|
4902
|
-
blockCreated: number;
|
|
4903
|
-
};
|
|
4904
|
-
multicall3: {
|
|
4905
|
-
address: `0x${string}`;
|
|
4906
|
-
blockCreated: number;
|
|
4907
|
-
};
|
|
4908
|
-
};
|
|
4909
4909
|
} | {
|
|
4910
4910
|
blockExplorers: {
|
|
4911
4911
|
readonly default: {
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
export declare function getDecimals({ chainId, tokenAddress, }: {
|
|
3
|
-
chainId: string;
|
|
4
|
-
tokenAddress: Address;
|
|
5
|
-
}): Promise<number>;
|
|
6
1
|
export declare function generateRandomCheckoutSalt(): bigint;
|
|
7
2
|
export declare function roundToNearestBottomTenth(n: number): number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/core",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Funkit core SDK provides feature-rich and extensible smart wallets built on account abstraction",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"ethers": "5.7.2",
|
|
26
26
|
"uuid": "^9.0.0",
|
|
27
27
|
"viem": "2.17.0",
|
|
28
|
-
"@funkit/api-base": "1.
|
|
28
|
+
"@funkit/api-base": "1.3.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/big.js": "^6.2.2",
|