@reown/appkit-adapter-wagmi 1.6.1 → 1.6.2
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/client.js +25 -3
- package/dist/esm/src/client.js.map +1 -1
- package/dist/esm/src/utils/LimitterUtil.js +21 -0
- package/dist/esm/src/utils/LimitterUtil.js.map +1 -0
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/src/client.d.ts +9 -0
- package/dist/types/src/utils/LimitterUtil.d.ts +12 -0
- package/package.json +9 -9
|
@@ -3,17 +3,25 @@ import { AdapterBlueprint } from '@reown/appkit/adapters';
|
|
|
3
3
|
import { type Config, type CreateConfigParameters } from '@wagmi/core';
|
|
4
4
|
import { type Chain } from '@wagmi/core/chains';
|
|
5
5
|
import { AppKit, type AppKitOptions } from '@reown/appkit';
|
|
6
|
+
interface PendingTransactionsFilter {
|
|
7
|
+
enable: boolean;
|
|
8
|
+
pollingInterval?: number;
|
|
9
|
+
}
|
|
6
10
|
export declare class WagmiAdapter extends AdapterBlueprint {
|
|
7
11
|
wagmiChains: readonly [Chain, ...Chain[]] | undefined;
|
|
8
12
|
wagmiConfig: Config;
|
|
9
13
|
adapterType: string;
|
|
14
|
+
private pendingTransactionsFilter;
|
|
15
|
+
private unwatchPendingTransactions;
|
|
10
16
|
constructor(configParams: Partial<CreateConfigParameters> & {
|
|
11
17
|
networks: AppKitNetwork[];
|
|
18
|
+
pendingTransactionsFilter?: PendingTransactionsFilter;
|
|
12
19
|
projectId: string;
|
|
13
20
|
});
|
|
14
21
|
getAccounts(params: AdapterBlueprint.GetAccountsParams): Promise<AdapterBlueprint.GetAccountsResult>;
|
|
15
22
|
private getWagmiConnector;
|
|
16
23
|
private createConfig;
|
|
24
|
+
private setupWatchPendingTransactions;
|
|
17
25
|
private setupWatchers;
|
|
18
26
|
private addWagmiConnectors;
|
|
19
27
|
signMessage(params: AdapterBlueprint.SignMessageParams): Promise<AdapterBlueprint.SignMessageResult>;
|
|
@@ -38,3 +46,4 @@ export declare class WagmiAdapter extends AdapterBlueprint {
|
|
|
38
46
|
grantPermissions(params: AdapterBlueprint.GrantPermissionsParams): Promise<unknown>;
|
|
39
47
|
revokePermissions(params: AdapterBlueprint.RevokePermissionsParams): Promise<`0x${string}`>;
|
|
40
48
|
}
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface LimitteStoreUtilState {
|
|
2
|
+
pendingTransactions: number;
|
|
3
|
+
}
|
|
4
|
+
type StateKey = keyof LimitteStoreUtilState;
|
|
5
|
+
export declare const LimitterUtil: {
|
|
6
|
+
state: LimitteStoreUtilState;
|
|
7
|
+
subscribeKey<K extends "pendingTransactions">(key: K, callback: (value: LimitteStoreUtilState[K]) => void): () => void;
|
|
8
|
+
increase(value: StateKey): void;
|
|
9
|
+
decrease(value: StateKey): void;
|
|
10
|
+
reset(value: StateKey): void;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-adapter-wagmi",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/esm/src/index.js",
|
|
6
6
|
"types": "./dist/types/src/index.d.ts",
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"@walletconnect/utils": "2.17.2",
|
|
13
13
|
"@walletconnect/universal-provider": "2.17.2",
|
|
14
14
|
"valtio": "1.11.2",
|
|
15
|
-
"@reown/appkit": "1.6.
|
|
16
|
-
"@reown/appkit-common": "1.6.
|
|
17
|
-
"@reown/appkit-core": "1.6.
|
|
18
|
-
"@reown/appkit-polyfills": "1.6.
|
|
19
|
-
"@reown/appkit-scaffold-ui": "1.6.
|
|
20
|
-
"@reown/appkit-utils": "1.6.
|
|
21
|
-
"@reown/appkit-ui": "1.6.
|
|
22
|
-
"@reown/appkit-wallet": "1.6.
|
|
15
|
+
"@reown/appkit": "1.6.2",
|
|
16
|
+
"@reown/appkit-common": "1.6.2",
|
|
17
|
+
"@reown/appkit-core": "1.6.2",
|
|
18
|
+
"@reown/appkit-polyfills": "1.6.2",
|
|
19
|
+
"@reown/appkit-scaffold-ui": "1.6.2",
|
|
20
|
+
"@reown/appkit-utils": "1.6.2",
|
|
21
|
+
"@reown/appkit-ui": "1.6.2",
|
|
22
|
+
"@reown/appkit-wallet": "1.6.2"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@coinbase/wallet-sdk": "4.2.4",
|