@medialane/sdk 0.38.0 → 0.39.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 +192 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +150 -22
- package/dist/index.d.ts +150 -22
- package/dist/index.js +192 -28
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -260,6 +260,12 @@ interface MintParams {
|
|
|
260
260
|
collectionId: string;
|
|
261
261
|
recipient: string;
|
|
262
262
|
tokenUri: string;
|
|
263
|
+
/**
|
|
264
|
+
* EIP-2981 secondary-sale royalty in basis points (0–10_000). Set once at mint;
|
|
265
|
+
* the receiver is the immutable creator (the minting collection owner). Required
|
|
266
|
+
* since MIP v0.4.0 — pass 0 for no royalty.
|
|
267
|
+
*/
|
|
268
|
+
royaltyBps: number;
|
|
263
269
|
/** Optional: override the collection contract from config */
|
|
264
270
|
collectionContract?: string;
|
|
265
271
|
}
|
|
@@ -883,6 +889,11 @@ interface CreateMintIntentParams {
|
|
|
883
889
|
collectionId: string;
|
|
884
890
|
recipient: string;
|
|
885
891
|
tokenUri: string;
|
|
892
|
+
/**
|
|
893
|
+
* EIP-2981 secondary-sale royalty in basis points (0–10_000). Set once at mint;
|
|
894
|
+
* receiver is the immutable creator. Required since MIP v0.4.0 — pass 0 for none.
|
|
895
|
+
*/
|
|
896
|
+
royaltyBps: number;
|
|
886
897
|
/** Optional: override the default collection contract address */
|
|
887
898
|
collectionContract?: string;
|
|
888
899
|
}
|
|
@@ -4097,7 +4108,7 @@ declare const IPCollectionABI: readonly [{
|
|
|
4097
4108
|
readonly name: "total_archived";
|
|
4098
4109
|
readonly type: "core::integer::u256";
|
|
4099
4110
|
}, {
|
|
4100
|
-
readonly name: "
|
|
4111
|
+
readonly name: "protocol_routed_transfers";
|
|
4101
4112
|
readonly type: "core::integer::u256";
|
|
4102
4113
|
}, {
|
|
4103
4114
|
readonly name: "last_mint_time";
|
|
@@ -4163,6 +4174,9 @@ declare const IPCollectionABI: readonly [{
|
|
|
4163
4174
|
}, {
|
|
4164
4175
|
readonly name: "token_uri";
|
|
4165
4176
|
readonly type: "core::byte_array::ByteArray";
|
|
4177
|
+
}, {
|
|
4178
|
+
readonly name: "royalty_bps";
|
|
4179
|
+
readonly type: "core::integer::u128";
|
|
4166
4180
|
}];
|
|
4167
4181
|
readonly outputs: readonly [{
|
|
4168
4182
|
readonly type: "core::integer::u256";
|
|
@@ -4180,6 +4194,9 @@ declare const IPCollectionABI: readonly [{
|
|
|
4180
4194
|
}, {
|
|
4181
4195
|
readonly name: "token_uris";
|
|
4182
4196
|
readonly type: "core::array::Array::<core::byte_array::ByteArray>";
|
|
4197
|
+
}, {
|
|
4198
|
+
readonly name: "royalty_bps";
|
|
4199
|
+
readonly type: "core::array::Array::<core::integer::u128>";
|
|
4183
4200
|
}];
|
|
4184
4201
|
readonly outputs: readonly [{
|
|
4185
4202
|
readonly type: "core::array::Span::<core::integer::u256>";
|
|
@@ -4201,8 +4218,11 @@ declare const IPCollectionABI: readonly [{
|
|
|
4201
4218
|
readonly type: "function";
|
|
4202
4219
|
readonly name: "archive";
|
|
4203
4220
|
readonly inputs: readonly [{
|
|
4204
|
-
readonly name: "
|
|
4205
|
-
readonly type: "core::
|
|
4221
|
+
readonly name: "collection_id";
|
|
4222
|
+
readonly type: "core::integer::u256";
|
|
4223
|
+
}, {
|
|
4224
|
+
readonly name: "token_id";
|
|
4225
|
+
readonly type: "core::integer::u256";
|
|
4206
4226
|
}];
|
|
4207
4227
|
readonly outputs: readonly [];
|
|
4208
4228
|
readonly state_mutability: "external";
|
|
@@ -4210,8 +4230,11 @@ declare const IPCollectionABI: readonly [{
|
|
|
4210
4230
|
readonly type: "function";
|
|
4211
4231
|
readonly name: "batch_archive";
|
|
4212
4232
|
readonly inputs: readonly [{
|
|
4213
|
-
readonly name: "
|
|
4214
|
-
readonly type: "core::array::Array::<core::
|
|
4233
|
+
readonly name: "collection_ids";
|
|
4234
|
+
readonly type: "core::array::Array::<core::integer::u256>";
|
|
4235
|
+
}, {
|
|
4236
|
+
readonly name: "token_ids";
|
|
4237
|
+
readonly type: "core::array::Array::<core::integer::u256>";
|
|
4215
4238
|
}];
|
|
4216
4239
|
readonly outputs: readonly [];
|
|
4217
4240
|
readonly state_mutability: "external";
|
|
@@ -4219,14 +4242,14 @@ declare const IPCollectionABI: readonly [{
|
|
|
4219
4242
|
readonly type: "function";
|
|
4220
4243
|
readonly name: "transfer_token";
|
|
4221
4244
|
readonly inputs: readonly [{
|
|
4222
|
-
readonly name: "from";
|
|
4223
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
4224
|
-
}, {
|
|
4225
4245
|
readonly name: "to";
|
|
4226
4246
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
4227
4247
|
}, {
|
|
4228
|
-
readonly name: "
|
|
4229
|
-
readonly type: "core::
|
|
4248
|
+
readonly name: "collection_id";
|
|
4249
|
+
readonly type: "core::integer::u256";
|
|
4250
|
+
}, {
|
|
4251
|
+
readonly name: "token_id";
|
|
4252
|
+
readonly type: "core::integer::u256";
|
|
4230
4253
|
}];
|
|
4231
4254
|
readonly outputs: readonly [];
|
|
4232
4255
|
readonly state_mutability: "external";
|
|
@@ -4240,8 +4263,11 @@ declare const IPCollectionABI: readonly [{
|
|
|
4240
4263
|
readonly name: "to";
|
|
4241
4264
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
4242
4265
|
}, {
|
|
4243
|
-
readonly name: "
|
|
4244
|
-
readonly type: "core::array::Array::<core::
|
|
4266
|
+
readonly name: "collection_ids";
|
|
4267
|
+
readonly type: "core::array::Array::<core::integer::u256>";
|
|
4268
|
+
}, {
|
|
4269
|
+
readonly name: "token_ids";
|
|
4270
|
+
readonly type: "core::array::Array::<core::integer::u256>";
|
|
4245
4271
|
}];
|
|
4246
4272
|
readonly outputs: readonly [];
|
|
4247
4273
|
readonly state_mutability: "external";
|
|
@@ -4289,6 +4315,14 @@ declare const IPCollectionABI: readonly [{
|
|
|
4289
4315
|
readonly type: "core::integer::u256";
|
|
4290
4316
|
}];
|
|
4291
4317
|
readonly state_mutability: "view";
|
|
4318
|
+
}, {
|
|
4319
|
+
readonly type: "function";
|
|
4320
|
+
readonly name: "version";
|
|
4321
|
+
readonly inputs: readonly [];
|
|
4322
|
+
readonly outputs: readonly [{
|
|
4323
|
+
readonly type: "core::byte_array::ByteArray";
|
|
4324
|
+
}];
|
|
4325
|
+
readonly state_mutability: "view";
|
|
4292
4326
|
}, {
|
|
4293
4327
|
readonly type: "function";
|
|
4294
4328
|
readonly name: "is_valid_collection";
|
|
@@ -4329,8 +4363,11 @@ declare const IPCollectionABI: readonly [{
|
|
|
4329
4363
|
readonly type: "function";
|
|
4330
4364
|
readonly name: "get_token";
|
|
4331
4365
|
readonly inputs: readonly [{
|
|
4332
|
-
readonly name: "
|
|
4333
|
-
readonly type: "core::
|
|
4366
|
+
readonly name: "collection_id";
|
|
4367
|
+
readonly type: "core::integer::u256";
|
|
4368
|
+
}, {
|
|
4369
|
+
readonly name: "token_id";
|
|
4370
|
+
readonly type: "core::integer::u256";
|
|
4334
4371
|
}];
|
|
4335
4372
|
readonly outputs: readonly [{
|
|
4336
4373
|
readonly type: "ip_collection_erc_721::types::TokenData";
|
|
@@ -4340,8 +4377,11 @@ declare const IPCollectionABI: readonly [{
|
|
|
4340
4377
|
readonly type: "function";
|
|
4341
4378
|
readonly name: "is_valid_token";
|
|
4342
4379
|
readonly inputs: readonly [{
|
|
4343
|
-
readonly name: "
|
|
4344
|
-
readonly type: "core::
|
|
4380
|
+
readonly name: "collection_id";
|
|
4381
|
+
readonly type: "core::integer::u256";
|
|
4382
|
+
}, {
|
|
4383
|
+
readonly name: "token_id";
|
|
4384
|
+
readonly type: "core::integer::u256";
|
|
4345
4385
|
}];
|
|
4346
4386
|
readonly outputs: readonly [{
|
|
4347
4387
|
readonly type: "core::bool";
|
|
@@ -4351,8 +4391,11 @@ declare const IPCollectionABI: readonly [{
|
|
|
4351
4391
|
readonly type: "function";
|
|
4352
4392
|
readonly name: "is_transferable_token";
|
|
4353
4393
|
readonly inputs: readonly [{
|
|
4354
|
-
readonly name: "
|
|
4355
|
-
readonly type: "core::
|
|
4394
|
+
readonly name: "collection_id";
|
|
4395
|
+
readonly type: "core::integer::u256";
|
|
4396
|
+
}, {
|
|
4397
|
+
readonly name: "token_id";
|
|
4398
|
+
readonly type: "core::integer::u256";
|
|
4356
4399
|
}];
|
|
4357
4400
|
readonly outputs: readonly [{
|
|
4358
4401
|
readonly type: "core::bool";
|
|
@@ -4432,6 +4475,10 @@ declare const IPCollectionABI: readonly [{
|
|
|
4432
4475
|
readonly name: "metadata_uri";
|
|
4433
4476
|
readonly type: "core::byte_array::ByteArray";
|
|
4434
4477
|
readonly kind: "data";
|
|
4478
|
+
}, {
|
|
4479
|
+
readonly name: "royalty_bps";
|
|
4480
|
+
readonly type: "core::integer::u128";
|
|
4481
|
+
readonly kind: "data";
|
|
4435
4482
|
}];
|
|
4436
4483
|
}, {
|
|
4437
4484
|
readonly type: "event";
|
|
@@ -4449,6 +4496,10 @@ declare const IPCollectionABI: readonly [{
|
|
|
4449
4496
|
readonly name: "owners";
|
|
4450
4497
|
readonly type: "core::array::Array::<core::starknet::contract_address::ContractAddress>";
|
|
4451
4498
|
readonly kind: "data";
|
|
4499
|
+
}, {
|
|
4500
|
+
readonly name: "metadata_uris";
|
|
4501
|
+
readonly type: "core::array::Array::<core::byte_array::ByteArray>";
|
|
4502
|
+
readonly kind: "data";
|
|
4452
4503
|
}, {
|
|
4453
4504
|
readonly name: "operator";
|
|
4454
4505
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
@@ -4484,8 +4535,12 @@ declare const IPCollectionABI: readonly [{
|
|
|
4484
4535
|
readonly name: "ip_collection_erc_721::IPCollection::IPCollection::TokenArchivedBatch";
|
|
4485
4536
|
readonly kind: "struct";
|
|
4486
4537
|
readonly members: readonly [{
|
|
4487
|
-
readonly name: "
|
|
4488
|
-
readonly type: "core::array::
|
|
4538
|
+
readonly name: "collection_ids";
|
|
4539
|
+
readonly type: "core::array::Span::<core::integer::u256>";
|
|
4540
|
+
readonly kind: "data";
|
|
4541
|
+
}, {
|
|
4542
|
+
readonly name: "token_ids";
|
|
4543
|
+
readonly type: "core::array::Span::<core::integer::u256>";
|
|
4489
4544
|
readonly kind: "data";
|
|
4490
4545
|
}, {
|
|
4491
4546
|
readonly name: "operator";
|
|
@@ -4538,8 +4593,12 @@ declare const IPCollectionABI: readonly [{
|
|
|
4538
4593
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
4539
4594
|
readonly kind: "data";
|
|
4540
4595
|
}, {
|
|
4541
|
-
readonly name: "
|
|
4542
|
-
readonly type: "core::array::
|
|
4596
|
+
readonly name: "collection_ids";
|
|
4597
|
+
readonly type: "core::array::Span::<core::integer::u256>";
|
|
4598
|
+
readonly kind: "data";
|
|
4599
|
+
}, {
|
|
4600
|
+
readonly name: "token_ids";
|
|
4601
|
+
readonly type: "core::array::Span::<core::integer::u256>";
|
|
4543
4602
|
readonly kind: "data";
|
|
4544
4603
|
}, {
|
|
4545
4604
|
readonly name: "operator";
|
|
@@ -4705,6 +4764,9 @@ declare const IPNftABI: readonly [{
|
|
|
4705
4764
|
}, {
|
|
4706
4765
|
readonly name: "creator";
|
|
4707
4766
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
4767
|
+
}, {
|
|
4768
|
+
readonly name: "royalty_bps";
|
|
4769
|
+
readonly type: "core::integer::u128";
|
|
4708
4770
|
}];
|
|
4709
4771
|
readonly outputs: readonly [];
|
|
4710
4772
|
readonly state_mutability: "external";
|
|
@@ -4744,6 +4806,14 @@ declare const IPNftABI: readonly [{
|
|
|
4744
4806
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
4745
4807
|
}];
|
|
4746
4808
|
readonly state_mutability: "view";
|
|
4809
|
+
}, {
|
|
4810
|
+
readonly type: "function";
|
|
4811
|
+
readonly name: "version";
|
|
4812
|
+
readonly inputs: readonly [];
|
|
4813
|
+
readonly outputs: readonly [{
|
|
4814
|
+
readonly type: "core::byte_array::ByteArray";
|
|
4815
|
+
}];
|
|
4816
|
+
readonly state_mutability: "view";
|
|
4747
4817
|
}, {
|
|
4748
4818
|
readonly type: "function";
|
|
4749
4819
|
readonly name: "base_uri";
|
|
@@ -5087,6 +5157,55 @@ declare const IPNftABI: readonly [{
|
|
|
5087
5157
|
}];
|
|
5088
5158
|
readonly state_mutability: "view";
|
|
5089
5159
|
}];
|
|
5160
|
+
}, {
|
|
5161
|
+
readonly type: "impl";
|
|
5162
|
+
readonly name: "ERC2981Impl";
|
|
5163
|
+
readonly interface_name: "openzeppelin_token::common::erc2981::interface::IERC2981";
|
|
5164
|
+
}, {
|
|
5165
|
+
readonly type: "interface";
|
|
5166
|
+
readonly name: "openzeppelin_token::common::erc2981::interface::IERC2981";
|
|
5167
|
+
readonly items: readonly [{
|
|
5168
|
+
readonly type: "function";
|
|
5169
|
+
readonly name: "royalty_info";
|
|
5170
|
+
readonly inputs: readonly [{
|
|
5171
|
+
readonly name: "token_id";
|
|
5172
|
+
readonly type: "core::integer::u256";
|
|
5173
|
+
}, {
|
|
5174
|
+
readonly name: "sale_price";
|
|
5175
|
+
readonly type: "core::integer::u256";
|
|
5176
|
+
}];
|
|
5177
|
+
readonly outputs: readonly [{
|
|
5178
|
+
readonly type: "(core::starknet::contract_address::ContractAddress, core::integer::u256)";
|
|
5179
|
+
}];
|
|
5180
|
+
readonly state_mutability: "view";
|
|
5181
|
+
}];
|
|
5182
|
+
}, {
|
|
5183
|
+
readonly type: "impl";
|
|
5184
|
+
readonly name: "ERC2981InfoImpl";
|
|
5185
|
+
readonly interface_name: "openzeppelin_token::common::erc2981::interface::IERC2981Info";
|
|
5186
|
+
}, {
|
|
5187
|
+
readonly type: "interface";
|
|
5188
|
+
readonly name: "openzeppelin_token::common::erc2981::interface::IERC2981Info";
|
|
5189
|
+
readonly items: readonly [{
|
|
5190
|
+
readonly type: "function";
|
|
5191
|
+
readonly name: "default_royalty";
|
|
5192
|
+
readonly inputs: readonly [];
|
|
5193
|
+
readonly outputs: readonly [{
|
|
5194
|
+
readonly type: "(core::starknet::contract_address::ContractAddress, core::integer::u128, core::integer::u128)";
|
|
5195
|
+
}];
|
|
5196
|
+
readonly state_mutability: "view";
|
|
5197
|
+
}, {
|
|
5198
|
+
readonly type: "function";
|
|
5199
|
+
readonly name: "token_royalty";
|
|
5200
|
+
readonly inputs: readonly [{
|
|
5201
|
+
readonly name: "token_id";
|
|
5202
|
+
readonly type: "core::integer::u256";
|
|
5203
|
+
}];
|
|
5204
|
+
readonly outputs: readonly [{
|
|
5205
|
+
readonly type: "(core::starknet::contract_address::ContractAddress, core::integer::u128, core::integer::u128)";
|
|
5206
|
+
}];
|
|
5207
|
+
readonly state_mutability: "view";
|
|
5208
|
+
}];
|
|
5090
5209
|
}, {
|
|
5091
5210
|
readonly type: "constructor";
|
|
5092
5211
|
readonly name: "constructor";
|
|
@@ -5184,6 +5303,11 @@ declare const IPNftABI: readonly [{
|
|
|
5184
5303
|
readonly name: "openzeppelin_token::erc721::extensions::erc721_enumerable::erc721_enumerable::ERC721EnumerableComponent::Event";
|
|
5185
5304
|
readonly kind: "enum";
|
|
5186
5305
|
readonly variants: readonly [];
|
|
5306
|
+
}, {
|
|
5307
|
+
readonly type: "event";
|
|
5308
|
+
readonly name: "openzeppelin_token::common::erc2981::erc2981::ERC2981Component::Event";
|
|
5309
|
+
readonly kind: "enum";
|
|
5310
|
+
readonly variants: readonly [];
|
|
5187
5311
|
}, {
|
|
5188
5312
|
readonly type: "event";
|
|
5189
5313
|
readonly name: "ip_collection_erc_721::IPNft::IPNft::Event";
|
|
@@ -5200,6 +5324,10 @@ declare const IPNftABI: readonly [{
|
|
|
5200
5324
|
readonly name: "ERC721EnumerableEvent";
|
|
5201
5325
|
readonly type: "openzeppelin_token::erc721::extensions::erc721_enumerable::erc721_enumerable::ERC721EnumerableComponent::Event";
|
|
5202
5326
|
readonly kind: "flat";
|
|
5327
|
+
}, {
|
|
5328
|
+
readonly name: "ERC2981Event";
|
|
5329
|
+
readonly type: "openzeppelin_token::common::erc2981::erc2981::ERC2981Component::Event";
|
|
5330
|
+
readonly kind: "flat";
|
|
5203
5331
|
}];
|
|
5204
5332
|
}];
|
|
5205
5333
|
|
package/dist/index.d.ts
CHANGED
|
@@ -260,6 +260,12 @@ interface MintParams {
|
|
|
260
260
|
collectionId: string;
|
|
261
261
|
recipient: string;
|
|
262
262
|
tokenUri: string;
|
|
263
|
+
/**
|
|
264
|
+
* EIP-2981 secondary-sale royalty in basis points (0–10_000). Set once at mint;
|
|
265
|
+
* the receiver is the immutable creator (the minting collection owner). Required
|
|
266
|
+
* since MIP v0.4.0 — pass 0 for no royalty.
|
|
267
|
+
*/
|
|
268
|
+
royaltyBps: number;
|
|
263
269
|
/** Optional: override the collection contract from config */
|
|
264
270
|
collectionContract?: string;
|
|
265
271
|
}
|
|
@@ -883,6 +889,11 @@ interface CreateMintIntentParams {
|
|
|
883
889
|
collectionId: string;
|
|
884
890
|
recipient: string;
|
|
885
891
|
tokenUri: string;
|
|
892
|
+
/**
|
|
893
|
+
* EIP-2981 secondary-sale royalty in basis points (0–10_000). Set once at mint;
|
|
894
|
+
* receiver is the immutable creator. Required since MIP v0.4.0 — pass 0 for none.
|
|
895
|
+
*/
|
|
896
|
+
royaltyBps: number;
|
|
886
897
|
/** Optional: override the default collection contract address */
|
|
887
898
|
collectionContract?: string;
|
|
888
899
|
}
|
|
@@ -4097,7 +4108,7 @@ declare const IPCollectionABI: readonly [{
|
|
|
4097
4108
|
readonly name: "total_archived";
|
|
4098
4109
|
readonly type: "core::integer::u256";
|
|
4099
4110
|
}, {
|
|
4100
|
-
readonly name: "
|
|
4111
|
+
readonly name: "protocol_routed_transfers";
|
|
4101
4112
|
readonly type: "core::integer::u256";
|
|
4102
4113
|
}, {
|
|
4103
4114
|
readonly name: "last_mint_time";
|
|
@@ -4163,6 +4174,9 @@ declare const IPCollectionABI: readonly [{
|
|
|
4163
4174
|
}, {
|
|
4164
4175
|
readonly name: "token_uri";
|
|
4165
4176
|
readonly type: "core::byte_array::ByteArray";
|
|
4177
|
+
}, {
|
|
4178
|
+
readonly name: "royalty_bps";
|
|
4179
|
+
readonly type: "core::integer::u128";
|
|
4166
4180
|
}];
|
|
4167
4181
|
readonly outputs: readonly [{
|
|
4168
4182
|
readonly type: "core::integer::u256";
|
|
@@ -4180,6 +4194,9 @@ declare const IPCollectionABI: readonly [{
|
|
|
4180
4194
|
}, {
|
|
4181
4195
|
readonly name: "token_uris";
|
|
4182
4196
|
readonly type: "core::array::Array::<core::byte_array::ByteArray>";
|
|
4197
|
+
}, {
|
|
4198
|
+
readonly name: "royalty_bps";
|
|
4199
|
+
readonly type: "core::array::Array::<core::integer::u128>";
|
|
4183
4200
|
}];
|
|
4184
4201
|
readonly outputs: readonly [{
|
|
4185
4202
|
readonly type: "core::array::Span::<core::integer::u256>";
|
|
@@ -4201,8 +4218,11 @@ declare const IPCollectionABI: readonly [{
|
|
|
4201
4218
|
readonly type: "function";
|
|
4202
4219
|
readonly name: "archive";
|
|
4203
4220
|
readonly inputs: readonly [{
|
|
4204
|
-
readonly name: "
|
|
4205
|
-
readonly type: "core::
|
|
4221
|
+
readonly name: "collection_id";
|
|
4222
|
+
readonly type: "core::integer::u256";
|
|
4223
|
+
}, {
|
|
4224
|
+
readonly name: "token_id";
|
|
4225
|
+
readonly type: "core::integer::u256";
|
|
4206
4226
|
}];
|
|
4207
4227
|
readonly outputs: readonly [];
|
|
4208
4228
|
readonly state_mutability: "external";
|
|
@@ -4210,8 +4230,11 @@ declare const IPCollectionABI: readonly [{
|
|
|
4210
4230
|
readonly type: "function";
|
|
4211
4231
|
readonly name: "batch_archive";
|
|
4212
4232
|
readonly inputs: readonly [{
|
|
4213
|
-
readonly name: "
|
|
4214
|
-
readonly type: "core::array::Array::<core::
|
|
4233
|
+
readonly name: "collection_ids";
|
|
4234
|
+
readonly type: "core::array::Array::<core::integer::u256>";
|
|
4235
|
+
}, {
|
|
4236
|
+
readonly name: "token_ids";
|
|
4237
|
+
readonly type: "core::array::Array::<core::integer::u256>";
|
|
4215
4238
|
}];
|
|
4216
4239
|
readonly outputs: readonly [];
|
|
4217
4240
|
readonly state_mutability: "external";
|
|
@@ -4219,14 +4242,14 @@ declare const IPCollectionABI: readonly [{
|
|
|
4219
4242
|
readonly type: "function";
|
|
4220
4243
|
readonly name: "transfer_token";
|
|
4221
4244
|
readonly inputs: readonly [{
|
|
4222
|
-
readonly name: "from";
|
|
4223
|
-
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
4224
|
-
}, {
|
|
4225
4245
|
readonly name: "to";
|
|
4226
4246
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
4227
4247
|
}, {
|
|
4228
|
-
readonly name: "
|
|
4229
|
-
readonly type: "core::
|
|
4248
|
+
readonly name: "collection_id";
|
|
4249
|
+
readonly type: "core::integer::u256";
|
|
4250
|
+
}, {
|
|
4251
|
+
readonly name: "token_id";
|
|
4252
|
+
readonly type: "core::integer::u256";
|
|
4230
4253
|
}];
|
|
4231
4254
|
readonly outputs: readonly [];
|
|
4232
4255
|
readonly state_mutability: "external";
|
|
@@ -4240,8 +4263,11 @@ declare const IPCollectionABI: readonly [{
|
|
|
4240
4263
|
readonly name: "to";
|
|
4241
4264
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
4242
4265
|
}, {
|
|
4243
|
-
readonly name: "
|
|
4244
|
-
readonly type: "core::array::Array::<core::
|
|
4266
|
+
readonly name: "collection_ids";
|
|
4267
|
+
readonly type: "core::array::Array::<core::integer::u256>";
|
|
4268
|
+
}, {
|
|
4269
|
+
readonly name: "token_ids";
|
|
4270
|
+
readonly type: "core::array::Array::<core::integer::u256>";
|
|
4245
4271
|
}];
|
|
4246
4272
|
readonly outputs: readonly [];
|
|
4247
4273
|
readonly state_mutability: "external";
|
|
@@ -4289,6 +4315,14 @@ declare const IPCollectionABI: readonly [{
|
|
|
4289
4315
|
readonly type: "core::integer::u256";
|
|
4290
4316
|
}];
|
|
4291
4317
|
readonly state_mutability: "view";
|
|
4318
|
+
}, {
|
|
4319
|
+
readonly type: "function";
|
|
4320
|
+
readonly name: "version";
|
|
4321
|
+
readonly inputs: readonly [];
|
|
4322
|
+
readonly outputs: readonly [{
|
|
4323
|
+
readonly type: "core::byte_array::ByteArray";
|
|
4324
|
+
}];
|
|
4325
|
+
readonly state_mutability: "view";
|
|
4292
4326
|
}, {
|
|
4293
4327
|
readonly type: "function";
|
|
4294
4328
|
readonly name: "is_valid_collection";
|
|
@@ -4329,8 +4363,11 @@ declare const IPCollectionABI: readonly [{
|
|
|
4329
4363
|
readonly type: "function";
|
|
4330
4364
|
readonly name: "get_token";
|
|
4331
4365
|
readonly inputs: readonly [{
|
|
4332
|
-
readonly name: "
|
|
4333
|
-
readonly type: "core::
|
|
4366
|
+
readonly name: "collection_id";
|
|
4367
|
+
readonly type: "core::integer::u256";
|
|
4368
|
+
}, {
|
|
4369
|
+
readonly name: "token_id";
|
|
4370
|
+
readonly type: "core::integer::u256";
|
|
4334
4371
|
}];
|
|
4335
4372
|
readonly outputs: readonly [{
|
|
4336
4373
|
readonly type: "ip_collection_erc_721::types::TokenData";
|
|
@@ -4340,8 +4377,11 @@ declare const IPCollectionABI: readonly [{
|
|
|
4340
4377
|
readonly type: "function";
|
|
4341
4378
|
readonly name: "is_valid_token";
|
|
4342
4379
|
readonly inputs: readonly [{
|
|
4343
|
-
readonly name: "
|
|
4344
|
-
readonly type: "core::
|
|
4380
|
+
readonly name: "collection_id";
|
|
4381
|
+
readonly type: "core::integer::u256";
|
|
4382
|
+
}, {
|
|
4383
|
+
readonly name: "token_id";
|
|
4384
|
+
readonly type: "core::integer::u256";
|
|
4345
4385
|
}];
|
|
4346
4386
|
readonly outputs: readonly [{
|
|
4347
4387
|
readonly type: "core::bool";
|
|
@@ -4351,8 +4391,11 @@ declare const IPCollectionABI: readonly [{
|
|
|
4351
4391
|
readonly type: "function";
|
|
4352
4392
|
readonly name: "is_transferable_token";
|
|
4353
4393
|
readonly inputs: readonly [{
|
|
4354
|
-
readonly name: "
|
|
4355
|
-
readonly type: "core::
|
|
4394
|
+
readonly name: "collection_id";
|
|
4395
|
+
readonly type: "core::integer::u256";
|
|
4396
|
+
}, {
|
|
4397
|
+
readonly name: "token_id";
|
|
4398
|
+
readonly type: "core::integer::u256";
|
|
4356
4399
|
}];
|
|
4357
4400
|
readonly outputs: readonly [{
|
|
4358
4401
|
readonly type: "core::bool";
|
|
@@ -4432,6 +4475,10 @@ declare const IPCollectionABI: readonly [{
|
|
|
4432
4475
|
readonly name: "metadata_uri";
|
|
4433
4476
|
readonly type: "core::byte_array::ByteArray";
|
|
4434
4477
|
readonly kind: "data";
|
|
4478
|
+
}, {
|
|
4479
|
+
readonly name: "royalty_bps";
|
|
4480
|
+
readonly type: "core::integer::u128";
|
|
4481
|
+
readonly kind: "data";
|
|
4435
4482
|
}];
|
|
4436
4483
|
}, {
|
|
4437
4484
|
readonly type: "event";
|
|
@@ -4449,6 +4496,10 @@ declare const IPCollectionABI: readonly [{
|
|
|
4449
4496
|
readonly name: "owners";
|
|
4450
4497
|
readonly type: "core::array::Array::<core::starknet::contract_address::ContractAddress>";
|
|
4451
4498
|
readonly kind: "data";
|
|
4499
|
+
}, {
|
|
4500
|
+
readonly name: "metadata_uris";
|
|
4501
|
+
readonly type: "core::array::Array::<core::byte_array::ByteArray>";
|
|
4502
|
+
readonly kind: "data";
|
|
4452
4503
|
}, {
|
|
4453
4504
|
readonly name: "operator";
|
|
4454
4505
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
@@ -4484,8 +4535,12 @@ declare const IPCollectionABI: readonly [{
|
|
|
4484
4535
|
readonly name: "ip_collection_erc_721::IPCollection::IPCollection::TokenArchivedBatch";
|
|
4485
4536
|
readonly kind: "struct";
|
|
4486
4537
|
readonly members: readonly [{
|
|
4487
|
-
readonly name: "
|
|
4488
|
-
readonly type: "core::array::
|
|
4538
|
+
readonly name: "collection_ids";
|
|
4539
|
+
readonly type: "core::array::Span::<core::integer::u256>";
|
|
4540
|
+
readonly kind: "data";
|
|
4541
|
+
}, {
|
|
4542
|
+
readonly name: "token_ids";
|
|
4543
|
+
readonly type: "core::array::Span::<core::integer::u256>";
|
|
4489
4544
|
readonly kind: "data";
|
|
4490
4545
|
}, {
|
|
4491
4546
|
readonly name: "operator";
|
|
@@ -4538,8 +4593,12 @@ declare const IPCollectionABI: readonly [{
|
|
|
4538
4593
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
4539
4594
|
readonly kind: "data";
|
|
4540
4595
|
}, {
|
|
4541
|
-
readonly name: "
|
|
4542
|
-
readonly type: "core::array::
|
|
4596
|
+
readonly name: "collection_ids";
|
|
4597
|
+
readonly type: "core::array::Span::<core::integer::u256>";
|
|
4598
|
+
readonly kind: "data";
|
|
4599
|
+
}, {
|
|
4600
|
+
readonly name: "token_ids";
|
|
4601
|
+
readonly type: "core::array::Span::<core::integer::u256>";
|
|
4543
4602
|
readonly kind: "data";
|
|
4544
4603
|
}, {
|
|
4545
4604
|
readonly name: "operator";
|
|
@@ -4705,6 +4764,9 @@ declare const IPNftABI: readonly [{
|
|
|
4705
4764
|
}, {
|
|
4706
4765
|
readonly name: "creator";
|
|
4707
4766
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
4767
|
+
}, {
|
|
4768
|
+
readonly name: "royalty_bps";
|
|
4769
|
+
readonly type: "core::integer::u128";
|
|
4708
4770
|
}];
|
|
4709
4771
|
readonly outputs: readonly [];
|
|
4710
4772
|
readonly state_mutability: "external";
|
|
@@ -4744,6 +4806,14 @@ declare const IPNftABI: readonly [{
|
|
|
4744
4806
|
readonly type: "core::starknet::contract_address::ContractAddress";
|
|
4745
4807
|
}];
|
|
4746
4808
|
readonly state_mutability: "view";
|
|
4809
|
+
}, {
|
|
4810
|
+
readonly type: "function";
|
|
4811
|
+
readonly name: "version";
|
|
4812
|
+
readonly inputs: readonly [];
|
|
4813
|
+
readonly outputs: readonly [{
|
|
4814
|
+
readonly type: "core::byte_array::ByteArray";
|
|
4815
|
+
}];
|
|
4816
|
+
readonly state_mutability: "view";
|
|
4747
4817
|
}, {
|
|
4748
4818
|
readonly type: "function";
|
|
4749
4819
|
readonly name: "base_uri";
|
|
@@ -5087,6 +5157,55 @@ declare const IPNftABI: readonly [{
|
|
|
5087
5157
|
}];
|
|
5088
5158
|
readonly state_mutability: "view";
|
|
5089
5159
|
}];
|
|
5160
|
+
}, {
|
|
5161
|
+
readonly type: "impl";
|
|
5162
|
+
readonly name: "ERC2981Impl";
|
|
5163
|
+
readonly interface_name: "openzeppelin_token::common::erc2981::interface::IERC2981";
|
|
5164
|
+
}, {
|
|
5165
|
+
readonly type: "interface";
|
|
5166
|
+
readonly name: "openzeppelin_token::common::erc2981::interface::IERC2981";
|
|
5167
|
+
readonly items: readonly [{
|
|
5168
|
+
readonly type: "function";
|
|
5169
|
+
readonly name: "royalty_info";
|
|
5170
|
+
readonly inputs: readonly [{
|
|
5171
|
+
readonly name: "token_id";
|
|
5172
|
+
readonly type: "core::integer::u256";
|
|
5173
|
+
}, {
|
|
5174
|
+
readonly name: "sale_price";
|
|
5175
|
+
readonly type: "core::integer::u256";
|
|
5176
|
+
}];
|
|
5177
|
+
readonly outputs: readonly [{
|
|
5178
|
+
readonly type: "(core::starknet::contract_address::ContractAddress, core::integer::u256)";
|
|
5179
|
+
}];
|
|
5180
|
+
readonly state_mutability: "view";
|
|
5181
|
+
}];
|
|
5182
|
+
}, {
|
|
5183
|
+
readonly type: "impl";
|
|
5184
|
+
readonly name: "ERC2981InfoImpl";
|
|
5185
|
+
readonly interface_name: "openzeppelin_token::common::erc2981::interface::IERC2981Info";
|
|
5186
|
+
}, {
|
|
5187
|
+
readonly type: "interface";
|
|
5188
|
+
readonly name: "openzeppelin_token::common::erc2981::interface::IERC2981Info";
|
|
5189
|
+
readonly items: readonly [{
|
|
5190
|
+
readonly type: "function";
|
|
5191
|
+
readonly name: "default_royalty";
|
|
5192
|
+
readonly inputs: readonly [];
|
|
5193
|
+
readonly outputs: readonly [{
|
|
5194
|
+
readonly type: "(core::starknet::contract_address::ContractAddress, core::integer::u128, core::integer::u128)";
|
|
5195
|
+
}];
|
|
5196
|
+
readonly state_mutability: "view";
|
|
5197
|
+
}, {
|
|
5198
|
+
readonly type: "function";
|
|
5199
|
+
readonly name: "token_royalty";
|
|
5200
|
+
readonly inputs: readonly [{
|
|
5201
|
+
readonly name: "token_id";
|
|
5202
|
+
readonly type: "core::integer::u256";
|
|
5203
|
+
}];
|
|
5204
|
+
readonly outputs: readonly [{
|
|
5205
|
+
readonly type: "(core::starknet::contract_address::ContractAddress, core::integer::u128, core::integer::u128)";
|
|
5206
|
+
}];
|
|
5207
|
+
readonly state_mutability: "view";
|
|
5208
|
+
}];
|
|
5090
5209
|
}, {
|
|
5091
5210
|
readonly type: "constructor";
|
|
5092
5211
|
readonly name: "constructor";
|
|
@@ -5184,6 +5303,11 @@ declare const IPNftABI: readonly [{
|
|
|
5184
5303
|
readonly name: "openzeppelin_token::erc721::extensions::erc721_enumerable::erc721_enumerable::ERC721EnumerableComponent::Event";
|
|
5185
5304
|
readonly kind: "enum";
|
|
5186
5305
|
readonly variants: readonly [];
|
|
5306
|
+
}, {
|
|
5307
|
+
readonly type: "event";
|
|
5308
|
+
readonly name: "openzeppelin_token::common::erc2981::erc2981::ERC2981Component::Event";
|
|
5309
|
+
readonly kind: "enum";
|
|
5310
|
+
readonly variants: readonly [];
|
|
5187
5311
|
}, {
|
|
5188
5312
|
readonly type: "event";
|
|
5189
5313
|
readonly name: "ip_collection_erc_721::IPNft::IPNft::Event";
|
|
@@ -5200,6 +5324,10 @@ declare const IPNftABI: readonly [{
|
|
|
5200
5324
|
readonly name: "ERC721EnumerableEvent";
|
|
5201
5325
|
readonly type: "openzeppelin_token::erc721::extensions::erc721_enumerable::erc721_enumerable::ERC721EnumerableComponent::Event";
|
|
5202
5326
|
readonly kind: "flat";
|
|
5327
|
+
}, {
|
|
5328
|
+
readonly name: "ERC2981Event";
|
|
5329
|
+
readonly type: "openzeppelin_token::common::erc2981::erc2981::ERC2981Component::Event";
|
|
5330
|
+
readonly kind: "flat";
|
|
5203
5331
|
}];
|
|
5204
5332
|
}];
|
|
5205
5333
|
|