@dappworks/kit 0.5.37 → 0.5.39

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.
Files changed (84) hide show
  1. package/dist/aiem.mjs +5 -5
  2. package/dist/{chunk-SPFKGNUY.mjs → chunk-2HNXZE3X.mjs} +396 -373
  3. package/dist/chunk-2HNXZE3X.mjs.map +1 -0
  4. package/dist/{chunk-2BZKMJZX.mjs → chunk-2N4HH4ZF.mjs} +1 -1
  5. package/dist/chunk-2N4HH4ZF.mjs.map +1 -0
  6. package/dist/{chunk-72E76L6J.mjs → chunk-B7RV4C5E.mjs} +3 -3
  7. package/dist/chunk-B7RV4C5E.mjs.map +1 -0
  8. package/dist/{chunk-WMV5O3PI.mjs → chunk-DTCEVRDM.mjs} +33 -6
  9. package/dist/chunk-DTCEVRDM.mjs.map +1 -0
  10. package/dist/{chunk-R66SHRQE.mjs → chunk-GKAU4P5I.mjs} +2 -2
  11. package/dist/chunk-GKAU4P5I.mjs.map +1 -0
  12. package/dist/{chunk-7EL2RQI7.mjs → chunk-IMOLRP7I.mjs} +1 -1
  13. package/dist/chunk-IMOLRP7I.mjs.map +1 -0
  14. package/dist/{chunk-2PD23V7H.mjs → chunk-K7LFG5BA.mjs} +1 -1
  15. package/dist/{chunk-2PD23V7H.mjs.map → chunk-K7LFG5BA.mjs.map} +1 -1
  16. package/dist/{chunk-AVG4JG4V.mjs → chunk-MPNSYZJU.mjs} +6 -6
  17. package/dist/chunk-MPNSYZJU.mjs.map +1 -0
  18. package/dist/{chunk-Z3LJE5QF.mjs → chunk-ONVPCAMQ.mjs} +1 -1
  19. package/dist/chunk-ONVPCAMQ.mjs.map +1 -0
  20. package/dist/{chunk-NKGQRF5D.mjs → chunk-PZ3VSAOC.mjs} +4 -4
  21. package/dist/chunk-PZ3VSAOC.mjs.map +1 -0
  22. package/dist/{chunk-5BTB7HRK.mjs → chunk-QA3E2PJT.mjs} +2 -2
  23. package/dist/chunk-QA3E2PJT.mjs.map +1 -0
  24. package/dist/{chunk-7WJMHFRA.mjs → chunk-R4N52NI2.mjs} +2 -2
  25. package/dist/chunk-R4N52NI2.mjs.map +1 -0
  26. package/dist/{chunk-6F7H4PAA.mjs → chunk-R4SQKVDQ.mjs} +1 -1
  27. package/dist/{chunk-7LPSHBBI.mjs → chunk-WKE3FSON.mjs} +13 -9
  28. package/dist/chunk-WKE3FSON.mjs.map +1 -0
  29. package/dist/{chunk-KIS52LFU.mjs → chunk-XSGTWROT.mjs} +7 -7
  30. package/dist/chunk-XSGTWROT.mjs.map +1 -0
  31. package/dist/dev.mjs +4 -4
  32. package/dist/dev.mjs.map +1 -1
  33. package/dist/experimental.mjs +5 -5
  34. package/dist/experimental.mjs.map +1 -1
  35. package/dist/form.mjs +6 -6
  36. package/dist/form.mjs.map +1 -1
  37. package/dist/index.mjs +12 -12
  38. package/dist/inspector.mjs +1 -1
  39. package/dist/inspector.mjs.map +1 -1
  40. package/dist/jsoncomponent.mjs +1 -1
  41. package/dist/jsoncomponent.mjs.map +1 -1
  42. package/dist/jsontable.mjs +6 -6
  43. package/dist/metrics.mjs +6 -6
  44. package/dist/metrics.mjs.map +1 -1
  45. package/dist/plugins.mjs +9 -9
  46. package/dist/plugins.mjs.map +1 -1
  47. package/dist/ui.mjs +3 -3
  48. package/dist/ui.mjs.map +1 -1
  49. package/dist/utils.mjs +4 -4
  50. package/dist/wallet.mjs +13 -13
  51. package/dist/wallet.mjs.map +1 -1
  52. package/package.json +3 -3
  53. package/dist/PaginationState-c19e621a.d.ts +0 -17
  54. package/dist/PromiseState-e64b3707.d.ts +0 -57
  55. package/dist/StorageState-cfd942cb.d.ts +0 -48
  56. package/dist/aiem.d.mts +0 -124
  57. package/dist/chunk-2BZKMJZX.mjs.map +0 -1
  58. package/dist/chunk-5BTB7HRK.mjs.map +0 -1
  59. package/dist/chunk-72E76L6J.mjs.map +0 -1
  60. package/dist/chunk-7EL2RQI7.mjs.map +0 -1
  61. package/dist/chunk-7LPSHBBI.mjs.map +0 -1
  62. package/dist/chunk-7WJMHFRA.mjs.map +0 -1
  63. package/dist/chunk-AVG4JG4V.mjs.map +0 -1
  64. package/dist/chunk-KIS52LFU.mjs.map +0 -1
  65. package/dist/chunk-NKGQRF5D.mjs.map +0 -1
  66. package/dist/chunk-R66SHRQE.mjs.map +0 -1
  67. package/dist/chunk-SPFKGNUY.mjs.map +0 -1
  68. package/dist/chunk-WMV5O3PI.mjs.map +0 -1
  69. package/dist/chunk-Z3LJE5QF.mjs.map +0 -1
  70. package/dist/dev.d.mts +0 -26
  71. package/dist/experimental.d.mts +0 -190
  72. package/dist/form.d.mts +0 -384
  73. package/dist/index-38be834f.d.ts +0 -3
  74. package/dist/index.d.mts +0 -90
  75. package/dist/inspector.d.mts +0 -15
  76. package/dist/jsoncomponent.d.mts +0 -22
  77. package/dist/jsontable.d.mts +0 -126
  78. package/dist/metrics.d.mts +0 -121
  79. package/dist/plugins.d.mts +0 -118
  80. package/dist/root-218afa4f.d.ts +0 -111
  81. package/dist/ui.d.mts +0 -29
  82. package/dist/utils.d.mts +0 -148
  83. package/dist/wallet.d.mts +0 -193
  84. /package/dist/{chunk-6F7H4PAA.mjs.map → chunk-R4SQKVDQ.mjs.map} +0 -0
