git.delta.rocks / unique-network / refs/commits / e031ad691e58

difftreelog

refactor temporarly unhide mintBulk

Yaroslav Bolyukin2022-10-14parent: #088ceb1.patch.diff
in: master

10 files changed

modifiedpallets/nonfungible/src/erc.rsdiffbeforeafterboth
510 /// @param to The new owner510 /// @param to The new owner
511 /// @param tokenId ID of the minted NFT511 /// @param tokenId ID of the minted NFT
512 /// @param tokenUri Token URI that would be stored in the NFT properties512 /// @param tokenUri Token URI that would be stored in the NFT properties
513 #[solidity(hide, rename_selector = "mintWithTokenURI")]513 #[solidity(/*hide,*/ rename_selector = "mintWithTokenURI")]
514 #[weight(<SelfWeightOf<T>>::create_item())]514 #[weight(<SelfWeightOf<T>>::create_item())]
515 fn mint_with_token_uri_check_id(515 fn mint_with_token_uri_check_id(
516 &mut self,516 &mut self,
705 /// numbers and first number should be obtained with `nextTokenId` method705 /// numbers and first number should be obtained with `nextTokenId` method
706 /// @param to The new owner706 /// @param to The new owner
707 /// @param tokens array of pairs of token ID and token URI for minted tokens707 /// @param tokens array of pairs of token ID and token URI for minted tokens
708 #[solidity(hide, rename_selector = "mintBulkWithTokenURI")]708 #[solidity(/*hide,*/ rename_selector = "mintBulkWithTokenURI")]
709 #[weight(<SelfWeightOf<T>>::create_multiple_items(tokens.len() as u32))]709 #[weight(<SelfWeightOf<T>>::create_multiple_items(tokens.len() as u32))]
710 fn mint_bulk_with_token_uri(710 fn mint_bulk_with_token_uri(
711 &mut self,711 &mut self,
modifiedpallets/nonfungible/src/stubs/UniqueNFT.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/nonfungible/src/stubs/UniqueNFT.soldiffbeforeafterboth
500 return 0;500 return 0;
501 }501 }
502502
503 // /// @notice Function to mint token with the given tokenUri.503 /// @notice Function to mint token with the given tokenUri.
504 // /// @dev `tokenId` should be obtained with `nextTokenId` method,504 /// @dev `tokenId` should be obtained with `nextTokenId` method,
505 // /// unlike standard, you can't specify it manually505 /// unlike standard, you can't specify it manually
506 // /// @param to The new owner506 /// @param to The new owner
507 // /// @param tokenId ID of the minted NFT507 /// @param tokenId ID of the minted NFT
508 // /// @param tokenUri Token URI that would be stored in the NFT properties508 /// @param tokenUri Token URI that would be stored in the NFT properties
509 // /// @dev EVM selector for this function is: 0x50bb4e7f,509 /// @dev EVM selector for this function is: 0x50bb4e7f,
510 // /// or in textual repr: mintWithTokenURI(address,uint256,string)510 /// or in textual repr: mintWithTokenURI(address,uint256,string)
511 // function mintWithTokenURI(address to, uint256 tokenId, string memory tokenUri) public returns (bool) {511 function mintWithTokenURI(
512 // require(false, stub_error);512 address to,
513 // to;513 uint256 tokenId,
514 // tokenId;514 string memory tokenUri
515 // tokenUri;515 ) public returns (bool) {
516 // dummy = 0;516 require(false, stub_error);
517 // return false;517 to;
518 // }518 tokenId;
519 tokenUri;
520 dummy = 0;
521 return false;
522 }
519523
520 /// @dev Not implemented524 /// @dev Not implemented
521 /// @dev EVM selector for this function is: 0x7d64bcb4,525 /// @dev EVM selector for this function is: 0x7d64bcb4,
600 // return false;605 // return false;
601 // }606 // }
602607
603 // /// @notice Function to mint multiple tokens with the given tokenUris.608 /// @notice Function to mint multiple tokens with the given tokenUris.
604 // /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive609 /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive
605 // /// numbers and first number should be obtained with `nextTokenId` method610 /// numbers and first number should be obtained with `nextTokenId` method
606 // /// @param to The new owner611 /// @param to The new owner
607 // /// @param tokens array of pairs of token ID and token URI for minted tokens612 /// @param tokens array of pairs of token ID and token URI for minted tokens
608 // /// @dev EVM selector for this function is: 0x36543006,613 /// @dev EVM selector for this function is: 0x36543006,
609 // /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])614 /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])
610 // function mintBulkWithTokenURI(address to, Tuple6[] memory tokens) public returns (bool) {615 function mintBulkWithTokenURI(address to, Tuple6[] memory tokens) public returns (bool) {
611 // require(false, stub_error);616 require(false, stub_error);
612 // to;617 to;
613 // tokens;618 tokens;
614 // dummy = 0;619 dummy = 0;
615 // return false;620 return false;
616 // }621 }
617
618}622}
619623
modifiedpallets/refungible/src/erc.rsdiffbeforeafterboth
536 /// @param to The new owner536 /// @param to The new owner
537 /// @param tokenId ID of the minted RFT537 /// @param tokenId ID of the minted RFT
538 /// @param tokenUri Token URI that would be stored in the RFT properties538 /// @param tokenUri Token URI that would be stored in the RFT properties
539 #[solidity(hide, rename_selector = "mintWithTokenURI")]539 #[solidity(/*hide,*/ rename_selector = "mintWithTokenURI")]
540 #[weight(<SelfWeightOf<T>>::create_item())]540 #[weight(<SelfWeightOf<T>>::create_item())]
541 fn mint_with_token_uri_check_id(541 fn mint_with_token_uri_check_id(
542 &mut self,542 &mut self,
748 /// numbers and first number should be obtained with `nextTokenId` method748 /// numbers and first number should be obtained with `nextTokenId` method
749 /// @param to The new owner749 /// @param to The new owner
750 /// @param tokens array of pairs of token ID and token URI for minted tokens750 /// @param tokens array of pairs of token ID and token URI for minted tokens
751 #[solidity(hide, rename_selector = "mintBulkWithTokenURI")]751 #[solidity(/*hide,*/ rename_selector = "mintBulkWithTokenURI")]
752 #[weight(<SelfWeightOf<T>>::create_multiple_items(tokens.len() as u32))]752 #[weight(<SelfWeightOf<T>>::create_multiple_items(tokens.len() as u32))]
753 fn mint_bulk_with_token_uri(753 fn mint_bulk_with_token_uri(
754 &mut self,754 &mut self,
modifiedpallets/refungible/src/stubs/UniqueRefungible.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/refungible/src/stubs/UniqueRefungible.soldiffbeforeafterboth
498 return 0;498 return 0;
499 }499 }
500500
501 // /// @notice Function to mint token with the given tokenUri.501 /// @notice Function to mint token with the given tokenUri.
502 // /// @dev `tokenId` should be obtained with `nextTokenId` method,502 /// @dev `tokenId` should be obtained with `nextTokenId` method,
503 // /// unlike standard, you can't specify it manually503 /// unlike standard, you can't specify it manually
504 // /// @param to The new owner504 /// @param to The new owner
505 // /// @param tokenId ID of the minted RFT505 /// @param tokenId ID of the minted RFT
506 // /// @param tokenUri Token URI that would be stored in the RFT properties506 /// @param tokenUri Token URI that would be stored in the RFT properties
507 // /// @dev EVM selector for this function is: 0x50bb4e7f,507 /// @dev EVM selector for this function is: 0x50bb4e7f,
508 // /// or in textual repr: mintWithTokenURI(address,uint256,string)508 /// or in textual repr: mintWithTokenURI(address,uint256,string)
509 // function mintWithTokenURI(address to, uint256 tokenId, string memory tokenUri) public returns (bool) {509 function mintWithTokenURI(
510 // require(false, stub_error);510 address to,
511 // to;511 uint256 tokenId,
512 // tokenId;512 string memory tokenUri
513 // tokenUri;513 ) public returns (bool) {
514 // dummy = 0;514 require(false, stub_error);
515 // return false;515 to;
516 // }516 tokenId;
517 tokenUri;
518 dummy = 0;
519 return false;
520 }
517521
518 /// @dev Not implemented522 /// @dev Not implemented
519 /// @dev EVM selector for this function is: 0x7d64bcb4,523 /// @dev EVM selector for this function is: 0x7d64bcb4,
601 // return false;605 // return false;
602 // }606 // }
603607
604 // /// @notice Function to mint multiple tokens with the given tokenUris.608 /// @notice Function to mint multiple tokens with the given tokenUris.
605 // /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive609 /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive
606 // /// numbers and first number should be obtained with `nextTokenId` method610 /// numbers and first number should be obtained with `nextTokenId` method
607 // /// @param to The new owner611 /// @param to The new owner
608 // /// @param tokens array of pairs of token ID and token URI for minted tokens612 /// @param tokens array of pairs of token ID and token URI for minted tokens
609 // /// @dev EVM selector for this function is: 0x36543006,613 /// @dev EVM selector for this function is: 0x36543006,
610 // /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])614 /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])
611 // function mintBulkWithTokenURI(address to, Tuple6[] memory tokens) public returns (bool) {615 function mintBulkWithTokenURI(address to, Tuple6[] memory tokens) public returns (bool) {
612 // require(false, stub_error);616 require(false, stub_error);
613 // to;617 to;
614 // tokens;618 tokens;
615 // dummy = 0;619 dummy = 0;
616 // return false;620 return false;
617 // }621 }
618622
619 /// Returns EVM address for refungible token623 /// Returns EVM address for refungible token
620 ///624 ///
modifiedtests/src/eth/api/UniqueNFT.soldiffbeforeafterboth
332 /// or in textual repr: mintWithTokenURI(address,string)332 /// or in textual repr: mintWithTokenURI(address,string)
333 function mintWithTokenURI(address to, string memory tokenUri) external returns (uint256);333 function mintWithTokenURI(address to, string memory tokenUri) external returns (uint256);
334334
335 // /// @notice Function to mint token with the given tokenUri.335 /// @notice Function to mint token with the given tokenUri.
336 // /// @dev `tokenId` should be obtained with `nextTokenId` method,336 /// @dev `tokenId` should be obtained with `nextTokenId` method,
337 // /// unlike standard, you can't specify it manually337 /// unlike standard, you can't specify it manually
338 // /// @param to The new owner338 /// @param to The new owner
339 // /// @param tokenId ID of the minted NFT339 /// @param tokenId ID of the minted NFT
340 // /// @param tokenUri Token URI that would be stored in the NFT properties340 /// @param tokenUri Token URI that would be stored in the NFT properties
341 // /// @dev EVM selector for this function is: 0x50bb4e7f,341 /// @dev EVM selector for this function is: 0x50bb4e7f,
342 // /// or in textual repr: mintWithTokenURI(address,uint256,string)342 /// or in textual repr: mintWithTokenURI(address,uint256,string)
343 // function mintWithTokenURI(address to, uint256 tokenId, string memory tokenUri) external returns (bool);343 function mintWithTokenURI(
344 address to,
345 uint256 tokenId,
346 string memory tokenUri
347 ) external returns (bool);
344348
345 /// @dev Not implemented349 /// @dev Not implemented
346 /// @dev EVM selector for this function is: 0x7d64bcb4,350 /// @dev EVM selector for this function is: 0x7d64bcb4,
393 // /// or in textual repr: mintBulk(address,uint256[])398 // /// or in textual repr: mintBulk(address,uint256[])
394 // function mintBulk(address to, uint256[] memory tokenIds) external returns (bool);399 // function mintBulk(address to, uint256[] memory tokenIds) external returns (bool);
395400
396 // /// @notice Function to mint multiple tokens with the given tokenUris.401 /// @notice Function to mint multiple tokens with the given tokenUris.
397 // /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive402 /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive
398 // /// numbers and first number should be obtained with `nextTokenId` method403 /// numbers and first number should be obtained with `nextTokenId` method
399 // /// @param to The new owner404 /// @param to The new owner
400 // /// @param tokens array of pairs of token ID and token URI for minted tokens405 /// @param tokens array of pairs of token ID and token URI for minted tokens
401 // /// @dev EVM selector for this function is: 0x36543006,406 /// @dev EVM selector for this function is: 0x36543006,
402 // /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])407 /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])
403 // function mintBulkWithTokenURI(address to, Tuple6[] memory tokens) external returns (bool);408 function mintBulkWithTokenURI(address to, Tuple6[] memory tokens) external returns (bool);
404
405}409}
406410
modifiedtests/src/eth/api/UniqueRefungible.soldiffbeforeafterboth
330 /// or in textual repr: mintWithTokenURI(address,string)330 /// or in textual repr: mintWithTokenURI(address,string)
331 function mintWithTokenURI(address to, string memory tokenUri) external returns (uint256);331 function mintWithTokenURI(address to, string memory tokenUri) external returns (uint256);
332332
333 // /// @notice Function to mint token with the given tokenUri.333 /// @notice Function to mint token with the given tokenUri.
334 // /// @dev `tokenId` should be obtained with `nextTokenId` method,334 /// @dev `tokenId` should be obtained with `nextTokenId` method,
335 // /// unlike standard, you can't specify it manually335 /// unlike standard, you can't specify it manually
336 // /// @param to The new owner336 /// @param to The new owner
337 // /// @param tokenId ID of the minted RFT337 /// @param tokenId ID of the minted RFT
338 // /// @param tokenUri Token URI that would be stored in the RFT properties338 /// @param tokenUri Token URI that would be stored in the RFT properties
339 // /// @dev EVM selector for this function is: 0x50bb4e7f,339 /// @dev EVM selector for this function is: 0x50bb4e7f,
340 // /// or in textual repr: mintWithTokenURI(address,uint256,string)340 /// or in textual repr: mintWithTokenURI(address,uint256,string)
341 // function mintWithTokenURI(address to, uint256 tokenId, string memory tokenUri) external returns (bool);341 function mintWithTokenURI(
342 address to,
343 uint256 tokenId,
344 string memory tokenUri
345 ) external returns (bool);
342346
343 /// @dev Not implemented347 /// @dev Not implemented
344 /// @dev EVM selector for this function is: 0x7d64bcb4,348 /// @dev EVM selector for this function is: 0x7d64bcb4,
394 // /// or in textual repr: mintBulk(address,uint256[])398 // /// or in textual repr: mintBulk(address,uint256[])
395 // function mintBulk(address to, uint256[] memory tokenIds) external returns (bool);399 // function mintBulk(address to, uint256[] memory tokenIds) external returns (bool);
396400
397 // /// @notice Function to mint multiple tokens with the given tokenUris.401 /// @notice Function to mint multiple tokens with the given tokenUris.
398 // /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive402 /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive
399 // /// numbers and first number should be obtained with `nextTokenId` method403 /// numbers and first number should be obtained with `nextTokenId` method
400 // /// @param to The new owner404 /// @param to The new owner
401 // /// @param tokens array of pairs of token ID and token URI for minted tokens405 /// @param tokens array of pairs of token ID and token URI for minted tokens
402 // /// @dev EVM selector for this function is: 0x36543006,406 /// @dev EVM selector for this function is: 0x36543006,
403 // /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])407 /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])
404 // function mintBulkWithTokenURI(address to, Tuple6[] memory tokens) external returns (bool);408 function mintBulkWithTokenURI(address to, Tuple6[] memory tokens) external returns (bool);
405409
406 /// Returns EVM address for refungible token410 /// Returns EVM address for refungible token
407 ///411 ///
modifiedtests/src/eth/nonFungibleAbi.jsondiffbeforeafterboth
266 "stateMutability": "nonpayable",266 "stateMutability": "nonpayable",
267 "type": "function"267 "type": "function"
268 },268 },
269 {
270 "inputs": [
271 { "internalType": "address", "name": "to", "type": "address" },
272 {
273 "components": [
274 { "internalType": "uint256", "name": "field_0", "type": "uint256" },
275 { "internalType": "string", "name": "field_1", "type": "string" }
276 ],
277 "internalType": "struct Tuple6[]",
278 "name": "tokens",
279 "type": "tuple[]"
280 }
281 ],
282 "name": "mintBulkWithTokenURI",
283 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
284 "stateMutability": "nonpayable",
285 "type": "function"
286 },
269 {287 {
270 "inputs": [288 "inputs": [
271 { "internalType": "address", "name": "to", "type": "address" },289 { "internalType": "address", "name": "to", "type": "address" },
276 "stateMutability": "nonpayable",294 "stateMutability": "nonpayable",
277 "type": "function"295 "type": "function"
278 },296 },
297 {
298 "inputs": [
299 { "internalType": "address", "name": "to", "type": "address" },
300 { "internalType": "uint256", "name": "tokenId", "type": "uint256" },
301 { "internalType": "string", "name": "tokenUri", "type": "string" }
302 ],
303 "name": "mintWithTokenURI",
304 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
305 "stateMutability": "nonpayable",
306 "type": "function"
307 },
279 {308 {
280 "inputs": [],309 "inputs": [],
281 "name": "mintingFinished",310 "name": "mintingFinished",
modifiedtests/src/eth/reFungibleAbi.jsondiffbeforeafterboth
266 "stateMutability": "nonpayable",266 "stateMutability": "nonpayable",
267 "type": "function"267 "type": "function"
268 },268 },
269 {
270 "inputs": [
271 { "internalType": "address", "name": "to", "type": "address" },
272 {
273 "components": [
274 { "internalType": "uint256", "name": "field_0", "type": "uint256" },
275 { "internalType": "string", "name": "field_1", "type": "string" }
276 ],
277 "internalType": "struct Tuple6[]",
278 "name": "tokens",
279 "type": "tuple[]"
280 }
281 ],
282 "name": "mintBulkWithTokenURI",
283 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
284 "stateMutability": "nonpayable",
285 "type": "function"
286 },
269 {287 {
270 "inputs": [288 "inputs": [
271 { "internalType": "address", "name": "to", "type": "address" },289 { "internalType": "address", "name": "to", "type": "address" },
276 "stateMutability": "nonpayable",294 "stateMutability": "nonpayable",
277 "type": "function"295 "type": "function"
278 },296 },
297 {
298 "inputs": [
299 { "internalType": "address", "name": "to", "type": "address" },
300 { "internalType": "uint256", "name": "tokenId", "type": "uint256" },
301 { "internalType": "string", "name": "tokenUri", "type": "string" }
302 ],
303 "name": "mintWithTokenURI",
304 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
305 "stateMutability": "nonpayable",
306 "type": "function"
307 },
279 {308 {
280 "inputs": [],309 "inputs": [],
281 "name": "mintingFinished",310 "name": "mintingFinished",