@gitmyabi/presale 1.0.5 → 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-da9c657d-1786685690556`
5
+ - **Build ID**: `etherscan-presale-b89d2fcb-1787482454171`
6
6
  - **Build Number**: 1
7
- - **Commit**: `2e32123`
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.5
15
+ npm install @gitmyabi/presale@1.0.6
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -268,6 +268,16 @@ export declare const PresaleV1_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";
271
281
  }, {
272
282
  readonly inputs: readonly [];
273
283
  readonly name: "USDTInterface";
@@ -298,6 +308,16 @@ export declare const PresaleV1_jsonAbi: readonly [{
298
308
  }];
299
309
  readonly stateMutability: "view";
300
310
  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";
301
321
  }, {
302
322
  readonly inputs: readonly [];
303
323
  readonly name: "baseDecimals";
@@ -358,6 +378,24 @@ export declare const PresaleV1_jsonAbi: readonly [{
358
378
  }];
359
379
  readonly stateMutability: "payable";
360
380
  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";
361
399
  }, {
362
400
  readonly inputs: readonly [{
363
401
  readonly internalType: "uint256";
@@ -571,6 +609,10 @@ export declare const PresaleV1_jsonAbi: readonly [{
571
609
  readonly internalType: "address";
572
610
  readonly name: "_usdt";
573
611
  readonly type: "address";
612
+ }, {
613
+ readonly internalType: "address";
614
+ readonly name: "_usdc";
615
+ readonly type: "address";
574
616
  }, {
575
617
  readonly internalType: "uint256";
576
618
  readonly name: "_startTime";
@@ -798,6 +840,16 @@ export declare const PresaleV1_jsonAbi: readonly [{
798
840
  }];
799
841
  readonly stateMutability: "view";
800
842
  readonly type: "function";
843
+ }, {
844
+ readonly inputs: readonly [];
845
+ readonly name: "sanctionsList";
846
+ readonly outputs: readonly [{
847
+ readonly internalType: "contract ISanctionsList";
848
+ readonly name: "";
849
+ readonly type: "address";
850
+ }];
851
+ readonly stateMutability: "view";
852
+ readonly type: "function";
801
853
  }, {
802
854
  readonly inputs: readonly [{
803
855
  readonly internalType: "address";
@@ -852,6 +904,20 @@ export declare const PresaleV1_jsonAbi: readonly [{
852
904
  readonly outputs: readonly [];
853
905
  readonly stateMutability: "nonpayable";
854
906
  readonly type: "function";
907
+ }, {
908
+ readonly inputs: readonly [{
909
+ readonly internalType: "address";
910
+ readonly name: "_sanctionContract";
911
+ readonly type: "address";
912
+ }, {
913
+ readonly internalType: "bool";
914
+ readonly name: "_applySanction";
915
+ readonly type: "bool";
916
+ }];
917
+ readonly name: "setSanctions";
918
+ readonly outputs: readonly [];
919
+ readonly stateMutability: "nonpayable";
920
+ readonly type: "function";
855
921
  }, {
856
922
  readonly inputs: readonly [{
857
923
  readonly internalType: "address[]";
@@ -1175,6 +1241,11 @@ export declare class PresaleV1_json {
1175
1241
  * Get the underlying viem contract instance
1176
1242
  */
1177
1243
  getContract(): PresaleV1_jsonContract;
1244
+ /**
1245
+ * USDCInterface
1246
+ * view
1247
+ */
1248
+ USDCInterface(): Promise<`0x${string}`>;
1178
1249
  /**
1179
1250
  * USDTInterface
1180
1251
  * view
@@ -1190,6 +1261,11 @@ export declare class PresaleV1_json {
1190
1261
  * view
1191
1262
  */
1192
1263
  aggregatorInterface(): Promise<`0x${string}`>;
1264
+ /**
1265
+ * applySanctions
1266
+ * view
1267
+ */
1268
+ applySanctions(): Promise<boolean>;
1193
1269
  /**
1194
1270
  * baseDecimals
1195
1271
  * view
@@ -1300,6 +1376,11 @@ export declare class PresaleV1_json {
1300
1376
  * view
1301
1377
  */
1302
1378
  saleToken(): Promise<`0x${string}`>;
1379
+ /**
1380
+ * sanctionsList
1381
+ * view
1382
+ */
1383
+ sanctionsList(): Promise<`0x${string}`>;
1303
1384
  /**
1304
1385
  * stakeingWhitelistStatus
1305
1386
  * view
@@ -1416,6 +1497,23 @@ export declare class PresaleV1_json {
1416
1497
  nonce?: number;
1417
1498
  value?: bigint;
1418
1499
  }): 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}`>;
