@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.
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Auto-generated TypeScript type bindings for **Presale**
4
4
 
5
- - **Build ID**: `etherscan-presale-8e2281bf-1786569503078`
5
+ - **Build ID**: `etherscan-presale-b89d2fcb-1787482454171`
6
6
  - **Build Number**: 1
7
- - **Commit**: `1d8ad38`
7
+ - **Commit**: `f67c921`
8
8
  - **Branch**: `etherscan`
9
9
  - **Target**: `ethers-v6`
10
10
  - **Contracts**: 2
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **Presale**
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- npm install @gitmyabi/presale@1.0.4
15
+ npm install @gitmyabi/presale@1.0.6
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -1,10 +1,10 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * PresaleV3_json ABI
3
+ * PresaleV1_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 PresaleV3_jsonAbi: readonly [{
7
+ export declare const PresaleV1_jsonAbi: readonly [{
8
8
  readonly inputs: readonly [];
9
9
  readonly stateMutability: "nonpayable";
10
10
  readonly type: "constructor";
@@ -396,28 +396,6 @@ export declare const PresaleV3_jsonAbi: readonly [{
396
396
  }];
397
397
  readonly stateMutability: "nonpayable";
398
398
  readonly type: "function";
399
- }, {
400
- readonly inputs: readonly [{
401
- readonly internalType: "address";
402
- readonly name: "_user";
403
- readonly type: "address";
404
- }, {
405
- readonly internalType: "uint256";
406
- readonly name: "_amount";
407
- readonly type: "uint256";
408
- }, {
409
- readonly internalType: "bool";
410
- readonly name: "stake";
411
- readonly type: "bool";
412
- }];
413
- readonly name: "buyWithUSDCWERT";
414
- readonly outputs: readonly [{
415
- readonly internalType: "bool";
416
- readonly name: "";
417
- readonly type: "bool";
418
- }];
419
- readonly stateMutability: "nonpayable";
420
- readonly type: "function";
421
399
  }, {
422
400
  readonly inputs: readonly [{
423
401
  readonly internalType: "uint256";
@@ -622,6 +600,52 @@ export declare const PresaleV3_jsonAbi: readonly [{
622
600
  readonly outputs: readonly [];
623
601
  readonly stateMutability: "nonpayable";
624
602
  readonly type: "function";
603
+ }, {
604
+ readonly inputs: readonly [{
605
+ readonly internalType: "address";
606
+ readonly name: "_oracle";
607
+ readonly type: "address";
608
+ }, {
609
+ readonly internalType: "address";
610
+ readonly name: "_usdt";
611
+ readonly type: "address";
612
+ }, {
613
+ readonly internalType: "address";
614
+ readonly name: "_usdc";
615
+ readonly type: "address";
616
+ }, {
617
+ readonly internalType: "uint256";
618
+ readonly name: "_startTime";
619
+ readonly type: "uint256";
620
+ }, {
621
+ readonly internalType: "uint256";
622
+ readonly name: "_endTime";
623
+ readonly type: "uint256";
624
+ }, {
625
+ readonly internalType: "uint256[][3]";
626
+ readonly name: "_rounds";
627
+ readonly type: "uint256[][3]";
628
+ }, {
629
+ readonly internalType: "uint256";
630
+ readonly name: "_maxTokensToBuy";
631
+ readonly type: "uint256";
632
+ }, {
633
+ readonly internalType: "address";
634
+ readonly name: "_paymentWallet";
635
+ readonly type: "address";
636
+ }, {
637
+ readonly internalType: "bool";
638
+ readonly name: "_dynamicTimeFlag";
639
+ readonly type: "bool";
640
+ }, {
641
+ readonly internalType: "uint256";
642
+ readonly name: "_timeConstant";
643
+ readonly type: "uint256";
644
+ }];
645
+ readonly name: "initialize";
646
+ readonly outputs: readonly [];
647
+ readonly stateMutability: "nonpayable";
648
+ readonly type: "function";
625
649
  }, {
626
650
  readonly inputs: readonly [{
627
651
  readonly internalType: "address";
@@ -880,16 +904,6 @@ export declare const PresaleV3_jsonAbi: readonly [{
880
904
  readonly outputs: readonly [];
881
905
  readonly stateMutability: "nonpayable";
882
906
  readonly type: "function";
883
- }, {
884
- readonly inputs: readonly [{
885
- readonly internalType: "address";
886
- readonly name: "_saleToken";
887
- readonly type: "address";
888
- }];
889
- readonly name: "setSaleToken";
890
- readonly outputs: readonly [];
891
- readonly stateMutability: "nonpayable";
892
- readonly type: "function";
893
907
  }, {
894
908
  readonly inputs: readonly [{
895
909
  readonly internalType: "address";
@@ -1014,20 +1028,6 @@ export declare const PresaleV3_jsonAbi: readonly [{
1014
1028
  }];
1015
1029
  readonly stateMutability: "view";
1016
1030
  readonly type: "function";
1017
- }, {
1018
- readonly inputs: readonly [{
1019
- readonly internalType: "address";
1020
- readonly name: "_token";
1021
- readonly type: "address";
1022
- }, {
1023
- readonly internalType: "uint256";
1024
- readonly name: "_amount";
1025
- readonly type: "uint256";
1026
- }];
1027
- readonly name: "tokenTransfer";
1028
- readonly outputs: readonly [];
1029
- readonly stateMutability: "nonpayable";
1030
- readonly type: "function";
1031
1031
  }, {
1032
1032
  readonly inputs: readonly [];
1033
1033
  readonly name: "totalBoughtAndStaked";
@@ -1186,15 +1186,15 @@ export declare const PresaleV3_jsonAbi: readonly [{
1186
1186
  readonly type: "function";
1187
1187
  }];
1188
1188
  /**
1189
- * Type-safe ABI for PresaleV3_json
1189
+ * Type-safe ABI for PresaleV1_json
1190
1190
  */
1191
- export type PresaleV3_jsonAbi = typeof PresaleV3_jsonAbi;
1191
+ export type PresaleV1_jsonAbi = typeof PresaleV1_jsonAbi;
1192
1192
  /**
1193
- * Contract instance type for PresaleV3_json
1193
+ * Contract instance type for PresaleV1_json
1194
1194
  */
1195
- export type PresaleV3_jsonContract = any;
1195
+ export type PresaleV1_jsonContract = any;
1196
1196
  /**
1197
- * PresaleV3_json Contract Class
1197
+ * PresaleV1_json Contract Class
1198
1198
  *
1199
1199
  * Provides a class-based API similar to TypeChain for interacting with the contract.
1200
1200
  *
@@ -1202,12 +1202,12 @@ export type PresaleV3_jsonContract = any;
1202
1202
  * ```typescript
1203
1203
  * import { createPublicClient, createWalletClient, http } from 'viem';
1204
1204
  * import { mainnet } from 'viem/chains';
1205
- * import { PresaleV3_json } from 'PresaleV3_json';
1205
+ * import { PresaleV1_json } from 'PresaleV1_json';
1206
1206
  *
1207
1207
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1208
1208
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1209
1209
  *
1210
- * const contract = new PresaleV3_json('0x...', { publicClient, walletClient });
1210
+ * const contract = new PresaleV1_json('0x...', { publicClient, walletClient });
1211
1211
  *
1212
1212
  * // Read functions
1213
1213
  * const result = await contract.balanceOf('0x...');
@@ -1225,7 +1225,7 @@ export type PresaleV3_jsonContract = any;
1225
1225
  * });
1226
1226
  * ```
1227
1227
  */
1228
- export declare class PresaleV3_json {
1228
+ export declare class PresaleV1_json {
1229
1229
  private contract;
1230
1230
  private contractAddress;
1231
1231
  private publicClient;
@@ -1240,7 +1240,7 @@ export declare class PresaleV3_json {
1240
1240
  /**
1241
1241
  * Get the underlying viem contract instance
1242
1242
  */
1243
- getContract(): PresaleV3_jsonContract;
1243
+ getContract(): PresaleV1_jsonContract;
1244
1244
  /**
1245
1245
  * USDCInterface
1246
1246
  * view
@@ -1514,23 +1514,6 @@ export declare class PresaleV3_json {
1514
1514
  nonce?: number;
1515
1515
  value?: bigint;
1516
1516
  }): Promise<`0x${string}`>;
1517
- /**
1518
- * buyWithUSDCWERT
1519
- * nonpayable
1520
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1521
- */
1522
- buyWithUSDCWERT(_user: `0x${string}`, _amount: bigint, stake: boolean, options?: {
1523
- accessList?: import('viem').AccessList;
1524
- authorizationList?: import('viem').AuthorizationList;
1525
- chain?: import('viem').Chain | null;
1526
- dataSuffix?: `0x${string}`;
1527
- gas?: bigint;
1528
- gasPrice?: bigint;
1529
- maxFeePerGas?: bigint;
1530
- maxPriorityFeePerGas?: bigint;
1531
- nonce?: number;
1532
- value?: bigint;
1533
- }): Promise<`0x${string}`>;
1534
1517
  /**
1535
1518
  * buyWithUSDT
1536
1519
  * nonpayable
@@ -1684,6 +1667,23 @@ export declare class PresaleV3_json {
1684
1667
  nonce?: number;
1685
1668
  value?: bigint;
1686
1669
  }): Promise<`0x${string}`>;
1670
+ /**
1671
+ * initialize
1672
+ * nonpayable
1673
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1674
+ */
1675
+ 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?: {
1676
+ accessList?: import('viem').AccessList;
1677
+ authorizationList?: import('viem').AuthorizationList;
1678
+ chain?: import('viem').Chain | null;
1679
+ dataSuffix?: `0x${string}`;
1680
+ gas?: bigint;
1681
+ gasPrice?: bigint;
1682
+ maxFeePerGas?: bigint;
1683
+ maxPriorityFeePerGas?: bigint;
1684
+ nonce?: number;
1685
+ value?: bigint;
1686
+ }): Promise<`0x${string}`>;
1687
1687
  /**
1688
1688
  * pause
1689
1689
  * nonpayable
@@ -1854,23 +1854,6 @@ export declare class PresaleV3_json {
1854
1854
  nonce?: number;
1855
1855
  value?: bigint;
1856
1856
  }): Promise<`0x${string}`>;
1857
- /**
1858
- * setSaleToken
1859
- * nonpayable
1860
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1861
- */
1862
- setSaleToken(_saleToken: `0x${string}`, options?: {
1863
- accessList?: import('viem').AccessList;
1864
- authorizationList?: import('viem').AuthorizationList;
1865
- chain?: import('viem').Chain | null;
1866
- dataSuffix?: `0x${string}`;
1867
- gas?: bigint;
1868
- gasPrice?: bigint;
1869
- maxFeePerGas?: bigint;
1870
- maxPriorityFeePerGas?: bigint;
1871
- nonce?: number;
1872
- value?: bigint;
1873
- }): Promise<`0x${string}`>;
1874
1857
  /**
1875
1858
  * setSanctions
1876
1859
  * nonpayable
@@ -1973,23 +1956,6 @@ export declare class PresaleV3_json {
1973
1956
  nonce?: number;
1974
1957
  value?: bigint;
1975
1958
  }): Promise<`0x${string}`>;
1976
- /**
1977
- * tokenTransfer
1978
- * nonpayable
1979
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1980
- */
1981
- tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
1982
- accessList?: import('viem').AccessList;
1983
- authorizationList?: import('viem').AuthorizationList;
1984
- chain?: import('viem').Chain | null;
1985
- dataSuffix?: `0x${string}`;
1986
- gas?: bigint;
1987
- gasPrice?: bigint;
1988
- maxFeePerGas?: bigint;
1989
- maxPriorityFeePerGas?: bigint;
1990
- nonce?: number;
1991
- value?: bigint;
1992
- }): Promise<`0x${string}`>;
1993
1959
  /**
1994
1960
  * transferOwnership
1995
1961
  * nonpayable
@@ -2152,23 +2118,6 @@ export declare class PresaleV3_json {
2152
2118
  nonce?: number;
2153
2119
  value?: bigint;
2154
2120
  }): Promise<boolean>;
2155
- /**
2156
- * Simulate buyWithUSDCWERT
2157
- * Returns gas estimate and result without sending transaction
2158
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2159
- */
2160
- buyWithUSDCWERT(_user: `0x${string}`, _amount: bigint, stake: boolean, options?: {
2161
- accessList?: import("viem").AccessList;
2162
- authorizationList?: import("viem").AuthorizationList;
2163
- chain?: import("viem").Chain | null;
2164
- dataSuffix?: `0x${string}`;
2165
- gas?: bigint;
2166
- gasPrice?: bigint;
2167
- maxFeePerGas?: bigint;
2168
- maxPriorityFeePerGas?: bigint;
2169
- nonce?: number;
2170
- value?: bigint;
2171
- }): Promise<boolean>;
2172
2121
  /**
2173
2122
  * Simulate buyWithUSDT
2174
2123
  * Returns gas estimate and result without sending transaction
@@ -2322,6 +2271,23 @@ export declare class PresaleV3_json {
2322
2271
  nonce?: number;
2323
2272
  value?: bigint;
2324
2273
  }): Promise<void>;
2274
+ /**
2275
+ * Simulate initialize
2276
+ * Returns gas estimate and result without sending transaction
2277
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2278
+ */
2279
+ 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?: {
2280
+ accessList?: import("viem").AccessList;
2281
+ authorizationList?: import("viem").AuthorizationList;
2282
+ chain?: import("viem").Chain | null;
2283
+ dataSuffix?: `0x${string}`;
2284
+ gas?: bigint;
2285
+ gasPrice?: bigint;
2286
+ maxFeePerGas?: bigint;
2287
+ maxPriorityFeePerGas?: bigint;
2288
+ nonce?: number;
2289
+ value?: bigint;
2290
+ }): Promise<void>;
2325
2291
  /**
2326
2292
  * Simulate pause
2327
2293
  * Returns gas estimate and result without sending transaction
@@ -2492,23 +2458,6 @@ export declare class PresaleV3_json {
2492
2458
  nonce?: number;
2493
2459
  value?: bigint;
2494
2460
  }): Promise<void>;
2495
- /**
2496
- * Simulate setSaleToken
2497
- * Returns gas estimate and result without sending transaction
2498
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2499
- */
2500
- setSaleToken(_saleToken: `0x${string}`, options?: {
2501
- accessList?: import("viem").AccessList;
2502
- authorizationList?: import("viem").AuthorizationList;
2503
- chain?: import("viem").Chain | null;
2504
- dataSuffix?: `0x${string}`;
2505
- gas?: bigint;
2506
- gasPrice?: bigint;
2507
- maxFeePerGas?: bigint;
2508
- maxPriorityFeePerGas?: bigint;
2509
- nonce?: number;
2510
- value?: bigint;
2511
- }): Promise<void>;
2512
2461
  /**
2513
2462
  * Simulate setSanctions
2514
2463
  * Returns gas estimate and result without sending transaction
@@ -2611,23 +2560,6 @@ export declare class PresaleV3_json {
2611
2560
  nonce?: number;
2612
2561
  value?: bigint;
2613
2562
  }): Promise<boolean>;
2614
- /**
2615
- * Simulate tokenTransfer
2616
- * Returns gas estimate and result without sending transaction
2617
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2618
- */
2619
- tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
2620
- accessList?: import("viem").AccessList;
2621
- authorizationList?: import("viem").AuthorizationList;
2622
- chain?: import("viem").Chain | null;
2623
- dataSuffix?: `0x${string}`;
2624
- gas?: bigint;
2625
- gasPrice?: bigint;
2626
- maxFeePerGas?: bigint;
2627
- maxPriorityFeePerGas?: bigint;
2628
- nonce?: number;
2629
- value?: bigint;
2630
- }): Promise<void>;
2631
2563
  /**
2632
2564
  * Simulate transferOwnership
2633
2565
  * Returns gas estimate and result without sending transaction