@gitmyabi/presale 1.0.1 → 1.0.3

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-58dcc869-1785744118854`
5
+ - **Build ID**: `etherscan-presale-2ddd5e07-1786427983809`
6
6
  - **Build Number**: 1
7
- - **Commit**: `7a78d44`
7
+ - **Commit**: `92fb505`
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.1
15
+ npm install @gitmyabi/presale@1.0.3
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -1,10 +1,10 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * PresaleV2_json ABI
3
+ * PresaleV3_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 PresaleV2_jsonAbi: readonly [{
7
+ export declare const PresaleV3_jsonAbi: readonly [{
8
8
  readonly inputs: readonly [];
9
9
  readonly stateMutability: "nonpayable";
10
10
  readonly type: "constructor";
@@ -308,6 +308,16 @@ export declare const PresaleV2_jsonAbi: readonly [{
308
308
  }];
309
309
  readonly stateMutability: "view";
310
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";
311
321
  }, {
312
322
  readonly inputs: readonly [];
313
323
  readonly name: "baseDecimals";
@@ -386,6 +396,28 @@ export declare const PresaleV2_jsonAbi: readonly [{
386
396
  }];
387
397
  readonly stateMutability: "nonpayable";
388
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";
389
421
  }, {
390
422
  readonly inputs: readonly [{
391
423
  readonly internalType: "uint256";
@@ -784,6 +816,16 @@ export declare const PresaleV2_jsonAbi: readonly [{
784
816
  }];
785
817
  readonly stateMutability: "view";
786
818
  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";
787
829
  }, {
788
830
  readonly inputs: readonly [{
789
831
  readonly internalType: "address";
@@ -838,6 +880,30 @@ export declare const PresaleV2_jsonAbi: readonly [{
838
880
  readonly outputs: readonly [];
839
881
  readonly stateMutability: "nonpayable";
840
882
  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";
841
907
  }, {
842
908
  readonly inputs: readonly [{
843
909
  readonly internalType: "address[]";
@@ -882,16 +948,6 @@ export declare const PresaleV2_jsonAbi: readonly [{
882
948
  readonly outputs: readonly [];
883
949
  readonly stateMutability: "nonpayable";
884
950
  readonly type: "function";
885
- }, {
886
- readonly inputs: readonly [{
887
- readonly internalType: "address";
888
- readonly name: "_usdc";
889
- readonly type: "address";
890
- }];
891
- readonly name: "setUSDCInterface";
892
- readonly outputs: readonly [];
893
- readonly stateMutability: "nonpayable";
894
- readonly type: "function";
895
951
  }, {
896
952
  readonly inputs: readonly [];
897
953
  readonly name: "stakeingWhitelistStatus";
@@ -960,8 +1016,12 @@ export declare const PresaleV2_jsonAbi: readonly [{
960
1016
  readonly type: "function";
961
1017
  }, {
962
1018
  readonly inputs: readonly [{
1019
+ readonly internalType: "address";
1020
+ readonly name: "_token";
1021
+ readonly type: "address";
1022
+ }, {
963
1023
  readonly internalType: "uint256";
964
- readonly name: "amount";
1024
+ readonly name: "_amount";
965
1025
  readonly type: "uint256";
966
1026
  }];
967
1027
  readonly name: "tokenTransfer";
@@ -1126,15 +1186,15 @@ export declare const PresaleV2_jsonAbi: readonly [{
1126
1186
  readonly type: "function";
1127
1187
  }];
1128
1188
  /**
1129
- * Type-safe ABI for PresaleV2_json
1189
+ * Type-safe ABI for PresaleV3_json
1130
1190
  */
1131
- export type PresaleV2_jsonAbi = typeof PresaleV2_jsonAbi;
1191
+ export type PresaleV3_jsonAbi = typeof PresaleV3_jsonAbi;
1132
1192
  /**
1133
- * Contract instance type for PresaleV2_json
1193
+ * Contract instance type for PresaleV3_json
1134
1194
  */
1135
- export type PresaleV2_jsonContract = any;
1195
+ export type PresaleV3_jsonContract = any;
1136
1196
  /**
1137
- * PresaleV2_json Contract Class
1197
+ * PresaleV3_json Contract Class
1138
1198
  *
1139
1199
  * Provides a class-based API similar to TypeChain for interacting with the contract.
1140
1200
  *
@@ -1142,12 +1202,12 @@ export type PresaleV2_jsonContract = any;
1142
1202
  * ```typescript
