@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 +3 -3
- package/contracts/{PresaleV2_json.d.ts → PresaleV3_json.d.ts} +182 -44
- package/contracts/{PresaleV2_json.js → PresaleV3_json.js} +189 -59
- package/contracts/{PresaleV2_json.ts → PresaleV3_json.ts} +252 -74
- 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
|
{
|
|
@@ -1017,6 +1059,19 @@ exports.PresaleV2_jsonAbi = [
|
|
|
1017
1059
|
"stateMutability": "view",
|
|
1018
1060
|
"type": "function"
|
|
1019
1061
|
},
|
|
1062
|
+
{
|
|
1063
|
+
"inputs": [],
|
|
1064
|
+
"name": "sanctionsList",
|
|
1065
|
+
"outputs": [
|
|
1066
|
+
{
|
|
1067
|
+
"internalType": "contract ISanctionsList",
|
|
1068
|
+
"name": "",
|
|
1069
|
+
"type": "address"
|
|
1070
|
+
}
|
|
1071
|
+
],
|
|
1072
|
+
"stateMutability": "view",
|
|
1073
|
+
"type": "function"
|
|
1074
|
+
},
|
|
1020
1075
|
{
|
|
1021
1076
|
"inputs": [
|
|
1022
1077
|
{
|
|
@@ -1087,6 +1142,37 @@ exports.PresaleV2_jsonAbi = [
|
|
|
1087
1142
|
"stateMutability": "nonpayable",
|
|
1088
1143
|
"type": "function"
|
|
1089
1144
|
},
|
|
1145
|
+
{
|
|
1146
|
+
"inputs": [
|
|
1147
|
+
{
|
|
1148
|
+
"internalType": "address",
|
|
1149
|
+
"name": "_saleToken",
|
|
1150
|
+
"type": "address"
|
|
1151
|
+
}
|
|
1152
|
+
],
|
|
1153
|
+
"name": "setSaleToken",
|
|
1154
|
+
"outputs": [],
|
|
1155
|
+
"stateMutability": "nonpayable",
|
|
1156
|
+
"type": "function"
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
"inputs": [
|
|
1160
|
+
{
|
|
1161
|
+
"internalType": "address",
|
|
1162
|
+
"name": "_sanctionContract",
|
|
1163
|
+
"type": "address"
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
"internalType": "bool",
|
|
1167
|
+
"name": "_applySanction",
|
|
1168
|
+
"type": "bool"
|
|
1169
|
+
}
|
|
1170
|
+
],
|
|
1171
|
+
"name": "setSanctions",
|
|
1172
|
+
"outputs": [],
|
|
1173
|
+
"stateMutability": "nonpayable",
|
|
1174
|
+
"type": "function"
|
|
1175
|
+
},
|
|
1090
1176
|
{
|
|
1091
1177
|
"inputs": [
|
|
1092
1178
|
{
|
|
@@ -1144,19 +1230,6 @@ exports.PresaleV2_jsonAbi = [
|
|
|
1144
1230
|
"stateMutability": "nonpayable",
|
|
1145
1231
|
"type": "function"
|
|
1146
1232
|
},
|
|
1147
|
-
{
|
|
1148
|
-
"inputs": [
|
|
1149
|
-
{
|
|
1150
|
-
"internalType": "address",
|
|
1151
|
-
"name": "_usdc",
|
|
1152
|
-
"type": "address"
|
|
1153
|
-
}
|
|
1154
|
-
],
|
|
1155
|
-
"name": "setUSDCInterface",
|
|
1156
|
-
"outputs": [],
|
|
1157
|
-
"stateMutability": "nonpayable",
|
|
1158
|
-
"type": "function"
|
|
1159
|
-
},
|
|
1160
1233
|
{
|
|
1161
1234
|
"inputs": [],
|
|
1162
1235
|
"name": "stakeingWhitelistStatus",
|
|
@@ -1245,9 +1318,14 @@ exports.PresaleV2_jsonAbi = [
|
|
|
1245
1318
|
},
|
|
1246
1319
|
{
|
|
1247
1320
|
"inputs": [
|
|
1321
|
+
{
|
|
1322
|
+
"internalType": "address",
|
|
1323
|
+
"name": "_token",
|
|
1324
|
+
"type": "address"
|
|
1325
|
+
},
|
|
1248
1326
|
{
|
|
1249
1327
|
"internalType": "uint256",
|
|
1250
|
-
"name": "
|
|
1328
|
+
"name": "_amount",
|
|
1251
1329
|
"type": "uint256"
|
|
1252
1330
|
}
|
|
1253
1331
|
],
|
|
@@ -1463,7 +1541,7 @@ exports.PresaleV2_jsonAbi = [
|
|
|
1463
1541
|
}
|
|
1464
1542
|
];
|
|
1465
1543
|
/**
|
|
1466
|
-
*
|
|
1544
|
+
* PresaleV3_json Contract Class
|
|
1467
1545
|
*
|
|
1468
1546
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1469
1547
|
*
|
|
@@ -1471,12 +1549,12 @@ exports.PresaleV2_jsonAbi = [
|
|
|
1471
1549
|
* ```typescript
|
|
1472
1550
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1473
1551
|
* import { mainnet } from 'viem/chains';
|
|
1474
|
-
* import {
|
|
1552
|
+
* import { PresaleV3_json } from 'PresaleV3_json';
|
|
1475
1553
|
*
|
|
1476
1554
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1477
1555
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1478
1556
|
*
|
|
1479
|
-
* const contract = new
|
|
1557
|
+
* const contract = new PresaleV3_json('0x...', { publicClient, walletClient });
|
|
1480
1558
|
*
|
|
1481
1559
|
* // Read functions
|
|
1482
1560
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -1494,13 +1572,13 @@ exports.PresaleV2_jsonAbi = [
|
|
|
1494
1572
|
* });
|
|
1495
1573
|
* ```
|
|
1496
1574
|
*/
|
|
1497
|
-
class
|
|
1575
|
+
class PresaleV3_json {
|
|
1498
1576
|
constructor(address, clients) {
|
|
1499
1577
|
this.contractAddress = address;
|
|
1500
1578
|
this.publicClient = clients.publicClient;
|
|
1501
1579
|
this.contract = (0, viem_1.getContract)({
|
|
1502
1580
|
address,
|
|
1503
|
-
abi: exports.
|
|
1581
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
1504
1582
|
client: {
|
|
1505
1583
|
public: clients.publicClient,
|
|
1506
1584
|
wallet: clients.walletClient,
|
|
@@ -1547,6 +1625,13 @@ class PresaleV2_json {
|
|
|
1547
1625
|
async aggregatorInterface() {
|
|
1548
1626
|
return this.contract.read.aggregatorInterface();
|
|
1549
1627
|
}
|
|
1628
|
+
/**
|
|
1629
|
+
* applySanctions
|
|
1630
|
+
* view
|
|
1631
|
+
*/
|
|
1632
|
+
async applySanctions() {
|
|
1633
|
+
return this.contract.read.applySanctions();
|
|
1634
|
+
}
|
|
1550
1635
|
/**
|
|
1551
1636
|
* baseDecimals
|
|
1552
1637
|
* view
|
|
@@ -1701,6 +1786,13 @@ class PresaleV2_json {
|
|
|
1701
1786
|
async saleToken() {
|
|
1702
1787
|
return this.contract.read.saleToken();
|
|
1703
1788
|
}
|
|
1789
|
+
/**
|
|
1790
|
+
* sanctionsList
|
|
1791
|
+
* view
|
|
1792
|
+
*/
|
|
1793
|
+
async sanctionsList() {
|
|
1794
|
+
return this.contract.read.sanctionsList();
|
|
1795
|
+
}
|
|
1704
1796
|
/**
|
|
1705
1797
|
* stakeingWhitelistStatus
|
|
1706
1798
|
* view
|
|
@@ -1836,6 +1928,17 @@ class PresaleV2_json {
|
|
|
1836
1928
|
}
|
|
1837
1929
|
return this.contract.write.buyWithUSDC([amount, stake], options);
|
|
1838
1930
|
}
|
|
1931
|
+
/**
|
|
1932
|
+
* buyWithUSDCWERT
|
|
1933
|
+
* nonpayable
|
|
1934
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1935
|
+
*/
|
|
1936
|
+
async buyWithUSDCWERT(_user, _amount, stake, options) {
|
|
1937
|
+
if (!this.contract.write) {
|
|
1938
|
+
throw new Error('Wallet client is required for write operations');
|
|
1939
|
+
}
|
|
1940
|
+
return this.contract.write.buyWithUSDCWERT([_user, _amount, stake], options);
|
|
1941
|
+
}
|
|
1839
1942
|
/**
|
|
1840
1943
|
* buyWithUSDT
|
|
1841
1944
|
* nonpayable
|
|
@@ -2045,6 +2148,28 @@ class PresaleV2_json {
|
|
|
2045
2148
|
}
|
|
2046
2149
|
return this.contract.write.setRemainingTokensArray([_unsoldTokens], options);
|
|
2047
2150
|
}
|
|
2151
|
+
/**
|
|
2152
|
+
* setSaleToken
|
|
2153
|
+
* nonpayable
|
|
2154
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2155
|
+
*/
|
|
2156
|
+
async setSaleToken(_saleToken, options) {
|
|
2157
|
+
if (!this.contract.write) {
|
|
2158
|
+
throw new Error('Wallet client is required for write operations');
|
|
2159
|
+
}
|
|
2160
|
+
return this.contract.write.setSaleToken([_saleToken], options);
|
|
2161
|
+
}
|
|
2162
|
+
/**
|
|
2163
|
+
* setSanctions
|
|
2164
|
+
* nonpayable
|
|
2165
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2166
|
+
*/
|
|
2167
|
+
async setSanctions(_sanctionContract, _applySanction, options) {
|
|
2168
|
+
if (!this.contract.write) {
|
|
2169
|
+
throw new Error('Wallet client is required for write operations');
|
|
2170
|
+
}
|
|
2171
|
+
return this.contract.write.setSanctions([_sanctionContract, _applySanction], options);
|
|
2172
|
+
}
|
|
2048
2173
|
/**
|
|
2049
2174
|
* setSplits
|
|
2050
2175
|
* nonpayable
|
|
@@ -2089,17 +2214,6 @@ class PresaleV2_json {
|
|
|
2089
2214
|
}
|
|
2090
2215
|
return this.contract.write.setTimeConstant([_timeConstant], options);
|
|
2091
2216
|
}
|
|
2092
|
-
/**
|
|
2093
|
-
* setUSDCInterface
|
|
2094
|
-
* nonpayable
|
|
2095
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2096
|
-
*/
|
|
2097
|
-
async setUSDCInterface(_usdc, options) {
|
|
2098
|
-
if (!this.contract.write) {
|
|
2099
|
-
throw new Error('Wallet client is required for write operations');
|
|
2100
|
-
}
|
|
2101
|
-
return this.contract.write.setUSDCInterface([_usdc], options);
|
|
2102
|
-
}
|
|
2103
2217
|
/**
|
|
2104
2218
|
* startClaim
|
|
2105
2219
|
* nonpayable
|
|
@@ -2116,11 +2230,11 @@ class PresaleV2_json {
|
|
|
2116
2230
|
* nonpayable
|
|
2117
2231
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2118
2232
|
*/
|
|
2119
|
-
async tokenTransfer(
|
|
2233
|
+
async tokenTransfer(_token, _amount, options) {
|
|
2120
2234
|
if (!this.contract.write) {
|
|
2121
2235
|
throw new Error('Wallet client is required for write operations');
|
|
2122
2236
|
}
|
|
2123
|
-
return this.contract.write.tokenTransfer([
|
|
2237
|
+
return this.contract.write.tokenTransfer([_token, _amount], options);
|
|
2124
2238
|
}
|
|
2125
2239
|
/**
|
|
2126
2240
|
* transferOwnership
|
|
@@ -2223,6 +2337,14 @@ class PresaleV2_json {
|
|
|
2223
2337
|
async buyWithUSDC(amount, stake, options) {
|
|
2224
2338
|
return contract.simulate.buyWithUSDC([amount, stake], options);
|
|
2225
2339
|
},
|
|
2340
|
+
/**
|
|
2341
|
+
* Simulate buyWithUSDCWERT
|
|
2342
|
+
* Returns gas estimate and result without sending transaction
|
|
2343
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2344
|
+
*/
|
|
2345
|
+
async buyWithUSDCWERT(_user, _amount, stake, options) {
|
|
2346
|
+
return contract.simulate.buyWithUSDCWERT([_user, _amount, stake], options);
|
|
2347
|
+
},
|
|
2226
2348
|
/**
|
|
2227
2349
|
* Simulate buyWithUSDT
|
|
2228
2350
|
* Returns gas estimate and result without sending transaction
|
|
@@ -2375,6 +2497,22 @@ class PresaleV2_json {
|
|
|
2375
2497
|
async setRemainingTokensArray(_unsoldTokens, options) {
|
|
2376
2498
|
return contract.simulate.setRemainingTokensArray([_unsoldTokens], options);
|
|
2377
2499
|
},
|
|
2500
|
+
/**
|
|
2501
|
+
* Simulate setSaleToken
|
|
2502
|
+
* Returns gas estimate and result without sending transaction
|
|
2503
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2504
|
+
*/
|
|
2505
|
+
async setSaleToken(_saleToken, options) {
|
|
2506
|
+
return contract.simulate.setSaleToken([_saleToken], options);
|
|
2507
|
+
},
|
|
2508
|
+
/**
|
|
2509
|
+
* Simulate setSanctions
|
|
2510
|
+
* Returns gas estimate and result without sending transaction
|
|
2511
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2512
|
+
*/
|
|
2513
|
+
async setSanctions(_sanctionContract, _applySanction, options) {
|
|
2514
|
+
return contract.simulate.setSanctions([_sanctionContract, _applySanction], options);
|
|
2515
|
+
},
|
|
2378
2516
|
/**
|
|
2379
2517
|
* Simulate setSplits
|
|
2380
2518
|
* Returns gas estimate and result without sending transaction
|
|
@@ -2407,14 +2545,6 @@ class PresaleV2_json {
|
|
|
2407
2545
|
async setTimeConstant(_timeConstant, options) {
|
|
2408
2546
|
return contract.simulate.setTimeConstant([_timeConstant], options);
|
|
2409
2547
|
},
|
|
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
2548
|
/**
|
|
2419
2549
|
* Simulate startClaim
|
|
2420
2550
|
* Returns gas estimate and result without sending transaction
|
|
@@ -2428,8 +2558,8 @@ class PresaleV2_json {
|
|
|
2428
2558
|
* Returns gas estimate and result without sending transaction
|
|
2429
2559
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2430
2560
|
*/
|
|
2431
|
-
async tokenTransfer(
|
|
2432
|
-
return contract.simulate.tokenTransfer([
|
|
2561
|
+
async tokenTransfer(_token, _amount, options) {
|
|
2562
|
+
return contract.simulate.tokenTransfer([_token, _amount], options);
|
|
2433
2563
|
},
|
|
2434
2564
|
/**
|
|
2435
2565
|
* Simulate transferOwnership
|
|
@@ -2496,7 +2626,7 @@ class PresaleV2_json {
|
|
|
2496
2626
|
ClaimStartUpdated: (callback) => {
|
|
2497
2627
|
return this.publicClient.watchContractEvent({
|
|
2498
2628
|
address: this.contractAddress,
|
|
2499
|
-
abi: exports.
|
|
2629
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2500
2630
|
eventName: 'ClaimStartUpdated',
|
|
2501
2631
|
onLogs: (logs) => {
|
|
2502
2632
|
logs.forEach((log) => {
|
|
@@ -2514,7 +2644,7 @@ class PresaleV2_json {
|
|
|
2514
2644
|
Initialized: (callback) => {
|
|
2515
2645
|
return this.publicClient.watchContractEvent({
|
|
2516
2646
|
address: this.contractAddress,
|
|
2517
|
-
abi: exports.
|
|
2647
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2518
2648
|
eventName: 'Initialized',
|
|
2519
2649
|
onLogs: (logs) => {
|
|
2520
2650
|
logs.forEach((log) => {
|
|
@@ -2532,7 +2662,7 @@ class PresaleV2_json {
|
|
|
2532
2662
|
MaxTokensUpdated: (callback) => {
|
|
2533
2663
|
return this.publicClient.watchContractEvent({
|
|
2534
2664
|
address: this.contractAddress,
|
|
2535
|
-
abi: exports.
|
|
2665
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2536
2666
|
eventName: 'MaxTokensUpdated',
|
|
2537
2667
|
onLogs: (logs) => {
|
|
2538
2668
|
logs.forEach((log) => {
|
|
@@ -2550,7 +2680,7 @@ class PresaleV2_json {
|
|
|
2550
2680
|
OwnershipTransferred: (callback, filter) => {
|
|
2551
2681
|
return this.publicClient.watchContractEvent({
|
|
2552
2682
|
address: this.contractAddress,
|
|
2553
|
-
abi: exports.
|
|
2683
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2554
2684
|
eventName: 'OwnershipTransferred',
|
|
2555
2685
|
args: filter,
|
|
2556
2686
|
onLogs: (logs) => {
|
|
@@ -2569,7 +2699,7 @@ class PresaleV2_json {
|
|
|
2569
2699
|
Paused: (callback) => {
|
|
2570
2700
|
return this.publicClient.watchContractEvent({
|
|
2571
2701
|
address: this.contractAddress,
|
|
2572
|
-
abi: exports.
|
|
2702
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2573
2703
|
eventName: 'Paused',
|
|
2574
2704
|
onLogs: (logs) => {
|
|
2575
2705
|
logs.forEach((log) => {
|
|
@@ -2587,7 +2717,7 @@ class PresaleV2_json {
|
|
|
2587
2717
|
SaleTimeSet: (callback) => {
|
|
2588
2718
|
return this.publicClient.watchContractEvent({
|
|
2589
2719
|
address: this.contractAddress,
|
|
2590
|
-
abi: exports.
|
|
2720
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2591
2721
|
eventName: 'SaleTimeSet',
|
|
2592
2722
|
onLogs: (logs) => {
|
|
2593
2723
|
logs.forEach((log) => {
|
|
@@ -2605,7 +2735,7 @@ class PresaleV2_json {
|
|
|
2605
2735
|
SaleTimeUpdated: (callback, filter) => {
|
|
2606
2736
|
return this.publicClient.watchContractEvent({
|
|
2607
2737
|
address: this.contractAddress,
|
|
2608
|
-
abi: exports.
|
|
2738
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2609
2739
|
eventName: 'SaleTimeUpdated',
|
|
2610
2740
|
args: filter,
|
|
2611
2741
|
onLogs: (logs) => {
|
|
@@ -2624,7 +2754,7 @@ class PresaleV2_json {
|
|
|
2624
2754
|
TokensAdded: (callback, filter) => {
|
|
2625
2755
|
return this.publicClient.watchContractEvent({
|
|
2626
2756
|
address: this.contractAddress,
|
|
2627
|
-
abi: exports.
|
|
2757
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2628
2758
|
eventName: 'TokensAdded',
|
|
2629
2759
|
args: filter,
|
|
2630
2760
|
onLogs: (logs) => {
|
|
@@ -2643,7 +2773,7 @@ class PresaleV2_json {
|
|
|
2643
2773
|
TokensBought: (callback, filter) => {
|
|
2644
2774
|
return this.publicClient.watchContractEvent({
|
|
2645
2775
|
address: this.contractAddress,
|
|
2646
|
-
abi: exports.
|
|
2776
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2647
2777
|
eventName: 'TokensBought',
|
|
2648
2778
|
args: filter,
|
|
2649
2779
|
onLogs: (logs) => {
|
|
@@ -2662,7 +2792,7 @@ class PresaleV2_json {
|
|
|
2662
2792
|
TokensBoughtAndStaked: (callback, filter) => {
|
|
2663
2793
|
return this.publicClient.watchContractEvent({
|
|
2664
2794
|
address: this.contractAddress,
|
|
2665
|
-
abi: exports.
|
|
2795
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2666
2796
|
eventName: 'TokensBoughtAndStaked',
|
|
2667
2797
|
args: filter,
|
|
2668
2798
|
onLogs: (logs) => {
|
|
@@ -2681,7 +2811,7 @@ class PresaleV2_json {
|
|
|
2681
2811
|
TokensClaimed: (callback, filter) => {
|
|
2682
2812
|
return this.publicClient.watchContractEvent({
|
|
2683
2813
|
address: this.contractAddress,
|
|
2684
|
-
abi: exports.
|
|
2814
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2685
2815
|
eventName: 'TokensClaimed',
|
|
2686
2816
|
args: filter,
|
|
2687
2817
|
onLogs: (logs) => {
|
|
@@ -2700,7 +2830,7 @@ class PresaleV2_json {
|
|
|
2700
2830
|
TokensClaimedAndStaked: (callback, filter) => {
|
|
2701
2831
|
return this.publicClient.watchContractEvent({
|
|
2702
2832
|
address: this.contractAddress,
|
|
2703
|
-
abi: exports.
|
|
2833
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2704
2834
|
eventName: 'TokensClaimedAndStaked',
|
|
2705
2835
|
args: filter,
|
|
2706
2836
|
onLogs: (logs) => {
|
|
@@ -2719,7 +2849,7 @@ class PresaleV2_json {
|
|
|
2719
2849
|
Unpaused: (callback) => {
|
|
2720
2850
|
return this.publicClient.watchContractEvent({
|
|
2721
2851
|
address: this.contractAddress,
|
|
2722
|
-
abi: exports.
|
|
2852
|
+
abi: exports.PresaleV3_jsonAbi,
|
|
2723
2853
|
eventName: 'Unpaused',
|
|
2724
2854
|
onLogs: (logs) => {
|
|
2725
2855
|
logs.forEach((log) => {
|
|
@@ -2731,4 +2861,4 @@ class PresaleV2_json {
|
|
|
2731
2861
|
};
|
|
2732
2862
|
}
|
|
2733
2863
|
}
|
|
2734
|
-
exports.
|
|
2864
|
+
exports.PresaleV3_json = PresaleV3_json;
|