@cloakely/sdk 0.2.6 → 0.3.1
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/dist/abis.d.ts +144 -0
- package/dist/abis.js +188 -0
- package/dist/bytecode.d.ts +5 -4
- package/dist/bytecode.js +1 -1
- package/dist/cloak.d.ts +67 -6
- package/dist/cloak.js +14 -12
- package/dist/deployments.d.ts +17 -6
- package/dist/deployments.js +27 -11
- package/dist/private/client.d.ts +7 -2
- package/dist/private/client.js +14 -9
- package/package.json +1 -1
package/dist/abis.d.ts
CHANGED
|
@@ -1492,6 +1492,20 @@ export declare const cloakAuctionAbi: readonly [{
|
|
|
1492
1492
|
readonly internalType: "uint256";
|
|
1493
1493
|
}];
|
|
1494
1494
|
readonly stateMutability: "view";
|
|
1495
|
+
}, {
|
|
1496
|
+
readonly type: "function";
|
|
1497
|
+
readonly name: "refundOwed";
|
|
1498
|
+
readonly inputs: readonly [{
|
|
1499
|
+
readonly name: "";
|
|
1500
|
+
readonly type: "address";
|
|
1501
|
+
readonly internalType: "address";
|
|
1502
|
+
}];
|
|
1503
|
+
readonly outputs: readonly [{
|
|
1504
|
+
readonly name: "";
|
|
1505
|
+
readonly type: "uint256";
|
|
1506
|
+
readonly internalType: "uint256";
|
|
1507
|
+
}];
|
|
1508
|
+
readonly stateMutability: "view";
|
|
1495
1509
|
}, {
|
|
1496
1510
|
readonly type: "function";
|
|
1497
1511
|
readonly name: "releaseLP";
|
|
@@ -1629,6 +1643,16 @@ export declare const cloakAuctionAbi: readonly [{
|
|
|
1629
1643
|
readonly inputs: readonly [];
|
|
1630
1644
|
readonly outputs: readonly [];
|
|
1631
1645
|
readonly stateMutability: "nonpayable";
|
|
1646
|
+
}, {
|
|
1647
|
+
readonly type: "function";
|
|
1648
|
+
readonly name: "withdrawRefund";
|
|
1649
|
+
readonly inputs: readonly [{
|
|
1650
|
+
readonly name: "to";
|
|
1651
|
+
readonly type: "address";
|
|
1652
|
+
readonly internalType: "address";
|
|
1653
|
+
}];
|
|
1654
|
+
readonly outputs: readonly [];
|
|
1655
|
+
readonly stateMutability: "nonpayable";
|
|
1632
1656
|
}, {
|
|
1633
1657
|
readonly type: "event";
|
|
1634
1658
|
readonly name: "Claimed";
|
|
@@ -1809,6 +1833,41 @@ export declare const cloakAuctionAbi: readonly [{
|
|
|
1809
1833
|
readonly internalType: "uint256";
|
|
1810
1834
|
}];
|
|
1811
1835
|
readonly anonymous: false;
|
|
1836
|
+
}, {
|
|
1837
|
+
readonly type: "event";
|
|
1838
|
+
readonly name: "RefundHeld";
|
|
1839
|
+
readonly inputs: readonly [{
|
|
1840
|
+
readonly name: "bidder";
|
|
1841
|
+
readonly type: "address";
|
|
1842
|
+
readonly indexed: true;
|
|
1843
|
+
readonly internalType: "address";
|
|
1844
|
+
}, {
|
|
1845
|
+
readonly name: "amount";
|
|
1846
|
+
readonly type: "uint256";
|
|
1847
|
+
readonly indexed: false;
|
|
1848
|
+
readonly internalType: "uint256";
|
|
1849
|
+
}];
|
|
1850
|
+
readonly anonymous: false;
|
|
1851
|
+
}, {
|
|
1852
|
+
readonly type: "event";
|
|
1853
|
+
readonly name: "RefundWithdrawn";
|
|
1854
|
+
readonly inputs: readonly [{
|
|
1855
|
+
readonly name: "bidder";
|
|
1856
|
+
readonly type: "address";
|
|
1857
|
+
readonly indexed: true;
|
|
1858
|
+
readonly internalType: "address";
|
|
1859
|
+
}, {
|
|
1860
|
+
readonly name: "to";
|
|
1861
|
+
readonly type: "address";
|
|
1862
|
+
readonly indexed: false;
|
|
1863
|
+
readonly internalType: "address";
|
|
1864
|
+
}, {
|
|
1865
|
+
readonly name: "amount";
|
|
1866
|
+
readonly type: "uint256";
|
|
1867
|
+
readonly indexed: false;
|
|
1868
|
+
readonly internalType: "uint256";
|
|
1869
|
+
}];
|
|
1870
|
+
readonly anonymous: false;
|
|
1812
1871
|
}, {
|
|
1813
1872
|
readonly type: "event";
|
|
1814
1873
|
readonly name: "Revealed";
|
|
@@ -2557,6 +2616,32 @@ export declare const cloakVestingDeployerAbi: readonly [{
|
|
|
2557
2616
|
readonly internalType: "contract CloakVesting";
|
|
2558
2617
|
}];
|
|
2559
2618
|
readonly stateMutability: "nonpayable";
|
|
2619
|
+
}, {
|
|
2620
|
+
readonly type: "function";
|
|
2621
|
+
readonly name: "deployToken";
|
|
2622
|
+
readonly inputs: readonly [{
|
|
2623
|
+
readonly name: "name";
|
|
2624
|
+
readonly type: "string";
|
|
2625
|
+
readonly internalType: "string";
|
|
2626
|
+
}, {
|
|
2627
|
+
readonly name: "symbol";
|
|
2628
|
+
readonly type: "string";
|
|
2629
|
+
readonly internalType: "string";
|
|
2630
|
+
}, {
|
|
2631
|
+
readonly name: "to";
|
|
2632
|
+
readonly type: "address[]";
|
|
2633
|
+
readonly internalType: "address[]";
|
|
2634
|
+
}, {
|
|
2635
|
+
readonly name: "amounts";
|
|
2636
|
+
readonly type: "uint256[]";
|
|
2637
|
+
readonly internalType: "uint256[]";
|
|
2638
|
+
}];
|
|
2639
|
+
readonly outputs: readonly [{
|
|
2640
|
+
readonly name: "";
|
|
2641
|
+
readonly type: "address";
|
|
2642
|
+
readonly internalType: "contract CloakToken";
|
|
2643
|
+
}];
|
|
2644
|
+
readonly stateMutability: "nonpayable";
|
|
2560
2645
|
}];
|
|
2561
2646
|
export declare const shieldedPoolAbi: readonly [{
|
|
2562
2647
|
readonly type: "constructor";
|
|
@@ -4362,6 +4447,65 @@ export declare const cloakMigratorAbi: readonly [{
|
|
|
4362
4447
|
readonly name: "UnknownPool";
|
|
4363
4448
|
readonly inputs: readonly [];
|
|
4364
4449
|
}];
|
|
4450
|
+
export declare const cloakFactoryListAbi: readonly [{
|
|
4451
|
+
readonly type: "constructor";
|
|
4452
|
+
readonly inputs: readonly [{
|
|
4453
|
+
readonly name: "factories_";
|
|
4454
|
+
readonly type: "address[]";
|
|
4455
|
+
readonly internalType: "contract ICloakFactoryRead[]";
|
|
4456
|
+
}];
|
|
4457
|
+
readonly stateMutability: "nonpayable";
|
|
4458
|
+
}, {
|
|
4459
|
+
readonly type: "function";
|
|
4460
|
+
readonly name: "factories";
|
|
4461
|
+
readonly inputs: readonly [];
|
|
4462
|
+
readonly outputs: readonly [{
|
|
4463
|
+
readonly name: "";
|
|
4464
|
+
readonly type: "address[]";
|
|
4465
|
+
readonly internalType: "contract ICloakFactoryRead[]";
|
|
4466
|
+
}];
|
|
4467
|
+
readonly stateMutability: "view";
|
|
4468
|
+
}, {
|
|
4469
|
+
readonly type: "function";
|
|
4470
|
+
readonly name: "launches";
|
|
4471
|
+
readonly inputs: readonly [{
|
|
4472
|
+
readonly name: "i";
|
|
4473
|
+
readonly type: "uint256";
|
|
4474
|
+
readonly internalType: "uint256";
|
|
4475
|
+
}];
|
|
4476
|
+
readonly outputs: readonly [{
|
|
4477
|
+
readonly name: "auction";
|
|
4478
|
+
readonly type: "address";
|
|
4479
|
+
readonly internalType: "address";
|
|
4480
|
+
}, {
|
|
4481
|
+
readonly name: "token";
|
|
4482
|
+
readonly type: "address";
|
|
4483
|
+
readonly internalType: "address";
|
|
4484
|
+
}, {
|
|
4485
|
+
readonly name: "creator";
|
|
4486
|
+
readonly type: "address";
|
|
4487
|
+
readonly internalType: "address";
|
|
4488
|
+
}, {
|
|
4489
|
+
readonly name: "launchpad";
|
|
4490
|
+
readonly type: "address";
|
|
4491
|
+
readonly internalType: "address";
|
|
4492
|
+
}, {
|
|
4493
|
+
readonly name: "creatorAlloc";
|
|
4494
|
+
readonly type: "uint256";
|
|
4495
|
+
readonly internalType: "uint256";
|
|
4496
|
+
}];
|
|
4497
|
+
readonly stateMutability: "view";
|
|
4498
|
+
}, {
|
|
4499
|
+
readonly type: "function";
|
|
4500
|
+
readonly name: "launchesCount";
|
|
4501
|
+
readonly inputs: readonly [];
|
|
4502
|
+
readonly outputs: readonly [{
|
|
4503
|
+
readonly name: "n";
|
|
4504
|
+
readonly type: "uint256";
|
|
4505
|
+
readonly internalType: "uint256";
|
|
4506
|
+
}];
|
|
4507
|
+
readonly stateMutability: "view";
|
|
4508
|
+
}];
|
|
4365
4509
|
export declare const whypeAbi: readonly [{
|
|
4366
4510
|
readonly type: "receive";
|
|
4367
4511
|
readonly stateMutability: "payable";
|
package/dist/abis.js
CHANGED
|
@@ -1926,6 +1926,25 @@ export const cloakAuctionAbi = [
|
|
|
1926
1926
|
],
|
|
1927
1927
|
"stateMutability": "view"
|
|
1928
1928
|
},
|
|
1929
|
+
{
|
|
1930
|
+
"type": "function",
|
|
1931
|
+
"name": "refundOwed",
|
|
1932
|
+
"inputs": [
|
|
1933
|
+
{
|
|
1934
|
+
"name": "",
|
|
1935
|
+
"type": "address",
|
|
1936
|
+
"internalType": "address"
|
|
1937
|
+
}
|
|
1938
|
+
],
|
|
1939
|
+
"outputs": [
|
|
1940
|
+
{
|
|
1941
|
+
"name": "",
|
|
1942
|
+
"type": "uint256",
|
|
1943
|
+
"internalType": "uint256"
|
|
1944
|
+
}
|
|
1945
|
+
],
|
|
1946
|
+
"stateMutability": "view"
|
|
1947
|
+
},
|
|
1929
1948
|
{
|
|
1930
1949
|
"type": "function",
|
|
1931
1950
|
"name": "releaseLP",
|
|
@@ -2101,6 +2120,19 @@ export const cloakAuctionAbi = [
|
|
|
2101
2120
|
"outputs": [],
|
|
2102
2121
|
"stateMutability": "nonpayable"
|
|
2103
2122
|
},
|
|
2123
|
+
{
|
|
2124
|
+
"type": "function",
|
|
2125
|
+
"name": "withdrawRefund",
|
|
2126
|
+
"inputs": [
|
|
2127
|
+
{
|
|
2128
|
+
"name": "to",
|
|
2129
|
+
"type": "address",
|
|
2130
|
+
"internalType": "address"
|
|
2131
|
+
}
|
|
2132
|
+
],
|
|
2133
|
+
"outputs": [],
|
|
2134
|
+
"stateMutability": "nonpayable"
|
|
2135
|
+
},
|
|
2104
2136
|
{
|
|
2105
2137
|
"type": "event",
|
|
2106
2138
|
"name": "Claimed",
|
|
@@ -2324,6 +2356,50 @@ export const cloakAuctionAbi = [
|
|
|
2324
2356
|
],
|
|
2325
2357
|
"anonymous": false
|
|
2326
2358
|
},
|
|
2359
|
+
{
|
|
2360
|
+
"type": "event",
|
|
2361
|
+
"name": "RefundHeld",
|
|
2362
|
+
"inputs": [
|
|
2363
|
+
{
|
|
2364
|
+
"name": "bidder",
|
|
2365
|
+
"type": "address",
|
|
2366
|
+
"indexed": true,
|
|
2367
|
+
"internalType": "address"
|
|
2368
|
+
},
|
|
2369
|
+
{
|
|
2370
|
+
"name": "amount",
|
|
2371
|
+
"type": "uint256",
|
|
2372
|
+
"indexed": false,
|
|
2373
|
+
"internalType": "uint256"
|
|
2374
|
+
}
|
|
2375
|
+
],
|
|
2376
|
+
"anonymous": false
|
|
2377
|
+
},
|
|
2378
|
+
{
|
|
2379
|
+
"type": "event",
|
|
2380
|
+
"name": "RefundWithdrawn",
|
|
2381
|
+
"inputs": [
|
|
2382
|
+
{
|
|
2383
|
+
"name": "bidder",
|
|
2384
|
+
"type": "address",
|
|
2385
|
+
"indexed": true,
|
|
2386
|
+
"internalType": "address"
|
|
2387
|
+
},
|
|
2388
|
+
{
|
|
2389
|
+
"name": "to",
|
|
2390
|
+
"type": "address",
|
|
2391
|
+
"indexed": false,
|
|
2392
|
+
"internalType": "address"
|
|
2393
|
+
},
|
|
2394
|
+
{
|
|
2395
|
+
"name": "amount",
|
|
2396
|
+
"type": "uint256",
|
|
2397
|
+
"indexed": false,
|
|
2398
|
+
"internalType": "uint256"
|
|
2399
|
+
}
|
|
2400
|
+
],
|
|
2401
|
+
"anonymous": false
|
|
2402
|
+
},
|
|
2327
2403
|
{
|
|
2328
2404
|
"type": "event",
|
|
2329
2405
|
"name": "Revealed",
|
|
@@ -3294,6 +3370,40 @@ export const cloakVestingDeployerAbi = [
|
|
|
3294
3370
|
}
|
|
3295
3371
|
],
|
|
3296
3372
|
"stateMutability": "nonpayable"
|
|
3373
|
+
},
|
|
3374
|
+
{
|
|
3375
|
+
"type": "function",
|
|
3376
|
+
"name": "deployToken",
|
|
3377
|
+
"inputs": [
|
|
3378
|
+
{
|
|
3379
|
+
"name": "name",
|
|
3380
|
+
"type": "string",
|
|
3381
|
+
"internalType": "string"
|
|
3382
|
+
},
|
|
3383
|
+
{
|
|
3384
|
+
"name": "symbol",
|
|
3385
|
+
"type": "string",
|
|
3386
|
+
"internalType": "string"
|
|
3387
|
+
},
|
|
3388
|
+
{
|
|
3389
|
+
"name": "to",
|
|
3390
|
+
"type": "address[]",
|
|
3391
|
+
"internalType": "address[]"
|
|
3392
|
+
},
|
|
3393
|
+
{
|
|
3394
|
+
"name": "amounts",
|
|
3395
|
+
"type": "uint256[]",
|
|
3396
|
+
"internalType": "uint256[]"
|
|
3397
|
+
}
|
|
3398
|
+
],
|
|
3399
|
+
"outputs": [
|
|
3400
|
+
{
|
|
3401
|
+
"name": "",
|
|
3402
|
+
"type": "address",
|
|
3403
|
+
"internalType": "contract CloakToken"
|
|
3404
|
+
}
|
|
3405
|
+
],
|
|
3406
|
+
"stateMutability": "nonpayable"
|
|
3297
3407
|
}
|
|
3298
3408
|
];
|
|
3299
3409
|
export const shieldedPoolAbi = [
|
|
@@ -5628,6 +5738,84 @@ export const cloakMigratorAbi = [
|
|
|
5628
5738
|
"inputs": []
|
|
5629
5739
|
}
|
|
5630
5740
|
];
|
|
5741
|
+
export const cloakFactoryListAbi = [
|
|
5742
|
+
{
|
|
5743
|
+
"type": "constructor",
|
|
5744
|
+
"inputs": [
|
|
5745
|
+
{
|
|
5746
|
+
"name": "factories_",
|
|
5747
|
+
"type": "address[]",
|
|
5748
|
+
"internalType": "contract ICloakFactoryRead[]"
|
|
5749
|
+
}
|
|
5750
|
+
],
|
|
5751
|
+
"stateMutability": "nonpayable"
|
|
5752
|
+
},
|
|
5753
|
+
{
|
|
5754
|
+
"type": "function",
|
|
5755
|
+
"name": "factories",
|
|
5756
|
+
"inputs": [],
|
|
5757
|
+
"outputs": [
|
|
5758
|
+
{
|
|
5759
|
+
"name": "",
|
|
5760
|
+
"type": "address[]",
|
|
5761
|
+
"internalType": "contract ICloakFactoryRead[]"
|
|
5762
|
+
}
|
|
5763
|
+
],
|
|
5764
|
+
"stateMutability": "view"
|
|
5765
|
+
},
|
|
5766
|
+
{
|
|
5767
|
+
"type": "function",
|
|
5768
|
+
"name": "launches",
|
|
5769
|
+
"inputs": [
|
|
5770
|
+
{
|
|
5771
|
+
"name": "i",
|
|
5772
|
+
"type": "uint256",
|
|
5773
|
+
"internalType": "uint256"
|
|
5774
|
+
}
|
|
5775
|
+
],
|
|
5776
|
+
"outputs": [
|
|
5777
|
+
{
|
|
5778
|
+
"name": "auction",
|
|
5779
|
+
"type": "address",
|
|
5780
|
+
"internalType": "address"
|
|
5781
|
+
},
|
|
5782
|
+
{
|
|
5783
|
+
"name": "token",
|
|
5784
|
+
"type": "address",
|
|
5785
|
+
"internalType": "address"
|
|
5786
|
+
},
|
|
5787
|
+
{
|
|
5788
|
+
"name": "creator",
|
|
5789
|
+
"type": "address",
|
|
5790
|
+
"internalType": "address"
|
|
5791
|
+
},
|
|
5792
|
+
{
|
|
5793
|
+
"name": "launchpad",
|
|
5794
|
+
"type": "address",
|
|
5795
|
+
"internalType": "address"
|
|
5796
|
+
},
|
|
5797
|
+
{
|
|
5798
|
+
"name": "creatorAlloc",
|
|
5799
|
+
"type": "uint256",
|
|
5800
|
+
"internalType": "uint256"
|
|
5801
|
+
}
|
|
5802
|
+
],
|
|
5803
|
+
"stateMutability": "view"
|
|
5804
|
+
},
|
|
5805
|
+
{
|
|
5806
|
+
"type": "function",
|
|
5807
|
+
"name": "launchesCount",
|
|
5808
|
+
"inputs": [],
|
|
5809
|
+
"outputs": [
|
|
5810
|
+
{
|
|
5811
|
+
"name": "n",
|
|
5812
|
+
"type": "uint256",
|
|
5813
|
+
"internalType": "uint256"
|
|
5814
|
+
}
|
|
5815
|
+
],
|
|
5816
|
+
"stateMutability": "view"
|
|
5817
|
+
}
|
|
5818
|
+
];
|
|
5631
5819
|
export const whypeAbi = [
|
|
5632
5820
|
{
|
|
5633
5821
|
"type": "receive",
|