package/dist/wallet.d.mts DELETED
@@ -1,193 +0,0 @@
1
- import React from 'react';
2
- import { Chain } from 'viem/chains';
3
- import { a as PromiseHookData, S as StorageState } from './StorageState-cfd942cb.js';
4
- import { S as Store } from './root-218afa4f.js';
5
- import { WalletClient, PublicClient, HttpTransport, TransactionReceipt } from 'viem';
6
- import EventEmitter from 'events';
7
- import { SwitchChainMutateAsync } from 'wagmi/query';
8
- import * as wagmi from 'wagmi';
9
- import { Config } from 'wagmi';
10
- import { Chain as Chain$1 } from '@rainbow-me/rainbowkit';
11
- import * as _rainbow_me_rainbowkit_dist_config_getDefaultConfig from '@rainbow-me/rainbowkit/dist/config/getDefaultConfig';
12
- import 'mobx';
13
- import 'typed-emitter';
14
-
15
- declare const WalletProvider: (({ children, theme, appName, supportedChains, compatibleMode, rainbowKitProps, projectId }: {
16
- children: React.ReactNode;
17
- theme?: "dark" | "light";
18
- appName?: string;
19
- supportedChains?: Chain[];
20
- compatibleMode?: boolean;
21
- debug?: boolean;
22
- rainbowKitProps?: any;
23
- projectId?: string;
24
- }) => React.JSX.Element) & {
25
- displayName: string;
26
- };
27
-
28
- type NetworkObject = {
29
- name: string;
30
- chainId: number;
31
- rpcUrl: string;
32
- logoUrl: string;
33
- explorerUrl: string;
34
- explorerName: string;
35
- nativeCoin: string;
36
- type: 'mainnet' | 'testnet';
37
- };
38
- type WalletTransactionHistoryType = {
39
- chainId: number;
40
- tx?: string;
41
- msg: string;
42
- timestamp: number;
43
- type: string;
44
- status: 'loading' | 'success' | 'fail';
45
- };
46
- type AddressMode = 'io' | '0x';
47
- declare const iotex: Chain;
48
- declare const iotexTestnet: Chain;
49
-
50
- declare class WalletStore implements Store {
51
- sid: string;
52
- autoObservable: boolean;
53
- account: `0x${string}`;
54
- isSuccessDialogOpen: boolean;
55
- get isInSafeApp(): boolean;
56
- isLedger: boolean;
57
- isConnect: boolean;
58
- walletClient: WalletClient;
59
- event: EventEmitter<[never]>;
60
- switchChain: SwitchChainMutateAsync<Config, unknown> | undefined;
61
- updateTicker: number;
62
- addressMode: AddressMode;
63
- isIoTeXChain: boolean;
64
- setAddressMode(mode: AddressMode): void;
65
- get accountFormat(): string;
66
- get connectAccountEllipsisFormat(): string;
67
- get accountEllipsisFormat(): string;
68
- get supportedChains(): Chain$1[];
69
- chain: Chain$1 | undefined;
70
- openConnectModal: any;
71
- disconnect: any;
72
- balance: PromiseHookData<() => Promise<{
73
- value: string;
74
- format: string;
75
- originFormat: string;
76
- decimals: string;
77
- }>, Promise<{
78
- value: string;
79
- format: string;
80
- originFormat: string;
81
- decimals: string;
82
- }>>;
83
- constructor(args?: Partial<WalletStore>);
84
- use(): void;
85
- private useWalletClientWithCompatibleMode;
86
- useWalletClientWithoutCompatibleMode(): void;
87
- get publicClient(): PublicClient<HttpTransport, Chain$1, any, any>;
88
- set(args: Partial<WalletStore>): void;
89
- toJSON(): {
90
- account: `0x${string}`;
91
- };
92
- prepare(chainId?: number): Promise<WalletStore>;
93
- waitForTransactionReceipt({ hash }: {
94
- hash: any;
95
- }): Promise<TransactionReceipt>;
96
- static SendTx(...args: Parameters<WalletStore['sendTx']>): Promise<TransactionReceipt>;
97
- static SendRawTx(...args: Parameters<WalletStore['sendRawTx']>): Promise<TransactionReceipt>;
98
- sendTx({ chainId, tx, autoAlert, loadingText, successText, onError, historyItem, showSuccessDialog, }: {
99
- chainId: number | string;
100
- tx: any;
101
- autoAlert?: boolean;
102
- loadingText?: string;
103
- successText?: string;
104
- showSuccessDialog?: boolean;
105
- historyItem?: Pick<WalletTransactionHistoryType, 'msg' | 'type'>;
106
- onError?: (error: any) => void;
107
- }): Promise<TransactionReceipt>;
108
- sendRawTx({ chainId, address, data, value, autoAlert, onSended, onSuccess, onError, historyItem, loadingText, showSuccessDialog, }: {
109
- loadingText?: string;
110
- chainId: number | string;
111
- address: string;
112
- data: string | null;
113
- value?: string;
114
- autoRefresh?: boolean;
115
- autoAlert?: boolean;
116
- historyItem?: Pick<WalletTransactionHistoryType, 'msg' | 'type'>;
117
- showTransactionSubmitDialog?: boolean;
118
- showSuccessDialog?: boolean;
119
- onSended?: ({ res }: {
120
- res: TransactionReceipt;
121
- }) => void;
122
- onSuccess?: ({ res }: {
123
- res: TransactionReceipt;
124
- }) => void;
125
- onError?: (error: any) => void;
126
- }): Promise<TransactionReceipt | undefined>;
127
- signMessage(message: string): Promise<string>;
128
- }
129
-
130
- declare class WalletRpcStore implements Store {
131
- sid: string;
132
- autoObservable: boolean;
133
- curRpc: StorageState<unknown>;
134
- isAutoSelectRpc: StorageState<unknown>;
135
- customRpc: string;
136
- rpcList: StorageState<unknown>;
137
- showCustomRpc: boolean;
138
- get currentRpc(): any;
139
- addCustomRpc(): string;
140
- addToMetamask(url: any): Promise<void>;
141
- switchOrAddChain(chainId: number): Promise<unknown>;
142
- addToMetamaskById(id: number): Promise<unknown>;
143
- refresh(): void;
144
- latencyColor(latency: number): "text-red-500" | "text-green-500" | "text-yellow-500";
145
- testRpcFunction(url: string): Promise<{
146
- url: string;
147
- lentency: number;
148
- height: number;
149
- }>;
150
- testRpc(): void;
151
- removeRpc(name: string): void;
152
- scoreIcon(score: number): React.JSX.Element;
153
- get wallet(): WalletStore;
154
- autoSelectRpc(): Promise<void>;
155
- }
156
- declare class WalletHistoryStore implements Store {
157
- sid: string;
158
- isRender: boolean;
159
- autoObservable: boolean;
160
- set(params: Partial<WalletHistoryStore>): void;
161
- private history;
162
- get historyList(): WalletTransactionHistoryType[];
163
- recordHistory(item: WalletTransactionHistoryType): void;
164
- updateHistoryStatusByTx(tx: string | null, status: 'loading' | 'success' | 'fail'): void;
165
- clearHistory(): void;
166
- }
167
-
168
- declare class WalletConfigStore implements Store {
169
- sid: string;
170
- autoObservable: boolean;
171
- appName: string;
172
- projectId: string;
173
- supportedChains: Chain$1[];
174
- defaultChainId: number;
175
- updateTicker: number;
176
- walletUpdateTick: number;
177
- isConnect: boolean;
178
- isInSafeApp: boolean;
179
- compatibleMode: boolean;
180
- constructor(args: Partial<WalletConfigStore>);
181
- set(params: Partial<WalletConfigStore>): void;
182
- get reconnectOnMount(): boolean;
183
- get rainbowKitConfig(): wagmi.Config<_rainbow_me_rainbowkit_dist_config_getDefaultConfig._chains, _rainbow_me_rainbowkit_dist_config_getDefaultConfig._transports, wagmi.CreateConnectorFn<unknown, Record<string, unknown>, Record<string, unknown>>[]>;
184
- }
185
-
186
- declare const RpcList: (() => React.JSX.Element) & {
187
- displayName: string;
188
- };
189
-
190
- declare const ConnectLedger: () => Promise<void>;
191
- declare const DisconnectLedger: () => void;
192
-
193
- export { AddressMode, ConnectLedger, DisconnectLedger, NetworkObject, RpcList, WalletConfigStore, WalletHistoryStore, WalletProvider, WalletRpcStore, WalletStore, WalletTransactionHistoryType, iotex, iotexTestnet };