@flaunch/sdk 0.9.11 → 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 +1 -1
- package/dist/addresses/index.js +1 -1
- package/dist/clients/TokenImporter.d.ts +10 -0
- package/dist/clients/TokenImporter.d.ts.map +1 -1
- package/dist/index.cjs.js +362 -203
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +362 -203
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- 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/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 = {
|
|
@@ -20397,279 +20397,406 @@ class ReadWriteAnyPositionManager extends ReadAnyPositionManager {
|
|
|
20397
20397
|
|
|
20398
20398
|
const TokenImporterAbi = [
|
|
20399
20399
|
{
|
|
20400
|
-
type: "constructor",
|
|
20401
|
-
inputs: [
|
|
20400
|
+
"type": "constructor",
|
|
20401
|
+
"inputs": [
|
|
20402
20402
|
{
|
|
20403
|
-
name: "_anyPositionManager",
|
|
20404
|
-
type: "address",
|
|
20405
|
-
internalType: "address payable"
|
|
20406
|
-
}
|
|
20403
|
+
"name": "_anyPositionManager",
|
|
20404
|
+
"type": "address",
|
|
20405
|
+
"internalType": "address payable"
|
|
20406
|
+
}
|
|
20407
20407
|
],
|
|
20408
|
-
stateMutability: "nonpayable"
|
|
20408
|
+
"stateMutability": "nonpayable"
|
|
20409
20409
|
},
|
|
20410
20410
|
{
|
|
20411
|
-
type: "function",
|
|
20412
|
-
name: "addVerifier",
|
|
20413
|
-
inputs: [
|
|
20414
|
-
|
|
20415
|
-
|
|
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"
|
|
20416
20422
|
},
|
|
20417
20423
|
{
|
|
20418
|
-
type: "function",
|
|
20419
|
-
name: "anyPositionManager",
|
|
20420
|
-
inputs: [],
|
|
20421
|
-
outputs: [
|
|
20424
|
+
"type": "function",
|
|
20425
|
+
"name": "anyPositionManager",
|
|
20426
|
+
"inputs": [],
|
|
20427
|
+
"outputs": [
|
|
20422
20428
|
{
|
|
20423
|
-
name: "",
|
|
20424
|
-
type: "address",
|
|
20425
|
-
internalType: "contract AnyPositionManager"
|
|
20426
|
-
}
|
|
20429
|
+
"name": "",
|
|
20430
|
+
"type": "address",
|
|
20431
|
+
"internalType": "contract AnyPositionManager"
|
|
20432
|
+
}
|
|
20427
20433
|
],
|
|
20428
|
-
stateMutability: "view"
|
|
20434
|
+
"stateMutability": "view"
|
|
20429
20435
|
},
|
|
20430
20436
|
{
|
|
20431
|
-
type: "function",
|
|
20432
|
-
name: "cancelOwnershipHandover",
|
|
20433
|
-
inputs: [],
|
|
20434
|
-
outputs: [],
|
|
20435
|
-
stateMutability: "payable"
|
|
20437
|
+
"type": "function",
|
|
20438
|
+
"name": "cancelOwnershipHandover",
|
|
20439
|
+
"inputs": [],
|
|
20440
|
+
"outputs": [],
|
|
20441
|
+
"stateMutability": "payable"
|
|
20436
20442
|
},
|
|
20437
20443
|
{
|
|
20438
|
-
type: "function",
|
|
20439
|
-
name: "completeOwnershipHandover",
|
|
20440
|
-
inputs: [
|
|
20441
|
-
{
|
|
20444
|
+
"type": "function",
|
|
20445
|
+
"name": "completeOwnershipHandover",
|
|
20446
|
+
"inputs": [
|
|
20447
|
+
{
|
|
20448
|
+
"name": "pendingOwner",
|
|
20449
|
+
"type": "address",
|
|
20450
|
+
"internalType": "address"
|
|
20451
|
+
}
|
|
20442
20452
|
],
|
|
20443
|
-
outputs: [],
|
|
20444
|
-
stateMutability: "payable"
|
|
20453
|
+
"outputs": [],
|
|
20454
|
+
"stateMutability": "payable"
|
|
20445
20455
|
},
|
|
20446
20456
|
{
|
|
20447
|
-
type: "function",
|
|
20448
|
-
name: "getAllVerifiers",
|
|
20449
|
-
inputs: [],
|
|
20450
|
-
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
|
+
},
|
|
20451
20478
|
{
|
|
20452
|
-
name: "
|
|
20453
|
-
type: "
|
|
20454
|
-
internalType: "
|
|
20479
|
+
"name": "_creatorFeeAllocation",
|
|
20480
|
+
"type": "uint24",
|
|
20481
|
+
"internalType": "uint24"
|
|
20455
20482
|
},
|
|
20483
|
+
{
|
|
20484
|
+
"name": "_initialMarketCap",
|
|
20485
|
+
"type": "uint256",
|
|
20486
|
+
"internalType": "uint256"
|
|
20487
|
+
},
|
|
20488
|
+
{
|
|
20489
|
+
"name": "_verifier",
|
|
20490
|
+
"type": "address",
|
|
20491
|
+
"internalType": "address"
|
|
20492
|
+
}
|
|
20456
20493
|
],
|
|
20457
|
-
|
|
20494
|
+
"outputs": [],
|
|
20495
|
+
"stateMutability": "nonpayable"
|
|
20458
20496
|
},
|
|
20459
20497
|
{
|
|
20460
|
-
type: "function",
|
|
20461
|
-
name: "initialize",
|
|
20462
|
-
inputs: [
|
|
20463
|
-
{ name: "_memecoin", type: "address", internalType: "address" },
|
|
20498
|
+
"type": "function",
|
|
20499
|
+
"name": "initialize",
|
|
20500
|
+
"inputs": [
|
|
20464
20501
|
{
|
|
20465
|
-
name: "
|
|
20466
|
-
type: "
|
|
20467
|
-
internalType: "
|
|
20502
|
+
"name": "_memecoin",
|
|
20503
|
+
"type": "address",
|
|
20504
|
+
"internalType": "address"
|
|
20468
20505
|
},
|
|
20469
20506
|
{
|
|
20470
|
-
name: "
|
|
20471
|
-
type: "
|
|
20472
|
-
internalType: "
|
|
20507
|
+
"name": "_creatorFeeAllocation",
|
|
20508
|
+
"type": "uint24",
|
|
20509
|
+
"internalType": "uint24"
|
|
20473
20510
|
},
|
|
20474
|
-
{
|
|
20511
|
+
{
|
|
20512
|
+
"name": "_initialMarketCap",
|
|
20513
|
+
"type": "uint256",
|
|
20514
|
+
"internalType": "uint256"
|
|
20515
|
+
},
|
|
20516
|
+
{
|
|
20517
|
+
"name": "_totalSupply",
|
|
20518
|
+
"type": "uint256",
|
|
20519
|
+
"internalType": "uint256"
|
|
20520
|
+
},
|
|
20521
|
+
{
|
|
20522
|
+
"name": "_verifier",
|
|
20523
|
+
"type": "address",
|
|
20524
|
+
"internalType": "address"
|
|
20525
|
+
}
|
|
20475
20526
|
],
|
|
20476
|
-
outputs: [],
|
|
20477
|
-
stateMutability: "nonpayable"
|
|
20527
|
+
"outputs": [],
|
|
20528
|
+
"stateMutability": "nonpayable"
|
|
20478
20529
|
},
|
|
20479
20530
|
{
|
|
20480
|
-
type: "function",
|
|
20481
|
-
name: "initialize",
|
|
20482
|
-
inputs: [
|
|
20483
|
-
{ name: "_memecoin", type: "address", internalType: "address" },
|
|
20531
|
+
"type": "function",
|
|
20532
|
+
"name": "initialize",
|
|
20533
|
+
"inputs": [
|
|
20484
20534
|
{
|
|
20485
|
-
name: "
|
|
20486
|
-
type: "
|
|
20487
|
-
internalType: "
|
|
20535
|
+
"name": "_memecoin",
|
|
20536
|
+
"type": "address",
|
|
20537
|
+
"internalType": "address"
|
|
20488
20538
|
},
|
|
20489
20539
|
{
|
|
20490
|
-
name: "
|
|
20491
|
-
type: "
|
|
20492
|
-
internalType: "
|
|
20540
|
+
"name": "_creatorFeeAllocation",
|
|
20541
|
+
"type": "uint24",
|
|
20542
|
+
"internalType": "uint24"
|
|
20493
20543
|
},
|
|
20544
|
+
{
|
|
20545
|
+
"name": "_initialMarketCap",
|
|
20546
|
+
"type": "uint256",
|
|
20547
|
+
"internalType": "uint256"
|
|
20548
|
+
}
|
|
20494
20549
|
],
|
|
20495
|
-
outputs: [],
|
|
20496
|
-
stateMutability: "nonpayable"
|
|
20550
|
+
"outputs": [],
|
|
20551
|
+
"stateMutability": "nonpayable"
|
|
20497
20552
|
},
|
|
20498
20553
|
{
|
|
20499
|
-
type: "function",
|
|
20500
|
-
name: "owner",
|
|
20501
|
-
inputs: [],
|
|
20502
|
-
outputs: [
|
|
20503
|
-
|
|
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"
|
|
20504
20565
|
},
|
|
20505
20566
|
{
|
|
20506
|
-
type: "function",
|
|
20507
|
-
name: "ownershipHandoverExpiresAt",
|
|
20508
|
-
inputs: [
|
|
20509
|
-
{
|
|
20567
|
+
"type": "function",
|
|
20568
|
+
"name": "ownershipHandoverExpiresAt",
|
|
20569
|
+
"inputs": [
|
|
20570
|
+
{
|
|
20571
|
+
"name": "pendingOwner",
|
|
20572
|
+
"type": "address",
|
|
20573
|
+
"internalType": "address"
|
|
20574
|
+
}
|
|
20510
20575
|
],
|
|
20511
|
-
outputs: [
|
|
20512
|
-
|
|
20576
|
+
"outputs": [
|
|
20577
|
+
{
|
|
20578
|
+
"name": "result",
|
|
20579
|
+
"type": "uint256",
|
|
20580
|
+
"internalType": "uint256"
|
|
20581
|
+
}
|
|
20582
|
+
],
|
|
20583
|
+
"stateMutability": "view"
|
|
20513
20584
|
},
|
|
20514
20585
|
{
|
|
20515
|
-
type: "function",
|
|
20516
|
-
name: "removeVerifier",
|
|
20517
|
-
inputs: [
|
|
20518
|
-
|
|
20519
|
-
|
|
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"
|
|
20520
20597
|
},
|
|
20521
20598
|
{
|
|
20522
|
-
type: "function",
|
|
20523
|
-
name: "renounceOwnership",
|
|
20524
|
-
inputs: [],
|
|
20525
|
-
outputs: [],
|
|
20526
|
-
stateMutability: "payable"
|
|
20599
|
+
"type": "function",
|
|
20600
|
+
"name": "renounceOwnership",
|
|
20601
|
+
"inputs": [],
|
|
20602
|
+
"outputs": [],
|
|
20603
|
+
"stateMutability": "payable"
|
|
20527
20604
|
},
|
|
20528
20605
|
{
|
|
20529
|
-
type: "function",
|
|
20530
|
-
name: "requestOwnershipHandover",
|
|
20531
|
-
inputs: [],
|
|
20532
|
-
outputs: [],
|
|
20533
|
-
stateMutability: "payable"
|
|
20606
|
+
"type": "function",
|
|
20607
|
+
"name": "requestOwnershipHandover",
|
|
20608
|
+
"inputs": [],
|
|
20609
|
+
"outputs": [],
|
|
20610
|
+
"stateMutability": "payable"
|
|
20534
20611
|
},
|
|
20535
20612
|
{
|
|
20536
|
-
type: "function",
|
|
20537
|
-
name: "setAnyPositionManager",
|
|
20538
|
-
inputs: [
|
|
20613
|
+
"type": "function",
|
|
20614
|
+
"name": "setAnyPositionManager",
|
|
20615
|
+
"inputs": [
|
|
20539
20616
|
{
|
|
20540
|
-
name: "_anyPositionManager",
|
|
20541
|
-
type: "address",
|
|
20542
|
-
internalType: "address payable"
|
|
20543
|
-
}
|
|
20617
|
+
"name": "_anyPositionManager",
|
|
20618
|
+
"type": "address",
|
|
20619
|
+
"internalType": "address payable"
|
|
20620
|
+
}
|
|
20544
20621
|
],
|
|
20545
|
-
outputs: [],
|
|
20546
|
-
stateMutability: "nonpayable"
|
|
20622
|
+
"outputs": [],
|
|
20623
|
+
"stateMutability": "nonpayable"
|
|
20547
20624
|
},
|
|
20548
20625
|
{
|
|
20549
|
-
type: "function",
|
|
20550
|
-
name: "transferOwnership",
|
|
20551
|
-
inputs: [
|
|
20552
|
-
|
|
20553
|
-
|
|
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"
|
|
20554
20637
|
},
|
|
20555
20638
|
{
|
|
20556
|
-
type: "function",
|
|
20557
|
-
name: "verifyMemecoin",
|
|
20558
|
-
inputs: [
|
|
20559
|
-
|
|
20560
|
-
|
|
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"
|
|
20561
20656
|
},
|
|
20562
20657
|
{
|
|
20563
|
-
type: "event",
|
|
20564
|
-
name: "AnyPositionManagerSet",
|
|
20565
|
-
inputs: [
|
|
20658
|
+
"type": "event",
|
|
20659
|
+
"name": "AnyPositionManagerSet",
|
|
20660
|
+
"inputs": [
|
|
20566
20661
|
{
|
|
20567
|
-
name: "_anyPositionManager",
|
|
20568
|
-
type: "address",
|
|
20569
|
-
indexed: true,
|
|
20570
|
-
internalType: "address"
|
|
20571
|
-
}
|
|
20662
|
+
"name": "_anyPositionManager",
|
|
20663
|
+
"type": "address",
|
|
20664
|
+
"indexed": true,
|
|
20665
|
+
"internalType": "address"
|
|
20666
|
+
}
|
|
20572
20667
|
],
|
|
20573
|
-
anonymous: false
|
|
20668
|
+
"anonymous": false
|
|
20574
20669
|
},
|
|
20575
20670
|
{
|
|
20576
|
-
type: "event",
|
|
20577
|
-
name: "OwnershipHandoverCanceled",
|
|
20578
|
-
inputs: [
|
|
20671
|
+
"type": "event",
|
|
20672
|
+
"name": "OwnershipHandoverCanceled",
|
|
20673
|
+
"inputs": [
|
|
20579
20674
|
{
|
|
20580
|
-
name: "pendingOwner",
|
|
20581
|
-
type: "address",
|
|
20582
|
-
indexed: true,
|
|
20583
|
-
internalType: "address"
|
|
20584
|
-
}
|
|
20675
|
+
"name": "pendingOwner",
|
|
20676
|
+
"type": "address",
|
|
20677
|
+
"indexed": true,
|
|
20678
|
+
"internalType": "address"
|
|
20679
|
+
}
|
|
20585
20680
|
],
|
|
20586
|
-
anonymous: false
|
|
20681
|
+
"anonymous": false
|
|
20587
20682
|
},
|
|
20588
20683
|
{
|
|
20589
|
-
type: "event",
|
|
20590
|
-
name: "OwnershipHandoverRequested",
|
|
20591
|
-
inputs: [
|
|
20684
|
+
"type": "event",
|
|
20685
|
+
"name": "OwnershipHandoverRequested",
|
|
20686
|
+
"inputs": [
|
|
20592
20687
|
{
|
|
20593
|
-
name: "pendingOwner",
|
|
20594
|
-
type: "address",
|
|
20595
|
-
indexed: true,
|
|
20596
|
-
internalType: "address"
|
|
20597
|
-
}
|
|
20688
|
+
"name": "pendingOwner",
|
|
20689
|
+
"type": "address",
|
|
20690
|
+
"indexed": true,
|
|
20691
|
+
"internalType": "address"
|
|
20692
|
+
}
|
|
20598
20693
|
],
|
|
20599
|
-
anonymous: false
|
|
20694
|
+
"anonymous": false
|
|
20600
20695
|
},
|
|
20601
20696
|
{
|
|
20602
|
-
type: "event",
|
|
20603
|
-
name: "OwnershipTransferred",
|
|
20604
|
-
inputs: [
|
|
20697
|
+
"type": "event",
|
|
20698
|
+
"name": "OwnershipTransferred",
|
|
20699
|
+
"inputs": [
|
|
20605
20700
|
{
|
|
20606
|
-
name: "oldOwner",
|
|
20607
|
-
type: "address",
|
|
20608
|
-
indexed: true,
|
|
20609
|
-
internalType: "address"
|
|
20701
|
+
"name": "oldOwner",
|
|
20702
|
+
"type": "address",
|
|
20703
|
+
"indexed": true,
|
|
20704
|
+
"internalType": "address"
|
|
20610
20705
|
},
|
|
20611
20706
|
{
|
|
20612
|
-
name: "newOwner",
|
|
20613
|
-
type: "address",
|
|
20614
|
-
indexed: true,
|
|
20615
|
-
internalType: "address"
|
|
20616
|
-
}
|
|
20707
|
+
"name": "newOwner",
|
|
20708
|
+
"type": "address",
|
|
20709
|
+
"indexed": true,
|
|
20710
|
+
"internalType": "address"
|
|
20711
|
+
}
|
|
20617
20712
|
],
|
|
20618
|
-
anonymous: false
|
|
20713
|
+
"anonymous": false
|
|
20619
20714
|
},
|
|
20620
20715
|
{
|
|
20621
|
-
type: "event",
|
|
20622
|
-
name: "TokenImported",
|
|
20623
|
-
inputs: [
|
|
20716
|
+
"type": "event",
|
|
20717
|
+
"name": "TokenImported",
|
|
20718
|
+
"inputs": [
|
|
20624
20719
|
{
|
|
20625
|
-
name: "_memecoin",
|
|
20626
|
-
type: "address",
|
|
20627
|
-
indexed: true,
|
|
20628
|
-
internalType: "address"
|
|
20720
|
+
"name": "_memecoin",
|
|
20721
|
+
"type": "address",
|
|
20722
|
+
"indexed": true,
|
|
20723
|
+
"internalType": "address"
|
|
20629
20724
|
},
|
|
20630
20725
|
{
|
|
20631
|
-
name: "_verifier",
|
|
20632
|
-
type: "address",
|
|
20633
|
-
indexed: true,
|
|
20634
|
-
internalType: "address"
|
|
20635
|
-
}
|
|
20726
|
+
"name": "_verifier",
|
|
20727
|
+
"type": "address",
|
|
20728
|
+
"indexed": true,
|
|
20729
|
+
"internalType": "address"
|
|
20730
|
+
}
|
|
20636
20731
|
],
|
|
20637
|
-
anonymous: false
|
|
20732
|
+
"anonymous": false
|
|
20638
20733
|
},
|
|
20639
20734
|
{
|
|
20640
|
-
type: "event",
|
|
20641
|
-
name: "VerifierAdded",
|
|
20642
|
-
inputs: [
|
|
20735
|
+
"type": "event",
|
|
20736
|
+
"name": "VerifierAdded",
|
|
20737
|
+
"inputs": [
|
|
20643
20738
|
{
|
|
20644
|
-
name: "_verifier",
|
|
20645
|
-
type: "address",
|
|
20646
|
-
indexed: true,
|
|
20647
|
-
internalType: "address"
|
|
20648
|
-
}
|
|
20739
|
+
"name": "_verifier",
|
|
20740
|
+
"type": "address",
|
|
20741
|
+
"indexed": true,
|
|
20742
|
+
"internalType": "address"
|
|
20743
|
+
}
|
|
20649
20744
|
],
|
|
20650
|
-
anonymous: false
|
|
20745
|
+
"anonymous": false
|
|
20651
20746
|
},
|
|
20652
20747
|
{
|
|
20653
|
-
type: "event",
|
|
20654
|
-
name: "VerifierRemoved",
|
|
20655
|
-
inputs: [
|
|
20748
|
+
"type": "event",
|
|
20749
|
+
"name": "VerifierRemoved",
|
|
20750
|
+
"inputs": [
|
|
20656
20751
|
{
|
|
20657
|
-
name: "_verifier",
|
|
20658
|
-
type: "address",
|
|
20659
|
-
indexed: true,
|
|
20660
|
-
internalType: "address"
|
|
20661
|
-
}
|
|
20752
|
+
"name": "_verifier",
|
|
20753
|
+
"type": "address",
|
|
20754
|
+
"indexed": true,
|
|
20755
|
+
"internalType": "address"
|
|
20756
|
+
}
|
|
20662
20757
|
],
|
|
20663
|
-
anonymous: false
|
|
20758
|
+
"anonymous": false
|
|
20664
20759
|
},
|
|
20665
|
-
{
|
|
20666
|
-
|
|
20667
|
-
|
|
20668
|
-
|
|
20669
|
-
|
|
20670
|
-
{
|
|
20671
|
-
|
|
20672
|
-
|
|
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
|
+
}
|
|
20673
20800
|
];
|
|
20674
20801
|
|
|
20675
20802
|
/**
|
|
@@ -20751,12 +20878,20 @@ class ReadWriteTokenImporter extends ReadTokenImporter {
|
|
|
20751
20878
|
: await this.contract.read("verifyMemecoin", {
|
|
20752
20879
|
_memecoin: params.coinAddress,
|
|
20753
20880
|
});
|
|
20754
|
-
|
|
20881
|
+
const baseParams = {
|
|
20755
20882
|
_memecoin: params.coinAddress,
|
|
20756
20883
|
_creatorFeeAllocation: creatorFeeAllocationInBps,
|
|
20757
20884
|
_initialMarketCap: initialMCapInUSDCWei,
|
|
20758
20885
|
_verifier,
|
|
20759
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;
|
|
20760
20895
|
}
|
|
20761
20896
|
}
|
|
20762
20897
|
|
|
@@ -28286,21 +28421,45 @@ class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
|
|
|
28286
28421
|
let importParams;
|
|
28287
28422
|
if ("initialMarketCapUSD" in params) {
|
|
28288
28423
|
const paramsWithMarketCap = params;
|
|
28289
|
-
|
|
28290
|
-
|
|
28291
|
-
|
|
28292
|
-
|
|
28293
|
-
|
|
28294
|
-
|
|
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
|
+
}
|
|
28295
28442
|
}
|
|
28296
28443
|
else {
|
|
28297
28444
|
const paramsWithPrice = params;
|
|
28298
|
-
|
|
28299
|
-
|
|
28300
|
-
|
|
28301
|
-
|
|
28302
|
-
|
|
28303
|
-
|
|
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
|
+
}
|
|
28304
28463
|
}
|
|
28305
28464
|
const addLiquidityCalls = await this.getSingleSidedCoinAddLiquidityCalls({
|
|
28306
28465
|
...params,
|