@awarizon/web3 1.3.2 → 1.3.4
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.d.mts +396 -8
- package/dist/index.d.ts +396 -8
- package/dist/index.js +3448 -116
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3408 -42
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -14
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,333 @@
|
|
|
1
|
-
import { PublicClient,
|
|
1
|
+
import { Chain, PublicClient, Transport, Address, WalletClient, Hex, Hash, TransactionReceipt, Abi, AbiFunction, AbiEvent } from 'viem';
|
|
2
2
|
export { Abi, Address, Chain, Hash, TransactionReceipt, WalletClient } from 'viem';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import { AbiConstructor } from 'abitype';
|
|
4
|
+
|
|
5
|
+
interface CreatedWallet {
|
|
6
|
+
/** The Ethereum address (first account at m/44'/60'/0'/0/0) */
|
|
7
|
+
address: Address;
|
|
8
|
+
/** BIP-39 seed phrase — 12 words. Back this up; it is the only way to recover the wallet. */
|
|
9
|
+
mnemonic: string;
|
|
10
|
+
/** BIP-44 derivation path used — matches MetaMask and Phantom */
|
|
11
|
+
derivationPath: string;
|
|
12
|
+
}
|
|
13
|
+
interface ImportedWalletFromMnemonic {
|
|
14
|
+
address: Address;
|
|
15
|
+
mnemonic: string;
|
|
16
|
+
/** BIP-44 derivation path used: m/44'/60'/0'/0/{addressIndex} */
|
|
17
|
+
derivationPath: string;
|
|
18
|
+
}
|
|
19
|
+
interface ImportedWalletFromPrivateKey {
|
|
20
|
+
address: Address;
|
|
21
|
+
}
|
|
22
|
+
interface WalletEngineConfig {
|
|
23
|
+
chain: Chain;
|
|
24
|
+
publicClient: PublicClient;
|
|
25
|
+
/** Custom RPC URL to use when creating the internal wallet client */
|
|
26
|
+
rpcUrl?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Optional transport factory invoked when the engine needs to rebuild
|
|
29
|
+
* its internal clients (e.g. after switchChain). When omitted the engine
|
|
30
|
+
* falls back to `http(rpcUrl)`.
|
|
31
|
+
*
|
|
32
|
+
* Pass `getChainTransport` from `@awarizon/core` to get automatic fallback
|
|
33
|
+
* handling for chains with unreliable default public RPCs.
|
|
34
|
+
*/
|
|
35
|
+
getTransport?: (chain: Chain) => Transport;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Any viem-compatible WalletClient, including those produced by wagmi,
|
|
39
|
+
* WalletConnect, or custom providers implementing EIP-1193.
|
|
40
|
+
*/
|
|
41
|
+
type ExternalWalletClient = WalletClient;
|
|
42
|
+
interface EIP1193Provider {
|
|
43
|
+
request(args: {
|
|
44
|
+
method: string;
|
|
45
|
+
params?: unknown[];
|
|
46
|
+
}): Promise<unknown>;
|
|
47
|
+
on?(event: string, handler: (...args: unknown[]) => void): void;
|
|
48
|
+
removeListener?(event: string, handler: (...args: unknown[]) => void): void;
|
|
49
|
+
}
|
|
50
|
+
interface ConnectorInfo {
|
|
51
|
+
/** How this wallet was connected */
|
|
52
|
+
type: 'internal' | 'external' | 'none';
|
|
53
|
+
/** Human-readable connector name, e.g. "MetaMask", "Coinbase Wallet" */
|
|
54
|
+
name?: string;
|
|
55
|
+
/** URL to the connector's icon image */
|
|
56
|
+
icon?: string;
|
|
57
|
+
}
|
|
58
|
+
interface WalletChangeEvent {
|
|
59
|
+
/** Active address after the change, or null if disconnected */
|
|
60
|
+
address: Address | null;
|
|
61
|
+
/** Source of the active wallet after the change */
|
|
62
|
+
type: 'internal' | 'external' | 'none';
|
|
63
|
+
/** Connector name if type is 'external' */
|
|
64
|
+
name?: string;
|
|
65
|
+
}
|
|
66
|
+
interface ChainChangeEvent {
|
|
67
|
+
/** The new chain ID */
|
|
68
|
+
chainId: number;
|
|
69
|
+
/** The full viem Chain object */
|
|
70
|
+
chain: Chain;
|
|
71
|
+
}
|
|
72
|
+
interface SignTypedDataParams {
|
|
73
|
+
domain?: {
|
|
74
|
+
name?: string;
|
|
75
|
+
version?: string;
|
|
76
|
+
chainId?: number | bigint;
|
|
77
|
+
verifyingContract?: Address;
|
|
78
|
+
salt?: Hex;
|
|
79
|
+
};
|
|
80
|
+
types: Record<string, Array<{
|
|
81
|
+
name: string;
|
|
82
|
+
type: string;
|
|
83
|
+
}>>;
|
|
84
|
+
primaryType: string;
|
|
85
|
+
message: Record<string, unknown>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
type WalletChangeCallback = (event: WalletChangeEvent) => void;
|
|
89
|
+
type ChainChangeCallback = (event: ChainChangeEvent) => void;
|
|
90
|
+
/**
|
|
91
|
+
* Manages both internally-generated wallets and externally-injected signers
|
|
92
|
+
* (wagmi, WalletConnect, EIP-1193 providers, raw viem WalletClients).
|
|
93
|
+
*
|
|
94
|
+
* Priority order when resolving the active signer:
|
|
95
|
+
* 1. External wallet client (highest priority)
|
|
96
|
+
* 2. Internal wallet client (private key / mnemonic import)
|
|
97
|
+
*
|
|
98
|
+
* Events:
|
|
99
|
+
* onWalletChange — fires whenever the active wallet address changes
|
|
100
|
+
* onChainChange — fires whenever switchChain() is called
|
|
101
|
+
*/
|
|
102
|
+
declare class WalletEngine {
|
|
103
|
+
private config;
|
|
104
|
+
private internalClient;
|
|
105
|
+
private externalClient;
|
|
106
|
+
private _connectorInfo;
|
|
107
|
+
private _walletListeners;
|
|
108
|
+
private _chainListeners;
|
|
109
|
+
constructor(config: WalletEngineConfig);
|
|
110
|
+
create(): Promise<CreatedWallet>;
|
|
111
|
+
/**
|
|
112
|
+
* Import a wallet from a BIP-39 mnemonic phrase.
|
|
113
|
+
*
|
|
114
|
+
* `addressIndex` maps to MetaMask's account switcher:
|
|
115
|
+
* 0 → Account 1 (m/44'/60'/0'/0/0)
|
|
116
|
+
* 1 → Account 2 (m/44'/60'/0'/0/1)
|
|
117
|
+
* N → Account N+1
|
|
118
|
+
*/
|
|
119
|
+
importMnemonic(mnemonic: string, addressIndex?: number): Promise<ImportedWalletFromMnemonic>;
|
|
120
|
+
importPrivateKey(privateKey: Hex): Promise<ImportedWalletFromPrivateKey>;
|
|
121
|
+
/**
|
|
122
|
+
* Connect any viem WalletClient (wagmi, RainbowKit, custom).
|
|
123
|
+
* Optionally pass connector metadata to display in the UI.
|
|
124
|
+
*
|
|
125
|
+
* External wallets always take priority over internal wallets.
|
|
126
|
+
*/
|
|
127
|
+
connectExternal(walletClient: ExternalWalletClient, info?: {
|
|
128
|
+
name?: string;
|
|
129
|
+
icon?: string;
|
|
130
|
+
}): void;
|
|
131
|
+
/**
|
|
132
|
+
* Connect directly from a raw EIP-1193 provider (window.ethereum, WalletConnect, etc.)
|
|
133
|
+
* without needing wagmi or any wrapper. Calls eth_requestAccounts internally.
|
|
134
|
+
*
|
|
135
|
+
* @param provider - Any object implementing the EIP-1193 interface
|
|
136
|
+
* @param info - Optional connector metadata (name, icon)
|
|
137
|
+
*/
|
|
138
|
+
connectEIP1193(provider: EIP1193Provider, info?: {
|
|
139
|
+
name?: string;
|
|
140
|
+
icon?: string;
|
|
141
|
+
}): Promise<void>;
|
|
142
|
+
/** Remove the external wallet. Falls back to internal wallet if one is loaded. */
|
|
143
|
+
disconnectExternal(): void;
|
|
144
|
+
/** Remove all wallet state — both internal and external. */
|
|
145
|
+
disconnect(): void;
|
|
146
|
+
switchChain(chain: Chain): Promise<void>;
|
|
147
|
+
/**
|
|
148
|
+
* Sign a plain text or raw-bytes message with the active wallet.
|
|
149
|
+
* Supports Sign-In with Ethereum (SIWE) and off-chain auth flows.
|
|
150
|
+
*
|
|
151
|
+
* @param message - A UTF-8 string or `{ raw: Hex | Uint8Array }` for raw bytes
|
|
152
|
+
*/
|
|
153
|
+
signMessage(message: string | {
|
|
154
|
+
raw: Hex | Uint8Array;
|
|
155
|
+
}): Promise<Hex>;
|
|
156
|
+
/**
|
|
157
|
+
* Sign EIP-712 typed structured data (permit2, SIWE, Seaport, etc.).
|
|
158
|
+
*
|
|
159
|
+
* @param params - domain, types, primaryType, and message fields per EIP-712
|
|
160
|
+
*/
|
|
161
|
+
signTypedData(params: SignTypedDataParams): Promise<Hex>;
|
|
162
|
+
/**
|
|
163
|
+
* Returns the chain ID the active wallet is currently on.
|
|
164
|
+
* For external wallets this queries the wallet directly (may differ from SDK config).
|
|
165
|
+
* For internal wallets this always returns the SDK-configured chain ID.
|
|
166
|
+
*/
|
|
167
|
+
getChainId(): Promise<number>;
|
|
168
|
+
/**
|
|
169
|
+
* Returns true if the external wallet is on a different chain than the SDK.
|
|
170
|
+
* Always false for internal wallets (they follow the SDK chain automatically).
|
|
171
|
+
*/
|
|
172
|
+
isChainMismatch(): Promise<boolean>;
|
|
173
|
+
/**
|
|
174
|
+
* Subscribe to wallet changes (connect, disconnect, account switch).
|
|
175
|
+
* Returns an unsubscribe function — call it to stop listening.
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* const unsub = engine.onWalletChange(({ address, type }) => {
|
|
179
|
+
* console.log('wallet changed:', address, type)
|
|
180
|
+
* })
|
|
181
|
+
* unsub() // stop listening
|
|
182
|
+
*/
|
|
183
|
+
onWalletChange(cb: WalletChangeCallback): () => void;
|
|
184
|
+
/**
|
|
185
|
+
* Subscribe to chain changes (switchChain calls).
|
|
186
|
+
* Returns an unsubscribe function — call it to stop listening.
|
|
187
|
+
*/
|
|
188
|
+
onChainChange(cb: ChainChangeCallback): () => void;
|
|
189
|
+
getWalletClient(): WalletClient;
|
|
190
|
+
getSigner(): WalletClient;
|
|
191
|
+
address(): Address;
|
|
192
|
+
getChain(): Chain;
|
|
193
|
+
getPublicClient(): PublicClient;
|
|
194
|
+
isConnected(): boolean;
|
|
195
|
+
hasExternalWallet(): boolean;
|
|
196
|
+
hasInternalWallet(): boolean;
|
|
197
|
+
/**
|
|
198
|
+
* Returns metadata about the currently active connector.
|
|
199
|
+
* Useful for displaying "Connected via MetaMask" in the UI.
|
|
200
|
+
*/
|
|
201
|
+
getConnectorInfo(): ConnectorInfo;
|
|
202
|
+
private _resolveTransport;
|
|
203
|
+
private _buildInternalClient;
|
|
204
|
+
private _emitWalletChange;
|
|
205
|
+
private _emitChainChange;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
declare class WalletNotConnectedError extends Error {
|
|
209
|
+
readonly code: "WALLET_NOT_CONNECTED";
|
|
210
|
+
constructor(message?: string);
|
|
211
|
+
}
|
|
212
|
+
declare class InvalidMnemonicError extends Error {
|
|
213
|
+
readonly code: "INVALID_MNEMONIC";
|
|
214
|
+
constructor(message?: string);
|
|
215
|
+
}
|
|
216
|
+
declare class InvalidPrivateKeyError extends Error {
|
|
217
|
+
readonly code: "INVALID_PRIVATE_KEY";
|
|
218
|
+
constructor(message?: string);
|
|
219
|
+
}
|
|
220
|
+
declare class ChainSwitchError extends Error {
|
|
221
|
+
readonly code: "CHAIN_SWITCH_ERROR";
|
|
222
|
+
constructor(message: string);
|
|
223
|
+
}
|
|
224
|
+
declare class ChainMismatchError extends Error {
|
|
225
|
+
readonly code: "CHAIN_MISMATCH";
|
|
226
|
+
readonly walletChainId: number;
|
|
227
|
+
readonly expectedChainId: number;
|
|
228
|
+
constructor(walletChainId: number, expectedChainId: number);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
interface WriteContractParams {
|
|
232
|
+
address: Address;
|
|
233
|
+
abi: Abi;
|
|
234
|
+
functionName: string;
|
|
235
|
+
args: unknown[];
|
|
236
|
+
/** ETH value to send with payable calls (in wei) */
|
|
237
|
+
value?: bigint;
|
|
238
|
+
/** Gas limit override */
|
|
239
|
+
gas?: bigint;
|
|
240
|
+
/** Optional configuration overrides */
|
|
241
|
+
config?: TransactionConfig;
|
|
242
|
+
}
|
|
243
|
+
interface ReadContractParams {
|
|
244
|
+
address: Address;
|
|
245
|
+
abi: Abi;
|
|
246
|
+
functionName: string;
|
|
247
|
+
args: unknown[];
|
|
248
|
+
}
|
|
249
|
+
interface TransactionConfig {
|
|
250
|
+
/** Whether to simulate the transaction before sending (default: true) */
|
|
251
|
+
simulate?: boolean;
|
|
252
|
+
/** Multiplier applied to the estimated gas limit (default: 1.0 — no buffer) */
|
|
253
|
+
gasBuffer?: number;
|
|
254
|
+
}
|
|
255
|
+
interface TransactionResult {
|
|
256
|
+
/** Transaction hash */
|
|
257
|
+
hash: Hash;
|
|
258
|
+
/** On-chain receipt, available once the tx is confirmed */
|
|
259
|
+
receipt: TransactionReceipt;
|
|
260
|
+
}
|
|
261
|
+
interface GasEstimate {
|
|
262
|
+
gas: bigint;
|
|
263
|
+
/** gas * gasPrice, if gasPrice is available */
|
|
264
|
+
gasCost?: bigint;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Handles the complete transaction lifecycle:
|
|
269
|
+
* read → readContract via PublicClient
|
|
270
|
+
* write → simulate → writeContract → waitForReceipt
|
|
271
|
+
*
|
|
272
|
+
* Automatically handles:
|
|
273
|
+
* • ABI encoding / decoding (delegated to viem)
|
|
274
|
+
* • Gas estimation (via simulation)
|
|
275
|
+
* • Simulation before broadcast (catches reverts early)
|
|
276
|
+
* • Receipt polling
|
|
277
|
+
*/
|
|
278
|
+
declare class TransactionEngine {
|
|
279
|
+
private readonly publicClient;
|
|
280
|
+
private readonly getWalletClient;
|
|
281
|
+
constructor(publicClient: PublicClient, getWalletClient: () => WalletClient);
|
|
282
|
+
/**
|
|
283
|
+
* Execute a read-only contract call (view / pure functions).
|
|
284
|
+
* Returns the decoded output — single values or tuples.
|
|
285
|
+
*/
|
|
286
|
+
read(params: ReadContractParams): Promise<unknown>;
|
|
287
|
+
/**
|
|
288
|
+
* Execute a state-mutating contract call:
|
|
289
|
+
* 1. Simulate the transaction (surfaces revert reasons before spending gas)
|
|
290
|
+
* 2. Broadcast the signed transaction
|
|
291
|
+
* 3. Wait for on-chain confirmation
|
|
292
|
+
*
|
|
293
|
+
* @returns { hash, receipt } — the tx hash and on-chain receipt
|
|
294
|
+
*/
|
|
295
|
+
write(params: WriteContractParams): Promise<TransactionResult>;
|
|
296
|
+
/**
|
|
297
|
+
* Estimate gas for a write transaction.
|
|
298
|
+
* Useful for displaying fee previews before the user confirms.
|
|
299
|
+
*/
|
|
300
|
+
estimateGas(params: WriteContractParams): Promise<GasEstimate>;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
declare class ContractExecutionError extends Error {
|
|
304
|
+
readonly code: "CONTRACT_EXECUTION_ERROR";
|
|
305
|
+
readonly functionName?: string;
|
|
306
|
+
readonly cause?: Error;
|
|
307
|
+
constructor(message: string, options?: {
|
|
308
|
+
functionName?: string;
|
|
309
|
+
cause?: Error;
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
declare class SimulationError extends Error {
|
|
313
|
+
readonly code: "SIMULATION_ERROR";
|
|
314
|
+
readonly functionName?: string;
|
|
315
|
+
readonly cause?: Error;
|
|
316
|
+
constructor(message: string, options?: {
|
|
317
|
+
functionName?: string;
|
|
318
|
+
cause?: Error;
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
declare class GasEstimationError extends Error {
|
|
322
|
+
readonly code: "GAS_ESTIMATION_ERROR";
|
|
323
|
+
readonly cause?: Error;
|
|
324
|
+
constructor(message: string, cause?: Error);
|
|
325
|
+
}
|
|
326
|
+
declare class TransactionTimeoutError extends Error {
|
|
327
|
+
readonly code: "TRANSACTION_TIMEOUT";
|
|
328
|
+
readonly hash?: string;
|
|
329
|
+
constructor(hash?: string);
|
|
330
|
+
}
|
|
8
331
|
|
|
9
332
|
interface PriceResult {
|
|
10
333
|
/** Uppercase token symbol (e.g. "ETH", "USDC") */
|
|
@@ -706,6 +1029,71 @@ interface Erc1155Contract {
|
|
|
706
1029
|
readonly _abi: Abi;
|
|
707
1030
|
}
|
|
708
1031
|
|
|
1032
|
+
interface ParsedABI {
|
|
1033
|
+
/** view / pure functions — safe to call without a signer */
|
|
1034
|
+
readFunctions: AbiFunction[];
|
|
1035
|
+
/** nonpayable / payable functions — require a signer */
|
|
1036
|
+
writeFunctions: AbiFunction[];
|
|
1037
|
+
/** payable subset of writeFunctions */
|
|
1038
|
+
payableFunctions: AbiFunction[];
|
|
1039
|
+
/** all events declared on the contract */
|
|
1040
|
+
events: AbiEvent[];
|
|
1041
|
+
/** the constructor, if present */
|
|
1042
|
+
constructor?: AbiConstructor;
|
|
1043
|
+
}
|
|
1044
|
+
type FunctionKind = 'read' | 'write' | 'payable';
|
|
1045
|
+
interface GeneratedMethod {
|
|
1046
|
+
name: string;
|
|
1047
|
+
kind: FunctionKind;
|
|
1048
|
+
/** Human-readable TypeScript signature */
|
|
1049
|
+
signature: string;
|
|
1050
|
+
/** Parameter names + types */
|
|
1051
|
+
params: Array<{
|
|
1052
|
+
name: string;
|
|
1053
|
+
type: string;
|
|
1054
|
+
}>;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
* Parse a raw ABI array and classify every item into read functions,
|
|
1059
|
+
* write functions, payable functions, events, and the constructor.
|
|
1060
|
+
*
|
|
1061
|
+
* Results are memoized by object identity — passing the same const ABI
|
|
1062
|
+
* reference across multiple calls costs only a single WeakMap lookup.
|
|
1063
|
+
*
|
|
1064
|
+
* @throws {InvalidABIError} when the input is not a valid ABI array
|
|
1065
|
+
*/
|
|
1066
|
+
declare function parseABI(abi: Abi): ParsedABI;
|
|
1067
|
+
/** Check whether a function mutates state (requires a signer) */
|
|
1068
|
+
declare function isWriteFunction(fn: AbiFunction): boolean;
|
|
1069
|
+
/** Check whether a function can receive ETH */
|
|
1070
|
+
declare function isPayableFunction(fn: AbiFunction): boolean;
|
|
1071
|
+
/**
|
|
1072
|
+
* Generate a human-readable TypeScript method signature from an ABI function.
|
|
1073
|
+
* Useful for tooling, code generation, and documentation.
|
|
1074
|
+
*/
|
|
1075
|
+
declare function generateMethodSignature(fn: AbiFunction): GeneratedMethod;
|
|
1076
|
+
/**
|
|
1077
|
+
* Generate TypeScript method signatures for all functions in a parsed ABI.
|
|
1078
|
+
* Used by the CLI to produce fully typed contract client code.
|
|
1079
|
+
*/
|
|
1080
|
+
declare function generateAllMethodSignatures(parsed: ParsedABI): GeneratedMethod[];
|
|
1081
|
+
|
|
1082
|
+
declare class InvalidABIError extends Error {
|
|
1083
|
+
readonly code: "INVALID_ABI";
|
|
1084
|
+
constructor(message: string);
|
|
1085
|
+
}
|
|
1086
|
+
declare class UnsupportedABIItemError extends Error {
|
|
1087
|
+
readonly code: "UNSUPPORTED_ABI_ITEM";
|
|
1088
|
+
readonly itemType: string;
|
|
1089
|
+
constructor(itemType: string);
|
|
1090
|
+
}
|
|
1091
|
+
declare class DuplicateFunctionError extends Error {
|
|
1092
|
+
readonly code: "DUPLICATE_FUNCTION";
|
|
1093
|
+
readonly functionName: string;
|
|
1094
|
+
constructor(name: string);
|
|
1095
|
+
}
|
|
1096
|
+
|
|
709
1097
|
declare class NetworkMismatchError extends Error {
|
|
710
1098
|
readonly code: "NETWORK_MISMATCH";
|
|
711
1099
|
readonly expected: string;
|
|
@@ -744,7 +1132,7 @@ declare class WalletProxy {
|
|
|
744
1132
|
private readonly ensureReady;
|
|
745
1133
|
constructor(engine: WalletEngine, ensureReady: () => Promise<void>);
|
|
746
1134
|
create(): Promise<CreatedWallet>;
|
|
747
|
-
importMnemonic(mnemonic: string,
|
|
1135
|
+
importMnemonic(mnemonic: string, addressIndex?: number): Promise<ImportedWalletFromMnemonic>;
|
|
748
1136
|
importPrivateKey(privateKey: Hex): Promise<ImportedWalletFromPrivateKey>;
|
|
749
1137
|
address(): Address;
|
|
750
1138
|
getSigner(): WalletClient;
|
|
@@ -1183,4 +1571,4 @@ declare class TelemetryClient {
|
|
|
1183
1571
|
private _flushBeacon;
|
|
1184
1572
|
}
|
|
1185
1573
|
|
|
1186
|
-
export { ApiKeyRequiredError, type AwarizonConfig, AwarizonWeb3, CHAINLINK_FEEDS, CHAINS, COINGECKO_IDS, type ContractConfig, type ContractInstance, ContractNotLoadedError, type ContractRegistryEntry, ERC1155_ABI, ERC20_ABI, ERC721_ABI, type Erc1155Contract, type Erc20Contract, type Erc721Contract, type EventUnsubscribe, InvalidApiKeyError, NetworkMismatchError, type PayableOptions, PriceEngine, type PriceResult, ProviderError, type SDKWalletInfo, TelemetryClient, type TelemetryEvent, type TelemetryEventType, UnsupportedChainError, getChainTransport, getSupportedChainIds, resolveChain };
|
|
1574
|
+
export { ApiKeyRequiredError, type AwarizonConfig, AwarizonWeb3, CHAINLINK_FEEDS, CHAINS, COINGECKO_IDS, type ChainChangeEvent, ChainMismatchError, ChainSwitchError, type ConnectorInfo, type ContractConfig, ContractExecutionError, type ContractInstance, ContractNotLoadedError, type ContractRegistryEntry, type CreatedWallet, DuplicateFunctionError, type EIP1193Provider, ERC1155_ABI, ERC20_ABI, ERC721_ABI, type Erc1155Contract, type Erc20Contract, type Erc721Contract, type EventUnsubscribe, GasEstimationError, type ImportedWalletFromMnemonic, type ImportedWalletFromPrivateKey, InvalidABIError, InvalidApiKeyError, InvalidMnemonicError, InvalidPrivateKeyError, NetworkMismatchError, type PayableOptions, PriceEngine, type PriceResult, ProviderError, type SDKWalletInfo, type SignTypedDataParams, SimulationError, TelemetryClient, type TelemetryEvent, type TelemetryEventType, TransactionEngine, type TransactionResult, TransactionTimeoutError, UnsupportedABIItemError, UnsupportedChainError, type WalletChangeEvent, WalletEngine, WalletNotConnectedError, generateAllMethodSignatures, generateMethodSignature, getChainTransport, getSupportedChainIds, isPayableFunction, isWriteFunction, parseABI, resolveChain };
|