@medialane/sdk 0.38.0 → 0.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -18,10 +18,10 @@ var COORDINATES = {
18
18
  marketplace1155: "0x040cd7b3e73bb3c892166e34bdc01d1797f97ecbc356c23f1cf38033cacf0077",
19
19
  marketplace1155ClassHash: "0x02600bb720908f119afe482309d36c39d087587f0df9576454acfb6363e78cd8",
20
20
  marketplace1155StartBlock: 10350855,
21
- collection721: "0x0322cb7119955e01ac778d40976eb3ba50540bb0899f812d612f9c7e63e49fd2",
22
- collection721StartBlock: 10046166,
23
- ipNftClassHash: "0x27ee4ded786d51bced1e94afec3034d6ffce71c032c45ee1ff283ccfa9db12e",
24
- ipCollectionClassHash: "0x287ccdff8b6655a2248cfe170d82eae3a35303cd00ef3e751b25ddca26d9095",
21
+ collection721: "0x0558c9b6ea4d403df6d765fb77be55702c572f0a811f037c6c4209fe1e5aeef2",
22
+ collection721StartBlock: 11002817,
23
+ ipNftClassHash: "0x040551f0d009a6d665ddff980a375dfccc71a8928c8bfcc9ab56244bc4464fab",
24
+ ipCollectionClassHash: "0x063d4ac4ae317fd155216bf1b8a4d3a63172ff72965b9ac48dd5add0c2d32b70",
25
25
  collection1155: "0x0083543c3ee15040a419fc539fa6889f5b956e7d071bcfa97842cb0ae42ad6cc",
26
26
  collection1155FactoryClassHash: "0x331a69da8655a882ba1fbcb55188b8fa09116521db901bbbaafc9fead0689f8",
27
27
  collection1155ClassHash: "0x4e110b59af240ae6c7742999964c4eae13fb2ed935c47fe97653ec017ebea34",
@@ -2998,7 +2998,7 @@ var IPCollectionABI = [
2998
2998
  "type": "core::integer::u256"
2999
2999
  },
3000
3000
  {
3001
- "name": "total_transfers",
3001
+ "name": "protocol_routed_transfers",
3002
3002
  "type": "core::integer::u256"
3003
3003
  },
3004
3004
  {
@@ -3088,6 +3088,10 @@ var IPCollectionABI = [
3088
3088
  {
3089
3089
  "name": "token_uri",
3090
3090
  "type": "core::byte_array::ByteArray"
3091
+ },
3092
+ {
3093
+ "name": "royalty_bps",
3094
+ "type": "core::integer::u128"
3091
3095
  }
3092
3096
  ],
3093
3097
  "outputs": [
@@ -3112,6 +3116,10 @@ var IPCollectionABI = [
3112
3116
  {
3113
3117
  "name": "token_uris",
3114
3118
  "type": "core::array::Array::<core::byte_array::ByteArray>"
3119
+ },
3120
+ {
3121
+ "name": "royalty_bps",
3122
+ "type": "core::array::Array::<core::integer::u128>"
3115
3123
  }
3116
3124
  ],
3117
3125
  "outputs": [
@@ -3142,8 +3150,12 @@ var IPCollectionABI = [
3142
3150
  "name": "archive",
3143
3151
  "inputs": [
3144
3152
  {
3145
- "name": "token",
3146
- "type": "core::byte_array::ByteArray"
3153
+ "name": "collection_id",
3154
+ "type": "core::integer::u256"
3155
+ },
3156
+ {
3157
+ "name": "token_id",
3158
+ "type": "core::integer::u256"
3147
3159
  }
3148
3160
  ],
3149
3161
  "outputs": [],
@@ -3154,8 +3166,12 @@ var IPCollectionABI = [
3154
3166
  "name": "batch_archive",
3155
3167
  "inputs": [
3156
3168
  {
3157
- "name": "tokens",
3158
- "type": "core::array::Array::<core::byte_array::ByteArray>"
3169
+ "name": "collection_ids",
3170
+ "type": "core::array::Array::<core::integer::u256>"
3171
+ },
3172
+ {
3173
+ "name": "token_ids",
3174
+ "type": "core::array::Array::<core::integer::u256>"
3159
3175
  }
3160
3176
  ],
3161
3177
  "outputs": [],
@@ -3166,16 +3182,16 @@ var IPCollectionABI = [
3166
3182
  "name": "transfer_token",
3167
3183
  "inputs": [
3168
3184
  {
3169
- "name": "from",
3185
+ "name": "to",
3170
3186
  "type": "core::starknet::contract_address::ContractAddress"
3171
3187
  },
3172
3188
  {
3173
- "name": "to",
3174
- "type": "core::starknet::contract_address::ContractAddress"
3189
+ "name": "collection_id",
3190
+ "type": "core::integer::u256"
3175
3191
  },
3176
3192
  {
3177
- "name": "token",
3178
- "type": "core::byte_array::ByteArray"
3193
+ "name": "token_id",
3194
+ "type": "core::integer::u256"
3179
3195
  }
3180
3196
  ],
3181
3197
  "outputs": [],
@@ -3194,8 +3210,12 @@ var IPCollectionABI = [
3194
3210
  "type": "core::starknet::contract_address::ContractAddress"
3195
3211
  },
3196
3212
  {
3197
- "name": "tokens",
3198
- "type": "core::array::Array::<core::byte_array::ByteArray>"
3213
+ "name": "collection_ids",
3214
+ "type": "core::array::Array::<core::integer::u256>"
3215
+ },
3216
+ {
3217
+ "name": "token_ids",
3218
+ "type": "core::array::Array::<core::integer::u256>"
3199
3219
  }
3200
3220
  ],
3201
3221
  "outputs": [],
@@ -3264,6 +3284,17 @@ var IPCollectionABI = [
3264
3284
  ],
3265
3285
  "state_mutability": "view"
3266
3286
  },
3287
+ {
3288
+ "type": "function",
3289
+ "name": "version",
3290
+ "inputs": [],
3291
+ "outputs": [
3292
+ {
3293
+ "type": "core::byte_array::ByteArray"
3294
+ }
3295
+ ],
3296
+ "state_mutability": "view"
3297
+ },
3267
3298
  {
3268
3299
  "type": "function",
3269
3300
  "name": "is_valid_collection",
@@ -3321,8 +3352,12 @@ var IPCollectionABI = [
3321
3352
  "name": "get_token",
3322
3353
  "inputs": [
3323
3354
  {
3324
- "name": "token",
3325
- "type": "core::byte_array::ByteArray"
3355
+ "name": "collection_id",
3356
+ "type": "core::integer::u256"
3357
+ },
3358
+ {
3359
+ "name": "token_id",
3360
+ "type": "core::integer::u256"
3326
3361
  }
3327
3362
  ],
3328
3363
  "outputs": [
@@ -3337,8 +3372,12 @@ var IPCollectionABI = [
3337
3372
  "name": "is_valid_token",
3338
3373
  "inputs": [
3339
3374
  {
3340
- "name": "token",
3341
- "type": "core::byte_array::ByteArray"
3375
+ "name": "collection_id",
3376
+ "type": "core::integer::u256"
3377
+ },
3378
+ {
3379
+ "name": "token_id",
3380
+ "type": "core::integer::u256"
3342
3381
  }
3343
3382
  ],
3344
3383
  "outputs": [
@@ -3353,8 +3392,12 @@ var IPCollectionABI = [
3353
3392
  "name": "is_transferable_token",
3354
3393
  "inputs": [
3355
3394
  {
3356
- "name": "token",
3357
- "type": "core::byte_array::ByteArray"
3395
+ "name": "collection_id",
3396
+ "type": "core::integer::u256"
3397
+ },
3398
+ {
3399
+ "name": "token_id",
3400
+ "type": "core::integer::u256"
3358
3401
  }
3359
3402
  ],
3360
3403
  "outputs": [
@@ -3459,6 +3502,11 @@ var IPCollectionABI = [
3459
3502
  "name": "metadata_uri",
3460
3503
  "type": "core::byte_array::ByteArray",
3461
3504
  "kind": "data"
3505
+ },
3506
+ {
3507
+ "name": "royalty_bps",
3508
+ "type": "core::integer::u128",
3509
+ "kind": "data"
3462
3510
  }
3463
3511
  ]
3464
3512
  },
@@ -3482,6 +3530,11 @@ var IPCollectionABI = [
3482
3530
  "type": "core::array::Array::<core::starknet::contract_address::ContractAddress>",
3483
3531
  "kind": "data"
3484
3532
  },
3533
+ {
3534
+ "name": "metadata_uris",
3535
+ "type": "core::array::Array::<core::byte_array::ByteArray>",
3536
+ "kind": "data"
3537
+ },
3485
3538
  {
3486
3539
  "name": "operator",
3487
3540
  "type": "core::starknet::contract_address::ContractAddress",
@@ -3527,8 +3580,13 @@ var IPCollectionABI = [
3527
3580
  "kind": "struct",
3528
3581
  "members": [
3529
3582
  {
3530
- "name": "tokens",
3531
- "type": "core::array::Array::<core::byte_array::ByteArray>",
3583
+ "name": "collection_ids",
3584
+ "type": "core::array::Span::<core::integer::u256>",
3585
+ "kind": "data"
3586
+ },
3587
+ {
3588
+ "name": "token_ids",
3589
+ "type": "core::array::Span::<core::integer::u256>",
3532
3590
  "kind": "data"
3533
3591
  },
3534
3592
  {
@@ -3596,8 +3654,13 @@ var IPCollectionABI = [
3596
3654
  "kind": "data"
3597
3655
  },
3598
3656
  {
3599
- "name": "tokens",
3600
- "type": "core::array::Array::<core::byte_array::ByteArray>",
3657
+ "name": "collection_ids",
3658
+ "type": "core::array::Span::<core::integer::u256>",
3659
+ "kind": "data"
3660
+ },
3661
+ {
3662
+ "name": "token_ids",
3663
+ "type": "core::array::Span::<core::integer::u256>",
3601
3664
  "kind": "data"
3602
3665
  },
3603
3666
  {
@@ -3823,6 +3886,10 @@ var IPNftABI = [
3823
3886
  {
3824
3887
  "name": "creator",
3825
3888
  "type": "core::starknet::contract_address::ContractAddress"
3889
+ },
3890
+ {
3891
+ "name": "royalty_bps",
3892
+ "type": "core::integer::u128"
3826
3893
  }
3827
3894
  ],
3828
3895
  "outputs": [],
@@ -3878,6 +3945,17 @@ var IPNftABI = [
3878
3945
  ],
3879
3946
  "state_mutability": "view"
3880
3947
  },
3948
+ {
3949
+ "type": "function",
3950
+ "name": "version",
3951
+ "inputs": [],
3952
+ "outputs": [
3953
+ {
3954
+ "type": "core::byte_array::ByteArray"
3955
+ }
3956
+ ],
3957
+ "state_mutability": "view"
3958
+ },
3881
3959
  {
3882
3960
  "type": "function",
3883
3961
  "name": "base_uri",
@@ -4360,6 +4438,75 @@ var IPNftABI = [
4360
4438
  }
4361
4439
  ]
4362
4440
  },
4441
+ {
4442
+ "type": "impl",
4443
+ "name": "ERC2981Impl",
4444
+ "interface_name": "openzeppelin_token::common::erc2981::interface::IERC2981"
4445
+ },
4446
+ {
4447
+ "type": "interface",
4448
+ "name": "openzeppelin_token::common::erc2981::interface::IERC2981",
4449
+ "items": [
4450
+ {
4451
+ "type": "function",
4452
+ "name": "royalty_info",
4453
+ "inputs": [
4454
+ {
4455
+ "name": "token_id",
4456
+ "type": "core::integer::u256"
4457
+ },
4458
+ {
4459
+ "name": "sale_price",
4460
+ "type": "core::integer::u256"
4461
+ }
4462
+ ],
4463
+ "outputs": [
4464
+ {
4465
+ "type": "(core::starknet::contract_address::ContractAddress, core::integer::u256)"
4466
+ }
4467
+ ],
4468
+ "state_mutability": "view"
4469
+ }
4470
+ ]
4471
+ },
4472
+ {
4473
+ "type": "impl",
4474
+ "name": "ERC2981InfoImpl",
4475
+ "interface_name": "openzeppelin_token::common::erc2981::interface::IERC2981Info"
4476
+ },
4477
+ {
4478
+ "type": "interface",
4479
+ "name": "openzeppelin_token::common::erc2981::interface::IERC2981Info",
4480
+ "items": [
4481
+ {
4482
+ "type": "function",
4483
+ "name": "default_royalty",
4484
+ "inputs": [],
4485
+ "outputs": [
4486
+ {
4487
+ "type": "(core::starknet::contract_address::ContractAddress, core::integer::u128, core::integer::u128)"
4488
+ }
4489
+ ],
4490
+ "state_mutability": "view"
4491
+ },
4492
+ {
4493
+ "type": "function",
4494
+ "name": "token_royalty",
4495
+ "inputs": [
4496
+ {
4497
+ "name": "token_id",
4498
+ "type": "core::integer::u256"
4499
+ }
4500
+ ],
4501
+ "outputs": [
4502
+ {
4503
+ "type": "(core::starknet::contract_address::ContractAddress, core::integer::u128, core::integer::u128)"
4504
+ }
4505
+ ],
4506
+ "state_mutability": "view"
4507
+ }
4508
+ ]
4509
+ },
4363
4510
  {
4364
4511
  "type": "constructor",
4365
4512
  "name": "constructor",
@@ -4486,6 +4633,12 @@ var IPNftABI = [
4486
4633
  "kind": "enum",
4487
4634
  "variants": []
4488
4635
  },
4636
+ {
4637
+ "type": "event",
4638
+ "name": "openzeppelin_token::common::erc2981::erc2981::ERC2981Component::Event",
4639
+ "kind": "enum",
4640
+ "variants": []
4641
+ },
4489
4642
  {
4490
4643
  "type": "event",
4491
4644
  "name": "ip_collection_erc_721::IPNft::IPNft::Event",
@@ -4505,6 +4658,11 @@ var IPNftABI = [
4505
4658
  "name": "ERC721EnumerableEvent",
4506
4659
  "type": "openzeppelin_token::erc721::extensions::erc721_enumerable::erc721_enumerable::ERC721EnumerableComponent::Event",
4507
4660
  "kind": "flat"
4661
+ },
4662
+ {
4663
+ "name": "ERC2981Event",
4664
+ "type": "openzeppelin_token::common::erc2981::erc2981::ERC2981Component::Event",
4665
+ "kind": "flat"
4508
4666
  }
4509
4667
  ]
4510
4668
  }
@@ -4958,11 +5116,17 @@ async function cancelOrder(account, params, config) {
4958
5116
  }
4959
5117
  }
4960
5118
  async function mint(account, params, config) {
4961
- const { collectionId, recipient, tokenUri, collectionContract } = params;
5119
+ const { collectionId, recipient, tokenUri, royaltyBps, collectionContract } = params;
4962
5120
  const provider = getProvider(config);
4963
5121
  const contractAddress = collectionContract ?? config.collectionContract;
4964
5122
  const id = starknet.cairo.uint256(collectionId);
4965
- const calldata = [id.low.toString(), id.high.toString(), recipient, ...encodeByteArray(tokenUri)];
5123
+ const calldata = [
5124
+ id.low.toString(),
5125
+ id.high.toString(),
5126
+ recipient,
5127
+ ...encodeByteArray(tokenUri),
5128
+ royaltyBps.toString()
5129
+ ];
4966
5130
  try {
4967
5131
  const tx = await account.execute([{ contractAddress, entrypoint: "mint", calldata }]);
4968
5132
  await provider.waitForTransaction(tx.transaction_hash);
@@ -5461,10 +5625,10 @@ function normalizeEvm(address) {
5461
5625
  const m = /^0x([0-9a-fA-F]{40})$/.exec(address);
5462
5626
  if (!m) throw new Error(`Invalid ETHEREUM/BASE address: "${address}"`);
5463
5627
  const lower = m[1].toLowerCase();
5464
- const hash2 = sha3_js.keccak_256(new TextEncoder().encode(lower));
5628
+ const hash4 = sha3_js.keccak_256(new TextEncoder().encode(lower));
5465
5629
  let out = "0x";
5466
5630
  for (let i = 0; i < 40; i++) {
5467
- const nibble = hash2[i >> 1] >> (i % 2 === 0 ? 4 : 0) & 15;
5631
+ const nibble = hash4[i >> 1] >> (i % 2 === 0 ? 4 : 0) & 15;
5468
5632
  out += nibble >= 8 ? lower[i].toUpperCase() : lower[i];
5469
5633
  }
5470
5634
  return out;
@@ -5478,12 +5642,12 @@ function normalizeSolana(address) {
5478
5642
  throw new Error(`Invalid SOLANA address: "${address}"`);
5479
5643
  }
5480
5644
  }
5481
- function normalizeHash(hash2) {
5645
+ function normalizeHash(hash4) {
5482
5646
  try {
5483
- const hex = starknet.num.toHex(BigInt(hash2));
5647
+ const hex = starknet.num.toHex(BigInt(hash4));
5484
5648
  return "0x" + hex.slice(2).padStart(64, "0").toLowerCase();
5485
5649
  } catch {
5486
- throw new Error(`Invalid hash: "${hash2}"`);
5650
+ throw new Error(`Invalid hash: "${hash4}"`);
5487
5651
  }
5488
5652
  }
5489
5653
  function shortenAddress(chain, address, chars = 4) {
@@ -6566,6 +6730,135 @@ var MedialaneClient = class {
6566
6730
  }
6567
6731
  };
6568
6732
 
6733
+ // src/admin-auth/types.ts
6734
+ var ADMIN_SCOPE = "admin-api";
6735
+ function adminRequestDigest(req) {
6736
+ return starknet.hash.computePoseidonHashOnElements([
6737
+ starknet.hash.starknetKeccak(req.method.toUpperCase()),
6738
+ starknet.hash.starknetKeccak(req.path),
6739
+ starknet.hash.starknetKeccak(req.body ?? ""),
6740
+ starknet.num.toBigInt(req.nonce),
6741
+ BigInt(req.ts)
6742
+ ]);
6743
+ }
6744
+ function signAdminRequest(sessionPrivateKey, req) {
6745
+ const digest = adminRequestDigest(req);
6746
+ return starknet.ec.starkCurve.sign(digest, sessionPrivateKey).toCompactHex();
6747
+ }
6748
+ function verifyAdminRequestSig(sessionPublicKey, req, sig) {
6749
+ try {
6750
+ return starknet.ec.starkCurve.verify(sig, adminRequestDigest(req), sessionPublicKey);
6751
+ } catch {
6752
+ return false;
6753
+ }
6754
+ }
6755
+ function buildAdminSessionTypedData(p) {
6756
+ return {
6757
+ types: {
6758
+ StarknetDomain: [
6759
+ { name: "name", type: "shortstring" },
6760
+ { name: "version", type: "shortstring" },
6761
+ { name: "chainId", type: "shortstring" },
6762
+ { name: "revision", type: "shortstring" }
6763
+ ],
6764
+ AdminSession: [
6765
+ { name: "sessionKeyHash", type: "felt" },
6766
+ { name: "scope", type: "shortstring" },
6767
+ { name: "issuedAt", type: "felt" },
6768
+ { name: "expiresAt", type: "felt" }
6769
+ ]
6770
+ },
6771
+ primaryType: "AdminSession",
6772
+ domain: { name: "Medialane Admin", version: "1", chainId: p.chainId ?? "SN_MAIN", revision: "1" },
6773
+ message: {
6774
+ sessionKeyHash: p.sessionKeyHash,
6775
+ scope: p.scope,
6776
+ issuedAt: String(p.issuedAt),
6777
+ expiresAt: String(p.expiresAt)
6778
+ }
6779
+ };
6780
+ }
6781
+ function sessionKeyHashOf(sessionPublicKey) {
6782
+ return starknet.num.toHex(starknet.hash.starknetKeccak(sessionPublicKey));
6783
+ }
6784
+ async function createAdminSessionGrant(signTypedData, opts) {
6785
+ const priv = starknet.ec.starkCurve.utils.randomPrivateKey();
6786
+ const sessionPrivateKey = "0x" + starknet.encode.buf2hex(priv);
6787
+ const sessionPublicKey = "0x" + starknet.encode.buf2hex(starknet.ec.starkCurve.getPublicKey(sessionPrivateKey, false));
6788
+ const sessionKeyHash = sessionKeyHashOf(sessionPublicKey);
6789
+ const nowSec = Math.floor((opts.now?.() ?? Date.now()) / 1e3);
6790
+ const issuedAt = nowSec;
6791
+ const expiresAt = nowSec + (opts.ttlSeconds ?? 7200);
6792
+ const data = buildAdminSessionTypedData({ sessionKeyHash, scope: ADMIN_SCOPE, issuedAt, expiresAt, chainId: opts.chainId });
6793
+ const walletSig = await signTypedData(data);
6794
+ const grant = {
6795
+ wallet: opts.wallet,
6796
+ chain: opts.chain ?? "STARKNET",
6797
+ sessionPublicKey,
6798
+ sessionKeyHash,
6799
+ scope: ADMIN_SCOPE,
6800
+ issuedAt,
6801
+ expiresAt,
6802
+ walletSig
6803
+ };
6804
+ return { grant, sessionPrivateKey };
6805
+ }
6806
+
6807
+ // src/admin-auth/headers.ts
6808
+ var ADMIN_HEADERS = {
6809
+ grant: "x-ml-admin-grant",
6810
+ sig: "x-ml-admin-sig",
6811
+ nonce: "x-ml-admin-nonce",
6812
+ ts: "x-ml-admin-ts"
6813
+ };
6814
+ function b64urlEncode(s) {
6815
+ const bytes = new TextEncoder().encode(s);
6816
+ let bin = "";
6817
+ for (const b of bytes) bin += String.fromCharCode(b);
6818
+ return btoa(bin).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
6819
+ }
6820
+ function b64urlDecode(s) {
6821
+ const pad = s.length % 4 ? "=".repeat(4 - s.length % 4) : "";
6822
+ const bin = atob(s.replace(/-/g, "+").replace(/_/g, "/") + pad);
6823
+ const bytes = Uint8Array.from(bin, (c) => c.charCodeAt(0));
6824
+ return new TextDecoder().decode(bytes);
6825
+ }
6826
+ function randomNonce() {
6827
+ const b = new Uint8Array(16);
6828
+ crypto.getRandomValues(b);
6829
+ let hex = "";
6830
+ for (const x of b) hex += x.toString(16).padStart(2, "0");
6831
+ return "0x" + hex;
6832
+ }
6833
+ function encodeAdminHeaders(session, reqInit) {
6834
+ const nonce = randomNonce();
6835
+ const ts = Math.floor((reqInit.now?.() ?? Date.now()) / 1e3);
6836
+ const req = { method: reqInit.method, path: reqInit.path, body: reqInit.body ?? "", nonce, ts };
6837
+ const sig = signAdminRequest(session.sessionPrivateKey, req);
6838
+ return {
6839
+ [ADMIN_HEADERS.grant]: b64urlEncode(JSON.stringify(session.grant)),
6840
+ [ADMIN_HEADERS.sig]: sig,
6841
+ [ADMIN_HEADERS.nonce]: nonce,
6842
+ [ADMIN_HEADERS.ts]: String(ts)
6843
+ };
6844
+ }
6845
+ function parseAdminHeaders(get) {
6846
+ const rawGrant = get(ADMIN_HEADERS.grant);
6847
+ const sig = get(ADMIN_HEADERS.sig);
6848
+ const nonce = get(ADMIN_HEADERS.nonce);
6849
+ const tsRaw = get(ADMIN_HEADERS.ts);
6850
+ if (!rawGrant || !sig || !nonce || !tsRaw) return null;
6851
+ try {
6852
+ const grant = JSON.parse(b64urlDecode(rawGrant));
6853
+ if (!grant.wallet || !grant.sessionPublicKey || !grant.sessionKeyHash || !Array.isArray(grant.walletSig) || typeof grant.expiresAt !== "number") return null;
6854
+ const ts = Number(tsRaw);
6855
+ if (!Number.isFinite(ts)) return null;
6856
+ return { grant, sig, nonce, ts };
6857
+ } catch {
6858
+ return null;
6859
+ }
6860
+ }
6861
+
6569
6862
  // src/types/api.ts
6570
6863
  var OPEN_LICENSES = ["CC0", "CC BY", "CC BY-SA", "CC BY-NC"];
6571
6864
 
@@ -6815,6 +7108,8 @@ function getServicesByCapability(cap) {
6815
7108
  );
6816
7109
  }
6817
7110
 
7111
+ exports.ADMIN_HEADERS = ADMIN_HEADERS;
7112
+ exports.ADMIN_SCOPE = ADMIN_SCOPE;
6818
7113
  exports.ApiClient = ApiClient;
6819
7114
  exports.CHAINS = CHAINS;
6820
7115
  exports.COIN_MAX_SUPPLY = MAX_SUPPLY;
@@ -6872,8 +7167,10 @@ exports.PUBLIC_RPC_FALLBACKS = PUBLIC_RPC_FALLBACKS;
6872
7167
  exports.PopService = PopService;
6873
7168
  exports.SUPPORTED_TOKENS = SUPPORTED_TOKENS;
6874
7169
  exports.VALIDATED_EKUBO_PARAMS = VALIDATED_EKUBO_PARAMS;
7170
+ exports.adminRequestDigest = adminRequestDigest;
6875
7171
  exports.build1155CancellationTypedData = build1155CancellationTypedData;
6876
7172
  exports.build1155OrderTypedData = build1155OrderTypedData;
7173
+ exports.buildAdminSessionTypedData = buildAdminSessionTypedData;
6877
7174
  exports.buildCancellationTypedData = buildCancellationTypedData;
6878
7175
  exports.buildCreateCreatorCoinCall = buildCreateCreatorCoinCall;
6879
7176
  exports.buildFeeCall = buildFeeCall;
@@ -6881,7 +7178,9 @@ exports.buildLaunchOnEkuboCalls = buildLaunchOnEkuboCalls;
6881
7178
  exports.buildOrderTypedData = buildOrderTypedData;
6882
7179
  exports.buybackQuoteRaw = buybackQuoteRaw;
6883
7180
  exports.coinToRaw = toRaw;
7181
+ exports.createAdminSessionGrant = createAdminSessionGrant;
6884
7182
  exports.createFailoverFetch = createFailoverFetch;
7183
+ exports.encodeAdminHeaders = encodeAdminHeaders;
6885
7184
  exports.encodeByteArray = encodeByteArray;
6886
7185
  exports.fdvHuman = fdvHuman;
6887
7186
  exports.formatAmount = formatAmount;
@@ -6897,16 +7196,21 @@ exports.isTransientRpcError = isTransientRpcError;
6897
7196
  exports.listServices = listServices;
6898
7197
  exports.normalizeAddress = normalizeAddress;
6899
7198
  exports.normalizeHash = normalizeHash;
7199
+ exports.parseAdminHeaders = parseAdminHeaders;
6900
7200
  exports.parseAmount = parseAmount;
6901
7201
  exports.parseCreatorCoinCreated = parseCreatorCoinCreated;
7202
+ exports.randomNonce = randomNonce;
6902
7203
  exports.resolveConfig = resolveConfig;
6903
7204
  exports.resolveFeeConfig = resolveFeeConfig;
7205
+ exports.sessionKeyHashOf = sessionKeyHashOf;
6904
7206
  exports.shortenAddress = shortenAddress;
7207
+ exports.signAdminRequest = signAdminRequest;
6905
7208
  exports.stringifyBigInts = stringifyBigInts;
6906
7209
  exports.teamCoinsRaw = teamCoinsRaw;
6907
7210
  exports.u256ToBigInt = u256ToBigInt;
6908
7211
  exports.validateCoinName = validateName;
6909
7212
  exports.validateCoinSupply = validateSupply;
6910
7213
  exports.validateCoinSymbol = validateSymbol;
7214
+ exports.verifyAdminRequestSig = verifyAdminRequestSig;
6911
7215
  //# sourceMappingURL=index.cjs.map
6912
7216
  //# sourceMappingURL=index.cjs.map