1143
1203
  * import { createPublicClient, createWalletClient, http } from 'viem';
1144
1204
  * import { mainnet } from 'viem/chains';
1145
- * import { PresaleV2_json } from 'PresaleV2_json';
1205
+ * import { PresaleV3_json } from 'PresaleV3_json';
1146
1206
  *
1147
1207
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1148
1208
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1149
1209
  *
1150
- * const contract = new PresaleV2_json('0x...', { publicClient, walletClient });
1210
+ * const contract = new PresaleV3_json('0x...', { publicClient, walletClient });
1151
1211
  *
1152
1212
  * // Read functions
1153
1213
  * const result = await contract.balanceOf('0x...');
@@ -1165,7 +1225,7 @@ export type PresaleV2_jsonContract = any;
1165
1225
  * });
1166
1226
  * ```
1167
1227
  */
1168
- export declare class PresaleV2_json {
1228
+ export declare class PresaleV3_json {
1169
1229
  private contract;
1170
1230
  private contractAddress;
1171
1231
  private publicClient;
@@ -1180,7 +1240,7 @@ export declare class PresaleV2_json {
1180
1240
  /**
1181
1241
  * Get the underlying viem contract instance
1182
1242
  */
1183
- getContract(): PresaleV2_jsonContract;
1243
+ getContract(): PresaleV3_jsonContract;
1184
1244
  /**
1185
1245
  * USDCInterface
1186
1246
  * view
@@ -1201,6 +1261,11 @@ export declare class PresaleV2_json {
1201
1261
  * view
1202
1262
  */
1203
1263
  aggregatorInterface(): Promise<`0x${string}`>;
1264
+ /**
1265
+ * applySanctions
1266
+ * view
1267
+ */
1268
+ applySanctions(): Promise<boolean>;
1204
1269
  /**
1205
1270
  * baseDecimals
1206
1271
  * view
@@ -1311,6 +1376,11 @@ export declare class PresaleV2_json {
1311
1376
  * view
1312
1377
  */
1313
1378
  saleToken(): Promise<`0x${string}`>;
1379
+ /**
1380
+ * sanctionsList
1381
+ * view
1382
+ */
1383
+ sanctionsList(): Promise<`0x${string}`>;
1314
1384
  /**
1315
1385
  * stakeingWhitelistStatus
1316
1386
  * view
@@ -1444,6 +1514,23 @@ export declare class PresaleV2_json {
1444
1514
  nonce?: number;
1445
1515
  value?: bigint;
1446
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}`>;
1447
1534
  /**
1448
1535
  * buyWithUSDT
1449
1536
  * nonpayable
@@ -1768,11 +1855,11 @@ export declare class PresaleV2_json {
1768
1855
  value?: bigint;
1769
1856
  }): Promise<`0x${string}`>;
1770
1857
  /**
1771
- * setSplits
1858
+ * setSaleToken
1772
1859
  * nonpayable
1773
1860
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1774
1861
  */
