difftreelog
refactor temporarly unhide mintBulk
in: master
10 files changed
pallets/nonfungible/src/erc.rsdiffbeforeafterboth510 /// @param to The new owner510 /// @param to The new owner511 /// @param tokenId ID of the minted NFT511 /// @param tokenId ID of the minted NFT512 /// @param tokenUri Token URI that would be stored in the NFT properties512 /// @param tokenUri Token URI that would be stored in the NFT properties513 #[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` method706 /// @param to The new owner706 /// @param to The new owner707 /// @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 tokens708 #[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,pallets/nonfungible/src/stubs/UniqueNFT.rawdiffbeforeafterbothbinary blob — no preview
pallets/nonfungible/src/stubs/UniqueNFT.soldiffbeforeafterboth500 return 0;500 return 0;501 }501 }502502503 // /// @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 manually506 // /// @param to The new owner506 /// @param to The new owner507 // /// @param tokenId ID of the minted NFT507 /// @param tokenId ID of the minted NFT508 // /// @param tokenUri Token URI that would be stored in the NFT properties508 /// @param tokenUri Token URI that would be stored in the NFT properties509 // /// @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 tokenUri515 // 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 }519523520 /// @dev Not implemented524 /// @dev Not implemented521 /// @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 // }602607603 // /// @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 consecutive605 // /// numbers and first number should be obtained with `nextTokenId` method610 /// numbers and first number should be obtained with `nextTokenId` method606 // /// @param to The new owner611 /// @param to The new owner607 // /// @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 tokens608 // /// @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 }617618}622}619623pallets/refungible/src/erc.rsdiffbeforeafterboth536 /// @param to The new owner536 /// @param to The new owner537 /// @param tokenId ID of the minted RFT537 /// @param tokenId ID of the minted RFT538 /// @param tokenUri Token URI that would be stored in the RFT properties538 /// @param tokenUri Token URI that would be stored in the RFT properties539 #[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` method749 /// @param to The new owner749 /// @param to The new owner750 /// @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 tokens751 #[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,pallets/refungible/src/stubs/UniqueRefungible.rawdiffbeforeafterbothbinary blob — no preview
pallets/refungible/src/stubs/UniqueRefungible.soldiffbeforeafterboth498 return 0;498 return 0;499 }499 }500500501 // /// @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 manually504 // /// @param to The new owner504 /// @param to The new owner505 // /// @param tokenId ID of the minted RFT505 /// @param tokenId ID of the minted RFT506 // /// @param tokenUri Token URI that would be stored in the RFT properties506 /// @param tokenUri Token URI that would be stored in the RFT properties507 // /// @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 tokenUri513 // 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 }517521518 /// @dev Not implemented522 /// @dev Not implemented519 /// @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 // }603607604 // /// @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 consecutive606 // /// numbers and first number should be obtained with `nextTokenId` method610 /// numbers and first number should be obtained with `nextTokenId` method607 // /// @param to The new owner611 /// @param to The new owner608 // /// @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 tokens609 // /// @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 }618622619 /// Returns EVM address for refungible token623 /// Returns EVM address for refungible token620 ///624 ///tests/src/eth/api/UniqueNFT.soldiffbeforeafterboth332 /// 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);334334335 // /// @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 manually338 // /// @param to The new owner338 /// @param to The new owner339 // /// @param tokenId ID of the minted NFT339 /// @param tokenId ID of the minted NFT340 // /// @param tokenUri Token URI that would be stored in the NFT properties340 /// @param tokenUri Token URI that would be stored in the NFT properties341 // /// @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 tokenUri347 ) external returns (bool);344348345 /// @dev Not implemented349 /// @dev Not implemented346 /// @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);395400396 // /// @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 consecutive398 // /// numbers and first number should be obtained with `nextTokenId` method403 /// numbers and first number should be obtained with `nextTokenId` method399 // /// @param to The new owner404 /// @param to The new owner400 // /// @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 tokens401 // /// @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);404405}409}406410tests/src/eth/api/UniqueRefungible.soldiffbeforeafterboth330 /// 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);332332333 // /// @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 manually336 // /// @param to The new owner336 /// @param to The new owner337 // /// @param tokenId ID of the minted RFT337 /// @param tokenId ID of the minted RFT338 // /// @param tokenUri Token URI that would be stored in the RFT properties338 /// @param tokenUri Token URI that would be stored in the RFT properties339 // /// @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 tokenUri345 ) external returns (bool);342346343 /// @dev Not implemented347 /// @dev Not implemented344 /// @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);396400397 // /// @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 consecutive399 // /// numbers and first number should be obtained with `nextTokenId` method403 /// numbers and first number should be obtained with `nextTokenId` method400 // /// @param to The new owner404 /// @param to The new owner401 // /// @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 tokens402 // /// @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);405409406 /// Returns EVM address for refungible token410 /// Returns EVM address for refungible token407 ///411 ///tests/src/eth/nonFungibleAbi.jsondiffbeforeafterboth266 "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",tests/src/eth/reFungibleAbi.jsondiffbeforeafterboth266 "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",