@reown/appkit-core 1.6.5-rc.4.0 → 1.6.5
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,6 +1,6 @@
|
|
|
1
1
|
import type { CaipAddress, CaipNetworkId } from '@reown/appkit-common';
|
|
2
2
|
import { FetchUtil } from '../utils/FetchUtil.js';
|
|
3
|
-
import type { BlockchainApiBalanceResponse, BlockchainApiGasPriceRequest, BlockchainApiGasPriceResponse, BlockchainApiGenerateApproveCalldataRequest, BlockchainApiGenerateApproveCalldataResponse, BlockchainApiGenerateSwapCalldataRequest, BlockchainApiGenerateSwapCalldataResponse, BlockchainApiIdentityRequest, BlockchainApiIdentityResponse, BlockchainApiLookupEnsName, BlockchainApiRegisterNameParams, BlockchainApiSuggestionResponse, BlockchainApiSwapAllowanceRequest,
|
|
3
|
+
import type { BlockchainApiBalanceResponse, BlockchainApiGasPriceRequest, BlockchainApiGasPriceResponse, BlockchainApiGenerateApproveCalldataRequest, BlockchainApiGenerateApproveCalldataResponse, BlockchainApiGenerateSwapCalldataRequest, BlockchainApiGenerateSwapCalldataResponse, BlockchainApiIdentityRequest, BlockchainApiIdentityResponse, BlockchainApiLookupEnsName, BlockchainApiRegisterNameParams, BlockchainApiSuggestionResponse, BlockchainApiSwapAllowanceRequest, BlockchainApiSwapQuoteRequest, BlockchainApiSwapQuoteResponse, BlockchainApiSwapTokensRequest, BlockchainApiSwapTokensResponse, BlockchainApiTokenPriceRequest, BlockchainApiTokenPriceResponse, BlockchainApiTransactionsRequest, BlockchainApiTransactionsResponse, GenerateOnRampUrlArgs, GetQuoteArgs, OnrampQuote } from '../utils/TypeUtil.js';
|
|
4
4
|
export interface BlockchainApiControllerState {
|
|
5
5
|
clientId: string | null;
|
|
6
6
|
api: FetchUtil;
|
|
@@ -26,7 +26,9 @@ export declare const BlockchainApiController: {
|
|
|
26
26
|
fetchSwapQuote({ projectId, amount, userAddress, from, to, gasPrice }: BlockchainApiSwapQuoteRequest): Promise<BlockchainApiSwapQuoteResponse>;
|
|
27
27
|
fetchSwapTokens({ projectId, chainId }: BlockchainApiSwapTokensRequest): Promise<BlockchainApiSwapTokensResponse>;
|
|
28
28
|
fetchTokenPrice({ projectId, addresses }: BlockchainApiTokenPriceRequest): Promise<BlockchainApiTokenPriceResponse>;
|
|
29
|
-
fetchSwapAllowance({ projectId, tokenAddress, userAddress }: BlockchainApiSwapAllowanceRequest): Promise<
|
|
29
|
+
fetchSwapAllowance({ projectId, tokenAddress, userAddress }: BlockchainApiSwapAllowanceRequest): Promise<{
|
|
30
|
+
allowance: string;
|
|
31
|
+
}>;
|
|
30
32
|
fetchGasPrice({ projectId, chainId }: BlockchainApiGasPriceRequest): Promise<BlockchainApiGasPriceResponse>;
|
|
31
33
|
generateSwapCalldata({ amount, from, projectId, to, userAddress }: BlockchainApiGenerateSwapCalldataRequest): Promise<BlockchainApiGenerateSwapCalldataResponse>;
|
|
32
34
|
generateApproveCalldata({ from, projectId, to, userAddress }: BlockchainApiGenerateApproveCalldataRequest): Promise<BlockchainApiGenerateApproveCalldataResponse>;
|
|
@@ -217,8 +217,8 @@ export declare const OptionsController: {
|
|
|
217
217
|
};
|
|
218
218
|
} | undefined;
|
|
219
219
|
readonly customWallets?: readonly {
|
|
220
|
-
readonly id: string;
|
|
221
220
|
readonly name: string;
|
|
221
|
+
readonly id: string;
|
|
222
222
|
readonly homepage?: string | undefined;
|
|
223
223
|
readonly image_url?: string | undefined;
|
|
224
224
|
readonly mobile_link?: string | null | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-core",
|
|
3
|
-
"version": "1.6.5
|
|
3
|
+
"version": "1.6.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/esm/exports/index.js",
|
|
6
6
|
"types": "./dist/types/exports/index.d.ts",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@walletconnect/universal-provider": "2.17.5",
|
|
40
40
|
"valtio": "1.11.2",
|
|
41
41
|
"viem": "2.x",
|
|
42
|
-
"@reown/appkit-common": "1.6.5
|
|
43
|
-
"@reown/appkit-wallet": "1.6.5
|
|
42
|
+
"@reown/appkit-common": "1.6.5",
|
|
43
|
+
"@reown/appkit-wallet": "1.6.5"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {},
|
|
46
46
|
"devDependencies": {
|