@gitmyabi/presale 1.0.4 → 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.
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-da9c657d-1786685690556`
6
6
  - **Build Number**: 1
7
- - **Commit**: `1d8ad38`
7
+ - **Commit**: `2e32123`
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.5
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";
@@ -268,16 +268,6 @@ export declare const PresaleV3_jsonAbi: readonly [{
268
268
  }];
269
269
  readonly name: "Unpaused";
270
270
  readonly type: "event";
271
- }, {
272
- readonly inputs: readonly [];
273
- readonly name: "USDCInterface";
274
- readonly outputs: readonly [{
275
- readonly internalType: "contract IERC20Upgradeable";
276
- readonly name: "";
277
- readonly type: "address";
278
- }];
279
- readonly stateMutability: "view";
280
- readonly type: "function";
281
271
  }, {
282
272
  readonly inputs: readonly [];
283
273
  readonly name: "USDTInterface";
@@ -308,16 +298,6 @@ export declare const PresaleV3_jsonAbi: readonly [{
308
298
  }];
309
299
  readonly stateMutability: "view";
310
300
  readonly type: "function";
311
- }, {
312
- readonly inputs: readonly [];
313
- readonly name: "applySanctions";
314
- readonly outputs: readonly [{
315
- readonly internalType: "bool";
316
- readonly name: "";
317
- readonly type: "bool";
318
- }];
319
- readonly stateMutability: "view";
320
- readonly type: "function";
321
301
  }, {
322
302
  readonly inputs: readonly [];
323
303
  readonly name: "baseDecimals";
@@ -378,46 +358,6 @@ export declare const PresaleV3_jsonAbi: readonly [{
378
358
  }];
379
359
  readonly stateMutability: "payable";
380
360
  readonly type: "function";
381
- }, {
382
- readonly inputs: readonly [{
383
- readonly internalType: "uint256";
384
- readonly name: "amount";
385
- readonly type: "uint256";
386
- }, {
387
- readonly internalType: "bool";
388
- readonly name: "stake";
389
- readonly type: "bool";
390
- }];
391
- readonly name: "buyWithUSDC";
392
- readonly outputs: readonly [{
393
- readonly internalType: "bool";
394
- readonly name: "";
395
- readonly type: "bool";
396
- }];
397
- readonly stateMutability: "nonpayable";
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
361
  }, {
422
362
  readonly inputs: readonly [{
423
363
  readonly internalType: "uint256";
@@ -622,6 +562,48 @@ export declare const PresaleV3_jsonAbi: readonly [{
622
562
  readonly outputs: readonly [];
623
563
  readonly stateMutability: "nonpayable";
624
564
  readonly type: "function";
565
+ }, {
566
+ readonly inputs: readonly [{
567
+ readonly internalType: "address";
568
+ readonly name: "_oracle";
569
+ readonly type: "address";
570
+ }, {
571
+ readonly internalType: "address";
572
+ readonly name: "_usdt";
573
+ readonly type: "address";
574
+ }, {
575
+ readonly internalType: "uint256";
576
+ readonly name: "_startTime";
577
+ readonly type: "uint256";
578
+ }, {
579
+ readonly internalType: "uint256";
580
+ readonly name: "_endTime";
581
+ readonly type: "uint256";
582
+ }, {
583
+ readonly internalType: "uint256[][3]";
584
+ readonly name: "_rounds";
585
+ readonly type: "uint256[][3]";
586
+ }, {
587
+ readonly internalType: "uint256";
588
+ readonly name: "_maxTokensToBuy";
589
+ readonly type: "uint256";
590
+ }, {
591
+ readonly internalType: "address";
592
+ readonly name: "_paymentWallet";
593
+ readonly type: "address";
594
+ }, {
595
+ readonly internalType: "bool";
596
+ readonly name: "_dynamicTimeFlag";
597
+ readonly type: "bool";
598
+ }, {
599
+ readonly internalType: "uint256";
600
+ readonly name: "_timeConstant";
601
+ readonly type: "uint256";
602
+ }];
603
+ readonly name: "initialize";
604
+ readonly outputs: readonly [];
605
+ readonly stateMutability: "nonpayable";
606
+ readonly type: "function";
625
607
  }, {
626
608
  readonly inputs: readonly [{
627
609
  readonly internalType: "address";
@@ -816,16 +798,6 @@ export declare const PresaleV3_jsonAbi: readonly [{
816
798
  }];
817
799
  readonly stateMutability: "view";
818
800
  readonly type: "function";
819
- }, {
820
- readonly inputs: readonly [];
821
- readonly name: "sanctionsList";
822
- readonly outputs: readonly [{
823
- readonly internalType: "contract ISanctionsList";
824
- readonly name: "";
825
- readonly type: "address";
826
- }];
827
- readonly stateMutability: "view";
828
- readonly type: "function";
829
801
  }, {
830
802
  readonly inputs: readonly [{
831
803
  readonly internalType: "address";
@@ -880,30 +852,6 @@ export declare const PresaleV3_jsonAbi: readonly [{
880
852
  readonly outputs: readonly [];
881
853
  readonly stateMutability: "nonpayable";
882
854
  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
- }, {
894
- readonly inputs: readonly [{
895
- readonly internalType: "address";
896
- readonly name: "_sanctionContract";
897
- readonly type: "address";
898
- }, {
899
- readonly internalType: "bool";
900
- readonly name: "_applySanction";
901
- readonly type: "bool";
902
- }];
903
- readonly name: "setSanctions";
904
- readonly outputs: readonly [];
905
- readonly stateMutability: "nonpayable";
906
- readonly type: "function";
907
855
  }, {
908
856
  readonly inputs: readonly [{
909
857
  readonly internalType: "address[]";
@@ -1014,20 +962,6 @@ export declare const PresaleV3_jsonAbi: readonly [{
1014
962
  }];
1015
963
  readonly stateMutability: "view";
1016
964
  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
965
  }, {
1032
966
  readonly inputs: readonly [];
1033
967
  readonly name: "totalBoughtAndStaked";
@@ -1186,15 +1120,15 @@ export declare const PresaleV3_jsonAbi: readonly [{
1186
1120
  readonly type: "function";
1187
1121
  }];
1188
1122
  /**
1189
- * Type-safe ABI for PresaleV3_json
1123
+ * Type-safe ABI for PresaleV1_json
1190
1124
  */
1191
- export type PresaleV3_jsonAbi = typeof PresaleV3_jsonAbi;
1125
+ export type PresaleV1_jsonAbi = typeof PresaleV1_jsonAbi;
1192
1126
  /**
1193
- * Contract instance type for PresaleV3_json
1127
+ * Contract instance type for PresaleV1_json
1194
1128
  */
1195
- export type PresaleV3_jsonContract = any;
1129
+ export type PresaleV1_jsonContract = any;
1196
1130
  /**
1197
- * PresaleV3_json Contract Class
1131
+ * PresaleV1_json Contract Class
1198
1132
  *
1199
1133
  * Provides a class-based API similar to TypeChain for interacting with the contract.
1200
1134
  *
@@ -1202,12 +1136,12 @@ export type PresaleV3_jsonContract = any;
1202
1136
  * ```typescript
