@flaunch/sdk 0.9.11 → 0.9.13
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/AnyFlaunch.d.ts +684 -0
- package/dist/abi/AnyFlaunch.d.ts.map +1 -0
- package/dist/abi/TokenImporter.d.ts +26 -0
- package/dist/abi/TokenImporter.d.ts.map +1 -1
- package/dist/addresses/index.cjs +1 -2
- package/dist/addresses/index.cjs.map +1 -1
- package/dist/addresses/index.js +1 -2
- package/dist/addresses/index.js.map +1 -1
- package/dist/addresses.d.ts.map +1 -1
- package/dist/clients/AnyFlaunchClient.d.ts +36 -0
- package/dist/clients/AnyFlaunchClient.d.ts.map +1 -0
- package/dist/clients/TokenImporter.d.ts +10 -0
- package/dist/clients/TokenImporter.d.ts.map +1 -1
- package/dist/helpers/index.cjs.map +1 -1
- package/dist/helpers/index.js.map +1 -1
- package/dist/index.cjs.js +961 -224
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +961 -224
- 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 +56 -0
- package/dist/sdk/FlaunchSDK.d.ts.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -5710,7 +5710,6 @@ const FlaunchAddress = {
|
|
|
5710
5710
|
[base.id]: "0xCc7A4A00072ccbeEEbd999edc812C0ce498Fb63B",
|
|
5711
5711
|
[baseSepolia.id]: "0x7D375C9133721083DF7b7e5Cb0Ed8Fc78862dfe3",
|
|
5712
5712
|
};
|
|
5713
|
-
// also supports AnyPositionManager
|
|
5714
5713
|
const FlaunchV1_1Address = {
|
|
5715
5714
|
[base.id]: "0xb4512bf57d50fbcb64a3adf8b17a79b2a204c18c",
|
|
5716
5715
|
[baseSepolia.id]: "0x96be8ff5e244294a34bfa507a39190dc7a839baa",
|
|
@@ -5767,7 +5766,7 @@ const BuyBackManagerAddress = {
|
|
|
5767
5766
|
};
|
|
5768
5767
|
/** Verifiers */
|
|
5769
5768
|
const TokenImporterAddress = {
|
|
5770
|
-
[base.id]: "
|
|
5769
|
+
[base.id]: "0x6fb66f4fc262dc86e12136c481ba7c411e668197",
|
|
5771
5770
|
[baseSepolia.id]: "0x7981369D21975F39773f289F759F7d7CE1097139",
|
|
5772
5771
|
};
|
|
5773
5772
|
const ClankerWorldVerifierAddress = {
|
|
@@ -15161,6 +15160,554 @@ class ReadFlaunch {
|
|
|
15161
15160
|
}
|
|
15162
15161
|
}
|
|
15163
15162
|
|
|
15163
|
+
const AnyFlaunchAbi = [
|
|
15164
|
+
{
|
|
15165
|
+
inputs: [{ internalType: "string", name: "_baseURI", type: "string" }],
|
|
15166
|
+
stateMutability: "nonpayable",
|
|
15167
|
+
type: "constructor",
|
|
15168
|
+
},
|
|
15169
|
+
{ inputs: [], name: "AccountBalanceOverflow", type: "error" },
|
|
15170
|
+
{ inputs: [], name: "AlreadyInitialized", type: "error" },
|
|
15171
|
+
{ inputs: [], name: "BalanceQueryForZeroAddress", type: "error" },
|
|
15172
|
+
{ inputs: [], name: "BaseURICannotBeEmpty", type: "error" },
|
|
15173
|
+
{ inputs: [], name: "CallerIsNotPositionManager", type: "error" },
|
|
15174
|
+
{
|
|
15175
|
+
inputs: [
|
|
15176
|
+
{ internalType: "uint24", name: "_allocation", type: "uint24" },
|
|
15177
|
+
{ internalType: "uint256", name: "_maxAllocation", type: "uint256" },
|
|
15178
|
+
],
|
|
15179
|
+
name: "CreatorFeeAllocationInvalid",
|
|
15180
|
+
type: "error",
|
|
15181
|
+
},
|
|
15182
|
+
{ inputs: [], name: "InvalidInitialization", type: "error" },
|
|
15183
|
+
{ inputs: [], name: "NewOwnerIsZeroAddress", type: "error" },
|
|
15184
|
+
{ inputs: [], name: "NoHandoverRequest", type: "error" },
|
|
15185
|
+
{ inputs: [], name: "NotInitializing", type: "error" },
|
|
15186
|
+
{ inputs: [], name: "NotOwnerNorApproved", type: "error" },
|
|
15187
|
+
{ inputs: [], name: "TokenAlreadyExists", type: "error" },
|
|
15188
|
+
{ inputs: [], name: "TokenDoesNotExist", type: "error" },
|
|
15189
|
+
{ inputs: [], name: "TransferFromIncorrectOwner", type: "error" },
|
|
15190
|
+
{ inputs: [], name: "TransferToNonERC721ReceiverImplementer", type: "error" },
|
|
15191
|
+
{ inputs: [], name: "TransferToZeroAddress", type: "error" },
|
|
15192
|
+
{ inputs: [], name: "Unauthorized", type: "error" },
|
|
15193
|
+
{
|
|
15194
|
+
anonymous: false,
|
|
15195
|
+
inputs: [
|
|
15196
|
+
{
|
|
15197
|
+
indexed: true,
|
|
15198
|
+
internalType: "address",
|
|
15199
|
+
name: "owner",
|
|
15200
|
+
type: "address",
|
|
15201
|
+
},
|
|
15202
|
+
{
|
|
15203
|
+
indexed: true,
|
|
15204
|
+
internalType: "address",
|
|
15205
|
+
name: "account",
|
|
15206
|
+
type: "address",
|
|
15207
|
+
},
|
|
15208
|
+
{ indexed: true, internalType: "uint256", name: "id", type: "uint256" },
|
|
15209
|
+
],
|
|
15210
|
+
name: "Approval",
|
|
15211
|
+
type: "event",
|
|
15212
|
+
},
|
|
15213
|
+
{
|
|
15214
|
+
anonymous: false,
|
|
15215
|
+
inputs: [
|
|
15216
|
+
{
|
|
15217
|
+
indexed: true,
|
|
15218
|
+
internalType: "address",
|
|
15219
|
+
name: "owner",
|
|
15220
|
+
type: "address",
|
|
15221
|
+
},
|
|
15222
|
+
{
|
|
15223
|
+
indexed: true,
|
|
15224
|
+
internalType: "address",
|
|
15225
|
+
name: "operator",
|
|
15226
|
+
type: "address",
|
|
15227
|
+
},
|
|
15228
|
+
{
|
|
15229
|
+
indexed: false,
|
|
15230
|
+
internalType: "bool",
|
|
15231
|
+
name: "isApproved",
|
|
15232
|
+
type: "bool",
|
|
15233
|
+
},
|
|
15234
|
+
],
|
|
15235
|
+
name: "ApprovalForAll",
|
|
15236
|
+
type: "event",
|
|
15237
|
+
},
|
|
15238
|
+
{
|
|
15239
|
+
anonymous: false,
|
|
15240
|
+
inputs: [
|
|
15241
|
+
{
|
|
15242
|
+
indexed: false,
|
|
15243
|
+
internalType: "string",
|
|
15244
|
+
name: "_newBaseURI",
|
|
15245
|
+
type: "string",
|
|
15246
|
+
},
|
|
15247
|
+
],
|
|
15248
|
+
name: "BaseURIUpdated",
|
|
15249
|
+
type: "event",
|
|
15250
|
+
},
|
|
15251
|
+
{
|
|
15252
|
+
anonymous: false,
|
|
15253
|
+
inputs: [
|
|
15254
|
+
{
|
|
15255
|
+
indexed: false,
|
|
15256
|
+
internalType: "uint64",
|
|
15257
|
+
name: "version",
|
|
15258
|
+
type: "uint64",
|
|
15259
|
+
},
|
|
15260
|
+
],
|
|
15261
|
+
name: "Initialized",
|
|
15262
|
+
type: "event",
|
|
15263
|
+
},
|
|
15264
|
+
{
|
|
15265
|
+
anonymous: false,
|
|
15266
|
+
inputs: [
|
|
15267
|
+
{
|
|
15268
|
+
indexed: false,
|
|
15269
|
+
internalType: "address",
|
|
15270
|
+
name: "_newImplementation",
|
|
15271
|
+
type: "address",
|
|
15272
|
+
},
|
|
15273
|
+
],
|
|
15274
|
+
name: "MemecoinTreasuryImplementationUpdated",
|
|
15275
|
+
type: "event",
|
|
15276
|
+
},
|
|
15277
|
+
{
|
|
15278
|
+
anonymous: false,
|
|
15279
|
+
inputs: [
|
|
15280
|
+
{
|
|
15281
|
+
indexed: true,
|
|
15282
|
+
internalType: "address",
|
|
15283
|
+
name: "pendingOwner",
|
|
15284
|
+
type: "address",
|
|
15285
|
+
},
|
|
15286
|
+
],
|
|
15287
|
+
name: "OwnershipHandoverCanceled",
|
|
15288
|
+
type: "event",
|
|
15289
|
+
},
|
|
15290
|
+
{
|
|
15291
|
+
anonymous: false,
|
|
15292
|
+
inputs: [
|
|
15293
|
+
{
|
|
15294
|
+
indexed: true,
|
|
15295
|
+
internalType: "address",
|
|
15296
|
+
name: "pendingOwner",
|
|
15297
|
+
type: "address",
|
|
15298
|
+
},
|
|
15299
|
+
],
|
|
15300
|
+
name: "OwnershipHandoverRequested",
|
|
15301
|
+
type: "event",
|
|
15302
|
+
},
|
|
15303
|
+
{
|
|
15304
|
+
anonymous: false,
|
|
15305
|
+
inputs: [
|
|
15306
|
+
{
|
|
15307
|
+
indexed: true,
|
|
15308
|
+
internalType: "address",
|
|
15309
|
+
name: "oldOwner",
|
|
15310
|
+
type: "address",
|
|
15311
|
+
},
|
|
15312
|
+
{
|
|
15313
|
+
indexed: true,
|
|
15314
|
+
internalType: "address",
|
|
15315
|
+
name: "newOwner",
|
|
15316
|
+
type: "address",
|
|
15317
|
+
},
|
|
15318
|
+
],
|
|
15319
|
+
name: "OwnershipTransferred",
|
|
15320
|
+
type: "event",
|
|
15321
|
+
},
|
|
15322
|
+
{
|
|
15323
|
+
anonymous: false,
|
|
15324
|
+
inputs: [
|
|
15325
|
+
{ indexed: true, internalType: "address", name: "from", type: "address" },
|
|
15326
|
+
{ indexed: true, internalType: "address", name: "to", type: "address" },
|
|
15327
|
+
{ indexed: true, internalType: "uint256", name: "id", type: "uint256" },
|
|
15328
|
+
],
|
|
15329
|
+
name: "Transfer",
|
|
15330
|
+
type: "event",
|
|
15331
|
+
},
|
|
15332
|
+
{
|
|
15333
|
+
inputs: [],
|
|
15334
|
+
name: "MAX_CREATOR_ALLOCATION",
|
|
15335
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
15336
|
+
stateMutability: "view",
|
|
15337
|
+
type: "function",
|
|
15338
|
+
},
|
|
15339
|
+
{
|
|
15340
|
+
inputs: [
|
|
15341
|
+
{ internalType: "address", name: "account", type: "address" },
|
|
15342
|
+
{ internalType: "uint256", name: "id", type: "uint256" },
|
|
15343
|
+
],
|
|
15344
|
+
name: "approve",
|
|
15345
|
+
outputs: [],
|
|
15346
|
+
stateMutability: "payable",
|
|
15347
|
+
type: "function",
|
|
15348
|
+
},
|
|
15349
|
+
{
|
|
15350
|
+
inputs: [{ internalType: "address", name: "owner", type: "address" }],
|
|
15351
|
+
name: "balanceOf",
|
|
15352
|
+
outputs: [{ internalType: "uint256", name: "result", type: "uint256" }],
|
|
15353
|
+
stateMutability: "view",
|
|
15354
|
+
type: "function",
|
|
15355
|
+
},
|
|
15356
|
+
{
|
|
15357
|
+
inputs: [],
|
|
15358
|
+
name: "baseURI",
|
|
15359
|
+
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
15360
|
+
stateMutability: "view",
|
|
15361
|
+
type: "function",
|
|
15362
|
+
},
|
|
15363
|
+
{
|
|
15364
|
+
inputs: [{ internalType: "uint256", name: "_tokenId", type: "uint256" }],
|
|
15365
|
+
name: "burn",
|
|
15366
|
+
outputs: [],
|
|
15367
|
+
stateMutability: "nonpayable",
|
|
15368
|
+
type: "function",
|
|
15369
|
+
},
|
|
15370
|
+
{
|
|
15371
|
+
inputs: [],
|
|
15372
|
+
name: "cancelOwnershipHandover",
|
|
15373
|
+
outputs: [],
|
|
15374
|
+
stateMutability: "payable",
|
|
15375
|
+
type: "function",
|
|
15376
|
+
},
|
|
15377
|
+
{
|
|
15378
|
+
inputs: [
|
|
15379
|
+
{ internalType: "address", name: "pendingOwner", type: "address" },
|
|
15380
|
+
],
|
|
15381
|
+
name: "completeOwnershipHandover",
|
|
15382
|
+
outputs: [],
|
|
15383
|
+
stateMutability: "payable",
|
|
15384
|
+
type: "function",
|
|
15385
|
+
},
|
|
15386
|
+
{
|
|
15387
|
+
inputs: [{ internalType: "address", name: "_memecoin", type: "address" }],
|
|
15388
|
+
name: "creator",
|
|
15389
|
+
outputs: [{ internalType: "address", name: "creator_", type: "address" }],
|
|
15390
|
+
stateMutability: "view",
|
|
15391
|
+
type: "function",
|
|
15392
|
+
},
|
|
15393
|
+
{
|
|
15394
|
+
inputs: [
|
|
15395
|
+
{
|
|
15396
|
+
components: [
|
|
15397
|
+
{ internalType: "address", name: "memecoin", type: "address" },
|
|
15398
|
+
{ internalType: "address", name: "creator", type: "address" },
|
|
15399
|
+
{
|
|
15400
|
+
internalType: "uint24",
|
|
15401
|
+
name: "creatorFeeAllocation",
|
|
15402
|
+
type: "uint24",
|
|
15403
|
+
},
|
|
15404
|
+
{ internalType: "bytes", name: "initialPriceParams", type: "bytes" },
|
|
15405
|
+
{ internalType: "bytes", name: "feeCalculatorParams", type: "bytes" },
|
|
15406
|
+
],
|
|
15407
|
+
internalType: "struct AnyPositionManager.FlaunchParams",
|
|
15408
|
+
name: "_params",
|
|
15409
|
+
type: "tuple",
|
|
15410
|
+
},
|
|
15411
|
+
],
|
|
15412
|
+
name: "flaunch",
|
|
15413
|
+
outputs: [
|
|
15414
|
+
{
|
|
15415
|
+
internalType: "address payable",
|
|
15416
|
+
name: "memecoinTreasury_",
|
|
15417
|
+
type: "address",
|
|
15418
|
+
},
|
|
15419
|
+
{ internalType: "uint256", name: "tokenId_", type: "uint256" },
|
|
15420
|
+
],
|
|
15421
|
+
stateMutability: "nonpayable",
|
|
15422
|
+
type: "function",
|
|
15423
|
+
},
|
|
15424
|
+
{
|
|
15425
|
+
inputs: [{ internalType: "uint256", name: "id", type: "uint256" }],
|
|
15426
|
+
name: "getApproved",
|
|
15427
|
+
outputs: [{ internalType: "address", name: "result", type: "address" }],
|
|
15428
|
+
stateMutability: "view",
|
|
15429
|
+
type: "function",
|
|
15430
|
+
},
|
|
15431
|
+
{
|
|
15432
|
+
inputs: [
|
|
15433
|
+
{
|
|
15434
|
+
internalType: "contract AnyPositionManager",
|
|
15435
|
+
name: "_positionManager",
|
|
15436
|
+
type: "address",
|
|
15437
|
+
},
|
|
15438
|
+
{
|
|
15439
|
+
internalType: "address",
|
|
15440
|
+
name: "_memecoinTreasuryImplementation",
|
|
15441
|
+
type: "address",
|
|
15442
|
+
},
|
|
15443
|
+
],
|
|
15444
|
+
name: "initialize",
|
|
15445
|
+
outputs: [],
|
|
15446
|
+
stateMutability: "nonpayable",
|
|
15447
|
+
type: "function",
|
|
15448
|
+
},
|
|
15449
|
+
{
|
|
15450
|
+
inputs: [
|
|
15451
|
+
{ internalType: "address", name: "owner", type: "address" },
|
|
15452
|
+
{ internalType: "address", name: "operator", type: "address" },
|
|
15453
|
+
],
|
|
15454
|
+
name: "isApprovedForAll",
|
|
15455
|
+
outputs: [{ internalType: "bool", name: "result", type: "bool" }],
|
|
15456
|
+
stateMutability: "view",
|
|
15457
|
+
type: "function",
|
|
15458
|
+
},
|
|
15459
|
+
{
|
|
15460
|
+
inputs: [{ internalType: "uint256", name: "_tokenId", type: "uint256" }],
|
|
15461
|
+
name: "memecoin",
|
|
15462
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
15463
|
+
stateMutability: "view",
|
|
15464
|
+
type: "function",
|
|
15465
|
+
},
|
|
15466
|
+
{
|
|
15467
|
+
inputs: [{ internalType: "address", name: "_memecoin", type: "address" }],
|
|
15468
|
+
name: "memecoinTreasury",
|
|
15469
|
+
outputs: [{ internalType: "address payable", name: "", type: "address" }],
|
|
15470
|
+
stateMutability: "view",
|
|
15471
|
+
type: "function",
|
|
15472
|
+
},
|
|
15473
|
+
{
|
|
15474
|
+
inputs: [{ internalType: "uint256", name: "_tokenId", type: "uint256" }],
|
|
15475
|
+
name: "memecoinTreasury",
|
|
15476
|
+
outputs: [{ internalType: "address payable", name: "", type: "address" }],
|
|
15477
|
+
stateMutability: "view",
|
|
15478
|
+
type: "function",
|
|
15479
|
+
},
|
|
15480
|
+
{
|
|
15481
|
+
inputs: [],
|
|
15482
|
+
name: "memecoinTreasuryImplementation",
|
|
15483
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
15484
|
+
stateMutability: "view",
|
|
15485
|
+
type: "function",
|
|
15486
|
+
},
|
|
15487
|
+
{
|
|
15488
|
+
inputs: [],
|
|
15489
|
+
name: "name",
|
|
15490
|
+
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
15491
|
+
stateMutability: "view",
|
|
15492
|
+
type: "function",
|
|
15493
|
+
},
|
|
15494
|
+
{
|
|
15495
|
+
inputs: [],
|
|
15496
|
+
name: "nextTokenId",
|
|
15497
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
15498
|
+
stateMutability: "view",
|
|
15499
|
+
type: "function",
|
|
15500
|
+
},
|
|
15501
|
+
{
|
|
15502
|
+
inputs: [],
|
|
15503
|
+
name: "owner",
|
|
15504
|
+
outputs: [{ internalType: "address", name: "result", type: "address" }],
|
|
15505
|
+
stateMutability: "view",
|
|
15506
|
+
type: "function",
|
|
15507
|
+
},
|
|
15508
|
+
{
|
|
15509
|
+
inputs: [{ internalType: "uint256", name: "id", type: "uint256" }],
|
|
15510
|
+
name: "ownerOf",
|
|
15511
|
+
outputs: [{ internalType: "address", name: "result", type: "address" }],
|
|
15512
|
+
stateMutability: "view",
|
|
15513
|
+
type: "function",
|
|
15514
|
+
},
|
|
15515
|
+
{
|
|
15516
|
+
inputs: [
|
|
15517
|
+
{ internalType: "address", name: "pendingOwner", type: "address" },
|
|
15518
|
+
],
|
|
15519
|
+
name: "ownershipHandoverExpiresAt",
|
|
15520
|
+
outputs: [{ internalType: "uint256", name: "result", type: "uint256" }],
|
|
15521
|
+
stateMutability: "view",
|
|
15522
|
+
type: "function",
|
|
15523
|
+
},
|
|
15524
|
+
{
|
|
15525
|
+
inputs: [{ internalType: "uint256", name: "_tokenId", type: "uint256" }],
|
|
15526
|
+
name: "poolId",
|
|
15527
|
+
outputs: [{ internalType: "PoolId", name: "", type: "bytes32" }],
|
|
15528
|
+
stateMutability: "view",
|
|
15529
|
+
type: "function",
|
|
15530
|
+
},
|
|
15531
|
+
{
|
|
15532
|
+
inputs: [],
|
|
15533
|
+
name: "positionManager",
|
|
15534
|
+
outputs: [
|
|
15535
|
+
{
|
|
15536
|
+
internalType: "contract AnyPositionManager",
|
|
15537
|
+
name: "",
|
|
15538
|
+
type: "address",
|
|
15539
|
+
},
|
|
15540
|
+
],
|
|
15541
|
+
stateMutability: "view",
|
|
15542
|
+
type: "function",
|
|
15543
|
+
},
|
|
15544
|
+
{
|
|
15545
|
+
inputs: [],
|
|
15546
|
+
name: "renounceOwnership",
|
|
15547
|
+
outputs: [],
|
|
15548
|
+
stateMutability: "payable",
|
|
15549
|
+
type: "function",
|
|
15550
|
+
},
|
|
15551
|
+
{
|
|
15552
|
+
inputs: [],
|
|
15553
|
+
name: "requestOwnershipHandover",
|
|
15554
|
+
outputs: [],
|
|
15555
|
+
stateMutability: "payable",
|
|
15556
|
+
type: "function",
|
|
15557
|
+
},
|
|
15558
|
+
{
|
|
15559
|
+
inputs: [
|
|
15560
|
+
{ internalType: "address", name: "from", type: "address" },
|
|
15561
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
15562
|
+
{ internalType: "uint256", name: "id", type: "uint256" },
|
|
15563
|
+
],
|
|
15564
|
+
name: "safeTransferFrom",
|
|
15565
|
+
outputs: [],
|
|
15566
|
+
stateMutability: "payable",
|
|
15567
|
+
type: "function",
|
|
15568
|
+
},
|
|
15569
|
+
{
|
|
15570
|
+
inputs: [
|
|
15571
|
+
{ internalType: "address", name: "from", type: "address" },
|
|
15572
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
15573
|
+
{ internalType: "uint256", name: "id", type: "uint256" },
|
|
15574
|
+
{ internalType: "bytes", name: "data", type: "bytes" },
|
|
15575
|
+
],
|
|
15576
|
+
name: "safeTransferFrom",
|
|
15577
|
+
outputs: [],
|
|
15578
|
+
stateMutability: "payable",
|
|
15579
|
+
type: "function",
|
|
15580
|
+
},
|
|
15581
|
+
{
|
|
15582
|
+
inputs: [
|
|
15583
|
+
{ internalType: "address", name: "operator", type: "address" },
|
|
15584
|
+
{ internalType: "bool", name: "isApproved", type: "bool" },
|
|
15585
|
+
],
|
|
15586
|
+
name: "setApprovalForAll",
|
|
15587
|
+
outputs: [],
|
|
15588
|
+
stateMutability: "nonpayable",
|
|
15589
|
+
type: "function",
|
|
15590
|
+
},
|
|
15591
|
+
{
|
|
15592
|
+
inputs: [{ internalType: "string", name: "_baseURI", type: "string" }],
|
|
15593
|
+
name: "setBaseURI",
|
|
15594
|
+
outputs: [],
|
|
15595
|
+
stateMutability: "nonpayable",
|
|
15596
|
+
type: "function",
|
|
15597
|
+
},
|
|
15598
|
+
{
|
|
15599
|
+
inputs: [
|
|
15600
|
+
{
|
|
15601
|
+
internalType: "address",
|
|
15602
|
+
name: "_memecoinTreasuryImplementation",
|
|
15603
|
+
type: "address",
|
|
15604
|
+
},
|
|
15605
|
+
],
|
|
15606
|
+
name: "setMemecoinTreasuryImplementation",
|
|
15607
|
+
outputs: [],
|
|
15608
|
+
stateMutability: "nonpayable",
|
|
15609
|
+
type: "function",
|
|
15610
|
+
},
|
|
15611
|
+
{
|
|
15612
|
+
inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }],
|
|
15613
|
+
name: "supportsInterface",
|
|
15614
|
+
outputs: [{ internalType: "bool", name: "result", type: "bool" }],
|
|
15615
|
+
stateMutability: "view",
|
|
15616
|
+
type: "function",
|
|
15617
|
+
},
|
|
15618
|
+
{
|
|
15619
|
+
inputs: [],
|
|
15620
|
+
name: "symbol",
|
|
15621
|
+
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
15622
|
+
stateMutability: "view",
|
|
15623
|
+
type: "function",
|
|
15624
|
+
},
|
|
15625
|
+
{
|
|
15626
|
+
inputs: [{ internalType: "address", name: "_memecoin", type: "address" }],
|
|
15627
|
+
name: "tokenId",
|
|
15628
|
+
outputs: [{ internalType: "uint256", name: "_tokenId", type: "uint256" }],
|
|
15629
|
+
stateMutability: "view",
|
|
15630
|
+
type: "function",
|
|
15631
|
+
},
|
|
15632
|
+
{
|
|
15633
|
+
inputs: [{ internalType: "uint256", name: "_tokenId", type: "uint256" }],
|
|
15634
|
+
name: "tokenURI",
|
|
15635
|
+
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
15636
|
+
stateMutability: "view",
|
|
15637
|
+
type: "function",
|
|
15638
|
+
},
|
|
15639
|
+
{
|
|
15640
|
+
inputs: [
|
|
15641
|
+
{ internalType: "address", name: "from", type: "address" },
|
|
15642
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
15643
|
+
{ internalType: "uint256", name: "id", type: "uint256" },
|
|
15644
|
+
],
|
|
15645
|
+
name: "transferFrom",
|
|
15646
|
+
outputs: [],
|
|
15647
|
+
stateMutability: "payable",
|
|
15648
|
+
type: "function",
|
|
15649
|
+
},
|
|
15650
|
+
{
|
|
15651
|
+
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
15652
|
+
name: "transferOwnership",
|
|
15653
|
+
outputs: [],
|
|
15654
|
+
stateMutability: "payable",
|
|
15655
|
+
type: "function",
|
|
15656
|
+
},
|
|
15657
|
+
];
|
|
15658
|
+
|
|
15659
|
+
/**
|
|
15660
|
+
* Client for interacting with the AnyFlaunch contract in read-only mode
|
|
15661
|
+
* Provides methods to query token IDs and metadata URIs
|
|
15662
|
+
*/
|
|
15663
|
+
class ReadAnyFlaunch {
|
|
15664
|
+
/**
|
|
15665
|
+
* Creates a new ReadAnyFlaunch instance
|
|
15666
|
+
* @param address - The address of the AnyFlaunch contract
|
|
15667
|
+
* @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
|
|
15668
|
+
* @throws Error if address is not provided
|
|
15669
|
+
*/
|
|
15670
|
+
constructor(address, drift$1 = drift.createDrift()) {
|
|
15671
|
+
if (!address) {
|
|
15672
|
+
throw new Error("Address is required");
|
|
15673
|
+
}
|
|
15674
|
+
this.contract = drift$1.contract({
|
|
15675
|
+
abi: AnyFlaunchAbi,
|
|
15676
|
+
address,
|
|
15677
|
+
});
|
|
15678
|
+
}
|
|
15679
|
+
/**
|
|
15680
|
+
* Gets the token ID associated with a memecoin
|
|
15681
|
+
* @param coinAddress - The address of the memecoin
|
|
15682
|
+
* @returns Promise<bigint> - The token ID
|
|
15683
|
+
*/
|
|
15684
|
+
tokenId(coinAddress) {
|
|
15685
|
+
return this.contract.read("tokenId", {
|
|
15686
|
+
_memecoin: coinAddress,
|
|
15687
|
+
});
|
|
15688
|
+
}
|
|
15689
|
+
/**
|
|
15690
|
+
* Gets the metadata URI for a token
|
|
15691
|
+
* @param tokenId - The ID of the token
|
|
15692
|
+
* @returns Promise<string> - The token's metadata URI
|
|
15693
|
+
*/
|
|
15694
|
+
tokenURI(tokenId) {
|
|
15695
|
+
return this.contract.read("tokenURI", {
|
|
15696
|
+
_tokenId: tokenId,
|
|
15697
|
+
});
|
|
15698
|
+
}
|
|
15699
|
+
/**
|
|
15700
|
+
* Gets the memecoin address for a given token ID
|
|
15701
|
+
* @param tokenId - The ID of the token
|
|
15702
|
+
* @returns Promise<Address> - The address of the memecoin
|
|
15703
|
+
*/
|
|
15704
|
+
memecoin(tokenId) {
|
|
15705
|
+
return this.contract.read("memecoin", {
|
|
15706
|
+
_tokenId: tokenId,
|
|
15707
|
+
});
|
|
15708
|
+
}
|
|
15709
|
+
}
|
|
15710
|
+
|
|
15164
15711
|
const MemecoinAbi = [
|
|
15165
15712
|
{ inputs: [], stateMutability: "nonpayable", type: "constructor" },
|
|
15166
15713
|
{ inputs: [], name: "CallerNotFlaunch", type: "error" },
|
|
@@ -20405,279 +20952,406 @@ class ReadWriteAnyPositionManager extends ReadAnyPositionManager {
|
|
|
20405
20952
|
|
|
20406
20953
|
const TokenImporterAbi = [
|
|
20407
20954
|
{
|
|
20408
|
-
type: "constructor",
|
|
20409
|
-
inputs: [
|
|
20955
|
+
"type": "constructor",
|
|
20956
|
+
"inputs": [
|
|
20410
20957
|
{
|
|
20411
|
-
name: "_anyPositionManager",
|
|
20412
|
-
type: "address",
|
|
20413
|
-
internalType: "address payable"
|
|
20414
|
-
}
|
|
20958
|
+
"name": "_anyPositionManager",
|
|
20959
|
+
"type": "address",
|
|
20960
|
+
"internalType": "address payable"
|
|
20961
|
+
}
|
|
20415
20962
|
],
|
|
20416
|
-
stateMutability: "nonpayable"
|
|
20963
|
+
"stateMutability": "nonpayable"
|
|
20417
20964
|
},
|
|
20418
20965
|
{
|
|
20419
|
-
type: "function",
|
|
20420
|
-
name: "addVerifier",
|
|
20421
|
-
inputs: [
|
|
20422
|
-
|
|
20423
|
-
|
|
20966
|
+
"type": "function",
|
|
20967
|
+
"name": "addVerifier",
|
|
20968
|
+
"inputs": [
|
|
20969
|
+
{
|
|
20970
|
+
"name": "_verifier",
|
|
20971
|
+
"type": "address",
|
|
20972
|
+
"internalType": "address"
|
|
20973
|
+
}
|
|
20974
|
+
],
|
|
20975
|
+
"outputs": [],
|
|
20976
|
+
"stateMutability": "nonpayable"
|
|
20424
20977
|
},
|
|
20425
20978
|
{
|
|
20426
|
-
type: "function",
|
|
20427
|
-
name: "anyPositionManager",
|
|
20428
|
-
inputs: [],
|
|
20429
|
-
outputs: [
|
|
20979
|
+
"type": "function",
|
|
20980
|
+
"name": "anyPositionManager",
|
|
20981
|
+
"inputs": [],
|
|
20982
|
+
"outputs": [
|
|
20430
20983
|
{
|
|
20431
|
-
name: "",
|
|
20432
|
-
type: "address",
|
|
20433
|
-
internalType: "contract AnyPositionManager"
|
|
20434
|
-
}
|
|
20984
|
+
"name": "",
|
|
20985
|
+
"type": "address",
|
|
20986
|
+
"internalType": "contract AnyPositionManager"
|
|
20987
|
+
}
|
|
20435
20988
|
],
|
|
20436
|
-
stateMutability: "view"
|
|
20989
|
+
"stateMutability": "view"
|
|
20437
20990
|
},
|
|
20438
20991
|
{
|
|
20439
|
-
type: "function",
|
|
20440
|
-
name: "cancelOwnershipHandover",
|
|
20441
|
-
inputs: [],
|
|
20442
|
-
outputs: [],
|
|
20443
|
-
stateMutability: "payable"
|
|
20992
|
+
"type": "function",
|
|
20993
|
+
"name": "cancelOwnershipHandover",
|
|
20994
|
+
"inputs": [],
|
|
20995
|
+
"outputs": [],
|
|
20996
|
+
"stateMutability": "payable"
|
|
20444
20997
|
},
|
|
20445
20998
|
{
|
|
20446
|
-
type: "function",
|
|
20447
|
-
name: "completeOwnershipHandover",
|
|
20448
|
-
inputs: [
|
|
20449
|
-
{
|
|
20999
|
+
"type": "function",
|
|
21000
|
+
"name": "completeOwnershipHandover",
|
|
21001
|
+
"inputs": [
|
|
21002
|
+
{
|
|
21003
|
+
"name": "pendingOwner",
|
|
21004
|
+
"type": "address",
|
|
21005
|
+
"internalType": "address"
|
|
21006
|
+
}
|
|
20450
21007
|
],
|
|
20451
|
-
outputs: [],
|
|
20452
|
-
stateMutability: "payable"
|
|
21008
|
+
"outputs": [],
|
|
21009
|
+
"stateMutability": "payable"
|
|
20453
21010
|
},
|
|
20454
21011
|
{
|
|
20455
|
-
type: "function",
|
|
20456
|
-
name: "getAllVerifiers",
|
|
20457
|
-
inputs: [],
|
|
20458
|
-
outputs: [
|
|
21012
|
+
"type": "function",
|
|
21013
|
+
"name": "getAllVerifiers",
|
|
21014
|
+
"inputs": [],
|
|
21015
|
+
"outputs": [
|
|
21016
|
+
{
|
|
21017
|
+
"name": "verifiers_",
|
|
21018
|
+
"type": "address[]",
|
|
21019
|
+
"internalType": "address[]"
|
|
21020
|
+
}
|
|
21021
|
+
],
|
|
21022
|
+
"stateMutability": "view"
|
|
21023
|
+
},
|
|
21024
|
+
{
|
|
21025
|
+
"type": "function",
|
|
21026
|
+
"name": "initialize",
|
|
21027
|
+
"inputs": [
|
|
21028
|
+
{
|
|
21029
|
+
"name": "_memecoin",
|
|
21030
|
+
"type": "address",
|
|
21031
|
+
"internalType": "address"
|
|
21032
|
+
},
|
|
20459
21033
|
{
|
|
20460
|
-
name: "
|
|
20461
|
-
type: "
|
|
20462
|
-
internalType: "
|
|
21034
|
+
"name": "_creatorFeeAllocation",
|
|
21035
|
+
"type": "uint24",
|
|
21036
|
+
"internalType": "uint24"
|
|
20463
21037
|
},
|
|
21038
|
+
{
|
|
21039
|
+
"name": "_initialMarketCap",
|
|
21040
|
+
"type": "uint256",
|
|
21041
|
+
"internalType": "uint256"
|
|
21042
|
+
},
|
|
21043
|
+
{
|
|
21044
|
+
"name": "_verifier",
|
|
21045
|
+
"type": "address",
|
|
21046
|
+
"internalType": "address"
|
|
21047
|
+
}
|
|
20464
21048
|
],
|
|
20465
|
-
|
|
21049
|
+
"outputs": [],
|
|
21050
|
+
"stateMutability": "nonpayable"
|
|
20466
21051
|
},
|
|
20467
21052
|
{
|
|
20468
|
-
type: "function",
|
|
20469
|
-
name: "initialize",
|
|
20470
|
-
inputs: [
|
|
20471
|
-
{ name: "_memecoin", type: "address", internalType: "address" },
|
|
21053
|
+
"type": "function",
|
|
21054
|
+
"name": "initialize",
|
|
21055
|
+
"inputs": [
|
|
20472
21056
|
{
|
|
20473
|
-
name: "
|
|
20474
|
-
type: "
|
|
20475
|
-
internalType: "
|
|
21057
|
+
"name": "_memecoin",
|
|
21058
|
+
"type": "address",
|
|
21059
|
+
"internalType": "address"
|
|
20476
21060
|
},
|
|
20477
21061
|
{
|
|
20478
|
-
name: "
|
|
20479
|
-
type: "
|
|
20480
|
-
internalType: "
|
|
21062
|
+
"name": "_creatorFeeAllocation",
|
|
21063
|
+
"type": "uint24",
|
|
21064
|
+
"internalType": "uint24"
|
|
21065
|
+
},
|
|
21066
|
+
{
|
|
21067
|
+
"name": "_initialMarketCap",
|
|
21068
|
+
"type": "uint256",
|
|
21069
|
+
"internalType": "uint256"
|
|
21070
|
+
},
|
|
21071
|
+
{
|
|
21072
|
+
"name": "_totalSupply",
|
|
21073
|
+
"type": "uint256",
|
|
21074
|
+
"internalType": "uint256"
|
|
20481
21075
|
},
|
|
20482
|
-
{
|
|
21076
|
+
{
|
|
21077
|
+
"name": "_verifier",
|
|
21078
|
+
"type": "address",
|
|
21079
|
+
"internalType": "address"
|
|
21080
|
+
}
|
|
20483
21081
|
],
|
|
20484
|
-
outputs: [],
|
|
20485
|
-
stateMutability: "nonpayable"
|
|
21082
|
+
"outputs": [],
|
|
21083
|
+
"stateMutability": "nonpayable"
|
|
20486
21084
|
},
|
|
20487
21085
|
{
|
|
20488
|
-
type: "function",
|
|
20489
|
-
name: "initialize",
|
|
20490
|
-
inputs: [
|
|
20491
|
-
{ name: "_memecoin", type: "address", internalType: "address" },
|
|
21086
|
+
"type": "function",
|
|
21087
|
+
"name": "initialize",
|
|
21088
|
+
"inputs": [
|
|
20492
21089
|
{
|
|
20493
|
-
name: "
|
|
20494
|
-
type: "
|
|
20495
|
-
internalType: "
|
|
21090
|
+
"name": "_memecoin",
|
|
21091
|
+
"type": "address",
|
|
21092
|
+
"internalType": "address"
|
|
20496
21093
|
},
|
|
20497
21094
|
{
|
|
20498
|
-
name: "
|
|
20499
|
-
type: "
|
|
20500
|
-
internalType: "
|
|
21095
|
+
"name": "_creatorFeeAllocation",
|
|
21096
|
+
"type": "uint24",
|
|
21097
|
+
"internalType": "uint24"
|
|
20501
21098
|
},
|
|
21099
|
+
{
|
|
21100
|
+
"name": "_initialMarketCap",
|
|
21101
|
+
"type": "uint256",
|
|
21102
|
+
"internalType": "uint256"
|
|
21103
|
+
}
|
|
20502
21104
|
],
|
|
20503
|
-
outputs: [],
|
|
20504
|
-
stateMutability: "nonpayable"
|
|
21105
|
+
"outputs": [],
|
|
21106
|
+
"stateMutability": "nonpayable"
|
|
20505
21107
|
},
|
|
20506
21108
|
{
|
|
20507
|
-
type: "function",
|
|
20508
|
-
name: "owner",
|
|
20509
|
-
inputs: [],
|
|
20510
|
-
outputs: [
|
|
20511
|
-
|
|
21109
|
+
"type": "function",
|
|
21110
|
+
"name": "owner",
|
|
21111
|
+
"inputs": [],
|
|
21112
|
+
"outputs": [
|
|
21113
|
+
{
|
|
21114
|
+
"name": "result",
|
|
21115
|
+
"type": "address",
|
|
21116
|
+
"internalType": "address"
|
|
21117
|
+
}
|
|
21118
|
+
],
|
|
21119
|
+
"stateMutability": "view"
|
|
20512
21120
|
},
|
|
20513
21121
|
{
|
|
20514
|
-
type: "function",
|
|
20515
|
-
name: "ownershipHandoverExpiresAt",
|
|
20516
|
-
inputs: [
|
|
20517
|
-
{
|
|
21122
|
+
"type": "function",
|
|
21123
|
+
"name": "ownershipHandoverExpiresAt",
|
|
21124
|
+
"inputs": [
|
|
21125
|
+
{
|
|
21126
|
+
"name": "pendingOwner",
|
|
21127
|
+
"type": "address",
|
|
21128
|
+
"internalType": "address"
|
|
21129
|
+
}
|
|
20518
21130
|
],
|
|
20519
|
-
outputs: [
|
|
20520
|
-
|
|
21131
|
+
"outputs": [
|
|
21132
|
+
{
|
|
21133
|
+
"name": "result",
|
|
21134
|
+
"type": "uint256",
|
|
21135
|
+
"internalType": "uint256"
|
|
21136
|
+
}
|
|
21137
|
+
],
|
|
21138
|
+
"stateMutability": "view"
|
|
20521
21139
|
},
|
|
20522
21140
|
{
|
|
20523
|
-
type: "function",
|
|
20524
|
-
name: "removeVerifier",
|
|
20525
|
-
inputs: [
|
|
20526
|
-
|
|
20527
|
-
|
|
21141
|
+
"type": "function",
|
|
21142
|
+
"name": "removeVerifier",
|
|
21143
|
+
"inputs": [
|
|
21144
|
+
{
|
|
21145
|
+
"name": "_verifier",
|
|
21146
|
+
"type": "address",
|
|
21147
|
+
"internalType": "address"
|
|
21148
|
+
}
|
|
21149
|
+
],
|
|
21150
|
+
"outputs": [],
|
|
21151
|
+
"stateMutability": "nonpayable"
|
|
20528
21152
|
},
|
|
20529
21153
|
{
|
|
20530
|
-
type: "function",
|
|
20531
|
-
name: "renounceOwnership",
|
|
20532
|
-
inputs: [],
|
|
20533
|
-
outputs: [],
|
|
20534
|
-
stateMutability: "payable"
|
|
21154
|
+
"type": "function",
|
|
21155
|
+
"name": "renounceOwnership",
|
|
21156
|
+
"inputs": [],
|
|
21157
|
+
"outputs": [],
|
|
21158
|
+
"stateMutability": "payable"
|
|
20535
21159
|
},
|
|
20536
21160
|
{
|
|
20537
|
-
type: "function",
|
|
20538
|
-
name: "requestOwnershipHandover",
|
|
20539
|
-
inputs: [],
|
|
20540
|
-
outputs: [],
|
|
20541
|
-
stateMutability: "payable"
|
|
21161
|
+
"type": "function",
|
|
21162
|
+
"name": "requestOwnershipHandover",
|
|
21163
|
+
"inputs": [],
|
|
21164
|
+
"outputs": [],
|
|
21165
|
+
"stateMutability": "payable"
|
|
20542
21166
|
},
|
|
20543
21167
|
{
|
|
20544
|
-
type: "function",
|
|
20545
|
-
name: "setAnyPositionManager",
|
|
20546
|
-
inputs: [
|
|
21168
|
+
"type": "function",
|
|
21169
|
+
"name": "setAnyPositionManager",
|
|
21170
|
+
"inputs": [
|
|
20547
21171
|
{
|
|
20548
|
-
name: "_anyPositionManager",
|
|
20549
|
-
type: "address",
|
|
20550
|
-
internalType: "address payable"
|
|
20551
|
-
}
|
|
21172
|
+
"name": "_anyPositionManager",
|
|
21173
|
+
"type": "address",
|
|
21174
|
+
"internalType": "address payable"
|
|
21175
|
+
}
|
|
20552
21176
|
],
|
|
20553
|
-
outputs: [],
|
|
20554
|
-
stateMutability: "nonpayable"
|
|
21177
|
+
"outputs": [],
|
|
21178
|
+
"stateMutability": "nonpayable"
|
|
20555
21179
|
},
|
|
20556
21180
|
{
|
|
20557
|
-
type: "function",
|
|
20558
|
-
name: "transferOwnership",
|
|
20559
|
-
inputs: [
|
|
20560
|
-
|
|
20561
|
-
|
|
21181
|
+
"type": "function",
|
|
21182
|
+
"name": "transferOwnership",
|
|
21183
|
+
"inputs": [
|
|
21184
|
+
{
|
|
21185
|
+
"name": "newOwner",
|
|
21186
|
+
"type": "address",
|
|
21187
|
+
"internalType": "address"
|
|
21188
|
+
}
|
|
21189
|
+
],
|
|
21190
|
+
"outputs": [],
|
|
21191
|
+
"stateMutability": "payable"
|
|
20562
21192
|
},
|
|
20563
21193
|
{
|
|
20564
|
-
type: "function",
|
|
20565
|
-
name: "verifyMemecoin",
|
|
20566
|
-
inputs: [
|
|
20567
|
-
|
|
20568
|
-
|
|
21194
|
+
"type": "function",
|
|
21195
|
+
"name": "verifyMemecoin",
|
|
21196
|
+
"inputs": [
|
|
21197
|
+
{
|
|
21198
|
+
"name": "_memecoin",
|
|
21199
|
+
"type": "address",
|
|
21200
|
+
"internalType": "address"
|
|
21201
|
+
}
|
|
21202
|
+
],
|
|
21203
|
+
"outputs": [
|
|
21204
|
+
{
|
|
21205
|
+
"name": "verifier_",
|
|
21206
|
+
"type": "address",
|
|
21207
|
+
"internalType": "address"
|
|
21208
|
+
}
|
|
21209
|
+
],
|
|
21210
|
+
"stateMutability": "view"
|
|
20569
21211
|
},
|
|
20570
21212
|
{
|
|
20571
|
-
type: "event",
|
|
20572
|
-
name: "AnyPositionManagerSet",
|
|
20573
|
-
inputs: [
|
|
21213
|
+
"type": "event",
|
|
21214
|
+
"name": "AnyPositionManagerSet",
|
|
21215
|
+
"inputs": [
|
|
20574
21216
|
{
|
|
20575
|
-
name: "_anyPositionManager",
|
|
20576
|
-
type: "address",
|
|
20577
|
-
indexed: true,
|
|
20578
|
-
internalType: "address"
|
|
20579
|
-
}
|
|
21217
|
+
"name": "_anyPositionManager",
|
|
21218
|
+
"type": "address",
|
|
21219
|
+
"indexed": true,
|
|
21220
|
+
"internalType": "address"
|
|
21221
|
+
}
|
|
20580
21222
|
],
|
|
20581
|
-
anonymous: false
|
|
21223
|
+
"anonymous": false
|
|
20582
21224
|
},
|
|
20583
21225
|
{
|
|
20584
|
-
type: "event",
|
|
20585
|
-
name: "OwnershipHandoverCanceled",
|
|
20586
|
-
inputs: [
|
|
21226
|
+
"type": "event",
|
|
21227
|
+
"name": "OwnershipHandoverCanceled",
|
|
21228
|
+
"inputs": [
|
|
20587
21229
|
{
|
|
20588
|
-
name: "pendingOwner",
|
|
20589
|
-
type: "address",
|
|
20590
|
-
indexed: true,
|
|
20591
|
-
internalType: "address"
|
|
20592
|
-
}
|
|
21230
|
+
"name": "pendingOwner",
|
|
21231
|
+
"type": "address",
|
|
21232
|
+
"indexed": true,
|
|
21233
|
+
"internalType": "address"
|
|
21234
|
+
}
|
|
20593
21235
|
],
|
|
20594
|
-
anonymous: false
|
|
21236
|
+
"anonymous": false
|
|
20595
21237
|
},
|
|
20596
21238
|
{
|
|
20597
|
-
type: "event",
|
|
20598
|
-
name: "OwnershipHandoverRequested",
|
|
20599
|
-
inputs: [
|
|
21239
|
+
"type": "event",
|
|
21240
|
+
"name": "OwnershipHandoverRequested",
|
|
21241
|
+
"inputs": [
|
|
20600
21242
|
{
|
|
20601
|
-
name: "pendingOwner",
|
|
20602
|
-
type: "address",
|
|
20603
|
-
indexed: true,
|
|
20604
|
-
internalType: "address"
|
|
20605
|
-
}
|
|
21243
|
+
"name": "pendingOwner",
|
|
21244
|
+
"type": "address",
|
|
21245
|
+
"indexed": true,
|
|
21246
|
+
"internalType": "address"
|
|
21247
|
+
}
|
|
20606
21248
|
],
|
|
20607
|
-
anonymous: false
|
|
21249
|
+
"anonymous": false
|
|
20608
21250
|
},
|
|
20609
21251
|
{
|
|
20610
|
-
type: "event",
|
|
20611
|
-
name: "OwnershipTransferred",
|
|
20612
|
-
inputs: [
|
|
21252
|
+
"type": "event",
|
|
21253
|
+
"name": "OwnershipTransferred",
|
|
21254
|
+
"inputs": [
|
|
20613
21255
|
{
|
|
20614
|
-
name: "oldOwner",
|
|
20615
|
-
type: "address",
|
|
20616
|
-
indexed: true,
|
|
20617
|
-
internalType: "address"
|
|
21256
|
+
"name": "oldOwner",
|
|
21257
|
+
"type": "address",
|
|
21258
|
+
"indexed": true,
|
|
21259
|
+
"internalType": "address"
|
|
20618
21260
|
},
|
|
20619
21261
|
{
|
|
20620
|
-
name: "newOwner",
|
|
20621
|
-
type: "address",
|
|
20622
|
-
indexed: true,
|
|
20623
|
-
internalType: "address"
|
|
20624
|
-
}
|
|
21262
|
+
"name": "newOwner",
|
|
21263
|
+
"type": "address",
|
|
21264
|
+
"indexed": true,
|
|
21265
|
+
"internalType": "address"
|
|
21266
|
+
}
|
|
20625
21267
|
],
|
|
20626
|
-
anonymous: false
|
|
21268
|
+
"anonymous": false
|
|
20627
21269
|
},
|
|
20628
21270
|
{
|
|
20629
|
-
type: "event",
|
|
20630
|
-
name: "TokenImported",
|
|
20631
|
-
inputs: [
|
|
21271
|
+
"type": "event",
|
|
21272
|
+
"name": "TokenImported",
|
|
21273
|
+
"inputs": [
|
|
20632
21274
|
{
|
|
20633
|
-
name: "_memecoin",
|
|
20634
|
-
type: "address",
|
|
20635
|
-
indexed: true,
|
|
20636
|
-
internalType: "address"
|
|
21275
|
+
"name": "_memecoin",
|
|
21276
|
+
"type": "address",
|
|
21277
|
+
"indexed": true,
|
|
21278
|
+
"internalType": "address"
|
|
20637
21279
|
},
|
|
20638
21280
|
{
|
|
20639
|
-
name: "_verifier",
|
|
20640
|
-
type: "address",
|
|
20641
|
-
indexed: true,
|
|
20642
|
-
internalType: "address"
|
|
20643
|
-
}
|
|
21281
|
+
"name": "_verifier",
|
|
21282
|
+
"type": "address",
|
|
21283
|
+
"indexed": true,
|
|
21284
|
+
"internalType": "address"
|
|
21285
|
+
}
|
|
20644
21286
|
],
|
|
20645
|
-
anonymous: false
|
|
21287
|
+
"anonymous": false
|
|
20646
21288
|
},
|
|
20647
21289
|
{
|
|
20648
|
-
type: "event",
|
|
20649
|
-
name: "VerifierAdded",
|
|
20650
|
-
inputs: [
|
|
21290
|
+
"type": "event",
|
|
21291
|
+
"name": "VerifierAdded",
|
|
21292
|
+
"inputs": [
|
|
20651
21293
|
{
|
|
20652
|
-
name: "_verifier",
|
|
20653
|
-
type: "address",
|
|
20654
|
-
indexed: true,
|
|
20655
|
-
internalType: "address"
|
|
20656
|
-
}
|
|
21294
|
+
"name": "_verifier",
|
|
21295
|
+
"type": "address",
|
|
21296
|
+
"indexed": true,
|
|
21297
|
+
"internalType": "address"
|
|
21298
|
+
}
|
|
20657
21299
|
],
|
|
20658
|
-
anonymous: false
|
|
21300
|
+
"anonymous": false
|
|
20659
21301
|
},
|
|
20660
21302
|
{
|
|
20661
|
-
type: "event",
|
|
20662
|
-
name: "VerifierRemoved",
|
|
20663
|
-
inputs: [
|
|
21303
|
+
"type": "event",
|
|
21304
|
+
"name": "VerifierRemoved",
|
|
21305
|
+
"inputs": [
|
|
20664
21306
|
{
|
|
20665
|
-
name: "_verifier",
|
|
20666
|
-
type: "address",
|
|
20667
|
-
indexed: true,
|
|
20668
|
-
internalType: "address"
|
|
20669
|
-
}
|
|
21307
|
+
"name": "_verifier",
|
|
21308
|
+
"type": "address",
|
|
21309
|
+
"indexed": true,
|
|
21310
|
+
"internalType": "address"
|
|
21311
|
+
}
|
|
20670
21312
|
],
|
|
20671
|
-
anonymous: false
|
|
21313
|
+
"anonymous": false
|
|
20672
21314
|
},
|
|
20673
|
-
{
|
|
20674
|
-
|
|
20675
|
-
|
|
20676
|
-
|
|
20677
|
-
|
|
20678
|
-
{
|
|
20679
|
-
|
|
20680
|
-
|
|
21315
|
+
{
|
|
21316
|
+
"type": "error",
|
|
21317
|
+
"name": "AlreadyInitialized",
|
|
21318
|
+
"inputs": []
|
|
21319
|
+
},
|
|
21320
|
+
{
|
|
21321
|
+
"type": "error",
|
|
21322
|
+
"name": "InvalidMemecoin",
|
|
21323
|
+
"inputs": []
|
|
21324
|
+
},
|
|
21325
|
+
{
|
|
21326
|
+
"type": "error",
|
|
21327
|
+
"name": "NewOwnerIsZeroAddress",
|
|
21328
|
+
"inputs": []
|
|
21329
|
+
},
|
|
21330
|
+
{
|
|
21331
|
+
"type": "error",
|
|
21332
|
+
"name": "NoHandoverRequest",
|
|
21333
|
+
"inputs": []
|
|
21334
|
+
},
|
|
21335
|
+
{
|
|
21336
|
+
"type": "error",
|
|
21337
|
+
"name": "Unauthorized",
|
|
21338
|
+
"inputs": []
|
|
21339
|
+
},
|
|
21340
|
+
{
|
|
21341
|
+
"type": "error",
|
|
21342
|
+
"name": "VerifierAlreadyAdded",
|
|
21343
|
+
"inputs": []
|
|
21344
|
+
},
|
|
21345
|
+
{
|
|
21346
|
+
"type": "error",
|
|
21347
|
+
"name": "VerifierNotAdded",
|
|
21348
|
+
"inputs": []
|
|
21349
|
+
},
|
|
21350
|
+
{
|
|
21351
|
+
"type": "error",
|
|
21352
|
+
"name": "ZeroAddress",
|
|
21353
|
+
"inputs": []
|
|
21354
|
+
}
|
|
20681
21355
|
];
|
|
20682
21356
|
|
|
20683
21357
|
/**
|
|
@@ -20759,12 +21433,20 @@ class ReadWriteTokenImporter extends ReadTokenImporter {
|
|
|
20759
21433
|
: await this.contract.read("verifyMemecoin", {
|
|
20760
21434
|
_memecoin: params.coinAddress,
|
|
20761
21435
|
});
|
|
20762
|
-
|
|
21436
|
+
const baseParams = {
|
|
20763
21437
|
_memecoin: params.coinAddress,
|
|
20764
21438
|
_creatorFeeAllocation: creatorFeeAllocationInBps,
|
|
20765
21439
|
_initialMarketCap: initialMCapInUSDCWei,
|
|
20766
21440
|
_verifier,
|
|
20767
21441
|
};
|
|
21442
|
+
// If tokenSupply is provided (even if 0n), include it to use the 5-parameter initialize overload
|
|
21443
|
+
if (params.tokenSupply !== undefined) {
|
|
21444
|
+
return {
|
|
21445
|
+
...baseParams,
|
|
21446
|
+
_totalSupply: params.tokenSupply,
|
|
21447
|
+
};
|
|
21448
|
+
}
|
|
21449
|
+
return baseParams;
|
|
20768
21450
|
}
|
|
20769
21451
|
}
|
|
20770
21452
|
|
|
@@ -26160,6 +26842,7 @@ class ReadFlaunchSDK {
|
|
|
26160
26842
|
this.readFlaunch = new ReadFlaunch(FlaunchAddress[this.chainId], drift$1);
|
|
26161
26843
|
this.readFlaunchV1_1 = new ReadFlaunchV1_1(FlaunchV1_1Address[this.chainId], drift$1);
|
|
26162
26844
|
this.readFlaunchV1_2 = new ReadFlaunchV1_2(FlaunchV1_2Address[this.chainId], drift$1);
|
|
26845
|
+
this.readAnyFlaunch = new ReadAnyFlaunch(AnyFlaunchAddress[this.chainId], drift$1);
|
|
26163
26846
|
this.readQuoter = new ReadQuoter(this.chainId, QuoterAddress[this.chainId], drift$1);
|
|
26164
26847
|
this.readPermit2 = new ReadPermit2(Permit2Address[this.chainId], drift$1);
|
|
26165
26848
|
}
|
|
@@ -26250,23 +26933,30 @@ class ReadFlaunchSDK {
|
|
|
26250
26933
|
}
|
|
26251
26934
|
}
|
|
26252
26935
|
/**
|
|
26253
|
-
* Gets the flaunch contract
|
|
26254
|
-
* @param version - The version to get the flaunch contract
|
|
26936
|
+
* Gets the flaunch contract instance for a given version
|
|
26937
|
+
* @param version - The version to get the flaunch contract instance for
|
|
26255
26938
|
*/
|
|
26256
|
-
|
|
26939
|
+
getFlaunch(version) {
|
|
26257
26940
|
switch (version) {
|
|
26258
26941
|
case exports.FlaunchVersion.V1:
|
|
26259
|
-
return this.readFlaunch
|
|
26942
|
+
return this.readFlaunch;
|
|
26260
26943
|
case exports.FlaunchVersion.V1_1:
|
|
26261
|
-
return this.readFlaunchV1_1
|
|
26944
|
+
return this.readFlaunchV1_1;
|
|
26262
26945
|
case exports.FlaunchVersion.V1_2:
|
|
26263
|
-
return this.readFlaunchV1_2
|
|
26946
|
+
return this.readFlaunchV1_2;
|
|
26264
26947
|
case exports.FlaunchVersion.ANY:
|
|
26265
|
-
return this.
|
|
26948
|
+
return this.readAnyFlaunch;
|
|
26266
26949
|
default:
|
|
26267
|
-
return this.
|
|
26950
|
+
return this.readFlaunchV1_2;
|
|
26268
26951
|
}
|
|
26269
26952
|
}
|
|
26953
|
+
/**
|
|
26954
|
+
* Gets the flaunch contract address for a given version
|
|
26955
|
+
* @param version - The version to get the flaunch contract address for
|
|
26956
|
+
*/
|
|
26957
|
+
getFlaunchAddress(version) {
|
|
26958
|
+
return this.getFlaunch(version).contract.address;
|
|
26959
|
+
}
|
|
26270
26960
|
getPositionManagerAddress(version) {
|
|
26271
26961
|
return this.getPositionManager(version).contract.address;
|
|
26272
26962
|
}
|
|
@@ -26276,6 +26966,20 @@ class ReadFlaunchSDK {
|
|
|
26276
26966
|
getBidWallAddress(version) {
|
|
26277
26967
|
return this.getBidWall(version).contract.address;
|
|
26278
26968
|
}
|
|
26969
|
+
/**
|
|
26970
|
+
* Gets the flaunch contract address and token ID for a memecoin
|
|
26971
|
+
* @param coinAddress - The address of the memecoin
|
|
26972
|
+
* @returns Promise<{ flaunchAddress: Address; tokenId: bigint }> - The flaunch contract address and token ID
|
|
26973
|
+
*/
|
|
26974
|
+
async getFlaunchTokenIdForMemecoin(coinAddress) {
|
|
26975
|
+
const version = await this.getCoinVersion(coinAddress);
|
|
26976
|
+
const flaunch = this.getFlaunch(version);
|
|
26977
|
+
const tokenId = await flaunch.tokenId(coinAddress);
|
|
26978
|
+
return {
|
|
26979
|
+
flaunchAddress: flaunch.contract.address,
|
|
26980
|
+
tokenId,
|
|
26981
|
+
};
|
|
26982
|
+
}
|
|
26279
26983
|
/**
|
|
26280
26984
|
* Retrieves metadata for a given Flaunch coin
|
|
26281
26985
|
* @param coinAddress - The address of the coin
|
|
@@ -28146,11 +28850,21 @@ class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
|
|
|
28146
28850
|
const version = await this.determineCoinVersion(coinAddress, params.version);
|
|
28147
28851
|
const poolKey = this.createPoolKey(coinAddress, version);
|
|
28148
28852
|
let currentTick;
|
|
28149
|
-
//
|
|
28150
|
-
//
|
|
28151
|
-
|
|
28152
|
-
(
|
|
28153
|
-
|
|
28853
|
+
// First, check if the pool is initialized as we can then get the current tick directly from
|
|
28854
|
+
// the state view.
|
|
28855
|
+
const poolState = await this.readStateView.poolSlot0({
|
|
28856
|
+
poolId: getPoolId(poolKey),
|
|
28857
|
+
});
|
|
28858
|
+
currentTick = poolState.tick;
|
|
28859
|
+
// If the current sqrtPriceX96 of the pool is zero, and the initial marketcap or price is provided,
|
|
28860
|
+
// we can use this to determine the current tick.
|
|
28861
|
+
if (poolState.sqrtPriceX96 === 0n && (("initialMarketCapUSD" in params && params.initialMarketCapUSD) ||
|
|
28862
|
+
("initialPriceUSD" in params && params.initialPriceUSD))) {
|
|
28863
|
+
let { decimals: coinDecimals, formattedTotalSupplyInDecimals } = await this.getCoinInfo(coinAddress);
|
|
28864
|
+
// If we have a tokenSupply set, then overwrite the value
|
|
28865
|
+
if ("tokenSupply" in params && params.tokenSupply !== undefined) {
|
|
28866
|
+
formattedTotalSupplyInDecimals = parseFloat(viem.formatUnits(params.tokenSupply, coinDecimals));
|
|
28867
|
+
}
|
|
28154
28868
|
// Determine market cap based on provided parameter
|
|
28155
28869
|
let initialMarketCapUSD;
|
|
28156
28870
|
if ("initialMarketCapUSD" in params && params.initialMarketCapUSD) {
|
|
@@ -28170,13 +28884,6 @@ class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
|
|
|
28170
28884
|
}
|
|
28171
28885
|
currentTick = calculatedTick;
|
|
28172
28886
|
}
|
|
28173
|
-
else {
|
|
28174
|
-
// the pool is already initialized, get the current tick from the pool
|
|
28175
|
-
const poolState = await this.readStateView.poolSlot0({
|
|
28176
|
-
poolId: getPoolId(poolKey),
|
|
28177
|
-
});
|
|
28178
|
-
currentTick = poolState.tick;
|
|
28179
|
-
}
|
|
28180
28887
|
// We want to add liquidity from current price to infinity (as coin appreciates vs flETH)
|
|
28181
28888
|
// This means providing single-sided coin liquidity that becomes active as coin price increases
|
|
28182
28889
|
const isFLETHZero = this.flETHIsCurrencyZero(coinAddress);
|
|
@@ -28294,24 +29001,54 @@ class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
|
|
|
28294
29001
|
let importParams;
|
|
28295
29002
|
if ("initialMarketCapUSD" in params) {
|
|
28296
29003
|
const paramsWithMarketCap = params;
|
|
28297
|
-
|
|
28298
|
-
|
|
28299
|
-
|
|
28300
|
-
|
|
28301
|
-
|
|
28302
|
-
|
|
29004
|
+
if ("tokenSupply" in paramsWithMarketCap &&
|
|
29005
|
+
paramsWithMarketCap.tokenSupply !== undefined) {
|
|
29006
|
+
importParams = await this.readWriteTokenImporter.getInitializeParams({
|
|
29007
|
+
coinAddress: paramsWithMarketCap.coinAddress,
|
|
29008
|
+
creatorFeeAllocationPercent: paramsWithMarketCap.creatorFeeAllocationPercent,
|
|
29009
|
+
initialMarketCapUSD: paramsWithMarketCap.initialMarketCapUSD,
|
|
29010
|
+
verifier: paramsWithMarketCap.verifier,
|
|
29011
|
+
tokenSupply: paramsWithMarketCap.tokenSupply,
|
|
29012
|
+
});
|
|
29013
|
+
}
|
|
29014
|
+
else {
|
|
29015
|
+
importParams = await this.readWriteTokenImporter.getInitializeParams({
|
|
29016
|
+
coinAddress: paramsWithMarketCap.coinAddress,
|
|
29017
|
+
creatorFeeAllocationPercent: paramsWithMarketCap.creatorFeeAllocationPercent,
|
|
29018
|
+
initialMarketCapUSD: paramsWithMarketCap.initialMarketCapUSD,
|
|
29019
|
+
verifier: paramsWithMarketCap.verifier,
|
|
29020
|
+
});
|
|
29021
|
+
}
|
|
28303
29022
|
}
|
|
28304
29023
|
else {
|
|
28305
29024
|
const paramsWithPrice = params;
|
|
28306
|
-
|
|
28307
|
-
|
|
28308
|
-
|
|
28309
|
-
|
|
28310
|
-
|
|
28311
|
-
|
|
29025
|
+
if ("tokenSupply" in paramsWithPrice &&
|
|
29026
|
+
paramsWithPrice.tokenSupply !== undefined) {
|
|
29027
|
+
importParams = await this.readWriteTokenImporter.getInitializeParams({
|
|
29028
|
+
coinAddress: paramsWithPrice.coinAddress,
|
|
29029
|
+
creatorFeeAllocationPercent: paramsWithPrice.creatorFeeAllocationPercent,
|
|
29030
|
+
initialPriceUSD: paramsWithPrice.initialPriceUSD,
|
|
29031
|
+
verifier: paramsWithPrice.verifier,
|
|
29032
|
+
tokenSupply: paramsWithPrice.tokenSupply,
|
|
29033
|
+
});
|
|
29034
|
+
}
|
|
29035
|
+
else {
|
|
29036
|
+
importParams = await this.readWriteTokenImporter.getInitializeParams({
|
|
29037
|
+
coinAddress: paramsWithPrice.coinAddress,
|
|
29038
|
+
creatorFeeAllocationPercent: paramsWithPrice.creatorFeeAllocationPercent,
|
|
29039
|
+
initialPriceUSD: paramsWithPrice.initialPriceUSD,
|
|
29040
|
+
verifier: paramsWithPrice.verifier,
|
|
29041
|
+
});
|
|
29042
|
+
}
|
|
28312
29043
|
}
|
|
28313
29044
|
const addLiquidityCalls = await this.getSingleSidedCoinAddLiquidityCalls({
|
|
29045
|
+
// Add our liquidity parameters
|
|
28314
29046
|
...params,
|
|
29047
|
+
// Add our optional tokenSupply if provided from our initialize params
|
|
29048
|
+
...("_totalSupply" in importParams && {
|
|
29049
|
+
tokenSupply: importParams._totalSupply,
|
|
29050
|
+
}),
|
|
29051
|
+
// Set our FlaunchVersion
|
|
28315
29052
|
version: exports.FlaunchVersion.ANY, // optimize to avoid fetching if not passed
|
|
28316
29053
|
});
|
|
28317
29054
|
return [
|