Skip to content

Erc721 transactor#9855

Closed
aleGiannini wants to merge 2 commits intoparitytech:masterfrom
aleGiannini:erc721-transactor
Closed

Erc721 transactor#9855
aleGiannini wants to merge 2 commits intoparitytech:masterfrom
aleGiannini:erc721-transactor

Conversation

@aleGiannini
Copy link
Copy Markdown

Partially addresses #7523

As with the Erc20AssetTransactor implementation #7762 , I implemented the equivalent for ERC-721, including test smart contracts; I also added a nonfungibles::* implementation useful for inspection and minting in tests.

Implemented ERC721 XCM transactor (not yet tested end-to-end).
Imported IERC721 standard via alloy_core::sol!("src/IERC721.sol").
Added ERC721 fixture contracts compiled for PolkaVM.
Created tests that deploy and interact with the ERC721 contracts in impl_nonfungibles
@cla-bot-2021
Copy link
Copy Markdown

cla-bot-2021 bot commented Sep 28, 2025

User @aleGiannini, please sign the CLA here.

pub const ERC721TransferGasLimit: Weight = Weight::from_parts(1_000_000_000, 200_000);
pub const ERC721TransferStorageDepositLimit: Balance = 25_000_000_000;
pub ERC721TransfersCheckingAccount: AccountId = PalletId(*b"py/revch").into_account_truncating();
}
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the withdraw tests the gas_consumed was ≈ 881M and storage_deposit ≈ 20B.
In the deposit tests the gas_consumed was ≈ 881M and storage_deposit ≈ 10B.
I setted the gas limit at 1B and the storage deposit limit at 25B.
@franciscoaguirre Could this be correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant