difftreelog
fix hide mintWithTokenURI and temporary 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,668 /// should be obtained with `nextTokenId` method668 /// should be obtained with `nextTokenId` method669 /// @param to The new owner669 /// @param to The new owner670 /// @param tokenIds IDs of the minted NFTs670 /// @param tokenIds IDs of the minted NFTs671 #[solidity(hide)]671 // #[solidity(hide)]672 #[weight(<SelfWeightOf<T>>::create_multiple_items(token_ids.len() as u32))]672 #[weight(<SelfWeightOf<T>>::create_multiple_items(token_ids.len() as u32))]673 fn mint_bulk(&mut self, caller: caller, to: address, token_ids: Vec<uint256>) -> Result<bool> {673 fn mint_bulk(&mut self, caller: caller, to: address, token_ids: Vec<uint256>) -> Result<bool> {674 let caller = T::CrossAccountId::from_eth(caller);674 let caller = T::CrossAccountId::from_eth(caller);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(511 // function mintWithTokenURI(address to, uint256 tokenId, string memory tokenUri) public returns (bool) {512 address to,512 // require(false, stub_error);513 uint256 tokenId,513 // to;514 string memory tokenUri514 // tokenId;515 ) public returns (bool) {515 // tokenUri;516 require(false, stub_error);516 // dummy = 0;517 to;517 // return false;518 tokenId;518 // }519 tokenUri;520 dummy = 0;521 return false;522 }523519524 /// @dev Not implemented520 /// @dev Not implemented525 /// @dev EVM selector for this function is: 0x7d64bcb4,521 /// @dev EVM selector for this function is: 0x7d64bcb4,590 return 0;586 return 0;591 }587 }592588593 // /// @notice Function to mint multiple tokens.589 /// @notice Function to mint multiple tokens.594 // /// @dev `tokenIds` should be an array of consecutive numbers and first number590 /// @dev `tokenIds` should be an array of consecutive numbers and first number595 // /// should be obtained with `nextTokenId` method591 /// should be obtained with `nextTokenId` method596 // /// @param to The new owner592 /// @param to The new owner597 // /// @param tokenIds IDs of the minted NFTs593 /// @param tokenIds IDs of the minted NFTs598 // /// @dev EVM selector for this function is: 0x44a9945e,594 /// @dev EVM selector for this function is: 0x44a9945e,599 // /// or in textual repr: mintBulk(address,uint256[])595 /// or in textual repr: mintBulk(address,uint256[])600 // function mintBulk(address to, uint256[] memory tokenIds) public returns (bool) {596 function mintBulk(address to, uint256[] memory tokenIds) public returns (bool) {601 // require(false, stub_error);597 require(false, stub_error);602 // to;598 to;603 // tokenIds;599 tokenIds;604 // dummy = 0;600 dummy = 0;605 // return false;601 return false;606 // }602 }607603608 /// @notice Function to mint multiple tokens with the given tokenUris.604 /// @notice Function to mint multiple tokens with the given tokenUris.609 /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive605 /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutivepallets/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,705 /// should be obtained with `nextTokenId` method705 /// should be obtained with `nextTokenId` method706 /// @param to The new owner706 /// @param to The new owner707 /// @param tokenIds IDs of the minted RFTs707 /// @param tokenIds IDs of the minted RFTs708 #[solidity(hide)]708 // #[solidity(hide)]709 #[weight(<SelfWeightOf<T>>::create_multiple_items(token_ids.len() as u32))]709 #[weight(<SelfWeightOf<T>>::create_multiple_items(token_ids.len() as u32))]710 fn mint_bulk(&mut self, caller: caller, to: address, token_ids: Vec<uint256>) -> Result<bool> {710 fn mint_bulk(&mut self, caller: caller, to: address, token_ids: Vec<uint256>) -> Result<bool> {711 let caller = T::CrossAccountId::from_eth(caller);711 let caller = T::CrossAccountId::from_eth(caller);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(509 // function mintWithTokenURI(address to, uint256 tokenId, string memory tokenUri) public returns (bool) {510 address to,510 // require(false, stub_error);511 uint256 tokenId,511 // to;512 string memory tokenUri512 // tokenId;513 ) public returns (bool) {513 // tokenUri;514 require(false, stub_error);514 // dummy = 0;515 to;515 // return false;516 tokenId;516 // }517 tokenUri;518 dummy = 0;519 return false;520 }521517522 /// @dev Not implemented518 /// @dev Not implemented523 /// @dev EVM selector for this function is: 0x7d64bcb4,519 /// @dev EVM selector for this function is: 0x7d64bcb4,590 return 0;586 return 0;591 }587 }592588593 // /// @notice Function to mint multiple tokens.589 /// @notice Function to mint multiple tokens.594 // /// @dev `tokenIds` should be an array of consecutive numbers and first number590 /// @dev `tokenIds` should be an array of consecutive numbers and first number595 // /// should be obtained with `nextTokenId` method591 /// should be obtained with `nextTokenId` method596 // /// @param to The new owner592 /// @param to The new owner597 // /// @param tokenIds IDs of the minted RFTs593 /// @param tokenIds IDs of the minted RFTs598 // /// @dev EVM selector for this function is: 0x44a9945e,594 /// @dev EVM selector for this function is: 0x44a9945e,599 // /// or in textual repr: mintBulk(address,uint256[])595 /// or in textual repr: mintBulk(address,uint256[])600 // function mintBulk(address to, uint256[] memory tokenIds) public returns (bool) {596 function mintBulk(address to, uint256[] memory tokenIds) public returns (bool) {601 // require(false, stub_error);597 require(false, stub_error);602 // to;598 to;603 // tokenIds;599 tokenIds;604 // dummy = 0;600 dummy = 0;605 // return false;601 return false;606 // }602 }607603608 /// @notice Function to mint multiple tokens with the given tokenUris.604 /// @notice Function to mint multiple tokens with the given tokenUris.609 /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive605 /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutivetests/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(343 // function mintWithTokenURI(address to, uint256 tokenId, string memory tokenUri) external returns (bool);344 address to,345 uint256 tokenId,346 string memory tokenUri347 ) external returns (bool);348344349 /// @dev Not implemented345 /// @dev Not implemented350 /// @dev EVM selector for this function is: 0x7d64bcb4,346 /// @dev EVM selector for this function is: 0x7d64bcb4,389 /// or in textual repr: nextTokenId()385 /// or in textual repr: nextTokenId()390 function nextTokenId() external view returns (uint256);386 function nextTokenId() external view returns (uint256);391387392 // /// @notice Function to mint multiple tokens.388 /// @notice Function to mint multiple tokens.393 // /// @dev `tokenIds` should be an array of consecutive numbers and first number389 /// @dev `tokenIds` should be an array of consecutive numbers and first number394 // /// should be obtained with `nextTokenId` method390 /// should be obtained with `nextTokenId` method395 // /// @param to The new owner391 /// @param to The new owner396 // /// @param tokenIds IDs of the minted NFTs392 /// @param tokenIds IDs of the minted NFTs397 // /// @dev EVM selector for this function is: 0x44a9945e,393 /// @dev EVM selector for this function is: 0x44a9945e,398 // /// or in textual repr: mintBulk(address,uint256[])394 /// or in textual repr: mintBulk(address,uint256[])399 // function mintBulk(address to, uint256[] memory tokenIds) external returns (bool);395 function mintBulk(address to, uint256[] memory tokenIds) external returns (bool);400396401 /// @notice Function to mint multiple tokens with the given tokenUris.397 /// @notice Function to mint multiple tokens with the given tokenUris.402 /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive398 /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutivetests/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(341 // function mintWithTokenURI(address to, uint256 tokenId, string memory tokenUri) external returns (bool);342 address to,343 uint256 tokenId,344 string memory tokenUri345 ) external returns (bool);346342347 /// @dev Not implemented343 /// @dev Not implemented348 /// @dev EVM selector for this function is: 0x7d64bcb4,344 /// @dev EVM selector for this function is: 0x7d64bcb4,389 /// or in textual repr: nextTokenId()385 /// or in textual repr: nextTokenId()390 function nextTokenId() external view returns (uint256);386 function nextTokenId() external view returns (uint256);391387392 // /// @notice Function to mint multiple tokens.388 /// @notice Function to mint multiple tokens.393 // /// @dev `tokenIds` should be an array of consecutive numbers and first number389 /// @dev `tokenIds` should be an array of consecutive numbers and first number394 // /// should be obtained with `nextTokenId` method390 /// should be obtained with `nextTokenId` method395 // /// @param to The new owner391 /// @param to The new owner396 // /// @param tokenIds IDs of the minted RFTs392 /// @param tokenIds IDs of the minted RFTs397 // /// @dev EVM selector for this function is: 0x44a9945e,393 /// @dev EVM selector for this function is: 0x44a9945e,398 // /// or in textual repr: mintBulk(address,uint256[])394 /// or in textual repr: mintBulk(address,uint256[])399 // function mintBulk(address to, uint256[] memory tokenIds) external returns (bool);395 function mintBulk(address to, uint256[] memory tokenIds) external returns (bool);400396401 /// @notice Function to mint multiple tokens with the given tokenUris.397 /// @notice Function to mint multiple tokens with the given tokenUris.402 /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive398 /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutivetests/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 { "internalType": "uint256[]", "name": "tokenIds", "type": "uint256[]" }273 ],274 "name": "mintBulk",275 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],276 "stateMutability": "nonpayable",277 "type": "function"278 },269 {279 {270 "inputs": [280 "inputs": [271 { "internalType": "address", "name": "to", "type": "address" },281 { "internalType": "address", "name": "to", "type": "address" },294 "stateMutability": "nonpayable",304 "stateMutability": "nonpayable",295 "type": "function"305 "type": "function"296 },306 },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 },308 {307 {309 "inputs": [],308 "inputs": [],310 "name": "mintingFinished",309 "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 { "internalType": "uint256[]", "name": "tokenIds", "type": "uint256[]" }273 ],274 "name": "mintBulk",275 "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],276 "stateMutability": "nonpayable",277 "type": "function"278 },269 {279 {270 "inputs": [280 "inputs": [271 { "internalType": "address", "name": "to", "type": "address" },281 { "internalType": "address", "name": "to", "type": "address" },294 "stateMutability": "nonpayable",304 "stateMutability": "nonpayable",295 "type": "function"305 "type": "function"296 },306 },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 },308 {307 {309 "inputs": [],308 "inputs": [],310 "name": "mintingFinished",309 "name": "mintingFinished",