@gitmyabi/dot 1.0.2 → 1.0.3

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.
@@ -1,2 +1,2 @@
1
- export { FrozenToken_jsonAbi, FrozenToken_json } from './FrozenToken_json';
2
- export type { FrozenToken_jsonAbi as FrozenToken_jsonAbiType, FrozenToken_jsonContract } from './FrozenToken_json';
1
+ export { ERC6160Ext20_jsonAbi, ERC6160Ext20_json } from './ERC6160Ext20_json';
2
+ export type { ERC6160Ext20_jsonAbi as ERC6160Ext20_jsonAbiType, ERC6160Ext20_jsonContract } from './ERC6160Ext20_json';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FrozenToken_json = exports.FrozenToken_jsonAbi = void 0;
3
+ exports.ERC6160Ext20_json = exports.ERC6160Ext20_jsonAbi = void 0;
4
4
  // Auto-generated exports for all contracts
5
- var FrozenToken_json_1 = require("./FrozenToken_json");
6
- Object.defineProperty(exports, "FrozenToken_jsonAbi", { enumerable: true, get: function () { return FrozenToken_json_1.FrozenToken_jsonAbi; } });
7
- Object.defineProperty(exports, "FrozenToken_json", { enumerable: true, get: function () { return FrozenToken_json_1.FrozenToken_json; } });
5
+ var ERC6160Ext20_json_1 = require("./ERC6160Ext20_json");
6
+ Object.defineProperty(exports, "ERC6160Ext20_jsonAbi", { enumerable: true, get: function () { return ERC6160Ext20_json_1.ERC6160Ext20_jsonAbi; } });
7
+ Object.defineProperty(exports, "ERC6160Ext20_json", { enumerable: true, get: function () { return ERC6160Ext20_json_1.ERC6160Ext20_json; } });
@@ -1,3 +1,3 @@
1
1
  // Auto-generated exports for all contracts
2
- export { FrozenToken_jsonAbi, FrozenToken_json } from './FrozenToken_json';
3
- export type { FrozenToken_jsonAbi as FrozenToken_jsonAbiType, FrozenToken_jsonContract } from './FrozenToken_json';
2
+ export { ERC6160Ext20_jsonAbi, ERC6160Ext20_json } from './ERC6160Ext20_json';
3
+ export type { ERC6160Ext20_jsonAbi as ERC6160Ext20_jsonAbiType, ERC6160Ext20_jsonContract } from './ERC6160Ext20_json';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/dot",
3
- "version": "1.0.2",
4
- "description": "Auto-generated TypeScript type bindings for DOT (build etherscan-dot-b59f67a8-1788954780083, commit 2fc2149, branch etherscan)",
3
+ "version": "1.0.3",
4
+ "description": "Auto-generated TypeScript type bindings for DOT (build etherscan-dot-8d010bf9-1789997803067, commit 728e9b9, branch etherscan)",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
7
7
  "exports": {
@@ -39,5 +39,5 @@
39
39
  "url": "https://github.com/etherscan/dot"
40
40
  },
41
41
  "branch": "etherscan",
42
- "shortHash": "2fc2149"
42
+ "shortHash": "728e9b9"
43
43
  }
