@gitmyabi/presale 1.0.2 → 1.0.4

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-4775f480-1785938549711`
5
+ - **Build ID**: `etherscan-presale-8e2281bf-1786569503078`
6
6
  - **Build Number**: 1
7
- - **Commit**: `68df81c`
7
+ - **Commit**: `1d8ad38`
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.2
15
+ npm install @gitmyabi/presale@1.0.4
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -660,16 +660,6 @@ export declare const PresaleV3_jsonAbi: readonly [{
660
660
  }];
661
661
  readonly stateMutability: "view";
662
662
  readonly type: "function";
663
- }, {
664
- readonly inputs: readonly [];
665
- readonly name: "nftToken";
666
- readonly outputs: readonly [{
667
- readonly internalType: "contract INFT";
668
- readonly name: "";
669
- readonly type: "address";
670
- }];
671
- readonly stateMutability: "view";
672
- readonly type: "function";
673
663
  }, {
674
664
  readonly inputs: readonly [];
675
665
  readonly name: "owner";
@@ -882,21 +872,21 @@ export declare const PresaleV3_jsonAbi: readonly [{
882
872
  readonly type: "function";
883
873
  }, {
884
874
  readonly inputs: readonly [{
885
- readonly internalType: "address";
886
- readonly name: "_nftToken";
887
- readonly type: "address";
875
+ readonly internalType: "uint256[]";
876
+ readonly name: "_unsoldTokens";
877
+ readonly type: "uint256[]";
888
878
  }];
889
- readonly name: "setNFTToken";
879
+ readonly name: "setRemainingTokensArray";
890
880
  readonly outputs: readonly [];
891
881
  readonly stateMutability: "nonpayable";
892
882
  readonly type: "function";
893
883
  }, {
894
884
  readonly inputs: readonly [{
895
- readonly internalType: "uint256[]";
896
- readonly name: "_unsoldTokens";
897
- readonly type: "uint256[]";
885
+ readonly internalType: "address";
886
+ readonly name: "_saleToken";
887
+ readonly type: "address";
898
888
  }];
899
- readonly name: "setRemainingTokensArray";
889
+ readonly name: "setSaleToken";
900
890
  readonly outputs: readonly [];
901
891
  readonly stateMutability: "nonpayable";
902
892
  readonly type: "function";
@@ -938,6 +928,16 @@ export declare const PresaleV3_jsonAbi: readonly [{
938
928
  readonly outputs: readonly [];
939
929
  readonly stateMutability: "nonpayable";
940
930
  readonly type: "function";
931
+ }, {
932
+ readonly inputs: readonly [{
933
+ readonly internalType: "address";
934
+ readonly name: "_stakingManagerAddress";
935
+ readonly type: "address";
936
+ }];
937
+ readonly name: "setStakingManager";
938
+ readonly outputs: readonly [];
939
+ readonly stateMutability: "nonpayable";
940
+ readonly type: "function";
941
941
  }, {
942
942
  readonly inputs: readonly [{
943
943
  readonly internalType: "uint256";
@@ -968,6 +968,32 @@ export declare const PresaleV3_jsonAbi: readonly [{
968
968
  }];
969
969
  readonly stateMutability: "view";
970
970
  readonly type: "function";
971
+ }, {
972
+ readonly inputs: readonly [{
973
+ readonly internalType: "uint256";
974
+ readonly name: "_claimStart";
975
+ readonly type: "uint256";
976
+ }, {
977
+ readonly internalType: "uint256";
978
+ readonly name: "noOfTokens";
979
+ readonly type: "uint256";
980
+ }, {
981
+ readonly internalType: "address";
982
+ readonly name: "_saleToken";
983
+ readonly type: "address";
984
+ }, {
985
+ readonly internalType: "address";
986
+ readonly name: "_stakingManagerAddress";
987
+ readonly type: "address";
988
+ }];
989
+ readonly name: "startClaim";
990
+ readonly outputs: readonly [{
991
+ readonly internalType: "bool";
992
+ readonly name: "";
993
+ readonly type: "bool";
994
+ }];
995
+ readonly stateMutability: "nonpayable";
996
+ readonly type: "function";
971
997
  }, {
972
998
  readonly inputs: readonly [];
973
999
  readonly name: "startTime";
@@ -988,6 +1014,20 @@ export declare const PresaleV3_jsonAbi: readonly [{
988
1014
  }];
989
1015
  readonly stateMutability: "view";
990
1016
  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";
991
1031
  }, {
992
1032
  readonly inputs: readonly [];
993
1033
  readonly name: "totalBoughtAndStaked";
@@ -1291,11 +1331,6 @@ export declare class PresaleV3_json {
1291
1331
  * view
1292
1332
  */
1293
1333
  maxTokensToBuy(): Promise<bigint>;
1294
- /**
1295
- * nftToken
1296
- * view
1297
- */
1298
- nftToken(): Promise<`0x${string}`>;
1299
1334
  /**
1300
1335
  * owner
1301
1336
  * view
@@ -1803,11 +1838,11 @@ export declare class PresaleV3_json {
1803
1838
  value?: bigint;
1804
1839
  }): Promise<`0x${string}`>;
1805
1840
  /**
1806
- * setNFTToken
1841
+ * setRemainingTokensArray
1807
1842
  * nonpayable
1808
1843
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1809
1844
  */
1810
- setNFTToken(_nftToken: `0x${string}`, options?: {
1845
+ setRemainingTokensArray(_unsoldTokens: bigint[], options?: {
1811
1846
  accessList?: import('viem').AccessList;
1812
1847
  authorizationList?: import('viem').AuthorizationList;
1813
1848
  chain?: import('viem').Chain | null;
@@ -1820,11 +1855,11 @@ export declare class PresaleV3_json {
1820
1855
  value?: bigint;
1821
1856
  }): Promise<`0x${string}`>;
1822
1857
  /**
1823
- * setRemainingTokensArray
1858
+ * setSaleToken
1824
1859
  * nonpayable
1825
1860
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1826
1861
  */
1827
- setRemainingTokensArray(_unsoldTokens: bigint[], options?: {
1862
+ setSaleToken(_saleToken: `0x${string}`, options?: {
1828
1863
  accessList?: import('viem').AccessList;
1829
1864
  authorizationList?: import('viem').AuthorizationList;
1830
1865
  chain?: import('viem').Chain | null;
@@ -1887,6 +1922,23 @@ export declare class PresaleV3_json {
1887
1922
  nonce?: number;
1888
1923
  value?: bigint;
1889
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?: {
1931
+ accessList?: import('viem').AccessList;
1932
+ authorizationList?: import('viem').AuthorizationList;
1933
+ chain?: import('viem').Chain | null;
1934
+ dataSuffix?: `0x${string}`;
1935
+ gas?: bigint;
1936
+ gasPrice?: bigint;
1937
+ maxFeePerGas?: bigint;
1938
+ maxPriorityFeePerGas?: bigint;
1939
+ nonce?: number;
1940
+ value?: bigint;
1941
+ }): Promise<`0x${string}`>;
1890
1942
  /**
1891
1943
  * setTimeConstant
1892
1944
  * nonpayable
@@ -1904,6 +1956,40 @@ export declare class PresaleV3_json {
1904
1956
  nonce?: number;
1905
1957
  value?: bigint;
1906
1958
  }): Promise<`0x${string}`>;
1959
+ /**
1960
+ * startClaim
1961
+ * nonpayable
1962
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1963
+ */
1964
+ startClaim(_claimStart: bigint, noOfTokens: bigint, _saleToken: `0x${string}`, _stakingManagerAddress: `0x${string}`, options?: {
1965
+ accessList?: import('viem').AccessList;
1966
+ authorizationList?: import('viem').AuthorizationList;
1967
+ chain?: import('viem').Chain | null;
1968
+ dataSuffix?: `0x${string}`;
1969
+ gas?: bigint;
1970
+ gasPrice?: bigint;
1971
+ maxFeePerGas?: bigint;
1972
+ maxPriorityFeePerGas?: bigint;
1973
+ nonce?: number;
1974
+ value?: bigint;
1975
+ }): 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}`>;
1907
1993
  /**
1908
1994
  * transferOwnership
1909
1995
  * nonpayable
@@ -2390,11 +2476,11 @@ export declare class PresaleV3_json {
2390
2476
  value?: bigint;
2391
2477
  }): Promise<void>;
2392
2478
  /**
2393
- * Simulate setNFTToken
2479
+ * Simulate setRemainingTokensArray
2394
2480
  * Returns gas estimate and result without sending transaction
2395
2481
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2396
2482
  */
