@gitmyabi/presale 1.0.1 → 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.
@@ -2,11 +2,11 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * PresaleV2_json ABI
5
+ * PresaleV3_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const PresaleV2_jsonAbi = [
9
+ export const PresaleV3_jsonAbi = [
10
10
  {
11
11
  "inputs": [],
12
12
  "stateMutability": "nonpayable",
@@ -389,6 +389,19 @@ export const PresaleV2_jsonAbi = [
389
389
  "stateMutability": "view",
390
390
  "type": "function"
391
391
  },
392
+ {
393
+ "inputs": [],
394
+ "name": "applySanctions",
395
+ "outputs": [
396
+ {
397
+ "internalType": "bool",
398
+ "name": "",
399
+ "type": "bool"
400
+ }
401
+ ],
402
+ "stateMutability": "view",
403
+ "type": "function"
404
+ },
392
405
  {
393
406
  "inputs": [],
394
407
  "name": "baseDecimals",
@@ -492,6 +505,35 @@ export const PresaleV2_jsonAbi = [
492
505
  "stateMutability": "nonpayable",
493
506
  "type": "function"
494
507
  },
508
+ {
509
+ "inputs": [
510
+ {
511
+ "internalType": "address",
512
+ "name": "_user",
513
+ "type": "address"
514
+ },
515
+ {
516
+ "internalType": "uint256",
517
+ "name": "_amount",
518
+ "type": "uint256"
519
+ },
520
+ {
521
+ "internalType": "bool",
522
+ "name": "stake",
523
+ "type": "bool"
524
+ }
525
+ ],
526
+ "name": "buyWithUSDCWERT",
527
+ "outputs": [
528
+ {
529
+ "internalType": "bool",
530
+ "name": "",
531
+ "type": "bool"
532
+ }
533
+ ],
534
+ "stateMutability": "nonpayable",
535
+ "type": "function"
536
+ },
495
537
  {
496
538
  "inputs": [
497
539
  {
@@ -1016,6 +1058,19 @@ export const PresaleV2_jsonAbi = [
1016
1058
  "stateMutability": "view",
1017
1059
  "type": "function"
1018
1060
  },
1061
+ {
1062
+ "inputs": [],
1063
+ "name": "sanctionsList",
1064
+ "outputs": [
1065
+ {
1066
+ "internalType": "contract ISanctionsList",
1067
+ "name": "",
1068
+ "type": "address"
1069
+ }
1070
+ ],
1071
+ "stateMutability": "view",
1072
+ "type": "function"
1073
+ },
1019
1074
  {
1020
1075
  "inputs": [
1021
1076
  {
@@ -1086,6 +1141,37 @@ export const PresaleV2_jsonAbi = [
1086
1141
  "stateMutability": "nonpayable",
1087
1142
  "type": "function"
1088
1143
  },
1144
+ {
1145
+ "inputs": [
1146
+ {
1147
+ "internalType": "address",
1148
+ "name": "_saleToken",
1149
+ "type": "address"
1150
+ }
1151
+ ],
1152
+ "name": "setSaleToken",
1153
+ "outputs": [],
1154
+ "stateMutability": "nonpayable",
1155
+ "type": "function"
1156
+ },
1157
+ {
1158
+ "inputs": [
1159
+ {
1160
+ "internalType": "address",
1161
+ "name": "_sanctionContract",
1162
+ "type": "address"
1163
+ },
1164
+ {
1165
+ "internalType": "bool",
1166
+ "name": "_applySanction",
1167
+ "type": "bool"
1168
+ }
1169
+ ],
1170
+ "name": "setSanctions",
1171
+ "outputs": [],
1172
+ "stateMutability": "nonpayable",
1173
+ "type": "function"
1174
+ },
1089
1175
  {
1090
1176
  "inputs": [
1091
1177
  {
@@ -1143,19 +1229,6 @@ export const PresaleV2_jsonAbi = [
1143
1229
  "stateMutability": "nonpayable",
1144
1230
  "type": "function"
1145
1231
  },
1146
- {
1147
- "inputs": [
1148
- {
1149
- "internalType": "address",
1150
- "name": "_usdc",
1151
- "type": "address"
1152
- }
1153
- ],
1154
- "name": "setUSDCInterface",
1155
- "outputs": [],
1156
- "stateMutability": "nonpayable",
1157
- "type": "function"
1158
- },
1159
1232
  {
1160
1233
  "inputs": [],
1161
1234
  "name": "stakeingWhitelistStatus",
@@ -1244,9 +1317,14 @@ export const PresaleV2_jsonAbi = [
1244
1317
  },
1245
1318
  {
1246
1319
  "inputs": [
1320
+ {
1321
+ "internalType": "address",
1322
+ "name": "_token",
1323
+ "type": "address"
1324
+ },
1247
1325
  {
1248
1326
  "internalType": "uint256",
1249
- "name": "amount",
1327
+ "name": "_amount",
1250
1328
  "type": "uint256"
1251
1329
  }
1252
1330
  ],
@@ -1463,19 +1541,19 @@ export const PresaleV2_jsonAbi = [
1463
1541
  ] as const satisfies Abi;
1464
1542
 
1465
1543
  /**
1466
- * Type-safe ABI for PresaleV2_json
1544
+ * Type-safe ABI for PresaleV3_json
1467
1545
  */
1468
- export type PresaleV2_jsonAbi = typeof PresaleV2_jsonAbi;
1546
+ export type PresaleV3_jsonAbi = typeof PresaleV3_jsonAbi;
1469
1547
 
1470
1548
  /**
1471
- * Contract instance type for PresaleV2_json
1549
+ * Contract instance type for PresaleV3_json
1472
1550
  */
1473
1551
  // Use any for contract type to avoid complex viem type issues
1474
1552
  // The runtime behavior is type-safe through viem's ABI typing
1475
- export type PresaleV2_jsonContract = any;
1553
+ export type PresaleV3_jsonContract = any;
1476
1554
 
1477
1555
  /**
1478
- * PresaleV2_json Contract Class
1556
+ * PresaleV3_json Contract Class
1479
1557
  *
1480
1558
  * Provides a class-based API similar to TypeChain for interacting with the contract.
1481
1559
  *
@@ -1483,12 +1561,12 @@ export type PresaleV2_jsonContract = any;
1483
1561
  * ```typescript
1484
1562
  * import { createPublicClient, createWalletClient, http } from 'viem';
1485
1563
  * import { mainnet } from 'viem/chains';
1486
- * import { PresaleV2_json } from 'PresaleV2_json';
1564
+ * import { PresaleV3_json } from 'PresaleV3_json';
1487
1565
  *
1488
1566
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1489
1567
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1490
1568
  *
1491
- * const contract = new PresaleV2_json('0x...', { publicClient, walletClient });
1569
+ * const contract = new PresaleV3_json('0x...', { publicClient, walletClient });
1492
1570
  *
1493
1571
  * // Read functions
1494
1572
  * const result = await contract.balanceOf('0x...');
@@ -1506,8 +1584,8 @@ export type PresaleV2_jsonContract = any;
1506
1584
  * });
1507
1585
  * ```
1508
1586
  */
1509
- export class PresaleV2_json {
1510
- private contract: PresaleV2_jsonContract;
1587
+ export class PresaleV3_json {
1588
+ private contract: PresaleV3_jsonContract;
1511
1589
  private contractAddress: Address;
1512
1590
  private publicClient: PublicClient;
1513
1591
 
@@ -1522,7 +1600,7 @@ export class PresaleV2_json {
1522
1600
  this.publicClient = clients.publicClient;
1523
1601
  this.contract = getContract({
1524
1602
  address,
1525
- abi: PresaleV2_jsonAbi,
1603
+ abi: PresaleV3_jsonAbi,
1526
1604
  client: {
1527
1605
  public: clients.publicClient,
1528
1606
  wallet: clients.walletClient,
@@ -1540,7 +1618,7 @@ export class PresaleV2_json {
1540
1618
  /**
1541
1619
  * Get the underlying viem contract instance
1542
1620
  */
1543
- getContract(): PresaleV2_jsonContract {
1621
+ getContract(): PresaleV3_jsonContract {
1544
1622
  return this.contract;
1545
1623
  }
1546
1624
 
@@ -1576,6 +1654,14 @@ export class PresaleV2_json {
1576
1654
  return this.contract.read.aggregatorInterface() as Promise<`0x${string}`>;
1577
1655
  }
1578
1656
 
1657
+ /**
1658
+ * applySanctions
1659
+ * view
1660
+ */
1661
+ async applySanctions(): Promise<boolean> {
1662
+ return this.contract.read.applySanctions() as Promise<boolean>;
1663
+ }
1664
+
1579
1665
  /**
1580
1666
  * baseDecimals
1581
1667
  * view
@@ -1752,6 +1838,14 @@ export class PresaleV2_json {
1752
1838
  return this.contract.read.saleToken() as Promise<`0x${string}`>;
1753
1839
  }
1754
1840
 
1841
+ /**
1842
+ * sanctionsList
1843
+ * view
1844
+ */
1845
+ async sanctionsList(): Promise<`0x${string}`> {
1846
+ return this.contract.read.sanctionsList() as Promise<`0x${string}`>;
1847
+ }
1848
+
1755
1849
  /**
1756
1850
  * stakeingWhitelistStatus
1757
1851
  * view
@@ -1948,6 +2042,29 @@ export class PresaleV2_json {
1948
2042
  return this.contract.write.buyWithUSDC([amount, stake] as const, options) as Promise<`0x${string}`>;
1949
2043
  }
1950
2044
 
2045
+ /**
2046
+ * buyWithUSDCWERT
2047
+ * nonpayable
2048
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2049
+ */
2050
+ async buyWithUSDCWERT(_user: `0x${string}`, _amount: bigint, stake: boolean, options?: {
2051
+ accessList?: import('viem').AccessList;
2052
+ authorizationList?: import('viem').AuthorizationList;
2053
+ chain?: import('viem').Chain | null;
2054
+ dataSuffix?: `0x${string}`;
2055
+ gas?: bigint;
2056
+ gasPrice?: bigint;
2057
+ maxFeePerGas?: bigint;
2058
+ maxPriorityFeePerGas?: bigint;
2059
+ nonce?: number;
2060
+ value?: bigint;
2061
+ }): Promise<`0x${string}`> {
2062
+ if (!this.contract.write) {
2063
+ throw new Error('Wallet client is required for write operations');
2064
+ }
2065
+ return this.contract.write.buyWithUSDCWERT([_user, _amount, stake] as const, options) as Promise<`0x${string}`>;
2066
+ }
2067
+
1951
2068
  /**
1952
2069
  * buyWithUSDT
1953
2070
  * nonpayable
@@ -2386,11 +2503,11 @@ export class PresaleV2_json {
2386
2503
  }
2387
2504
 
2388
2505
  /**
2389
- * setSplits
2506
+ * setSaleToken
2390
2507
  * nonpayable
2391
2508
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2392
2509
  */
2393
- async setSplits(_wallets: `0x${string}`[], _percentages: bigint[], options?: {
2510
+ async setSaleToken(_saleToken: `0x${string}`, options?: {
2394
2511
  accessList?: import('viem').AccessList;
2395
2512
  authorizationList?: import('viem').AuthorizationList;
2396
2513
  chain?: import('viem').Chain | null;
@@ -2405,15 +2522,15 @@ export class PresaleV2_json {
2405
2522
  if (!this.contract.write) {
2406
2523
  throw new Error('Wallet client is required for write operations');
2407
2524
  }
2408
- return this.contract.write.setSplits([_wallets, _percentages] as const, options) as Promise<`0x${string}`>;
2525
+ return this.contract.write.setSaleToken([_saleToken] as const, options) as Promise<`0x${string}`>;
2409
2526
  }
2410
2527
 
2411
2528
  /**
2412
- * setStakeingWhitelistStatus
2529
+ * setSanctions
2413
2530
  * nonpayable
2414
2531
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2415
2532
  */
2416
- async setStakeingWhitelistStatus(_status: boolean, options?: {
2533
+ async setSanctions(_sanctionContract: `0x${string}`, _applySanction: boolean, options?: {
2417
2534
  accessList?: import('viem').AccessList;
2418
2535
  authorizationList?: import('viem').AuthorizationList;
2419
2536
  chain?: import('viem').Chain | null;
@@ -2428,15 +2545,15 @@ export class PresaleV2_json {
2428
2545
  if (!this.contract.write) {
2429
2546
  throw new Error('Wallet client is required for write operations');
2430
2547
  }
2431
- return this.contract.write.setStakeingWhitelistStatus([_status] as const, options) as Promise<`0x${string}`>;
2548
+ return this.contract.write.setSanctions([_sanctionContract, _applySanction] as const, options) as Promise<`0x${string}`>;
2432
2549
  }
2433
2550
 
2434
2551
  /**
2435
- * setStakingManager
2552
+ * setSplits
2436
2553
  * nonpayable
2437
2554
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2438
2555
  */
2439
- async setStakingManager(_stakingManagerAddress: `0x${string}`, options?: {
2556
+ async setSplits(_wallets: `0x${string}`[], _percentages: bigint[], options?: {
2440
2557
  accessList?: import('viem').AccessList;
2441
2558
  authorizationList?: import('viem').AuthorizationList;
2442
2559
  chain?: import('viem').Chain | null;
@@ -2451,15 +2568,15 @@ export class PresaleV2_json {
2451
2568
  if (!this.contract.write) {
2452
2569
  throw new Error('Wallet client is required for write operations');
2453
2570
  }
2454
- return this.contract.write.setStakingManager([_stakingManagerAddress] as const, options) as Promise<`0x${string}`>;
2571
+ return this.contract.write.setSplits([_wallets, _percentages] as const, options) as Promise<`0x${string}`>;
2455
2572
  }
2456
2573
 
2457
2574
  /**
2458
- * setTimeConstant
2575
+ * setStakeingWhitelistStatus
2459
2576
  * nonpayable
2460
2577
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2461
2578
  */
2462
- async setTimeConstant(_timeConstant: bigint, options?: {
2579
+ async setStakeingWhitelistStatus(_status: boolean, options?: {
2463
2580
  accessList?: import('viem').AccessList;
2464
2581
  authorizationList?: import('viem').AuthorizationList;
2465
2582
  chain?: import('viem').Chain | null;
@@ -2474,15 +2591,38 @@ export class PresaleV2_json {
2474
2591
  if (!this.contract.write) {
2475
2592
  throw new Error('Wallet client is required for write operations');
2476
2593
  }
2477
- return this.contract.write.setTimeConstant([_timeConstant] as const, options) as Promise<`0x${string}`>;
2594
+ return this.contract.write.setStakeingWhitelistStatus([_status] as const, options) as Promise<`0x${string}`>;
2595
+ }
2596
+
2597
+ /**
2598
+ * setStakingManager
2599
+ * nonpayable
2600
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2601
+ */
2602
+ async setStakingManager(_stakingManagerAddress: `0x${string}`, options?: {
2603
+ accessList?: import('viem').AccessList;
2604
+ authorizationList?: import('viem').AuthorizationList;
2605
+ chain?: import('viem').Chain | null;
2606
+ dataSuffix?: `0x${string}`;
2607
+ gas?: bigint;
2608
+ gasPrice?: bigint;
2609
+ maxFeePerGas?: bigint;
2610
+ maxPriorityFeePerGas?: bigint;
2611
+ nonce?: number;
2612
+ value?: bigint;
2613
+ }): Promise<`0x${string}`> {
2614
+ if (!this.contract.write) {
2615
+ throw new Error('Wallet client is required for write operations');
2616
+ }
2617
+ return this.contract.write.setStakingManager([_stakingManagerAddress] as const, options) as Promise<`0x${string}`>;
2478
2618
  }
2479
2619
 
2480
2620
  /**
2481
- * setUSDCInterface
2621
+ * setTimeConstant
2482
2622
  * nonpayable
2483
2623
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2484
2624
  */
2485
- async setUSDCInterface(_usdc: `0x${string}`, options?: {
2625
+ async setTimeConstant(_timeConstant: bigint, options?: {
2486
2626
  accessList?: import('viem').AccessList;
2487
2627
  authorizationList?: import('viem').AuthorizationList;
2488
2628
  chain?: import('viem').Chain | null;
@@ -2497,7 +2637,7 @@ export class PresaleV2_json {
2497
2637
  if (!this.contract.write) {
2498
2638
  throw new Error('Wallet client is required for write operations');
2499
2639
  }
2500
- return this.contract.write.setUSDCInterface([_usdc] as const, options) as Promise<`0x${string}`>;
2640
+ return this.contract.write.setTimeConstant([_timeConstant] as const, options) as Promise<`0x${string}`>;
2501
2641
  }
2502
2642
 
2503
2643
  /**
@@ -2528,7 +2668,7 @@ export class PresaleV2_json {
2528
2668
  * nonpayable
2529
2669
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2530
2670
  */
2531
- async tokenTransfer(amount: bigint, options?: {
2671
+ async tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
2532
2672
  accessList?: import('viem').AccessList;
2533
2673
  authorizationList?: import('viem').AuthorizationList;
2534
2674
  chain?: import('viem').Chain | null;
@@ -2543,7 +2683,7 @@ export class PresaleV2_json {
2543
2683
  if (!this.contract.write) {
2544
2684
  throw new Error('Wallet client is required for write operations');
2545
2685
  }
2546
- return this.contract.write.tokenTransfer([amount] as const, options) as Promise<`0x${string}`>;
2686
+ return this.contract.write.tokenTransfer([_token, _amount] as const, options) as Promise<`0x${string}`>;
2547
2687
  }
2548
2688
 
2549
2689
  /**
@@ -2753,6 +2893,25 @@ export class PresaleV2_json {
2753
2893
  }): Promise<boolean> {
2754
2894
  return contract.simulate.buyWithUSDC([amount, stake] as const, options) as Promise<boolean>;
2755
2895
  },
2896
+ /**
2897
+ * Simulate buyWithUSDCWERT
2898
+ * Returns gas estimate and result without sending transaction
2899
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2900
+ */
2901
+ async buyWithUSDCWERT(_user: `0x${string}`, _amount: bigint, stake: boolean, options?: {
2902
+ accessList?: import('viem').AccessList;
2903
+ authorizationList?: import('viem').AuthorizationList;
2904
+ chain?: import('viem').Chain | null;
2905
+ dataSuffix?: `0x${string}`;
2906
+ gas?: bigint;
2907
+ gasPrice?: bigint;
2908
+ maxFeePerGas?: bigint;
2909
+ maxPriorityFeePerGas?: bigint;
2910
+ nonce?: number;
2911
+ value?: bigint;
2912
+ }): Promise<boolean> {
2913
+ return contract.simulate.buyWithUSDCWERT([_user, _amount, stake] as const, options) as Promise<boolean>;
2914
+ },
2756
2915
  /**
2757
2916
  * Simulate buyWithUSDT
2758
2917
  * Returns gas estimate and result without sending transaction
@@ -3115,11 +3274,11 @@ export class PresaleV2_json {
3115
3274
  return contract.simulate.setRemainingTokensArray([_unsoldTokens] as const, options) as Promise<void>;
3116
3275
  },
3117
3276
  /**
3118
- * Simulate setSplits
3277
+ * Simulate setSaleToken
3119
3278
  * Returns gas estimate and result without sending transaction
3120
3279
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3121
3280
  */
3122
- async setSplits(_wallets: `0x${string}`[], _percentages: bigint[], options?: {
3281
+ async setSaleToken(_saleToken: `0x${string}`, options?: {
3123
3282
  accessList?: import('viem').AccessList;
3124
3283
  authorizationList?: import('viem').AuthorizationList;
3125
3284
  chain?: import('viem').Chain | null;
@@ -3131,14 +3290,14 @@ export class PresaleV2_json {
3131
3290
  nonce?: number;
3132
3291
  value?: bigint;
3133
3292
  }): Promise<void> {
3134
- return contract.simulate.setSplits([_wallets, _percentages] as const, options) as Promise<void>;
3293
+ return contract.simulate.setSaleToken([_saleToken] as const, options) as Promise<void>;
3135
3294
  },
3136
3295
  /**
3137
- * Simulate setStakeingWhitelistStatus
3296
+ * Simulate setSanctions
3138
3297
  * Returns gas estimate and result without sending transaction
3139
3298
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3140
3299
  */
3141
- async setStakeingWhitelistStatus(_status: boolean, options?: {
3300
+ async setSanctions(_sanctionContract: `0x${string}`, _applySanction: boolean, options?: {
3142
3301
  accessList?: import('viem').AccessList;
3143
3302
  authorizationList?: import('viem').AuthorizationList;
3144
3303
  chain?: import('viem').Chain | null;
@@ -3150,14 +3309,14 @@ export class PresaleV2_json {
3150
3309
  nonce?: number;
3151
3310
  value?: bigint;
3152
3311
  }): Promise<void> {
3153
- return contract.simulate.setStakeingWhitelistStatus([_status] as const, options) as Promise<void>;
3312
+ return contract.simulate.setSanctions([_sanctionContract, _applySanction] as const, options) as Promise<void>;
3154
3313
  },
3155
3314
  /**
3156
- * Simulate setStakingManager
3315
+ * Simulate setSplits
3157
3316
  * Returns gas estimate and result without sending transaction
3158
3317
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3159
3318
  */
3160
- async setStakingManager(_stakingManagerAddress: `0x${string}`, options?: {
3319
+ async setSplits(_wallets: `0x${string}`[], _percentages: bigint[], options?: {
3161
3320
  accessList?: import('viem').AccessList;
3162
3321
  authorizationList?: import('viem').AuthorizationList;
3163
3322
  chain?: import('viem').Chain | null;
@@ -3169,14 +3328,14 @@ export class PresaleV2_json {
3169
3328
  nonce?: number;
3170
3329
  value?: bigint;
3171
3330
  }): Promise<void> {
3172
- return contract.simulate.setStakingManager([_stakingManagerAddress] as const, options) as Promise<void>;
3331
+ return contract.simulate.setSplits([_wallets, _percentages] as const, options) as Promise<void>;
3173
3332
  },
3174
3333
  /**
3175
- * Simulate setTimeConstant
3334
+ * Simulate setStakeingWhitelistStatus
3176
3335
  * Returns gas estimate and result without sending transaction
3177
3336
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3178
3337
  */
3179
- async setTimeConstant(_timeConstant: bigint, options?: {
3338
+ async setStakeingWhitelistStatus(_status: boolean, options?: {
3180
3339
  accessList?: import('viem').AccessList;
3181
3340
  authorizationList?: import('viem').AuthorizationList;
3182
3341
  chain?: import('viem').Chain | null;
@@ -3188,14 +3347,33 @@ export class PresaleV2_json {
3188
3347
  nonce?: number;
3189
3348
  value?: bigint;
3190
3349
  }): Promise<void> {
3191
- return contract.simulate.setTimeConstant([_timeConstant] as const, options) as Promise<void>;
3350
+ return contract.simulate.setStakeingWhitelistStatus([_status] as const, options) as Promise<void>;
3351
+ },
3352
+ /**
3353
+ * Simulate setStakingManager
3354
+ * Returns gas estimate and result without sending transaction
3355
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3356
+ */
3357
+ async setStakingManager(_stakingManagerAddress: `0x${string}`, options?: {
3358
+ accessList?: import('viem').AccessList;
3359
+ authorizationList?: import('viem').AuthorizationList;
3360
+ chain?: import('viem').Chain | null;
3361
+ dataSuffix?: `0x${string}`;
3362
+ gas?: bigint;
3363
+ gasPrice?: bigint;
3364
+ maxFeePerGas?: bigint;
3365
+ maxPriorityFeePerGas?: bigint;
3366
+ nonce?: number;
3367
+ value?: bigint;
3368
+ }): Promise<void> {
3369
+ return contract.simulate.setStakingManager([_stakingManagerAddress] as const, options) as Promise<void>;
3192
3370
  },
3193
3371
  /**
3194
- * Simulate setUSDCInterface
3372
+ * Simulate setTimeConstant
3195
3373
  * Returns gas estimate and result without sending transaction
3196
3374
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3197
3375
  */
3198
- async setUSDCInterface(_usdc: `0x${string}`, options?: {
3376
+ async setTimeConstant(_timeConstant: bigint, options?: {
3199
3377
  accessList?: import('viem').AccessList;
3200
3378
  authorizationList?: import('viem').AuthorizationList;
3201
3379
  chain?: import('viem').Chain | null;
@@ -3207,7 +3385,7 @@ export class PresaleV2_json {
3207
3385
  nonce?: number;
3208
3386
  value?: bigint;
3209
3387
  }): Promise<void> {
3210
- return contract.simulate.setUSDCInterface([_usdc] as const, options) as Promise<void>;
3388
+ return contract.simulate.setTimeConstant([_timeConstant] as const, options) as Promise<void>;
3211
3389
  },
3212
3390
  /**
3213
3391
  * Simulate startClaim
@@ -3233,7 +3411,7 @@ export class PresaleV2_json {
3233
3411
  * Returns gas estimate and result without sending transaction
3234
3412
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3235
3413
  */
3236
- async tokenTransfer(amount: bigint, options?: {
3414
+ async tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
3237
3415
  accessList?: import('viem').AccessList;
3238
3416
  authorizationList?: import('viem').AuthorizationList;
3239
3417
  chain?: import('viem').Chain | null;
@@ -3245,7 +3423,7 @@ export class PresaleV2_json {
3245
3423
  nonce?: number;
3246
3424
  value?: bigint;
3247
3425
  }): Promise<void> {
3248
- return contract.simulate.tokenTransfer([amount] as const, options) as Promise<void>;
3426
+ return contract.simulate.tokenTransfer([_token, _amount] as const, options) as Promise<void>;
3249
3427
  },
3250
3428
  /**
3251
3429
  * Simulate transferOwnership
@@ -3368,7 +3546,7 @@ export class PresaleV2_json {
3368
3546
  ClaimStartUpdated: (callback: (event: { prevValue: bigint; newValue: bigint; timestamp: bigint }) => void) => {
3369
3547
  return this.publicClient.watchContractEvent({
3370
3548
  address: this.contractAddress,
3371
- abi: PresaleV2_jsonAbi,
3549
+ abi: PresaleV3_jsonAbi,
3372
3550
  eventName: 'ClaimStartUpdated',
3373
3551
 
3374
3552
  onLogs: (logs: any[]) => {
@@ -3387,7 +3565,7 @@ export class PresaleV2_json {
3387
3565
  Initialized: (callback: (event: { version: bigint }) => void) => {
3388
3566
  return this.publicClient.watchContractEvent({
3389
3567
  address: this.contractAddress,
3390
- abi: PresaleV2_jsonAbi,
3568
+ abi: PresaleV3_jsonAbi,
3391
3569
  eventName: 'Initialized',
3392
3570
 
3393
3571
  onLogs: (logs: any[]) => {
@@ -3406,7 +3584,7 @@ export class PresaleV2_json {
3406
3584
  MaxTokensUpdated: (callback: (event: { prevValue: bigint; newValue: bigint; timestamp: bigint }) => void) => {
3407
3585
  return this.publicClient.watchContractEvent({
3408
3586
  address: this.contractAddress,
3409
- abi: PresaleV2_jsonAbi,
3587
+ abi: PresaleV3_jsonAbi,
3410
3588
  eventName: 'MaxTokensUpdated',
3411
3589
 
3412
3590
  onLogs: (logs: any[]) => {
@@ -3425,7 +3603,7 @@ export class PresaleV2_json {
3425
3603
  OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
3426
3604
  return this.publicClient.watchContractEvent({
3427
3605
  address: this.contractAddress,
3428
- abi: PresaleV2_jsonAbi,
3606
+ abi: PresaleV3_jsonAbi,
3429
3607
  eventName: 'OwnershipTransferred',
3430
3608
  args: filter,
3431
3609
  onLogs: (logs: any[]) => {
@@ -3444,7 +3622,7 @@ export class PresaleV2_json {
3444
3622
  Paused: (callback: (event: { account: `0x${string}` }) => void) => {
3445
3623
  return this.publicClient.watchContractEvent({
3446
3624
  address: this.contractAddress,
3447
- abi: PresaleV2_jsonAbi,
3625
+ abi: PresaleV3_jsonAbi,
3448
3626
  eventName: 'Paused',
3449
3627
 
3450
3628
  onLogs: (logs: any[]) => {
@@ -3463,7 +3641,7 @@ export class PresaleV2_json {
3463
3641
  SaleTimeSet: (callback: (event: { _start: bigint; _end: bigint; timestamp: bigint }) => void) => {
3464
3642
  return this.publicClient.watchContractEvent({
3465
3643
  address: this.contractAddress,
3466
- abi: PresaleV2_jsonAbi,
3644
+ abi: PresaleV3_jsonAbi,
3467
3645
  eventName: 'SaleTimeSet',
3468
3646
 
3469
3647
  onLogs: (logs: any[]) => {
@@ -3482,7 +3660,7 @@ export class PresaleV2_json {
3482
3660
  SaleTimeUpdated: (callback: (event: { key: `0x${string}`; prevValue: bigint; newValue: bigint; timestamp: bigint }) => void, filter?: { key: `0x${string}` }) => {
3483
3661
  return this.publicClient.watchContractEvent({
3484
3662
  address: this.contractAddress,
3485
- abi: PresaleV2_jsonAbi,
3663
+ abi: PresaleV3_jsonAbi,
3486
3664
  eventName: 'SaleTimeUpdated',
3487
3665
  args: filter,
3488
3666
  onLogs: (logs: any[]) => {
@@ -3501,7 +3679,7 @@ export class PresaleV2_json {
3501
3679
  TokensAdded: (callback: (event: { token: `0x${string}`; noOfTokens: bigint; timestamp: bigint }) => void, filter?: { token: `0x${string}` }) => {
3502
3680
  return this.publicClient.watchContractEvent({
3503
3681
  address: this.contractAddress,
3504
- abi: PresaleV2_jsonAbi,
3682
+ abi: PresaleV3_jsonAbi,
3505
3683
  eventName: 'TokensAdded',
3506
3684
  args: filter,
3507
3685
  onLogs: (logs: any[]) => {
@@ -3520,7 +3698,7 @@ export class PresaleV2_json {
3520
3698
  TokensBought: (callback: (event: { user: `0x${string}`; tokensBought: bigint; purchaseToken: `0x${string}`; amountPaid: bigint; usdEq: bigint; timestamp: bigint }) => void, filter?: { user: `0x${string}`; tokensBought: bigint; purchaseToken: `0x${string}` }) => {
3521
3699
  return this.publicClient.watchContractEvent({
3522
3700
  address: this.contractAddress,
3523
- abi: PresaleV2_jsonAbi,
3701
+ abi: PresaleV3_jsonAbi,
3524
3702
  eventName: 'TokensBought',
3525
3703
  args: filter,
3526
3704
  onLogs: (logs: any[]) => {
@@ -3539,7 +3717,7 @@ export class PresaleV2_json {
3539
3717
  TokensBoughtAndStaked: (callback: (event: { user: `0x${string}`; tokensBought: bigint; purchaseToken: `0x${string}`; amountPaid: bigint; usdEq: bigint; timestamp: bigint }) => void, filter?: { user: `0x${string}`; tokensBought: bigint; purchaseToken: `0x${string}` }) => {
3540
3718
  return this.publicClient.watchContractEvent({
3541
3719
  address: this.contractAddress,
3542
- abi: PresaleV2_jsonAbi,
3720
+ abi: PresaleV3_jsonAbi,
3543
3721
  eventName: 'TokensBoughtAndStaked',
3544
3722
  args: filter,
3545
3723
  onLogs: (logs: any[]) => {
@@ -3558,7 +3736,7 @@ export class PresaleV2_json {
3558
3736
  TokensClaimed: (callback: (event: { user: `0x${string}`; amount: bigint; timestamp: bigint }) => void, filter?: { user: `0x${string}` }) => {
3559
3737
  return this.publicClient.watchContractEvent({
3560
3738
  address: this.contractAddress,
3561
- abi: PresaleV2_jsonAbi,
3739
+ abi: PresaleV3_jsonAbi,
3562
3740
  eventName: 'TokensClaimed',
3563
3741
  args: filter,
3564
3742
  onLogs: (logs: any[]) => {
@@ -3577,7 +3755,7 @@ export class PresaleV2_json {
3577
3755
  TokensClaimedAndStaked: (callback: (event: { user: `0x${string}`; amount: bigint; timestamp: bigint }) => void, filter?: { user: `0x${string}` }) => {
3578
3756
  return this.publicClient.watchContractEvent({
3579
3757
  address: this.contractAddress,
3580
- abi: PresaleV2_jsonAbi,
3758
+ abi: PresaleV3_jsonAbi,
3581
3759
  eventName: 'TokensClaimedAndStaked',
3582
3760
  args: filter,
3583
3761
  onLogs: (logs: any[]) => {
@@ -3596,7 +3774,7 @@ export class PresaleV2_json {
3596
3774
  Unpaused: (callback: (event: { account: `0x${string}` }) => void) => {
3597
3775
  return this.publicClient.watchContractEvent({
3598
3776
  address: this.contractAddress,
3599
- abi: PresaleV2_jsonAbi,
3777
+ abi: PresaleV3_jsonAbi,
3600
3778
  eventName: 'Unpaused',
3601
3779
 
3602
3780
  onLogs: (logs: any[]) => {