@avalabs/vm-module-types 0.0.10 → 0.0.12

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.
@@ -0,0 +1,489 @@
1
+ import { z } from 'zod';
2
+ import { TransactionRequest } from 'ethers';
3
+ import { JsonRpcError, OptionalDataWithOptionalCause, EthereumProviderError } from '@metamask/rpc-errors';
4
+
5
+ declare enum TransactionType {
6
+ BRIDGE = "Bridge",
7
+ SWAP = "Swap",
8
+ SEND = "Send",
9
+ RECEIVE = "Receive",
10
+ NFT_BUY = "NFTBuy",
11
+ APPROVE = "Approve",
12
+ TRANSFER = "Transfer",
13
+ NFT_SEND = "NFTSend",
14
+ NFT_RECEIVE = "NFTReceive",
15
+ AIRDROP = "Airdrop",
16
+ FILL_ORDER = "FillOrder",
17
+ UNWRAP = "Unwrap",
18
+ UNKNOWN = "UNKNOWN"
19
+ }
20
+ declare enum TokenType {
21
+ NATIVE = "NATIVE",
22
+ ERC20 = "ERC20",
23
+ ERC721 = "ERC721",
24
+ ERC1155 = "ERC1155"
25
+ }
26
+ type NetworkFees = {
27
+ low: {
28
+ maxPriorityFeePerGas: bigint;
29
+ maxFeePerGas: bigint;
30
+ };
31
+ medium: {
32
+ maxPriorityFeePerGas: bigint;
33
+ maxFeePerGas: bigint;
34
+ };
35
+ high: {
36
+ maxPriorityFeePerGas: bigint;
37
+ maxFeePerGas: bigint;
38
+ };
39
+ baseFee: bigint;
40
+ };
41
+ declare enum RpcMethod {
42
+ ETH_SEND_TRANSACTION = "eth_sendTransaction",
43
+ SIGN_TYPED_DATA_V3 = "eth_signTypedData_v3",
44
+ SIGN_TYPED_DATA_V4 = "eth_signTypedData_v4",
45
+ SIGN_TYPED_DATA_V1 = "eth_signTypedData_v1",
46
+ SIGN_TYPED_DATA = "eth_signTypedData",
47
+ PERSONAL_SIGN = "personal_sign",
48
+ ETH_SIGN = "eth_sign"
49
+ }
50
+ type DappInfo = {
51
+ name: string;
52
+ url: string;
53
+ icon: string;
54
+ };
55
+ type RpcRequest = {
56
+ requestId: string;
57
+ sessionId: string;
58
+ method: RpcMethod;
59
+ chainId: Caip2ChainId;
60
+ params: unknown;
61
+ dappInfo: DappInfo;
62
+ context?: Record<string, unknown>;
63
+ };
64
+ type RpcError = JsonRpcError<OptionalDataWithOptionalCause> | EthereumProviderError<OptionalDataWithOptionalCause>;
65
+ type RpcResponse<R = unknown, E extends RpcError = JsonRpcError<OptionalDataWithOptionalCause>> = {
66
+ result: R;
67
+ } | {
68
+ error: E;
69
+ };
70
+ type Network = {
71
+ chainId: number;
72
+ chainName: string;
73
+ rpcUrl: string;
74
+ networkToken: NetworkToken;
75
+ utilityAddresses?: {
76
+ multicall: string;
77
+ };
78
+ logoUrl?: string;
79
+ isTestnet?: boolean;
80
+ explorerUrl?: string;
81
+ };
82
+ interface Module {
83
+ getManifest: () => Manifest | undefined;
84
+ getBalances: () => Promise<string>;
85
+ getTransactionHistory: (params: GetTransactionHistory) => Promise<TransactionHistoryResponse>;
86
+ getNetworkFee: (network: Network) => Promise<NetworkFees>;
87
+ getAddress: () => Promise<string>;
88
+ getTokens: (network: Network) => Promise<NetworkContractToken[]>;
89
+ onRpcRequest: (request: RpcRequest, network: Network) => Promise<RpcResponse>;
90
+ }
91
+ type GetTransactionHistory = {
92
+ network: Network;
93
+ address: string;
94
+ nextPageToken?: string;
95
+ offset?: number;
96
+ };
97
+ type TransactionHistoryResponse = {
98
+ transactions: Transaction[];
99
+ nextPageToken?: string;
100
+ };
101
+ type Transaction = {
102
+ isContractCall: boolean;
103
+ isIncoming: boolean;
104
+ isOutgoing: boolean;
105
+ isSender: boolean;
106
+ timestamp: number;
107
+ hash: string;
108
+ from: string;
109
+ to: string;
110
+ tokens: TxToken[];
111
+ gasPrice?: string;
112
+ gasUsed: string;
113
+ txType?: TransactionType;
114
+ chainId: string;
115
+ method?: string;
116
+ explorerLink: string;
117
+ };
118
+ interface TxToken {
119
+ decimal?: string;
120
+ name: string;
121
+ symbol: string;
122
+ amount: string;
123
+ imageUri?: string;
124
+ from?: RichAddress;
125
+ to?: RichAddress;
126
+ collectableTokenId?: string;
127
+ type: TokenType;
128
+ }
129
+ type RichAddress = {
130
+ /**
131
+ * The contract name.
132
+ */
133
+ name?: string;
134
+ /**
135
+ * The contract symbol.
136
+ */
137
+ symbol?: string;
138
+ /**
139
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
140
+ */
141
+ decimals?: number;
142
+ /**
143
+ * The logo uri for the address.
144
+ */
145
+ logoUri?: string;
146
+ /**
147
+ * A wallet or contract address in mixed-case checksum encoding.
148
+ */
149
+ address: string;
150
+ };
151
+ interface NetworkToken {
152
+ name: string;
153
+ symbol: string;
154
+ description: string;
155
+ decimals: number;
156
+ logoUri: string;
157
+ }
158
+ interface NetworkContractToken {
159
+ address: string;
160
+ chainId?: number;
161
+ color?: string;
162
+ contractType: string;
163
+ decimals: number;
164
+ logoUri?: string;
165
+ name: string;
166
+ symbol: string;
167
+ }
168
+ declare const manifestSchema: z.ZodObject<{
169
+ name: z.ZodString;
170
+ version: z.ZodString;
171
+ description: z.ZodString;
172
+ sources: z.ZodObject<{
173
+ module: z.ZodObject<{
174
+ checksum: z.ZodString;
175
+ location: z.ZodObject<{
176
+ npm: z.ZodObject<{
177
+ filePath: z.ZodString;
178
+ packageName: z.ZodString;
179
+ registry: z.ZodString;
180
+ }, "strip", z.ZodTypeAny, {
181
+ filePath: string;
182
+ packageName: string;
183
+ registry: string;
184
+ }, {
185
+ filePath: string;
186
+ packageName: string;
187
+ registry: string;
188
+ }>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ npm: {
191
+ filePath: string;
192
+ packageName: string;
193
+ registry: string;
194
+ };
195
+ }, {
196
+ npm: {
197
+ filePath: string;
198
+ packageName: string;
199
+ registry: string;
200
+ };
201
+ }>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ checksum: string;
204
+ location: {
205
+ npm: {
206
+ filePath: string;
207
+ packageName: string;
208
+ registry: string;
209
+ };
210
+ };
211
+ }, {
212
+ checksum: string;
213
+ location: {
214
+ npm: {
215
+ filePath: string;
216
+ packageName: string;
217
+ registry: string;
218
+ };
219
+ };
220
+ }>;
221
+ provider: z.ZodOptional<z.ZodObject<{
222
+ checksum: z.ZodString;
223
+ location: z.ZodObject<{
224
+ npm: z.ZodObject<{
225
+ filePath: z.ZodString;
226
+ packageName: z.ZodString;
227
+ registry: z.ZodString;
228
+ }, "strip", z.ZodTypeAny, {
229
+ filePath: string;
230
+ packageName: string;
231
+ registry: string;
232
+ }, {
233
+ filePath: string;
234
+ packageName: string;
235
+ registry: string;
236
+ }>;
237
+ }, "strip", z.ZodTypeAny, {
238
+ npm: {
239
+ filePath: string;
240
+ packageName: string;
241
+ registry: string;
242
+ };
243
+ }, {
244
+ npm: {
245
+ filePath: string;
246
+ packageName: string;
247
+ registry: string;
248
+ };
249
+ }>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ checksum: string;
252
+ location: {
253
+ npm: {
254
+ filePath: string;
255
+ packageName: string;
256
+ registry: string;
257
+ };
258
+ };
259
+ }, {
260
+ checksum: string;
261
+ location: {
262
+ npm: {
263
+ filePath: string;
264
+ packageName: string;
265
+ registry: string;
266
+ };
267
+ };
268
+ }>>;
269
+ }, "strip", z.ZodTypeAny, {
270
+ module: {
271
+ checksum: string;
272
+ location: {
273
+ npm: {
274
+ filePath: string;
275
+ packageName: string;
276
+ registry: string;
277
+ };
278
+ };
279
+ };
280
+ provider?: {
281
+ checksum: string;
282
+ location: {
283
+ npm: {
284
+ filePath: string;
285
+ packageName: string;
286
+ registry: string;
287
+ };
288
+ };
289
+ } | undefined;
290
+ }, {
291
+ module: {
292
+ checksum: string;
293
+ location: {
294
+ npm: {
295
+ filePath: string;
296
+ packageName: string;
297
+ registry: string;
298
+ };
299
+ };
300
+ };
301
+ provider?: {
302
+ checksum: string;
303
+ location: {
304
+ npm: {
305
+ filePath: string;
306
+ packageName: string;
307
+ registry: string;
308
+ };
309
+ };
310
+ } | undefined;
311
+ }>;
312
+ network: z.ZodObject<{
313
+ chainIds: z.ZodArray<z.ZodString, "many">;
314
+ namespaces: z.ZodArray<z.ZodString, "many">;
315
+ }, "strip", z.ZodTypeAny, {
316
+ chainIds: string[];
317
+ namespaces: string[];
318
+ }, {
319
+ chainIds: string[];
320
+ namespaces: string[];
321
+ }>;
322
+ cointype: z.ZodString;
323
+ permissions: z.ZodObject<{
324
+ rpc: z.ZodObject<{
325
+ dapps: z.ZodBoolean;
326
+ methods: z.ZodArray<z.ZodString, "many">;
327
+ }, "strip", z.ZodTypeAny, {
328
+ dapps: boolean;
329
+ methods: string[];
330
+ }, {
331
+ dapps: boolean;
332
+ methods: string[];
333
+ }>;
334
+ }, "strip", z.ZodTypeAny, {
335
+ rpc: {
336
+ dapps: boolean;
337
+ methods: string[];
338
+ };
339
+ }, {
340
+ rpc: {
341
+ dapps: boolean;
342
+ methods: string[];
343
+ };
344
+ }>;
345
+ manifestVersion: z.ZodString;
346
+ }, "strip", z.ZodTypeAny, {
347
+ name: string;
348
+ version: string;
349
+ description: string;
350
+ sources: {
351
+ module: {
352
+ checksum: string;
353
+ location: {
354
+ npm: {
355
+ filePath: string;
356
+ packageName: string;
357
+ registry: string;
358
+ };
359
+ };
360
+ };
361
+ provider?: {
362
+ checksum: string;
363
+ location: {
364
+ npm: {
365
+ filePath: string;
366
+ packageName: string;
367
+ registry: string;
368
+ };
369
+ };
370
+ } | undefined;
371
+ };
372
+ network: {
373
+ chainIds: string[];
374
+ namespaces: string[];
375
+ };
376
+ cointype: string;
377
+ permissions: {
378
+ rpc: {
379
+ dapps: boolean;
380
+ methods: string[];
381
+ };
382
+ };
383
+ manifestVersion: string;
384
+ }, {
385
+ name: string;
386
+ version: string;
387
+ description: string;
388
+ sources: {
389
+ module: {
390
+ checksum: string;
391
+ location: {
392
+ npm: {
393
+ filePath: string;
394
+ packageName: string;
395
+ registry: string;
396
+ };
397
+ };
398
+ };
399
+ provider?: {
400
+ checksum: string;
401
+ location: {
402
+ npm: {
403
+ filePath: string;
404
+ packageName: string;
405
+ registry: string;
406
+ };
407
+ };
408
+ } | undefined;
409
+ };
410
+ network: {
411
+ chainIds: string[];
412
+ namespaces: string[];
413
+ };
414
+ cointype: string;
415
+ permissions: {
416
+ rpc: {
417
+ dapps: boolean;
418
+ methods: string[];
419
+ };
420
+ };
421
+ manifestVersion: string;
422
+ }>;
423
+ type Manifest = z.infer<typeof manifestSchema>;
424
+ declare const parseManifest: (params: unknown) => z.SafeParseReturnType<unknown, Manifest>;
425
+ type Caip2ChainId = string;
426
+ type Hex = `0x${string}`;
427
+ declare enum Environment {
428
+ PRODUCTION = "production",
429
+ DEV = "dev"
430
+ }
431
+ type DisplayData = {
432
+ title: string;
433
+ network: {
434
+ chainId: number;
435
+ name: string;
436
+ logoUrl?: string;
437
+ };
438
+ messageDetails?: string;
439
+ transactionDetails?: {
440
+ website: string;
441
+ from: string;
442
+ to: string;
443
+ data?: string;
444
+ };
445
+ networkFeeSelector?: boolean;
446
+ };
447
+ /**
448
+ * Enum for different types of signing data.
449
+ */
450
+ declare enum SigningDataType {
451
+ EVM_TRANSACTION = "evm_transaction",
452
+ EVM_MESSAGE_ETH_SIGN = "evm_message_eth_sign",
453
+ EVM_MESSAGE_PERSONAL_SIGN = "evm_message_personal_sign",
454
+ EVM_MESSAGE_ETH_SIGN_TYPED_DATA = "evm_message_eth_sign_typed_data",
455
+ EVM_MESSAGE_ETH_SIGN_TYPED_DATA_V1 = "evm_message_eth_sign_typed_data_v1",
456
+ EVM_MESSAGE_ETH_SIGN_TYPED_DATA_V3 = "evm_message_eth_sign_typed_data_v3",
457
+ EVM_MESSAGE_ETH_SIGN_TYPED_DATA_V4 = "evm_message_eth_sign_typed_data_v4",
458
+ AVALANCHE_TRANSACTION = "avalanche_transaction",
459
+ AVALANCHE_MESSAGE = "avalanche_message",
460
+ BTC_TRANSACTION = "btc_transaction"
461
+ }
462
+ type SigningData = {
463
+ type: SigningDataType.EVM_TRANSACTION;
464
+ account: string;
465
+ chainId: number;
466
+ data: TransactionRequest;
467
+ } | {
468
+ type: SigningDataType.EVM_MESSAGE_ETH_SIGN;
469
+ account: string;
470
+ chainId: number;
471
+ data: string;
472
+ };
473
+ type ApprovalParams = {
474
+ request: RpcRequest;
475
+ displayData: DisplayData;
476
+ signingData: SigningData;
477
+ };
478
+ type ApprovalResponse = {
479
+ result: Hex;
480
+ } | {
481
+ error: RpcError;
482
+ };
483
+ interface ApprovalController {
484
+ requestApproval: (params: ApprovalParams) => Promise<ApprovalResponse>;
485
+ onTransactionConfirmed: (txHash: Hex) => void;
486
+ onTransactionReverted: (txHash: Hex) => void;
487
+ }
488
+
489
+ export { ApprovalController, ApprovalParams, ApprovalResponse, Caip2ChainId, DappInfo, DisplayData, Environment, GetTransactionHistory, Hex, Manifest, Module, Network, NetworkContractToken, NetworkFees, NetworkToken, RpcError, RpcMethod, RpcRequest, RpcResponse, SigningData, SigningDataType, TokenType, Transaction, TransactionHistoryResponse, TransactionType, TxToken, parseManifest };
package/dist/types.js ADDED
@@ -0,0 +1,3 @@
1
+ export { e as Environment, c as RpcMethod, f as SigningDataType, b as TokenType, a as TransactionType, d as parseManifest } from './chunk-ODMEO2D7.js';
2
+ //# sourceMappingURL=out.js.map
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,14 +1,25 @@
1
1
  {
2
2
  "name": "@avalabs/vm-module-types",
3
- "version": "0.0.10",
4
- "main": "src/index.ts",
3
+ "version": "0.0.12",
4
+ "main": "dist/index.cjs",
5
+ "module": "dist/index.js",
6
+ "typings": "dist/index.d.ts",
7
+ "type": "module",
5
8
  "dependencies": {
6
- "zod": "3.23.8"
9
+ "zod": "3.23.8",
10
+ "@metamask/rpc-errors": "6.3.0",
11
+ "ethers": "6.8.1"
7
12
  },
8
13
  "devDependencies": {
9
- "eslint-config-custom": "0.0.1"
14
+ "tsup": "7.2.0",
15
+ "@internal/tsup-config": "0.0.1",
16
+ "eslint-config-custom": "0.0.2"
17
+ },
18
+ "peerDependencies": {
19
+ "ethers": "^6.8.1"
10
20
  },
11
21
  "scripts": {
22
+ "build": "tsup",
12
23
  "lint": "eslint \"src/**/*.ts\""
13
24
  }
14
25
  }
