@reown/appkit-wallet 1.1.4 → 1.1.6
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/esm/src/W3mFrameConstants.js +1 -0
- package/dist/esm/src/W3mFrameConstants.js.map +1 -1
- package/dist/esm/src/W3mFrameSchema.js +5 -0
- package/dist/esm/src/W3mFrameSchema.js.map +1 -1
- package/dist/esm/src/W3mFrameTypes.js +1 -1
- package/dist/esm/src/W3mFrameTypes.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/W3mFrameSchema.d.ts +26 -1
- package/dist/types/src/W3mFrameTypes.d.ts +2 -2
- package/package.json +5 -5
|
@@ -925,6 +925,16 @@ export declare const WalletGrantPermissionsRequest: z.ZodObject<{
|
|
|
925
925
|
params: any[];
|
|
926
926
|
method: "wallet_grantPermissions";
|
|
927
927
|
}>;
|
|
928
|
+
export declare const WalletRevokePermissionsRequest: z.ZodObject<{
|
|
929
|
+
method: z.ZodLiteral<"wallet_revokePermissions">;
|
|
930
|
+
params: z.ZodAny;
|
|
931
|
+
}, "strip", z.ZodTypeAny, {
|
|
932
|
+
method: "wallet_revokePermissions";
|
|
933
|
+
params?: any;
|
|
934
|
+
}, {
|
|
935
|
+
method: "wallet_revokePermissions";
|
|
936
|
+
params?: any;
|
|
937
|
+
}>;
|
|
928
938
|
export declare const FrameSession: z.ZodObject<{
|
|
929
939
|
token: z.ZodString;
|
|
930
940
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1187,7 +1197,7 @@ export declare const W3mFrameSchema: {
|
|
|
1187
1197
|
}>]>, z.ZodObject<{
|
|
1188
1198
|
id: z.ZodOptional<z.ZodString>;
|
|
1189
1199
|
type: z.ZodLiteral<"@w3m-app/RPC_REQUEST">;
|
|
1190
|
-
payload: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
1200
|
+
payload: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
1191
1201
|
method: z.ZodLiteral<"personal_sign">;
|
|
1192
1202
|
params: z.ZodArray<z.ZodAny, "many">;
|
|
1193
1203
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1729,6 +1739,15 @@ export declare const W3mFrameSchema: {
|
|
|
1729
1739
|
}, {
|
|
1730
1740
|
params: any[];
|
|
1731
1741
|
method: "wallet_grantPermissions";
|
|
1742
|
+
}>]>, z.ZodObject<{
|
|
1743
|
+
method: z.ZodLiteral<"wallet_revokePermissions">;
|
|
1744
|
+
params: z.ZodAny;
|
|
1745
|
+
}, "strip", z.ZodTypeAny, {
|
|
1746
|
+
method: "wallet_revokePermissions";
|
|
1747
|
+
params?: any;
|
|
1748
|
+
}, {
|
|
1749
|
+
method: "wallet_revokePermissions";
|
|
1750
|
+
params?: any;
|
|
1732
1751
|
}>]>;
|
|
1733
1752
|
}, "strip", z.ZodTypeAny, {
|
|
1734
1753
|
type: "@w3m-app/RPC_REQUEST";
|
|
@@ -1884,6 +1903,9 @@ export declare const W3mFrameSchema: {
|
|
|
1884
1903
|
} | {
|
|
1885
1904
|
params: any[];
|
|
1886
1905
|
method: "wallet_grantPermissions";
|
|
1906
|
+
} | {
|
|
1907
|
+
method: "wallet_revokePermissions";
|
|
1908
|
+
params?: any;
|
|
1887
1909
|
};
|
|
1888
1910
|
id?: string | undefined;
|
|
1889
1911
|
}, {
|
|
@@ -2040,6 +2062,9 @@ export declare const W3mFrameSchema: {
|
|
|
2040
2062
|
} | {
|
|
2041
2063
|
params: any[];
|
|
2042
2064
|
method: "wallet_grantPermissions";
|
|
2065
|
+
} | {
|
|
2066
|
+
method: "wallet_revokePermissions";
|
|
2067
|
+
params?: any;
|
|
2043
2068
|
};
|
|
2044
2069
|
id?: string | undefined;
|
|
2045
2070
|
}>]>, z.ZodObject<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { W3mFrameSchema, AppConnectEmailRequest, AppConnectOtpRequest, AppSwitchNetworkRequest, FrameConnectEmailResponse, FrameGetChainIdResponse, FrameGetUserResponse, FrameIsConnectedResponse, RpcPersonalSignRequest, RpcResponse, RpcEthSendTransactionRequest, RpcEthSignTypedDataV4, RpcEthAccountsRequest, RpcEthEstimateGas, RpcEthGasPrice, RpcEthBlockNumber, RpcEthGetTransactionByHash, RpcEthGetBlockByNumber, RpcEthCall, RpcEthFeeHistory, RpcEthGetAccount, RpcEthGetBalance, RpcEthGetBlockyByHash, RpcUnistallFilter, RpcEthSyncing, RpcEthSendRawTransaction, RpcEthNewPendingTransactionFilter, RpcEthNewFilter, RpcEthNewBlockFilter, RpcEthMaxPriorityFeePerGas, RpcEthGetUncleCountByBlockNumber, RpcEthGetUncleCountByBlockHash, RpcEthGetTransactionReceipt, RpcEthGetTransactionCount, RpcEthGetTransactionByBlockNumberAndIndex, RpcEthGetTransactionByBlockHashAndIndex, RpcEthGetStorageAt, RpcEthGetProof, RpcEthGetLogs, RpcEthGetFilterLogs, RpcEthGetFilter, RpcEthGetCode, RcpEthGetBlockTransactionCountByNumber, RcpEthGetBlockTransactionCountByHash, RpcEthGetBlockReceipts, WalletSendCallsRequest, WalletGetCallsReceiptRequest, FrameSession, AppGetUserRequest, AppUpdateEmailRequest, FrameUpdateEmailSecondaryOtpResponse, AppUpdateEmailPrimaryOtpRequest, AppUpdateEmailSecondaryOtpRequest, AppSyncThemeRequest, RpcEthChainId, FrameSwitchNetworkResponse, AppSyncDappDataRequest, FrameGetSmartAccountEnabledNetworksResponse, FrameUpdateEmailResponse, AppGetSocialRedirectUriRequest, FrameGetSocialRedirectUriResponse, FrameConnectSocialResponse, FrameConnectFarcasterResponse, FrameGetFarcasterUriResponse, AppConnectSocialRequest, AppSetPreferredAccountRequest, FrameSetPreferredAccountResponse, WalletGetCapabilitiesRequest, WalletGrantPermissionsRequest, RpcSolanaSignMessageRequest, RpcSolanaSignTransactionRequest, RpcSolanaSignAndSendTransactionRequest, RpcSolanaSignAllTransactionsRequest, FrameReadyResponse } from './W3mFrameSchema.js';
|
|
2
|
+
import { W3mFrameSchema, AppConnectEmailRequest, AppConnectOtpRequest, AppSwitchNetworkRequest, FrameConnectEmailResponse, FrameGetChainIdResponse, FrameGetUserResponse, FrameIsConnectedResponse, RpcPersonalSignRequest, RpcResponse, RpcEthSendTransactionRequest, RpcEthSignTypedDataV4, RpcEthAccountsRequest, RpcEthEstimateGas, RpcEthGasPrice, RpcEthBlockNumber, RpcEthGetTransactionByHash, RpcEthGetBlockByNumber, RpcEthCall, RpcEthFeeHistory, RpcEthGetAccount, RpcEthGetBalance, RpcEthGetBlockyByHash, RpcUnistallFilter, RpcEthSyncing, RpcEthSendRawTransaction, RpcEthNewPendingTransactionFilter, RpcEthNewFilter, RpcEthNewBlockFilter, RpcEthMaxPriorityFeePerGas, RpcEthGetUncleCountByBlockNumber, RpcEthGetUncleCountByBlockHash, RpcEthGetTransactionReceipt, RpcEthGetTransactionCount, RpcEthGetTransactionByBlockNumberAndIndex, RpcEthGetTransactionByBlockHashAndIndex, RpcEthGetStorageAt, RpcEthGetProof, RpcEthGetLogs, RpcEthGetFilterLogs, RpcEthGetFilter, RpcEthGetCode, RcpEthGetBlockTransactionCountByNumber, RcpEthGetBlockTransactionCountByHash, RpcEthGetBlockReceipts, WalletSendCallsRequest, WalletGetCallsReceiptRequest, FrameSession, AppGetUserRequest, AppUpdateEmailRequest, FrameUpdateEmailSecondaryOtpResponse, AppUpdateEmailPrimaryOtpRequest, AppUpdateEmailSecondaryOtpRequest, AppSyncThemeRequest, RpcEthChainId, FrameSwitchNetworkResponse, AppSyncDappDataRequest, FrameGetSmartAccountEnabledNetworksResponse, FrameUpdateEmailResponse, AppGetSocialRedirectUriRequest, FrameGetSocialRedirectUriResponse, FrameConnectSocialResponse, FrameConnectFarcasterResponse, FrameGetFarcasterUriResponse, AppConnectSocialRequest, AppSetPreferredAccountRequest, FrameSetPreferredAccountResponse, WalletGetCapabilitiesRequest, WalletGrantPermissionsRequest, RpcSolanaSignMessageRequest, RpcSolanaSignTransactionRequest, RpcSolanaSignAndSendTransactionRequest, RpcSolanaSignAllTransactionsRequest, FrameReadyResponse, WalletRevokePermissionsRequest } from './W3mFrameSchema.js';
|
|
3
3
|
import type { W3mFrameRpcConstants } from './W3mFrameConstants.js';
|
|
4
4
|
import type { CaipNetworkId } from '@reown/appkit-common';
|
|
5
5
|
export declare namespace W3mFrameTypes {
|
|
@@ -54,7 +54,7 @@ export declare namespace W3mFrameTypes {
|
|
|
54
54
|
rpcUrl: string;
|
|
55
55
|
chainId: number | CaipNetworkId;
|
|
56
56
|
}
|
|
57
|
-
type RPCRequest = z.infer<typeof RpcEthAccountsRequest> | z.infer<typeof RpcEthBlockNumber> | z.infer<typeof RpcEthCall> | z.infer<typeof RpcEthChainId> | z.infer<typeof RpcEthEstimateGas> | z.infer<typeof RpcEthFeeHistory> | z.infer<typeof RpcEthGasPrice> | z.infer<typeof RpcEthGetAccount> | z.infer<typeof RpcEthGetBalance> | z.infer<typeof RpcEthGetBlockyByHash> | z.infer<typeof RpcEthGetBlockByNumber> | z.infer<typeof RpcEthGetBlockReceipts> | z.infer<typeof RcpEthGetBlockTransactionCountByHash> | z.infer<typeof RcpEthGetBlockTransactionCountByNumber> | z.infer<typeof RpcEthGetCode> | z.infer<typeof RpcEthGetFilter> | z.infer<typeof RpcEthGetFilterLogs> | z.infer<typeof RpcEthGetLogs> | z.infer<typeof RpcEthGetProof> | z.infer<typeof RpcEthGetStorageAt> | z.infer<typeof RpcEthGetTransactionByBlockHashAndIndex> | z.infer<typeof RpcEthGetTransactionByBlockNumberAndIndex> | z.infer<typeof RpcEthGetTransactionByHash> | z.infer<typeof RpcEthGetTransactionCount> | z.infer<typeof RpcEthGetTransactionReceipt> | z.infer<typeof RpcEthGetUncleCountByBlockHash> | z.infer<typeof RpcEthGetUncleCountByBlockNumber> | z.infer<typeof RpcEthMaxPriorityFeePerGas> | z.infer<typeof RpcEthNewBlockFilter> | z.infer<typeof RpcEthNewFilter> | z.infer<typeof RpcEthNewPendingTransactionFilter> | z.infer<typeof RpcEthSendRawTransaction> | z.infer<typeof RpcEthSyncing> | z.infer<typeof RpcUnistallFilter> | z.infer<typeof RpcPersonalSignRequest> | z.infer<typeof RpcEthSignTypedDataV4> | z.infer<typeof RpcEthSendTransactionRequest> | z.infer<typeof RpcSolanaSignMessageRequest> | z.infer<typeof RpcSolanaSignTransactionRequest> | z.infer<typeof RpcSolanaSignAllTransactionsRequest> | z.infer<typeof RpcSolanaSignAndSendTransactionRequest> | z.infer<typeof WalletSendCallsRequest> | z.infer<typeof WalletGetCallsReceiptRequest> | z.infer<typeof WalletGetCapabilitiesRequest> | z.infer<typeof WalletGrantPermissionsRequest>;
|
|
57
|
+
type RPCRequest = z.infer<typeof RpcEthAccountsRequest> | z.infer<typeof RpcEthBlockNumber> | z.infer<typeof RpcEthCall> | z.infer<typeof RpcEthChainId> | z.infer<typeof RpcEthEstimateGas> | z.infer<typeof RpcEthFeeHistory> | z.infer<typeof RpcEthGasPrice> | z.infer<typeof RpcEthGetAccount> | z.infer<typeof RpcEthGetBalance> | z.infer<typeof RpcEthGetBlockyByHash> | z.infer<typeof RpcEthGetBlockByNumber> | z.infer<typeof RpcEthGetBlockReceipts> | z.infer<typeof RcpEthGetBlockTransactionCountByHash> | z.infer<typeof RcpEthGetBlockTransactionCountByNumber> | z.infer<typeof RpcEthGetCode> | z.infer<typeof RpcEthGetFilter> | z.infer<typeof RpcEthGetFilterLogs> | z.infer<typeof RpcEthGetLogs> | z.infer<typeof RpcEthGetProof> | z.infer<typeof RpcEthGetStorageAt> | z.infer<typeof RpcEthGetTransactionByBlockHashAndIndex> | z.infer<typeof RpcEthGetTransactionByBlockNumberAndIndex> | z.infer<typeof RpcEthGetTransactionByHash> | z.infer<typeof RpcEthGetTransactionCount> | z.infer<typeof RpcEthGetTransactionReceipt> | z.infer<typeof RpcEthGetUncleCountByBlockHash> | z.infer<typeof RpcEthGetUncleCountByBlockNumber> | z.infer<typeof RpcEthMaxPriorityFeePerGas> | z.infer<typeof RpcEthNewBlockFilter> | z.infer<typeof RpcEthNewFilter> | z.infer<typeof RpcEthNewPendingTransactionFilter> | z.infer<typeof RpcEthSendRawTransaction> | z.infer<typeof RpcEthSyncing> | z.infer<typeof RpcUnistallFilter> | z.infer<typeof RpcPersonalSignRequest> | z.infer<typeof RpcEthSignTypedDataV4> | z.infer<typeof RpcEthSendTransactionRequest> | z.infer<typeof RpcSolanaSignMessageRequest> | z.infer<typeof RpcSolanaSignTransactionRequest> | z.infer<typeof RpcSolanaSignAllTransactionsRequest> | z.infer<typeof RpcSolanaSignAndSendTransactionRequest> | z.infer<typeof WalletSendCallsRequest> | z.infer<typeof WalletGetCallsReceiptRequest> | z.infer<typeof WalletGetCapabilitiesRequest> | z.infer<typeof WalletGrantPermissionsRequest> | z.infer<typeof WalletRevokePermissionsRequest>;
|
|
58
58
|
type RPCResponse = z.infer<typeof RpcResponse>;
|
|
59
59
|
type FrameSessionType = z.infer<typeof FrameSession>;
|
|
60
60
|
type AccountType = (typeof W3mFrameRpcConstants.ACCOUNT_TYPES)[keyof typeof W3mFrameRpcConstants.ACCOUNT_TYPES];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-wallet",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@walletconnect/logger": "2.1.2",
|
|
13
13
|
"zod": "3.22.4",
|
|
14
|
-
"@reown/appkit-common": "1.1.
|
|
15
|
-
"@reown/appkit-polyfills": "1.1.
|
|
14
|
+
"@reown/appkit-common": "1.1.6",
|
|
15
|
+
"@reown/appkit-polyfills": "1.1.6"
|
|
16
16
|
},
|
|
17
17
|
"author": "Reown <support@reown.com> (https://reown.com)",
|
|
18
18
|
"license": "Apache-2.0",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"jsdom": "24.1.0",
|
|
29
|
-
"vitest": "2.
|
|
30
|
-
"@vitest/coverage-v8": "2.
|
|
29
|
+
"vitest": "2.1.3",
|
|
30
|
+
"@vitest/coverage-v8": "2.1.3"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build:clean": "rm -rf dist",
|