@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.
- package/README.md +3 -3
- package/contracts/{PresaleV2_json.d.ts → PresaleV3_json.d.ts} +160 -159
- package/contracts/{PresaleV2_json.js → PresaleV3_json.js} +194 -166
- package/contracts/{PresaleV2_json.ts → PresaleV3_json.ts} +226 -218
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PresaleV3_json = exports.PresaleV3_jsonAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* PresaleV3_json ABI
|
|
7
7
|
*
|
|
8
8
|
* This ABI is typed using viem's type system for full type safety.
|
|
9
9
|
*/
|
|
10
|
-
exports.
|
|
10
|
+
exports.PresaleV3_jsonAbi = [
|
|
11
11
|
{
|
|
12
12
|
"inputs": [],
|
|
13
13
|
"stateMutability": "nonpayable",
|
|
@@ -390,6 +390,19 @@ exports.PresaleV2_jsonAbi = [
|
|
|
390
390
|
"stateMutability": "view",
|
|
391
391
|
"type": "function"
|
|
392
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
|
+
},
|
|
393
406
|
{
|
|
394
407
|
"inputs": [],
|
|
395
408
|
"name": "baseDecimals",
|
|
@@ -493,6 +506,35 @@ exports.PresaleV2_jsonAbi = [
|
|
|
493
506
|
"stateMutability": "nonpayable",
|
|
494
507
|
"type": "function"
|
|
495
508
|
},
|
|
509
|
+
{
|
|
510
|
+
"inputs": [
|
|
511
|
+
{
|
|
512
|
+
"internalType": "address",
|
|
513
|
+
"name": "_user",
|
|
514
|
+
"type": "address"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"internalType": "uint256",
|
|
518
|
+
"name": "_amount",
|
|
519
|
+
"type": "uint256"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"internalType": "bool",
|
|
523
|
+
"name": "stake",
|
|
524
|
+
"type": "bool"
|
|
525
|
+
}
|
|
526
|
+
],
|
|
527
|
+
"name": "buyWithUSDCWERT",
|
|
528
|
+
"outputs": [
|
|
529
|
+
{
|
|
530
|
+
"internalType": "bool",
|
|
531
|
+
"name": "",
|
|
532
|
+
"type": "bool"
|
|
533
|
+
}
|
|
534
|
+
],
|
|
535
|
+
"stateMutability": "nonpayable",
|
|
536
|
+
"type": "function"
|
|
537
|
+
},
|
|
496
538
|
{
|
|
497
539
|
"inputs": [
|
|
498
540
|
{
|
|
@@ -812,6 +854,19 @@ exports.PresaleV2_jsonAbi = [
|
|
|
812
854
|
"stateMutability": "view",
|
|
813
855
|
"type": "function"
|
|
814
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
|
+
},
|
|
815
870
|
{
|
|
816
871
|
"inputs": [],
|
|
817
872
|
"name": "owner",
|
|
@@ -1017,6 +1072,19 @@ exports.PresaleV2_jsonAbi = [
|
|
|
1017
1072
|
"stateMutability": "view",
|
|
1018
1073
|
"type": "function"
|
|
1019
1074
|
},
|
|
1075
|
+
{
|
|
1076
|
+
"inputs": [],
|
|
1077
|
+
"name": "sanctionsList",
|
|
1078
|
+
"outputs": [
|
|
1079
|
+
{
|
|
1080
|
+
"internalType": "contract ISanctionsList",
|
|
1081
|
+
"name": "",
|
|
1082
|
+
"type": "address"
|
|
1083
|
+
}
|
|
1084
|
+
],
|
|
1085
|
+
"stateMutability": "view",
|
|
1086
|
+
"type": "function"
|
|
1087
|
+
},
|
|
1020
1088
|
{
|
|
1021
1089
|
"inputs": [
|
|
1022
1090
|
{
|
|
@@ -1077,43 +1145,43 @@ exports.PresaleV2_jsonAbi = [
|
|
|
1077
1145
|
{
|
|
1078
1146
|
"inputs": [
|
|
1079
1147
|
{
|
|
1080
|
-
"internalType": "
|
|
1081
|
-
"name": "
|
|
1082
|
-
"type": "
|
|
1148
|
+
"internalType": "address",
|
|
1149
|
+
"name": "_nftToken",
|
|
1150
|
+
"type": "address"
|
|
1083
1151
|
}
|
|
1084
1152
|
],
|
|
1085
|
-
"name": "
|
|
1153
|
+
"name": "setNFTToken",
|
|
1086
1154
|
"outputs": [],
|
|
1087
1155
|
"stateMutability": "nonpayable",
|
|
1088
1156
|
"type": "function"
|
|
1089
1157
|
},
|
|
1090
1158
|
{
|
|
1091
1159
|
"inputs": [
|
|
1092
|
-
{
|
|
1093
|
-
"internalType": "address[]",
|
|
1094
|
-
"name": "_wallets",
|
|
1095
|
-
"type": "address[]"
|
|
1096
|
-
},
|
|
1097
1160
|
{
|
|
1098
1161
|
"internalType": "uint256[]",
|
|
1099
|
-
"name": "
|
|
1162
|
+
"name": "_unsoldTokens",
|
|
1100
1163
|
"type": "uint256[]"
|
|
1101
1164
|
}
|
|
1102
1165
|
],
|
|
1103
|
-
"name": "
|
|
1166
|
+
"name": "setRemainingTokensArray",
|
|
1104
1167
|
"outputs": [],
|
|
1105
1168
|
"stateMutability": "nonpayable",
|
|
1106
1169
|
"type": "function"
|
|
1107
1170
|
},
|
|
1108
1171
|
{
|
|
1109
1172
|
"inputs": [
|
|
1173
|
+
{
|
|
1174
|
+
"internalType": "address",
|
|
1175
|
+
"name": "_sanctionContract",
|
|
1176
|
+
"type": "address"
|
|
1177
|
+
},
|
|
1110
1178
|
{
|
|
1111
1179
|
"internalType": "bool",
|
|
1112
|
-
"name": "
|
|
1180
|
+
"name": "_applySanction",
|
|
1113
1181
|
"type": "bool"
|
|
1114
1182
|
}
|
|
1115
1183
|
],
|
|
1116
|
-
"name": "
|
|
1184
|
+
"name": "setSanctions",
|
|
1117
1185
|
"outputs": [],
|
|
1118
1186
|
"stateMutability": "nonpayable",
|
|
1119
1187
|
"type": "function"
|
|
@@ -1121,12 +1189,17 @@ exports.PresaleV2_jsonAbi = [
|
|
|
1121
1189
|
{
|
|
1122
1190
|
"inputs": [
|
|
1123
1191
|
{
|
|
1124
|
-
"internalType": "address",
|
|
1125
|
-
"name": "
|
|
1126
|
-
"type": "address"
|
|
1192
|
+
"internalType": "address[]",
|
|
1193
|
+
"name": "_wallets",
|
|
1194
|
+
"type": "address[]"
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"internalType": "uint256[]",
|
|
1198
|
+
"name": "_percentages",
|
|
1199
|
+
"type": "uint256[]"
|
|
1127
1200
|
}
|
|
1128
1201
|
],
|
|
1129
|
-
"name": "
|
|
1202
|
+
"name": "setSplits",
|
|
1130
1203
|
"outputs": [],
|
|
1131
1204
|
"stateMutability": "nonpayable",
|
|
1132
1205
|
"type": "function"
|
|
@@ -1134,12 +1207,12 @@ exports.PresaleV2_jsonAbi = [
|
|
|
1134
1207
|
{
|
|
1135
1208
|
"inputs": [
|
|
1136
1209
|
{
|
|
1137
|
-
"internalType": "
|
|
1138
|
-
"name": "
|
|
1139
|
-
"type": "
|
|
1210
|
+
"internalType": "bool",
|
|
1211
|
+
"name": "_status",
|
|
1212
|
+
"type": "bool"
|
|
1140
1213
|
}
|
|
1141
1214
|
],
|
|
1142
|
-
"name": "
|
|
1215
|
+
"name": "setStakeingWhitelistStatus",
|
|
1143
1216
|
"outputs": [],
|
|
1144
1217
|
"stateMutability": "nonpayable",
|
|
1145
1218
|
"type": "function"
|
|
@@ -1147,12 +1220,12 @@ exports.PresaleV2_jsonAbi = [
|
|
|
1147
1220
|
{
|
|
1148
1221
|
"inputs": [
|
|
1149
1222
|
{
|
|
1150
|
-
"internalType": "
|
|
1151
|
-
"name": "
|
|
1152
|
-
"type": "
|
|
1223
|
+
"internalType": "uint256",
|
|
1224
|
+
"name": "_timeConstant",
|
|
1225
|
+
"type": "uint256"
|
|
1153
1226
|
}
|
|
1154
1227
|
],
|
|
1155
|
-
"name": "
|
|
1228
|
+
"name": "setTimeConstant",
|
|
1156
1229
|
"outputs": [],
|
|
1157
1230
|
"stateMutability": "nonpayable",
|
|
1158
1231
|
"type": "function"
|
|
@@ -1183,40 +1256,6 @@ exports.PresaleV2_jsonAbi = [
|
|
|
1183
1256
|
"stateMutability": "view",
|
|
1184
1257
|
"type": "function"
|
|
1185
1258
|
},
|
|
1186
|
-
{
|
|
1187
|
-
"inputs": [
|
|
1188
|
-
{
|
|
1189
|
-
"internalType": "uint256",
|
|
1190
|
-
"name": "_claimStart",
|
|
1191
|
-
"type": "uint256"
|
|
1192
|
-
},
|
|
1193
|
-
{
|
|
1194
|
-
"internalType": "uint256",
|
|
1195
|
-
"name": "noOfTokens",
|
|
1196
|
-
"type": "uint256"
|
|
1197
|
-
},
|
|
1198
|
-
{
|
|
1199
|
-
"internalType": "address",
|
|
1200
|
-
"name": "_saleToken",
|
|
1201
|
-
"type": "address"
|
|
1202
|
-
},
|
|
1203
|
-
{
|
|
1204
|
-
"internalType": "address",
|
|
1205
|
-
"name": "_stakingManagerAddress",
|
|
1206
|
-
"type": "address"
|
|
1207
|
-
}
|
|
1208
|
-
],
|
|
1209
|
-
"name": "startClaim",
|
|
1210
|
-
"outputs": [
|
|
1211
|
-
{
|
|
1212
|
-
"internalType": "bool",
|
|
1213
|
-
"name": "",
|
|
1214
|
-
"type": "bool"
|
|
1215
|
-
}
|
|
1216
|
-
],
|
|
1217
|
-
"stateMutability": "nonpayable",
|
|
1218
|
-
"type": "function"
|
|
1219
|
-
},
|
|
1220
1259
|
{
|
|
1221
1260
|
"inputs": [],
|
|
1222
1261
|
"name": "startTime",
|
|
@@ -1243,19 +1282,6 @@ exports.PresaleV2_jsonAbi = [
|
|
|
1243
1282
|
"stateMutability": "view",
|
|
1244
1283
|
"type": "function"
|
|
1245
1284
|
},
|
|
1246
|
-
{
|
|
1247
|
-
"inputs": [
|
|
1248
|
-
{
|
|
1249
|
-
"internalType": "uint256",
|
|
1250
|
-
"name": "amount",
|
|
1251
|
-
"type": "uint256"
|
|
1252
|
-
}
|
|
1253
|
-
],
|
|
1254
|
-
"name": "tokenTransfer",
|
|
1255
|
-
"outputs": [],
|
|
1256
|
-
"stateMutability": "nonpayable",
|
|
1257
|
-
"type": "function"
|
|
1258
|
-
},
|
|
1259
1285
|
{
|
|
1260
1286
|
"inputs": [],
|
|
1261
1287
|
"name": "totalBoughtAndStaked",
|
|
@@ -1463,7 +1489,7 @@ exports.PresaleV2_jsonAbi = [
|
|
|
1463
1489
|
}
|
|
1464
1490
|
];
|
|
1465
1491
|
/**
|
|
1466
|
-
*
|
|
1492
|
+
* PresaleV3_json Contract Class
|
|
1467
1493
|
*
|
|
1468
1494
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1469
1495
|
*
|
|
@@ -1471,12 +1497,12 @@ exports.PresaleV2_jsonAbi = [
|
|
|
1471
1497
|
* ```typescript
|
|
1472
1498
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1473
1499
|
* import { mainnet } from 'viem/chains';
|
|
1474
|
-
* import {
|
|
1500
|
+
* import { PresaleV3_json } from 'PresaleV3_json';
|
|
1475
1501
|
*
|
|
1476
1502
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1477
1503
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1478
1504
|
*
|
|
1479
|
-
* const contract = new
|
|
1505
|
+
* const contract = new PresaleV3_json('0x...', { publicClient, walletClient });
|
|
1480
1506
|
*
|
|
1481
1507
|
* // Read functions
|
|
1482
1508
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -1494,13 +1520,13 @@ exports.PresaleV2_jsonAbi = [
|
|
|
1494
1520
|
* });
|
|
1495
1521
|
* ```
|
|
1496
1522
|
*/
|
|
1497
|
-
class
|
|
1523
|
+
class PresaleV3_json {
|
|
1498
1524
|
constructor(address, clients) {
|
|
1499
1525
|
this.contractAddress = address;
|
|
1500
1526
|
this.publicClient = clients.publicClient;
|
|
1501
1527
|
this.contract = (0, viem_1.getContract)({
|
|
1502
1528
|
address,
|
|
1503
|
-
abi: exports.
|
|
1529
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
1504
1530
|
client: {
|
|
1505
1531
|
public: clients.publicClient,
|
|
1506
1532
|
wallet: clients.walletClient,
|
|
@@ -1547,6 +1573,13 @@ class PresaleV2_json {
|
|
|
1547
1573
|
async aggregatorInterface() {
|
|
1548
1574
|
return this.contract.read.aggregatorInterface();
|
|
1549
1575
|
}
|
|
1576
|
+
/**
|
|
1577
|
+
* applySanctions
|
|
1578
|
+
* view
|
|
1579
|
+
*/
|
|
1580
|
+
async applySanctions() {
|
|
1581
|
+
return this.contract.read.applySanctions();
|
|
1582
|
+
}
|
|
1550
1583
|
/**
|
|
1551
1584
|
* baseDecimals
|
|
1552
1585
|
* view
|
|
@@ -1638,6 +1671,13 @@ class PresaleV2_json {
|
|
|
1638
1671
|
async maxTokensToBuy() {
|
|
1639
1672
|
return this.contract.read.maxTokensToBuy();
|
|
1640
1673
|
}
|
|
1674
|
+
/**
|
|
1675
|
+
* nftToken
|
|
1676
|
+
* view
|
|
1677
|
+
*/
|
|
1678
|
+
async nftToken() {
|
|
1679
|
+
return this.contract.read.nftToken();
|
|
1680
|
+
}
|
|
1641
1681
|
/**
|
|
1642
1682
|
* owner
|
|
1643
1683
|
* view
|
|
@@ -1701,6 +1741,13 @@ class PresaleV2_json {
|
|
|
1701
1741
|
async saleToken() {
|
|
1702
1742
|
return this.contract.read.saleToken();
|
|
1703
1743
|
}
|
|
1744
|
+
/**
|
|
1745
|
+
* sanctionsList
|
|
1746
|
+
* view
|
|
1747
|
+
*/
|
|
1748
|
+
async sanctionsList() {
|
|
1749
|
+
return this.contract.read.sanctionsList();
|
|
1750
|
+
}
|
|
1704
1751
|
/**
|
|
1705
1752
|
* stakeingWhitelistStatus
|
|
1706
1753
|
* view
|
|
@@ -1836,6 +1883,17 @@ class PresaleV2_json {
|
|
|
1836
1883
|
}
|
|
1837
1884
|
return this.contract.write.buyWithUSDC([amount, stake], options);
|
|
1838
1885
|
}
|
|
1886
|
+
/**
|
|
1887
|
+
* buyWithUSDCWERT
|
|
1888
|
+
* nonpayable
|
|
1889
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1890
|
+
*/
|
|
1891
|
+
async buyWithUSDCWERT(_user, _amount, stake, options) {
|
|
1892
|
+
if (!this.contract.write) {
|
|
1893
|
+
throw new Error('Wallet client is required for write operations');
|
|
1894
|
+
}
|
|
1895
|
+
return this.contract.write.buyWithUSDCWERT([_user, _amount, stake], options);
|
|
1896
|
+
}
|
|
1839
1897
|
/**
|
|
1840
1898
|
* buyWithUSDT
|
|
1841
1899
|
* nonpayable
|
|
@@ -2035,92 +2093,70 @@ class PresaleV2_json {
|
|
|
2035
2093
|
return this.contract.write.setDynamicTimeFlag([_dynamicTimeFlag], options);
|
|
2036
2094
|
}
|
|
2037
2095
|
/**
|
|
2038
|
-
*
|
|
2096
|
+
* setNFTToken
|
|
2039
2097
|
* nonpayable
|
|
2040
2098
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2041
2099
|
*/
|
|
2042
|
-
async
|
|
2100
|
+
async setNFTToken(_nftToken, options) {
|
|
2043
2101
|
if (!this.contract.write) {
|
|
2044
2102
|
throw new Error('Wallet client is required for write operations');
|
|
2045
2103
|
}
|
|
2046
|
-
return this.contract.write.
|
|
2047
|
-
}
|
|
2048
|
-
/**
|
|
2049
|
-
* setSplits
|
|
2050
|
-
* nonpayable
|
|
2051
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2052
|
-
*/
|
|
2053
|
-
async setSplits(_wallets, _percentages, options) {
|
|
2054
|
-
if (!this.contract.write) {
|
|
2055
|
-
throw new Error('Wallet client is required for write operations');
|
|
2056
|
-
}
|
|
2057
|
-
return this.contract.write.setSplits([_wallets, _percentages], options);
|
|
2104
|
+
return this.contract.write.setNFTToken([_nftToken], options);
|
|
2058
2105
|
}
|
|
2059
2106
|
/**
|
|
2060
|
-
*
|
|
2107
|
+
* setRemainingTokensArray
|
|
2061
2108
|
* nonpayable
|
|
2062
2109
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2063
2110
|
*/
|
|
2064
|
-
async
|
|
2111
|
+
async setRemainingTokensArray(_unsoldTokens, options) {
|
|
2065
2112
|
if (!this.contract.write) {
|
|
2066
2113
|
throw new Error('Wallet client is required for write operations');
|
|
2067
2114
|
}
|
|
2068
|
-
return this.contract.write.
|
|
2115
|
+
return this.contract.write.setRemainingTokensArray([_unsoldTokens], options);
|
|
2069
2116
|
}
|
|
2070
2117
|
/**
|
|
2071
|
-
*
|
|
2118
|
+
* setSanctions
|
|
2072
2119
|
* nonpayable
|
|
2073
2120
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2074
2121
|
*/
|
|
2075
|
-
async
|
|
2122
|
+
async setSanctions(_sanctionContract, _applySanction, options) {
|
|
2076
2123
|
if (!this.contract.write) {
|
|
2077
2124
|
throw new Error('Wallet client is required for write operations');
|
|
2078
2125
|
}
|
|
2079
|
-
return this.contract.write.
|
|
2126
|
+
return this.contract.write.setSanctions([_sanctionContract, _applySanction], options);
|
|
2080
2127
|
}
|
|
2081
2128
|
/**
|
|
2082
|
-
*
|
|
2083
|
-
* nonpayable
|
|
2084
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2085
|
-
*/
|
|
2086
|
-
async setTimeConstant(_timeConstant, options) {
|
|
2087
|
-
if (!this.contract.write) {
|
|
2088
|
-
throw new Error('Wallet client is required for write operations');
|
|
2089
|
-
}
|
|
2090
|
-
return this.contract.write.setTimeConstant([_timeConstant], options);
|
|
2091
|
-
}
|
|
2092
|
-
/**
|
|
2093
|
-
* setUSDCInterface
|
|
2129
|
+
* setSplits
|
|
2094
2130
|
* nonpayable
|
|
2095
2131
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2096
2132
|
*/
|
|
2097
|
-
async
|
|
2133
|
+
async setSplits(_wallets, _percentages, options) {
|
|
2098
2134
|
if (!this.contract.write) {
|
|
2099
2135
|
throw new Error('Wallet client is required for write operations');
|
|
2100
2136
|
}
|
|
2101
|
-
return this.contract.write.
|
|
2137
|
+
return this.contract.write.setSplits([_wallets, _percentages], options);
|
|
2102
2138
|
}
|
|
2103
2139
|
/**
|
|
2104
|
-
*
|
|
2140
|
+
* setStakeingWhitelistStatus
|
|
2105
2141
|
* nonpayable
|
|
2106
2142
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2107
2143
|
*/
|
|
2108
|
-
async
|
|
2144
|
+
async setStakeingWhitelistStatus(_status, options) {
|
|
2109
2145
|
if (!this.contract.write) {
|
|
2110
2146
|
throw new Error('Wallet client is required for write operations');
|
|
2111
2147
|
}
|
|
2112
|
-
return this.contract.write.
|
|
2148
|
+
return this.contract.write.setStakeingWhitelistStatus([_status], options);
|
|
2113
2149
|
}
|
|
2114
2150
|
/**
|
|
2115
|
-
*
|
|
2151
|
+
* setTimeConstant
|
|
2116
2152
|
* nonpayable
|
|
2117
2153
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2118
2154
|
*/
|
|
2119
|
-
async
|
|
2155
|
+
async setTimeConstant(_timeConstant, options) {
|
|
2120
2156
|
if (!this.contract.write) {
|
|
2121
2157
|
throw new Error('Wallet client is required for write operations');
|
|
2122
2158
|
}
|
|
2123
|
-
return this.contract.write.
|
|
2159
|
+
return this.contract.write.setTimeConstant([_timeConstant], options);
|
|
2124
2160
|
}
|
|
2125
2161
|
/**
|
|
2126
2162
|
* transferOwnership
|
|
@@ -2223,6 +2259,14 @@ class PresaleV2_json {
|
|
|
2223
2259
|
async buyWithUSDC(amount, stake, options) {
|
|
2224
2260
|
return contract.simulate.buyWithUSDC([amount, stake], options);
|
|
2225
2261
|
},
|
|
2262
|
+
/**
|
|
2263
|
+
* Simulate buyWithUSDCWERT
|
|
2264
|
+
* Returns gas estimate and result without sending transaction
|
|
2265
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2266
|
+
*/
|
|
2267
|
+
async buyWithUSDCWERT(_user, _amount, stake, options) {
|
|
2268
|
+
return contract.simulate.buyWithUSDCWERT([_user, _amount, stake], options);
|
|
2269
|
+
},
|
|
2226
2270
|
/**
|
|
2227
2271
|
* Simulate buyWithUSDT
|
|
2228
2272
|
* Returns gas estimate and result without sending transaction
|
|
@@ -2367,6 +2411,14 @@ class PresaleV2_json {
|
|
|
2367
2411
|
async setDynamicTimeFlag(_dynamicTimeFlag, options) {
|
|
2368
2412
|
return contract.simulate.setDynamicTimeFlag([_dynamicTimeFlag], options);
|
|
2369
2413
|
},
|
|
2414
|
+
/**
|
|
2415
|
+
* Simulate setNFTToken
|
|
2416
|
+
* Returns gas estimate and result without sending transaction
|
|
2417
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2418
|
+
*/
|
|
2419
|
+
async setNFTToken(_nftToken, options) {
|
|
2420
|
+
return contract.simulate.setNFTToken([_nftToken], options);
|
|
2421
|
+
},
|
|
2370
2422
|
/**
|
|
2371
2423
|
* Simulate setRemainingTokensArray
|
|
2372
2424
|
* Returns gas estimate and result without sending transaction
|
|
@@ -2375,6 +2427,14 @@ class PresaleV2_json {
|
|
|
2375
2427
|
async setRemainingTokensArray(_unsoldTokens, options) {
|
|
2376
2428
|
return contract.simulate.setRemainingTokensArray([_unsoldTokens], options);
|
|
2377
2429
|
},
|
|
2430
|
+
/**
|
|
2431
|
+
* Simulate setSanctions
|
|
2432
|
+
* Returns gas estimate and result without sending transaction
|
|
2433
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2434
|
+
*/
|
|
2435
|
+
async setSanctions(_sanctionContract, _applySanction, options) {
|
|
2436
|
+
return contract.simulate.setSanctions([_sanctionContract, _applySanction], options);
|
|
2437
|
+
},
|
|
2378
2438
|
/**
|
|
2379
2439
|
* Simulate setSplits
|
|
2380
2440
|
* Returns gas estimate and result without sending transaction
|
|
@@ -2391,14 +2451,6 @@ class PresaleV2_json {
|
|
|
2391
2451
|
async setStakeingWhitelistStatus(_status, options) {
|
|
2392
2452
|
return contract.simulate.setStakeingWhitelistStatus([_status], options);
|
|
2393
2453
|
},
|
|
2394
|
-
/**
|
|
2395
|
-
* Simulate setStakingManager
|
|
2396
|
-
* Returns gas estimate and result without sending transaction
|
|
2397
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2398
|
-
*/
|
|
2399
|
-
async setStakingManager(_stakingManagerAddress, options) {
|
|
2400
|
-
return contract.simulate.setStakingManager([_stakingManagerAddress], options);
|
|
2401
|
-
},
|
|
2402
2454
|
/**
|
|
2403
2455
|
* Simulate setTimeConstant
|
|
2404
2456
|
* Returns gas estimate and result without sending transaction
|
|
@@ -2407,30 +2459,6 @@ class PresaleV2_json {
|
|
|
2407
2459
|
async setTimeConstant(_timeConstant, options) {
|
|
2408
2460
|
return contract.simulate.setTimeConstant([_timeConstant], options);
|
|
2409
2461
|
},
|
|
2410
|
-
/**
|
|
2411
|
-
* Simulate setUSDCInterface
|
|
2412
|
-
* Returns gas estimate and result without sending transaction
|
|
2413
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2414
|
-
*/
|
|
2415
|
-
async setUSDCInterface(_usdc, options) {
|
|
2416
|
-
return contract.simulate.setUSDCInterface([_usdc], options);
|
|
2417
|
-
},
|
|
2418
|
-
/**
|
|
2419
|
-
* Simulate startClaim
|
|
2420
|
-
* Returns gas estimate and result without sending transaction
|
|
2421
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2422
|
-
*/
|
|
2423
|
-
async startClaim(_claimStart, noOfTokens, _saleToken, _stakingManagerAddress, options) {
|
|
2424
|
-
return contract.simulate.startClaim([_claimStart, noOfTokens, _saleToken, _stakingManagerAddress], options);
|
|
2425
|
-
},
|
|
2426
|
-
/**
|
|
2427
|
-
* Simulate tokenTransfer
|
|
2428
|
-
* Returns gas estimate and result without sending transaction
|
|
2429
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2430
|
-
*/
|
|
2431
|
-
async tokenTransfer(amount, options) {
|
|
2432
|
-
return contract.simulate.tokenTransfer([amount], options);
|
|
2433
|
-
},
|
|
2434
2462
|
/**
|
|
2435
2463
|
* Simulate transferOwnership
|
|
2436
2464
|
* Returns gas estimate and result without sending transaction
|
|
@@ -2496,7 +2524,7 @@ class PresaleV2_json {
|
|
|
2496
2524
|
ClaimStartUpdated: (callback) => {
|
|
2497
2525
|
return this.publicClient.watchContractEvent({
|
|
2498
2526
|
address: this.contractAddress,
|
|
2499
|
-
abi: exports.
|
|
2527
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2500
2528
|
eventName: 'ClaimStartUpdated',
|
|
2501
2529
|
onLogs: (logs) => {
|
|
2502
2530
|
logs.forEach((log) => {
|
|
@@ -2514,7 +2542,7 @@ class PresaleV2_json {
|
|
|
2514
2542
|
Initialized: (callback) => {
|
|
2515
2543
|
return this.publicClient.watchContractEvent({
|
|
2516
2544
|
address: this.contractAddress,
|
|
2517
|
-
abi: exports.
|
|
2545
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2518
2546
|
eventName: 'Initialized',
|
|
2519
2547
|
onLogs: (logs) => {
|
|
2520
2548
|
logs.forEach((log) => {
|
|
@@ -2532,7 +2560,7 @@ class PresaleV2_json {
|
|
|
2532
2560
|
MaxTokensUpdated: (callback) => {
|
|
2533
2561
|
return this.publicClient.watchContractEvent({
|
|
2534
2562
|
address: this.contractAddress,
|
|
2535
|
-
abi: exports.
|
|
2563
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2536
2564
|
eventName: 'MaxTokensUpdated',
|
|
2537
2565
|
onLogs: (logs) => {
|
|
2538
2566
|
logs.forEach((log) => {
|
|
@@ -2550,7 +2578,7 @@ class PresaleV2_json {
|
|
|
2550
2578
|
OwnershipTransferred: (callback, filter) => {
|
|
2551
2579
|
return this.publicClient.watchContractEvent({
|
|
2552
2580
|
address: this.contractAddress,
|
|
2553
|
-
abi: exports.
|
|
2581
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2554
2582
|
eventName: 'OwnershipTransferred',
|
|
2555
2583
|
args: filter,
|
|
2556
2584
|
onLogs: (logs) => {
|
|
@@ -2569,7 +2597,7 @@ class PresaleV2_json {
|
|
|
2569
2597
|
Paused: (callback) => {
|
|
2570
2598
|
return this.publicClient.watchContractEvent({
|
|
2571
2599
|
address: this.contractAddress,
|
|
2572
|
-
abi: exports.
|
|
2600
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2573
2601
|
eventName: 'Paused',
|
|
2574
2602
|
onLogs: (logs) => {
|
|
2575
2603
|
logs.forEach((log) => {
|
|
@@ -2587,7 +2615,7 @@ class PresaleV2_json {
|
|
|
2587
2615
|
SaleTimeSet: (callback) => {
|
|
2588
2616
|
return this.publicClient.watchContractEvent({
|
|
2589
2617
|
address: this.contractAddress,
|
|
2590
|
-
abi: exports.
|
|
2618
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2591
2619
|
eventName: 'SaleTimeSet',
|
|
2592
2620
|
onLogs: (logs) => {
|
|
2593
2621
|
logs.forEach((log) => {
|
|
@@ -2605,7 +2633,7 @@ class PresaleV2_json {
|
|
|
2605
2633
|
SaleTimeUpdated: (callback, filter) => {
|
|
2606
2634
|
return this.publicClient.watchContractEvent({
|
|
2607
2635
|
address: this.contractAddress,
|
|
2608
|
-
abi: exports.
|
|
2636
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2609
2637
|
eventName: 'SaleTimeUpdated',
|
|
2610
2638
|
args: filter,
|
|
2611
2639
|
onLogs: (logs) => {
|
|
@@ -2624,7 +2652,7 @@ class PresaleV2_json {
|
|
|
2624
2652
|
TokensAdded: (callback, filter) => {
|
|
2625
2653
|
return this.publicClient.watchContractEvent({
|
|
2626
2654
|
address: this.contractAddress,
|
|
2627
|
-
abi: exports.
|
|
2655
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2628
2656
|
eventName: 'TokensAdded',
|
|
2629
2657
|
args: filter,
|
|
2630
2658
|
onLogs: (logs) => {
|
|
@@ -2643,7 +2671,7 @@ class PresaleV2_json {
|
|
|
2643
2671
|
TokensBought: (callback, filter) => {
|
|
2644
2672
|
return this.publicClient.watchContractEvent({
|
|
2645
2673
|
address: this.contractAddress,
|
|
2646
|
-
abi: exports.
|
|
2674
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2647
2675
|
eventName: 'TokensBought',
|
|
2648
2676
|
args: filter,
|
|
2649
2677
|
onLogs: (logs) => {
|
|
@@ -2662,7 +2690,7 @@ class PresaleV2_json {
|
|
|
2662
2690
|
TokensBoughtAndStaked: (callback, filter) => {
|
|
2663
2691
|
return this.publicClient.watchContractEvent({
|
|
2664
2692
|
address: this.contractAddress,
|
|
2665
|
-
abi: exports.
|
|
2693
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2666
2694
|
eventName: 'TokensBoughtAndStaked',
|
|
2667
2695
|
args: filter,
|
|
2668
2696
|
onLogs: (logs) => {
|
|
@@ -2681,7 +2709,7 @@ class PresaleV2_json {
|
|
|
2681
2709
|
TokensClaimed: (callback, filter) => {
|
|
2682
2710
|
return this.publicClient.watchContractEvent({
|
|
2683
2711
|
address: this.contractAddress,
|
|
2684
|
-
abi: exports.
|
|
2712
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2685
2713
|
eventName: 'TokensClaimed',
|
|
2686
2714
|
args: filter,
|
|
2687
2715
|
onLogs: (logs) => {
|
|
@@ -2700,7 +2728,7 @@ class PresaleV2_json {
|
|
|
2700
2728
|
TokensClaimedAndStaked: (callback, filter) => {
|
|
2701
2729
|
return this.publicClient.watchContractEvent({
|
|
2702
2730
|
address: this.contractAddress,
|
|
2703
|
-
abi: exports.
|
|
2731
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2704
2732
|
eventName: 'TokensClaimedAndStaked',
|
|
2705
2733
|
args: filter,
|
|
2706
2734
|
onLogs: (logs) => {
|
|
@@ -2719,7 +2747,7 @@ class PresaleV2_json {
|
|
|
2719
2747
|
Unpaused: (callback) => {
|
|
2720
2748
|
return this.publicClient.watchContractEvent({
|
|
2721
2749
|
address: this.contractAddress,
|
|
2722
|
-
abi: exports.
|
|
2750
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2723
2751
|
eventName: 'Unpaused',
|
|
2724
2752
|
onLogs: (logs) => {
|
|
2725
2753
|
logs.forEach((log) => {
|
|
@@ -2731,4 +2759,4 @@ class PresaleV2_json {
|
|
|
2731
2759
|
};
|
|
2732
2760
|
}
|
|
2733
2761
|
}
|
|
2734
|
-
exports.
|
|
2762
|
+
exports.PresaleV3_json = PresaleV3_json;
|