1775
- setSplits(_wallets: `0x${string}`[], _percentages: bigint[], options?: {
1862
+ setSaleToken(_saleToken: `0x${string}`, options?: {
1776
1863
  accessList?: import('viem').AccessList;
1777
1864
  authorizationList?: import('viem').AuthorizationList;
1778
1865
  chain?: import('viem').Chain | null;
@@ -1785,11 +1872,11 @@ export declare class PresaleV2_json {
1785
1872
  value?: bigint;
1786
1873
  }): Promise<`0x${string}`>;
1787
1874
  /**
1788
- * setStakeingWhitelistStatus
1875
+ * setSanctions
1789
1876
  * nonpayable
1790
1877
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1791
1878
  */
1792
- setStakeingWhitelistStatus(_status: boolean, options?: {
1879
+ setSanctions(_sanctionContract: `0x${string}`, _applySanction: boolean, options?: {
1793
1880
  accessList?: import('viem').AccessList;
1794
1881
  authorizationList?: import('viem').AuthorizationList;
1795
1882
  chain?: import('viem').Chain | null;
@@ -1802,11 +1889,11 @@ export declare class PresaleV2_json {
1802
1889
  value?: bigint;
1803
1890
  }): Promise<`0x${string}`>;
1804
1891
  /**
1805
- * setStakingManager
1892
+ * setSplits
1806
1893
  * nonpayable
1807
1894
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1808
1895
  */
1809
- setStakingManager(_stakingManagerAddress: `0x${string}`, options?: {
1896
+ setSplits(_wallets: `0x${string}`[], _percentages: bigint[], options?: {
1810
1897
  accessList?: import('viem').AccessList;
1811
1898
  authorizationList?: import('viem').AuthorizationList;
1812
1899
  chain?: import('viem').Chain | null;
@@ -1819,11 +1906,28 @@ export declare class PresaleV2_json {
1819
1906
  value?: bigint;
1820
1907
  }): Promise<`0x${string}`>;
1821
1908
  /**
1822
- * setTimeConstant
1909
+ * setStakeingWhitelistStatus
1823
1910
  * nonpayable
1824
1911
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1825
1912
  */
1826
- setTimeConstant(_timeConstant: bigint, options?: {
1913
+ setStakeingWhitelistStatus(_status: boolean, options?: {
1914
+ accessList?: import('viem').AccessList;
1915
+ authorizationList?: import('viem').AuthorizationList;
1916
+ chain?: import('viem').Chain | null;
1917
+ dataSuffix?: `0x${string}`;
1918
+ gas?: bigint;
1919
+ gasPrice?: bigint;
1920
+ maxFeePerGas?: bigint;
1921
+ maxPriorityFeePerGas?: bigint;
1922
+ nonce?: number;
1923
+ value?: bigint;
1924
+ }): Promise<`0x${string}`>;
1925
+ /**
1926
+ * setStakingManager
1927
+ * nonpayable
1928
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1929
+ */
1930
+ setStakingManager(_stakingManagerAddress: `0x${string}`, options?: {
1827
1931
  accessList?: import('viem').AccessList;
1828
1932
  authorizationList?: import('viem').AuthorizationList;
1829
1933
  chain?: import('viem').Chain | null;
@@ -1836,11 +1940,11 @@ export declare class PresaleV2_json {
1836
1940
  value?: bigint;
1837
1941
  }): Promise<`0x${string}`>;
1838
1942
  /**
1839
- * setUSDCInterface
1943
+ * setTimeConstant
1840
1944
  * nonpayable
1841
1945
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1842
1946
  */
1843
- setUSDCInterface(_usdc: `0x${string}`, options?: {
1947
+ setTimeConstant(_timeConstant: bigint, options?: {
1844
1948
  accessList?: import('viem').AccessList;
1845
1949
  authorizationList?: import('viem').AuthorizationList;
1846
1950
  chain?: import('viem').Chain | null;
@@ -1874,7 +1978,7 @@ export declare class PresaleV2_json {
1874
1978
  * nonpayable
1875
1979
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1876
1980
  */
1877
- tokenTransfer(amount: bigint, options?: {
1981
+ tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
1878
1982
  accessList?: import('viem').AccessList;
1879
1983
  authorizationList?: import('viem').AuthorizationList;
1880
1984
  chain?: import('viem').Chain | null;
@@ -2048,6 +2152,23 @@ export declare class PresaleV2_json {
2048
2152
  nonce?: number;
2049
2153
  value?: bigint;
2050
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>;
2051
2172
  /**
2052
2173
  * Simulate buyWithUSDT
2053
2174
  * Returns gas estimate and result without sending transaction
@@ -2372,11 +2493,11 @@ export declare class PresaleV2_json {
2372
2493
  value?: bigint;
2373
2494
  }): Promise<void>;
2374
2495
  /**
2375
- * Simulate setSplits
2496
+ * Simulate setSaleToken
2376
2497
  * Returns gas estimate and result without sending transaction
2377
2498
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2378
2499
  */
2379
- setSplits(_wallets: `0x${string}`[], _percentages: bigint[], options?: {
2500
+ setSaleToken(_saleToken: `0x${string}`, options?: {
2380
2501
  accessList?: import("viem").AccessList;
2381
2502
  authorizationList?: import("viem").AuthorizationList;
2382
2503
  chain?: import("viem").Chain | null;
@@ -2389,11 +2510,11 @@ export declare class PresaleV2_json {
2389
2510
  value?: bigint;
2390
2511
  }): Promise<void>;
2391
2512
  /**
2392
- * Simulate setStakeingWhitelistStatus
2513
+ * Simulate setSanctions
2393
2514
  * Returns gas estimate and result without sending transaction
2394
2515
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2395
2516
  */
2396
- setStakeingWhitelistStatus(_status: boolean, options?: {
2517
+ setSanctions(_sanctionContract: `0x${string}`, _applySanction: boolean, options?: {
2397
2518
  accessList?: import("viem").AccessList;
2398
2519
  authorizationList?: import("viem").AuthorizationList;
2399
2520
  chain?: import("viem").Chain | null;
@@ -2406,11 +2527,11 @@ export declare class PresaleV2_json {
2406
2527
  value?: bigint;
2407
2528
  }): Promise<void>;
2408
2529
  /**
2409
- * Simulate setStakingManager
2530
+ * Simulate setSplits
2410
2531
  * Returns gas estimate and result without sending transaction
2411
2532
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2412
2533
  */
2413
- setStakingManager(_stakingManagerAddress: `0x${string}`, options?: {
2534
+ setSplits(_wallets: `0x${string}`[], _percentages: bigint[], options?: {
2414
2535
  accessList?: import("viem").AccessList;
2415
2536
  authorizationList?: import("viem").AuthorizationList;
2416
2537
  chain?: import("viem").Chain | null;
@@ -2423,11 +2544,11 @@ export declare class PresaleV2_json {
2423
2544
  value?: bigint;
2424
2545
  }): Promise<void>;
2425
2546
  /**
2426
- * Simulate setTimeConstant
2547
+ * Simulate setStakeingWhitelistStatus
2427
2548
  * Returns gas estimate and result without sending transaction
2428
2549
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2429
2550
  */
2430
- setTimeConstant(_timeConstant: bigint, options?: {
2551
+ setStakeingWhitelistStatus(_status: boolean, options?: {
2431
2552
  accessList?: import("viem").AccessList;
2432
2553
  authorizationList?: import("viem").AuthorizationList;
2433
2554
  chain?: import("viem").Chain | null;
@@ -2440,11 +2561,28 @@ export declare class PresaleV2_json {
2440
2561
  value?: bigint;
2441
2562
  }): Promise<void>;
2442
2563
  /**
2443
- * Simulate setUSDCInterface
2564
+ * Simulate setStakingManager
2444
2565
  * Returns gas estimate and result without sending transaction
2445
2566
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2446
2567
  */
2447
- setUSDCInterface(_usdc: `0x${string}`, options?: {
2568
+ setStakingManager(_stakingManagerAddress: `0x${string}`, options?: {
2569
+ accessList?: import("viem").AccessList;
2570
+ authorizationList?: import("viem").AuthorizationList;
2571
+ chain?: import("viem").Chain | null;
2572
+ dataSuffix?: `0x${string}`;
2573
+ gas?: bigint;
2574
+ gasPrice?: bigint;
2575
+ maxFeePerGas?: bigint;
2576
+ maxPriorityFeePerGas?: bigint;
2577
+ nonce?: number;
2578
+ value?: bigint;
2579
+ }): Promise<void>;
2580
+ /**
2581
+ * Simulate setTimeConstant
2582
+ * Returns gas estimate and result without sending transaction
2583
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2584
+ */
2585
+ setTimeConstant(_timeConstant: bigint, options?: {
2448
2586
  accessList?: import("viem").AccessList;
2449
2587
  authorizationList?: import("viem").AuthorizationList;
2450
2588
  chain?: import("viem").Chain | null;
@@ -2478,7 +2616,7 @@ export declare class PresaleV2_json {
2478
2616
  * Returns gas estimate and result without sending transaction
2479
2617
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2480
2618
  */
2481
- tokenTransfer(amount: bigint, options?: {
2619
+ tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
2482
2620
  accessList?: import("viem").AccessList;
2483
2621
  authorizationList?: import("viem").AuthorizationList;
2484
2622
  chain?: import("viem").Chain | null;