1419
1517
  /**
1420
1518
  * buyWithUSDT
1421
1519
  * nonpayable
@@ -1574,7 +1672,7 @@ export declare class PresaleV1_json {
1574
1672
  * nonpayable
1575
1673
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1576
1674
  */
1577
- initialize(_oracle: `0x${string}`, _usdt: `0x${string}`, _startTime: bigint, _endTime: bigint, _rounds: bigint[][], _maxTokensToBuy: bigint, _paymentWallet: `0x${string}`, _dynamicTimeFlag: boolean, _timeConstant: bigint, options?: {
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?: {
1578
1676
  accessList?: import('viem').AccessList;
1579
1677
  authorizationList?: import('viem').AuthorizationList;
1580
1678
  chain?: import('viem').Chain | null;
@@ -1756,6 +1854,23 @@ export declare class PresaleV1_json {
1756
1854
  nonce?: number;
1757
1855
  value?: bigint;
1758
1856
  }): Promise<`0x${string}`>;
1857
+ /**
1858
+ * setSanctions
1859
+ * nonpayable
1860
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1861
+ */
1862
+ setSanctions(_sanctionContract: `0x${string}`, _applySanction: boolean, 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}`>;
1759
1874
  /**
1760
1875
  * setSplits
1761
1876
  * nonpayable
@@ -1986,6 +2101,23 @@ export declare class PresaleV1_json {
1986
2101
  nonce?: number;
1987
2102
  value?: bigint;
1988
2103
  }): Promise<boolean>;
2104
+ /**
2105
+ * Simulate buyWithUSDC
2106
+ * Returns gas estimate and result without sending transaction
2107
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2108
+ */
2109
+ buyWithUSDC(amount: bigint, stake: boolean, options?: {
2110
+ accessList?: import("viem").AccessList;
2111
+ authorizationList?: import("viem").AuthorizationList;
2112
+ chain?: import("viem").Chain | null;
2113
+ dataSuffix?: `0x${string}`;
2114
+ gas?: bigint;
2115
+ gasPrice?: bigint;
2116
+ maxFeePerGas?: bigint;
2117
+ maxPriorityFeePerGas?: bigint;
2118
+ nonce?: number;
2119
+ value?: bigint;
2120
+ }): Promise<boolean>;
1989
2121
  /**
1990
2122
  * Simulate buyWithUSDT
1991
2123
  * Returns gas estimate and result without sending transaction
@@ -2144,7 +2276,7 @@ export declare class PresaleV1_json {
2144
2276
  * Returns gas estimate and result without sending transaction
2145
2277
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2146
2278
  */
2147
- initialize(_oracle: `0x${string}`, _usdt: `0x${string}`, _startTime: bigint, _endTime: bigint, _rounds: bigint[][], _maxTokensToBuy: bigint, _paymentWallet: `0x${string}`, _dynamicTimeFlag: boolean, _timeConstant: bigint, options?: {
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?: {
2148
2280
  accessList?: import("viem").AccessList;
2149
2281
  authorizationList?: import("viem").AuthorizationList;
2150
2282
  chain?: import("viem").Chain | null;
@@ -2326,6 +2458,23 @@ export declare class PresaleV1_json {
2326
2458
  nonce?: number;
2327
2459
  value?: bigint;
2328
2460
  }): Promise<void>;
2461
+ /**
2462
+ * Simulate setSanctions
2463
+ * Returns gas estimate and result without sending transaction
2464
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2465
+ */
2466
+ setSanctions(_sanctionContract: `0x${string}`, _applySanction: boolean, options?: {
2467
+ accessList?: import("viem").AccessList;
2468
+ authorizationList?: import("viem").AuthorizationList;
2469
+ chain?: import("viem").Chain | null;
2470
+ dataSuffix?: `0x${string}`;
2471
+ gas?: bigint;
2472
+ gasPrice?: bigint;
2473
+ maxFeePerGas?: bigint;
2474
+ maxPriorityFeePerGas?: bigint;
2475
+ nonce?: number;
2476
+ value?: bigint;
2477
+ }): Promise<void>;
2329
2478
  /**
2330
2479
  * Simulate setSplits
2331
2480
  * Returns gas estimate and result without sending transaction
@@ -338,6 +338,19 @@ exports.PresaleV1_jsonAbi = [
338
338
  "name": "Unpaused",
339
339
  "type": "event"
340
340
  },
341
+ {
342
+ "inputs": [],
343
+ "name": "USDCInterface",
344
+ "outputs": [
345
+ {
346
+ "internalType": "contract IERC20Upgradeable",
347
+ "name": "",
348
+ "type": "address"
349
+ }
350
+ ],
351
+ "stateMutability": "view",
352
+ "type": "function"
353
+ },
341
354
  {
342
355
  "inputs": [],
343
356
  "name": "USDTInterface",
@@ -377,6 +390,19 @@ exports.PresaleV1_jsonAbi = [
377
390
  "stateMutability": "view",
378
391
  "type": "function"
379
392
  },
393
+ {
394
+ "inputs": [],
395
+ "name": "applySanctions",
396
+ "outputs": [
397
+ {
398
+ "internalType": "bool",
399
+ "name": "",
400
+ "type": "bool"
401
+ }
402
+ ],
403
+ "stateMutability": "view",
404
+ "type": "function"
405
+ },
380
406
  {
381
407
  "inputs": [],
382
408
  "name": "baseDecimals",
@@ -456,6 +482,30 @@ exports.PresaleV1_jsonAbi = [
456
482
  "stateMutability": "payable",
457
483
  "type": "function"
458
484
  },
485
+ {
486
+ "inputs": [
487
+ {
488
+ "internalType": "uint256",
489
+ "name": "amount",
490
+ "type": "uint256"
491
+ },
492
+ {
493
+ "internalType": "bool",
494
+ "name": "stake",
495
+ "type": "bool"
496
+ }
497
+ ],
498
+ "name": "buyWithUSDC",
499
+ "outputs": [
500
+ {
501
+ "internalType": "bool",
502
+ "name": "",
503
+ "type": "bool"
504
+ }
505
+ ],
506
+ "stateMutability": "nonpayable",
507
+ "type": "function"
508
+ },
459
509
  {
460
510
  "inputs": [
461
511
  {
@@ -736,6 +786,11 @@ exports.PresaleV1_jsonAbi = [
736
786
  "name": "_usdt",
737
787
  "type": "address"
738
788
  },
789
+ {
790
+ "internalType": "address",
791
+ "name": "_usdc",
792
+ "type": "address"
793
+ },
739
794
  {
740
795
  "internalType": "uint256",
741
796
  "name": "_startTime",
@@ -1033,6 +1088,19 @@ exports.PresaleV1_jsonAbi = [
1033
1088
  "stateMutability": "view",
1034
1089
  "type": "function"
1035
1090
  },
1091
+ {
1092
+ "inputs": [],
1093
+ "name": "sanctionsList",
1094
+ "outputs": [
1095
+ {
1096
+ "internalType": "contract ISanctionsList",
1097
+ "name": "",
1098
+ "type": "address"
1099
+ }
1100
+ ],
1101
+ "stateMutability": "view",
1102
+ "type": "function"
1103
+ },
1036
1104
  {
1037
1105
  "inputs": [
1038
1106
  {
@@ -1103,6 +1171,24 @@ exports.PresaleV1_jsonAbi = [
1103
1171
  "stateMutability": "nonpayable",
1104
1172
  "type": "function"
1105
1173
  },
1174
+ {
1175
+ "inputs": [
1176
+ {
1177
+ "internalType": "address",
1178
+ "name": "_sanctionContract",
1179
+ "type": "address"
1180
+ },
1181
+ {
1182
+ "internalType": "bool",
1183
+ "name": "_applySanction",
1184
+ "type": "bool"
1185
+ }
1186
+ ],
1187
+ "name": "setSanctions",
1188
+ "outputs": [],
1189
+ "stateMutability": "nonpayable",
1190
+ "type": "function"
1191
+ },
1106
1192
  {
1107
1193
  "inputs": [
1108
1194
  {
@@ -1509,6 +1595,13 @@ class PresaleV1_json {
1509
1595
  getContract() {
1510
1596
  return this.contract;
1511
1597
  }
1598
+ /**
1599
+ * USDCInterface
1600
+ * view
1601
+ */
1602
+ async USDCInterface() {
1603
+ return this.contract.read.USDCInterface();
1604
+ }
1512
1605
  /**
1513
1606
  * USDTInterface
1514
1607
  * view
@@ -1530,6 +1623,13 @@ class PresaleV1_json {
1530
1623
  async aggregatorInterface() {
1531
1624
  return this.contract.read.aggregatorInterface();
1532
1625
  }
1626
+ /**
1627
+ * applySanctions
1628
+ * view
1629
+ */
1630
+ async applySanctions() {
1631
+ return this.contract.read.applySanctions();
1632
+ }
1533
1633
  /**
1534
1634
  * baseDecimals
1535
1635
  * view
@@ -1684,6 +1784,13 @@ class PresaleV1_json {
1684
1784
  async saleToken() {
1685
1785
  return this.contract.read.saleToken();
1686
1786
  }
1787
+ /**
1788
+ * sanctionsList
1789
+ * view
1790
+ */
1791
+ async sanctionsList() {
1792
+ return this.contract.read.sanctionsList();
1793
+ }
1687
1794
  /**
1688
1795
  * stakeingWhitelistStatus
1689
1796
  * view
@@ -1808,6 +1915,17 @@ class PresaleV1_json {
1808
1915
  }
1809
1916
  return this.contract.write.buyWithEth([amount, stake], options);
1810
1917
  }
1918
+ /**
1919
+ * buyWithUSDC
1920
+ * nonpayable
1921
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1922
+ */
1923
+ async buyWithUSDC(amount, stake, options) {
1924
+ if (!this.contract.write) {
1925
+ throw new Error('Wallet client is required for write operations');
1926
+ }
1927
+ return this.contract.write.buyWithUSDC([amount, stake], options);
1928
+ }
1811
1929
  /**
1812
1930
  * buyWithUSDT
1813
1931
  * nonpayable
@@ -1912,11 +2030,11 @@ class PresaleV1_json {
1912
2030
  * nonpayable
1913
2031
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1914
2032
  */
1915
- async initialize(_oracle, _usdt, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant, options) {
2033
+ async initialize(_oracle, _usdt, _usdc, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant, options) {
1916
2034
  if (!this.contract.write) {
1917
2035
  throw new Error('Wallet client is required for write operations');
1918
2036
  }
1919
- return this.contract.write.initialize([_oracle, _usdt, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant], options);
2037
+ return this.contract.write.initialize([_oracle, _usdt, _usdc, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant], options);
1920
2038
  }
1921
2039
  /**
1922
2040
  * pause
@@ -2028,6 +2146,17 @@ class PresaleV1_json {
2028
2146
  }
2029
2147
  return this.contract.write.setRemainingTokensArray([_unsoldTokens], options);
2030
2148
  }
2149
+ /**
2150
+ * setSanctions
2151
+ * nonpayable
2152
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2153
+ */
2154
+ async setSanctions(_sanctionContract, _applySanction, options) {
2155
+ if (!this.contract.write) {
2156
+ throw new Error('Wallet client is required for write operations');
2157
+ }
2158
+ return this.contract.write.setSanctions([_sanctionContract, _applySanction], options);
2159
+ }
2031
2160
  /**
2032
2161
  * setSplits
2033
2162
  * nonpayable
@@ -2176,6 +2305,14 @@ class PresaleV1_json {
2176
2305
  async buyWithEth(amount, stake, options) {
2177
2306
  return contract.simulate.buyWithEth([amount, stake], options);
2178
2307
  },
2308
+ /**
2309
+ * Simulate buyWithUSDC
2310
+ * Returns gas estimate and result without sending transaction
2311
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2312
+ */
2313
+ async buyWithUSDC(amount, stake, options) {
2314
+ return contract.simulate.buyWithUSDC([amount, stake], options);
2315
+ },
2179
2316
  /**
2180
2317
  * Simulate buyWithUSDT
2181
2318
  * Returns gas estimate and result without sending transaction
@@ -2253,8 +2390,8 @@ class PresaleV1_json {
2253
2390
  * Returns gas estimate and result without sending transaction
2254
2391
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2255
2392
  */
2256
- async initialize(_oracle, _usdt, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant, options) {
2257
- return contract.simulate.initialize([_oracle, _usdt, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant], options);
2393
+ async initialize(_oracle, _usdt, _usdc, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant, options) {
2394
+ return contract.simulate.initialize([_oracle, _usdt, _usdc, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant], options);
2258
2395
  },
2259
2396
  /**
2260
2397
  * Simulate pause
@@ -2336,6 +2473,14 @@ class PresaleV1_json {
2336
2473
  async setRemainingTokensArray(_unsoldTokens, options) {
2337
2474
  return contract.simulate.setRemainingTokensArray([_unsoldTokens], options);
2338
2475
  },
2476
+ /**
2477
+ * Simulate setSanctions
2478
+ * Returns gas estimate and result without sending transaction
2479
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2480
+ */
2481
+ async setSanctions(_sanctionContract, _applySanction, options) {
2482
+ return contract.simulate.setSanctions([_sanctionContract, _applySanction], options);
2483
+ },
2339
2484
  /**
2340
2485
  * Simulate setSplits
2341
2486
  * Returns gas estimate and result without sending transaction
@@ -337,6 +337,19 @@ export const PresaleV1_jsonAbi = [
337
337
  "name": "Unpaused",
338
338
  "type": "event"
339
339
  },
340
+ {
341
+ "inputs": [],
342
+ "name": "USDCInterface",
343
+ "outputs": [
344
+ {
345
+ "internalType": "contract IERC20Upgradeable",
346
+ "name": "",
347
+ "type": "address"
348
+ }
349
+ ],
350
+ "stateMutability": "view",
351
+ "type": "function"
352
+ },
340
353
  {
341
354
  "inputs": [],
342
355
  "name": "USDTInterface",
@@ -376,6 +389,19 @@ export const PresaleV1_jsonAbi = [
376
389
  "stateMutability": "view",
377
390
  "type": "function"
378
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
+ },
379
405
  {
380
406
  "inputs": [],
381
407
  "name": "baseDecimals",
@@ -455,6 +481,30 @@ export const PresaleV1_jsonAbi = [
455
481
  "stateMutability": "payable",
456
482
  "type": "function"
457
483
  },
484
+ {
485
+ "inputs": [
486
+ {
487
+ "internalType": "uint256",
488
+ "name": "amount",
489
+ "type": "uint256"
490
+ },
491
+ {
492
+ "internalType": "bool",
493
+ "name": "stake",
494
+ "type": "bool"
495
+ }
496
+ ],
497
+ "name": "buyWithUSDC",
498
+ "outputs": [
499
+ {
500
+ "internalType": "bool",
501
+ "name": "",
502
+ "type": "bool"
503
+ }
504
+ ],
505
+ "stateMutability": "nonpayable",
506
+ "type": "function"
507
+ },
458
508
  {
459
509
  "inputs": [
460
510
  {
@@ -735,6 +785,11 @@ export const PresaleV1_jsonAbi = [
735
785
  "name": "_usdt",
736
786
  "type": "address"
737
787
  },
788
+ {
789
+ "internalType": "address",
790
+ "name": "_usdc",
791
+ "type": "address"
792
+ },
738
793
  {
739
794
  "internalType": "uint256",
740
795
  "name": "_startTime",
@@ -1032,6 +1087,19 @@ export const PresaleV1_jsonAbi = [
1032
1087
  "stateMutability": "view",
1033
1088
  "type": "function"
1034
1089
  },
1090
+ {
1091
+ "inputs": [],
1092
+ "name": "sanctionsList",
1093
+ "outputs": [
1094
+ {
1095
+ "internalType": "contract ISanctionsList",
1096
+ "name": "",
1097
+ "type": "address"
1098
+ }
1099
+ ],
1100
+ "stateMutability": "view",
1101
+ "type": "function"
1102
+ },
1035
1103
  {
1036
1104
  "inputs": [
1037
1105
  {
@@ -1102,6 +1170,24 @@ export const PresaleV1_jsonAbi = [
1102
1170
  "stateMutability": "nonpayable",
1103
1171
  "type": "function"
1104
1172
  },
1173
+ {
1174
+ "inputs": [
1175
+ {
1176
+ "internalType": "address",
1177
+ "name": "_sanctionContract",
1178
+ "type": "address"
1179
+ },
1180
+ {
1181
+ "internalType": "bool",
1182
+ "name": "_applySanction",
1183
+ "type": "bool"
1184
+ }
1185
+ ],
1186
+ "name": "setSanctions",
1187
+ "outputs": [],
1188
+ "stateMutability": "nonpayable",
1189
+ "type": "function"
1190
+ },
1105
1191
  {
1106
1192
  "inputs": [
1107
1193
  {
@@ -1534,6 +1620,14 @@ export class PresaleV1_json {
1534
1620
  return this.contract;
1535
1621
  }
1536
1622
 
1623
+ /**
1624
+ * USDCInterface
1625
+ * view
1626
+ */
1627
+ async USDCInterface(): Promise<`0x${string}`> {
1628
+ return this.contract.read.USDCInterface() as Promise<`0x${string}`>;
1629
+ }
1630
+
1537
1631
  /**
1538
1632
  * USDTInterface
1539
1633
  * view
@@ -1558,6 +1652,14 @@ export class PresaleV1_json {
1558
1652
  return this.contract.read.aggregatorInterface() as Promise<`0x${string}`>;
1559
1653
  }
1560
1654
 
1655
+ /**
1656
+ * applySanctions
1657
+ * view
1658
+ */
1659
+ async applySanctions(): Promise<boolean> {
1660
+ return this.contract.read.applySanctions() as Promise<boolean>;
1661
+ }
1662
+
1561
1663
  /**
1562
1664
  * baseDecimals
1563
1665
  * view
@@ -1734,6 +1836,14 @@ export class PresaleV1_json {
1734
1836
  return this.contract.read.saleToken() as Promise<`0x${string}`>;
1735
1837
  }
1736
1838
 
1839
+ /**
1840
+ * sanctionsList
1841
+ * view
1842
+ */
1843
+ async sanctionsList(): Promise<`0x${string}`> {
1844
+ return this.contract.read.sanctionsList() as Promise<`0x${string}`>;
1845
+ }
1846
+
1737
1847
  /**
1738
1848
  * stakeingWhitelistStatus
1739
1849
  * view
@@ -1907,6 +2017,29 @@ export class PresaleV1_json {
1907
2017
  return this.contract.write.buyWithEth([amount, stake] as const, options) as Promise<`0x${string}`>;
1908
2018
  }
1909
2019
 
2020
+ /**
2021
+ * buyWithUSDC
2022
+ * nonpayable
2023
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2024
+ */
2025
+ async buyWithUSDC(amount: bigint, stake: boolean, options?: {
2026
+ accessList?: import('viem').AccessList;
2027
+ authorizationList?: import('viem').AuthorizationList;
2028
+ chain?: import('viem').Chain | null;
2029
+ dataSuffix?: `0x${string}`;
2030
+ gas?: bigint;
2031
+ gasPrice?: bigint;
2032
+ maxFeePerGas?: bigint;
2033
+ maxPriorityFeePerGas?: bigint;
2034
+ nonce?: number;
2035
+ value?: bigint;
2036
+ }): Promise<`0x${string}`> {
2037
+ if (!this.contract.write) {
2038
+ throw new Error('Wallet client is required for write operations');
2039
+ }
2040
+ return this.contract.write.buyWithUSDC([amount, stake] as const, options) as Promise<`0x${string}`>;
2041
+ }
2042
+
1910
2043
  /**
1911
2044
  * buyWithUSDT
1912
2045
  * nonpayable
@@ -2119,7 +2252,7 @@ export class PresaleV1_json {
2119
2252
  * nonpayable
2120
2253
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2121
2254
  */
2122
- async initialize(_oracle: `0x${string}`, _usdt: `0x${string}`, _startTime: bigint, _endTime: bigint, _rounds: bigint[][], _maxTokensToBuy: bigint, _paymentWallet: `0x${string}`, _dynamicTimeFlag: boolean, _timeConstant: bigint, options?: {
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?: {
2123
2256
  accessList?: import('viem').AccessList;
2124
2257
  authorizationList?: import('viem').AuthorizationList;
2125
2258
  chain?: import('viem').Chain | null;
@@ -2134,7 +2267,7 @@ export class PresaleV1_json {
2134
2267
  if (!this.contract.write) {
2135
2268
  throw new Error('Wallet client is required for write operations');
2136
2269
  }
2137
- return this.contract.write.initialize([_oracle, _usdt, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant] as const, options) as Promise<`0x${string}`>;
2270
+ return this.contract.write.initialize([_oracle, _usdt, _usdc, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant] as const, options) as Promise<`0x${string}`>;
2138
2271
  }
2139
2272
 
2140
2273
  /**
@@ -2367,6 +2500,29 @@ export class PresaleV1_json {
2367
2500
  return this.contract.write.setRemainingTokensArray([_unsoldTokens] as const, options) as Promise<`0x${string}`>;
2368
2501
  }
2369
2502
 
2503
+ /**
2504
+ * setSanctions
2505
+ * nonpayable
2506
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2507
+ */
2508
+ async setSanctions(_sanctionContract: `0x${string}`, _applySanction: boolean, options?: {
2509
+ accessList?: import('viem').AccessList;
2510
+ authorizationList?: import('viem').AuthorizationList;
2511
+ chain?: import('viem').Chain | null;
2512
+ dataSuffix?: `0x${string}`;
2513
+ gas?: bigint;
2514
+ gasPrice?: bigint;
2515
+ maxFeePerGas?: bigint;
2516
+ maxPriorityFeePerGas?: bigint;
2517
+ nonce?: number;
2518
+ value?: bigint;
2519
+ }): Promise<`0x${string}`> {
2520
+ if (!this.contract.write) {
2521
+ throw new Error('Wallet client is required for write operations');
2522
+ }
2523
+ return this.contract.write.setSanctions([_sanctionContract, _applySanction] as const, options) as Promise<`0x${string}`>;
2524
+ }
2525
+
2370
2526
  /**
2371
2527
  * setSplits
2372
2528
  * nonpayable
@@ -2670,6 +2826,25 @@ export class PresaleV1_json {
2670
2826
  }): Promise<boolean> {
2671
2827
  return contract.simulate.buyWithEth([amount, stake] as const, options) as Promise<boolean>;
2672
2828
  },
2829
+ /**
2830
+ * Simulate buyWithUSDC
2831
+ * Returns gas estimate and result without sending transaction
2832
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2833
+ */
2834
+ async buyWithUSDC(amount: bigint, stake: boolean, options?: {
2835
+ accessList?: import('viem').AccessList;
2836
+ authorizationList?: import('viem').AuthorizationList;
2837
+ chain?: import('viem').Chain | null;
2838
+ dataSuffix?: `0x${string}`;
2839
+ gas?: bigint;
2840
+ gasPrice?: bigint;
2841
+ maxFeePerGas?: bigint;
2842
+ maxPriorityFeePerGas?: bigint;
2843
+ nonce?: number;
2844
+ value?: bigint;
2845
+ }): Promise<boolean> {
2846
+ return contract.simulate.buyWithUSDC([amount, stake] as const, options) as Promise<boolean>;
2847
+ },
2673
2848
  /**
2674
2849
  * Simulate buyWithUSDT
2675
2850
  * Returns gas estimate and result without sending transaction
@@ -2846,7 +3021,7 @@ export class PresaleV1_json {
2846
3021
  * Returns gas estimate and result without sending transaction
2847
3022
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2848
3023
  */
2849
- async initialize(_oracle: `0x${string}`, _usdt: `0x${string}`, _startTime: bigint, _endTime: bigint, _rounds: bigint[][], _maxTokensToBuy: bigint, _paymentWallet: `0x${string}`, _dynamicTimeFlag: boolean, _timeConstant: bigint, options?: {
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?: {
2850
3025
  accessList?: import('viem').AccessList;
2851
3026
  authorizationList?: import('viem').AuthorizationList;
2852
3027
  chain?: import('viem').Chain | null;
@@ -2858,7 +3033,7 @@ export class PresaleV1_json {
2858
3033
  nonce?: number;
2859
3034
  value?: bigint;
2860
3035
  }): Promise<void> {
2861
- return contract.simulate.initialize([_oracle, _usdt, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant] as const, options) as Promise<void>;
3036
+ return contract.simulate.initialize([_oracle, _usdt, _usdc, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant] as const, options) as Promise<void>;
2862
3037
  },
2863
3038
  /**
2864
3039
  * Simulate pause
@@ -3050,6 +3225,25 @@ export class PresaleV1_json {
3050
3225
  }): Promise<void> {
3051
3226
  return contract.simulate.setRemainingTokensArray([_unsoldTokens] as const, options) as Promise<void>;
3052
3227
  },
3228
+ /**
3229
+ * Simulate setSanctions
3230
+ * Returns gas estimate and result without sending transaction
3231
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3232
+ */
3233
+ async setSanctions(_sanctionContract: `0x${string}`, _applySanction: boolean, options?: {
3234
+ accessList?: import('viem').AccessList;
3235
+ authorizationList?: import('viem').AuthorizationList;
3236
+ chain?: import('viem').Chain | null;
3237
+ dataSuffix?: `0x${string}`;
3238
+ gas?: bigint;
3239
+ gasPrice?: bigint;
3240
+ maxFeePerGas?: bigint;
3241
+ maxPriorityFeePerGas?: bigint;
3242
+ nonce?: number;
3243
+ value?: bigint;
3244
+ }): Promise<void> {
3245
+ return contract.simulate.setSanctions([_sanctionContract, _applySanction] as const, options) as Promise<void>;
3246
+ },
3053
3247
  /**
3054
3248
  * Simulate setSplits
3055
3249
  * Returns gas estimate and result without sending transaction
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/presale",
3
- "version": "1.0.5",
4
- "description": "Auto-generated TypeScript type bindings for Presale (build etherscan-presale-da9c657d-1786685690556, commit 2e32123, 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": "2e32123"
42
+ "shortHash": "f67c921"
43
43
  }