@@ -1,403 +0,0 @@
1
- import type { Address, PublicClient, WalletClient } from 'viem';
2
- /**
3
- * FrozenToken_json ABI
4
- *
5
- * This ABI is typed using viem's type system for full type safety.
6
- */
7
- export declare const FrozenToken_jsonAbi: readonly [{
8
- readonly constant: true;
9
- readonly inputs: readonly [];
10
- readonly name: "name";
11
- readonly outputs: readonly [{
12
- readonly name: "";
13
- readonly type: "string";
14
- }];
15
- readonly payable: false;
16
- readonly stateMutability: "view";
17
- readonly type: "function";
18
- }, {
19
- readonly constant: false;
20
- readonly inputs: readonly [{
21
- readonly name: "_new";
22
- readonly type: "address";
23
- }];
24
- readonly name: "setOwner";
25
- readonly outputs: readonly [];
26
- readonly payable: false;
27
- readonly stateMutability: "nonpayable";
28
- readonly type: "function";
29
- }, {
30
- readonly constant: true;
31
- readonly inputs: readonly [];
32
- readonly name: "totalSupply";
33
- readonly outputs: readonly [{
34
- readonly name: "";
35
- readonly type: "uint256";
36
- }];
37
- readonly payable: false;
38
- readonly stateMutability: "view";
39
- readonly type: "function";
40
- }, {
41
- readonly constant: true;
42
- readonly inputs: readonly [];
43
- readonly name: "decimals";
44
- readonly outputs: readonly [{
45
- readonly name: "";
46
- readonly type: "uint8";
47
- }];
48
- readonly payable: false;
49
- readonly stateMutability: "view";
50
- readonly type: "function";
51
- }, {
52
- readonly constant: true;
53
- readonly inputs: readonly [{
54
- readonly name: "_who";
55
- readonly type: "address";
56
- }];
57
- readonly name: "balanceOf";
58
- readonly outputs: readonly [{
59
- readonly name: "";
60
- readonly type: "uint256";
61
- }];
62
- readonly payable: false;
63
- readonly stateMutability: "view";
64
- readonly type: "function";
65
- }, {
66
- readonly constant: false;
67
- readonly inputs: readonly [{
68
- readonly name: "_to";
69
- readonly type: "address";
70
- }];
71
- readonly name: "makeLiquid";
72
- readonly outputs: readonly [{
73
- readonly name: "";
74
- readonly type: "bool";
75
- }];
76
- readonly payable: false;
77
- readonly stateMutability: "nonpayable";
78
- readonly type: "function";
79
- }, {
80
- readonly constant: true;
81
- readonly inputs: readonly [];
82
- readonly name: "owner";
83
- readonly outputs: readonly [{
84
- readonly name: "";
85
- readonly type: "address";
86
- }];
87
- readonly payable: false;
88
- readonly stateMutability: "view";
89
- readonly type: "function";
90
- }, {
91
- readonly constant: true;
92
- readonly inputs: readonly [];
93
- readonly name: "symbol";
94
- readonly outputs: readonly [{
95
- readonly name: "";
96
- readonly type: "string";
97
- }];
98
- readonly payable: false;
99
- readonly stateMutability: "view";
100
- readonly type: "function";
101
- }, {
102
- readonly constant: false;
103
- readonly inputs: readonly [{
104
- readonly name: "_to";
105
- readonly type: "address";
106
- }, {
107
- readonly name: "_value";
108
- readonly type: "uint256";
109
- }];
110
- readonly name: "transfer";
111
- readonly outputs: readonly [{
112
- readonly name: "";
113
- readonly type: "bool";
114
- }];
115
- readonly payable: false;
116
- readonly stateMutability: "nonpayable";
117
- readonly type: "function";
118
- }, {
119
- readonly inputs: readonly [{
120
- readonly name: "_totalSupply";
121
- readonly type: "uint256";
122
- }, {
123
- readonly name: "_owner";
124
- readonly type: "address";
125
- }];
126
- readonly payable: false;
127
- readonly stateMutability: "nonpayable";
128
- readonly type: "constructor";
129
- }, {
130
- readonly payable: false;
131
- readonly stateMutability: "nonpayable";
132
- readonly type: "fallback";
133
- }, {
134
- readonly anonymous: false;
135
- readonly inputs: readonly [{
136
- readonly indexed: true;
137
- readonly name: "from";
138
- readonly type: "address";
139
- }, {
140
- readonly indexed: true;
141
- readonly name: "to";
142
- readonly type: "address";
143
- }, {
144
- readonly indexed: false;
145
- readonly name: "value";
146
- readonly type: "uint256";
147
- }];
148
- readonly name: "Transfer";
149
- readonly type: "event";
150
- }, {
151
- readonly anonymous: false;
152
- readonly inputs: readonly [{
153
- readonly indexed: true;
154
- readonly name: "old";
155
- readonly type: "address";
156
- }, {
157
- readonly indexed: true;
158
- readonly name: "current";
159
- readonly type: "address";
160
- }];
161
- readonly name: "NewOwner";
162
- readonly type: "event";
163
- }];
164
- /**
165
- * Type-safe ABI for FrozenToken_json
166
- */
167
- export type FrozenToken_jsonAbi = typeof FrozenToken_jsonAbi;
168
- /**
169
- * Contract instance type for FrozenToken_json
170
- */
171
- export type FrozenToken_jsonContract = any;
172
- /**
173
- * FrozenToken_json Contract Class
174
- *
175
- * Provides a class-based API similar to TypeChain for interacting with the contract.
176
- *
177
- * @example
178
- * ```typescript
179
- * import { createPublicClient, createWalletClient, http } from 'viem';
180
- * import { mainnet } from 'viem/chains';
181
- * import { FrozenToken_json } from 'FrozenToken_json';
182
- *
183
- * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
184
- * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
185
- *
186
- * const contract = new FrozenToken_json('0x...', { publicClient, walletClient });
187
- *
188
- * // Read functions
189
- * const result = await contract.balanceOf('0x...');
190
- *
191
- * // Write functions
192
- * const hash = await contract.transfer('0x...', 1000n);
193
- *
194
- * // Simulate transactions (dry-run)
195
- * const simulation = await contract.simulate.transfer('0x...', 1000n);
196
- * console.log('Gas estimate:', simulation.request.gas);
197
- *
198
- * // Watch events
199
- * const unwatch = contract.watch.Transfer((event) => {
200
- * console.log('Transfer event:', event);
201
- * });
202
- * ```
203
- */
204
- export declare class FrozenToken_json {
205
- private contract;
206
- private contractAddress;
207
- private publicClient;
208
- constructor(address: Address, clients: {
209
- publicClient: PublicClient;
210
- walletClient?: WalletClient;
211
- });
212
- /**
213
- * Get the contract address
214
- */
215
- get address(): Address;
216
- /**
217
- * Get the underlying viem contract instance
218
- */
219
- getContract(): FrozenToken_jsonContract;
220
- /**
221
- * name
222
- * view
223
- */
224
- name(): Promise<string>;
225
- /**
226
- * totalSupply
227
- * view
228
- */
229
- totalSupply(): Promise<bigint>;
230
- /**
231
- * decimals
232
- * view
233
- */
234
- decimals(): Promise<bigint>;
235
- /**
236
- * balanceOf
237
- * view
238
- */
239
- balanceOf(_who: `0x${string}`): Promise<bigint>;
240
- /**
241
- * owner
242
- * view
243
- */
244
- owner(): Promise<`0x${string}`>;
245
- /**
246
- * symbol
247
- * view
248
- */
249
- symbol(): Promise<string>;
250
- /**
251
- * setOwner
252
- * nonpayable
253
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
254
- */
255
- setOwner(_new: `0x${string}`, options?: {
256
- accessList?: import('viem').AccessList;
257
- authorizationList?: import('viem').AuthorizationList;
258
- chain?: import('viem').Chain | null;
259
- dataSuffix?: `0x${string}`;
260
- gas?: bigint;
261
- gasPrice?: bigint;
262
- maxFeePerGas?: bigint;
263
- maxPriorityFeePerGas?: bigint;
264
- nonce?: number;
265
- value?: bigint;
266
- }): Promise<`0x${string}`>;
267
- /**
268
- * makeLiquid
269
- * nonpayable
270
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
271
- */
272
- makeLiquid(_to: `0x${string}`, options?: {
273
- accessList?: import('viem').AccessList;
274
- authorizationList?: import('viem').AuthorizationList;
275
- chain?: import('viem').Chain | null;
276
- dataSuffix?: `0x${string}`;
277
- gas?: bigint;
278
- gasPrice?: bigint;
279
- maxFeePerGas?: bigint;
280
- maxPriorityFeePerGas?: bigint;
281
- nonce?: number;
282
- value?: bigint;
283
- }): Promise<`0x${string}`>;
284
- /**
285
- * transfer
286
- * nonpayable
287
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
288
- */
289
- transfer(_to: `0x${string}`, _value: bigint, options?: {
290
- accessList?: import('viem').AccessList;
291
- authorizationList?: import('viem').AuthorizationList;
292
- chain?: import('viem').Chain | null;
293
- dataSuffix?: `0x${string}`;
294
- gas?: bigint;
295
- gasPrice?: bigint;
296
- maxFeePerGas?: bigint;
297
- maxPriorityFeePerGas?: bigint;
298
- nonce?: number;
299
- value?: bigint;
300
- }): Promise<`0x${string}`>;
301
- /**
302
- * Simulate contract write operations (dry-run without sending transaction)
303
- *
304
- * @example
305
- * const result = await contract.simulate.transfer('0x...', 1000n);
306
- * console.log('Gas estimate:', result.request.gas);
307
- * console.log('Would succeed:', result.result);
308
- */
309
- get simulate(): {
310
- /**
311
- * Simulate setOwner
312
- * Returns gas estimate and result without sending transaction
313
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
314
- */
315
- setOwner(_new: `0x${string}`, options?: {
316
- accessList?: import("viem").AccessList;
317
- authorizationList?: import("viem").AuthorizationList;
318
- chain?: import("viem").Chain | null;
319
- dataSuffix?: `0x${string}`;
320
- gas?: bigint;
321
- gasPrice?: bigint;
322
- maxFeePerGas?: bigint;
323
- maxPriorityFeePerGas?: bigint;
324
- nonce?: number;
325
- value?: bigint;
326
- }): Promise<void>;
327
- /**
328
- * Simulate makeLiquid
329
- * Returns gas estimate and result without sending transaction
330
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
331
- */
332
- makeLiquid(_to: `0x${string}`, options?: {
333
- accessList?: import("viem").AccessList;
334
- authorizationList?: import("viem").AuthorizationList;
335
- chain?: import("viem").Chain | null;
336
- dataSuffix?: `0x${string}`;
337
- gas?: bigint;
338
- gasPrice?: bigint;
339
- maxFeePerGas?: bigint;
340
- maxPriorityFeePerGas?: bigint;
341
- nonce?: number;
342
- value?: bigint;
343
- }): Promise<boolean>;
344
- /**
345
- * Simulate transfer
346
- * Returns gas estimate and result without sending transaction
347
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
348
- */
349
- transfer(_to: `0x${string}`, _value: bigint, options?: {
350
- accessList?: import("viem").AccessList;
351
- authorizationList?: import("viem").AuthorizationList;
352
- chain?: import("viem").Chain | null;
353
- dataSuffix?: `0x${string}`;
354
- gas?: bigint;
355
- gasPrice?: bigint;
356
- maxFeePerGas?: bigint;
357
- maxPriorityFeePerGas?: bigint;
358
- nonce?: number;
359
- value?: bigint;
360
- }): Promise<boolean>;
361
- };
362
- /**
363
- * Watch contract events
364
- *
365
- * @example
366
- * // Watch all Transfer events
367
- * const unwatch = contract.watch.Transfer((event) => {
368
- * console.log('Transfer:', event);
369
- * });
370
- *
371
- * // Stop watching
372
- * unwatch();
373
- */
374
- get watch(): {
375
- /**
376
- * Watch Transfer events
377
- * @param callback Function to call when event is emitted
378
- * @param filter Optional filter for indexed parameters
379
- * @returns Unwatch function to stop listening
380
- */
381
- Transfer: (callback: (event: {
382
- from: `0x${string}`;
383
- to: `0x${string}`;
384
- value: bigint;
385
- }) => void, filter?: {
386
- from: `0x${string}`;
387
- to: `0x${string}`;
388
- }) => () => void;
389
- /**
390
- * Watch NewOwner events
391
- * @param callback Function to call when event is emitted
392
- * @param filter Optional filter for indexed parameters
393
- * @returns Unwatch function to stop listening
394
- */
395
- NewOwner: (callback: (event: {
396
- old: `0x${string}`;
397
- current: `0x${string}`;
398
- }) => void, filter?: {
399
- old: `0x${string}`;
400
- current: `0x${string}`;
401
- }) => () => void;
402
- };
403
- }