@medialane/sdk 0.10.0 → 0.12.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.d.cts CHANGED
@@ -19,9 +19,9 @@ declare const MARKETPLACE_1155_CONTRACT_MAINNET = "0x02bfa521c25461a09d735889b46
19
19
  declare const MARKETPLACE_1155_CLASS_HASH_MAINNET = "0x01b674aad934be85abc7c1970265cbf7e9bc7d586a90f0a67112c201636dbdd3";
20
20
  /** First mainnet block for the current Medialane Protocol ERC-1155 deployment. */
21
21
  declare const MARKETPLACE_1155_START_BLOCK_MAINNET = 9260304;
22
- declare const COLLECTION_721_CONTRACT_MAINNET = "0x05c49ee5d3208a2c2e150fdd0c247d1195ed9ab54fa2d5dea7a633f39e4b205b";
22
+ declare const COLLECTION_721_CONTRACT_MAINNET = "0x07c2207d200a1dce1cc82a117d8ba91dabfe3d1cc5072d9e4cdd9654fbb0ff10";
23
23
  /** @deprecated Use COLLECTION_721_CONTRACT_MAINNET. */
24
- declare const COLLECTION_CONTRACT_MAINNET = "0x05c49ee5d3208a2c2e150fdd0c247d1195ed9ab54fa2d5dea7a633f39e4b205b";
24
+ declare const COLLECTION_CONTRACT_MAINNET = "0x07c2207d200a1dce1cc82a117d8ba91dabfe3d1cc5072d9e4cdd9654fbb0ff10";
25
25
  declare const DROP_FACTORY_CONTRACT_MAINNET = "0x03587f42e29daee1b193f6cf83bf8627908ed6632d0d83fcb26225c50547d800";
26
26
  declare const POP_FACTORY_CONTRACT_MAINNET = "0x00b32c34b427d8f346b5843ada6a37bd3368d879fc752cd52b68a87287f60111";
27
27
  /** NFTComments on-chain comment system — immutable, no admin key. */