1203
1137
  * import { createPublicClient, createWalletClient, http } from 'viem';
1204
1138
  * import { mainnet } from 'viem/chains';
1205
- * import { PresaleV3_json } from 'PresaleV3_json';
1139
+ * import { PresaleV1_json } from 'PresaleV1_json';
1206
1140
  *
1207
1141
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1208
1142
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1209
1143
  *
1210
- * const contract = new PresaleV3_json('0x...', { publicClient, walletClient });
1144
+ * const contract = new PresaleV1_json('0x...', { publicClient, walletClient });
1211
1145
  *
1212
1146
  * // Read functions
1213
1147
  * const result = await contract.balanceOf('0x...');
@@ -1225,7 +1159,7 @@ export type PresaleV3_jsonContract = any;
1225
1159
  * });
1226
1160
  * ```
1227
1161
  */
1228
- export declare class PresaleV3_json {
1162
+ export declare class PresaleV1_json {
1229
1163
  private contract;
1230
1164
  private contractAddress;
1231
1165
  private publicClient;
@@ -1240,12 +1174,7 @@ export declare class PresaleV3_json {
1240
1174
  /**
1241
1175
  * Get the underlying viem contract instance
1242
1176
  */
1243
- getContract(): PresaleV3_jsonContract;
1244
- /**
1245
- * USDCInterface
1246
- * view
1247
- */
1248
- USDCInterface(): Promise<`0x${string}`>;
1177
+ getContract(): PresaleV1_jsonContract;
1249
1178
  /**
1250
1179
  * USDTInterface
1251
1180
  * view
@@ -1261,11 +1190,6 @@ export declare class PresaleV3_json {
1261
1190
  * view
1262
1191
  */
1263
1192
  aggregatorInterface(): Promise<`0x${string}`>;
1264
- /**
1265
- * applySanctions
1266
- * view
1267
- */
1268
- applySanctions(): Promise<boolean>;
1269
1193
  /**
1270
1194
  * baseDecimals
1271
1195
  * view
@@ -1376,11 +1300,6 @@ export declare class PresaleV3_json {
1376
1300
  * view
1377
1301
  */
1378
1302
  saleToken(): Promise<`0x${string}`>;
1379
- /**
1380
- * sanctionsList
1381
- * view
1382
- */
1383
- sanctionsList(): Promise<`0x${string}`>;
1384
1303
  /**
1385
1304
  * stakeingWhitelistStatus
1386
1305
  * view
@@ -1497,40 +1416,6 @@ export declare class PresaleV3_json {
1497
1416
  nonce?: number;
1498
1417
  value?: bigint;
1499
1418
  }): Promise<`0x${string}`>;
1500
- /**
1501
- * buyWithUSDC
1502
- * nonpayable
1503
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1504
- */
1505
- buyWithUSDC(amount: bigint, stake: boolean, options?: {
1506
- accessList?: import('viem').AccessList;
1507
- authorizationList?: import('viem').AuthorizationList;
1508
- chain?: import('viem').Chain | null;
1509
- dataSuffix?: `0x${string}`;
1510
- gas?: bigint;
1511
- gasPrice?: bigint;
1512
- maxFeePerGas?: bigint;
1513
- maxPriorityFeePerGas?: bigint;
1514
- nonce?: number;
1515
- value?: bigint;
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
1419
  /**
1535
1420
  * buyWithUSDT
1536
1421
  * nonpayable
@@ -1684,6 +1569,23 @@ export declare class PresaleV3_json {
1684
1569
  nonce?: number;
1685
1570
  value?: bigint;
1686
1571
  }): Promise<`0x${string}`>;
1572
+ /**
1573
+ * initialize
1574
+ * nonpayable
1575
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1576
+ */
1577
+ initialize(_oracle: `0x${string}`, _usdt: `0x${string}`, _startTime: bigint, _endTime: bigint, _rounds: bigint[][], _maxTokensToBuy: bigint, _paymentWallet: `0x${string}`, _dynamicTimeFlag: boolean, _timeConstant: bigint, options?: {
1578
+ accessList?: import('viem').AccessList;
1579
+ authorizationList?: import('viem').AuthorizationList;
1580
+ chain?: import('viem').Chain | null;
1581
+ dataSuffix?: `0x${string}`;
1582
+ gas?: bigint;
1583
+ gasPrice?: bigint;
1584
+ maxFeePerGas?: bigint;
1585
+ maxPriorityFeePerGas?: bigint;
1586
+ nonce?: number;
1587
+ value?: bigint;
1588
+ }): Promise<`0x${string}`>;
1687
1589
  /**
1688
1590
  * pause
1689
1591
  * nonpayable
@@ -1854,40 +1756,6 @@ export declare class PresaleV3_json {
1854
1756
  nonce?: number;
1855
1757
  value?: bigint;
1856
1758
  }): 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
- /**
1875
- * setSanctions
1876
- * nonpayable
1877
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1878
- */
1879
- setSanctions(_sanctionContract: `0x${string}`, _applySanction: boolean, options?: {
1880
- accessList?: import('viem').AccessList;
1881
- authorizationList?: import('viem').AuthorizationList;
1882
- chain?: import('viem').Chain | null;
1883
- dataSuffix?: `0x${string}`;
1884
- gas?: bigint;
1885
- gasPrice?: bigint;
1886
- maxFeePerGas?: bigint;
1887
- maxPriorityFeePerGas?: bigint;
1888
- nonce?: number;
1889
- value?: bigint;
1890
- }): Promise<`0x${string}`>;
1891
1759
  /**
1892
1760
  * setSplits
1893
1761
  * nonpayable
@@ -1973,23 +1841,6 @@ export declare class PresaleV3_json {
1973
1841
  nonce?: number;
1974
1842
  value?: bigint;
1975
1843
  }): 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
1844
  /**
1994
1845
  * transferOwnership
1995
1846
  * nonpayable
@@ -2135,40 +1986,6 @@ export declare class PresaleV3_json {
2135
1986
  nonce?: number;
2136
1987
  value?: bigint;
2137
1988
  }): Promise<boolean>;
2138
- /**
2139
- * Simulate buyWithUSDC
2140
- * Returns gas estimate and result without sending transaction
2141
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2142
- */
2143
- buyWithUSDC(amount: bigint, stake: boolean, options?: {
2144
- accessList?: import("viem").AccessList;
2145
- authorizationList?: import("viem").AuthorizationList;
2146
- chain?: import("viem").Chain | null;
2147
- dataSuffix?: `0x${string}`;
2148
- gas?: bigint;
2149
- gasPrice?: bigint;
2150
- maxFeePerGas?: bigint;
2151
- maxPriorityFeePerGas?: bigint;
2152
- nonce?: number;
2153
- value?: bigint;
2154
- }): 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
1989
  /**
2173
1990
  * Simulate buyWithUSDT
2174
1991
  * Returns gas estimate and result without sending transaction
@@ -2322,6 +2139,23 @@ export declare class PresaleV3_json {
2322
2139
  nonce?: number;
2323
2140
  value?: bigint;
2324
2141
  }): Promise<void>;
2142
+ /**
2143
+ * Simulate initialize
2144
+ * Returns gas estimate and result without sending transaction
2145
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2146
+ */
2147
+ initialize(_oracle: `0x${string}`, _usdt: `0x${string}`, _startTime: bigint, _endTime: bigint, _rounds: bigint[][], _maxTokensToBuy: bigint, _paymentWallet: `0x${string}`, _dynamicTimeFlag: boolean, _timeConstant: bigint, options?: {
2148
+ accessList?: import("viem").AccessList;
2149
+ authorizationList?: import("viem").AuthorizationList;
2150
+ chain?: import("viem").Chain | null;
2151
+ dataSuffix?: `0x${string}`;
2152
+ gas?: bigint;
2153
+ gasPrice?: bigint;
2154
+ maxFeePerGas?: bigint;
2155
+ maxPriorityFeePerGas?: bigint;
2156
+ nonce?: number;
2157
+ value?: bigint;
2158
+ }): Promise<void>;
2325
2159
  /**
2326
2160
  * Simulate pause
2327
2161
  * Returns gas estimate and result without sending transaction
@@ -2492,40 +2326,6 @@ export declare class PresaleV3_json {
2492
2326
  nonce?: number;
2493
2327
  value?: bigint;
2494
2328
  }): 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
- /**
2513
- * Simulate setSanctions
2514
- * Returns gas estimate and result without sending transaction
2515
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2516
- */
2517
- setSanctions(_sanctionContract: `0x${string}`, _applySanction: boolean, options?: {
2518
- accessList?: import("viem").AccessList;
2519
- authorizationList?: import("viem").AuthorizationList;
2520
- chain?: import("viem").Chain | null;
2521
- dataSuffix?: `0x${string}`;
2522
- gas?: bigint;
2523
- gasPrice?: bigint;
2524
- maxFeePerGas?: bigint;
2525
- maxPriorityFeePerGas?: bigint;
2526
- nonce?: number;
2527
- value?: bigint;
2528
- }): Promise<void>;
2529
2329
  /**
2530
2330
  * Simulate setSplits
2531
2331
  * Returns gas estimate and result without sending transaction
@@ -2611,23 +2411,6 @@ export declare class PresaleV3_json {
2611
2411
  nonce?: number;
2612
2412
  value?: bigint;
2613
2413
  }): 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
2414
  /**
2632
2415
  * Simulate transferOwnership
2633
2416
  * Returns gas estimate and result without sending transaction