package/src/types.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import { object, string, boolean, z } from 'zod';
2
+ import type { TransactionRequest } from 'ethers';
3
+ import type { JsonRpcError, EthereumProviderError, OptionalDataWithOptionalCause } from '@metamask/rpc-errors';
2
4
 
3
5
  export enum TransactionType {
4
6
  BRIDGE = 'Bridge',
@@ -39,17 +41,29 @@ export enum RpcMethod {
39
41
  SIGN_TYPED_DATA = 'eth_signTypedData',
40
42
  PERSONAL_SIGN = 'personal_sign',
41
43
  ETH_SIGN = 'eth_sign',
42
- WALLET_ADD_ETHEREUM_CHAIN = 'wallet_addEthereumChain',
43
- WALLET_SWITCH_ETHEREUM_CHAIN = 'wallet_switchEthereumChain',
44
- WALLET_GET_ETHEREUM_CHAIN = 'wallet_getEthereumChain',
45
44
  }
46
45
 
46
+ export type DappInfo = {
47
+ name: string;
48
+ url: string;
49
+ icon: string;
50
+ };
51
+
47
52
  export type RpcRequest = {
53
+ requestId: string;
54
+ sessionId: string;
48
55
  method: RpcMethod;
56
+ chainId: Caip2ChainId;
49
57
  params: unknown;
58
+ dappInfo: DappInfo;
59
+ context?: Record<string, unknown>; // for storing additional context information that's only relevant to the consumer
50
60
  };
51
61
 
52
- export type RpcResponse<R = unknown, E extends Error = Error> =
62
+ export type RpcError =
63
+ | JsonRpcError<OptionalDataWithOptionalCause>
64
+ | EthereumProviderError<OptionalDataWithOptionalCause>;
65
+
66
+ export type RpcResponse<R = unknown, E extends RpcError = JsonRpcError<OptionalDataWithOptionalCause>> =
53
67
  | {
54
68
  result: R;
55
69
  }
@@ -57,35 +71,34 @@ export type RpcResponse<R = unknown, E extends Error = Error> =
57
71
  error: E;
58
72
  };
