@gitmyabi/presale 1.0.4 → 1.0.6

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",
@@ -505,35 +505,6 @@ export const PresaleV3_jsonAbi = [
505
505
  "stateMutability": "nonpayable",
506
506
  "type": "function"
507
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
508
  {
538
509
  "inputs": [
539
510
  {
@@ -802,6 +773,64 @@ export const PresaleV3_jsonAbi = [
802
773
  "stateMutability": "nonpayable",
803
774
  "type": "function"
804
775
  },
776
+ {
777
+ "inputs": [
778
+ {
779
+ "internalType": "address",
780
+ "name": "_oracle",
781
+ "type": "address"
782
+ },
783
+ {
784
+ "internalType": "address",
785
+ "name": "_usdt",
786
+ "type": "address"
787
+ },
788
+ {
789
+ "internalType": "address",
790
+ "name": "_usdc",
791
+ "type": "address"
792
+ },
793
+ {
794
+ "internalType": "uint256",
795
+ "name": "_startTime",
796
+ "type": "uint256"
797
+ },
798
+ {
799
+ "internalType": "uint256",
800
+ "name": "_endTime",
801
+ "type": "uint256"
802
+ },
803
+ {
804
+ "internalType": "uint256[][3]",
805
+ "name": "_rounds",
806
+ "type": "uint256[][3]"
807
+ },
808
+ {
809
+ "internalType": "uint256",
810
+ "name": "_maxTokensToBuy",
811
+ "type": "uint256"
812
+ },
813
+ {
814
+ "internalType": "address",
815
+ "name": "_paymentWallet",
816
+ "type": "address"
817
+ },
818
+ {
819
+ "internalType": "bool",
820
+ "name": "_dynamicTimeFlag",
821
+ "type": "bool"
822
+ },
823
+ {
824
+ "internalType": "uint256",
825
+ "name": "_timeConstant",
826
+ "type": "uint256"
827
+ }
828
+ ],
829
+ "name": "initialize",
830
+ "outputs": [],
831
+ "stateMutability": "nonpayable",
832
+ "type": "function"
833
+ },
805
834
  {
806
835
  "inputs": [
807
836
  {
@@ -1141,19 +1170,6 @@ export const PresaleV3_jsonAbi = [
1141
1170
  "stateMutability": "nonpayable",
1142
1171
  "type": "function"
1143
1172
  },
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
1173
  {
1158
1174
  "inputs": [
1159
1175
  {
@@ -1315,24 +1331,6 @@ export const PresaleV3_jsonAbi = [
1315
1331
  "stateMutability": "view",
1316
1332
  "type": "function"
1317
1333
  },
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
1334
  {
1337
1335
  "inputs": [],
1338
1336
  "name": "totalBoughtAndStaked",
@@ -1541,19 +1539,19 @@ export const PresaleV3_jsonAbi = [
1541
1539
  ] as const satisfies Abi;
1542
1540
 
1543
1541
  /**
1544
- * Type-safe ABI for PresaleV3_json
1542
+ * Type-safe ABI for PresaleV1_json
1545
1543
  */
1546
- export type PresaleV3_jsonAbi = typeof PresaleV3_jsonAbi;
1544
+ export type PresaleV1_jsonAbi = typeof PresaleV1_jsonAbi;
1547
1545
 
1548
1546
  /**
1549
- * Contract instance type for PresaleV3_json
1547
+ * Contract instance type for PresaleV1_json
1550
1548
  */
1551
1549
  // Use any for contract type to avoid complex viem type issues
1552
1550
  // The runtime behavior is type-safe through viem's ABI typing
1553
- export type PresaleV3_jsonContract = any;
1551
+ export type PresaleV1_jsonContract = any;
1554
1552
 
1555
1553
  /**
1556
- * PresaleV3_json Contract Class
1554
+ * PresaleV1_json Contract Class
1557
1555
  *
1558
1556
  * Provides a class-based API similar to TypeChain for interacting with the contract.
1559
1557
  *
@@ -1561,12 +1559,12 @@ export type PresaleV3_jsonContract = any;
1561
1559
  * ```typescript
1562
1560
  * import { createPublicClient, createWalletClient, http } from 'viem';
1563
1561
  * import { mainnet } from 'viem/chains';
1564
- * import { PresaleV3_json } from 'PresaleV3_json';
1562
+ * import { PresaleV1_json } from 'PresaleV1_json';
1565
1563
  *
1566
1564
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1567
1565
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1568
1566
  *
1569
- * const contract = new PresaleV3_json('0x...', { publicClient, walletClient });
1567
+ * const contract = new PresaleV1_json('0x...', { publicClient, walletClient });
1570
1568
  *
1571
1569
  * // Read functions
1572
1570
  * const result = await contract.balanceOf('0x...');
@@ -1584,8 +1582,8 @@ export type PresaleV3_jsonContract = any;
1584
1582
  * });
1585
1583
  * ```
1586
1584
  */
1587
- export class PresaleV3_json {
1588
- private contract: PresaleV3_jsonContract;
1585
+ export class PresaleV1_json {
1586
+ private contract: PresaleV1_jsonContract;
1589
1587
  private contractAddress: Address;
1590
1588
  private publicClient: PublicClient;
1591
1589
 
@@ -1600,7 +1598,7 @@ export class PresaleV3_json {
1600
1598
  this.publicClient = clients.publicClient;
1601
1599
  this.contract = getContract({
1602
1600
  address,
1603
- abi: PresaleV3_jsonAbi,
1601
+ abi: PresaleV1_jsonAbi,
1604
1602
  client: {
1605
1603
  public: clients.publicClient,
1606
1604
  wallet: clients.walletClient,
@@ -1618,7 +1616,7 @@ export class PresaleV3_json {
1618
1616
  /**
1619
1617
  * Get the underlying viem contract instance
1620
1618
  */
1621
- getContract(): PresaleV3_jsonContract {
1619
+ getContract(): PresaleV1_jsonContract {
1622
1620
  return this.contract;
1623
1621
  }
1624
1622
 
@@ -2042,29 +2040,6 @@ export class PresaleV3_json {
2042
2040
  return this.contract.write.buyWithUSDC([amount, stake] as const, options) as Promise<`0x${string}`>;
2043
2041
  }
2044
2042
 
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
2043
  /**
2069
2044
  * buyWithUSDT
2070
2045
  * nonpayable
@@ -2272,6 +2247,29 @@ export class PresaleV3_json {
2272
2247
  return this.contract.write.incrementCurrentStep(options) as Promise<`0x${string}`>;
2273
2248
  }
2274
2249
 
2250
+ /**
2251
+ * initialize
2252
+ * nonpayable
2253
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2254
+ */
2255
+ async initialize(_oracle: `0x${string}`, _usdt: `0x${string}`, _usdc: `0x${string}`, _startTime: bigint, _endTime: bigint, _rounds: bigint[][], _maxTokensToBuy: bigint, _paymentWallet: `0x${string}`, _dynamicTimeFlag: boolean, _timeConstant: bigint, options?: {
2256
+ accessList?: import('viem').AccessList;
2257
+ authorizationList?: import('viem').AuthorizationList;
2258
+ chain?: import('viem').Chain | null;
2259
+ dataSuffix?: `0x${string}`;
2260
+ gas?: bigint;
2261
+ gasPrice?: bigint;
2262
+ maxFeePerGas?: bigint;
2263
+ maxPriorityFeePerGas?: bigint;
2264
+ nonce?: number;
2265
+ value?: bigint;
2266
+ }): Promise<`0x${string}`> {
2267
+ if (!this.contract.write) {
2268
+ throw new Error('Wallet client is required for write operations');
2269
+ }
2270
+ return this.contract.write.initialize([_oracle, _usdt, _usdc, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant] as const, options) as Promise<`0x${string}`>;
2271
+ }
2272
+
2275
2273
  /**
2276
2274
  * pause
2277
2275
  * nonpayable
@@ -2502,29 +2500,6 @@ export class PresaleV3_json {
2502
2500
  return this.contract.write.setRemainingTokensArray([_unsoldTokens] as const, options) as Promise<`0x${string}`>;
2503
2501
  }
2504
2502
 
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
2503
  /**
2529
2504
  * setSanctions
2530
2505
  * nonpayable
@@ -2663,29 +2638,6 @@ export class PresaleV3_json {
2663
2638
  return this.contract.write.startClaim([_claimStart, noOfTokens, _saleToken, _stakingManagerAddress] as const, options) as Promise<`0x${string}`>;
2664
2639
  }
2665
2640
 
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
2641
  /**
2690
2642
  * transferOwnership
2691
2643
  * nonpayable
@@ -2893,25 +2845,6 @@ export class PresaleV3_json {
2893
2845
  }): Promise<boolean> {
2894
2846
  return contract.simulate.buyWithUSDC([amount, stake] as const, options) as Promise<boolean>;
2895
2847
  },
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
2848
  /**
2916
2849
  * Simulate buyWithUSDT
2917
2850
  * Returns gas estimate and result without sending transaction
@@ -3083,6 +3016,25 @@ export class PresaleV3_json {
3083
3016
  }): Promise<void> {
3084
3017
  return contract.simulate.incrementCurrentStep(options) as Promise<void>;
3085
3018
  },
3019
+ /**
3020
+ * Simulate initialize
3021
+ * Returns gas estimate and result without sending transaction
3022
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3023
+ */
3024
+ async initialize(_oracle: `0x${string}`, _usdt: `0x${string}`, _usdc: `0x${string}`, _startTime: bigint, _endTime: bigint, _rounds: bigint[][], _maxTokensToBuy: bigint, _paymentWallet: `0x${string}`, _dynamicTimeFlag: boolean, _timeConstant: bigint, options?: {
3025
+ accessList?: import('viem').AccessList;
3026
+ authorizationList?: import('viem').AuthorizationList;
3027
+ chain?: import('viem').Chain | null;
3028
+ dataSuffix?: `0x${string}`;
3029
+ gas?: bigint;
3030
+ gasPrice?: bigint;
3031
+ maxFeePerGas?: bigint;
3032
+ maxPriorityFeePerGas?: bigint;
3033
+ nonce?: number;
3034
+ value?: bigint;
3035
+ }): Promise<void> {
3036
+ return contract.simulate.initialize([_oracle, _usdt, _usdc, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant] as const, options) as Promise<void>;
3037
+ },
3086
3038
  /**
3087
3039
  * Simulate pause
3088
3040
  * Returns gas estimate and result without sending transaction
@@ -3273,25 +3225,6 @@ export class PresaleV3_json {
3273
3225
  }): Promise<void> {
3274
3226
  return contract.simulate.setRemainingTokensArray([_unsoldTokens] as const, options) as Promise<void>;
3275
3227
  },
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
3228
  /**
3296
3229
  * Simulate setSanctions
3297
3230
  * Returns gas estimate and result without sending transaction
@@ -3406,25 +3339,6 @@ export class PresaleV3_json {
3406
3339
  }): Promise<boolean> {
3407
3340
  return contract.simulate.startClaim([_claimStart, noOfTokens, _saleToken, _stakingManagerAddress] as const, options) as Promise<boolean>;
3408
3341
  },
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
3342
  /**
3429
3343
  * Simulate transferOwnership
3430
3344
  * Returns gas estimate and result without sending transaction
@@ -3546,7 +3460,7 @@ export class PresaleV3_json {
3546
3460
  ClaimStartUpdated: (callback: (event: { prevValue: bigint; newValue: bigint; timestamp: bigint }) => void) => {
3547
3461
  return this.publicClient.watchContractEvent({
3548
3462
  address: this.contractAddress,
3549
- abi: PresaleV3_jsonAbi,
3463
+ abi: PresaleV1_jsonAbi,
3550
3464
  eventName: 'ClaimStartUpdated',
3551
3465
 
3552
3466
  onLogs: (logs: any[]) => {
@@ -3565,7 +3479,7 @@ export class PresaleV3_json {
3565
3479
  Initialized: (callback: (event: { version: bigint }) => void) => {
3566
3480
  return this.publicClient.watchContractEvent({
3567
3481
  address: this.contractAddress,
3568
- abi: PresaleV3_jsonAbi,
3482
+ abi: PresaleV1_jsonAbi,
3569
3483
  eventName: 'Initialized',
3570
3484
 
3571
3485
  onLogs: (logs: any[]) => {
@@ -3584,7 +3498,7 @@ export class PresaleV3_json {
3584
3498
  MaxTokensUpdated: (callback: (event: { prevValue: bigint; newValue: bigint; timestamp: bigint }) => void) => {
3585
3499
  return this.publicClient.watchContractEvent({
3586
3500
  address: this.contractAddress,
3587
- abi: PresaleV3_jsonAbi,
3501
+ abi: PresaleV1_jsonAbi,
3588
3502
  eventName: 'MaxTokensUpdated',
3589
3503
 
3590
3504
  onLogs: (logs: any[]) => {
@@ -3603,7 +3517,7 @@ export class PresaleV3_json {
3603
3517
  OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
3604
3518
  return this.publicClient.watchContractEvent({
3605
3519
  address: this.contractAddress,
3606
- abi: PresaleV3_jsonAbi,
3520
+ abi: PresaleV1_jsonAbi,
3607
3521
  eventName: 'OwnershipTransferred',
3608
3522
  args: filter,
3609
3523
  onLogs: (logs: any[]) => {
@@ -3622,7 +3536,7 @@ export class PresaleV3_json {
3622
3536
  Paused: (callback: (event: { account: `0x${string}` }) => void) => {
3623
3537
  return this.publicClient.watchContractEvent({
3624
3538
  address: this.contractAddress,
3625
- abi: PresaleV3_jsonAbi,
3539
+ abi: PresaleV1_jsonAbi,
3626
3540
  eventName: 'Paused',
3627
3541
 
3628
3542
  onLogs: (logs: any[]) => {
@@ -3641,7 +3555,7 @@ export class PresaleV3_json {
3641
3555
  SaleTimeSet: (callback: (event: { _start: bigint; _end: bigint; timestamp: bigint }) => void) => {
3642
3556
  return this.publicClient.watchContractEvent({
3643
3557
  address: this.contractAddress,
3644
- abi: PresaleV3_jsonAbi,
3558
+ abi: PresaleV1_jsonAbi,
3645
3559
  eventName: 'SaleTimeSet',
3646
3560
 
3647
3561
  onLogs: (logs: any[]) => {
@@ -3660,7 +3574,7 @@ export class PresaleV3_json {
3660
3574
  SaleTimeUpdated: (callback: (event: { key: `0x${string}`; prevValue: bigint; newValue: bigint; timestamp: bigint }) => void, filter?: { key: `0x${string}` }) => {
3661
3575
  return this.publicClient.watchContractEvent({
3662
3576
  address: this.contractAddress,
3663
- abi: PresaleV3_jsonAbi,
3577
+ abi: PresaleV1_jsonAbi,
3664
3578
  eventName: 'SaleTimeUpdated',
3665
3579
  args: filter,
3666
3580
  onLogs: (logs: any[]) => {
@@ -3679,7 +3593,7 @@ export class PresaleV3_json {
3679
3593
  TokensAdded: (callback: (event: { token: `0x${string}`; noOfTokens: bigint; timestamp: bigint }) => void, filter?: { token: `0x${string}` }) => {
3680
3594
  return this.publicClient.watchContractEvent({
3681
3595
  address: this.contractAddress,
3682
- abi: PresaleV3_jsonAbi,
3596
+ abi: PresaleV1_jsonAbi,
3683
3597
  eventName: 'TokensAdded',
3684
3598
  args: filter,
3685
3599
  onLogs: (logs: any[]) => {
@@ -3698,7 +3612,7 @@ export class PresaleV3_json {
3698
3612
  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
3613
  return this.publicClient.watchContractEvent({
3700
3614
  address: this.contractAddress,
3701
- abi: PresaleV3_jsonAbi,
3615
+ abi: PresaleV1_jsonAbi,
3702
3616
  eventName: 'TokensBought',
3703
3617
  args: filter,
3704
3618
  onLogs: (logs: any[]) => {
@@ -3717,7 +3631,7 @@ export class PresaleV3_json {
3717
3631
  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
3632
  return this.publicClient.watchContractEvent({
3719
3633
  address: this.contractAddress,
3720
- abi: PresaleV3_jsonAbi,
3634
+ abi: PresaleV1_jsonAbi,
3721
3635
  eventName: 'TokensBoughtAndStaked',
3722
3636
  args: filter,
3723
3637
  onLogs: (logs: any[]) => {
@@ -3736,7 +3650,7 @@ export class PresaleV3_json {
3736
3650
  TokensClaimed: (callback: (event: { user: `0x${string}`; amount: bigint; timestamp: bigint }) => void, filter?: { user: `0x${string}` }) => {
3737
3651
  return this.publicClient.watchContractEvent({
3738
3652
  address: this.contractAddress,
3739
- abi: PresaleV3_jsonAbi,
3653
+ abi: PresaleV1_jsonAbi,
3740
3654
  eventName: 'TokensClaimed',
3741
3655
  args: filter,
3742
3656
  onLogs: (logs: any[]) => {
@@ -3755,7 +3669,7 @@ export class PresaleV3_json {
3755
3669
  TokensClaimedAndStaked: (callback: (event: { user: `0x${string}`; amount: bigint; timestamp: bigint }) => void, filter?: { user: `0x${string}` }) => {
3756
3670
  return this.publicClient.watchContractEvent({
3757
3671
  address: this.contractAddress,
3758
- abi: PresaleV3_jsonAbi,
3672
+ abi: PresaleV1_jsonAbi,
3759
3673
  eventName: 'TokensClaimedAndStaked',
3760
3674
  args: filter,
3761
3675
  onLogs: (logs: any[]) => {
@@ -3774,7 +3688,7 @@ export class PresaleV3_json {
3774
3688
  Unpaused: (callback: (event: { account: `0x${string}` }) => void) => {
3775
3689
  return this.publicClient.watchContractEvent({
3776
3690
  address: this.contractAddress,
3777
- abi: PresaleV3_jsonAbi,
3691
+ abi: PresaleV1_jsonAbi,
3778
3692
  eventName: 'Unpaused',
3779
3693
 
3780
3694
  onLogs: (logs: any[]) => {
@@ -1,4 +1,4 @@
1
1
  export { TransparentUpgradeableProxy_jsonAbi, TransparentUpgradeableProxy_json } from './TransparentUpgradeableProxy_json';
2
2
  export type { TransparentUpgradeableProxy_jsonAbi as TransparentUpgradeableProxy_jsonAbiType, TransparentUpgradeableProxy_jsonContract } from './TransparentUpgradeableProxy_json';
3
- export { PresaleV3_jsonAbi, PresaleV3_json } from './PresaleV3_json';
4
- export type { PresaleV3_jsonAbi as PresaleV3_jsonAbiType, PresaleV3_jsonContract } from './PresaleV3_json';
3
+ export { PresaleV1_jsonAbi, PresaleV1_json } from './PresaleV1_json';
4
+ export type { PresaleV1_jsonAbi as PresaleV1_jsonAbiType, PresaleV1_jsonContract } from './PresaleV1_json';
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PresaleV3_json = exports.PresaleV3_jsonAbi = exports.TransparentUpgradeableProxy_json = exports.TransparentUpgradeableProxy_jsonAbi = void 0;
3
+ exports.PresaleV1_json = exports.PresaleV1_jsonAbi = exports.TransparentUpgradeableProxy_json = exports.TransparentUpgradeableProxy_jsonAbi = void 0;
4
4
  // Auto-generated exports for all contracts
5
5
  var TransparentUpgradeableProxy_json_1 = require("./TransparentUpgradeableProxy_json");
6
6
  Object.defineProperty(exports, "TransparentUpgradeableProxy_jsonAbi", { enumerable: true, get: function () { return TransparentUpgradeableProxy_json_1.TransparentUpgradeableProxy_jsonAbi; } });
7
7
  Object.defineProperty(exports, "TransparentUpgradeableProxy_json", { enumerable: true, get: function () { return TransparentUpgradeableProxy_json_1.TransparentUpgradeableProxy_json; } });
8
- var PresaleV3_json_1 = require("./PresaleV3_json");
9
- Object.defineProperty(exports, "PresaleV3_jsonAbi", { enumerable: true, get: function () { return PresaleV3_json_1.PresaleV3_jsonAbi; } });
10
- Object.defineProperty(exports, "PresaleV3_json", { enumerable: true, get: function () { return PresaleV3_json_1.PresaleV3_json; } });
8
+ var PresaleV1_json_1 = require("./PresaleV1_json");
9
+ Object.defineProperty(exports, "PresaleV1_jsonAbi", { enumerable: true, get: function () { return PresaleV1_json_1.PresaleV1_jsonAbi; } });
10
+ Object.defineProperty(exports, "PresaleV1_json", { enumerable: true, get: function () { return PresaleV1_json_1.PresaleV1_json; } });
@@ -1,5 +1,5 @@
1
1
  // Auto-generated exports for all contracts
2
2
  export { TransparentUpgradeableProxy_jsonAbi, TransparentUpgradeableProxy_json } from './TransparentUpgradeableProxy_json';
3
3
  export type { TransparentUpgradeableProxy_jsonAbi as TransparentUpgradeableProxy_jsonAbiType, TransparentUpgradeableProxy_jsonContract } from './TransparentUpgradeableProxy_json';
4
- export { PresaleV3_jsonAbi, PresaleV3_json } from './PresaleV3_json';
5
- export type { PresaleV3_jsonAbi as PresaleV3_jsonAbiType, PresaleV3_jsonContract } from './PresaleV3_json';
4
+ export { PresaleV1_jsonAbi, PresaleV1_json } from './PresaleV1_json';
5
+ export type { PresaleV1_jsonAbi as PresaleV1_jsonAbiType, PresaleV1_jsonContract } from './PresaleV1_json';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/presale",
3
- "version": "1.0.4",
4
- "description": "Auto-generated TypeScript type bindings for Presale (build etherscan-presale-8e2281bf-1786569503078, commit 1d8ad38, branch etherscan)",
3
+ "version": "1.0.6",
4
+ "description": "Auto-generated TypeScript type bindings for Presale (build etherscan-presale-b89d2fcb-1787482454171, commit f67c921, 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/presale"
40
40
  },
41
41
  "branch": "etherscan",
42
- "shortHash": "1d8ad38"
42
+ "shortHash": "f67c921"
43
43
  }