@gitmyabi/presale 1.0.3 → 1.0.5

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
- * PresaleV3_json ABI
5
+ * PresaleV1_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const PresaleV3_jsonAbi = [
9
+ export const PresaleV1_jsonAbi = [
10
10
  {
11
11
  "inputs": [],
12
12
  "stateMutability": "nonpayable",
@@ -337,19 +337,6 @@ export const PresaleV3_jsonAbi = [
337
337
  "name": "Unpaused",
338
338
  "type": "event"
339
339
  },
340
- {
341
- "inputs": [],
342
- "name": "USDCInterface",
343
- "outputs": [
344
- {
345
- "internalType": "contract IERC20Upgradeable",
346
- "name": "",
347
- "type": "address"
348
- }
349
- ],
350
- "stateMutability": "view",
351
- "type": "function"
352
- },
353
340
  {
354
341
  "inputs": [],
355
342
  "name": "USDTInterface",
@@ -389,19 +376,6 @@ export const PresaleV3_jsonAbi = [
389
376
  "stateMutability": "view",
390
377
  "type": "function"
391
378
  },
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
- },
405
379
  {
406
380
  "inputs": [],
407
381
  "name": "baseDecimals",
@@ -481,59 +455,6 @@ export const PresaleV3_jsonAbi = [
481
455
  "stateMutability": "payable",
482
456
  "type": "function"
483
457
  },
484
- {
485
- "inputs": [
486
- {
487
- "internalType": "uint256",
488
- "name": "amount",
489
- "type": "uint256"
490
- },
491
- {
492
- "internalType": "bool",
493
- "name": "stake",
494
- "type": "bool"
495
- }
496
- ],
497
- "name": "buyWithUSDC",
498
- "outputs": [
499
- {
500
- "internalType": "bool",
501
- "name": "",
502
- "type": "bool"
503
- }
504
- ],
505
- "stateMutability": "nonpayable",
506
- "type": "function"
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
- },
537
458
  {
538
459
  "inputs": [
539
460
  {
@@ -802,6 +723,59 @@ export const PresaleV3_jsonAbi = [
802
723
  "stateMutability": "nonpayable",
803
724
  "type": "function"
804
725
  },
726
+ {
727
+ "inputs": [
728
+ {
729
+ "internalType": "address",
730
+ "name": "_oracle",
731
+ "type": "address"
732
+ },
733
+ {
734
+ "internalType": "address",
735
+ "name": "_usdt",
736
+ "type": "address"
737
+ },
738
+ {
739
+ "internalType": "uint256",
740
+ "name": "_startTime",
741
+ "type": "uint256"
742
+ },
743
+ {
744
+ "internalType": "uint256",
745
+ "name": "_endTime",
746
+ "type": "uint256"
747
+ },
748
+ {
749
+ "internalType": "uint256[][3]",
750
+ "name": "_rounds",
751
+ "type": "uint256[][3]"
752
+ },
753
+ {
754
+ "internalType": "uint256",
755
+ "name": "_maxTokensToBuy",
756
+ "type": "uint256"
757
+ },
758
+ {
759
+ "internalType": "address",
760
+ "name": "_paymentWallet",
761
+ "type": "address"
762
+ },
763
+ {
764
+ "internalType": "bool",
765
+ "name": "_dynamicTimeFlag",
766
+ "type": "bool"
767
+ },
768
+ {
769
+ "internalType": "uint256",
770
+ "name": "_timeConstant",
771
+ "type": "uint256"
772
+ }
773
+ ],
774
+ "name": "initialize",
775
+ "outputs": [],
776
+ "stateMutability": "nonpayable",
777
+ "type": "function"
778
+ },
805
779
  {
806
780
  "inputs": [
807
781
  {
@@ -1058,19 +1032,6 @@ export const PresaleV3_jsonAbi = [
1058
1032
  "stateMutability": "view",
1059
1033
  "type": "function"
1060
1034
  },
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
- },
1074
1035
  {
1075
1036
  "inputs": [
1076
1037
  {
@@ -1141,37 +1102,6 @@ export const PresaleV3_jsonAbi = [
1141
1102
  "stateMutability": "nonpayable",
1142
1103
  "type": "function"
1143
1104
  },
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
- },
1175
1105
  {
1176
1106
  "inputs": [
1177
1107
  {
@@ -1315,24 +1245,6 @@ export const PresaleV3_jsonAbi = [
1315
1245
  "stateMutability": "view",
1316
1246
  "type": "function"
1317
1247
  },
1318
- {
1319
- "inputs": [
1320
- {
1321
- "internalType": "address",
1322
- "name": "_token",
1323
- "type": "address"
1324
- },
1325
- {
1326
- "internalType": "uint256",
1327
- "name": "_amount",
1328
- "type": "uint256"
1329
- }
1330
- ],
1331
- "name": "tokenTransfer",
1332
- "outputs": [],
1333
- "stateMutability": "nonpayable",
1334
- "type": "function"
1335
- },
1336
1248
  {
1337
1249
  "inputs": [],
1338
1250
  "name": "totalBoughtAndStaked",
@@ -1541,19 +1453,19 @@ export const PresaleV3_jsonAbi = [
1541
1453
  ] as const satisfies Abi;
1542
1454
 
1543
1455
  /**
1544
- * Type-safe ABI for PresaleV3_json
1456
+ * Type-safe ABI for PresaleV1_json
1545
1457
  */
1546
- export type PresaleV3_jsonAbi = typeof PresaleV3_jsonAbi;
1458
+ export type PresaleV1_jsonAbi = typeof PresaleV1_jsonAbi;
1547
1459
 
1548
1460
  /**
1549
- * Contract instance type for PresaleV3_json
1461
+ * Contract instance type for PresaleV1_json
1550
1462
  */
1551
1463
  // Use any for contract type to avoid complex viem type issues
1552
1464
  // The runtime behavior is type-safe through viem's ABI typing
1553
- export type PresaleV3_jsonContract = any;
1465
+ export type PresaleV1_jsonContract = any;
1554
1466
 
1555
1467
  /**
1556
- * PresaleV3_json Contract Class
1468
+ * PresaleV1_json Contract Class
1557
1469
  *
1558
1470
  * Provides a class-based API similar to TypeChain for interacting with the contract.
1559
1471
  *
@@ -1561,12 +1473,12 @@ export type PresaleV3_jsonContract = any;
1561
1473
  * ```typescript
1562
1474
  * import { createPublicClient, createWalletClient, http } from 'viem';
1563
1475
  * import { mainnet } from 'viem/chains';
1564
- * import { PresaleV3_json } from 'PresaleV3_json';
1476
+ * import { PresaleV1_json } from 'PresaleV1_json';
1565
1477
  *
1566
1478
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1567
1479
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1568
1480
  *
1569
- * const contract = new PresaleV3_json('0x...', { publicClient, walletClient });
1481
+ * const contract = new PresaleV1_json('0x...', { publicClient, walletClient });
1570
1482
  *
1571
1483
  * // Read functions
1572
1484
  * const result = await contract.balanceOf('0x...');
@@ -1584,8 +1496,8 @@ export type PresaleV3_jsonContract = any;
1584
1496
  * });
1585
1497
  * ```
1586
1498
  */
1587
- export class PresaleV3_json {
1588
- private contract: PresaleV3_jsonContract;
1499
+ export class PresaleV1_json {
1500
+ private contract: PresaleV1_jsonContract;
1589
1501
  private contractAddress: Address;
1590
1502
  private publicClient: PublicClient;
1591
1503
 
@@ -1600,7 +1512,7 @@ export class PresaleV3_json {
1600
1512
  this.publicClient = clients.publicClient;
1601
1513
  this.contract = getContract({
1602
1514
  address,
1603
- abi: PresaleV3_jsonAbi,
1515
+ abi: PresaleV1_jsonAbi,
1604
1516
  client: {
1605
1517
  public: clients.publicClient,
1606
1518
  wallet: clients.walletClient,
@@ -1618,18 +1530,10 @@ export class PresaleV3_json {
1618
1530
  /**
1619
1531
  * Get the underlying viem contract instance
1620
1532
  */
1621
- getContract(): PresaleV3_jsonContract {
1533
+ getContract(): PresaleV1_jsonContract {
1622
1534
  return this.contract;
1623
1535
  }
1624
1536
 
1625
- /**
1626
- * USDCInterface
1627
- * view
1628
- */
1629
- async USDCInterface(): Promise<`0x${string}`> {
1630
- return this.contract.read.USDCInterface() as Promise<`0x${string}`>;
1631
- }
1632
-
1633
1537
  /**
1634
1538
  * USDTInterface
1635
1539
  * view
@@ -1654,14 +1558,6 @@ export class PresaleV3_json {
1654
1558
  return this.contract.read.aggregatorInterface() as Promise<`0x${string}`>;
1655
1559
  }
1656
1560
 
1657
- /**
1658
- * applySanctions
1659
- * view
1660
- */
1661
- async applySanctions(): Promise<boolean> {
1662
- return this.contract.read.applySanctions() as Promise<boolean>;
1663
- }
1664
-
1665
1561
  /**
1666
1562
  * baseDecimals
1667
1563
  * view
@@ -1838,14 +1734,6 @@ export class PresaleV3_json {
1838
1734
  return this.contract.read.saleToken() as Promise<`0x${string}`>;
1839
1735
  }
1840
1736
 
1841
- /**
1842
- * sanctionsList
1843
- * view
1844
- */
1845
- async sanctionsList(): Promise<`0x${string}`> {
1846
- return this.contract.read.sanctionsList() as Promise<`0x${string}`>;
1847
- }
1848
-
1849
1737
  /**
1850
1738
  * stakeingWhitelistStatus
1851
1739
  * view
@@ -2019,52 +1907,6 @@ export class PresaleV3_json {
2019
1907
  return this.contract.write.buyWithEth([amount, stake] as const, options) as Promise<`0x${string}`>;
2020
1908
  }
2021
1909
 
2022
- /**
2023
- * buyWithUSDC
2024
- * nonpayable
2025
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2026
- */
2027
- async buyWithUSDC(amount: bigint, stake: boolean, options?: {
2028
- accessList?: import('viem').AccessList;
2029
- authorizationList?: import('viem').AuthorizationList;
2030
- chain?: import('viem').Chain | null;
2031
- dataSuffix?: `0x${string}`;
2032
- gas?: bigint;
2033
- gasPrice?: bigint;
2034
- maxFeePerGas?: bigint;
2035
- maxPriorityFeePerGas?: bigint;
2036
- nonce?: number;
2037
- value?: bigint;
2038
- }): Promise<`0x${string}`> {
2039
- if (!this.contract.write) {
2040
- throw new Error('Wallet client is required for write operations');
2041
- }
2042
- return this.contract.write.buyWithUSDC([amount, stake] as const, options) as Promise<`0x${string}`>;
2043
- }
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
-
2068
1910
  /**
2069
1911
  * buyWithUSDT
2070
1912
  * nonpayable
@@ -2272,6 +2114,29 @@ export class PresaleV3_json {
2272
2114
  return this.contract.write.incrementCurrentStep(options) as Promise<`0x${string}`>;
2273
2115
  }
2274
2116
 
2117
+ /**
2118
+ * initialize
2119
+ * nonpayable
2120
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2121
+ */
2122
+ async initialize(_oracle: `0x${string}`, _usdt: `0x${string}`, _startTime: bigint, _endTime: bigint, _rounds: bigint[][], _maxTokensToBuy: bigint, _paymentWallet: `0x${string}`, _dynamicTimeFlag: boolean, _timeConstant: bigint, options?: {
2123
+ accessList?: import('viem').AccessList;
2124
+ authorizationList?: import('viem').AuthorizationList;
2125
+ chain?: import('viem').Chain | null;
2126
+ dataSuffix?: `0x${string}`;
2127
+ gas?: bigint;
2128
+ gasPrice?: bigint;
2129
+ maxFeePerGas?: bigint;
2130
+ maxPriorityFeePerGas?: bigint;
2131
+ nonce?: number;
2132
+ value?: bigint;
2133
+ }): Promise<`0x${string}`> {
2134
+ if (!this.contract.write) {
2135
+ throw new Error('Wallet client is required for write operations');
2136
+ }
2137
+ return this.contract.write.initialize([_oracle, _usdt, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant] as const, options) as Promise<`0x${string}`>;
2138
+ }
2139
+
2275
2140
  /**
2276
2141
  * pause
2277
2142
  * nonpayable
@@ -2502,52 +2367,6 @@ export class PresaleV3_json {
2502
2367
  return this.contract.write.setRemainingTokensArray([_unsoldTokens] as const, options) as Promise<`0x${string}`>;
2503
2368
  }
2504
2369
 
2505
- /**
2506
- * setSaleToken
2507
- * nonpayable
2508
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2509
- */
2510
- async setSaleToken(_saleToken: `0x${string}`, options?: {
2511
- accessList?: import('viem').AccessList;
2512
- authorizationList?: import('viem').AuthorizationList;
2513
- chain?: import('viem').Chain | null;
2514
- dataSuffix?: `0x${string}`;
2515
- gas?: bigint;
2516
- gasPrice?: bigint;
2517
- maxFeePerGas?: bigint;
2518
- maxPriorityFeePerGas?: bigint;
2519
- nonce?: number;
2520
- value?: bigint;
2521
- }): Promise<`0x${string}`> {
2522
- if (!this.contract.write) {
2523
- throw new Error('Wallet client is required for write operations');
2524
- }
2525
- return this.contract.write.setSaleToken([_saleToken] as const, options) as Promise<`0x${string}`>;
2526
- }
2527
-
2528
- /**
2529
- * setSanctions
2530
- * nonpayable
2531
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2532
- */
2533
- async setSanctions(_sanctionContract: `0x${string}`, _applySanction: boolean, options?: {
2534
- accessList?: import('viem').AccessList;
2535
- authorizationList?: import('viem').AuthorizationList;
2536
- chain?: import('viem').Chain | null;
2537
- dataSuffix?: `0x${string}`;
2538
- gas?: bigint;
2539
- gasPrice?: bigint;
2540
- maxFeePerGas?: bigint;
2541
- maxPriorityFeePerGas?: bigint;
2542
- nonce?: number;
2543
- value?: bigint;
2544
- }): Promise<`0x${string}`> {
2545
- if (!this.contract.write) {
2546
- throw new Error('Wallet client is required for write operations');
2547
- }
2548
- return this.contract.write.setSanctions([_sanctionContract, _applySanction] as const, options) as Promise<`0x${string}`>;
2549
- }
2550
-
2551
2370
  /**
2552
2371
  * setSplits
2553
2372
  * nonpayable
@@ -2663,29 +2482,6 @@ export class PresaleV3_json {
2663
2482
  return this.contract.write.startClaim([_claimStart, noOfTokens, _saleToken, _stakingManagerAddress] as const, options) as Promise<`0x${string}`>;
2664
2483
  }
2665
2484
 
2666
- /**
2667
- * tokenTransfer
2668
- * nonpayable
2669
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2670
- */
2671
- async tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
2672
- accessList?: import('viem').AccessList;
2673
- authorizationList?: import('viem').AuthorizationList;
2674
- chain?: import('viem').Chain | null;
2675
- dataSuffix?: `0x${string}`;
2676
- gas?: bigint;
2677
- gasPrice?: bigint;
2678
- maxFeePerGas?: bigint;
2679
- maxPriorityFeePerGas?: bigint;
2680
- nonce?: number;
2681
- value?: bigint;
2682
- }): Promise<`0x${string}`> {
2683
- if (!this.contract.write) {
2684
- throw new Error('Wallet client is required for write operations');
2685
- }
2686
- return this.contract.write.tokenTransfer([_token, _amount] as const, options) as Promise<`0x${string}`>;
2687
- }
2688
-
2689
2485
  /**
2690
2486
  * transferOwnership
2691
2487
  * nonpayable
@@ -2874,44 +2670,6 @@ export class PresaleV3_json {
2874
2670
  }): Promise<boolean> {
2875
2671
  return contract.simulate.buyWithEth([amount, stake] as const, options) as Promise<boolean>;
2876
2672
  },
2877
- /**
2878
- * Simulate buyWithUSDC
2879
- * Returns gas estimate and result without sending transaction
2880
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2881
- */
2882
- async buyWithUSDC(amount: bigint, stake: boolean, options?: {
2883
- accessList?: import('viem').AccessList;
2884
- authorizationList?: import('viem').AuthorizationList;
2885
- chain?: import('viem').Chain | null;
2886
- dataSuffix?: `0x${string}`;
2887
- gas?: bigint;
2888
- gasPrice?: bigint;
2889
- maxFeePerGas?: bigint;
2890
- maxPriorityFeePerGas?: bigint;
2891
- nonce?: number;
2892
- value?: bigint;
2893
- }): Promise<boolean> {
2894
- return contract.simulate.buyWithUSDC([amount, stake] as const, options) as Promise<boolean>;
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
- },
2915
2673
  /**
2916
2674
  * Simulate buyWithUSDT
2917
2675
  * Returns gas estimate and result without sending transaction
@@ -3083,6 +2841,25 @@ export class PresaleV3_json {
3083
2841
  }): Promise<void> {
3084
2842
  return contract.simulate.incrementCurrentStep(options) as Promise<void>;
3085
2843
  },
2844
+ /**
2845
+ * Simulate initialize
2846
+ * Returns gas estimate and result without sending transaction
2847
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2848
+ */
2849
+ async initialize(_oracle: `0x${string}`, _usdt: `0x${string}`, _startTime: bigint, _endTime: bigint, _rounds: bigint[][], _maxTokensToBuy: bigint, _paymentWallet: `0x${string}`, _dynamicTimeFlag: boolean, _timeConstant: bigint, options?: {
2850
+ accessList?: import('viem').AccessList;
2851
+ authorizationList?: import('viem').AuthorizationList;
2852
+ chain?: import('viem').Chain | null;
2853
+ dataSuffix?: `0x${string}`;
2854
+ gas?: bigint;
2855
+ gasPrice?: bigint;
2856
+ maxFeePerGas?: bigint;
2857
+ maxPriorityFeePerGas?: bigint;
2858
+ nonce?: number;
2859
+ value?: bigint;
2860
+ }): Promise<void> {
2861
+ return contract.simulate.initialize([_oracle, _usdt, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant] as const, options) as Promise<void>;
2862
+ },
3086
2863
  /**
3087
2864
  * Simulate pause
3088
2865
  * Returns gas estimate and result without sending transaction
@@ -3273,44 +3050,6 @@ export class PresaleV3_json {
3273
3050
  }): Promise<void> {
3274
3051
  return contract.simulate.setRemainingTokensArray([_unsoldTokens] as const, options) as Promise<void>;
3275
3052
  },
3276
- /**
3277
- * Simulate setSaleToken
3278
- * Returns gas estimate and result without sending transaction
3279
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
3280
- */
3281
- async setSaleToken(_saleToken: `0x${string}`, options?: {
3282
- accessList?: import('viem').AccessList;
3283
- authorizationList?: import('viem').AuthorizationList;
3284
- chain?: import('viem').Chain | null;
3285
- dataSuffix?: `0x${string}`;
3286
- gas?: bigint;
3287
- gasPrice?: bigint;
3288
- maxFeePerGas?: bigint;
3289
- maxPriorityFeePerGas?: bigint;
3290
- nonce?: number;
3291
- value?: bigint;
3292
- }): Promise<void> {
3293
- return contract.simulate.setSaleToken([_saleToken] as const, options) as Promise<void>;
3294
- },
3295
- /**
3296
- * Simulate setSanctions
3297
- * Returns gas estimate and result without sending transaction
3298
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
3299
- */
3300
- async setSanctions(_sanctionContract: `0x${string}`, _applySanction: boolean, options?: {
3301
- accessList?: import('viem').AccessList;
3302
- authorizationList?: import('viem').AuthorizationList;
3303
- chain?: import('viem').Chain | null;
3304
- dataSuffix?: `0x${string}`;
3305
- gas?: bigint;
3306
- gasPrice?: bigint;
3307
- maxFeePerGas?: bigint;
3308
- maxPriorityFeePerGas?: bigint;
3309
- nonce?: number;
3310
- value?: bigint;
3311
- }): Promise<void> {
3312
- return contract.simulate.setSanctions([_sanctionContract, _applySanction] as const, options) as Promise<void>;
3313
- },
3314
3053
  /**
3315
3054
  * Simulate setSplits
3316
3055
  * Returns gas estimate and result without sending transaction
@@ -3406,25 +3145,6 @@ export class PresaleV3_json {
3406
3145
  }): Promise<boolean> {
3407
3146
  return contract.simulate.startClaim([_claimStart, noOfTokens, _saleToken, _stakingManagerAddress] as const, options) as Promise<boolean>;
3408
3147
  },
3409
- /**
3410
- * Simulate tokenTransfer
3411
- * Returns gas estimate and result without sending transaction
3412
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
3413
- */
3414
- async tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
3415
- accessList?: import('viem').AccessList;
3416
- authorizationList?: import('viem').AuthorizationList;
3417
- chain?: import('viem').Chain | null;
3418
- dataSuffix?: `0x${string}`;
3419
- gas?: bigint;
3420
- gasPrice?: bigint;
3421
- maxFeePerGas?: bigint;
3422
- maxPriorityFeePerGas?: bigint;
3423
- nonce?: number;
3424
- value?: bigint;
3425
- }): Promise<void> {
3426
- return contract.simulate.tokenTransfer([_token, _amount] as const, options) as Promise<void>;
3427
- },
3428
3148
  /**
3429
3149
  * Simulate transferOwnership
3430
3150
  * Returns gas estimate and result without sending transaction
@@ -3546,7 +3266,7 @@ export class PresaleV3_json {
3546
3266
  ClaimStartUpdated: (callback: (event: { prevValue: bigint; newValue: bigint; timestamp: bigint }) => void) => {
3547
3267
  return this.publicClient.watchContractEvent({
3548
3268
  address: this.contractAddress,
3549
- abi: PresaleV3_jsonAbi,
3269
+ abi: PresaleV1_jsonAbi,
3550
3270
  eventName: 'ClaimStartUpdated',
3551
3271
 
3552
3272
  onLogs: (logs: any[]) => {
@@ -3565,7 +3285,7 @@ export class PresaleV3_json {
3565
3285
  Initialized: (callback: (event: { version: bigint }) => void) => {
3566
3286
  return this.publicClient.watchContractEvent({
3567
3287
  address: this.contractAddress,
3568
- abi: PresaleV3_jsonAbi,
3288
+ abi: PresaleV1_jsonAbi,
3569
3289
  eventName: 'Initialized',
3570
3290
 
3571
3291
  onLogs: (logs: any[]) => {
@@ -3584,7 +3304,7 @@ export class PresaleV3_json {
3584
3304
  MaxTokensUpdated: (callback: (event: { prevValue: bigint; newValue: bigint; timestamp: bigint }) => void) => {
3585
3305
  return this.publicClient.watchContractEvent({
3586
3306
  address: this.contractAddress,
3587
- abi: PresaleV3_jsonAbi,
3307
+ abi: PresaleV1_jsonAbi,
3588
3308
  eventName: 'MaxTokensUpdated',
3589
3309
 
3590
3310
  onLogs: (logs: any[]) => {
@@ -3603,7 +3323,7 @@ export class PresaleV3_json {
3603
3323
  OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
3604
3324
  return this.publicClient.watchContractEvent({
3605
3325
  address: this.contractAddress,
3606
- abi: PresaleV3_jsonAbi,
3326
+ abi: PresaleV1_jsonAbi,
3607
3327
  eventName: 'OwnershipTransferred',
3608
3328
  args: filter,
3609
3329
  onLogs: (logs: any[]) => {
@@ -3622,7 +3342,7 @@ export class PresaleV3_json {
3622
3342
  Paused: (callback: (event: { account: `0x${string}` }) => void) => {
3623
3343
  return this.publicClient.watchContractEvent({
3624
3344
  address: this.contractAddress,
3625
- abi: PresaleV3_jsonAbi,
3345
+ abi: PresaleV1_jsonAbi,
3626
3346
  eventName: 'Paused',
3627
3347
 
3628
3348
  onLogs: (logs: any[]) => {
@@ -3641,7 +3361,7 @@ export class PresaleV3_json {
3641
3361
  SaleTimeSet: (callback: (event: { _start: bigint; _end: bigint; timestamp: bigint }) => void) => {
3642
3362
  return this.publicClient.watchContractEvent({
3643
3363
  address: this.contractAddress,
3644
- abi: PresaleV3_jsonAbi,
3364
+ abi: PresaleV1_jsonAbi,
3645
3365
  eventName: 'SaleTimeSet',
3646
3366
 
3647
3367
  onLogs: (logs: any[]) => {
@@ -3660,7 +3380,7 @@ export class PresaleV3_json {
3660
3380
  SaleTimeUpdated: (callback: (event: { key: `0x${string}`; prevValue: bigint; newValue: bigint; timestamp: bigint }) => void, filter?: { key: `0x${string}` }) => {
3661
3381
  return this.publicClient.watchContractEvent({
3662
3382
  address: this.contractAddress,
3663
- abi: PresaleV3_jsonAbi,
3383
+ abi: PresaleV1_jsonAbi,
3664
3384
  eventName: 'SaleTimeUpdated',
3665
3385
  args: filter,
3666
3386
  onLogs: (logs: any[]) => {
@@ -3679,7 +3399,7 @@ export class PresaleV3_json {
3679
3399
  TokensAdded: (callback: (event: { token: `0x${string}`; noOfTokens: bigint; timestamp: bigint }) => void, filter?: { token: `0x${string}` }) => {
3680
3400
  return this.publicClient.watchContractEvent({
3681
3401
  address: this.contractAddress,
3682
- abi: PresaleV3_jsonAbi,
3402
+ abi: PresaleV1_jsonAbi,
3683
3403
  eventName: 'TokensAdded',
3684
3404
  args: filter,
3685
3405
  onLogs: (logs: any[]) => {
@@ -3698,7 +3418,7 @@ export class PresaleV3_json {
3698
3418
  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}` }) => {
3699
3419
  return this.publicClient.watchContractEvent({
3700
3420
  address: this.contractAddress,
3701
- abi: PresaleV3_jsonAbi,
3421
+ abi: PresaleV1_jsonAbi,
3702
3422
  eventName: 'TokensBought',
3703
3423
  args: filter,
3704
3424
  onLogs: (logs: any[]) => {
@@ -3717,7 +3437,7 @@ export class PresaleV3_json {
3717
3437
  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}` }) => {
3718
3438
  return this.publicClient.watchContractEvent({
3719
3439
  address: this.contractAddress,
3720
- abi: PresaleV3_jsonAbi,
3440
+ abi: PresaleV1_jsonAbi,
3721
3441
  eventName: 'TokensBoughtAndStaked',
3722
3442
  args: filter,
3723
3443
  onLogs: (logs: any[]) => {
@@ -3736,7 +3456,7 @@ export class PresaleV3_json {
3736
3456
  TokensClaimed: (callback: (event: { user: `0x${string}`; amount: bigint; timestamp: bigint }) => void, filter?: { user: `0x${string}` }) => {
3737
3457
  return this.publicClient.watchContractEvent({
3738
3458
  address: this.contractAddress,
3739
- abi: PresaleV3_jsonAbi,
3459
+ abi: PresaleV1_jsonAbi,
3740
3460
  eventName: 'TokensClaimed',
3741
3461
  args: filter,
3742
3462
  onLogs: (logs: any[]) => {
@@ -3755,7 +3475,7 @@ export class PresaleV3_json {
3755
3475
  TokensClaimedAndStaked: (callback: (event: { user: `0x${string}`; amount: bigint; timestamp: bigint }) => void, filter?: { user: `0x${string}` }) => {
3756
3476
  return this.publicClient.watchContractEvent({
3757
3477
  address: this.contractAddress,
3758
- abi: PresaleV3_jsonAbi,
3478
+ abi: PresaleV1_jsonAbi,
3759
3479
  eventName: 'TokensClaimedAndStaked',
3760
3480
  args: filter,
3761
3481
  onLogs: (logs: any[]) => {
@@ -3774,7 +3494,7 @@ export class PresaleV3_json {
3774
3494
  Unpaused: (callback: (event: { account: `0x${string}` }) => void) => {
3775
3495
  return this.publicClient.watchContractEvent({
3776
3496
  address: this.contractAddress,
3777
- abi: PresaleV3_jsonAbi,
3497
+ abi: PresaleV1_jsonAbi,
3778
3498
  eventName: 'Unpaused',
3779
3499
 
3780
3500
  onLogs: (logs: any[]) => {