@gitmyabi/zc 1.0.1 → 1.0.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/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Auto-generated TypeScript type bindings for **ZC**
4
4
 
5
- - **Build ID**: `etherscan-zc-4e67db19-1790587992237`
5
+ - **Build ID**: `etherscan-zc-a2f6441c-1792678907066`
6
6
  - **Build Number**: 1
7
- - **Commit**: `1c1791a`
7
+ - **Commit**: `f412a9c`
8
8
  - **Branch**: `etherscan`
9
9
  - **Target**: `ethers-v6`
10
10
  - **Contracts**: 1
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **ZC**
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- npm install @gitmyabi/zc@1.0.1
15
+ npm install @gitmyabi/zc@1.0.2
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -1,37 +1,17 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * LaunchToken_json ABI
3
+ * RobinVistaToken_json ABI
4
4
  *
5
5
  * This ABI is typed using viem's type system for full type safety.
6
6
  */
7
- export declare const LaunchToken_jsonAbi: readonly [{
8
- readonly inputs: readonly [{
9
- readonly internalType: "string";
10
- readonly name: "name_";
11
- readonly type: "string";
12
- }, {
13
- readonly internalType: "string";
14
- readonly name: "symbol_";
15
- readonly type: "string";
16
- }, {
17
- readonly internalType: "string";
18
- readonly name: "metadataUri_";
19
- readonly type: "string";
20
- }, {
21
- readonly internalType: "address";
22
- readonly name: "creator_";
23
- readonly type: "address";
24
- }, {
25
- readonly internalType: "address";
26
- readonly name: "recipient";
27
- readonly type: "address";
28
- }, {
29
- readonly internalType: "address";
30
- readonly name: "distributor_";
31
- readonly type: "address";
32
- }];
7
+ export declare const RobinVistaToken_jsonAbi: readonly [{
8
+ readonly inputs: readonly [];
33
9
  readonly stateMutability: "nonpayable";
34
10
  readonly type: "constructor";
11
+ }, {
12
+ readonly inputs: readonly [];
13
+ readonly name: "AlreadyInitialized";
14
+ readonly type: "error";
35
15
  }, {
36
16
  readonly inputs: readonly [{
37
17
  readonly internalType: "address";
@@ -96,6 +76,10 @@ export declare const LaunchToken_jsonAbi: readonly [{
96
76
  }];
97
77
  readonly name: "ERC20InvalidSpender";
98
78
  readonly type: "error";
79
+ }, {
80
+ readonly inputs: readonly [];
81
+ readonly name: "NotFactory";
82
+ readonly type: "error";
99
83
  }, {
100
84
  readonly anonymous: false;
101
85
  readonly inputs: readonly [{
@@ -136,26 +120,6 @@ export declare const LaunchToken_jsonAbi: readonly [{
136
120
  }];
137
121
  readonly name: "Transfer";
138
122
  readonly type: "event";
139
- }, {
140
- readonly inputs: readonly [];
141
- readonly name: "DESCRIPTION";
142
- readonly outputs: readonly [{
143
- readonly internalType: "string";
144
- readonly name: "";
145
- readonly type: "string";
146
- }];
147
- readonly stateMutability: "view";
148
- readonly type: "function";
149
- }, {
150
- readonly inputs: readonly [];
151
- readonly name: "TOTAL_SUPPLY";
152
- readonly outputs: readonly [{
153
- readonly internalType: "uint256";
154
- readonly name: "";
155
- readonly type: "uint256";
156
- }];
157
- readonly stateMutability: "view";
158
- readonly type: "function";
159
123
  }, {
160
124
  readonly inputs: readonly [{
161
125
  readonly internalType: "address";
@@ -208,7 +172,7 @@ export declare const LaunchToken_jsonAbi: readonly [{
208
172
  readonly type: "function";
209
173
  }, {
210
174
  readonly inputs: readonly [];
211
- readonly name: "creator";
175
+ readonly name: "baseToken";
212
176
  readonly outputs: readonly [{
213
177
  readonly internalType: "address";
214
178
  readonly name: "";
@@ -228,7 +192,7 @@ export declare const LaunchToken_jsonAbi: readonly [{
228
192
  readonly type: "function";
229
193
  }, {
230
194
  readonly inputs: readonly [];
231
- readonly name: "distributor";
195
+ readonly name: "deployer";
232
196
  readonly outputs: readonly [{
233
197
  readonly internalType: "address";
234
198
  readonly name: "";
@@ -246,9 +210,35 @@ export declare const LaunchToken_jsonAbi: readonly [{
246
210
  }];
247
211
  readonly stateMutability: "view";
248
212
  readonly type: "function";
213
+ }, {
214
+ readonly inputs: readonly [{
215
+ readonly internalType: "string";
216
+ readonly name: "name_";
217
+ readonly type: "string";
218
+ }, {
219
+ readonly internalType: "string";
220
+ readonly name: "symbol_";
221
+ readonly type: "string";
222
+ }, {
223
+ readonly internalType: "string";
224
+ readonly name: "metadataURI_";
225
+ readonly type: "string";
226
+ }, {
227
+ readonly internalType: "address";
228
+ readonly name: "deployer_";
229
+ readonly type: "address";
230
+ }, {
231
+ readonly internalType: "uint256";
232
+ readonly name: "totalSupply_";
233
+ readonly type: "uint256";
234
+ }];
235
+ readonly name: "initialize";
236
+ readonly outputs: readonly [];
237
+ readonly stateMutability: "nonpayable";
238
+ readonly type: "function";
249
239
  }, {
250
240
  readonly inputs: readonly [];
251
- readonly name: "metadataUri";
241
+ readonly name: "metadataURI";
252
242
  readonly outputs: readonly [{
253
243
  readonly internalType: "string";
254
244
  readonly name: "";
@@ -266,6 +256,30 @@ export declare const LaunchToken_jsonAbi: readonly [{
266
256
  }];
267
257
  readonly stateMutability: "view";
268
258
  readonly type: "function";
259
+ }, {
260
+ readonly inputs: readonly [];
261
+ readonly name: "poolId";
262
+ readonly outputs: readonly [{
263
+ readonly internalType: "bytes32";
264
+ readonly name: "";
265
+ readonly type: "bytes32";
266
+ }];
267
+ readonly stateMutability: "view";
268
+ readonly type: "function";
269
+ }, {
270
+ readonly inputs: readonly [{
271
+ readonly internalType: "bytes32";
272
+ readonly name: "poolId_";
273
+ readonly type: "bytes32";
274
+ }, {
275
+ readonly internalType: "address";
276
+ readonly name: "baseToken_";
277
+ readonly type: "address";
278
+ }];
279
+ readonly name: "setPool";
280
+ readonly outputs: readonly [];
281
+ readonly stateMutability: "nonpayable";
282
+ readonly type: "function";
269
283
  }, {
270
284
  readonly inputs: readonly [];
271
285
  readonly name: "symbol";
@@ -328,15 +342,15 @@ export declare const LaunchToken_jsonAbi: readonly [{
328
342
  readonly type: "function";
329
343
  }];
330
344
  /**
331
- * Type-safe ABI for LaunchToken_json
345
+ * Type-safe ABI for RobinVistaToken_json
332
346
  */
333
- export type LaunchToken_jsonAbi = typeof LaunchToken_jsonAbi;
347
+ export type RobinVistaToken_jsonAbi = typeof RobinVistaToken_jsonAbi;
334
348
  /**
335
- * Contract instance type for LaunchToken_json
349
+ * Contract instance type for RobinVistaToken_json
336
350
  */
337
- export type LaunchToken_jsonContract = any;
351
+ export type RobinVistaToken_jsonContract = any;
338
352
  /**
339
- * LaunchToken_json Contract Class
353
+ * RobinVistaToken_json Contract Class
340
354
  *
341
355
  * Provides a class-based API similar to TypeChain for interacting with the contract.
342
356
  *
@@ -344,12 +358,12 @@ export type LaunchToken_jsonContract = any;
344
358
  * ```typescript
345
359
  * import { createPublicClient, createWalletClient, http } from 'viem';
346
360
  * import { mainnet } from 'viem/chains';
347
- * import { LaunchToken_json } from 'LaunchToken_json';
361
+ * import { RobinVistaToken_json } from 'RobinVistaToken_json';
348
362
  *
349
363
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
350
364
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
351
365
  *
352
- * const contract = new LaunchToken_json('0x...', { publicClient, walletClient });
366
+ * const contract = new RobinVistaToken_json('0x...', { publicClient, walletClient });
353
367
  *
354
368
  * // Read functions
355
369
  * const result = await contract.balanceOf('0x...');
@@ -367,7 +381,7 @@ export type LaunchToken_jsonContract = any;
367
381
  * });
368
382
  * ```
369
383
  */
370
- export declare class LaunchToken_json {
384
+ export declare class RobinVistaToken_json {
371
385
  private contract;
372
386
  private contractAddress;
373
387
  private publicClient;
@@ -382,17 +396,7 @@ export declare class LaunchToken_json {
382
396
  /**
383
397
  * Get the underlying viem contract instance
384
398
  */
385
- getContract(): LaunchToken_jsonContract;
386
- /**
387
- * DESCRIPTION
388
- * view
389
- */
390
- DESCRIPTION(): Promise<string>;
391
- /**
392
- * TOTAL_SUPPLY
393
- * view
394
- */
395
- TOTAL_SUPPLY(): Promise<bigint>;
399
+ getContract(): RobinVistaToken_jsonContract;
396
400
  /**
397
401
  * allowance
398
402
  * view
@@ -404,35 +408,40 @@ export declare class LaunchToken_json {
404
408
  */
405
409
  balanceOf(account: `0x${string}`): Promise<bigint>;
406
410
  /**
407
- * creator
411
+ * baseToken
408
412
  * view
409
413
  */
410
- creator(): Promise<`0x${string}`>;
414
+ baseToken(): Promise<`0x${string}`>;
411
415
  /**
412
416
  * decimals
413
417
  * view
414
418
  */
415
419
  decimals(): Promise<bigint>;
416
420
  /**
417
- * distributor
421
+ * deployer
418
422
  * view
419
423
  */
420
- distributor(): Promise<`0x${string}`>;
424
+ deployer(): Promise<`0x${string}`>;
421
425
  /**
422
426
  * factory
423
427
  * view
424
428
  */
425
429
  factory(): Promise<`0x${string}`>;
426
430
  /**
427
- * metadataUri
431
+ * metadataURI
428
432
  * view
429
433
  */
430
- metadataUri(): Promise<string>;
434
+ metadataURI(): Promise<string>;
431
435
  /**
432
436
  * name
433
437
  * view
434
438
  */
435
439
  name(): Promise<string>;
440
+ /**
441
+ * poolId
442
+ * view
443
+ */
444
+ poolId(): Promise<`0x${string}`>;
436
445
  /**
437
446
  * symbol
438
447
  * view
@@ -460,6 +469,40 @@ export declare class LaunchToken_json {
460
469
  nonce?: number;
461
470
  value?: bigint;
462
471
  }): Promise<`0x${string}`>;
472
+ /**
473
+ * initialize
474
+ * nonpayable
475
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
476
+ */
477
+ initialize(name_: string, symbol_: string, metadataURI_: string, deployer_: `0x${string}`, totalSupply_: bigint, options?: {
478
+ accessList?: import('viem').AccessList;
479
+ authorizationList?: import('viem').AuthorizationList;
480
+ chain?: import('viem').Chain | null;
481
+ dataSuffix?: `0x${string}`;
482
+ gas?: bigint;
483
+ gasPrice?: bigint;
484
+ maxFeePerGas?: bigint;
485
+ maxPriorityFeePerGas?: bigint;
486
+ nonce?: number;
487
+ value?: bigint;
488
+ }): Promise<`0x${string}`>;
489
+ /**
490
+ * setPool
491
+ * nonpayable
492
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
493
+ */
494
+ setPool(poolId_: `0x${string}`, baseToken_: `0x${string}`, options?: {
495
+ accessList?: import('viem').AccessList;
496
+ authorizationList?: import('viem').AuthorizationList;
497
+ chain?: import('viem').Chain | null;
498
+ dataSuffix?: `0x${string}`;
499
+ gas?: bigint;
500
+ gasPrice?: bigint;
501
+ maxFeePerGas?: bigint;
502
+ maxPriorityFeePerGas?: bigint;
503
+ nonce?: number;
504
+ value?: bigint;
505
+ }): Promise<`0x${string}`>;
463
506
  /**
464
507
  * transfer
465
508
  * nonpayable
@@ -520,6 +563,40 @@ export declare class LaunchToken_json {
520
563
  nonce?: number;
521
564
  value?: bigint;
522
565
  }): Promise<boolean>;
566
+ /**
567
+ * Simulate initialize
568
+ * Returns gas estimate and result without sending transaction
569
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
570
+ */
571
+ initialize(name_: string, symbol_: string, metadataURI_: string, deployer_: `0x${string}`, totalSupply_: bigint, options?: {
572
+ accessList?: import("viem").AccessList;
573
+ authorizationList?: import("viem").AuthorizationList;
574
+ chain?: import("viem").Chain | null;
575
+ dataSuffix?: `0x${string}`;
576
+ gas?: bigint;
577
+ gasPrice?: bigint;
578
+ maxFeePerGas?: bigint;
579
+ maxPriorityFeePerGas?: bigint;
580
+ nonce?: number;
581
+ value?: bigint;
582
+ }): Promise<void>;
583
+ /**
584
+ * Simulate setPool
585
+ * Returns gas estimate and result without sending transaction
586
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
587
+ */
588
+ setPool(poolId_: `0x${string}`, baseToken_: `0x${string}`, options?: {
589
+ accessList?: import("viem").AccessList;
590
+ authorizationList?: import("viem").AuthorizationList;
591
+ chain?: import("viem").Chain | null;
592
+ dataSuffix?: `0x${string}`;
593
+ gas?: bigint;
594
+ gasPrice?: bigint;
595
+ maxFeePerGas?: bigint;
596
+ maxPriorityFeePerGas?: bigint;
597
+ nonce?: number;
598
+ value?: bigint;
599
+ }): Promise<void>;
523
600
  /**
524
601
  * Simulate transfer
525
602
  * Returns gas estimate and result without sending transaction
@@ -1,49 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LaunchToken_json = exports.LaunchToken_jsonAbi = void 0;
3
+ exports.RobinVistaToken_json = exports.RobinVistaToken_jsonAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * LaunchToken_json ABI
6
+ * RobinVistaToken_json ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.LaunchToken_jsonAbi = [
10
+ exports.RobinVistaToken_jsonAbi = [
11
11
  {
12
- "inputs": [
13
- {
14
- "internalType": "string",
15
- "name": "name_",
16
- "type": "string"
17
- },
18
- {
19
- "internalType": "string",
20
- "name": "symbol_",
21
- "type": "string"
22
- },
23
- {
24
- "internalType": "string",
25
- "name": "metadataUri_",
26
- "type": "string"
27
- },
28
- {
29
- "internalType": "address",
30
- "name": "creator_",
31
- "type": "address"
32
- },
33
- {
34
- "internalType": "address",
35
- "name": "recipient",
36
- "type": "address"
37
- },
38
- {
39
- "internalType": "address",
40
- "name": "distributor_",
41
- "type": "address"
42
- }
43
- ],
12
+ "inputs": [],
44
13
  "stateMutability": "nonpayable",
45
14
  "type": "constructor"
46
15
  },
16
+ {
17
+ "inputs": [],
18
+ "name": "AlreadyInitialized",
19
+ "type": "error"
20
+ },
47
21
  {
48
22
  "inputs": [
49
23
  {
@@ -130,6 +104,11 @@ exports.LaunchToken_jsonAbi = [
130
104
  "name": "ERC20InvalidSpender",
131
105
  "type": "error"
132
106
  },
107
+ {
108
+ "inputs": [],
109
+ "name": "NotFactory",
110
+ "type": "error"
111
+ },
133
112
  {
134
113
  "anonymous": false,
135
114
  "inputs": [
@@ -180,32 +159,6 @@ exports.LaunchToken_jsonAbi = [
180
159
  "name": "Transfer",
181
160
  "type": "event"
182
161
  },
183
- {
184
- "inputs": [],
185
- "name": "DESCRIPTION",
186
- "outputs": [
187
- {
188
- "internalType": "string",
189
- "name": "",
190
- "type": "string"
191
- }
192
- ],
193
- "stateMutability": "view",
194
- "type": "function"
195
- },
196
- {
197
- "inputs": [],
198
- "name": "TOTAL_SUPPLY",
199
- "outputs": [
200
- {
201
- "internalType": "uint256",
202
- "name": "",
203
- "type": "uint256"
204
- }
205
- ],
206
- "stateMutability": "view",
207
- "type": "function"
208
- },
209
162
  {
210
163
  "inputs": [
211
164
  {
@@ -275,7 +228,7 @@ exports.LaunchToken_jsonAbi = [
275
228
  },
276
229
  {
277
230
  "inputs": [],
278
- "name": "creator",
231
+ "name": "baseToken",
279
232
  "outputs": [
280
233
  {
281
234
  "internalType": "address",
@@ -301,7 +254,7 @@ exports.LaunchToken_jsonAbi = [
301
254
  },
302
255
  {
303
256
  "inputs": [],
304
- "name": "distributor",
257
+ "name": "deployer",
305
258
  "outputs": [
306
259
  {
307
260
  "internalType": "address",
@@ -325,9 +278,42 @@ exports.LaunchToken_jsonAbi = [
325
278
  "stateMutability": "view",
326
279
  "type": "function"
327
280
  },
281
+ {
282
+ "inputs": [
283
+ {
284
+ "internalType": "string",
285
+ "name": "name_",
286
+ "type": "string"
287
+ },
288
+ {
289
+ "internalType": "string",
290
+ "name": "symbol_",
291
+ "type": "string"
292
+ },
293
+ {
294
+ "internalType": "string",
295
+ "name": "metadataURI_",
296
+ "type": "string"
297
+ },
298
+ {
299
+ "internalType": "address",
300
+ "name": "deployer_",
301
+ "type": "address"
302
+ },
303
+ {
304
+ "internalType": "uint256",
305
+ "name": "totalSupply_",
306
+ "type": "uint256"
307
+ }
308
+ ],
309
+ "name": "initialize",
310
+ "outputs": [],
311
+ "stateMutability": "nonpayable",
312
+ "type": "function"
313
+ },
328
314
  {
329
315
  "inputs": [],
330
- "name": "metadataUri",
316
+ "name": "metadataURI",
331
317
  "outputs": [
332
318
  {
333
319
  "internalType": "string",
@@ -351,6 +337,37 @@ exports.LaunchToken_jsonAbi = [
351
337
  "stateMutability": "view",
352
338
  "type": "function"
353
339
  },
340
+ {
341
+ "inputs": [],
342
+ "name": "poolId",
343
+ "outputs": [
344
+ {
345
+ "internalType": "bytes32",
346
+ "name": "",
347
+ "type": "bytes32"
348
+ }
349
+ ],
350
+ "stateMutability": "view",
351
+ "type": "function"
352
+ },
353
+ {
354
+ "inputs": [
355
+ {
356
+ "internalType": "bytes32",
357
+ "name": "poolId_",
358
+ "type": "bytes32"
359
+ },
360
+ {
361
+ "internalType": "address",
362
+ "name": "baseToken_",
363
+ "type": "address"
364
+ }
365
+ ],
366
+ "name": "setPool",
367
+ "outputs": [],
368
+ "stateMutability": "nonpayable",
369
+ "type": "function"
370
+ },
354
371
  {
355
372
  "inputs": [],
356
373
  "name": "symbol",
@@ -432,7 +449,7 @@ exports.LaunchToken_jsonAbi = [
432
449
  }
433
450
  ];
434
451
  /**
435
- * LaunchToken_json Contract Class
452
+ * RobinVistaToken_json Contract Class
436
453
  *
437
454
  * Provides a class-based API similar to TypeChain for interacting with the contract.
438
455
  *
@@ -440,12 +457,12 @@ exports.LaunchToken_jsonAbi = [
440
457
  * ```typescript
441
458
  * import { createPublicClient, createWalletClient, http } from 'viem';
442
459
  * import { mainnet } from 'viem/chains';
443
- * import { LaunchToken_json } from 'LaunchToken_json';
460
+ * import { RobinVistaToken_json } from 'RobinVistaToken_json';
444
461
  *
445
462
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
446
463
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
447
464
  *
448
- * const contract = new LaunchToken_json('0x...', { publicClient, walletClient });
465
+ * const contract = new RobinVistaToken_json('0x...', { publicClient, walletClient });
449
466
  *
450
467
  * // Read functions
451
468
  * const result = await contract.balanceOf('0x...');
@@ -463,13 +480,13 @@ exports.LaunchToken_jsonAbi = [
463
480
  * });
464
481
  * ```
465
482
  */
466
- class LaunchToken_json {
483
+ class RobinVistaToken_json {
467
484
  constructor(address, clients) {
468
485
  this.contractAddress = address;
469
486
  this.publicClient = clients.publicClient;
470
487
  this.contract = (0, viem_1.getContract)({
471
488
  address,
472
- abi: exports.LaunchToken_jsonAbi,
489
+ abi: exports.RobinVistaToken_jsonAbi,
473
490
  client: {
474
491
  public: clients.publicClient,
475
492
  wallet: clients.walletClient,
@@ -488,20 +505,6 @@ class LaunchToken_json {
488
505
  getContract() {
489
506
  return this.contract;
490
507
  }
491
- /**
492
- * DESCRIPTION
493
- * view
494
- */
495
- async DESCRIPTION() {
496
- return this.contract.read.DESCRIPTION();
497
- }
498
- /**
499
- * TOTAL_SUPPLY
500
- * view
501
- */
502
- async TOTAL_SUPPLY() {
503
- return this.contract.read.TOTAL_SUPPLY();
504
- }
505
508
  /**
506
509
  * allowance
507
510
  * view
@@ -517,11 +520,11 @@ class LaunchToken_json {
517
520
  return this.contract.read.balanceOf([account]);
518
521
  }
519
522
  /**
520
- * creator
523
+ * baseToken
521
524
  * view
522
525
  */
523
- async creator() {
524
- return this.contract.read.creator();
526
+ async baseToken() {
527
+ return this.contract.read.baseToken();
525
528
  }
526
529
  /**
527
530
  * decimals
@@ -531,11 +534,11 @@ class LaunchToken_json {
531
534
  return this.contract.read.decimals();
532
535
  }
533
536
  /**
534
- * distributor
537
+ * deployer
535
538
  * view
536
539
  */
537
- async distributor() {
538
- return this.contract.read.distributor();
540
+ async deployer() {
541
+ return this.contract.read.deployer();
539
542
  }
540
543
  /**
541
544
  * factory
@@ -545,11 +548,11 @@ class LaunchToken_json {
545
548
  return this.contract.read.factory();
546
549
  }
547
550
  /**
548
- * metadataUri
551
+ * metadataURI
549
552
  * view
550
553
  */
551
- async metadataUri() {
552
- return this.contract.read.metadataUri();
554
+ async metadataURI() {
555
+ return this.contract.read.metadataURI();
553
556
  }
554
557
  /**
555
558
  * name
@@ -558,6 +561,13 @@ class LaunchToken_json {
558
561
  async name() {
559
562
  return this.contract.read.name();
560
563
  }
564
+ /**
565
+ * poolId
566
+ * view
567
+ */
568
+ async poolId() {
569
+ return this.contract.read.poolId();
570
+ }
561
571
  /**
562
572
  * symbol
563
573
  * view
@@ -583,6 +593,28 @@ class LaunchToken_json {
583
593
  }
584
594
  return this.contract.write.approve([spender, value], options);
585
595
  }
596
+ /**
597
+ * initialize
598
+ * nonpayable
599
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
600
+ */
601
+ async initialize(name_, symbol_, metadataURI_, deployer_, totalSupply_, options) {
602
+ if (!this.contract.write) {
603
+ throw new Error('Wallet client is required for write operations');
604
+ }
605
+ return this.contract.write.initialize([name_, symbol_, metadataURI_, deployer_, totalSupply_], options);
606
+ }
607
+ /**
608
+ * setPool
609
+ * nonpayable
610
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
611
+ */
612
+ async setPool(poolId_, baseToken_, options) {
613
+ if (!this.contract.write) {
614
+ throw new Error('Wallet client is required for write operations');
615
+ }
616
+ return this.contract.write.setPool([poolId_, baseToken_], options);
617
+ }
586
618
  /**
587
619
  * transfer
588
620
  * nonpayable
@@ -627,6 +659,22 @@ class LaunchToken_json {
627
659
  async approve(spender, value, options) {
628
660
  return contract.simulate.approve([spender, value], options);
629
661
  },
662
+ /**
663
+ * Simulate initialize
664
+ * Returns gas estimate and result without sending transaction
665
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
666
+ */
667
+ async initialize(name_, symbol_, metadataURI_, deployer_, totalSupply_, options) {
668
+ return contract.simulate.initialize([name_, symbol_, metadataURI_, deployer_, totalSupply_], options);
669
+ },
670
+ /**
671
+ * Simulate setPool
672
+ * Returns gas estimate and result without sending transaction
673
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
674
+ */
675
+ async setPool(poolId_, baseToken_, options) {
676
+ return contract.simulate.setPool([poolId_, baseToken_], options);
677
+ },
630
678
  /**
631
679
  * Simulate transfer
632
680
  * Returns gas estimate and result without sending transaction
@@ -668,7 +716,7 @@ class LaunchToken_json {
668
716
  Approval: (callback, filter) => {
669
717
  return this.publicClient.watchContractEvent({
670
718
  address: this.contractAddress,
671
- abi: exports.LaunchToken_jsonAbi,
719
+ abi: exports.RobinVistaToken_jsonAbi,
672
720
  eventName: 'Approval',
673
721
  args: filter,
674
722
  onLogs: (logs) => {
@@ -687,7 +735,7 @@ class LaunchToken_json {
687
735
  Transfer: (callback, filter) => {
688
736
  return this.publicClient.watchContractEvent({
689
737
  address: this.contractAddress,
690
- abi: exports.LaunchToken_jsonAbi,
738
+ abi: exports.RobinVistaToken_jsonAbi,
691
739
  eventName: 'Transfer',
692
740
  args: filter,
693
741
  onLogs: (logs) => {
@@ -700,4 +748,4 @@ class LaunchToken_json {
700
748
  };
701
749
  }
702
750
  }
703
- exports.LaunchToken_json = LaunchToken_json;
751
+ exports.RobinVistaToken_json = RobinVistaToken_json;
@@ -2,47 +2,21 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * LaunchToken_json ABI
5
+ * RobinVistaToken_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const LaunchToken_jsonAbi = [
9
+ export const RobinVistaToken_jsonAbi = [
10
10
  {
11
- "inputs": [
12
- {
13
- "internalType": "string",
14
- "name": "name_",
15
- "type": "string"
16
- },
17
- {
18
- "internalType": "string",
19
- "name": "symbol_",
20
- "type": "string"
21
- },
22
- {
23
- "internalType": "string",
24
- "name": "metadataUri_",
25
- "type": "string"
26
- },
27
- {
28
- "internalType": "address",
29
- "name": "creator_",
30
- "type": "address"
31
- },
32
- {
33
- "internalType": "address",
34
- "name": "recipient",
35
- "type": "address"
36
- },
37
- {
38
- "internalType": "address",
39
- "name": "distributor_",
40
- "type": "address"
41
- }
42
- ],
11
+ "inputs": [],
43
12
  "stateMutability": "nonpayable",
44
13
  "type": "constructor"
45
14
  },
15
+ {
16
+ "inputs": [],
17
+ "name": "AlreadyInitialized",
18
+ "type": "error"
19
+ },
46
20
  {
47
21
  "inputs": [
48
22
  {
@@ -129,6 +103,11 @@ export const LaunchToken_jsonAbi = [
129
103
  "name": "ERC20InvalidSpender",
130
104
  "type": "error"
131
105
  },
106
+ {
107
+ "inputs": [],
108
+ "name": "NotFactory",
109
+ "type": "error"
110
+ },
132
111
  {
133
112
  "anonymous": false,
134
113
  "inputs": [
@@ -179,32 +158,6 @@ export const LaunchToken_jsonAbi = [
179
158
  "name": "Transfer",
180
159
  "type": "event"
181
160
  },
182
- {
183
- "inputs": [],
184
- "name": "DESCRIPTION",
185
- "outputs": [
186
- {
187
- "internalType": "string",
188
- "name": "",
189
- "type": "string"
190
- }
191
- ],
192
- "stateMutability": "view",
193
- "type": "function"
194
- },
195
- {
196
- "inputs": [],
197
- "name": "TOTAL_SUPPLY",
198
- "outputs": [
199
- {
200
- "internalType": "uint256",
201
- "name": "",
202
- "type": "uint256"
203
- }
204
- ],
205
- "stateMutability": "view",
206
- "type": "function"
207
- },
208
161
  {
209
162
  "inputs": [
210
163
  {
@@ -274,7 +227,7 @@ export const LaunchToken_jsonAbi = [
274
227
  },
275
228
  {
276
229
  "inputs": [],
277
- "name": "creator",
230
+ "name": "baseToken",
278
231
  "outputs": [
279
232
  {
280
233
  "internalType": "address",
@@ -300,7 +253,7 @@ export const LaunchToken_jsonAbi = [
300
253
  },
301
254
  {
302
255
  "inputs": [],
303
- "name": "distributor",
256
+ "name": "deployer",
304
257
  "outputs": [
305
258
  {
306
259
  "internalType": "address",
@@ -324,9 +277,42 @@ export const LaunchToken_jsonAbi = [
324
277
  "stateMutability": "view",
325
278
  "type": "function"
326
279
  },
280
+ {
281
+ "inputs": [
282
+ {
283
+ "internalType": "string",
284
+ "name": "name_",
285
+ "type": "string"
286
+ },
287
+ {
288
+ "internalType": "string",
289
+ "name": "symbol_",
290
+ "type": "string"
291
+ },
292
+ {
293
+ "internalType": "string",
294
+ "name": "metadataURI_",
295
+ "type": "string"
296
+ },
297
+ {
298
+ "internalType": "address",
299
+ "name": "deployer_",
300
+ "type": "address"
301
+ },
302
+ {
303
+ "internalType": "uint256",
304
+ "name": "totalSupply_",
305
+ "type": "uint256"
306
+ }
307
+ ],
308
+ "name": "initialize",
309
+ "outputs": [],
310
+ "stateMutability": "nonpayable",
311
+ "type": "function"
312
+ },
327
313
  {
328
314
  "inputs": [],
329
- "name": "metadataUri",
315
+ "name": "metadataURI",
330
316
  "outputs": [
331
317
  {
332
318
  "internalType": "string",
@@ -350,6 +336,37 @@ export const LaunchToken_jsonAbi = [
350
336
  "stateMutability": "view",
351
337
  "type": "function"
352
338
  },
339
+ {
340
+ "inputs": [],
341
+ "name": "poolId",
342
+ "outputs": [
343
+ {
344
+ "internalType": "bytes32",
345
+ "name": "",
346
+ "type": "bytes32"
347
+ }
348
+ ],
349
+ "stateMutability": "view",
350
+ "type": "function"
351
+ },
352
+ {
353
+ "inputs": [
354
+ {
355
+ "internalType": "bytes32",
356
+ "name": "poolId_",
357
+ "type": "bytes32"
358
+ },
359
+ {
360
+ "internalType": "address",
361
+ "name": "baseToken_",
362
+ "type": "address"
363
+ }
364
+ ],
365
+ "name": "setPool",
366
+ "outputs": [],
367
+ "stateMutability": "nonpayable",
368
+ "type": "function"
369
+ },
353
370
  {
354
371
  "inputs": [],
355
372
  "name": "symbol",
@@ -432,19 +449,19 @@ export const LaunchToken_jsonAbi = [
432
449
  ] as const satisfies Abi;
433
450
 
434
451
  /**
435
- * Type-safe ABI for LaunchToken_json
452
+ * Type-safe ABI for RobinVistaToken_json
436
453
  */
437
- export type LaunchToken_jsonAbi = typeof LaunchToken_jsonAbi;
454
+ export type RobinVistaToken_jsonAbi = typeof RobinVistaToken_jsonAbi;
438
455
 
439
456
  /**
440
- * Contract instance type for LaunchToken_json
457
+ * Contract instance type for RobinVistaToken_json
441
458
  */
442
459
  // Use any for contract type to avoid complex viem type issues
443
460
  // The runtime behavior is type-safe through viem's ABI typing
444
- export type LaunchToken_jsonContract = any;
461
+ export type RobinVistaToken_jsonContract = any;
445
462
 
446
463
  /**
447
- * LaunchToken_json Contract Class
464
+ * RobinVistaToken_json Contract Class
448
465
  *
449
466
  * Provides a class-based API similar to TypeChain for interacting with the contract.
450
467
  *
@@ -452,12 +469,12 @@ export type LaunchToken_jsonContract = any;
452
469
  * ```typescript
453
470
  * import { createPublicClient, createWalletClient, http } from 'viem';
454
471
  * import { mainnet } from 'viem/chains';
455
- * import { LaunchToken_json } from 'LaunchToken_json';
472
+ * import { RobinVistaToken_json } from 'RobinVistaToken_json';
456
473
  *
457
474
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
458
475
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
459
476
  *
460
- * const contract = new LaunchToken_json('0x...', { publicClient, walletClient });
477
+ * const contract = new RobinVistaToken_json('0x...', { publicClient, walletClient });
461
478
  *
462
479
  * // Read functions
463
480
  * const result = await contract.balanceOf('0x...');
@@ -475,8 +492,8 @@ export type LaunchToken_jsonContract = any;
475
492
  * });
476
493
  * ```
477
494
  */
478
- export class LaunchToken_json {
479
- private contract: LaunchToken_jsonContract;
495
+ export class RobinVistaToken_json {
496
+ private contract: RobinVistaToken_jsonContract;
480
497
  private contractAddress: Address;
481
498
  private publicClient: PublicClient;
482
499
 
@@ -491,7 +508,7 @@ export class LaunchToken_json {
491
508
  this.publicClient = clients.publicClient;
492
509
  this.contract = getContract({
493
510
  address,
494
- abi: LaunchToken_jsonAbi,
511
+ abi: RobinVistaToken_jsonAbi,
495
512
  client: {
496
513
  public: clients.publicClient,
497
514
  wallet: clients.walletClient,
@@ -509,26 +526,10 @@ export class LaunchToken_json {
509
526
  /**
510
527
  * Get the underlying viem contract instance
511
528
  */
512
- getContract(): LaunchToken_jsonContract {
529
+ getContract(): RobinVistaToken_jsonContract {
513
530
  return this.contract;
514
531
  }
515
532
 
516
- /**
517
- * DESCRIPTION
518
- * view
519
- */
520
- async DESCRIPTION(): Promise<string> {
521
- return this.contract.read.DESCRIPTION() as Promise<string>;
522
- }
523
-
524
- /**
525
- * TOTAL_SUPPLY
526
- * view
527
- */
528
- async TOTAL_SUPPLY(): Promise<bigint> {
529
- return this.contract.read.TOTAL_SUPPLY() as Promise<bigint>;
530
- }
531
-
532
533
  /**
533
534
  * allowance
534
535
  * view
@@ -546,11 +547,11 @@ export class LaunchToken_json {
546
547
  }
547
548
 
548
549
  /**
549
- * creator
550
+ * baseToken
550
551
  * view
551
552
  */
552
- async creator(): Promise<`0x${string}`> {
553
- return this.contract.read.creator() as Promise<`0x${string}`>;
553
+ async baseToken(): Promise<`0x${string}`> {
554
+ return this.contract.read.baseToken() as Promise<`0x${string}`>;
554
555
  }
555
556
 
556
557
  /**
@@ -562,11 +563,11 @@ export class LaunchToken_json {
562
563
  }
563
564
 
564
565
  /**
565
- * distributor
566
+ * deployer
566
567
  * view
567
568
  */
568
- async distributor(): Promise<`0x${string}`> {
569
- return this.contract.read.distributor() as Promise<`0x${string}`>;
569
+ async deployer(): Promise<`0x${string}`> {
570
+ return this.contract.read.deployer() as Promise<`0x${string}`>;
570
571
  }
571
572
 
572
573
  /**
@@ -578,11 +579,11 @@ export class LaunchToken_json {
578
579
  }
579
580
 
580
581
  /**
581
- * metadataUri
582
+ * metadataURI
582
583
  * view
583
584
  */
584
- async metadataUri(): Promise<string> {
585
- return this.contract.read.metadataUri() as Promise<string>;
585
+ async metadataURI(): Promise<string> {
586
+ return this.contract.read.metadataURI() as Promise<string>;
586
587
  }
587
588
 
588
589
  /**
@@ -593,6 +594,14 @@ export class LaunchToken_json {
593
594
  return this.contract.read.name() as Promise<string>;
594
595
  }
595
596
 
597
+ /**
598
+ * poolId
599
+ * view
600
+ */
601
+ async poolId(): Promise<`0x${string}`> {
602
+ return this.contract.read.poolId() as Promise<`0x${string}`>;
603
+ }
604
+
596
605
  /**
597
606
  * symbol
598
607
  * view
@@ -632,6 +641,52 @@ export class LaunchToken_json {
632
641
  return this.contract.write.approve([spender, value] as const, options) as Promise<`0x${string}`>;
633
642
  }
634
643
 
644
+ /**
645
+ * initialize
646
+ * nonpayable
647
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
648
+ */
649
+ async initialize(name_: string, symbol_: string, metadataURI_: string, deployer_: `0x${string}`, totalSupply_: bigint, options?: {
650
+ accessList?: import('viem').AccessList;
651
+ authorizationList?: import('viem').AuthorizationList;
652
+ chain?: import('viem').Chain | null;
653
+ dataSuffix?: `0x${string}`;
654
+ gas?: bigint;
655
+ gasPrice?: bigint;
656
+ maxFeePerGas?: bigint;
657
+ maxPriorityFeePerGas?: bigint;
658
+ nonce?: number;
659
+ value?: bigint;
660
+ }): Promise<`0x${string}`> {
661
+ if (!this.contract.write) {
662
+ throw new Error('Wallet client is required for write operations');
663
+ }
664
+ return this.contract.write.initialize([name_, symbol_, metadataURI_, deployer_, totalSupply_] as const, options) as Promise<`0x${string}`>;
665
+ }
666
+
667
+ /**
668
+ * setPool
669
+ * nonpayable
670
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
671
+ */
672
+ async setPool(poolId_: `0x${string}`, baseToken_: `0x${string}`, options?: {
673
+ accessList?: import('viem').AccessList;
674
+ authorizationList?: import('viem').AuthorizationList;
675
+ chain?: import('viem').Chain | null;
676
+ dataSuffix?: `0x${string}`;
677
+ gas?: bigint;
678
+ gasPrice?: bigint;
679
+ maxFeePerGas?: bigint;
680
+ maxPriorityFeePerGas?: bigint;
681
+ nonce?: number;
682
+ value?: bigint;
683
+ }): Promise<`0x${string}`> {
684
+ if (!this.contract.write) {
685
+ throw new Error('Wallet client is required for write operations');
686
+ }
687
+ return this.contract.write.setPool([poolId_, baseToken_] as const, options) as Promise<`0x${string}`>;
688
+ }
689
+
635
690
  /**
636
691
  * transfer
637
692
  * nonpayable
@@ -713,6 +768,44 @@ export class LaunchToken_json {
713
768
  }): Promise<boolean> {
714
769
  return contract.simulate.approve([spender, value] as const, options) as Promise<boolean>;
715
770
  },
771
+ /**
772
+ * Simulate initialize
773
+ * Returns gas estimate and result without sending transaction
774
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
775
+ */
776
+ async initialize(name_: string, symbol_: string, metadataURI_: string, deployer_: `0x${string}`, totalSupply_: bigint, options?: {
777
+ accessList?: import('viem').AccessList;
778
+ authorizationList?: import('viem').AuthorizationList;
779
+ chain?: import('viem').Chain | null;
780
+ dataSuffix?: `0x${string}`;
781
+ gas?: bigint;
782
+ gasPrice?: bigint;
783
+ maxFeePerGas?: bigint;
784
+ maxPriorityFeePerGas?: bigint;
785
+ nonce?: number;
786
+ value?: bigint;
787
+ }): Promise<void> {
788
+ return contract.simulate.initialize([name_, symbol_, metadataURI_, deployer_, totalSupply_] as const, options) as Promise<void>;
789
+ },
790
+ /**
791
+ * Simulate setPool
792
+ * Returns gas estimate and result without sending transaction
793
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
794
+ */
795
+ async setPool(poolId_: `0x${string}`, baseToken_: `0x${string}`, options?: {
796
+ accessList?: import('viem').AccessList;
797
+ authorizationList?: import('viem').AuthorizationList;
798
+ chain?: import('viem').Chain | null;
799
+ dataSuffix?: `0x${string}`;
800
+ gas?: bigint;
801
+ gasPrice?: bigint;
802
+ maxFeePerGas?: bigint;
803
+ maxPriorityFeePerGas?: bigint;
804
+ nonce?: number;
805
+ value?: bigint;
806
+ }): Promise<void> {
807
+ return contract.simulate.setPool([poolId_, baseToken_] as const, options) as Promise<void>;
808
+ },
716
809
  /**
717
810
  * Simulate transfer
718
811
  * Returns gas estimate and result without sending transaction
@@ -777,7 +870,7 @@ export class LaunchToken_json {
777
870
  Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner: `0x${string}`; spender: `0x${string}` }) => {
778
871
  return this.publicClient.watchContractEvent({
779
872
  address: this.contractAddress,
780
- abi: LaunchToken_jsonAbi,
873
+ abi: RobinVistaToken_jsonAbi,
781
874
  eventName: 'Approval',
782
875
  args: filter,
783
876
  onLogs: (logs: any[]) => {
@@ -796,7 +889,7 @@ export class LaunchToken_json {
796
889
  Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from: `0x${string}`; to: `0x${string}` }) => {
797
890
  return this.publicClient.watchContractEvent({
798
891
  address: this.contractAddress,
799
- abi: LaunchToken_jsonAbi,
892
+ abi: RobinVistaToken_jsonAbi,
800
893
  eventName: 'Transfer',
801
894
  args: filter,
802
895
  onLogs: (logs: any[]) => {
@@ -1,2 +1,2 @@
1
- export { LaunchToken_jsonAbi, LaunchToken_json } from './LaunchToken_json';
2
- export type { LaunchToken_jsonAbi as LaunchToken_jsonAbiType, LaunchToken_jsonContract } from './LaunchToken_json';
1
+ export { RobinVistaToken_jsonAbi, RobinVistaToken_json } from './RobinVistaToken_json';
2
+ export type { RobinVistaToken_jsonAbi as RobinVistaToken_jsonAbiType, RobinVistaToken_jsonContract } from './RobinVistaToken_json';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LaunchToken_json = exports.LaunchToken_jsonAbi = void 0;
3
+ exports.RobinVistaToken_json = exports.RobinVistaToken_jsonAbi = void 0;
4
4
  // Auto-generated exports for all contracts
5
- var LaunchToken_json_1 = require("./LaunchToken_json");
6
- Object.defineProperty(exports, "LaunchToken_jsonAbi", { enumerable: true, get: function () { return LaunchToken_json_1.LaunchToken_jsonAbi; } });
7
- Object.defineProperty(exports, "LaunchToken_json", { enumerable: true, get: function () { return LaunchToken_json_1.LaunchToken_json; } });
5
+ var RobinVistaToken_json_1 = require("./RobinVistaToken_json");
6
+ Object.defineProperty(exports, "RobinVistaToken_jsonAbi", { enumerable: true, get: function () { return RobinVistaToken_json_1.RobinVistaToken_jsonAbi; } });
7
+ Object.defineProperty(exports, "RobinVistaToken_json", { enumerable: true, get: function () { return RobinVistaToken_json_1.RobinVistaToken_json; } });
@@ -1,3 +1,3 @@
1
1
  // Auto-generated exports for all contracts
2
- export { LaunchToken_jsonAbi, LaunchToken_json } from './LaunchToken_json';
3
- export type { LaunchToken_jsonAbi as LaunchToken_jsonAbiType, LaunchToken_jsonContract } from './LaunchToken_json';
2
+ export { RobinVistaToken_jsonAbi, RobinVistaToken_json } from './RobinVistaToken_json';
3
+ export type { RobinVistaToken_jsonAbi as RobinVistaToken_jsonAbiType, RobinVistaToken_jsonContract } from './RobinVistaToken_json';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/zc",
3
- "version": "1.0.1",
4
- "description": "Auto-generated TypeScript type bindings for ZC (build etherscan-zc-4e67db19-1790587992237, commit 1c1791a, branch etherscan)",
3
+ "version": "1.0.2",
4
+ "description": "Auto-generated TypeScript type bindings for ZC (build etherscan-zc-a2f6441c-1792678907066, commit f412a9c, 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/zc"
40
40
  },
41
41
  "branch": "etherscan",
42
- "shortHash": "1c1791a"
42
+ "shortHash": "f412a9c"
43
43
  }