2397
- setNFTToken(_nftToken: `0x${string}`, options?: {
2483
+ setRemainingTokensArray(_unsoldTokens: bigint[], options?: {
2398
2484
  accessList?: import("viem").AccessList;
2399
2485
  authorizationList?: import("viem").AuthorizationList;
2400
2486
  chain?: import("viem").Chain | null;
@@ -2407,11 +2493,11 @@ export declare class PresaleV3_json {
2407
2493
  value?: bigint;
2408
2494
  }): Promise<void>;
2409
2495
  /**
2410
- * Simulate setRemainingTokensArray
2496
+ * Simulate setSaleToken
2411
2497
  * Returns gas estimate and result without sending transaction
2412
2498
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2413
2499
  */
2414
- setRemainingTokensArray(_unsoldTokens: bigint[], options?: {
2500
+ setSaleToken(_saleToken: `0x${string}`, options?: {
2415
2501
  accessList?: import("viem").AccessList;
2416
2502
  authorizationList?: import("viem").AuthorizationList;
2417
2503
  chain?: import("viem").Chain | null;
@@ -2474,6 +2560,23 @@ export declare class PresaleV3_json {
2474
2560
  nonce?: number;
2475
2561
  value?: bigint;
2476
2562
  }): Promise<void>;
2563
+ /**
2564
+ * Simulate setStakingManager
2565
+ * Returns gas estimate and result without sending transaction
2566
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2567
+ */
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>;
2477
2580
  /**
2478
2581
  * Simulate setTimeConstant
2479
2582
  * Returns gas estimate and result without sending transaction
@@ -2491,6 +2594,40 @@ export declare class PresaleV3_json {
2491
2594
  nonce?: number;
2492
2595
  value?: bigint;
2493
2596
  }): Promise<void>;
2597
+ /**
2598
+ * Simulate startClaim
2599
+ * Returns gas estimate and result without sending transaction
2600
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2601
+ */
2602
+ startClaim(_claimStart: bigint, noOfTokens: bigint, _saleToken: `0x${string}`, _stakingManagerAddress: `0x${string}`, options?: {
2603
+ accessList?: import("viem").AccessList;
2604
+ authorizationList?: import("viem").AuthorizationList;
2605
+ chain?: import("viem").Chain | null;
2606
+ dataSuffix?: `0x${string}`;
2607
+ gas?: bigint;
2608
+ gasPrice?: bigint;
2609
+ maxFeePerGas?: bigint;
2610
+ maxPriorityFeePerGas?: bigint;
2611
+ nonce?: number;
2612
+ value?: bigint;
2613
+ }): 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>;
2494
2631
  /**
2495
2632
  * Simulate transferOwnership
2496
2633
  * Returns gas estimate and result without sending transaction
@@ -854,19 +854,6 @@ exports.PresaleV3_jsonAbi = [
854
854
  "stateMutability": "view",
855
855
  "type": "function"
856
856
  },
857
- {
858
- "inputs": [],
859
- "name": "nftToken",
860
- "outputs": [
861
- {
862
- "internalType": "contract INFT",
863
- "name": "",
864
- "type": "address"
865
- }
866
- ],
867
- "stateMutability": "view",
868
- "type": "function"
869
- },
870
857
  {
871
858
  "inputs": [],
872
859
  "name": "owner",
@@ -1145,12 +1132,12 @@ exports.PresaleV3_jsonAbi = [
1145
1132
  {
1146
1133
  "inputs": [
1147
1134
  {
1148
- "internalType": "address",
1149
- "name": "_nftToken",
1150
- "type": "address"
1135
+ "internalType": "uint256[]",
1136
+ "name": "_unsoldTokens",
1137
+ "type": "uint256[]"
1151
1138
  }
1152
1139
  ],
1153
- "name": "setNFTToken",
1140
+ "name": "setRemainingTokensArray",
1154
1141
  "outputs": [],
1155
1142
  "stateMutability": "nonpayable",
1156
1143
  "type": "function"
@@ -1158,12 +1145,12 @@ exports.PresaleV3_jsonAbi = [
1158
1145
  {
1159
1146
  "inputs": [
1160
1147
  {
1161
- "internalType": "uint256[]",
1162
- "name": "_unsoldTokens",
1163
- "type": "uint256[]"
1148
+ "internalType": "address",
1149
+ "name": "_saleToken",
1150
+ "type": "address"
1164
1151
  }
1165
1152
  ],
1166
- "name": "setRemainingTokensArray",
1153
+ "name": "setSaleToken",
1167
1154
  "outputs": [],
1168
1155
  "stateMutability": "nonpayable",
1169
1156
  "type": "function"
@@ -1217,6 +1204,19 @@ exports.PresaleV3_jsonAbi = [
1217
1204
  "stateMutability": "nonpayable",
1218
1205
  "type": "function"
1219
1206
  },
1207
+ {
1208
+ "inputs": [
1209
+ {
1210
+ "internalType": "address",
1211
+ "name": "_stakingManagerAddress",
1212
+ "type": "address"
1213
+ }
1214
+ ],
1215
+ "name": "setStakingManager",
1216
+ "outputs": [],
1217
+ "stateMutability": "nonpayable",
1218
+ "type": "function"
1219
+ },
1220
1220
  {
1221
1221
  "inputs": [
1222
1222
  {
@@ -1256,6 +1256,40 @@ exports.PresaleV3_jsonAbi = [
1256
1256
  "stateMutability": "view",
1257
1257
  "type": "function"
1258
1258
  },
1259
+ {
1260
+ "inputs": [
1261
+ {
1262
+ "internalType": "uint256",
1263
+ "name": "_claimStart",
1264
+ "type": "uint256"
1265
+ },
1266
+ {
1267
+ "internalType": "uint256",
1268
+ "name": "noOfTokens",
1269
+ "type": "uint256"
1270
+ },
1271
+ {
1272
+ "internalType": "address",
1273
+ "name": "_saleToken",
1274
+ "type": "address"
1275
+ },
1276
+ {
1277
+ "internalType": "address",
1278
+ "name": "_stakingManagerAddress",
1279
+ "type": "address"
1280
+ }
1281
+ ],
1282
+ "name": "startClaim",
1283
+ "outputs": [
1284
+ {
1285
+ "internalType": "bool",
1286
+ "name": "",
1287
+ "type": "bool"
1288
+ }
1289
+ ],
1290
+ "stateMutability": "nonpayable",
1291
+ "type": "function"
1292
+ },
1259
1293
  {
1260
1294
  "inputs": [],
1261
1295
  "name": "startTime",
@@ -1282,6 +1316,24 @@ exports.PresaleV3_jsonAbi = [
1282
1316
  "stateMutability": "view",
1283
1317
  "type": "function"
1284
1318
  },
1319
+ {
1320
+ "inputs": [
1321
+ {
1322
+ "internalType": "address",
1323
+ "name": "_token",
1324
+ "type": "address"
1325
+ },
1326
+ {
1327
+ "internalType": "uint256",
1328
+ "name": "_amount",
1329
+ "type": "uint256"
1330
+ }
1331
+ ],
1332
+ "name": "tokenTransfer",
1333
+ "outputs": [],
1334
+ "stateMutability": "nonpayable",
1335
+ "type": "function"
1336
+ },
1285
1337
  {
1286
1338
  "inputs": [],
1287
1339
  "name": "totalBoughtAndStaked",
@@ -1671,13 +1723,6 @@ class PresaleV3_json {
1671
1723
  async maxTokensToBuy() {
1672
1724
  return this.contract.read.maxTokensToBuy();
1673
1725
  }
1674
- /**
1675
- * nftToken
1676
- * view
1677
- */
1678
- async nftToken() {
1679
- return this.contract.read.nftToken();
1680
- }
1681
1726
  /**
1682
1727
  * owner
1683
1728
  * view
@@ -2093,26 +2138,26 @@ class PresaleV3_json {
2093
2138
  return this.contract.write.setDynamicTimeFlag([_dynamicTimeFlag], options);
2094
2139
  }
2095
2140
  /**
2096
- * setNFTToken
2141
+ * setRemainingTokensArray
2097
2142
  * nonpayable
2098
2143
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2099
2144
  */
2100
- async setNFTToken(_nftToken, options) {
2145
+ async setRemainingTokensArray(_unsoldTokens, options) {
2101
2146
  if (!this.contract.write) {
2102
2147
  throw new Error('Wallet client is required for write operations');
2103
2148
  }
2104
- return this.contract.write.setNFTToken([_nftToken], options);
2149
+ return this.contract.write.setRemainingTokensArray([_unsoldTokens], options);
2105
2150
  }
2106
2151
  /**
2107
- * setRemainingTokensArray
2152
+ * setSaleToken
2108
2153
  * nonpayable
2109
2154
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2110
2155
  */
2111
- async setRemainingTokensArray(_unsoldTokens, options) {
2156
+ async setSaleToken(_saleToken, options) {
2112
2157
  if (!this.contract.write) {
2113
2158
  throw new Error('Wallet client is required for write operations');
2114
2159
  }
2115
- return this.contract.write.setRemainingTokensArray([_unsoldTokens], options);
2160
+ return this.contract.write.setSaleToken([_saleToken], options);
2116
2161
  }
2117
2162
  /**
2118
2163
  * setSanctions
@@ -2147,6 +2192,17 @@ class PresaleV3_json {
2147
2192
  }
2148
2193
  return this.contract.write.setStakeingWhitelistStatus([_status], options);
2149
2194
  }
2195
+ /**
2196
+ * setStakingManager
2197
+ * nonpayable
2198
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2199
+ */
2200
+ async setStakingManager(_stakingManagerAddress, options) {
2201
+ if (!this.contract.write) {
2202
+ throw new Error('Wallet client is required for write operations');
2203
+ }
2204
+ return this.contract.write.setStakingManager([_stakingManagerAddress], options);
2205
+ }
2150
2206
  /**
2151
2207
  * setTimeConstant
2152
2208
  * nonpayable
@@ -2158,6 +2214,28 @@ class PresaleV3_json {
2158
2214
  }
2159
2215
  return this.contract.write.setTimeConstant([_timeConstant], options);
2160
2216
  }
2217
+ /**
2218
+ * startClaim
2219
+ * nonpayable
2220
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2221
+ */
2222
+ async startClaim(_claimStart, noOfTokens, _saleToken, _stakingManagerAddress, options) {
2223
+ if (!this.contract.write) {
2224
+ throw new Error('Wallet client is required for write operations');
2225
+ }
2226
+ return this.contract.write.startClaim([_claimStart, noOfTokens, _saleToken, _stakingManagerAddress], options);
2227
+ }
2228
+ /**
2229
+ * tokenTransfer
2230
+ * nonpayable
2231
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2232
+ */
2233
+ async tokenTransfer(_token, _amount, options) {
2234
+ if (!this.contract.write) {
2235
+ throw new Error('Wallet client is required for write operations');
2236
+ }
2237
+ return this.contract.write.tokenTransfer([_token, _amount], options);
2238
+ }
2161
2239
  /**
2162
2240
  * transferOwnership
2163
2241
  * nonpayable
@@ -2412,20 +2490,20 @@ class PresaleV3_json {
2412
2490
  return contract.simulate.setDynamicTimeFlag([_dynamicTimeFlag], options);
2413
2491
  },
2414
2492
  /**
2415
- * Simulate setNFTToken
2493
+ * Simulate setRemainingTokensArray
2416
2494
  * Returns gas estimate and result without sending transaction
2417
2495
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2418
2496
  */
2419
- async setNFTToken(_nftToken, options) {
2420
- return contract.simulate.setNFTToken([_nftToken], options);
2497
+ async setRemainingTokensArray(_unsoldTokens, options) {
2498
+ return contract.simulate.setRemainingTokensArray([_unsoldTokens], options);
2421
2499
  },
2422
2500
  /**
2423
- * Simulate setRemainingTokensArray
2501
+ * Simulate setSaleToken
2424
2502
  * Returns gas estimate and result without sending transaction
2425
2503
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2426
2504
  */
2427
- async setRemainingTokensArray(_unsoldTokens, options) {
2428
- return contract.simulate.setRemainingTokensArray([_unsoldTokens], options);
2505
+ async setSaleToken(_saleToken, options) {
2506
+ return contract.simulate.setSaleToken([_saleToken], options);
2429
2507
  },
2430
2508
  /**
2431
2509
  * Simulate setSanctions
@@ -2451,6 +2529,14 @@ class PresaleV3_json {
2451
2529
  async setStakeingWhitelistStatus(_status, options) {
2452
2530
  return contract.simulate.setStakeingWhitelistStatus([_status], options);
2453
2531
  },
2532
+ /**
2533
+ * Simulate setStakingManager
2534
+ * Returns gas estimate and result without sending transaction
2535
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2536
+ */
2537
+ async setStakingManager(_stakingManagerAddress, options) {
2538
+ return contract.simulate.setStakingManager([_stakingManagerAddress], options);
2539
+ },
2454
2540
  /**
2455
2541
  * Simulate setTimeConstant
2456
2542
  * Returns gas estimate and result without sending transaction
@@ -2459,6 +2545,22 @@ class PresaleV3_json {
2459
2545
  async setTimeConstant(_timeConstant, options) {
2460
2546
  return contract.simulate.setTimeConstant([_timeConstant], options);
2461
2547
  },
2548
+ /**
2549
+ * Simulate startClaim
2550
+ * Returns gas estimate and result without sending transaction
2551
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2552
+ */
2553
+ async startClaim(_claimStart, noOfTokens, _saleToken, _stakingManagerAddress, options) {
2554
+ return contract.simulate.startClaim([_claimStart, noOfTokens, _saleToken, _stakingManagerAddress], options);
2555
+ },
2556
+ /**
2557
+ * Simulate tokenTransfer
2558
+ * Returns gas estimate and result without sending transaction
2559
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2560
+ */
2561
+ async tokenTransfer(_token, _amount, options) {
2562
+ return contract.simulate.tokenTransfer([_token, _amount], options);
2563
+ },
2462
2564
  /**
2463
2565
  * Simulate transferOwnership
2464
2566
  * Returns gas estimate and result without sending transaction
@@ -853,19 +853,6 @@ export const PresaleV3_jsonAbi = [
853
853
  "stateMutability": "view",
854
854
  "type": "function"
855
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
- },
869
856
  {
870
857
  "inputs": [],
871
858
  "name": "owner",
@@ -1144,12 +1131,12 @@ export const PresaleV3_jsonAbi = [
1144
1131
  {
1145
1132
  "inputs": [
1146
1133
  {
1147
- "internalType": "address",
1148
- "name": "_nftToken",
1149
- "type": "address"
1134
+ "internalType": "uint256[]",
1135
+ "name": "_unsoldTokens",
1136
+ "type": "uint256[]"
1150
1137
  }
1151
1138
  ],
1152
- "name": "setNFTToken",
1139
+ "name": "setRemainingTokensArray",
1153
1140
  "outputs": [],
1154
1141
  "stateMutability": "nonpayable",
1155
1142
  "type": "function"
@@ -1157,12 +1144,12 @@ export const PresaleV3_jsonAbi = [
1157
1144
  {
1158
1145
  "inputs": [
1159
1146
  {
1160
- "internalType": "uint256[]",
1161
- "name": "_unsoldTokens",
1162
- "type": "uint256[]"
1147
+ "internalType": "address",
1148
+ "name": "_saleToken",
1149
+ "type": "address"
1163
1150
  }
1164
1151
  ],
1165
- "name": "setRemainingTokensArray",
1152
+ "name": "setSaleToken",
1166
1153
  "outputs": [],
1167
1154
  "stateMutability": "nonpayable",
1168
1155
  "type": "function"
@@ -1216,6 +1203,19 @@ export const PresaleV3_jsonAbi = [
1216
1203
  "stateMutability": "nonpayable",
1217
1204
  "type": "function"
1218
1205
  },
1206
+ {
1207
+ "inputs": [
1208
+ {
1209
+ "internalType": "address",
1210
+ "name": "_stakingManagerAddress",
1211
+ "type": "address"
1212
+ }
1213
+ ],
1214
+ "name": "setStakingManager",
1215
+ "outputs": [],
1216
+ "stateMutability": "nonpayable",
1217
+ "type": "function"
1218
+ },
1219
1219
  {
1220
1220
  "inputs": [
1221
1221
  {
@@ -1255,6 +1255,40 @@ export const PresaleV3_jsonAbi = [
1255
1255
  "stateMutability": "view",
1256
1256
  "type": "function"
1257
1257
  },
1258
+ {
1259
+ "inputs": [
1260
+ {
1261
+ "internalType": "uint256",
1262
+ "name": "_claimStart",
1263
+ "type": "uint256"
1264
+ },
1265
+ {
1266
+ "internalType": "uint256",
1267
+ "name": "noOfTokens",
1268
+ "type": "uint256"
1269
+ },
1270
+ {
1271
+ "internalType": "address",
1272
+ "name": "_saleToken",
1273
+ "type": "address"
1274
+ },
1275
+ {
1276
+ "internalType": "address",
1277
+ "name": "_stakingManagerAddress",
1278
+ "type": "address"
1279
+ }
1280
+ ],
1281
+ "name": "startClaim",
1282
+ "outputs": [
1283
+ {
1284
+ "internalType": "bool",
1285
+ "name": "",
1286
+ "type": "bool"
1287
+ }
1288
+ ],
1289
+ "stateMutability": "nonpayable",
1290
+ "type": "function"
1291
+ },
1258
1292
  {
1259
1293
  "inputs": [],
1260
1294
  "name": "startTime",
@@ -1281,6 +1315,24 @@ export const PresaleV3_jsonAbi = [
1281
1315
  "stateMutability": "view",
1282
1316
  "type": "function"
1283
1317
  },
1318
+ {
1319
+ "inputs": [
1320
+ {
1321
+ "internalType": "address",
1322
+ "name": "_token",
1323
+ "type": "address"
1324
+ },
1325
+ {
1326
+ "internalType": "uint256",
1327
+ "name": "_amount",
1328
+ "type": "uint256"
1329
+ }
1330
+ ],
1331
+ "name": "tokenTransfer",
1332
+ "outputs": [],
1333
+ "stateMutability": "nonpayable",
1334
+ "type": "function"
1335
+ },
1284
1336
  {
1285
1337
  "inputs": [],
1286
1338
  "name": "totalBoughtAndStaked",
@@ -1714,14 +1766,6 @@ export class PresaleV3_json {
1714
1766
  return this.contract.read.maxTokensToBuy() as Promise<bigint>;
1715
1767
  }
1716
1768
 
1717
- /**
1718
- * nftToken
1719
- * view
1720
- */
1721
- async nftToken(): Promise<`0x${string}`> {
1722
- return this.contract.read.nftToken() as Promise<`0x${string}`>;
1723
- }
1724
-
1725
1769
  /**
1726
1770
  * owner
1727
1771
  * view
@@ -2436,11 +2480,11 @@ export class PresaleV3_json {
2436
2480
  }
2437
2481
 
2438
2482
  /**
2439
- * setNFTToken
2483
+ * setRemainingTokensArray
2440
2484
  * nonpayable
2441
2485
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2442
2486
  */
2443
- async setNFTToken(_nftToken: `0x${string}`, options?: {
2487
+ async setRemainingTokensArray(_unsoldTokens: bigint[], options?: {
2444
2488
  accessList?: import('viem').AccessList;
2445
2489
  authorizationList?: import('viem').AuthorizationList;
2446
2490
  chain?: import('viem').Chain | null;
@@ -2455,15 +2499,15 @@ export class PresaleV3_json {
2455
2499
  if (!this.contract.write) {
2456
2500
  throw new Error('Wallet client is required for write operations');
2457
2501
  }
2458
- return this.contract.write.setNFTToken([_nftToken] as const, options) as Promise<`0x${string}`>;
2502
+ return this.contract.write.setRemainingTokensArray([_unsoldTokens] as const, options) as Promise<`0x${string}`>;
2459
2503
  }
2460
2504
 
2461
2505
  /**
2462
- * setRemainingTokensArray
2506
+ * setSaleToken
2463
2507
  * nonpayable
2464
2508
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2465
2509
  */
2466
- async setRemainingTokensArray(_unsoldTokens: bigint[], options?: {
2510
+ async setSaleToken(_saleToken: `0x${string}`, options?: {
2467
2511
  accessList?: import('viem').AccessList;
2468
2512
  authorizationList?: import('viem').AuthorizationList;
2469
2513
  chain?: import('viem').Chain | null;
@@ -2478,7 +2522,7 @@ export class PresaleV3_json {
2478
2522
  if (!this.contract.write) {
2479
2523
  throw new Error('Wallet client is required for write operations');
2480
2524
  }
2481
- return this.contract.write.setRemainingTokensArray([_unsoldTokens] as const, options) as Promise<`0x${string}`>;
2525
+ return this.contract.write.setSaleToken([_saleToken] as const, options) as Promise<`0x${string}`>;
2482
2526
  }
2483
2527
 
2484
2528
  /**
@@ -2550,6 +2594,29 @@ export class PresaleV3_json {
2550
2594
  return this.contract.write.setStakeingWhitelistStatus([_status] as const, options) as Promise<`0x${string}`>;
2551
2595
  }
2552
2596
 
2597
+ /**
2598
+ * setStakingManager
2599
+ * nonpayable
2600
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2601
+ */
2602
+ async setStakingManager(_stakingManagerAddress: `0x${string}`, options?: {
2603
+ accessList?: import('viem').AccessList;
2604
+ authorizationList?: import('viem').AuthorizationList;
2605
+ chain?: import('viem').Chain | null;
2606
+ dataSuffix?: `0x${string}`;
2607
+ gas?: bigint;
2608
+ gasPrice?: bigint;
2609
+ maxFeePerGas?: bigint;
2610
+ maxPriorityFeePerGas?: bigint;
2611
+ nonce?: number;
2612
+ value?: bigint;
2613
+ }): Promise<`0x${string}`> {
2614
+ if (!this.contract.write) {
2615
+ throw new Error('Wallet client is required for write operations');
2616
+ }
2617
+ return this.contract.write.setStakingManager([_stakingManagerAddress] as const, options) as Promise<`0x${string}`>;
2618
+ }
2619
+
2553
2620
  /**
2554
2621
  * setTimeConstant
2555
2622
  * nonpayable
@@ -2573,6 +2640,52 @@ export class PresaleV3_json {
2573
2640
  return this.contract.write.setTimeConstant([_timeConstant] as const, options) as Promise<`0x${string}`>;
2574
2641
  }
2575
2642
 
2643
+ /**
2644
+ * startClaim
2645
+ * nonpayable
2646
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2647
+ */
2648
+ async startClaim(_claimStart: bigint, noOfTokens: bigint, _saleToken: `0x${string}`, _stakingManagerAddress: `0x${string}`, options?: {
2649
+ accessList?: import('viem').AccessList;
2650
+ authorizationList?: import('viem').AuthorizationList;
2651
+ chain?: import('viem').Chain | null;
2652
+ dataSuffix?: `0x${string}`;
2653
+ gas?: bigint;
2654
+ gasPrice?: bigint;
2655
+ maxFeePerGas?: bigint;
2656
+ maxPriorityFeePerGas?: bigint;
2657
+ nonce?: number;
2658
+ value?: bigint;
2659
+ }): Promise<`0x${string}`> {
2660
+ if (!this.contract.write) {
2661
+ throw new Error('Wallet client is required for write operations');
2662
+ }
2663
+ return this.contract.write.startClaim([_claimStart, noOfTokens, _saleToken, _stakingManagerAddress] as const, options) as Promise<`0x${string}`>;
2664
+ }
2665
+
2666
+ /**
2667
+ * tokenTransfer
2668
+ * nonpayable
2669
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2670
+ */
2671
+ async tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
2672
+ accessList?: import('viem').AccessList;
2673
+ authorizationList?: import('viem').AuthorizationList;
2674
+ chain?: import('viem').Chain | null;
2675
+ dataSuffix?: `0x${string}`;
2676
+ gas?: bigint;
2677
+ gasPrice?: bigint;
2678
+ maxFeePerGas?: bigint;
2679
+ maxPriorityFeePerGas?: bigint;
2680
+ nonce?: number;
2681
+ value?: bigint;
2682
+ }): Promise<`0x${string}`> {
2683
+ if (!this.contract.write) {
2684
+ throw new Error('Wallet client is required for write operations');
2685
+ }
2686
+ return this.contract.write.tokenTransfer([_token, _amount] as const, options) as Promise<`0x${string}`>;
2687
+ }
2688
+
2576
2689
  /**
2577
2690
  * transferOwnership
2578
2691
  * nonpayable
@@ -3142,11 +3255,11 @@ export class PresaleV3_json {
3142
3255
  return contract.simulate.setDynamicTimeFlag([_dynamicTimeFlag] as const, options) as Promise<void>;
3143
3256
  },
3144
3257
  /**
3145
- * Simulate setNFTToken
3258
+ * Simulate setRemainingTokensArray
3146
3259
  * Returns gas estimate and result without sending transaction
3147
3260
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3148
3261
  */
3149
- async setNFTToken(_nftToken: `0x${string}`, options?: {
3262
+ async setRemainingTokensArray(_unsoldTokens: bigint[], options?: {
3150
3263
  accessList?: import('viem').AccessList;
3151
3264
  authorizationList?: import('viem').AuthorizationList;
3152
3265
  chain?: import('viem').Chain | null;
@@ -3158,14 +3271,14 @@ export class PresaleV3_json {
3158
3271
  nonce?: number;
3159
3272
  value?: bigint;
3160
3273
  }): Promise<void> {
3161
- return contract.simulate.setNFTToken([_nftToken] as const, options) as Promise<void>;
3274
+ return contract.simulate.setRemainingTokensArray([_unsoldTokens] as const, options) as Promise<void>;
3162
3275
  },
3163
3276
  /**
3164
- * Simulate setRemainingTokensArray
3277
+ * Simulate setSaleToken
3165
3278
  * Returns gas estimate and result without sending transaction
3166
3279
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
3167
3280
  */
3168
- async setRemainingTokensArray(_unsoldTokens: bigint[], options?: {
3281
+ async setSaleToken(_saleToken: `0x${string}`, options?: {
3169
3282
  accessList?: import('viem').AccessList;
3170
3283
  authorizationList?: import('viem').AuthorizationList;
3171
3284
  chain?: import('viem').Chain | null;
@@ -3177,7 +3290,7 @@ export class PresaleV3_json {
3177
3290
  nonce?: number;
3178
3291
  value?: bigint;
3179
3292
  }): Promise<void> {
3180
- return contract.simulate.setRemainingTokensArray([_unsoldTokens] as const, options) as Promise<void>;
3293
+ return contract.simulate.setSaleToken([_saleToken] as const, options) as Promise<void>;
3181
3294
  },
3182
3295
  /**
3183
3296
  * Simulate setSanctions
@@ -3236,6 +3349,25 @@ export class PresaleV3_json {
3236
3349
  }): Promise<void> {
3237
3350
  return contract.simulate.setStakeingWhitelistStatus([_status] as const, options) as Promise<void>;
3238
3351
  },
3352
+ /**
3353
+ * Simulate setStakingManager
3354
+ * Returns gas estimate and result without sending transaction
3355
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3356
+ */
3357
+ async setStakingManager(_stakingManagerAddress: `0x${string}`, options?: {
3358
+ accessList?: import('viem').AccessList;
3359
+ authorizationList?: import('viem').AuthorizationList;
3360
+ chain?: import('viem').Chain | null;
3361
+ dataSuffix?: `0x${string}`;
3362
+ gas?: bigint;
3363
+ gasPrice?: bigint;
3364
+ maxFeePerGas?: bigint;
3365
+ maxPriorityFeePerGas?: bigint;
3366
+ nonce?: number;
3367
+ value?: bigint;
3368
+ }): Promise<void> {
3369
+ return contract.simulate.setStakingManager([_stakingManagerAddress] as const, options) as Promise<void>;
3370
+ },
3239
3371
  /**
3240
3372
  * Simulate setTimeConstant
3241
3373
  * Returns gas estimate and result without sending transaction
@@ -3255,6 +3387,44 @@ export class PresaleV3_json {
3255
3387
  }): Promise<void> {
3256
3388
  return contract.simulate.setTimeConstant([_timeConstant] as const, options) as Promise<void>;
3257
3389
  },
3390
+ /**
3391
+ * Simulate startClaim
3392
+ * Returns gas estimate and result without sending transaction
3393
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3394
+ */
3395
+ async startClaim(_claimStart: bigint, noOfTokens: bigint, _saleToken: `0x${string}`, _stakingManagerAddress: `0x${string}`, options?: {
3396
+ accessList?: import('viem').AccessList;
3397
+ authorizationList?: import('viem').AuthorizationList;
3398
+ chain?: import('viem').Chain | null;
3399
+ dataSuffix?: `0x${string}`;
3400
+ gas?: bigint;
3401
+ gasPrice?: bigint;
3402
+ maxFeePerGas?: bigint;
3403
+ maxPriorityFeePerGas?: bigint;
3404
+ nonce?: number;
3405
+ value?: bigint;
3406
+ }): Promise<boolean> {
3407
+ return contract.simulate.startClaim([_claimStart, noOfTokens, _saleToken, _stakingManagerAddress] as const, options) as Promise<boolean>;
3408
+ },
3409
+ /**
3410
+ * Simulate tokenTransfer
3411
+ * Returns gas estimate and result without sending transaction
3412
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3413
+ */
3414
+ async tokenTransfer(_token: `0x${string}`, _amount: bigint, options?: {
3415
+ accessList?: import('viem').AccessList;
3416
+ authorizationList?: import('viem').AuthorizationList;
3417
+ chain?: import('viem').Chain | null;
3418
+ dataSuffix?: `0x${string}`;
3419
+ gas?: bigint;
3420
+ gasPrice?: bigint;
3421
+ maxFeePerGas?: bigint;
3422
+ maxPriorityFeePerGas?: bigint;
3423
+ nonce?: number;
3424
+ value?: bigint;
3425
+ }): Promise<void> {
3426
+ return contract.simulate.tokenTransfer([_token, _amount] as const, options) as Promise<void>;
3427
+ },
3258
3428
  /**
3259
3429
  * Simulate transferOwnership
3260
3430
  * 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.2",
4
- "description": "Auto-generated TypeScript type bindings for Presale (build etherscan-presale-4775f480-1785938549711, commit 68df81c, branch etherscan)",
3
+ "version": "1.0.4",
4
+ "description": "Auto-generated TypeScript type bindings for Presale (build etherscan-presale-8e2281bf-1786569503078, commit 1d8ad38, 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": "68df81c"
42
+ "shortHash": "1d8ad38"
43
43
  }