@gitmyabi/presale 1.0.1 → 1.0.2

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
  {
@@ -811,6 +853,19 @@ export const PresaleV2_jsonAbi = [
811
853
  "stateMutability": "view",
812
854
  "type": "function"
813
855
  },
856
+ {
857
+ "inputs": [],
858
+ "name": "nftToken",
859
+ "outputs": [
860
+ {
861
+ "internalType": "contract INFT",
862
+ "name": "",
863
+ "type": "address"
864
+ }
865
+ ],
866
+ "stateMutability": "view",
867
+ "type": "function"
868
+ },
814
869
  {
815
870
  "inputs": [],
816
871
  "name": "owner",
@@ -1016,6 +1071,19 @@ export const PresaleV2_jsonAbi = [
1016
1071
  "stateMutability": "view",
1017
1072
  "type": "function"
1018
1073
  },
1074
+ {
1075
+ "inputs": [],
1076
+ "name": "sanctionsList",
1077
+ "outputs": [
1078
+ {
1079
+ "internalType": "contract ISanctionsList",
1080
+ "name": "",
1081
+ "type": "address"
1082
+ }
1083
+ ],
1084
+ "stateMutability": "view",
1085
+ "type": "function"
1086
+ },
1019
1087
  {
1020
1088
  "inputs": [
1021
1089
  {
@@ -1076,43 +1144,43 @@ export const PresaleV2_jsonAbi = [
1076
1144
  {
1077
1145
  "inputs": [
1078
1146
  {
1079
- "internalType": "uint256[]",
1080
- "name": "_unsoldTokens",
1081
- "type": "uint256[]"
1147
+ "internalType": "address",
1148
+ "name": "_nftToken",
1149
+ "type": "address"
1082
1150
  }
1083
1151
  ],
1084
- "name": "setRemainingTokensArray",
1152
+ "name": "setNFTToken",
1085
1153
  "outputs": [],
1086
1154
  "stateMutability": "nonpayable",
1087
1155
  "type": "function"
1088
1156
  },
1089
1157
  {
1090
1158
  "inputs": [
1091
- {
1092
- "internalType": "address[]",
1093
- "name": "_wallets",
1094
- "type": "address[]"
1095
- },
1096
1159
  {
1097
1160
  "internalType": "uint256[]",
1098
- "name": "_percentages",
1161
+ "name": "_unsoldTokens",
1099
1162
  "type": "uint256[]"
1100
1163
  }
1101
1164
  ],
1102
- "name": "setSplits",
1165
+ "name": "setRemainingTokensArray",
1103
1166
  "outputs": [],
1104
1167
  "stateMutability": "nonpayable",
1105
1168
  "type": "function"
1106
1169
  },
1107
1170
  {
1108
1171
  "inputs": [
1172
+ {
1173
+ "internalType": "address",
1174
+ "name": "_sanctionContract",
1175
+ "type": "address"
1176
+ },
1109
1177
  {
1110
1178
  "internalType": "bool",
1111
- "name": "_status",
1179
+ "name": "_applySanction",
1112
1180
  "type": "bool"
1113
1181
  }
1114
1182
  ],
1115
- "name": "setStakeingWhitelistStatus",
1183
+ "name": "setSanctions",
1116
1184
  "outputs": [],
1117
1185
  "stateMutability": "nonpayable",
1118
1186
  "type": "function"
@@ -1120,12 +1188,17 @@ export const PresaleV2_jsonAbi = [
1120
1188
  {
1121
1189
  "inputs": [
1122
1190
  {
1123
- "internalType": "address",
1124
- "name": "_stakingManagerAddress",
1125
- "type": "address"
1191
+ "internalType": "address[]",
1192
+ "name": "_wallets",
1193
+ "type": "address[]"
1194
+ },
1195
+ {
1196
+ "internalType": "uint256[]",
1197
+ "name": "_percentages",
1198
+ "type": "uint256[]"
1126
1199
  }
1127
1200
  ],
1128
- "name": "setStakingManager",
1201
+ "name": "setSplits",
1129
1202
  "outputs": [],
1130
1203
  "stateMutability": "nonpayable",
1131
1204
  "type": "function"
@@ -1133,12 +1206,12 @@ export const PresaleV2_jsonAbi = [
1133
1206
  {
1134
1207
  "inputs": [
1135
1208
  {
1136
- "internalType": "uint256",
1137
- "name": "_timeConstant",
1138
- "type": "uint256"
1209
+ "internalType": "bool",
1210
+ "name": "_status",
1211
+ "type": "bool"
1139
1212
  }
1140
1213
  ],
1141
- "name": "setTimeConstant",
1214
+ "name": "setStakeingWhitelistStatus",
1142
1215
  "outputs": [],
1143
1216
  "stateMutability": "nonpayable",
1144
1217
  "type": "function"
@@ -1146,12 +1219,12 @@ export const PresaleV2_jsonAbi = [
1146
1219
  {
1147
1220
  "inputs": [
1148
1221
  {
1149
- "internalType": "address",
1150
- "name": "_usdc",
1151
- "type": "address"
1222
+ "internalType": "uint256",
1223
+ "name": "_timeConstant",
1224
+ "type": "uint256"
1152
1225
  }
1153
1226
  ],
1154
- "name": "setUSDCInterface",
1227
+ "name": "setTimeConstant",
1155
1228
  "outputs": [],
1156
1229
  "stateMutability": "nonpayable",
1157
1230
  "type": "function"
@@ -1182,40 +1255,6 @@ export const PresaleV2_jsonAbi = [
1182
1255
  "stateMutability": "view",
1183
1256
  "type": "function"
1184
1257
  },
1185
- {
1186
- "inputs": [
1187
- {
1188
- "internalType": "uint256",
1189
- "name": "_claimStart",
1190
- "type": "uint256"
1191
- },
1192
- {
1193
- "internalType": "uint256",
1194
- "name": "noOfTokens",
1195
- "type": "uint256"
1196
- },
1197
- {
1198
- "internalType": "address",
1199
- "name": "_saleToken",
1200
- "type": "address"
1201
- },
1202
- {
1203
- "internalType": "address",
1204
- "name": "_stakingManagerAddress",
1205
- "type": "address"
1206
- }
1207
- ],
1208
- "name": "startClaim",
1209
- "outputs": [
1210
- {
1211
- "internalType": "bool",
1212
- "name": "",
1213
- "type": "bool"
1214
- }
1215
- ],
1216
- "stateMutability": "nonpayable",
1217
- "type": "function"
1218
- },
1219
1258
  {
1220
1259
  "inputs": [],
1221
1260
  "name": "startTime",
@@ -1242,19 +1281,6 @@ export const PresaleV2_jsonAbi = [
1242
1281
  "stateMutability": "view",
1243
1282
  "type": "function"
1244
1283
  },
1245
- {
1246
- "inputs": [
1247
- {
1248
- "internalType": "uint256",
1249
- "name": "amount",
1250
- "type": "uint256"
1251
- }
1252
- ],
1253
- "name": "tokenTransfer",
1254
- "outputs": [],
1255
- "stateMutability": "nonpayable",
1256
- "type": "function"
1257
- },
1258
1284
  {
1259
1285
  "inputs": [],
1260
1286
  "name": "totalBoughtAndStaked",
@@ -1463,19 +1489,19 @@ export const PresaleV2_jsonAbi = [
1463
1489
  ] as const satisfies Abi;
1464
1490
 
1465
1491
  /**
1466
- * Type-safe ABI for PresaleV2_json
1492
+ * Type-safe ABI for PresaleV3_json
1467
1493
  */
1468
- export type PresaleV2_jsonAbi = typeof PresaleV2_jsonAbi;
1494
+ export type PresaleV3_jsonAbi = typeof PresaleV3_jsonAbi;
1469
1495
 
1470
1496
  /**
1471
- * Contract instance type for PresaleV2_json
1497
+ * Contract instance type for PresaleV3_json
1472
1498
  */
1473
1499
  // Use any for contract type to avoid complex viem type issues
1474
1500
  // The runtime behavior is type-safe through viem's ABI typing
1475
- export type PresaleV2_jsonContract = any;
1501
+ export type PresaleV3_jsonContract = any;
1476
1502
 
1477
1503
  /**
1478
- * PresaleV2_json Contract Class
1504
+ * PresaleV3_json Contract Class
1479
1505
  *
1480
1506
  * Provides a class-based API similar to TypeChain for interacting with the contract.
1481
1507
  *
@@ -1483,12 +1509,12 @@ export type PresaleV2_jsonContract = any;
1483
1509
  * ```typescript
1484
1510
  * import { createPublicClient, createWalletClient, http } from 'viem';
1485
1511
  * import { mainnet } from 'viem/chains';
1486
- * import { PresaleV2_json } from 'PresaleV2_json';
1512
+ * import { PresaleV3_json } from 'PresaleV3_json';
1487
1513
  *
1488
1514
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1489
1515
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1490
1516
  *
1491
- * const contract = new PresaleV2_json('0x...', { publicClient, walletClient });
1517
+ * const contract = new PresaleV3_json('0x...', { publicClient, walletClient });
1492
1518
  *
1493
1519
  * // Read functions
1494
1520
  * const result = await contract.balanceOf('0x...');
@@ -1506,8 +1532,8 @@ export type PresaleV2_jsonContract = any;
1506
1532
  * });
1507
1533
  * ```
1508
1534
  */
1509
- export class PresaleV2_json {
1510
- private contract: PresaleV2_jsonContract;
1535
+ export class PresaleV3_json {
1536
+ private contract: PresaleV3_jsonContract;
1511
1537
  private contractAddress: Address;
1512
1538
  private publicClient: PublicClient;
1513
1539
 
@@ -1522,7 +1548,7 @@ export class PresaleV2_json {
1522
1548
  this.publicClient = clients.publicClient;
1523
1549
  this.contract = getContract({
1524
1550
  address,
1525
- abi: PresaleV2_jsonAbi,
1551
+ abi: PresaleV3_jsonAbi,
1526
1552
  client: {
1527
1553
  public: clients.publicClient,
1528
1554
  wallet: clients.walletClient,
@@ -1540,7 +1566,7 @@ export class PresaleV2_json {
1540
1566
  /**
1541
1567
  * Get the underlying viem contract instance
1542
1568
  */
1543
- getContract(): PresaleV2_jsonContract {
1569
+ getContract(): PresaleV3_jsonContract {
1544
1570
  return this.contract;
1545
1571
  }
1546
1572
 
@@ -1576,6 +1602,14 @@ export class PresaleV2_json {
1576
1602
  return this.contract.read.aggregatorInterface() as Promise<`0x${string}`>;
1577
1603
  }
1578
1604
 
1605
+ /**
1606
+ * applySanctions
1607
+ * view
1608
+ */
1609
+ async applySanctions(): Promise<boolean> {
1610
+ return this.contract.read.applySanctions() as Promise<boolean>;
1611
+ }
1612
+
1579
1613
  /**
1580
1614
  * baseDecimals
1581
1615
  * view
@@ -1680,6 +1714,14 @@ export class PresaleV2_json {
1680
1714
  return this.contract.read.maxTokensToBuy() as Promise<bigint>;
1681
1715
  }
1682
1716
 
1717
+ /**
1718
+ * nftToken
1719
+ * view
1720
+ */
1721
+ async nftToken(): Promise<`0x${string}`> {
1722
+ return this.contract.read.nftToken() as Promise<`0x${string}`>;
1723
+ }
1724
+
1683
1725
  /**
1684
1726
  * owner
1685
1727
  * view
@@ -1752,6 +1794,14 @@ export class PresaleV2_json {
1752
1794
  return this.contract.read.saleToken() as Promise<`0x${string}`>;
1753
1795
  }
1754
1796
 
1797
+ /**
1798
+ * sanctionsList
1799
+ * view
1800
+ */
1801
+ async sanctionsList(): Promise<`0x${string}`> {
1802
+ return this.contract.read.sanctionsList() as Promise<`0x${string}`>;
1803
+ }
1804
+
1755
1805
  /**
1756
1806
  * stakeingWhitelistStatus
1757
1807
  * view
@@ -1948,6 +1998,29 @@ export class PresaleV2_json {
1948
1998
  return this.contract.write.buyWithUSDC([amount, stake] as const, options) as Promise<`0x${string}`>;
1949
1999
  }
1950
2000
 
2001
+ /**
2002
+ * buyWithUSDCWERT
2003
+ * nonpayable
2004
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2005
+ */
2006
+ async buyWithUSDCWERT(_user: `0x${string}`, _amount: bigint, stake: boolean, options?: {
2007
+ accessList?: import('viem').AccessList;
2008
+ authorizationList?: import('viem').AuthorizationList;
2009
+ chain?: import('viem').Chain | null;
2010
+ dataSuffix?: `0x${string}`;
2011
+ gas?: bigint;
2012
+ gasPrice?: bigint;
2013
+ maxFeePerGas?: bigint;
2014
+ maxPriorityFeePerGas?: bigint;
2015
+ nonce?: number;
2016
+ value?: bigint;
2017
+ }): Promise<`0x${string}`> {
2018
+ if (!this.contract.write) {
2019
+ throw new Error('Wallet client is required for write operations');
2020
+ }
2021
+ return this.contract.write.buyWithUSDCWERT([_user, _amount, stake] as const, options) as Promise<`0x${string}`>;
2022
+ }
2023
+
1951
2024
  /**
1952
2025
  * buyWithUSDT
1953
2026
  * nonpayable
@@ -2363,11 +2436,11 @@ export class PresaleV2_json {
2363
2436
  }
2364
2437
 
2365
2438
  /**
2366
- * setRemainingTokensArray
2439
+ * setNFTToken
2367
2440
  * nonpayable
2368
2441
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2369
2442
  */
2370
- async setRemainingTokensArray(_unsoldTokens: bigint[], options?: {
2443
+ async setNFTToken(_nftToken: `0x${string}`, options?: {
2371
2444
  accessList?: import('viem').AccessList;
2372
2445
  authorizationList?: import('viem').AuthorizationList;
2373
2446
  chain?: import('viem').Chain | null;
@@ -2382,61 +2455,15 @@ export class PresaleV2_json {
2382
2455
  if (!this.contract.write) {
2383
2456
  throw new Error('Wallet client is required for write operations');
2384
2457
  }
2385
- return this.contract.write.setRemainingTokensArray([_unsoldTokens] as const, options) as Promise<`0x${string}`>;
2458
+ return this.contract.write.setNFTToken([_nftToken] as const, options) as Promise<`0x${string}`>;
2386
2459
  }
2387
2460
 
2388
2461
  /**
2389
- * setSplits
2390
- * nonpayable
2391
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2392
- */
2393
- async setSplits(_wallets: `0x${string}`[], _percentages: bigint[], options?: {
2394
- accessList?: import('viem').AccessList;
2395
- authorizationList?: import('viem').AuthorizationList;
2396
- chain?: import('viem').Chain | null;
2397
- dataSuffix?: `0x${string}`;
2398
- gas?: bigint;
2399
- gasPrice?: bigint;
2400
- maxFeePerGas?: bigint;
2401
- maxPriorityFeePerGas?: bigint;
2402
- nonce?: number;
2403
- value?: bigint;
2404
- }): Promise<`0x${string}`> {
2405
- if (!this.contract.write) {
2406
- throw new Error('Wallet client is required for write operations');
2407
- }
2408
- return this.contract.write.setSplits([_wallets, _percentages] as const, options) as Promise<`0x${string}`>;
2409
- }
2410
-
2411
- /**
2412
- * setStakeingWhitelistStatus
2413
- * nonpayable
2414
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2415
- */
2416
- async setStakeingWhitelistStatus(_status: boolean, options?: {
2417
- accessList?: import('viem').AccessList;
2418
- authorizationList?: import('viem').AuthorizationList;
2419
- chain?: import('viem').Chain | null;
2420
- dataSuffix?: `0x${string}`;
2421
- gas?: bigint;
2422
- gasPrice?: bigint;
2423
- maxFeePerGas?: bigint;
2424
- maxPriorityFeePerGas?: bigint;
2425
- nonce?: number;
2426
- value?: bigint;
2427
- }): Promise<`0x${string}`> {
2428
- if (!this.contract.write) {
2429
- throw new Error('Wallet client is required for write operations');
2430
- }
2431
- return this.contract.write.setStakeingWhitelistStatus([_status] as const, options) as Promise<`0x${string}`>;
2432
- }
2433
-
2434
- /**
2435
- * setStakingManager
2462
+ * setRemainingTokensArray
2436
2463
  * nonpayable
2437
2464
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2438
2465
  */
2439
- async setStakingManager(_stakingManagerAddress: `0x${string}`, options?: {
2466
+ async setRemainingTokensArray(_unsoldTokens: bigint[], options?: {
2440
2467
  accessList?: import('viem').AccessList;
2441
2468
  authorizationList?: import('viem').AuthorizationList;
2442
2469
  chain?: import('viem').Chain | null;
@@ -2451,15 +2478,15 @@ export class PresaleV2_json {
2451
2478
  if (!this.contract.write) {
2452
2479
  throw new Error('Wallet client is required for write operations');
2453
2480
  }
2454
- return this.contract.write.setStakingManager([_stakingManagerAddress] as const, options) as Promise<`0x${string}`>;
2481
+ return this.contract.write.setRemainingTokensArray([_unsoldTokens] as const, options) as Promise<`0x${string}`>;
2455
2482
  }
2456
2483
 
2457
2484
  /**
2458
- * setTimeConstant
2485
+ * setSanctions
2459
2486
  * nonpayable
2460
2487
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2461
2488
  */
2462
- async setTimeConstant(_timeConstant: bigint, options?: {
2489
+ async setSanctions(_sanctionContract: `0x${string}`, _applySanction: boolean, options?: {
2463
2490
  accessList?: import('viem').AccessList;
2464
2491
  authorizationList?: import('viem').AuthorizationList;
2465
2492
  chain?: import('viem').Chain | null;
@@ -2474,15 +2501,15 @@ export class PresaleV2_json {
2474
2501
  if (!this.contract.write) {
2475
2502
  throw new Error('Wallet client is required for write operations');
2476
2503
  }
2477
- return this.contract.write.setTimeConstant([_timeConstant] as const, options) as Promise<`0x${string}`>;
2504
+ return this.contract.write.setSanctions([_sanctionContract, _applySanction] as const, options) as Promise<`0x${string}`>;
2478
2505
  }
2479
2506
 
2480
2507
  /**
2481
- * setUSDCInterface
2508
+ * setSplits
2482
2509
  * nonpayable
2483
2510
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2484
2511
  */
2485
- async setUSDCInterface(_usdc: `0x${string}`, options?: {
2512
+ async setSplits(_wallets: `0x${string}`[], _percentages: bigint[], options?: {
2486
2513
  accessList?: import('viem').AccessList;
2487
2514
  authorizationList?: import('viem').AuthorizationList;
2488
2515
  chain?: import('viem').Chain | null;
@@ -2497,15 +2524,15 @@ export class PresaleV2_json {
2497
2524
  if (!this.contract.write) {
2498
2525
  throw new Error('Wallet client is required for write operations');
2499
2526
  }
2500
- return this.contract.write.setUSDCInterface([_usdc] as const, options) as Promise<`0x${string}`>;
2527
+ return this.contract.write.setSplits([_wallets, _percentages] as const, options) as Promise<`0x${string}`>;
2501
2528
  }
2502
2529
 
2503
2530
  /**
2504
- * startClaim
2531
+ * setStakeingWhitelistStatus
2505
2532
  * nonpayable
2506
2533
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2507
2534
  */
2508
- async startClaim(_claimStart: bigint, noOfTokens: bigint, _saleToken: `0x${string}`, _stakingManagerAddress: `0x${string}`, options?: {
2535
+ async setStakeingWhitelistStatus(_status: boolean, options?: {
2509
2536
  accessList?: import('viem').AccessList;
2510
2537
  authorizationList?: import('viem').AuthorizationList;
2511
2538
  chain?: import('viem').Chain | null;
@@ -2520,15 +2547,15 @@ export class PresaleV2_json {
2520
2547
  if (!this.contract.write) {
2521
2548
  throw new Error('Wallet client is required for write operations');
2522
2549
  }
2523
- return this.contract.write.startClaim([_claimStart, noOfTokens, _saleToken, _stakingManagerAddress] as const, options) as Promise<`0x${string}`>;
2550
+ return this.contract.write.setStakeingWhitelistStatus([_status] as const, options) as Promise<`0x${string}`>;
2524
2551
  }
2525
2552
 
2526
2553
  /**
2527
- * tokenTransfer
2554
+ * setTimeConstant
2528
2555
  * nonpayable
2529
2556
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2530
2557
  */
2531
- async tokenTransfer(amount: bigint, options?: {
2558
+ async setTimeConstant(_timeConstant: bigint, options?: {
2532
2559
  accessList?: import('viem').AccessList;
2533
2560
  authorizationList?: import('viem').AuthorizationList;
2534
2561
  chain?: import('viem').Chain | null;
@@ -2543,7 +2570,7 @@ export class PresaleV2_json {
2543
2570
  if (!this.contract.write) {
2544
2571
  throw new Error('Wallet client is required for write operations');
2545
2572
  }
2546
- return this.contract.write.tokenTransfer([amount] as const, options) as Promise<`0x${string}`>;
2573
+ return this.contract.write.setTimeConstant([_timeConstant] as const, options) as Promise<`0x${string}`>;
2547
2574
  }
2548
2575
 
2549
2576
  /**
@@ -2753,6 +2780,25 @@ export class PresaleV2_json {
2753
2780
  }): Promise<boolean> {
2754
2781
  return contract.simulate.buyWithUSDC([amount, stake] as const, options) as Promise<boolean>;
2755
2782
  },
2783
+ /**
2784
+ * Simulate buyWithUSDCWERT
2785
+ * Returns gas estimate and result without sending transaction
2786
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2787
+ */
2788
+ async buyWithUSDCWERT(_user: `0x${string}`, _amount: bigint, stake: boolean, options?: {
2789
+ accessList?: import('viem').AccessList;
2790
+ authorizationList?: import('viem').AuthorizationList;
2791
+ chain?: import('viem').Chain | null;
2792
+ dataSuffix?: `0x${string}`;
2793
+ gas?: bigint;
2794
+ gasPrice?: bigint;
2795
+ maxFeePerGas?: bigint;
2796
+ maxPriorityFeePerGas?: bigint;
2797
+ nonce?: number;
2798
+ value?: bigint;
2799
+ }): Promise<boolean> {
2800
+ return contract.simulate.buyWithUSDCWERT([_user, _amount, stake] as const, options) as Promise<boolean>;
2801
+ },
2756
2802
  /**
2757
2803
  * Simulate buyWithUSDT
2758
2804
  * Returns gas estimate and result without sending transaction
@@ -3096,30 +3142,11 @@ export class PresaleV2_json {
3096
3142
  return contract.simulate.setDynamicTimeFlag([_dynamicTimeFlag] as const, options) as Promise<void>;
3097
3143
  },
3098
3144
  /**
3099
- * Simulate setRemainingTokensArray
3100
- * Returns gas estimate and result without sending transaction
3101
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
3102
- */
3103
- async setRemainingTokensArray(_unsoldTokens: bigint[], options?: {
3104
- accessList?: import('viem').AccessList;
3105
- authorizationList?: import('viem').AuthorizationList;
3106
- chain?: import('viem').Chain | null;
3107
- dataSuffix?: `0x${string}`;
3108
- gas?: bigint;
3109
- gasPrice?: bigint;
3110
- maxFeePerGas?: bigint;
3111
- maxPriorityFeePerGas?: bigint;
3112
- nonce?: number;
3113
- value?: bigint;
3114
- }): Promise<void> {
3115
- return contract.simulate.setRemainingTokensArray([_unsoldTokens] as const, options) as Promise<void>;
3116
- },
3117
- /**
3118
- * Simulate setSplits
3145
+ * Simulate setNFTToken
3119
3146
  * Returns gas estimate and result without sending transaction
3120
3147
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3121
3148
  */
3122
- async setSplits(_wallets: `0x${string}`[], _percentages: bigint[], options?: {
3149
+ async setNFTToken(_nftToken: `0x${string}`, options?: {
3123
3150
  accessList?: import('viem').AccessList;
3124
3151
  authorizationList?: import('viem').AuthorizationList;
3125
3152
  chain?: import('viem').Chain | null;
@@ -3131,14 +3158,14 @@ export class PresaleV2_json {
3131
3158
  nonce?: number;
3132
3159
  value?: bigint;
3133
3160
  }): Promise<void> {
3134
- return contract.simulate.setSplits([_wallets, _percentages] as const, options) as Promise<void>;
3161
+ return contract.simulate.setNFTToken([_nftToken] as const, options) as Promise<void>;
3135
3162
  },
3136
3163
  /**
3137
- * Simulate setStakeingWhitelistStatus
3164
+ * Simulate setRemainingTokensArray
3138
3165
  * Returns gas estimate and result without sending transaction
3139
3166
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3140
3167
  */
3141
- async setStakeingWhitelistStatus(_status: boolean, options?: {
3168
+ async setRemainingTokensArray(_unsoldTokens: bigint[], options?: {
3142
3169
  accessList?: import('viem').AccessList;
3143
3170
  authorizationList?: import('viem').AuthorizationList;
3144
3171
  chain?: import('viem').Chain | null;
@@ -3150,14 +3177,14 @@ export class PresaleV2_json {
3150
3177
  nonce?: number;
3151
3178
  value?: bigint;
3152
3179
  }): Promise<void> {
3153
- return contract.simulate.setStakeingWhitelistStatus([_status] as const, options) as Promise<void>;
3180
+ return contract.simulate.setRemainingTokensArray([_unsoldTokens] as const, options) as Promise<void>;
3154
3181
  },
3155
3182
  /**
3156
- * Simulate setStakingManager
3183
+ * Simulate setSanctions
3157
3184
  * Returns gas estimate and result without sending transaction
3158
3185
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3159
3186
  */
3160
- async setStakingManager(_stakingManagerAddress: `0x${string}`, options?: {
3187
+ async setSanctions(_sanctionContract: `0x${string}`, _applySanction: boolean, options?: {
3161
3188
  accessList?: import('viem').AccessList;
3162
3189
  authorizationList?: import('viem').AuthorizationList;
3163
3190
  chain?: import('viem').Chain | null;
@@ -3169,14 +3196,14 @@ export class PresaleV2_json {
3169
3196
  nonce?: number;
3170
3197
  value?: bigint;
3171
3198
  }): Promise<void> {
3172
- return contract.simulate.setStakingManager([_stakingManagerAddress] as const, options) as Promise<void>;
3199
+ return contract.simulate.setSanctions([_sanctionContract, _applySanction] as const, options) as Promise<void>;
3173
3200
  },
3174
3201
  /**
3175
- * Simulate setTimeConstant
3202
+ * Simulate setSplits
3176
3203
  * Returns gas estimate and result without sending transaction
3177
3204
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3178
3205
  */
3179
- async setTimeConstant(_timeConstant: bigint, options?: {
3206
+ async setSplits(_wallets: `0x${string}`[], _percentages: bigint[], options?: {
3180
3207
  accessList?: import('viem').AccessList;
3181
3208
  authorizationList?: import('viem').AuthorizationList;
3182
3209
  chain?: import('viem').Chain | null;
@@ -3188,14 +3215,14 @@ export class PresaleV2_json {
3188
3215
  nonce?: number;
3189
3216
  value?: bigint;
3190
3217
  }): Promise<void> {
3191
- return contract.simulate.setTimeConstant([_timeConstant] as const, options) as Promise<void>;
3218
+ return contract.simulate.setSplits([_wallets, _percentages] as const, options) as Promise<void>;
3192
3219
  },
3193
3220
  /**
3194
- * Simulate setUSDCInterface
3221
+ * Simulate setStakeingWhitelistStatus
3195
3222
  * Returns gas estimate and result without sending transaction
3196
3223
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3197
3224
  */
3198
- async setUSDCInterface(_usdc: `0x${string}`, options?: {
3225
+ async setStakeingWhitelistStatus(_status: boolean, options?: {
3199
3226
  accessList?: import('viem').AccessList;
3200
3227
  authorizationList?: import('viem').AuthorizationList;
3201
3228
  chain?: import('viem').Chain | null;
@@ -3207,33 +3234,14 @@ export class PresaleV2_json {
3207
3234
  nonce?: number;
3208
3235
  value?: bigint;
3209
3236
  }): Promise<void> {
3210
- return contract.simulate.setUSDCInterface([_usdc] as const, options) as Promise<void>;
3211
- },
3212
- /**
3213
- * Simulate startClaim
3214
- * Returns gas estimate and result without sending transaction
3215
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
3216
- */
3217
- async startClaim(_claimStart: bigint, noOfTokens: bigint, _saleToken: `0x${string}`, _stakingManagerAddress: `0x${string}`, options?: {
3218
- accessList?: import('viem').AccessList;
3219
- authorizationList?: import('viem').AuthorizationList;
3220
- chain?: import('viem').Chain | null;
3221
- dataSuffix?: `0x${string}`;
3222
- gas?: bigint;
3223
- gasPrice?: bigint;
3224
- maxFeePerGas?: bigint;
3225
- maxPriorityFeePerGas?: bigint;
3226
- nonce?: number;
3227
- value?: bigint;
3228
- }): Promise<boolean> {
3229
- return contract.simulate.startClaim([_claimStart, noOfTokens, _saleToken, _stakingManagerAddress] as const, options) as Promise<boolean>;
3237
+ return contract.simulate.setStakeingWhitelistStatus([_status] as const, options) as Promise<void>;
3230
3238
  },
3231
3239
  /**
3232
- * Simulate tokenTransfer
3240
+ * Simulate setTimeConstant
3233
3241
  * Returns gas estimate and result without sending transaction
3234
3242
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3235
3243
  */
3236
- async tokenTransfer(amount: bigint, options?: {
3244
+ async setTimeConstant(_timeConstant: bigint, options?: {
3237
3245
  accessList?: import('viem').AccessList;
3238
3246
  authorizationList?: import('viem').AuthorizationList;
3239
3247
  chain?: import('viem').Chain | null;
@@ -3245,7 +3253,7 @@ export class PresaleV2_json {
3245
3253
  nonce?: number;
3246
3254
  value?: bigint;
3247
3255
  }): Promise<void> {
3248
- return contract.simulate.tokenTransfer([amount] as const, options) as Promise<void>;
3256
+ return contract.simulate.setTimeConstant([_timeConstant] as const, options) as Promise<void>;
3249
3257
  },
3250
3258
  /**
3251
3259
  * Simulate transferOwnership
@@ -3368,7 +3376,7 @@ export class PresaleV2_json {
3368
3376
  ClaimStartUpdated: (callback: (event: { prevValue: bigint; newValue: bigint; timestamp: bigint }) => void) => {
3369
3377
  return this.publicClient.watchContractEvent({
3370
3378
  address: this.contractAddress,
3371
- abi: PresaleV2_jsonAbi,
3379
+ abi: PresaleV3_jsonAbi,
3372
3380
  eventName: 'ClaimStartUpdated',
3373
3381
 
3374
3382
  onLogs: (logs: any[]) => {
@@ -3387,7 +3395,7 @@ export class PresaleV2_json {
3387
3395
  Initialized: (callback: (event: { version: bigint }) => void) => {
3388
3396
  return this.publicClient.watchContractEvent({
3389
3397
  address: this.contractAddress,
3390
- abi: PresaleV2_jsonAbi,
3398
+ abi: PresaleV3_jsonAbi,
3391
3399
  eventName: 'Initialized',
3392
3400
 
3393
3401
  onLogs: (logs: any[]) => {
@@ -3406,7 +3414,7 @@ export class PresaleV2_json {
3406
3414
  MaxTokensUpdated: (callback: (event: { prevValue: bigint; newValue: bigint; timestamp: bigint }) => void) => {
3407
3415
  return this.publicClient.watchContractEvent({
3408
3416
  address: this.contractAddress,
3409
- abi: PresaleV2_jsonAbi,
3417
+ abi: PresaleV3_jsonAbi,
3410
3418
  eventName: 'MaxTokensUpdated',
3411
3419
 
3412
3420
  onLogs: (logs: any[]) => {
@@ -3425,7 +3433,7 @@ export class PresaleV2_json {
3425
3433
  OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
3426
3434
  return this.publicClient.watchContractEvent({
3427
3435
  address: this.contractAddress,
3428
- abi: PresaleV2_jsonAbi,
3436
+ abi: PresaleV3_jsonAbi,
3429
3437
  eventName: 'OwnershipTransferred',
3430
3438
  args: filter,
3431
3439
  onLogs: (logs: any[]) => {
@@ -3444,7 +3452,7 @@ export class PresaleV2_json {
3444
3452
  Paused: (callback: (event: { account: `0x${string}` }) => void) => {
3445
3453
  return this.publicClient.watchContractEvent({
3446
3454
  address: this.contractAddress,
3447
- abi: PresaleV2_jsonAbi,
3455
+ abi: PresaleV3_jsonAbi,
3448
3456
  eventName: 'Paused',
3449
3457
 
3450
3458
  onLogs: (logs: any[]) => {
@@ -3463,7 +3471,7 @@ export class PresaleV2_json {
3463
3471
  SaleTimeSet: (callback: (event: { _start: bigint; _end: bigint; timestamp: bigint }) => void) => {
3464
3472
  return this.publicClient.watchContractEvent({
3465
3473
  address: this.contractAddress,
3466
- abi: PresaleV2_jsonAbi,
3474
+ abi: PresaleV3_jsonAbi,
3467
3475
  eventName: 'SaleTimeSet',
3468
3476
 
3469
3477
  onLogs: (logs: any[]) => {
@@ -3482,7 +3490,7 @@ export class PresaleV2_json {
3482
3490
  SaleTimeUpdated: (callback: (event: { key: `0x${string}`; prevValue: bigint; newValue: bigint; timestamp: bigint }) => void, filter?: { key: `0x${string}` }) => {
3483
3491
  return this.publicClient.watchContractEvent({
3484
3492
  address: this.contractAddress,
3485
- abi: PresaleV2_jsonAbi,
3493
+ abi: PresaleV3_jsonAbi,
3486
3494
  eventName: 'SaleTimeUpdated',
3487
3495
  args: filter,
3488
3496
  onLogs: (logs: any[]) => {
@@ -3501,7 +3509,7 @@ export class PresaleV2_json {
3501
3509
  TokensAdded: (callback: (event: { token: `0x${string}`; noOfTokens: bigint; timestamp: bigint }) => void, filter?: { token: `0x${string}` }) => {
3502
3510
  return this.publicClient.watchContractEvent({
3503
3511
  address: this.contractAddress,
3504
- abi: PresaleV2_jsonAbi,
3512
+ abi: PresaleV3_jsonAbi,
3505
3513
  eventName: 'TokensAdded',
3506
3514
  args: filter,
3507
3515
  onLogs: (logs: any[]) => {
@@ -3520,7 +3528,7 @@ export class PresaleV2_json {
3520
3528
  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
3529
  return this.publicClient.watchContractEvent({
3522
3530
  address: this.contractAddress,
3523
- abi: PresaleV2_jsonAbi,
3531
+ abi: PresaleV3_jsonAbi,
3524
3532
  eventName: 'TokensBought',
3525
3533
  args: filter,
3526
3534
  onLogs: (logs: any[]) => {
@@ -3539,7 +3547,7 @@ export class PresaleV2_json {
3539
3547
  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
3548
  return this.publicClient.watchContractEvent({
3541
3549
  address: this.contractAddress,
3542
- abi: PresaleV2_jsonAbi,
3550
+ abi: PresaleV3_jsonAbi,
3543
3551
  eventName: 'TokensBoughtAndStaked',
3544
3552
  args: filter,
3545
3553
  onLogs: (logs: any[]) => {
@@ -3558,7 +3566,7 @@ export class PresaleV2_json {
3558
3566
  TokensClaimed: (callback: (event: { user: `0x${string}`; amount: bigint; timestamp: bigint }) => void, filter?: { user: `0x${string}` }) => {
3559
3567
  return this.publicClient.watchContractEvent({
3560
3568
  address: this.contractAddress,
3561
- abi: PresaleV2_jsonAbi,
3569
+ abi: PresaleV3_jsonAbi,
3562
3570
  eventName: 'TokensClaimed',
3563
3571
  args: filter,
3564
3572
  onLogs: (logs: any[]) => {
@@ -3577,7 +3585,7 @@ export class PresaleV2_json {
3577
3585
  TokensClaimedAndStaked: (callback: (event: { user: `0x${string}`; amount: bigint; timestamp: bigint }) => void, filter?: { user: `0x${string}` }) => {
3578
3586
  return this.publicClient.watchContractEvent({
3579
3587
  address: this.contractAddress,
3580
- abi: PresaleV2_jsonAbi,
3588
+ abi: PresaleV3_jsonAbi,
3581
3589
  eventName: 'TokensClaimedAndStaked',
3582
3590
  args: filter,
3583
3591
  onLogs: (logs: any[]) => {
@@ -3596,7 +3604,7 @@ export class PresaleV2_json {
3596
3604
  Unpaused: (callback: (event: { account: `0x${string}` }) => void) => {
3597
3605
  return this.publicClient.watchContractEvent({
3598
3606
  address: this.contractAddress,
3599
- abi: PresaleV2_jsonAbi,
3607
+ abi: PresaleV3_jsonAbi,
3600
3608
  eventName: 'Unpaused',
3601
3609
 
3602
3610
  onLogs: (logs: any[]) => {