59
73
 
60
- export type Chain = {
74
+ export type Network = {
75
+ chainId: number;
76
+ chainName: string;
77
+ rpcUrl: string;
78
+ networkToken: NetworkToken;
79
+ utilityAddresses?: {
80
+ multicall: string;
81
+ };
82
+ logoUrl?: string;
61
83
  isTestnet?: boolean;
62
- chainId?: string;
63
- chainName?: string;
64
- rpcUrl?: string;
65
- multiContractAddress?: string;
84
+ explorerUrl?: string;
66
85
  };
67
86
 
68
- export type GetNetworkFeeParams = Chain;
69
-
70
87
  export interface Module {
71
88
  getManifest: () => Manifest | undefined;
72
89
  getBalances: () => Promise<string>;
73
90
  getTransactionHistory: (params: GetTransactionHistory) => Promise<TransactionHistoryResponse>;
74
- getNetworkFee: (params: GetNetworkFeeParams) => Promise<NetworkFees>;
91
+ getNetworkFee: (network: Network) => Promise<NetworkFees>;
75
92
  getAddress: () => Promise<string>;
76
- getTokens: (chainId: number) => Promise<NetworkContractToken[]>;
77
- onRpcRequest: (request: RpcRequest) => Promise<RpcResponse>;
93
+ getTokens: (network: Network) => Promise<NetworkContractToken[]>;
94
+ onRpcRequest: (request: RpcRequest, network: Network) => Promise<RpcResponse>;
78
95
  }
79
96
 
80
97
  export type GetTransactionHistory = {
81
- chainId: number;
82
- isTestnet: boolean;
83
- networkToken: NetworkToken;
84
- explorerUrl: string;
98
+ network: Network;
85
99
  address: string;
86
100
  nextPageToken?: string;
87
101
  offset?: number;
88
- glacierApiUrl?: string;
89
102
  };
90
103
 
91
104
  export type TransactionHistoryResponse = {
@@ -203,3 +216,84 @@ export type Manifest = z.infer<typeof manifestSchema>;
203
216
  export const parseManifest = (params: unknown): z.SafeParseReturnType<unknown, Manifest> => {
204
217
  return manifestSchema.safeParse(params);
205
218
  };
219
+
220
+ export type Caip2ChainId = string;
221
+
222
+ export type Hex = `0x${string}`;
223
+
224
+ export enum Environment {
225
+ PRODUCTION = 'production',
226
+ DEV = 'dev',
227
+ }
228
+
229
+ export type DisplayData = {
230
+ title: string;
231
+ network: {
232
+ chainId: number;
233
+ name: string;
234
+ logoUrl?: string;
235
+ };
236
+ messageDetails?: string;
237
+ transactionDetails?: {
238
+ website: string;
239
+ from: string;
240
+ to: string;
241
+ data?: string;
242
+ };
243
+ networkFeeSelector?: boolean;
244
+ };
245
+
246
+ /**
247
+ * Enum for different types of signing data.
248
+ */
249
+ export enum SigningDataType {
250
+ // EVM signing data types
251
+ EVM_TRANSACTION = 'evm_transaction',
252
+ EVM_MESSAGE_ETH_SIGN = 'evm_message_eth_sign',
253
+ EVM_MESSAGE_PERSONAL_SIGN = 'evm_message_personal_sign',
254
+ EVM_MESSAGE_ETH_SIGN_TYPED_DATA = 'evm_message_eth_sign_typed_data',
255
+ EVM_MESSAGE_ETH_SIGN_TYPED_DATA_V1 = 'evm_message_eth_sign_typed_data_v1',
256
+ EVM_MESSAGE_ETH_SIGN_TYPED_DATA_V3 = 'evm_message_eth_sign_typed_data_v3',
257
+ EVM_MESSAGE_ETH_SIGN_TYPED_DATA_V4 = 'evm_message_eth_sign_typed_data_v4',
258
+
259
+ // Avalanche signing data types
260
+ AVALANCHE_TRANSACTION = 'avalanche_transaction',
261
+ AVALANCHE_MESSAGE = 'avalanche_message',
262
+
263
+ // Bitcoin signing data types
264
+ BTC_TRANSACTION = 'btc_transaction',
265
+ }
266
+
267
+ export type SigningData =
268
+ | {
269
+ type: SigningDataType.EVM_TRANSACTION;
270
+ account: string;
271
+ chainId: number;
272
+ data: TransactionRequest;
273
+ }
274
+ | {
275
+ type: SigningDataType.EVM_MESSAGE_ETH_SIGN;
276
+ account: string;
277
+ chainId: number;
278
+ data: string;
279
+ };
280
+
281
+ export type ApprovalParams = {
282
+ request: RpcRequest;
283
+ displayData: DisplayData;
284
+ signingData: SigningData;
285
+ };
286
+
287
+ export type ApprovalResponse =
288
+ | {
289
+ result: Hex;
290
+ }
291
+ | {
292
+ error: RpcError;
293
+ };
294
+
295
+ export interface ApprovalController {
296
+ requestApproval: (params: ApprovalParams) => Promise<ApprovalResponse>;
297
+ onTransactionConfirmed: (txHash: Hex) => void;
298
+ onTransactionReverted: (txHash: Hex) => void;
299
+ }
package/tsconfig.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "extends": "@internal/tsconfig/tsconfig.base.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "./dist",
5
- "composite": true
5
+ "tsBuildInfoFile": ".tsbuildinfo"
6
6
  },
7
7
  "include": ["src"]
8
8
  }
package/tsup.config.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { defineConfig } from 'tsup';
2
+ import { baseConfig } from '@internal/tsup-config';
3
+
4
+ export default defineConfig({ ...baseConfig, entry: ['src/*.ts'] });