@gitmyabi/presale 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/contracts/{PresaleV3_json.d.ts → PresaleV1_json.d.ts} +91 -159
- package/contracts/{PresaleV3_json.js → PresaleV1_json.js} +99 -139
- package/contracts/{PresaleV3_json.ts → PresaleV1_json.ts} +126 -212
- 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.PresaleV1_json = exports.PresaleV1_jsonAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* PresaleV1_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.PresaleV1_jsonAbi = [
|
|
11
11
|
{
|
|
12
12
|
"inputs": [],
|
|
13
13
|
"stateMutability": "nonpayable",
|
|
@@ -506,35 +506,6 @@ exports.PresaleV3_jsonAbi = [
|
|
|
506
506
|
"stateMutability": "nonpayable",
|
|
507
507
|
"type": "function"
|
|
508
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
|
-
},
|
|
538
509
|
{
|
|
539
510
|
"inputs": [
|
|
540
511
|
{
|
|
@@ -803,6 +774,64 @@ exports.PresaleV3_jsonAbi = [
|
|
|
803
774
|
"stateMutability": "nonpayable",
|
|
804
775
|
"type": "function"
|
|
805
776
|
},
|
|
777
|
+
{
|
|
778
|
+
"inputs": [
|
|
779
|
+
{
|
|
780
|
+
"internalType": "address",
|
|
781
|
+
"name": "_oracle",
|
|
782
|
+
"type": "address"
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"internalType": "address",
|
|
786
|
+
"name": "_usdt",
|
|
787
|
+
"type": "address"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"internalType": "address",
|
|
791
|
+
"name": "_usdc",
|
|
792
|
+
"type": "address"
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"internalType": "uint256",
|
|
796
|
+
"name": "_startTime",
|
|
797
|
+
"type": "uint256"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"internalType": "uint256",
|
|
801
|
+
"name": "_endTime",
|
|
802
|
+
"type": "uint256"
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"internalType": "uint256[][3]",
|
|
806
|
+
"name": "_rounds",
|
|
807
|
+
"type": "uint256[][3]"
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
"internalType": "uint256",
|
|
811
|
+
"name": "_maxTokensToBuy",
|
|
812
|
+
"type": "uint256"
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"internalType": "address",
|
|
816
|
+
"name": "_paymentWallet",
|
|
817
|
+
"type": "address"
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"internalType": "bool",
|
|
821
|
+
"name": "_dynamicTimeFlag",
|
|
822
|
+
"type": "bool"
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
"internalType": "uint256",
|
|
826
|
+
"name": "_timeConstant",
|
|
827
|
+
"type": "uint256"
|
|
828
|
+
}
|
|
829
|
+
],
|
|
830
|
+
"name": "initialize",
|
|
831
|
+
"outputs": [],
|
|
832
|
+
"stateMutability": "nonpayable",
|
|
833
|
+
"type": "function"
|
|
834
|
+
},
|
|
806
835
|
{
|
|
807
836
|
"inputs": [
|
|
808
837
|
{
|
|
@@ -1142,19 +1171,6 @@ exports.PresaleV3_jsonAbi = [
|
|
|
1142
1171
|
"stateMutability": "nonpayable",
|
|
1143
1172
|
"type": "function"
|
|
1144
1173
|
},
|
|
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
1174
|
{
|
|
1159
1175
|
"inputs": [
|
|
1160
1176
|
{
|
|
@@ -1316,24 +1332,6 @@ exports.PresaleV3_jsonAbi = [
|
|
|
1316
1332
|
"stateMutability": "view",
|
|
1317
1333
|
"type": "function"
|
|
1318
1334
|
},
|
|
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
|
-
},
|
|
1337
1335
|
{
|
|
1338
1336
|
"inputs": [],
|
|
1339
1337
|
"name": "totalBoughtAndStaked",
|
|
@@ -1541,7 +1539,7 @@ exports.PresaleV3_jsonAbi = [
|
|
|
1541
1539
|
}
|
|
1542
1540
|
];
|
|
1543
1541
|
/**
|
|
1544
|
-
*
|
|
1542
|
+
* PresaleV1_json Contract Class
|
|
1545
1543
|
*
|
|
1546
1544
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1547
1545
|
*
|
|
@@ -1549,12 +1547,12 @@ exports.PresaleV3_jsonAbi = [
|
|
|
1549
1547
|
* ```typescript
|
|
1550
1548
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1551
1549
|
* import { mainnet } from 'viem/chains';
|
|
1552
|
-
* import {
|
|
1550
|
+
* import { PresaleV1_json } from 'PresaleV1_json';
|
|
1553
1551
|
*
|
|
1554
1552
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1555
1553
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1556
1554
|
*
|
|
1557
|
-
* const contract = new
|
|
1555
|
+
* const contract = new PresaleV1_json('0x...', { publicClient, walletClient });
|
|
1558
1556
|
*
|
|
1559
1557
|
* // Read functions
|
|
1560
1558
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -1572,13 +1570,13 @@ exports.PresaleV3_jsonAbi = [
|
|
|
1572
1570
|
* });
|
|
1573
1571
|
* ```
|
|
1574
1572
|
*/
|
|
1575
|
-
class
|
|
1573
|
+
class PresaleV1_json {
|
|
1576
1574
|
constructor(address, clients) {
|
|
1577
1575
|
this.contractAddress = address;
|
|
1578
1576
|
this.publicClient = clients.publicClient;
|
|
1579
1577
|
this.contract = (0, viem_1.getContract)({
|
|
1580
1578
|
address,
|
|
1581
|
-
abi: exports.
|
|
1579
|
+
abi: exports.PresaleV1_jsonAbi,
|
|
1582
1580
|
client: {
|
|
1583
1581
|
public: clients.publicClient,
|
|
1584
1582
|
wallet: clients.walletClient,
|
|
@@ -1928,17 +1926,6 @@ class PresaleV3_json {
|
|
|
1928
1926
|
}
|
|
1929
1927
|
return this.contract.write.buyWithUSDC([amount, stake], options);
|
|
1930
1928
|
}
|
|
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
|
-
}
|
|
1942
1929
|
/**
|
|
1943
1930
|
* buyWithUSDT
|
|
1944
1931
|
* nonpayable
|
|
@@ -2038,6 +2025,17 @@ class PresaleV3_json {
|
|
|
2038
2025
|
}
|
|
2039
2026
|
return this.contract.write.incrementCurrentStep(options);
|
|
2040
2027
|
}
|
|
2028
|
+
/**
|
|
2029
|
+
* initialize
|
|
2030
|
+
* nonpayable
|
|
2031
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2032
|
+
*/
|
|
2033
|
+
async initialize(_oracle, _usdt, _usdc, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant, options) {
|
|
2034
|
+
if (!this.contract.write) {
|
|
2035
|
+
throw new Error('Wallet client is required for write operations');
|
|
2036
|
+
}
|
|
2037
|
+
return this.contract.write.initialize([_oracle, _usdt, _usdc, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant], options);
|
|
2038
|
+
}
|
|
2041
2039
|
/**
|
|
2042
2040
|
* pause
|
|
2043
2041
|
* nonpayable
|
|
@@ -2148,17 +2146,6 @@ class PresaleV3_json {
|
|
|
2148
2146
|
}
|
|
2149
2147
|
return this.contract.write.setRemainingTokensArray([_unsoldTokens], options);
|
|
2150
2148
|
}
|
|
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
2149
|
/**
|
|
2163
2150
|
* setSanctions
|
|
2164
2151
|
* nonpayable
|
|
@@ -2225,17 +2212,6 @@ class PresaleV3_json {
|
|
|
2225
2212
|
}
|
|
2226
2213
|
return this.contract.write.startClaim([_claimStart, noOfTokens, _saleToken, _stakingManagerAddress], options);
|
|
2227
2214
|
}
|
|
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
|
-
}
|
|
2239
2215
|
/**
|
|
2240
2216
|
* transferOwnership
|
|
2241
2217
|
* nonpayable
|
|
@@ -2337,14 +2313,6 @@ class PresaleV3_json {
|
|
|
2337
2313
|
async buyWithUSDC(amount, stake, options) {
|
|
2338
2314
|
return contract.simulate.buyWithUSDC([amount, stake], options);
|
|
2339
2315
|
},
|
|
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
|
-
},
|
|
2348
2316
|
/**
|
|
2349
2317
|
* Simulate buyWithUSDT
|
|
2350
2318
|
* Returns gas estimate and result without sending transaction
|
|
@@ -2417,6 +2385,14 @@ class PresaleV3_json {
|
|
|
2417
2385
|
async incrementCurrentStep(options) {
|
|
2418
2386
|
return contract.simulate.incrementCurrentStep(options);
|
|
2419
2387
|
},
|
|
2388
|
+
/**
|
|
2389
|
+
* Simulate initialize
|
|
2390
|
+
* Returns gas estimate and result without sending transaction
|
|
2391
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2392
|
+
*/
|
|
2393
|
+
async initialize(_oracle, _usdt, _usdc, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant, options) {
|
|
2394
|
+
return contract.simulate.initialize([_oracle, _usdt, _usdc, _startTime, _endTime, _rounds, _maxTokensToBuy, _paymentWallet, _dynamicTimeFlag, _timeConstant], options);
|
|
2395
|
+
},
|
|
2420
2396
|
/**
|
|
2421
2397
|
* Simulate pause
|
|
2422
2398
|
* Returns gas estimate and result without sending transaction
|
|
@@ -2497,14 +2473,6 @@ class PresaleV3_json {
|
|
|
2497
2473
|
async setRemainingTokensArray(_unsoldTokens, options) {
|
|
2498
2474
|
return contract.simulate.setRemainingTokensArray([_unsoldTokens], options);
|
|
2499
2475
|
},
|
|
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
2476
|
/**
|
|
2509
2477
|
* Simulate setSanctions
|
|
2510
2478
|
* Returns gas estimate and result without sending transaction
|
|
@@ -2553,14 +2521,6 @@ class PresaleV3_json {
|
|
|
2553
2521
|
async startClaim(_claimStart, noOfTokens, _saleToken, _stakingManagerAddress, options) {
|
|
2554
2522
|
return contract.simulate.startClaim([_claimStart, noOfTokens, _saleToken, _stakingManagerAddress], options);
|
|
2555
2523
|
},
|
|
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
|
-
},
|
|
2564
2524
|
/**
|
|
2565
2525
|
* Simulate transferOwnership
|
|
2566
2526
|
* Returns gas estimate and result without sending transaction
|
|
@@ -2626,7 +2586,7 @@ class PresaleV3_json {
|
|
|
2626
2586
|
ClaimStartUpdated: (callback) => {
|
|
2627
2587
|
return this.publicClient.watchContractEvent({
|
|
2628
2588
|
address: this.contractAddress,
|
|
2629
|
-
abi: exports.
|
|
2589
|
+
abi: exports.PresaleV1_jsonAbi,
|
|
2630
2590
|
eventName: 'ClaimStartUpdated',
|
|
2631
2591
|
onLogs: (logs) => {
|
|
2632
2592
|
logs.forEach((log) => {
|
|
@@ -2644,7 +2604,7 @@ class PresaleV3_json {
|
|
|
2644
2604
|
Initialized: (callback) => {
|
|
2645
2605
|
return this.publicClient.watchContractEvent({
|
|
2646
2606
|
address: this.contractAddress,
|
|
2647
|
-
abi: exports.
|
|
2607
|
+
abi: exports.PresaleV1_jsonAbi,
|
|
2648
2608
|
eventName: 'Initialized',
|
|
2649
2609
|
onLogs: (logs) => {
|
|
2650
2610
|
logs.forEach((log) => {
|
|
@@ -2662,7 +2622,7 @@ class PresaleV3_json {
|
|
|
2662
2622
|
MaxTokensUpdated: (callback) => {
|
|
2663
2623
|
return this.publicClient.watchContractEvent({
|
|
2664
2624
|
address: this.contractAddress,
|
|
2665
|
-
abi: exports.
|
|
2625
|
+
abi: exports.PresaleV1_jsonAbi,
|
|
2666
2626
|
eventName: 'MaxTokensUpdated',
|
|
2667
2627
|
onLogs: (logs) => {
|
|
2668
2628
|
logs.forEach((log) => {
|
|
@@ -2680,7 +2640,7 @@ class PresaleV3_json {
|
|
|
2680
2640
|
OwnershipTransferred: (callback, filter) => {
|
|
2681
2641
|
return this.publicClient.watchContractEvent({
|
|
2682
2642
|
address: this.contractAddress,
|
|
2683
|
-
abi: exports.
|
|
2643
|
+
abi: exports.PresaleV1_jsonAbi,
|
|
2684
2644
|
eventName: 'OwnershipTransferred',
|
|
2685
2645
|
args: filter,
|
|
2686
2646
|
onLogs: (logs) => {
|
|
@@ -2699,7 +2659,7 @@ class PresaleV3_json {
|
|
|
2699
2659
|
Paused: (callback) => {
|
|
2700
2660
|
return this.publicClient.watchContractEvent({
|
|
2701
2661
|
address: this.contractAddress,
|
|
2702
|
-
abi: exports.
|
|
2662
|
+
abi: exports.PresaleV1_jsonAbi,
|
|
2703
2663
|
eventName: 'Paused',
|
|
2704
2664
|
onLogs: (logs) => {
|
|
2705
2665
|
logs.forEach((log) => {
|
|
@@ -2717,7 +2677,7 @@ class PresaleV3_json {
|
|
|
2717
2677
|
SaleTimeSet: (callback) => {
|
|
2718
2678
|
return this.publicClient.watchContractEvent({
|
|
2719
2679
|
address: this.contractAddress,
|
|
2720
|
-
abi: exports.
|
|
2680
|
+
abi: exports.PresaleV1_jsonAbi,
|
|
2721
2681
|
eventName: 'SaleTimeSet',
|
|
2722
2682
|
onLogs: (logs) => {
|
|
2723
2683
|
logs.forEach((log) => {
|
|
@@ -2735,7 +2695,7 @@ class PresaleV3_json {
|
|
|
2735
2695
|
SaleTimeUpdated: (callback, filter) => {
|
|
2736
2696
|
return this.publicClient.watchContractEvent({
|
|
2737
2697
|
address: this.contractAddress,
|
|
2738
|
-
abi: exports.
|
|
2698
|
+
abi: exports.PresaleV1_jsonAbi,
|
|
2739
2699
|
eventName: 'SaleTimeUpdated',
|
|
2740
2700
|
args: filter,
|
|
2741
2701
|
onLogs: (logs) => {
|
|
@@ -2754,7 +2714,7 @@ class PresaleV3_json {
|
|
|
2754
2714
|
TokensAdded: (callback, filter) => {
|
|
2755
2715
|
return this.publicClient.watchContractEvent({
|
|
2756
2716
|
address: this.contractAddress,
|
|
2757
|
-
abi: exports.
|
|
2717
|
+
abi: exports.PresaleV1_jsonAbi,
|
|
2758
2718
|
eventName: 'TokensAdded',
|
|
2759
2719
|
args: filter,
|
|
2760
2720
|
onLogs: (logs) => {
|
|
@@ -2773,7 +2733,7 @@ class PresaleV3_json {
|
|
|
2773
2733
|
TokensBought: (callback, filter) => {
|
|
2774
2734
|
return this.publicClient.watchContractEvent({
|
|
2775
2735
|
address: this.contractAddress,
|
|
2776
|
-
abi: exports.
|
|
2736
|
+
abi: exports.PresaleV1_jsonAbi,
|
|
2777
2737
|
eventName: 'TokensBought',
|
|
2778
2738
|
args: filter,
|
|
2779
2739
|
onLogs: (logs) => {
|
|
@@ -2792,7 +2752,7 @@ class PresaleV3_json {
|
|
|
2792
2752
|
TokensBoughtAndStaked: (callback, filter) => {
|
|
2793
2753
|
return this.publicClient.watchContractEvent({
|
|
2794
2754
|
address: this.contractAddress,
|
|
2795
|
-
abi: exports.
|
|
2755
|
+
abi: exports.PresaleV1_jsonAbi,
|
|
2796
2756
|
eventName: 'TokensBoughtAndStaked',
|
|
2797
2757
|
args: filter,
|
|
2798
2758
|
onLogs: (logs) => {
|
|
@@ -2811,7 +2771,7 @@ class PresaleV3_json {
|
|
|
2811
2771
|
TokensClaimed: (callback, filter) => {
|
|
2812
2772
|
return this.publicClient.watchContractEvent({
|
|
2813
2773
|
address: this.contractAddress,
|
|
2814
|
-
abi: exports.
|
|
2774
|
+
abi: exports.PresaleV1_jsonAbi,
|
|
2815
2775
|
eventName: 'TokensClaimed',
|
|
2816
2776
|
args: filter,
|
|
2817
2777
|
onLogs: (logs) => {
|
|
@@ -2830,7 +2790,7 @@ class PresaleV3_json {
|
|
|
2830
2790
|
TokensClaimedAndStaked: (callback, filter) => {
|
|
2831
2791
|
return this.publicClient.watchContractEvent({
|
|
2832
2792
|
address: this.contractAddress,
|
|
2833
|
-
abi: exports.
|
|
2793
|
+
abi: exports.PresaleV1_jsonAbi,
|
|
2834
2794
|
eventName: 'TokensClaimedAndStaked',
|
|
2835
2795
|
args: filter,
|
|
2836
2796
|
onLogs: (logs) => {
|
|
@@ -2849,7 +2809,7 @@ class PresaleV3_json {
|
|
|
2849
2809
|
Unpaused: (callback) => {
|
|
2850
2810
|
return this.publicClient.watchContractEvent({
|
|
2851
2811
|
address: this.contractAddress,
|
|
2852
|
-
abi: exports.
|
|
2812
|
+
abi: exports.PresaleV1_jsonAbi,
|
|
2853
2813
|
eventName: 'Unpaused',
|
|
2854
2814
|
onLogs: (logs) => {
|
|
2855
2815
|
logs.forEach((log) => {
|
|
@@ -2861,4 +2821,4 @@ class PresaleV3_json {
|
|
|
2861
2821
|
};
|
|
2862
2822
|
}
|
|
2863
2823
|
}
|
|
2864
|
-
exports.
|
|
2824
|
+
exports.PresaleV1_json = PresaleV1_json;
|