@@ -348,7 +348,43 @@ declare class Medialane1155Module {
348
348
 
349
349
  type IPType = "Audio" | "Art" | "Documents" | "NFT" | "Video" | "Photography" | "Patents" | "Posts" | "Publications" | "RWA" | "Software" | "Custom";
350
350
  type CollectionSort = "recent" | "supply" | "floor" | "volume" | "name";
351
- type CollectionSource = "MEDIALANE_REGISTRY" | "EXTERNAL" | "PARTNERSHIP" | "IP_TICKET" | "IP_CLUB" | "GAME" | "POP_PROTOCOL" | "COLLECTION_DROP";
351
+ /** Bounded capability set (05-service-model §III). Expand the union when a
352
+ * service needs behavior outside it — never make it free-form. */
353
+ type ServiceCapability = "list" | "buy" | "make_offer" | "cancel" | "transfer" | "burn" | "mint" | "claim" | "airdrop" | "remix" | "license" | "subscribe" | "redeem";
354
+ /** A service that bakes enforcement into its own contract declares it here
355
+ * (04-licensing-model §V, 05-service-model §IV). Absence/all-falsey =
356
+ * soft enforcement (the 00-principles §9 default). */
357
+ interface EnforcementDeclaration {
358
+ royalty?: "erc2981" | "service-split" | "none";
359
+ escrow?: boolean;
360
+ timeLock?: boolean;
361
+ revocable?: boolean;
362
+ }
363
+ /** Declarative description of a service (05-service-model §II).
364
+ * SDK-resident in v1; on-chain registry in year 2. */
365
+ interface ServiceDefinition {
366
+ /** Stable kebab-case id. NO version number (05 §II). */
367
+ id: string;
368
+ displayName: string;
369
+ description: string;
370
+ standard: "ERC721" | "ERC1155" | "UNKNOWN";
371
+ provenance: "MEDIALANE" | "EXTERNAL";
372
+ onchain?: {
373
+ factoryAddress?: string;
374
+ classHash?: string;
375
+ startBlock?: number;
376
+ };
377
+ /** Drives the dapp asset/collection page variant. */
378
+ uiVariant: string;
379
+ capabilities: ServiceCapability[];
380
+ metadataSchema?: {
381
+ requiredTraits?: string[];
382
+ /** Canonical platform default is "CC BY-SA" (04-licensing-model §III). */
383
+ licenseDefault?: string;
384
+ enforcement?: EnforcementDeclaration;
385
+ };
386
+ }
387
+ type CollectionSource = "MEDIALANE_ERC721" | "MEDIALANE_ERC1155" | "EXTERNAL_ERC721" | "EXTERNAL_ERC1155" | "MEDIALANE_REGISTRY" | "ERC1155_FACTORY" | "EXTERNAL" | "PARTNERSHIP" | "IP_TICKET" | "IP_CLUB" | "GAME" | "POP_PROTOCOL" | "COLLECTION_DROP";
352
388
  interface ApiCollectionsQuery {
353
389
  page?: number;
354
390
  limit?: number;
@@ -356,6 +392,8 @@ interface ApiCollectionsQuery {
356
392
  sort?: CollectionSort;
357
393
  owner?: string;
358
394
  source?: CollectionSource;
395
+ /** Filter by service id (preferred over `source`). */
396
+ service?: string;
359
397
  }
360
398
  type OrderStatus = "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED" | "COUNTER_OFFERED";
361
399
  type SortOrder = "price_asc" | "price_desc" | "recent";
@@ -531,6 +569,10 @@ interface ApiCollection {
531
569
  /** Token standard detected via ERC-165. */
532
570
  standard: "ERC721" | "ERC1155" | "UNKNOWN";
533
571
  isKnown: boolean;
572
+ /** Stable Medialane service ID, or null for external collections.
573
+ * Resolve via getService() (05-service-model). Primary field. */
574
+ service: string | null;
575
+ /** @deprecated Since 0.12.0 — use `service`. Removed in 0.13.0. */
534
576
  source: CollectionSource;
535
577
  claimedBy: string | null;
536
578
  profile?: ApiCollectionProfile | null;
@@ -959,7 +1001,7 @@ declare class ApiClient {
959
1001
  getToken(contract: string, tokenId: string, wait?: boolean): Promise<ApiResponse<ApiToken>>;
960
1002
  getTokensByOwner(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiToken[]>>;
961
1003
  getTokenHistory(contract: string, tokenId: string, page?: number, limit?: number): Promise<ApiResponse<ApiActivity[]>>;
962
- getCollections(page?: number, limit?: number, isKnown?: boolean, sort?: CollectionSort, source?: CollectionSource): Promise<ApiResponse<ApiCollection[]>>;
1004
+ getCollections(page?: number, limit?: number, isKnown?: boolean, sort?: CollectionSort, source?: CollectionSource, service?: string): Promise<ApiResponse<ApiCollection[]>>;
963
1005
  getCollectionsByOwner(owner: string, page?: number, limit?: number): Promise<ApiResponse<ApiCollection[]>>;
964
1006
  getCollection(contract: string): Promise<ApiResponse<ApiCollection>>;
965
1007
  getCollectionTokens(contract: string, page?: number, limit?: number): Promise<ApiResponse<ApiToken[]>>;
@@ -2289,9 +2331,6 @@ declare const CollectionRegistryABI: readonly [{
2289
2331
  }, {
2290
2332
  readonly name: "ip_nft";
2291
2333
  readonly type: "core::starknet::contract_address::ContractAddress";
2292
- }, {
2293
- readonly name: "is_active";
2294
- readonly type: "core::bool";
2295
2334
  }];
2296
2335
  }, {
2297
2336
  readonly type: "function";
@@ -2930,6 +2969,1188 @@ declare const IPCollection1155ABI: readonly [{
2930
2969
  readonly outputs: readonly [];
2931
2970
  readonly state_mutability: "external";
2932
2971
  }];
2972
+ declare const IPCollectionABI: readonly [{
2973
+ readonly type: "impl";
2974
+ readonly name: "IPCollectionImpl";
2975
+ readonly interface_name: "ip_collection_erc_721::interfaces::IIPCollection::IIPCollection";
2976
+ }, {
2977
+ readonly type: "struct";
2978
+ readonly name: "core::byte_array::ByteArray";
2979
+ readonly members: readonly [{
2980
+ readonly name: "data";
2981
+ readonly type: "core::array::Array::<core::bytes_31::bytes31>";
2982
+ }, {
2983
+ readonly name: "pending_word";
2984
+ readonly type: "core::felt252";
2985
+ }, {
2986
+ readonly name: "pending_word_len";
2987
+ readonly type: "core::internal::bounded_int::BoundedInt::<0, 30>";
2988
+ }];
2989
+ }, {
2990
+ readonly type: "struct";
2991
+ readonly name: "core::integer::u256";
2992
+ readonly members: readonly [{
2993
+ readonly name: "low";
2994
+ readonly type: "core::integer::u128";
2995
+ }, {
2996
+ readonly name: "high";
2997
+ readonly type: "core::integer::u128";
2998
+ }];
2999
+ }, {
3000
+ readonly type: "struct";
3001
+ readonly name: "core::array::Span::<core::integer::u256>";
3002
+ readonly members: readonly [{
3003
+ readonly name: "snapshot";
3004
+ readonly type: "@core::array::Array::<core::integer::u256>";
3005
+ }];
3006
+ }, {
3007
+ readonly type: "struct";
3008
+ readonly name: "ip_collection_erc_721::types::Collection";
3009
+ readonly members: readonly [{
3010
+ readonly name: "name";
3011
+ readonly type: "core::byte_array::ByteArray";
3012
+ }, {
3013
+ readonly name: "symbol";
3014
+ readonly type: "core::byte_array::ByteArray";
3015
+ }, {
3016
+ readonly name: "base_uri";
3017
+ readonly type: "core::byte_array::ByteArray";
3018
+ }, {
3019
+ readonly name: "owner";
3020
+ readonly type: "core::starknet::contract_address::ContractAddress";
3021
+ }, {
3022
+ readonly name: "ip_nft";
3023
+ readonly type: "core::starknet::contract_address::ContractAddress";
3024
+ }];
3025
+ }, {
3026
+ readonly type: "enum";
3027
+ readonly name: "core::bool";
3028
+ readonly variants: readonly [{
3029
+ readonly name: "False";
3030
+ readonly type: "()";
3031
+ }, {
3032
+ readonly name: "True";
3033
+ readonly type: "()";
3034
+ }];
3035
+ }, {
3036
+ readonly type: "struct";
3037
+ readonly name: "ip_collection_erc_721::types::CollectionStats";
3038
+ readonly members: readonly [{
3039
+ readonly name: "total_minted";
3040
+ readonly type: "core::integer::u256";
3041
+ }, {
3042
+ readonly name: "total_archived";
3043
+ readonly type: "core::integer::u256";
3044
+ }, {
3045
+ readonly name: "total_transfers";
3046
+ readonly type: "core::integer::u256";
3047
+ }, {
3048
+ readonly name: "last_mint_time";
3049
+ readonly type: "core::integer::u64";
3050
+ }, {
3051
+ readonly name: "last_archive_time";
3052
+ readonly type: "core::integer::u64";
3053
+ }, {
3054
+ readonly name: "last_transfer_time";
3055
+ readonly type: "core::integer::u64";
3056
+ }];
3057
+ }, {
3058
+ readonly type: "struct";
3059
+ readonly name: "ip_collection_erc_721::types::TokenData";
3060
+ readonly members: readonly [{
3061
+ readonly name: "collection_id";
3062
+ readonly type: "core::integer::u256";
3063
+ }, {
3064
+ readonly name: "token_id";
3065
+ readonly type: "core::integer::u256";
3066
+ }, {
3067
+ readonly name: "owner";
3068
+ readonly type: "core::starknet::contract_address::ContractAddress";
3069
+ }, {
3070
+ readonly name: "metadata_uri";
3071
+ readonly type: "core::byte_array::ByteArray";
3072
+ }, {
3073
+ readonly name: "original_creator";
3074
+ readonly type: "core::starknet::contract_address::ContractAddress";
3075
+ }, {
3076
+ readonly name: "registered_at";
3077
+ readonly type: "core::integer::u64";
3078
+ }];
3079
+ }, {
3080
+ readonly type: "interface";
3081
+ readonly name: "ip_collection_erc_721::interfaces::IIPCollection::IIPCollection";
3082
+ readonly items: readonly [{
3083
+ readonly type: "function";
3084
+ readonly name: "create_collection";
3085
+ readonly inputs: readonly [{
3086
+ readonly name: "name";
3087
+ readonly type: "core::byte_array::ByteArray";
3088
+ }, {
3089
+ readonly name: "symbol";
3090
+ readonly type: "core::byte_array::ByteArray";
3091
+ }, {
3092
+ readonly name: "base_uri";
3093
+ readonly type: "core::byte_array::ByteArray";
3094
+ }];
3095
+ readonly outputs: readonly [{
3096
+ readonly type: "core::integer::u256";
3097
+ }];
3098
+ readonly state_mutability: "external";
3099
+ }, {
3100
+ readonly type: "function";
3101
+ readonly name: "mint";
3102
+ readonly inputs: readonly [{
3103
+ readonly name: "collection_id";
3104
+ readonly type: "core::integer::u256";
3105
+ }, {
3106
+ readonly name: "recipient";
3107
+ readonly type: "core::starknet::contract_address::ContractAddress";
3108
+ }, {
3109
+ readonly name: "token_uri";
3110
+ readonly type: "core::byte_array::ByteArray";
3111
+ }];
3112
+ readonly outputs: readonly [{
3113
+ readonly type: "core::integer::u256";
3114
+ }];
3115
+ readonly state_mutability: "external";
3116
+ }, {
3117
+ readonly type: "function";
3118
+ readonly name: "batch_mint";
3119
+ readonly inputs: readonly [{
3120
+ readonly name: "collection_id";
3121
+ readonly type: "core::integer::u256";
3122
+ }, {
3123
+ readonly name: "recipients";
3124
+ readonly type: "core::array::Array::<core::starknet::contract_address::ContractAddress>";
3125
+ }, {
3126
+ readonly name: "token_uris";
3127
+ readonly type: "core::array::Array::<core::byte_array::ByteArray>";
3128
+ }];
3129
+ readonly outputs: readonly [{
3130
+ readonly type: "core::array::Span::<core::integer::u256>";
3131
+ }];
3132
+ readonly state_mutability: "external";
3133
+ }, {
3134
+ readonly type: "function";
3135
+ readonly name: "transfer_collection_ownership";
3136
+ readonly inputs: readonly [{
3137
+ readonly name: "collection_id";
3138
+ readonly type: "core::integer::u256";
3139
+ }, {
3140
+ readonly name: "new_owner";
3141
+ readonly type: "core::starknet::contract_address::ContractAddress";
3142
+ }];
3143
+ readonly outputs: readonly [];
3144
+ readonly state_mutability: "external";
3145
+ }, {
3146
+ readonly type: "function";
3147
+ readonly name: "archive";
3148
+ readonly inputs: readonly [{
3149
+ readonly name: "token";
3150
+ readonly type: "core::byte_array::ByteArray";
3151
+ }];
3152
+ readonly outputs: readonly [];
3153
+ readonly state_mutability: "external";
3154
+ }, {
3155
+ readonly type: "function";
3156
+ readonly name: "batch_archive";
3157
+ readonly inputs: readonly [{
3158
+ readonly name: "tokens";
3159
+ readonly type: "core::array::Array::<core::byte_array::ByteArray>";
3160
+ }];
3161
+ readonly outputs: readonly [];
3162
+ readonly state_mutability: "external";
3163
+ }, {
3164
+ readonly type: "function";
3165
+ readonly name: "transfer_token";
3166
+ readonly inputs: readonly [{
3167
+ readonly name: "from";
3168
+ readonly type: "core::starknet::contract_address::ContractAddress";
3169
+ }, {
3170
+ readonly name: "to";
3171
+ readonly type: "core::starknet::contract_address::ContractAddress";
3172
+ }, {
3173
+ readonly name: "token";
3174
+ readonly type: "core::byte_array::ByteArray";
3175
+ }];
3176
+ readonly outputs: readonly [];
3177
+ readonly state_mutability: "external";
3178
+ }, {
3179
+ readonly type: "function";
3180
+ readonly name: "batch_transfer";
3181
+ readonly inputs: readonly [{
3182
+ readonly name: "from";
3183
+ readonly type: "core::starknet::contract_address::ContractAddress";
3184
+ }, {
3185
+ readonly name: "to";
3186
+ readonly type: "core::starknet::contract_address::ContractAddress";
3187
+ }, {
3188
+ readonly name: "tokens";
3189
+ readonly type: "core::array::Array::<core::byte_array::ByteArray>";
3190
+ }];
3191
+ readonly outputs: readonly [];
3192
+ readonly state_mutability: "external";
3193
+ }, {
3194
+ readonly type: "function";
3195
+ readonly name: "list_user_tokens_per_collection";
3196
+ readonly inputs: readonly [{
3197
+ readonly name: "collection_id";
3198
+ readonly type: "core::integer::u256";
3199
+ }, {
3200
+ readonly name: "user";
3201
+ readonly type: "core::starknet::contract_address::ContractAddress";
3202
+ }];
3203
+ readonly outputs: readonly [{
3204
+ readonly type: "core::array::Span::<core::integer::u256>";
3205
+ }];
3206
+ readonly state_mutability: "view";
3207
+ }, {
3208
+ readonly type: "function";
3209
+ readonly name: "list_user_collections";
3210
+ readonly inputs: readonly [{
3211
+ readonly name: "user";
3212
+ readonly type: "core::starknet::contract_address::ContractAddress";
3213
+ }];
3214
+ readonly outputs: readonly [{
3215
+ readonly type: "core::array::Span::<core::integer::u256>";
3216
+ }];
3217
+ readonly state_mutability: "view";
3218
+ }, {
3219
+ readonly type: "function";
3220
+ readonly name: "get_collection";
3221
+ readonly inputs: readonly [{
3222
+ readonly name: "collection_id";
3223
+ readonly type: "core::integer::u256";
3224
+ }];
3225
+ readonly outputs: readonly [{
3226
+ readonly type: "ip_collection_erc_721::types::Collection";
3227
+ }];
3228
+ readonly state_mutability: "view";
3229
+ }, {
3230
+ readonly type: "function";
3231
+ readonly name: "get_collection_count";
3232
+ readonly inputs: readonly [];
3233
+ readonly outputs: readonly [{
3234
+ readonly type: "core::integer::u256";
3235
+ }];
3236
+ readonly state_mutability: "view";
3237
+ }, {
3238
+ readonly type: "function";
3239
+ readonly name: "is_valid_collection";
3240
+ readonly inputs: readonly [{
3241
+ readonly name: "collection_id";
3242
+ readonly type: "core::integer::u256";
3243
+ }];
3244
+ readonly outputs: readonly [{
3245
+ readonly type: "core::bool";
3246
+ }];
3247
+ readonly state_mutability: "view";
3248
+ }, {
3249
+ readonly type: "function";
3250
+ readonly name: "get_collection_stats";
3251
+ readonly inputs: readonly [{
3252
+ readonly name: "collection_id";
3253
+ readonly type: "core::integer::u256";
3254
+ }];
3255
+ readonly outputs: readonly [{
3256
+ readonly type: "ip_collection_erc_721::types::CollectionStats";
3257
+ }];
3258
+ readonly state_mutability: "view";
3259
+ }, {
3260
+ readonly type: "function";
3261
+ readonly name: "is_collection_owner";
3262
+ readonly inputs: readonly [{
3263
+ readonly name: "collection_id";
3264
+ readonly type: "core::integer::u256";
3265
+ }, {
3266
+ readonly name: "owner";
3267
+ readonly type: "core::starknet::contract_address::ContractAddress";
3268
+ }];
3269
+ readonly outputs: readonly [{
3270
+ readonly type: "core::bool";
3271
+ }];
3272
+ readonly state_mutability: "view";
3273
+ }, {
3274
+ readonly type: "function";
3275
+ readonly name: "get_token";
3276
+ readonly inputs: readonly [{
3277
+ readonly name: "token";
3278
+ readonly type: "core::byte_array::ByteArray";
3279
+ }];
3280
+ readonly outputs: readonly [{
3281
+ readonly type: "ip_collection_erc_721::types::TokenData";
3282
+ }];
3283
+ readonly state_mutability: "view";
3284
+ }, {
3285
+ readonly type: "function";
3286
+ readonly name: "is_valid_token";
3287
+ readonly inputs: readonly [{
3288
+ readonly name: "token";
3289
+ readonly type: "core::byte_array::ByteArray";
3290
+ }];
3291
+ readonly outputs: readonly [{
3292
+ readonly type: "core::bool";
3293
+ }];
3294
+ readonly state_mutability: "view";
3295
+ }, {
3296
+ readonly type: "function";
3297
+ readonly name: "is_transferable_token";
3298
+ readonly inputs: readonly [{
3299
+ readonly name: "token";
3300
+ readonly type: "core::byte_array::ByteArray";
3301
+ }];
3302
+ readonly outputs: readonly [{
3303
+ readonly type: "core::bool";
3304
+ }];
3305
+ readonly state_mutability: "view";
3306
+ }];
3307
+ }, {
3308
+ readonly type: "constructor";
3309
+ readonly name: "constructor";
3310
+ readonly inputs: readonly [{
3311
+ readonly name: "ip_nft_class_hash";
3312
+ readonly type: "core::starknet::class_hash::ClassHash";
3313
+ }];
3314
+ }, {
3315
+ readonly type: "event";
3316
+ readonly name: "ip_collection_erc_721::IPCollection::IPCollection::CollectionCreated";
3317
+ readonly kind: "struct";
3318
+ readonly members: readonly [{
3319
+ readonly name: "collection_id";
3320
+ readonly type: "core::integer::u256";
3321
+ readonly kind: "key";
3322
+ }, {
3323
+ readonly name: "owner";
3324
+ readonly type: "core::starknet::contract_address::ContractAddress";
3325
+ readonly kind: "data";
3326
+ }, {
3327
+ readonly name: "name";
3328
+ readonly type: "core::byte_array::ByteArray";
3329
+ readonly kind: "data";
3330
+ }, {
3331
+ readonly name: "symbol";
3332
+ readonly type: "core::byte_array::ByteArray";
3333
+ readonly kind: "data";
3334
+ }, {
3335
+ readonly name: "base_uri";
3336
+ readonly type: "core::byte_array::ByteArray";
3337
+ readonly kind: "data";
3338
+ }];
3339
+ }, {
3340
+ readonly type: "event";
3341
+ readonly name: "ip_collection_erc_721::IPCollection::IPCollection::CollectionOwnershipTransferred";
3342
+ readonly kind: "struct";
3343
+ readonly members: readonly [{
3344
+ readonly name: "collection_id";
3345
+ readonly type: "core::integer::u256";
3346
+ readonly kind: "key";
3347
+ }, {
3348
+ readonly name: "previous_owner";
3349
+ readonly type: "core::starknet::contract_address::ContractAddress";
3350
+ readonly kind: "data";
3351
+ }, {
3352
+ readonly name: "new_owner";
3353
+ readonly type: "core::starknet::contract_address::ContractAddress";
3354
+ readonly kind: "data";
3355
+ }, {
3356
+ readonly name: "timestamp";
3357
+ readonly type: "core::integer::u64";
3358
+ readonly kind: "data";
3359
+ }];
3360
+ }, {
3361
+ readonly type: "event";
3362
+ readonly name: "ip_collection_erc_721::IPCollection::IPCollection::TokenMinted";
3363
+ readonly kind: "struct";
3364
+ readonly members: readonly [{
3365
+ readonly name: "collection_id";
3366
+ readonly type: "core::integer::u256";
3367
+ readonly kind: "key";
3368
+ }, {
3369
+ readonly name: "token_id";
3370
+ readonly type: "core::integer::u256";
3371
+ readonly kind: "key";
3372
+ }, {
3373
+ readonly name: "owner";
3374
+ readonly type: "core::starknet::contract_address::ContractAddress";
3375
+ readonly kind: "data";
3376
+ }, {
3377
+ readonly name: "metadata_uri";
3378
+ readonly type: "core::byte_array::ByteArray";
3379
+ readonly kind: "data";
3380
+ }];
3381
+ }, {
3382
+ readonly type: "event";
3383
+ readonly name: "ip_collection_erc_721::IPCollection::IPCollection::TokenMintedBatch";
3384
+ readonly kind: "struct";
3385
+ readonly members: readonly [{
3386
+ readonly name: "collection_id";
3387
+ readonly type: "core::integer::u256";
3388
+ readonly kind: "key";
3389
+ }, {
3390
+ readonly name: "token_ids";
3391
+ readonly type: "core::array::Span::<core::integer::u256>";
3392
+ readonly kind: "data";
3393
+ }, {
3394
+ readonly name: "owners";
3395
+ readonly type: "core::array::Array::<core::starknet::contract_address::ContractAddress>";
3396
+ readonly kind: "data";
3397
+ }, {
3398
+ readonly name: "operator";
3399
+ readonly type: "core::starknet::contract_address::ContractAddress";
3400
+ readonly kind: "data";
3401
+ }, {
3402
+ readonly name: "timestamp";
3403
+ readonly type: "core::integer::u64";
3404
+ readonly kind: "data";
3405
+ }];
3406
+ }, {
3407
+ readonly type: "event";
3408
+ readonly name: "ip_collection_erc_721::IPCollection::IPCollection::TokenArchived";
3409
+ readonly kind: "struct";
3410
+ readonly members: readonly [{
3411
+ readonly name: "collection_id";
3412
+ readonly type: "core::integer::u256";
3413
+ readonly kind: "key";
3414
+ }, {
3415
+ readonly name: "token_id";
3416
+ readonly type: "core::integer::u256";
3417
+ readonly kind: "key";
3418
+ }, {
3419
+ readonly name: "operator";
3420
+ readonly type: "core::starknet::contract_address::ContractAddress";
3421
+ readonly kind: "data";
3422
+ }, {
3423
+ readonly name: "timestamp";
3424
+ readonly type: "core::integer::u64";
3425
+ readonly kind: "data";
3426
+ }];
3427
+ }, {
3428
+ readonly type: "event";
3429
+ readonly name: "ip_collection_erc_721::IPCollection::IPCollection::TokenArchivedBatch";
3430
+ readonly kind: "struct";
3431
+ readonly members: readonly [{
3432
+ readonly name: "tokens";
3433
+ readonly type: "core::array::Array::<core::byte_array::ByteArray>";
3434
+ readonly kind: "data";
3435
+ }, {
3436
+ readonly name: "operator";
3437
+ readonly type: "core::starknet::contract_address::ContractAddress";
3438
+ readonly kind: "data";
3439
+ }, {
3440
+ readonly name: "timestamp";
3441
+ readonly type: "core::integer::u64";
3442
+ readonly kind: "data";
3443
+ }];
3444
+ }, {
3445
+ readonly type: "event";
3446
+ readonly name: "ip_collection_erc_721::IPCollection::IPCollection::TokenTransferred";
3447
+ readonly kind: "struct";
3448
+ readonly members: readonly [{
3449
+ readonly name: "collection_id";
3450
+ readonly type: "core::integer::u256";
3451
+ readonly kind: "key";
3452
+ }, {
3453
+ readonly name: "token_id";
3454
+ readonly type: "core::integer::u256";
3455
+ readonly kind: "key";
3456
+ }, {
3457
+ readonly name: "from";
3458
+ readonly type: "core::starknet::contract_address::ContractAddress";
3459
+ readonly kind: "data";
3460
+ }, {
3461
+ readonly name: "to";
3462
+ readonly type: "core::starknet::contract_address::ContractAddress";
3463
+ readonly kind: "data";
3464
+ }, {
3465
+ readonly name: "operator";
3466
+ readonly type: "core::starknet::contract_address::ContractAddress";
3467
+ readonly kind: "data";
3468
+ }, {
3469
+ readonly name: "timestamp";
3470
+ readonly type: "core::integer::u64";
3471
+ readonly kind: "data";
3472
+ }];
3473
+ }, {
3474
+ readonly type: "event";
3475
+ readonly name: "ip_collection_erc_721::IPCollection::IPCollection::TokenTransferredBatch";
3476
+ readonly kind: "struct";
3477
+ readonly members: readonly [{
3478
+ readonly name: "from";
3479
+ readonly type: "core::starknet::contract_address::ContractAddress";
3480
+ readonly kind: "data";
3481
+ }, {
3482
+ readonly name: "to";
3483
+ readonly type: "core::starknet::contract_address::ContractAddress";
3484
+ readonly kind: "data";
3485
+ }, {
3486
+ readonly name: "tokens";
3487
+ readonly type: "core::array::Array::<core::byte_array::ByteArray>";
3488
+ readonly kind: "data";
3489
+ }, {
3490
+ readonly name: "operator";
3491
+ readonly type: "core::starknet::contract_address::ContractAddress";
3492
+ readonly kind: "data";
3493
+ }, {
3494
+ readonly name: "timestamp";
3495
+ readonly type: "core::integer::u64";
3496
+ readonly kind: "data";
3497
+ }];
3498
+ }, {
3499
+ readonly type: "event";
3500
+ readonly name: "ip_collection_erc_721::IPCollection::IPCollection::Event";
3501
+ readonly kind: "enum";
3502
+ readonly variants: readonly [{
3503
+ readonly name: "CollectionCreated";
3504
+ readonly type: "ip_collection_erc_721::IPCollection::IPCollection::CollectionCreated";
3505
+ readonly kind: "nested";
3506
+ }, {
3507
+ readonly name: "CollectionOwnershipTransferred";
3508
+ readonly type: "ip_collection_erc_721::IPCollection::IPCollection::CollectionOwnershipTransferred";
3509
+ readonly kind: "nested";
3510
+ }, {
3511
+ readonly name: "TokenMinted";
3512
+ readonly type: "ip_collection_erc_721::IPCollection::IPCollection::TokenMinted";
3513
+ readonly kind: "nested";
3514
+ }, {
3515
+ readonly name: "TokenMintedBatch";
3516
+ readonly type: "ip_collection_erc_721::IPCollection::IPCollection::TokenMintedBatch";
3517
+ readonly kind: "nested";
3518
+ }, {
3519
+ readonly name: "TokenArchived";
3520
+ readonly type: "ip_collection_erc_721::IPCollection::IPCollection::TokenArchived";
3521
+ readonly kind: "nested";
3522
+ }, {
3523
+ readonly name: "TokenArchivedBatch";
3524
+ readonly type: "ip_collection_erc_721::IPCollection::IPCollection::TokenArchivedBatch";
3525
+ readonly kind: "nested";
3526
+ }, {
3527
+ readonly name: "TokenTransferred";
3528
+ readonly type: "ip_collection_erc_721::IPCollection::IPCollection::TokenTransferred";
3529
+ readonly kind: "nested";
3530
+ }, {
3531
+ readonly name: "TokenTransferredBatch";
3532
+ readonly type: "ip_collection_erc_721::IPCollection::IPCollection::TokenTransferredBatch";
3533
+ readonly kind: "nested";
3534
+ }];
3535
+ }];
3536
+ declare const IPNftABI: readonly [{
3537
+ readonly type: "impl";
3538
+ readonly name: "ERC721Metadata";
3539
+ readonly interface_name: "openzeppelin_token::erc721::interface::IERC721Metadata";
3540
+ }, {
3541
+ readonly type: "struct";
3542
+ readonly name: "core::byte_array::ByteArray";
3543
+ readonly members: readonly [{
3544
+ readonly name: "data";
3545
+ readonly type: "core::array::Array::<core::bytes_31::bytes31>";
3546
+ }, {
3547
+ readonly name: "pending_word";
3548
+ readonly type: "core::felt252";
3549
+ }, {
3550
+ readonly name: "pending_word_len";
3551
+ readonly type: "core::internal::bounded_int::BoundedInt::<0, 30>";
3552
+ }];
3553
+ }, {
3554
+ readonly type: "struct";
3555
+ readonly name: "core::integer::u256";
3556
+ readonly members: readonly [{
3557
+ readonly name: "low";
3558
+ readonly type: "core::integer::u128";
3559
+ }, {
3560
+ readonly name: "high";
3561
+ readonly type: "core::integer::u128";
3562
+ }];
3563
+ }, {
3564
+ readonly type: "interface";
3565
+ readonly name: "openzeppelin_token::erc721::interface::IERC721Metadata";
3566
+ readonly items: readonly [{
3567
+ readonly type: "function";
3568
+ readonly name: "name";
3569
+ readonly inputs: readonly [];
3570
+ readonly outputs: readonly [{
3571
+ readonly type: "core::byte_array::ByteArray";
3572
+ }];
3573
+ readonly state_mutability: "view";
3574
+ }, {
3575
+ readonly type: "function";
3576
+ readonly name: "symbol";
3577
+ readonly inputs: readonly [];
3578
+ readonly outputs: readonly [{
3579
+ readonly type: "core::byte_array::ByteArray";
3580
+ }];
3581
+ readonly state_mutability: "view";
3582
+ }, {
3583
+ readonly type: "function";
3584
+ readonly name: "token_uri";
3585
+ readonly inputs: readonly [{
3586
+ readonly name: "token_id";
3587
+ readonly type: "core::integer::u256";
3588
+ }];
3589
+ readonly outputs: readonly [{
3590
+ readonly type: "core::byte_array::ByteArray";
3591
+ }];
3592
+ readonly state_mutability: "view";
3593
+ }];
3594
+ }, {
3595
+ readonly type: "impl";
3596
+ readonly name: "ERC721MetadataCamelOnly";
3597
+ readonly interface_name: "openzeppelin_token::erc721::interface::IERC721MetadataCamelOnly";
3598
+ }, {
3599
+ readonly type: "interface";
3600
+ readonly name: "openzeppelin_token::erc721::interface::IERC721MetadataCamelOnly";
3601
+ readonly items: readonly [{
3602
+ readonly type: "function";
3603
+ readonly name: "tokenURI";
3604
+ readonly inputs: readonly [{
3605
+ readonly name: "tokenId";
3606
+ readonly type: "core::integer::u256";
3607
+ }];
3608
+ readonly outputs: readonly [{
3609
+ readonly type: "core::byte_array::ByteArray";
3610
+ }];
3611
+ readonly state_mutability: "view";
3612
+ }];
3613
+ }, {
3614
+ readonly type: "impl";
3615
+ readonly name: "IPNftImpl";
3616
+ readonly interface_name: "ip_collection_erc_721::interfaces::IIPNFT::IIPNft";
3617
+ }, {
3618
+ readonly type: "enum";
3619
+ readonly name: "core::bool";
3620
+ readonly variants: readonly [{
3621
+ readonly name: "False";
3622
+ readonly type: "()";
3623
+ }, {
3624
+ readonly name: "True";
3625
+ readonly type: "()";
3626
+ }];
3627
+ }, {
3628
+ readonly type: "struct";
3629
+ readonly name: "core::array::Span::<core::integer::u256>";
3630
+ readonly members: readonly [{
3631
+ readonly name: "snapshot";
3632
+ readonly type: "@core::array::Array::<core::integer::u256>";
3633
+ }];
3634
+ }, {
3635
+ readonly type: "interface";
3636
+ readonly name: "ip_collection_erc_721::interfaces::IIPNFT::IIPNft";
3637
+ readonly items: readonly [{
3638
+ readonly type: "function";
3639
+ readonly name: "mint";
3640
+ readonly inputs: readonly [{
3641
+ readonly name: "recipient";
3642
+ readonly type: "core::starknet::contract_address::ContractAddress";
3643
+ }, {
3644
+ readonly name: "token_id";
3645
+ readonly type: "core::integer::u256";
3646
+ }, {
3647
+ readonly name: "token_uri";
3648
+ readonly type: "core::byte_array::ByteArray";
3649
+ }];
3650
+ readonly outputs: readonly [];
3651
+ readonly state_mutability: "external";
3652
+ }, {
3653
+ readonly type: "function";
3654
+ readonly name: "archive";
3655
+ readonly inputs: readonly [{
3656
+ readonly name: "token_id";
3657
+ readonly type: "core::integer::u256";
3658
+ }];
3659
+ readonly outputs: readonly [];
3660
+ readonly state_mutability: "external";
3661
+ }, {
3662
+ readonly type: "function";
3663
+ readonly name: "is_archived";
3664
+ readonly inputs: readonly [{
3665
+ readonly name: "token_id";
3666
+ readonly type: "core::integer::u256";
3667
+ }];
3668
+ readonly outputs: readonly [{
3669
+ readonly type: "core::bool";
3670
+ }];
3671
+ readonly state_mutability: "view";
3672
+ }, {
3673
+ readonly type: "function";
3674
+ readonly name: "get_collection_id";
3675
+ readonly inputs: readonly [];
3676
+ readonly outputs: readonly [{
3677
+ readonly type: "core::integer::u256";
3678
+ }];
3679
+ readonly state_mutability: "view";
3680
+ }, {
3681
+ readonly type: "function";
3682
+ readonly name: "get_registry";
3683
+ readonly inputs: readonly [];
3684
+ readonly outputs: readonly [{
3685
+ readonly type: "core::starknet::contract_address::ContractAddress";
3686
+ }];
3687
+ readonly state_mutability: "view";
3688
+ }, {
3689
+ readonly type: "function";
3690
+ readonly name: "base_uri";
3691
+ readonly inputs: readonly [];
3692
+ readonly outputs: readonly [{
3693
+ readonly type: "core::byte_array::ByteArray";
3694
+ }];
3695
+ readonly state_mutability: "view";
3696
+ }, {
3697
+ readonly type: "function";
3698
+ readonly name: "all_tokens_of_owner";
3699
+ readonly inputs: readonly [{
3700
+ readonly name: "owner";
3701
+ readonly type: "core::starknet::contract_address::ContractAddress";
3702
+ }];
3703
+ readonly outputs: readonly [{
3704
+ readonly type: "core::array::Span::<core::integer::u256>";
3705
+ }];
3706
+ readonly state_mutability: "view";
3707
+ }, {
3708
+ readonly type: "function";
3709
+ readonly name: "token_exists";
3710
+ readonly inputs: readonly [{
3711
+ readonly name: "token_id";
3712
+ readonly type: "core::integer::u256";
3713
+ }];
3714
+ readonly outputs: readonly [{
3715
+ readonly type: "core::bool";
3716
+ }];
3717
+ readonly state_mutability: "view";
3718
+ }, {
3719
+ readonly type: "function";
3720
+ readonly name: "get_full_token_data";
3721
+ readonly inputs: readonly [{
3722
+ readonly name: "token_id";
3723
+ readonly type: "core::integer::u256";
3724
+ }];
3725
+ readonly outputs: readonly [{
3726
+ readonly type: "(core::starknet::contract_address::ContractAddress, core::byte_array::ByteArray, core::starknet::contract_address::ContractAddress, core::integer::u64)";
3727
+ }];
3728
+ readonly state_mutability: "view";
3729
+ }, {
3730
+ readonly type: "function";
3731
+ readonly name: "get_token_creator";
3732
+ readonly inputs: readonly [{
3733
+ readonly name: "token_id";
3734
+ readonly type: "core::integer::u256";
3735
+ }];
3736
+ readonly outputs: readonly [{
3737
+ readonly type: "core::starknet::contract_address::ContractAddress";
3738
+ }];
3739
+ readonly state_mutability: "view";
3740
+ }, {
3741
+ readonly type: "function";
3742
+ readonly name: "get_token_registered_at";
3743
+ readonly inputs: readonly [{
3744
+ readonly name: "token_id";
3745
+ readonly type: "core::integer::u256";
3746
+ }];
3747
+ readonly outputs: readonly [{
3748
+ readonly type: "core::integer::u64";
3749
+ }];
3750
+ readonly state_mutability: "view";
3751
+ }];
3752
+ }, {
3753
+ readonly type: "impl";
3754
+ readonly name: "ERC721Impl";
3755
+ readonly interface_name: "openzeppelin_token::erc721::interface::IERC721";
3756
+ }, {
3757
+ readonly type: "struct";
3758
+ readonly name: "core::array::Span::<core::felt252>";
3759
+ readonly members: readonly [{
3760
+ readonly name: "snapshot";
3761
+ readonly type: "@core::array::Array::<core::felt252>";
3762
+ }];
3763
+ }, {
3764
+ readonly type: "interface";
3765
+ readonly name: "openzeppelin_token::erc721::interface::IERC721";
3766
+ readonly items: readonly [{
3767
+ readonly type: "function";
3768
+ readonly name: "balance_of";
3769
+ readonly inputs: readonly [{
3770
+ readonly name: "account";
3771
+ readonly type: "core::starknet::contract_address::ContractAddress";
3772
+ }];
3773
+ readonly outputs: readonly [{
3774
+ readonly type: "core::integer::u256";
3775
+ }];
3776
+ readonly state_mutability: "view";
3777
+ }, {
3778
+ readonly type: "function";
3779
+ readonly name: "owner_of";
3780
+ readonly inputs: readonly [{
3781
+ readonly name: "token_id";
3782
+ readonly type: "core::integer::u256";
3783
+ }];
3784
+ readonly outputs: readonly [{
3785
+ readonly type: "core::starknet::contract_address::ContractAddress";
3786
+ }];
3787
+ readonly state_mutability: "view";
3788
+ }, {
3789
+ readonly type: "function";
3790
+ readonly name: "safe_transfer_from";
3791
+ readonly inputs: readonly [{
3792
+ readonly name: "from";
3793
+ readonly type: "core::starknet::contract_address::ContractAddress";
3794
+ }, {
3795
+ readonly name: "to";
3796
+ readonly type: "core::starknet::contract_address::ContractAddress";
3797
+ }, {
3798
+ readonly name: "token_id";
3799
+ readonly type: "core::integer::u256";
3800
+ }, {
3801
+ readonly name: "data";
3802
+ readonly type: "core::array::Span::<core::felt252>";
3803
+ }];
3804
+ readonly outputs: readonly [];
3805
+ readonly state_mutability: "external";
3806
+ }, {
3807
+ readonly type: "function";
3808
+ readonly name: "transfer_from";
3809
+ readonly inputs: readonly [{
3810
+ readonly name: "from";
3811
+ readonly type: "core::starknet::contract_address::ContractAddress";
3812
+ }, {
3813
+ readonly name: "to";
3814
+ readonly type: "core::starknet::contract_address::ContractAddress";
3815
+ }, {
3816
+ readonly name: "token_id";
3817
+ readonly type: "core::integer::u256";
3818
+ }];
3819
+ readonly outputs: readonly [];
3820
+ readonly state_mutability: "external";
3821
+ }, {
3822
+ readonly type: "function";
3823
+ readonly name: "approve";
3824
+ readonly inputs: readonly [{
3825
+ readonly name: "to";
3826
+ readonly type: "core::starknet::contract_address::ContractAddress";
3827
+ }, {
3828
+ readonly name: "token_id";
3829
+ readonly type: "core::integer::u256";
3830
+ }];
3831
+ readonly outputs: readonly [];
3832
+ readonly state_mutability: "external";
3833
+ }, {
3834
+ readonly type: "function";
3835
+ readonly name: "set_approval_for_all";
3836
+ readonly inputs: readonly [{
3837
+ readonly name: "operator";
3838
+ readonly type: "core::starknet::contract_address::ContractAddress";
3839
+ }, {
3840
+ readonly name: "approved";
3841
+ readonly type: "core::bool";
3842
+ }];
3843
+ readonly outputs: readonly [];
3844
+ readonly state_mutability: "external";
3845
+ }, {
3846
+ readonly type: "function";
3847
+ readonly name: "get_approved";
3848
+ readonly inputs: readonly [{
3849
+ readonly name: "token_id";
3850
+ readonly type: "core::integer::u256";
3851
+ }];
3852
+ readonly outputs: readonly [{
3853
+ readonly type: "core::starknet::contract_address::ContractAddress";
3854
+ }];
3855
+ readonly state_mutability: "view";
3856
+ }, {
3857
+ readonly type: "function";
3858
+ readonly name: "is_approved_for_all";
3859
+ readonly inputs: readonly [{
3860
+ readonly name: "owner";
3861
+ readonly type: "core::starknet::contract_address::ContractAddress";
3862
+ }, {
3863
+ readonly name: "operator";
3864
+ readonly type: "core::starknet::contract_address::ContractAddress";
3865
+ }];
3866
+ readonly outputs: readonly [{
3867
+ readonly type: "core::bool";
3868
+ }];
3869
+ readonly state_mutability: "view";
3870
+ }];
3871
+ }, {
3872
+ readonly type: "impl";
3873
+ readonly name: "ERC721CamelOnly";
3874
+ readonly interface_name: "openzeppelin_token::erc721::interface::IERC721CamelOnly";
3875
+ }, {
3876
+ readonly type: "interface";
3877
+ readonly name: "openzeppelin_token::erc721::interface::IERC721CamelOnly";
3878
+ readonly items: readonly [{
3879
+ readonly type: "function";
3880
+ readonly name: "balanceOf";
3881
+ readonly inputs: readonly [{
3882
+ readonly name: "account";
3883
+ readonly type: "core::starknet::contract_address::ContractAddress";
3884
+ }];
3885
+ readonly outputs: readonly [{
3886
+ readonly type: "core::integer::u256";
3887
+ }];
3888
+ readonly state_mutability: "view";
3889
+ }, {
3890
+ readonly type: "function";
3891
+ readonly name: "ownerOf";
3892
+ readonly inputs: readonly [{
3893
+ readonly name: "tokenId";
3894
+ readonly type: "core::integer::u256";
3895
+ }];
3896
+ readonly outputs: readonly [{
3897
+ readonly type: "core::starknet::contract_address::ContractAddress";
3898
+ }];
3899
+ readonly state_mutability: "view";
3900
+ }, {
3901
+ readonly type: "function";
3902
+ readonly name: "safeTransferFrom";
3903
+ readonly inputs: readonly [{
3904
+ readonly name: "from";
3905
+ readonly type: "core::starknet::contract_address::ContractAddress";
3906
+ }, {
3907
+ readonly name: "to";
3908
+ readonly type: "core::starknet::contract_address::ContractAddress";
3909
+ }, {
3910
+ readonly name: "tokenId";
3911
+ readonly type: "core::integer::u256";
3912
+ }, {
3913
+ readonly name: "data";
3914
+ readonly type: "core::array::Span::<core::felt252>";
3915
+ }];
3916
+ readonly outputs: readonly [];
3917
+ readonly state_mutability: "external";
3918
+ }, {
3919
+ readonly type: "function";
3920
+ readonly name: "transferFrom";
3921
+ readonly inputs: readonly [{
3922
+ readonly name: "from";
3923
+ readonly type: "core::starknet::contract_address::ContractAddress";
3924
+ }, {
3925
+ readonly name: "to";
3926
+ readonly type: "core::starknet::contract_address::ContractAddress";
3927
+ }, {
3928
+ readonly name: "tokenId";
3929
+ readonly type: "core::integer::u256";
3930
+ }];
3931
+ readonly outputs: readonly [];
3932
+ readonly state_mutability: "external";
3933
+ }, {
3934
+ readonly type: "function";
3935
+ readonly name: "setApprovalForAll";
3936
+ readonly inputs: readonly [{
3937
+ readonly name: "operator";
3938
+ readonly type: "core::starknet::contract_address::ContractAddress";
3939
+ }, {
3940
+ readonly name: "approved";
3941
+ readonly type: "core::bool";
3942
+ }];
3943
+ readonly outputs: readonly [];
3944
+ readonly state_mutability: "external";
3945
+ }, {
3946
+ readonly type: "function";
3947
+ readonly name: "getApproved";
3948
+ readonly inputs: readonly [{
3949
+ readonly name: "tokenId";
3950
+ readonly type: "core::integer::u256";
3951
+ }];
3952
+ readonly outputs: readonly [{
3953
+ readonly type: "core::starknet::contract_address::ContractAddress";
3954
+ }];
3955
+ readonly state_mutability: "view";
3956
+ }, {
3957
+ readonly type: "function";
3958
+ readonly name: "isApprovedForAll";
3959
+ readonly inputs: readonly [{
3960
+ readonly name: "owner";
3961
+ readonly type: "core::starknet::contract_address::ContractAddress";
3962
+ }, {
3963
+ readonly name: "operator";
3964
+ readonly type: "core::starknet::contract_address::ContractAddress";
3965
+ }];
3966
+ readonly outputs: readonly [{
3967
+ readonly type: "core::bool";
3968
+ }];
3969
+ readonly state_mutability: "view";
3970
+ }];
3971
+ }, {
3972
+ readonly type: "impl";
3973
+ readonly name: "ERC721EnumerableImpl";
3974
+ readonly interface_name: "openzeppelin_token::erc721::extensions::erc721_enumerable::interface::IERC721Enumerable";
3975
+ }, {
3976
+ readonly type: "interface";
3977
+ readonly name: "openzeppelin_token::erc721::extensions::erc721_enumerable::interface::IERC721Enumerable";
3978
+ readonly items: readonly [{
3979
+ readonly type: "function";
3980
+ readonly name: "total_supply";
3981
+ readonly inputs: readonly [];
3982
+ readonly outputs: readonly [{
3983
+ readonly type: "core::integer::u256";
3984
+ }];
3985
+ readonly state_mutability: "view";
3986
+ }, {
3987
+ readonly type: "function";
3988
+ readonly name: "token_by_index";
3989
+ readonly inputs: readonly [{
3990
+ readonly name: "index";
3991
+ readonly type: "core::integer::u256";
3992
+ }];
3993
+ readonly outputs: readonly [{
3994
+ readonly type: "core::integer::u256";
3995
+ }];
3996
+ readonly state_mutability: "view";
3997
+ }, {
3998
+ readonly type: "function";
3999
+ readonly name: "token_of_owner_by_index";
4000
+ readonly inputs: readonly [{
4001
+ readonly name: "owner";
4002
+ readonly type: "core::starknet::contract_address::ContractAddress";
4003
+ }, {
4004
+ readonly name: "index";
4005
+ readonly type: "core::integer::u256";
4006
+ }];
4007
+ readonly outputs: readonly [{
4008
+ readonly type: "core::integer::u256";
4009
+ }];
4010
+ readonly state_mutability: "view";
4011
+ }];
4012
+ }, {
4013
+ readonly type: "impl";
4014
+ readonly name: "SRC5Impl";
4015
+ readonly interface_name: "openzeppelin_introspection::interface::ISRC5";
4016
+ }, {
4017
+ readonly type: "interface";
4018
+ readonly name: "openzeppelin_introspection::interface::ISRC5";
4019
+ readonly items: readonly [{
4020
+ readonly type: "function";
4021
+ readonly name: "supports_interface";
4022
+ readonly inputs: readonly [{
4023
+ readonly name: "interface_id";
4024
+ readonly type: "core::felt252";
4025
+ }];
4026
+ readonly outputs: readonly [{
4027
+ readonly type: "core::bool";
4028
+ }];
4029
+ readonly state_mutability: "view";
4030
+ }];
4031
+ }, {
4032
+ readonly type: "constructor";
4033
+ readonly name: "constructor";
4034
+ readonly inputs: readonly [{
4035
+ readonly name: "name";
4036
+ readonly type: "core::byte_array::ByteArray";
4037
+ }, {
4038
+ readonly name: "symbol";
4039
+ readonly type: "core::byte_array::ByteArray";
4040
+ }, {
4041
+ readonly name: "base_uri";
4042
+ readonly type: "core::byte_array::ByteArray";
4043
+ }, {
4044
+ readonly name: "collection_id";
4045
+ readonly type: "core::integer::u256";
4046
+ }, {
4047
+ readonly name: "registry";
4048
+ readonly type: "core::starknet::contract_address::ContractAddress";
4049
+ }];
4050
+ }, {
4051
+ readonly type: "event";
4052
+ readonly name: "openzeppelin_token::erc721::erc721::ERC721Component::Transfer";
4053
+ readonly kind: "struct";
4054
+ readonly members: readonly [{
4055
+ readonly name: "from";
4056
+ readonly type: "core::starknet::contract_address::ContractAddress";
4057
+ readonly kind: "key";
4058
+ }, {
4059
+ readonly name: "to";
4060
+ readonly type: "core::starknet::contract_address::ContractAddress";
4061
+ readonly kind: "key";
4062
+ }, {
4063
+ readonly name: "token_id";
4064
+ readonly type: "core::integer::u256";
4065
+ readonly kind: "key";
4066
+ }];
4067
+ }, {
4068
+ readonly type: "event";
4069
+ readonly name: "openzeppelin_token::erc721::erc721::ERC721Component::Approval";
4070
+ readonly kind: "struct";
4071
+ readonly members: readonly [{
4072
+ readonly name: "owner";
4073
+ readonly type: "core::starknet::contract_address::ContractAddress";
4074
+ readonly kind: "key";
4075
+ }, {
4076
+ readonly name: "approved";
4077
+ readonly type: "core::starknet::contract_address::ContractAddress";
4078
+ readonly kind: "key";
4079
+ }, {
4080
+ readonly name: "token_id";
4081
+ readonly type: "core::integer::u256";
4082
+ readonly kind: "key";
4083
+ }];
4084
+ }, {
4085
+ readonly type: "event";
4086
+ readonly name: "openzeppelin_token::erc721::erc721::ERC721Component::ApprovalForAll";
4087
+ readonly kind: "struct";
4088
+ readonly members: readonly [{
4089
+ readonly name: "owner";
4090
+ readonly type: "core::starknet::contract_address::ContractAddress";
4091
+ readonly kind: "key";
4092
+ }, {
4093
+ readonly name: "operator";
4094
+ readonly type: "core::starknet::contract_address::ContractAddress";
4095
+ readonly kind: "key";
4096
+ }, {
4097
+ readonly name: "approved";
4098
+ readonly type: "core::bool";
4099
+ readonly kind: "data";
4100
+ }];
4101
+ }, {
4102
+ readonly type: "event";
4103
+ readonly name: "openzeppelin_token::erc721::erc721::ERC721Component::Event";
4104
+ readonly kind: "enum";
4105
+ readonly variants: readonly [{
4106
+ readonly name: "Transfer";
4107
+ readonly type: "openzeppelin_token::erc721::erc721::ERC721Component::Transfer";
4108
+ readonly kind: "nested";
4109
+ }, {
4110
+ readonly name: "Approval";
4111
+ readonly type: "openzeppelin_token::erc721::erc721::ERC721Component::Approval";
4112
+ readonly kind: "nested";
4113
+ }, {
4114
+ readonly name: "ApprovalForAll";
4115
+ readonly type: "openzeppelin_token::erc721::erc721::ERC721Component::ApprovalForAll";
4116
+ readonly kind: "nested";
4117
+ }];
4118
+ }, {
4119
+ readonly type: "event";
4120
+ readonly name: "openzeppelin_introspection::src5::SRC5Component::Event";
4121
+ readonly kind: "enum";
4122
+ readonly variants: readonly [];
4123
+ }, {
4124
+ readonly type: "event";
4125
+ readonly name: "openzeppelin_token::erc721::extensions::erc721_enumerable::erc721_enumerable::ERC721EnumerableComponent::Event";
4126
+ readonly kind: "enum";
4127
+ readonly variants: readonly [];
4128
+ }, {
4129
+ readonly type: "event";
4130
+ readonly name: "ip_collection_erc_721::IPNft::IPNft::Event";
4131
+ readonly kind: "enum";
4132
+ readonly variants: readonly [{
4133
+ readonly name: "ERC721Event";
4134
+ readonly type: "openzeppelin_token::erc721::erc721::ERC721Component::Event";
4135
+ readonly kind: "flat";
4136
+ }, {
4137
+ readonly name: "SRC5Event";
4138
+ readonly type: "openzeppelin_introspection::src5::SRC5Component::Event";
4139
+ readonly kind: "flat";
4140
+ }, {
4141
+ readonly name: "ERC721EnumerableEvent";
4142
+ readonly type: "openzeppelin_token::erc721::extensions::erc721_enumerable::erc721_enumerable::ERC721EnumerableComponent::Event";
4143
+ readonly kind: "flat";
4144
+ }];
4145
+ }];
4146
+
4147
+ /** Lookup. Returns undefined for external/unknown (service: null) — callers
4148
+ * fall back to standard-based generic UI (01-core-model §I). */
4149
+ declare function getService(id: string | null | undefined): ServiceDefinition | undefined;
4150
+ /** All registered services (e.g. the launchpad grid). */
4151
+ declare function listServices(): ServiceDefinition[];
4152
+ /** Services that declare a capability (e.g. "where can users mint"). */
4153
+ declare function getServicesByCapability(cap: ServiceCapability): ServiceDefinition[];
2933
4154
 
2934
4155
  /**
2935
4156
  * Normalize a Starknet address to a 0x-prefixed 64-character hex string.
@@ -3021,4 +4242,4 @@ declare function build1155FulfillmentTypedData(message: Record<string, unknown>,
3021
4242
  */
3022
4243
  declare function build1155CancellationTypedData(message: Record<string, unknown>, chainId: constants.StarknetChainId): TypedData;
3023
4244
 
3024
- export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, ApiClient, type ApiCollection, type ApiCollectionClaim, type ApiCollectionProfile, type ApiCollectionSlugClaim, type ApiCollectionsQuery, type ApiComment, type ApiCounterOffersQuery, type ApiCreatorListResult, type ApiCreatorProfile, type ApiIntent, type ApiIntentCreated, type ApiKeyStatus, type ApiMeta, type ApiMetadataSignedUrl, type ApiMetadataUpload, type ApiOrder, type ApiOrderConsideration, type ApiOrderOffer, type ApiOrderPrice, type ApiOrderTokenMeta, type ApiOrderTxHash, type ApiOrdersQuery, type ApiPortalKey, type ApiPortalKeyCreated, type ApiPortalMe, type ApiPublicRemix, type ApiRemixOffer, type ApiRemixOfferPrice, type ApiRemixOffersQuery, type ApiResponse, type ApiSearchCollectionResult, type ApiSearchCreatorResult, type ApiSearchResult, type ApiSearchTokenResult, type ApiToken, type ApiTokenBalance, type ApiTokenMetadata, type ApiUsageDay, type ApiUserWallet, type ApiWebhookCreated, type ApiWebhookEndpoint, type AutoRemixOfferParams, type BatchMintItemParams, COLLECTION_1155_CLASS_HASH_MAINNET, COLLECTION_1155_CONTRACT_MAINNET, COLLECTION_721_CONTRACT_MAINNET, COLLECTION_CONTRACT_MAINNET, type CancelOrder1155Params, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type ClaimConditions, CollectionRegistryABI, type CollectionSort, type CollectionSource, type ConfirmRemixOfferParams, type ConfirmSelfRemixParams, type ConsiderationItem, type CreateCollectionIntentParams, type CreateCollectionParams, type CreateCounterOfferIntentParams, type CreateDropParams, type CreateListing1155Params, type CreateListingIntentParams, type CreateListingParams, type CreateMintIntentParams, type CreatePopCollectionParams, type CreateRemixOfferParams, type CreateWebhookParams, DEFAULT_RPC_URL, DROP_COLLECTION_CLASS_HASH_MAINNET, DROP_FACTORY_CONTRACT_MAINNET, type DeployCollectionParams, DropCollectionABI, DropFactoryABI, type DropMintStatus, DropService, ERC1155CollectionService, ERC1155_COLLECTION_CLASS_HASH_MAINNET, ERC1155_FACTORY_CONTRACT_MAINNET, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, INDEXER_START_BLOCK_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPMarketplaceABI, type IPType, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_1155_CLASS_HASH_MAINNET, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_1155_START_BLOCK_MAINNET, MARKETPLACE_721_CLASS_HASH_MAINNET, MARKETPLACE_721_CONTRACT_MAINNET, MARKETPLACE_721_START_BLOCK_MAINNET, MARKETPLACE_CLASS_HASH_MAINNET, MARKETPLACE_CONTRACT_MAINNET, MARKETPLACE_START_BLOCK_MAINNET, type MakeOffer1155Params, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintItemParams, type MintParams, NFTCOMMENTS_CONTRACT_MAINNET, type Network, OPEN_LICENSES, type OfferItem, type OpenLicense, type Order, type OrderDetails, type OrderParameters, type OrderStatus, POPCollectionABI, POPFactoryABI, POP_COLLECTION_CLASS_HASH_MAINNET, POP_FACTORY_CONTRACT_MAINNET, type PopBatchEligibilityItem, type PopClaimStatus, type PopEventType, PopService, type RemixOfferStatus, type ResolvedConfig, type RetryOptions, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, type SortOrder, type SupportedToken, type SupportedTokenSymbol, type TenantPlan, type TxResult, type WebhookEventType, type WebhookStatus, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFulfillmentTypedData, buildOrderTypedData, encodeByteArray, formatAmount, getListableTokens, getTokenByAddress, getTokenBySymbol, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };
4245
+ export { type ActivityType, type ApiActivitiesQuery, type ApiActivity, type ApiActivityPrice, type ApiAdminCollectionClaim, ApiClient, type ApiCollection, type ApiCollectionClaim, type ApiCollectionProfile, type ApiCollectionSlugClaim, type ApiCollectionsQuery, type ApiComment, type ApiCounterOffersQuery, type ApiCreatorListResult, type ApiCreatorProfile, type ApiIntent, type ApiIntentCreated, type ApiKeyStatus, type ApiMeta, type ApiMetadataSignedUrl, type ApiMetadataUpload, type ApiOrder, type ApiOrderConsideration, type ApiOrderOffer, type ApiOrderPrice, type ApiOrderTokenMeta, type ApiOrderTxHash, type ApiOrdersQuery, type ApiPortalKey, type ApiPortalKeyCreated, type ApiPortalMe, type ApiPublicRemix, type ApiRemixOffer, type ApiRemixOfferPrice, type ApiRemixOffersQuery, type ApiResponse, type ApiSearchCollectionResult, type ApiSearchCreatorResult, type ApiSearchResult, type ApiSearchTokenResult, type ApiToken, type ApiTokenBalance, type ApiTokenMetadata, type ApiUsageDay, type ApiUserWallet, type ApiWebhookCreated, type ApiWebhookEndpoint, type AutoRemixOfferParams, type BatchMintItemParams, COLLECTION_1155_CLASS_HASH_MAINNET, COLLECTION_1155_CONTRACT_MAINNET, COLLECTION_721_CONTRACT_MAINNET, COLLECTION_CONTRACT_MAINNET, type CancelOrder1155Params, type CancelOrderIntentParams, type CancelOrderParams, type Cancelation, type CartItem, type ClaimConditions, CollectionRegistryABI, type CollectionSort, type CollectionSource, type ConfirmRemixOfferParams, type ConfirmSelfRemixParams, type ConsiderationItem, type CreateCollectionIntentParams, type CreateCollectionParams, type CreateCounterOfferIntentParams, type CreateDropParams, type CreateListing1155Params, type CreateListingIntentParams, type CreateListingParams, type CreateMintIntentParams, type CreatePopCollectionParams, type CreateRemixOfferParams, type CreateWebhookParams, DEFAULT_RPC_URL, DROP_COLLECTION_CLASS_HASH_MAINNET, DROP_FACTORY_CONTRACT_MAINNET, type DeployCollectionParams, DropCollectionABI, DropFactoryABI, type DropMintStatus, DropService, ERC1155CollectionService, ERC1155_COLLECTION_CLASS_HASH_MAINNET, ERC1155_FACTORY_CONTRACT_MAINNET, type EnforcementDeclaration, type FulfillOrder1155Params, type FulfillOrderIntentParams, type FulfillOrderParams, type Fulfillment, INDEXER_START_BLOCK_MAINNET, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNftABI, type IPType, type IntentStatus, type IntentType, type IpAttribute, type IpNftMetadata, MARKETPLACE_1155_CLASS_HASH_MAINNET, MARKETPLACE_1155_CONTRACT_MAINNET, MARKETPLACE_1155_START_BLOCK_MAINNET, MARKETPLACE_721_CLASS_HASH_MAINNET, MARKETPLACE_721_CONTRACT_MAINNET, MARKETPLACE_721_START_BLOCK_MAINNET, MARKETPLACE_CLASS_HASH_MAINNET, MARKETPLACE_CONTRACT_MAINNET, MARKETPLACE_START_BLOCK_MAINNET, type MakeOffer1155Params, type MakeOfferIntentParams, type MakeOfferParams, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, type MedialaneConfig, MedialaneError, type MedialaneErrorCode, type MintItemParams, type MintParams, NFTCOMMENTS_CONTRACT_MAINNET, type Network, OPEN_LICENSES, type OfferItem, type OpenLicense, type Order, type OrderDetails, type OrderParameters, type OrderStatus, POPCollectionABI, POPFactoryABI, POP_COLLECTION_CLASS_HASH_MAINNET, POP_FACTORY_CONTRACT_MAINNET, type PopBatchEligibilityItem, type PopClaimStatus, type PopEventType, PopService, type RemixOfferStatus, type ResolvedConfig, type RetryOptions, SUPPORTED_NETWORKS, SUPPORTED_TOKENS, type ServiceCapability, type ServiceDefinition, type SortOrder, type SupportedToken, type SupportedTokenSymbol, type TenantPlan, type TxResult, type WebhookEventType, type WebhookStatus, build1155CancellationTypedData, build1155FulfillmentTypedData, build1155OrderTypedData, buildCancellationTypedData, buildFulfillmentTypedData, buildOrderTypedData, encodeByteArray, formatAmount, getListableTokens, getService, getServicesByCapability, getTokenByAddress, getTokenBySymbol, listServices, normalizeAddress, parseAmount, resolveConfig, shortenAddress, stringifyBigInts, u256ToBigInt };