@cloakely/sdk 0.5.0 → 0.6.0
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 +14 -8
- package/dist/abis.d.ts +284 -0
- package/dist/abis.js +367 -0
- package/dist/bytecode.d.ts +5 -4
- package/dist/bytecode.js +1 -1
- package/dist/cloak.d.ts +82 -2
- package/dist/cloak.js +42 -4
- package/dist/deployments.d.ts +4 -0
- package/dist/deployments.js +7 -4
- package/dist/private/client.d.ts +44 -1
- package/dist/private/client.js +129 -2
- package/dist/private/crypto.d.ts +6 -0
- package/dist/private/crypto.js +8 -0
- package/package.json +1 -1
package/dist/abis.js
CHANGED
|
@@ -1179,6 +1179,11 @@ export const cloakFactoryAbi = [
|
|
|
1179
1179
|
"name": "seeder_",
|
|
1180
1180
|
"type": "address",
|
|
1181
1181
|
"internalType": "contract IMarketSeeder"
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
"name": "feeLocker_",
|
|
1185
|
+
"type": "address",
|
|
1186
|
+
"internalType": "contract IFeeLocker"
|
|
1182
1187
|
}
|
|
1183
1188
|
],
|
|
1184
1189
|
"stateMutability": "nonpayable"
|
|
@@ -1333,6 +1338,19 @@ export const cloakFactoryAbi = [
|
|
|
1333
1338
|
],
|
|
1334
1339
|
"stateMutability": "nonpayable"
|
|
1335
1340
|
},
|
|
1341
|
+
{
|
|
1342
|
+
"type": "function",
|
|
1343
|
+
"name": "feeLocker",
|
|
1344
|
+
"inputs": [],
|
|
1345
|
+
"outputs": [
|
|
1346
|
+
{
|
|
1347
|
+
"name": "",
|
|
1348
|
+
"type": "address",
|
|
1349
|
+
"internalType": "contract IFeeLocker"
|
|
1350
|
+
}
|
|
1351
|
+
],
|
|
1352
|
+
"stateMutability": "view"
|
|
1353
|
+
},
|
|
1336
1354
|
{
|
|
1337
1355
|
"type": "function",
|
|
1338
1356
|
"name": "launches",
|
|
@@ -1570,6 +1588,11 @@ export const cloakAuctionAbi = [
|
|
|
1570
1588
|
"name": "seeder_",
|
|
1571
1589
|
"type": "address",
|
|
1572
1590
|
"internalType": "contract IMarketSeeder"
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
"name": "feeLocker_",
|
|
1594
|
+
"type": "address",
|
|
1595
|
+
"internalType": "contract IFeeLocker"
|
|
1573
1596
|
}
|
|
1574
1597
|
],
|
|
1575
1598
|
"stateMutability": "nonpayable"
|
|
@@ -1617,6 +1640,19 @@ export const cloakAuctionAbi = [
|
|
|
1617
1640
|
],
|
|
1618
1641
|
"stateMutability": "view"
|
|
1619
1642
|
},
|
|
1643
|
+
{
|
|
1644
|
+
"type": "function",
|
|
1645
|
+
"name": "LOCK_FOREVER_FEES",
|
|
1646
|
+
"inputs": [],
|
|
1647
|
+
"outputs": [
|
|
1648
|
+
{
|
|
1649
|
+
"name": "",
|
|
1650
|
+
"type": "uint64",
|
|
1651
|
+
"internalType": "uint64"
|
|
1652
|
+
}
|
|
1653
|
+
],
|
|
1654
|
+
"stateMutability": "view"
|
|
1655
|
+
},
|
|
1620
1656
|
{
|
|
1621
1657
|
"type": "function",
|
|
1622
1658
|
"name": "MAX_TICKS",
|
|
@@ -1906,6 +1942,19 @@ export const cloakAuctionAbi = [
|
|
|
1906
1942
|
],
|
|
1907
1943
|
"stateMutability": "view"
|
|
1908
1944
|
},
|
|
1945
|
+
{
|
|
1946
|
+
"type": "function",
|
|
1947
|
+
"name": "creatorFees",
|
|
1948
|
+
"inputs": [],
|
|
1949
|
+
"outputs": [
|
|
1950
|
+
{
|
|
1951
|
+
"name": "",
|
|
1952
|
+
"type": "bool",
|
|
1953
|
+
"internalType": "bool"
|
|
1954
|
+
}
|
|
1955
|
+
],
|
|
1956
|
+
"stateMutability": "view"
|
|
1957
|
+
},
|
|
1909
1958
|
{
|
|
1910
1959
|
"type": "function",
|
|
1911
1960
|
"name": "creatorOwed",
|
|
@@ -1990,6 +2039,32 @@ export const cloakAuctionAbi = [
|
|
|
1990
2039
|
],
|
|
1991
2040
|
"stateMutability": "view"
|
|
1992
2041
|
},
|
|
2042
|
+
{
|
|
2043
|
+
"type": "function",
|
|
2044
|
+
"name": "feeLocker",
|
|
2045
|
+
"inputs": [],
|
|
2046
|
+
"outputs": [
|
|
2047
|
+
{
|
|
2048
|
+
"name": "",
|
|
2049
|
+
"type": "address",
|
|
2050
|
+
"internalType": "contract IFeeLocker"
|
|
2051
|
+
}
|
|
2052
|
+
],
|
|
2053
|
+
"stateMutability": "view"
|
|
2054
|
+
},
|
|
2055
|
+
{
|
|
2056
|
+
"type": "function",
|
|
2057
|
+
"name": "feePosition",
|
|
2058
|
+
"inputs": [],
|
|
2059
|
+
"outputs": [
|
|
2060
|
+
{
|
|
2061
|
+
"name": "",
|
|
2062
|
+
"type": "uint256",
|
|
2063
|
+
"internalType": "uint256"
|
|
2064
|
+
}
|
|
2065
|
+
],
|
|
2066
|
+
"stateMutability": "view"
|
|
2067
|
+
},
|
|
1993
2068
|
{
|
|
1994
2069
|
"type": "function",
|
|
1995
2070
|
"name": "feesOwed",
|
|
@@ -2583,6 +2658,25 @@ export const cloakAuctionAbi = [
|
|
|
2583
2658
|
],
|
|
2584
2659
|
"anonymous": false
|
|
2585
2660
|
},
|
|
2661
|
+
{
|
|
2662
|
+
"type": "event",
|
|
2663
|
+
"name": "CreatorFeesOn",
|
|
2664
|
+
"inputs": [
|
|
2665
|
+
{
|
|
2666
|
+
"name": "locker",
|
|
2667
|
+
"type": "address",
|
|
2668
|
+
"indexed": false,
|
|
2669
|
+
"internalType": "address"
|
|
2670
|
+
},
|
|
2671
|
+
{
|
|
2672
|
+
"name": "position",
|
|
2673
|
+
"type": "uint256",
|
|
2674
|
+
"indexed": false,
|
|
2675
|
+
"internalType": "uint256"
|
|
2676
|
+
}
|
|
2677
|
+
],
|
|
2678
|
+
"anonymous": false
|
|
2679
|
+
},
|
|
2586
2680
|
{
|
|
2587
2681
|
"type": "event",
|
|
2588
2682
|
"name": "DustSwept",
|
|
@@ -7229,3 +7323,276 @@ export const cloakV2MarketAbi = [
|
|
|
7229
7323
|
"anonymous": false
|
|
7230
7324
|
}
|
|
7231
7325
|
];
|
|
7326
|
+
export const cloakFeeLockerAbi = [
|
|
7327
|
+
{
|
|
7328
|
+
"type": "function",
|
|
7329
|
+
"name": "claim",
|
|
7330
|
+
"inputs": [
|
|
7331
|
+
{
|
|
7332
|
+
"name": "id",
|
|
7333
|
+
"type": "uint256",
|
|
7334
|
+
"internalType": "uint256"
|
|
7335
|
+
}
|
|
7336
|
+
],
|
|
7337
|
+
"outputs": [
|
|
7338
|
+
{
|
|
7339
|
+
"name": "amount0",
|
|
7340
|
+
"type": "uint256",
|
|
7341
|
+
"internalType": "uint256"
|
|
7342
|
+
},
|
|
7343
|
+
{
|
|
7344
|
+
"name": "amount1",
|
|
7345
|
+
"type": "uint256",
|
|
7346
|
+
"internalType": "uint256"
|
|
7347
|
+
}
|
|
7348
|
+
],
|
|
7349
|
+
"stateMutability": "nonpayable"
|
|
7350
|
+
},
|
|
7351
|
+
{
|
|
7352
|
+
"type": "function",
|
|
7353
|
+
"name": "claimable",
|
|
7354
|
+
"inputs": [
|
|
7355
|
+
{
|
|
7356
|
+
"name": "id",
|
|
7357
|
+
"type": "uint256",
|
|
7358
|
+
"internalType": "uint256"
|
|
7359
|
+
}
|
|
7360
|
+
],
|
|
7361
|
+
"outputs": [
|
|
7362
|
+
{
|
|
7363
|
+
"name": "lp",
|
|
7364
|
+
"type": "uint256",
|
|
7365
|
+
"internalType": "uint256"
|
|
7366
|
+
}
|
|
7367
|
+
],
|
|
7368
|
+
"stateMutability": "view"
|
|
7369
|
+
},
|
|
7370
|
+
{
|
|
7371
|
+
"type": "function",
|
|
7372
|
+
"name": "claimableAmounts",
|
|
7373
|
+
"inputs": [
|
|
7374
|
+
{
|
|
7375
|
+
"name": "id",
|
|
7376
|
+
"type": "uint256",
|
|
7377
|
+
"internalType": "uint256"
|
|
7378
|
+
}
|
|
7379
|
+
],
|
|
7380
|
+
"outputs": [
|
|
7381
|
+
{
|
|
7382
|
+
"name": "amount0",
|
|
7383
|
+
"type": "uint256",
|
|
7384
|
+
"internalType": "uint256"
|
|
7385
|
+
},
|
|
7386
|
+
{
|
|
7387
|
+
"name": "amount1",
|
|
7388
|
+
"type": "uint256",
|
|
7389
|
+
"internalType": "uint256"
|
|
7390
|
+
}
|
|
7391
|
+
],
|
|
7392
|
+
"stateMutability": "view"
|
|
7393
|
+
},
|
|
7394
|
+
{
|
|
7395
|
+
"type": "function",
|
|
7396
|
+
"name": "lockFor",
|
|
7397
|
+
"inputs": [
|
|
7398
|
+
{
|
|
7399
|
+
"name": "pair",
|
|
7400
|
+
"type": "address",
|
|
7401
|
+
"internalType": "contract IUniswapV2Pair"
|
|
7402
|
+
},
|
|
7403
|
+
{
|
|
7404
|
+
"name": "shares",
|
|
7405
|
+
"type": "uint256",
|
|
7406
|
+
"internalType": "uint256"
|
|
7407
|
+
},
|
|
7408
|
+
{
|
|
7409
|
+
"name": "beneficiary",
|
|
7410
|
+
"type": "address",
|
|
7411
|
+
"internalType": "address"
|
|
7412
|
+
}
|
|
7413
|
+
],
|
|
7414
|
+
"outputs": [
|
|
7415
|
+
{
|
|
7416
|
+
"name": "id",
|
|
7417
|
+
"type": "uint256",
|
|
7418
|
+
"internalType": "uint256"
|
|
7419
|
+
}
|
|
7420
|
+
],
|
|
7421
|
+
"stateMutability": "nonpayable"
|
|
7422
|
+
},
|
|
7423
|
+
{
|
|
7424
|
+
"type": "function",
|
|
7425
|
+
"name": "positions",
|
|
7426
|
+
"inputs": [
|
|
7427
|
+
{
|
|
7428
|
+
"name": "id",
|
|
7429
|
+
"type": "uint256",
|
|
7430
|
+
"internalType": "uint256"
|
|
7431
|
+
}
|
|
7432
|
+
],
|
|
7433
|
+
"outputs": [
|
|
7434
|
+
{
|
|
7435
|
+
"name": "",
|
|
7436
|
+
"type": "tuple",
|
|
7437
|
+
"internalType": "struct CloakFeeLocker.Position",
|
|
7438
|
+
"components": [
|
|
7439
|
+
{
|
|
7440
|
+
"name": "pair",
|
|
7441
|
+
"type": "address",
|
|
7442
|
+
"internalType": "contract IUniswapV2Pair"
|
|
7443
|
+
},
|
|
7444
|
+
{
|
|
7445
|
+
"name": "beneficiary",
|
|
7446
|
+
"type": "address",
|
|
7447
|
+
"internalType": "address"
|
|
7448
|
+
},
|
|
7449
|
+
{
|
|
7450
|
+
"name": "shares",
|
|
7451
|
+
"type": "uint256",
|
|
7452
|
+
"internalType": "uint256"
|
|
7453
|
+
},
|
|
7454
|
+
{
|
|
7455
|
+
"name": "locked",
|
|
7456
|
+
"type": "uint256",
|
|
7457
|
+
"internalType": "uint256"
|
|
7458
|
+
}
|
|
7459
|
+
]
|
|
7460
|
+
}
|
|
7461
|
+
],
|
|
7462
|
+
"stateMutability": "view"
|
|
7463
|
+
},
|
|
7464
|
+
{
|
|
7465
|
+
"type": "function",
|
|
7466
|
+
"name": "positionsCount",
|
|
7467
|
+
"inputs": [],
|
|
7468
|
+
"outputs": [
|
|
7469
|
+
{
|
|
7470
|
+
"name": "",
|
|
7471
|
+
"type": "uint256",
|
|
7472
|
+
"internalType": "uint256"
|
|
7473
|
+
}
|
|
7474
|
+
],
|
|
7475
|
+
"stateMutability": "view"
|
|
7476
|
+
},
|
|
7477
|
+
{
|
|
7478
|
+
"type": "function",
|
|
7479
|
+
"name": "setBeneficiary",
|
|
7480
|
+
"inputs": [
|
|
7481
|
+
{
|
|
7482
|
+
"name": "id",
|
|
7483
|
+
"type": "uint256",
|
|
7484
|
+
"internalType": "uint256"
|
|
7485
|
+
},
|
|
7486
|
+
{
|
|
7487
|
+
"name": "to",
|
|
7488
|
+
"type": "address",
|
|
7489
|
+
"internalType": "address"
|
|
7490
|
+
}
|
|
7491
|
+
],
|
|
7492
|
+
"outputs": [],
|
|
7493
|
+
"stateMutability": "nonpayable"
|
|
7494
|
+
},
|
|
7495
|
+
{
|
|
7496
|
+
"type": "event",
|
|
7497
|
+
"name": "BeneficiaryChanged",
|
|
7498
|
+
"inputs": [
|
|
7499
|
+
{
|
|
7500
|
+
"name": "id",
|
|
7501
|
+
"type": "uint256",
|
|
7502
|
+
"indexed": true,
|
|
7503
|
+
"internalType": "uint256"
|
|
7504
|
+
},
|
|
7505
|
+
{
|
|
7506
|
+
"name": "from",
|
|
7507
|
+
"type": "address",
|
|
7508
|
+
"indexed": false,
|
|
7509
|
+
"internalType": "address"
|
|
7510
|
+
},
|
|
7511
|
+
{
|
|
7512
|
+
"name": "to",
|
|
7513
|
+
"type": "address",
|
|
7514
|
+
"indexed": false,
|
|
7515
|
+
"internalType": "address"
|
|
7516
|
+
}
|
|
7517
|
+
],
|
|
7518
|
+
"anonymous": false
|
|
7519
|
+
},
|
|
7520
|
+
{
|
|
7521
|
+
"type": "event",
|
|
7522
|
+
"name": "FeesClaimed",
|
|
7523
|
+
"inputs": [
|
|
7524
|
+
{
|
|
7525
|
+
"name": "id",
|
|
7526
|
+
"type": "uint256",
|
|
7527
|
+
"indexed": true,
|
|
7528
|
+
"internalType": "uint256"
|
|
7529
|
+
},
|
|
7530
|
+
{
|
|
7531
|
+
"name": "beneficiary",
|
|
7532
|
+
"type": "address",
|
|
7533
|
+
"indexed": true,
|
|
7534
|
+
"internalType": "address"
|
|
7535
|
+
},
|
|
7536
|
+
{
|
|
7537
|
+
"name": "shares",
|
|
7538
|
+
"type": "uint256",
|
|
7539
|
+
"indexed": false,
|
|
7540
|
+
"internalType": "uint256"
|
|
7541
|
+
},
|
|
7542
|
+
{
|
|
7543
|
+
"name": "amount0",
|
|
7544
|
+
"type": "uint256",
|
|
7545
|
+
"indexed": false,
|
|
7546
|
+
"internalType": "uint256"
|
|
7547
|
+
},
|
|
7548
|
+
{
|
|
7549
|
+
"name": "amount1",
|
|
7550
|
+
"type": "uint256",
|
|
7551
|
+
"indexed": false,
|
|
7552
|
+
"internalType": "uint256"
|
|
7553
|
+
}
|
|
7554
|
+
],
|
|
7555
|
+
"anonymous": false
|
|
7556
|
+
},
|
|
7557
|
+
{
|
|
7558
|
+
"type": "event",
|
|
7559
|
+
"name": "Locked",
|
|
7560
|
+
"inputs": [
|
|
7561
|
+
{
|
|
7562
|
+
"name": "id",
|
|
7563
|
+
"type": "uint256",
|
|
7564
|
+
"indexed": true,
|
|
7565
|
+
"internalType": "uint256"
|
|
7566
|
+
},
|
|
7567
|
+
{
|
|
7568
|
+
"name": "pair",
|
|
7569
|
+
"type": "address",
|
|
7570
|
+
"indexed": true,
|
|
7571
|
+
"internalType": "address"
|
|
7572
|
+
},
|
|
7573
|
+
{
|
|
7574
|
+
"name": "beneficiary",
|
|
7575
|
+
"type": "address",
|
|
7576
|
+
"indexed": true,
|
|
7577
|
+
"internalType": "address"
|
|
7578
|
+
},
|
|
7579
|
+
{
|
|
7580
|
+
"name": "shares",
|
|
7581
|
+
"type": "uint256",
|
|
7582
|
+
"indexed": false,
|
|
7583
|
+
"internalType": "uint256"
|
|
7584
|
+
}
|
|
7585
|
+
],
|
|
7586
|
+
"anonymous": false
|
|
7587
|
+
},
|
|
7588
|
+
{
|
|
7589
|
+
"type": "error",
|
|
7590
|
+
"name": "NotBeneficiary",
|
|
7591
|
+
"inputs": []
|
|
7592
|
+
},
|
|
7593
|
+
{
|
|
7594
|
+
"type": "error",
|
|
7595
|
+
"name": "Zero",
|
|
7596
|
+
"inputs": []
|
|
7597
|
+
}
|
|
7598
|
+
];
|