@flaunch/sdk 0.9.10 → 0.9.12
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/abi/TokenImporter.d.ts +26 -0
- package/dist/abi/TokenImporter.d.ts.map +1 -1
- package/dist/addresses/index.cjs +6 -1
- package/dist/addresses/index.cjs.map +1 -1
- package/dist/addresses/index.js +6 -2
- package/dist/addresses/index.js.map +1 -1
- package/dist/addresses.d.ts +1 -0
- package/dist/addresses.d.ts.map +1 -1
- package/dist/clients/TokenImporter.d.ts +10 -0
- package/dist/clients/TokenImporter.d.ts.map +1 -1
- package/dist/helpers/index.cjs +1 -0
- package/dist/helpers/index.cjs.map +1 -1
- package/dist/helpers/index.js +1 -0
- package/dist/helpers/index.js.map +1 -1
- package/dist/index.cjs.js +370 -203
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +370 -204
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/sdk/FlaunchSDK.d.ts +40 -0
- package/dist/sdk/FlaunchSDK.d.ts.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -5759,7 +5759,7 @@ const BuyBackManagerAddress = {
|
|
|
5759
5759
|
};
|
|
5760
5760
|
/** Verifiers */
|
|
5761
5761
|
const TokenImporterAddress = {
|
|
5762
|
-
[base.id]: "
|
|
5762
|
+
[base.id]: "0x6fb66f4fc262dc86e12136c481ba7c411e668197",
|
|
5763
5763
|
[baseSepolia.id]: "0x7981369D21975F39773f289F759F7d7CE1097139",
|
|
5764
5764
|
};
|
|
5765
5765
|
const ClankerWorldVerifierAddress = {
|
|
@@ -5770,6 +5770,10 @@ const DopplerVerifierAddress = {
|
|
|
5770
5770
|
[base.id]: "0xedd66b080b8e9425c39d349a3fb69f480580f993",
|
|
5771
5771
|
[baseSepolia.id]: "0x6428b5C4da36ecB070aBdcB5E1939244A3cC7fb5",
|
|
5772
5772
|
};
|
|
5773
|
+
const SolanaVerifierAddress = {
|
|
5774
|
+
[base.id]: "0xba28ac1540893a34476c24b2c4fa32e0506c9055",
|
|
5775
|
+
[baseSepolia.id]: "0x47226918e518f205584bd75bf81e0b532b0b3ea7",
|
|
5776
|
+
};
|
|
5773
5777
|
const VirtualsVerifierAddress = {
|
|
5774
5778
|
[base.id]: "0x06a089fa231aca48d2aa77365123ad9aca43d3a4",
|
|
5775
5779
|
[baseSepolia.id]: "0x6582d2bc6a7eba3b40bdf46b3868fc7ec2ff96ec",
|
|
@@ -11886,6 +11890,7 @@ var Verifier;
|
|
|
11886
11890
|
(function (Verifier) {
|
|
11887
11891
|
Verifier["CLANKER"] = "clanker";
|
|
11888
11892
|
Verifier["DOPPLER"] = "doppler";
|
|
11893
|
+
Verifier["SOLANA"] = "solana";
|
|
11889
11894
|
Verifier["VIRTUALS"] = "virtuals";
|
|
11890
11895
|
Verifier["WHITELIST"] = "whitelist";
|
|
11891
11896
|
Verifier["ZORA"] = "zora";
|
|
@@ -20392,279 +20397,406 @@ class ReadWriteAnyPositionManager extends ReadAnyPositionManager {
|
|
|
20392
20397
|
|
|
20393
20398
|
const TokenImporterAbi = [
|
|
20394
20399
|
{
|
|
20395
|
-
type: "constructor",
|
|
20396
|
-
inputs: [
|
|
20400
|
+
"type": "constructor",
|
|
20401
|
+
"inputs": [
|
|
20397
20402
|
{
|
|
20398
|
-
name: "_anyPositionManager",
|
|
20399
|
-
type: "address",
|
|
20400
|
-
internalType: "address payable"
|
|
20401
|
-
}
|
|
20403
|
+
"name": "_anyPositionManager",
|
|
20404
|
+
"type": "address",
|
|
20405
|
+
"internalType": "address payable"
|
|
20406
|
+
}
|
|
20402
20407
|
],
|
|
20403
|
-
stateMutability: "nonpayable"
|
|
20408
|
+
"stateMutability": "nonpayable"
|
|
20404
20409
|
},
|
|
20405
20410
|
{
|
|
20406
|
-
type: "function",
|
|
20407
|
-
name: "addVerifier",
|
|
20408
|
-
inputs: [
|
|
20409
|
-
|
|
20410
|
-
|
|
20411
|
+
"type": "function",
|
|
20412
|
+
"name": "addVerifier",
|
|
20413
|
+
"inputs": [
|
|
20414
|
+
{
|
|
20415
|
+
"name": "_verifier",
|
|
20416
|
+
"type": "address",
|
|
20417
|
+
"internalType": "address"
|
|
20418
|
+
}
|
|
20419
|
+
],
|
|
20420
|
+
"outputs": [],
|
|
20421
|
+
"stateMutability": "nonpayable"
|
|
20411
20422
|
},
|
|
20412
20423
|
{
|
|
20413
|
-
type: "function",
|
|
20414
|
-
name: "anyPositionManager",
|
|
20415
|
-
inputs: [],
|
|
20416
|
-
outputs: [
|
|
20424
|
+
"type": "function",
|
|
20425
|
+
"name": "anyPositionManager",
|
|
20426
|
+
"inputs": [],
|
|
20427
|
+
"outputs": [
|
|
20417
20428
|
{
|
|
20418
|
-
name: "",
|
|
20419
|
-
type: "address",
|
|
20420
|
-
internalType: "contract AnyPositionManager"
|
|
20421
|
-
}
|
|
20429
|
+
"name": "",
|
|
20430
|
+
"type": "address",
|
|
20431
|
+
"internalType": "contract AnyPositionManager"
|
|
20432
|
+
}
|
|
20422
20433
|
],
|
|
20423
|
-
stateMutability: "view"
|
|
20434
|
+
"stateMutability": "view"
|
|
20424
20435
|
},
|
|
20425
20436
|
{
|
|
20426
|
-
type: "function",
|
|
20427
|
-
name: "cancelOwnershipHandover",
|
|
20428
|
-
inputs: [],
|
|
20429
|
-
outputs: [],
|
|
20430
|
-
stateMutability: "payable"
|
|
20437
|
+
"type": "function",
|
|
20438
|
+
"name": "cancelOwnershipHandover",
|
|
20439
|
+
"inputs": [],
|
|
20440
|
+
"outputs": [],
|
|
20441
|
+
"stateMutability": "payable"
|
|
20431
20442
|
},
|
|
20432
20443
|
{
|
|
20433
|
-
type: "function",
|
|
20434
|
-
name: "completeOwnershipHandover",
|
|
20435
|
-
inputs: [
|
|
20436
|
-
{
|
|
20444
|
+
"type": "function",
|
|
20445
|
+
"name": "completeOwnershipHandover",
|
|
20446
|
+
"inputs": [
|
|
20447
|
+
{
|
|
20448
|
+
"name": "pendingOwner",
|
|
20449
|
+
"type": "address",
|
|
20450
|
+
"internalType": "address"
|
|
20451
|
+
}
|
|
20437
20452
|
],
|
|
20438
|
-
outputs: [],
|
|
20439
|
-
stateMutability: "payable"
|
|
20453
|
+
"outputs": [],
|
|
20454
|
+
"stateMutability": "payable"
|
|
20440
20455
|
},
|
|
20441
20456
|
{
|
|
20442
|
-
type: "function",
|
|
20443
|
-
name: "getAllVerifiers",
|
|
20444
|
-
inputs: [],
|
|
20445
|
-
outputs: [
|
|
20457
|
+
"type": "function",
|
|
20458
|
+
"name": "getAllVerifiers",
|
|
20459
|
+
"inputs": [],
|
|
20460
|
+
"outputs": [
|
|
20461
|
+
{
|
|
20462
|
+
"name": "verifiers_",
|
|
20463
|
+
"type": "address[]",
|
|
20464
|
+
"internalType": "address[]"
|
|
20465
|
+
}
|
|
20466
|
+
],
|
|
20467
|
+
"stateMutability": "view"
|
|
20468
|
+
},
|
|
20469
|
+
{
|
|
20470
|
+
"type": "function",
|
|
20471
|
+
"name": "initialize",
|
|
20472
|
+
"inputs": [
|
|
20473
|
+
{
|
|
20474
|
+
"name": "_memecoin",
|
|
20475
|
+
"type": "address",
|
|
20476
|
+
"internalType": "address"
|
|
20477
|
+
},
|
|
20478
|
+
{
|
|
20479
|
+
"name": "_creatorFeeAllocation",
|
|
20480
|
+
"type": "uint24",
|
|
20481
|
+
"internalType": "uint24"
|
|
20482
|
+
},
|
|
20446
20483
|
{
|
|
20447
|
-
name: "
|
|
20448
|
-
type: "
|
|
20449
|
-
internalType: "
|
|
20484
|
+
"name": "_initialMarketCap",
|
|
20485
|
+
"type": "uint256",
|
|
20486
|
+
"internalType": "uint256"
|
|
20450
20487
|
},
|
|
20488
|
+
{
|
|
20489
|
+
"name": "_verifier",
|
|
20490
|
+
"type": "address",
|
|
20491
|
+
"internalType": "address"
|
|
20492
|
+
}
|
|
20451
20493
|
],
|
|
20452
|
-
|
|
20494
|
+
"outputs": [],
|
|
20495
|
+
"stateMutability": "nonpayable"
|
|
20453
20496
|
},
|
|
20454
20497
|
{
|
|
20455
|
-
type: "function",
|
|
20456
|
-
name: "initialize",
|
|
20457
|
-
inputs: [
|
|
20458
|
-
{ name: "_memecoin", type: "address", internalType: "address" },
|
|
20498
|
+
"type": "function",
|
|
20499
|
+
"name": "initialize",
|
|
20500
|
+
"inputs": [
|
|
20459
20501
|
{
|
|
20460
|
-
name: "
|
|
20461
|
-
type: "
|
|
20462
|
-
internalType: "
|
|
20502
|
+
"name": "_memecoin",
|
|
20503
|
+
"type": "address",
|
|
20504
|
+
"internalType": "address"
|
|
20463
20505
|
},
|
|
20464
20506
|
{
|
|
20465
|
-
name: "
|
|
20466
|
-
type: "
|
|
20467
|
-
internalType: "
|
|
20507
|
+
"name": "_creatorFeeAllocation",
|
|
20508
|
+
"type": "uint24",
|
|
20509
|
+
"internalType": "uint24"
|
|
20510
|
+
},
|
|
20511
|
+
{
|
|
20512
|
+
"name": "_initialMarketCap",
|
|
20513
|
+
"type": "uint256",
|
|
20514
|
+
"internalType": "uint256"
|
|
20468
20515
|
},
|
|
20469
|
-
{
|
|
20516
|
+
{
|
|
20517
|
+
"name": "_totalSupply",
|
|
20518
|
+
"type": "uint256",
|
|
20519
|
+
"internalType": "uint256"
|
|
20520
|
+
},
|
|
20521
|
+
{
|
|
20522
|
+
"name": "_verifier",
|
|
20523
|
+
"type": "address",
|
|
20524
|
+
"internalType": "address"
|
|
20525
|
+
}
|
|
20470
20526
|
],
|
|
20471
|
-
outputs: [],
|
|
20472
|
-
stateMutability: "nonpayable"
|
|
20527
|
+
"outputs": [],
|
|
20528
|
+
"stateMutability": "nonpayable"
|
|
20473
20529
|
},
|
|
20474
20530
|
{
|
|
20475
|
-
type: "function",
|
|
20476
|
-
name: "initialize",
|
|
20477
|
-
inputs: [
|
|
20478
|
-
{ name: "_memecoin", type: "address", internalType: "address" },
|
|
20531
|
+
"type": "function",
|
|
20532
|
+
"name": "initialize",
|
|
20533
|
+
"inputs": [
|
|
20479
20534
|
{
|
|
20480
|
-
name: "
|
|
20481
|
-
type: "
|
|
20482
|
-
internalType: "
|
|
20535
|
+
"name": "_memecoin",
|
|
20536
|
+
"type": "address",
|
|
20537
|
+
"internalType": "address"
|
|
20483
20538
|
},
|
|
20484
20539
|
{
|
|
20485
|
-
name: "
|
|
20486
|
-
type: "
|
|
20487
|
-
internalType: "
|
|
20540
|
+
"name": "_creatorFeeAllocation",
|
|
20541
|
+
"type": "uint24",
|
|
20542
|
+
"internalType": "uint24"
|
|
20488
20543
|
},
|
|
20544
|
+
{
|
|
20545
|
+
"name": "_initialMarketCap",
|
|
20546
|
+
"type": "uint256",
|
|
20547
|
+
"internalType": "uint256"
|
|
20548
|
+
}
|
|
20489
20549
|
],
|
|
20490
|
-
outputs: [],
|
|
20491
|
-
stateMutability: "nonpayable"
|
|
20550
|
+
"outputs": [],
|
|
20551
|
+
"stateMutability": "nonpayable"
|
|
20492
20552
|
},
|
|
20493
20553
|
{
|
|
20494
|
-
type: "function",
|
|
20495
|
-
name: "owner",
|
|
20496
|
-
inputs: [],
|
|
20497
|
-
outputs: [
|
|
20498
|
-
|
|
20554
|
+
"type": "function",
|
|
20555
|
+
"name": "owner",
|
|
20556
|
+
"inputs": [],
|
|
20557
|
+
"outputs": [
|
|
20558
|
+
{
|
|
20559
|
+
"name": "result",
|
|
20560
|
+
"type": "address",
|
|
20561
|
+
"internalType": "address"
|
|
20562
|
+
}
|
|
20563
|
+
],
|
|
20564
|
+
"stateMutability": "view"
|
|
20499
20565
|
},
|
|
20500
20566
|
{
|
|
20501
|
-
type: "function",
|
|
20502
|
-
name: "ownershipHandoverExpiresAt",
|
|
20503
|
-
inputs: [
|
|
20504
|
-
{
|
|
20567
|
+
"type": "function",
|
|
20568
|
+
"name": "ownershipHandoverExpiresAt",
|
|
20569
|
+
"inputs": [
|
|
20570
|
+
{
|
|
20571
|
+
"name": "pendingOwner",
|
|
20572
|
+
"type": "address",
|
|
20573
|
+
"internalType": "address"
|
|
20574
|
+
}
|
|
20505
20575
|
],
|
|
20506
|
-
outputs: [
|
|
20507
|
-
|
|
20576
|
+
"outputs": [
|
|
20577
|
+
{
|
|
20578
|
+
"name": "result",
|
|
20579
|
+
"type": "uint256",
|
|
20580
|
+
"internalType": "uint256"
|
|
20581
|
+
}
|
|
20582
|
+
],
|
|
20583
|
+
"stateMutability": "view"
|
|
20508
20584
|
},
|
|
20509
20585
|
{
|
|
20510
|
-
type: "function",
|
|
20511
|
-
name: "removeVerifier",
|
|
20512
|
-
inputs: [
|
|
20513
|
-
|
|
20514
|
-
|
|
20586
|
+
"type": "function",
|
|
20587
|
+
"name": "removeVerifier",
|
|
20588
|
+
"inputs": [
|
|
20589
|
+
{
|
|
20590
|
+
"name": "_verifier",
|
|
20591
|
+
"type": "address",
|
|
20592
|
+
"internalType": "address"
|
|
20593
|
+
}
|
|
20594
|
+
],
|
|
20595
|
+
"outputs": [],
|
|
20596
|
+
"stateMutability": "nonpayable"
|
|
20515
20597
|
},
|
|
20516
20598
|
{
|
|
20517
|
-
type: "function",
|
|
20518
|
-
name: "renounceOwnership",
|
|
20519
|
-
inputs: [],
|
|
20520
|
-
outputs: [],
|
|
20521
|
-
stateMutability: "payable"
|
|
20599
|
+
"type": "function",
|
|
20600
|
+
"name": "renounceOwnership",
|
|
20601
|
+
"inputs": [],
|
|
20602
|
+
"outputs": [],
|
|
20603
|
+
"stateMutability": "payable"
|
|
20522
20604
|
},
|
|
20523
20605
|
{
|
|
20524
|
-
type: "function",
|
|
20525
|
-
name: "requestOwnershipHandover",
|
|
20526
|
-
inputs: [],
|
|
20527
|
-
outputs: [],
|
|
20528
|
-
stateMutability: "payable"
|
|
20606
|
+
"type": "function",
|
|
20607
|
+
"name": "requestOwnershipHandover",
|
|
20608
|
+
"inputs": [],
|
|
20609
|
+
"outputs": [],
|
|
20610
|
+
"stateMutability": "payable"
|
|
20529
20611
|
},
|
|
20530
20612
|
{
|
|
20531
|
-
type: "function",
|
|
20532
|
-
name: "setAnyPositionManager",
|
|
20533
|
-
inputs: [
|
|
20613
|
+
"type": "function",
|
|
20614
|
+
"name": "setAnyPositionManager",
|
|
20615
|
+
"inputs": [
|
|
20534
20616
|
{
|
|
20535
|
-
name: "_anyPositionManager",
|
|
20536
|
-
type: "address",
|
|
20537
|
-
internalType: "address payable"
|
|
20538
|
-
}
|
|
20617
|
+
"name": "_anyPositionManager",
|
|
20618
|
+
"type": "address",
|
|
20619
|
+
"internalType": "address payable"
|
|
20620
|
+
}
|
|
20539
20621
|
],
|
|
20540
|
-
outputs: [],
|
|
20541
|
-
stateMutability: "nonpayable"
|
|
20622
|
+
"outputs": [],
|
|
20623
|
+
"stateMutability": "nonpayable"
|
|
20542
20624
|
},
|
|
20543
20625
|
{
|
|
20544
|
-
type: "function",
|
|
20545
|
-
name: "transferOwnership",
|
|
20546
|
-
inputs: [
|
|
20547
|
-
|
|
20548
|
-
|
|
20626
|
+
"type": "function",
|
|
20627
|
+
"name": "transferOwnership",
|
|
20628
|
+
"inputs": [
|
|
20629
|
+
{
|
|
20630
|
+
"name": "newOwner",
|
|
20631
|
+
"type": "address",
|
|
20632
|
+
"internalType": "address"
|
|
20633
|
+
}
|
|
20634
|
+
],
|
|
20635
|
+
"outputs": [],
|
|
20636
|
+
"stateMutability": "payable"
|
|
20549
20637
|
},
|
|
20550
20638
|
{
|
|
20551
|
-
type: "function",
|
|
20552
|
-
name: "verifyMemecoin",
|
|
20553
|
-
inputs: [
|
|
20554
|
-
|
|
20555
|
-
|
|
20639
|
+
"type": "function",
|
|
20640
|
+
"name": "verifyMemecoin",
|
|
20641
|
+
"inputs": [
|
|
20642
|
+
{
|
|
20643
|
+
"name": "_memecoin",
|
|
20644
|
+
"type": "address",
|
|
20645
|
+
"internalType": "address"
|
|
20646
|
+
}
|
|
20647
|
+
],
|
|
20648
|
+
"outputs": [
|
|
20649
|
+
{
|
|
20650
|
+
"name": "verifier_",
|
|
20651
|
+
"type": "address",
|
|
20652
|
+
"internalType": "address"
|
|
20653
|
+
}
|
|
20654
|
+
],
|
|
20655
|
+
"stateMutability": "view"
|
|
20556
20656
|
},
|
|
20557
20657
|
{
|
|
20558
|
-
type: "event",
|
|
20559
|
-
name: "AnyPositionManagerSet",
|
|
20560
|
-
inputs: [
|
|
20658
|
+
"type": "event",
|
|
20659
|
+
"name": "AnyPositionManagerSet",
|
|
20660
|
+
"inputs": [
|
|
20561
20661
|
{
|
|
20562
|
-
name: "_anyPositionManager",
|
|
20563
|
-
type: "address",
|
|
20564
|
-
indexed: true,
|
|
20565
|
-
internalType: "address"
|
|
20566
|
-
}
|
|
20662
|
+
"name": "_anyPositionManager",
|
|
20663
|
+
"type": "address",
|
|
20664
|
+
"indexed": true,
|
|
20665
|
+
"internalType": "address"
|
|
20666
|
+
}
|
|
20567
20667
|
],
|
|
20568
|
-
anonymous: false
|
|
20668
|
+
"anonymous": false
|
|
20569
20669
|
},
|
|
20570
20670
|
{
|
|
20571
|
-
type: "event",
|
|
20572
|
-
name: "OwnershipHandoverCanceled",
|
|
20573
|
-
inputs: [
|
|
20671
|
+
"type": "event",
|
|
20672
|
+
"name": "OwnershipHandoverCanceled",
|
|
20673
|
+
"inputs": [
|
|
20574
20674
|
{
|
|
20575
|
-
name: "pendingOwner",
|
|
20576
|
-
type: "address",
|
|
20577
|
-
indexed: true,
|
|
20578
|
-
internalType: "address"
|
|
20579
|
-
}
|
|
20675
|
+
"name": "pendingOwner",
|
|
20676
|
+
"type": "address",
|
|
20677
|
+
"indexed": true,
|
|
20678
|
+
"internalType": "address"
|
|
20679
|
+
}
|
|
20580
20680
|
],
|
|
20581
|
-
anonymous: false
|
|
20681
|
+
"anonymous": false
|
|
20582
20682
|
},
|
|
20583
20683
|
{
|
|
20584
|
-
type: "event",
|
|
20585
|
-
name: "OwnershipHandoverRequested",
|
|
20586
|
-
inputs: [
|
|
20684
|
+
"type": "event",
|
|
20685
|
+
"name": "OwnershipHandoverRequested",
|
|
20686
|
+
"inputs": [
|
|
20587
20687
|
{
|
|
20588
|
-
name: "pendingOwner",
|
|
20589
|
-
type: "address",
|
|
20590
|
-
indexed: true,
|
|
20591
|
-
internalType: "address"
|
|
20592
|
-
}
|
|
20688
|
+
"name": "pendingOwner",
|
|
20689
|
+
"type": "address",
|
|
20690
|
+
"indexed": true,
|
|
20691
|
+
"internalType": "address"
|
|
20692
|
+
}
|
|
20593
20693
|
],
|
|
20594
|
-
anonymous: false
|
|
20694
|
+
"anonymous": false
|
|
20595
20695
|
},
|
|
20596
20696
|
{
|
|
20597
|
-
type: "event",
|
|
20598
|
-
name: "OwnershipTransferred",
|
|
20599
|
-
inputs: [
|
|
20697
|
+
"type": "event",
|
|
20698
|
+
"name": "OwnershipTransferred",
|
|
20699
|
+
"inputs": [
|
|
20600
20700
|
{
|
|
20601
|
-
name: "oldOwner",
|
|
20602
|
-
type: "address",
|
|
20603
|
-
indexed: true,
|
|
20604
|
-
internalType: "address"
|
|
20701
|
+
"name": "oldOwner",
|
|
20702
|
+
"type": "address",
|
|
20703
|
+
"indexed": true,
|
|
20704
|
+
"internalType": "address"
|
|
20605
20705
|
},
|
|
20606
20706
|
{
|
|
20607
|
-
name: "newOwner",
|
|
20608
|
-
type: "address",
|
|
20609
|
-
indexed: true,
|
|
20610
|
-
internalType: "address"
|
|
20611
|
-
}
|
|
20707
|
+
"name": "newOwner",
|
|
20708
|
+
"type": "address",
|
|
20709
|
+
"indexed": true,
|
|
20710
|
+
"internalType": "address"
|
|
20711
|
+
}
|
|
20612
20712
|
],
|
|
20613
|
-
anonymous: false
|
|
20713
|
+
"anonymous": false
|
|
20614
20714
|
},
|
|
20615
20715
|
{
|
|
20616
|
-
type: "event",
|
|
20617
|
-
name: "TokenImported",
|
|
20618
|
-
inputs: [
|
|
20716
|
+
"type": "event",
|
|
20717
|
+
"name": "TokenImported",
|
|
20718
|
+
"inputs": [
|
|
20619
20719
|
{
|
|
20620
|
-
name: "_memecoin",
|
|
20621
|
-
type: "address",
|
|
20622
|
-
indexed: true,
|
|
20623
|
-
internalType: "address"
|
|
20720
|
+
"name": "_memecoin",
|
|
20721
|
+
"type": "address",
|
|
20722
|
+
"indexed": true,
|
|
20723
|
+
"internalType": "address"
|
|
20624
20724
|
},
|
|
20625
20725
|
{
|
|
20626
|
-
name: "_verifier",
|
|
20627
|
-
type: "address",
|
|
20628
|
-
indexed: true,
|
|
20629
|
-
internalType: "address"
|
|
20630
|
-
}
|
|
20726
|
+
"name": "_verifier",
|
|
20727
|
+
"type": "address",
|
|
20728
|
+
"indexed": true,
|
|
20729
|
+
"internalType": "address"
|
|
20730
|
+
}
|
|
20631
20731
|
],
|
|
20632
|
-
anonymous: false
|
|
20732
|
+
"anonymous": false
|
|
20633
20733
|
},
|
|
20634
20734
|
{
|
|
20635
|
-
type: "event",
|
|
20636
|
-
name: "VerifierAdded",
|
|
20637
|
-
inputs: [
|
|
20735
|
+
"type": "event",
|
|
20736
|
+
"name": "VerifierAdded",
|
|
20737
|
+
"inputs": [
|
|
20638
20738
|
{
|
|
20639
|
-
name: "_verifier",
|
|
20640
|
-
type: "address",
|
|
20641
|
-
indexed: true,
|
|
20642
|
-
internalType: "address"
|
|
20643
|
-
}
|
|
20739
|
+
"name": "_verifier",
|
|
20740
|
+
"type": "address",
|
|
20741
|
+
"indexed": true,
|
|
20742
|
+
"internalType": "address"
|
|
20743
|
+
}
|
|
20644
20744
|
],
|
|
20645
|
-
anonymous: false
|
|
20745
|
+
"anonymous": false
|
|
20646
20746
|
},
|
|
20647
20747
|
{
|
|
20648
|
-
type: "event",
|
|
20649
|
-
name: "VerifierRemoved",
|
|
20650
|
-
inputs: [
|
|
20748
|
+
"type": "event",
|
|
20749
|
+
"name": "VerifierRemoved",
|
|
20750
|
+
"inputs": [
|
|
20651
20751
|
{
|
|
20652
|
-
name: "_verifier",
|
|
20653
|
-
type: "address",
|
|
20654
|
-
indexed: true,
|
|
20655
|
-
internalType: "address"
|
|
20656
|
-
}
|
|
20752
|
+
"name": "_verifier",
|
|
20753
|
+
"type": "address",
|
|
20754
|
+
"indexed": true,
|
|
20755
|
+
"internalType": "address"
|
|
20756
|
+
}
|
|
20657
20757
|
],
|
|
20658
|
-
anonymous: false
|
|
20758
|
+
"anonymous": false
|
|
20659
20759
|
},
|
|
20660
|
-
{
|
|
20661
|
-
|
|
20662
|
-
|
|
20663
|
-
|
|
20664
|
-
|
|
20665
|
-
{
|
|
20666
|
-
|
|
20667
|
-
|
|
20760
|
+
{
|
|
20761
|
+
"type": "error",
|
|
20762
|
+
"name": "AlreadyInitialized",
|
|
20763
|
+
"inputs": []
|
|
20764
|
+
},
|
|
20765
|
+
{
|
|
20766
|
+
"type": "error",
|
|
20767
|
+
"name": "InvalidMemecoin",
|
|
20768
|
+
"inputs": []
|
|
20769
|
+
},
|
|
20770
|
+
{
|
|
20771
|
+
"type": "error",
|
|
20772
|
+
"name": "NewOwnerIsZeroAddress",
|
|
20773
|
+
"inputs": []
|
|
20774
|
+
},
|
|
20775
|
+
{
|
|
20776
|
+
"type": "error",
|
|
20777
|
+
"name": "NoHandoverRequest",
|
|
20778
|
+
"inputs": []
|
|
20779
|
+
},
|
|
20780
|
+
{
|
|
20781
|
+
"type": "error",
|
|
20782
|
+
"name": "Unauthorized",
|
|
20783
|
+
"inputs": []
|
|
20784
|
+
},
|
|
20785
|
+
{
|
|
20786
|
+
"type": "error",
|
|
20787
|
+
"name": "VerifierAlreadyAdded",
|
|
20788
|
+
"inputs": []
|
|
20789
|
+
},
|
|
20790
|
+
{
|
|
20791
|
+
"type": "error",
|
|
20792
|
+
"name": "VerifierNotAdded",
|
|
20793
|
+
"inputs": []
|
|
20794
|
+
},
|
|
20795
|
+
{
|
|
20796
|
+
"type": "error",
|
|
20797
|
+
"name": "ZeroAddress",
|
|
20798
|
+
"inputs": []
|
|
20799
|
+
}
|
|
20668
20800
|
];
|
|
20669
20801
|
|
|
20670
20802
|
/**
|
|
@@ -20703,6 +20835,8 @@ class ReadTokenImporter {
|
|
|
20703
20835
|
return ClankerWorldVerifierAddress[this.chainId];
|
|
20704
20836
|
case Verifier.DOPPLER:
|
|
20705
20837
|
return DopplerVerifierAddress[this.chainId];
|
|
20838
|
+
case Verifier.SOLANA:
|
|
20839
|
+
return SolanaVerifierAddress[this.chainId];
|
|
20706
20840
|
case Verifier.VIRTUALS:
|
|
20707
20841
|
return VirtualsVerifierAddress[this.chainId];
|
|
20708
20842
|
case Verifier.WHITELIST:
|
|
@@ -20744,12 +20878,20 @@ class ReadWriteTokenImporter extends ReadTokenImporter {
|
|
|
20744
20878
|
: await this.contract.read("verifyMemecoin", {
|
|
20745
20879
|
_memecoin: params.coinAddress,
|
|
20746
20880
|
});
|
|
20747
|
-
|
|
20881
|
+
const baseParams = {
|
|
20748
20882
|
_memecoin: params.coinAddress,
|
|
20749
20883
|
_creatorFeeAllocation: creatorFeeAllocationInBps,
|
|
20750
20884
|
_initialMarketCap: initialMCapInUSDCWei,
|
|
20751
20885
|
_verifier,
|
|
20752
20886
|
};
|
|
20887
|
+
// If tokenSupply is provided (even if 0n), include it to use the 5-parameter initialize overload
|
|
20888
|
+
if (params.tokenSupply !== undefined) {
|
|
20889
|
+
return {
|
|
20890
|
+
...baseParams,
|
|
20891
|
+
_totalSupply: params.tokenSupply,
|
|
20892
|
+
};
|
|
20893
|
+
}
|
|
20894
|
+
return baseParams;
|
|
20753
20895
|
}
|
|
20754
20896
|
}
|
|
20755
20897
|
|
|
@@ -28279,21 +28421,45 @@ class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
|
|
|
28279
28421
|
let importParams;
|
|
28280
28422
|
if ("initialMarketCapUSD" in params) {
|
|
28281
28423
|
const paramsWithMarketCap = params;
|
|
28282
|
-
|
|
28283
|
-
|
|
28284
|
-
|
|
28285
|
-
|
|
28286
|
-
|
|
28287
|
-
|
|
28424
|
+
if ("tokenSupply" in paramsWithMarketCap &&
|
|
28425
|
+
paramsWithMarketCap.tokenSupply !== undefined) {
|
|
28426
|
+
importParams = await this.readWriteTokenImporter.getInitializeParams({
|
|
28427
|
+
coinAddress: paramsWithMarketCap.coinAddress,
|
|
28428
|
+
creatorFeeAllocationPercent: paramsWithMarketCap.creatorFeeAllocationPercent,
|
|
28429
|
+
initialMarketCapUSD: paramsWithMarketCap.initialMarketCapUSD,
|
|
28430
|
+
verifier: paramsWithMarketCap.verifier,
|
|
28431
|
+
tokenSupply: paramsWithMarketCap.tokenSupply,
|
|
28432
|
+
});
|
|
28433
|
+
}
|
|
28434
|
+
else {
|
|
28435
|
+
importParams = await this.readWriteTokenImporter.getInitializeParams({
|
|
28436
|
+
coinAddress: paramsWithMarketCap.coinAddress,
|
|
28437
|
+
creatorFeeAllocationPercent: paramsWithMarketCap.creatorFeeAllocationPercent,
|
|
28438
|
+
initialMarketCapUSD: paramsWithMarketCap.initialMarketCapUSD,
|
|
28439
|
+
verifier: paramsWithMarketCap.verifier,
|
|
28440
|
+
});
|
|
28441
|
+
}
|
|
28288
28442
|
}
|
|
28289
28443
|
else {
|
|
28290
28444
|
const paramsWithPrice = params;
|
|
28291
|
-
|
|
28292
|
-
|
|
28293
|
-
|
|
28294
|
-
|
|
28295
|
-
|
|
28296
|
-
|
|
28445
|
+
if ("tokenSupply" in paramsWithPrice &&
|
|
28446
|
+
paramsWithPrice.tokenSupply !== undefined) {
|
|
28447
|
+
importParams = await this.readWriteTokenImporter.getInitializeParams({
|
|
28448
|
+
coinAddress: paramsWithPrice.coinAddress,
|
|
28449
|
+
creatorFeeAllocationPercent: paramsWithPrice.creatorFeeAllocationPercent,
|
|
28450
|
+
initialPriceUSD: paramsWithPrice.initialPriceUSD,
|
|
28451
|
+
verifier: paramsWithPrice.verifier,
|
|
28452
|
+
tokenSupply: paramsWithPrice.tokenSupply,
|
|
28453
|
+
});
|
|
28454
|
+
}
|
|
28455
|
+
else {
|
|
28456
|
+
importParams = await this.readWriteTokenImporter.getInitializeParams({
|
|
28457
|
+
coinAddress: paramsWithPrice.coinAddress,
|
|
28458
|
+
creatorFeeAllocationPercent: paramsWithPrice.creatorFeeAllocationPercent,
|
|
28459
|
+
initialPriceUSD: paramsWithPrice.initialPriceUSD,
|
|
28460
|
+
verifier: paramsWithPrice.verifier,
|
|
28461
|
+
});
|
|
28462
|
+
}
|
|
28297
28463
|
}
|
|
28298
28464
|
const addLiquidityCalls = await this.getSingleSidedCoinAddLiquidityCalls({
|
|
28299
28465
|
...params,
|
|
@@ -32126,5 +32292,5 @@ const FlaunchSDK = {
|
|
|
32126
32292
|
ReadWriteFlaunchSDK,
|
|
32127
32293
|
};
|
|
32128
32294
|
|
|
32129
|
-
export { AddressFeeSplitManagerAddress, AnyBidWallAddress, AnyFlaunchAddress, AnyPositionManagerAbi, AnyPositionManagerAddress, BidWallAddress, BidWallV1_1Abi, BidWallV1_1Address, BidwallAbi, BuyBackManagerAddress, ClankerWorldVerifierAddress, ClosedPermissionsAddress, DopplerVerifierAddress, FLETHAddress, FLETHHooksAddress, FairLaunchAbi, FairLaunchAddress, FairLaunchV1_1Abi, FairLaunchV1_1Address, FastFlaunchZapAbi, FastFlaunchZapAddress, FeeEscrowAbi, FeeEscrowAddress, FlaunchAbi, FlaunchAddress, FlaunchBackend, FlaunchPositionManagerAbi, FlaunchPositionManagerAddress, FlaunchPositionManagerV1_1Abi, FlaunchPositionManagerV1_1Address, FlaunchPositionManagerV1_2Address, FlaunchSDK, FlaunchV1_1Abi, FlaunchV1_1Address, FlaunchV1_2Address, FlaunchVersion, FlaunchZapAbi, FlaunchZapAddress, InitialPriceAbi, LiquidityMode, MemecoinAbi, MulticallAbi, PERMIT_DETAILS, PERMIT_TYPES, Permissions, Permit2Abi, Permit2Address, PoolManagerAbi, PoolManagerAddress, Q192, Q96, QuoterAbi, QuoterAddress, ReadFlaunchSDK, ReadWriteFlaunchSDK, ReferralEscrowAbi, ReferralEscrowAddress, RevenueManagerAbi, RevenueManagerAddress, StakingManagerAddress, StateViewAbi, StateViewAddress, TICK_SPACING, TickFinder, TokenImporterAddress, TreasuryManagerFactoryAbi, TreasuryManagerFactoryAddress, USDCETHPoolKeys, UniV4PositionManagerAddress, UniversalRouterAbi, UniversalRouterAddress, Verifier, VirtualsVerifierAddress, WhitelistVerifierAddress, WhitelistedPermissionsAddress, ZoraVerifierAddress, buyMemecoin, bytes32ToUint256, calculateUnderlyingTokenBalances, chainIdToChain, createCallDataWalletClient, createDrift, createFlaunch, createFlaunchCalldata, decodeCallData, encodedCallAbi, generateTokenUri, getAmountWithSlippage, getAmountsForLiquidity, getLiquidityFromAmounts, getNearestUsableTick, getPermissionsAddress, getPermit2TypedData, getPoolId, getSqrtPriceX96FromTick, getValidTick, maxLiquidityForAmount0Precise, maxLiquidityForAmount1, orderPoolKey, parseCall, parseSwapData, priceRatioToTick, resolveIPFS, sellMemecoinWithPermit2, uint256ToBytes32, uploadFileToIPFS, uploadImageToFlaunchAPI, uploadImageToIPFS, uploadJsonToIPFS, uploadMetadataToFlaunchAPI };
|
|
32295
|
+
export { AddressFeeSplitManagerAddress, AnyBidWallAddress, AnyFlaunchAddress, AnyPositionManagerAbi, AnyPositionManagerAddress, BidWallAddress, BidWallV1_1Abi, BidWallV1_1Address, BidwallAbi, BuyBackManagerAddress, ClankerWorldVerifierAddress, ClosedPermissionsAddress, DopplerVerifierAddress, FLETHAddress, FLETHHooksAddress, FairLaunchAbi, FairLaunchAddress, FairLaunchV1_1Abi, FairLaunchV1_1Address, FastFlaunchZapAbi, FastFlaunchZapAddress, FeeEscrowAbi, FeeEscrowAddress, FlaunchAbi, FlaunchAddress, FlaunchBackend, FlaunchPositionManagerAbi, FlaunchPositionManagerAddress, FlaunchPositionManagerV1_1Abi, FlaunchPositionManagerV1_1Address, FlaunchPositionManagerV1_2Address, FlaunchSDK, FlaunchV1_1Abi, FlaunchV1_1Address, FlaunchV1_2Address, FlaunchVersion, FlaunchZapAbi, FlaunchZapAddress, InitialPriceAbi, LiquidityMode, MemecoinAbi, MulticallAbi, PERMIT_DETAILS, PERMIT_TYPES, Permissions, Permit2Abi, Permit2Address, PoolManagerAbi, PoolManagerAddress, Q192, Q96, QuoterAbi, QuoterAddress, ReadFlaunchSDK, ReadWriteFlaunchSDK, ReferralEscrowAbi, ReferralEscrowAddress, RevenueManagerAbi, RevenueManagerAddress, SolanaVerifierAddress, StakingManagerAddress, StateViewAbi, StateViewAddress, TICK_SPACING, TickFinder, TokenImporterAddress, TreasuryManagerFactoryAbi, TreasuryManagerFactoryAddress, USDCETHPoolKeys, UniV4PositionManagerAddress, UniversalRouterAbi, UniversalRouterAddress, Verifier, VirtualsVerifierAddress, WhitelistVerifierAddress, WhitelistedPermissionsAddress, ZoraVerifierAddress, buyMemecoin, bytes32ToUint256, calculateUnderlyingTokenBalances, chainIdToChain, createCallDataWalletClient, createDrift, createFlaunch, createFlaunchCalldata, decodeCallData, encodedCallAbi, generateTokenUri, getAmountWithSlippage, getAmountsForLiquidity, getLiquidityFromAmounts, getNearestUsableTick, getPermissionsAddress, getPermit2TypedData, getPoolId, getSqrtPriceX96FromTick, getValidTick, maxLiquidityForAmount0Precise, maxLiquidityForAmount1, orderPoolKey, parseCall, parseSwapData, priceRatioToTick, resolveIPFS, sellMemecoinWithPermit2, uint256ToBytes32, uploadFileToIPFS, uploadImageToFlaunchAPI, uploadImageToIPFS, uploadJsonToIPFS, uploadMetadataToFlaunchAPI };
|
|
32130
32296
|
//# sourceMappingURL=index.esm.js.map
|