This repository has been archived by the owner on Oct 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/precompile erc 721 transfer from (#129)
* create mock and testing * first test * testing ethereum reserved addresses * refactoring * refactoring * refactoring tests * fmt * erc721 starting point * fmt * compiling * check selectors * create trait Erc721 * Erc721Precompile * set mocks * first implermentation * first integration of erc721 in the runtime * fmt * check on the collection id * test on extract owner form asset_id * fix tests * test for erc721 trait * fix compilation * refactoring * returning address * return value is correctly encoded as a n Address * is_erc721_contract is not member of PrecompoileSet * test on precompiled contracts * erc721 returns hardcoded address * refactoring * testing return of asset ownership * fix errors * remove unused use * create collection got an uri * refactoring * rewriting testing mod * refactoring * moving check for cllection address in pallet * collection address prefix changed * test passing * test passing * refactoring tests * do not panic the runtime * fmt * solidity tokenId -> _tokenId * erc721 functions are views * update docs * sp-core in std , removed duplicate function * documentaetion * using compilator type ifer * compiler infer the size of the array * added to std feature * rename variable * trait documentation * using pallet errors * Erc721Error created * Erc721Error fix compilation * tests green * revise docuemntation * fmt * better name of constant * create collection has param uri * remove unused error * using sp-std * using sp-std * created CollectionBaseURI * created CollectionBaseURI * BaseURILimit is defined * insering the base uri * insering the base uri * base_uri is set in storage * create_collection trait has base_uri as param * living_assets_ownership pallet tests are green * tests passing * test on base_uri too long * removing use * use Vec * testing minimum arguments * create_collection has a BondedVec tokenURI * removed unued error * fix compilation * refactoring * refactoring * removed legacy doc * BaseURILimit type is not public * add transfer_from dummy tests and func definitions * traits have Error assiciated tyope * more generiuc signature * fix compilation * test moved where concreate impl is tested * removed harcoded buffer from tests * refactoring * checking for BaseURI bounds * add transfer_from sender and receiver checks * add dummy erc721 impl to pallet for compiling * erc721 transfer_from tests * erc721 precompile final tests * add transfer_from func signature to sol contract * WIP add getting initial owner for assets storage * add check to transfer_from precompile caller must be the owner * add transfer_from trait impl to pallet * fmt * owner_of trait return current owner * add remix test * use H160 instead of T::AcountId * change requests * add eth event * from u64 to H160 * wip * remove pallet_evm could from living asset pallet * change requests * change requests * change requests * change requests * change requests --------- Co-authored-by: Alessandro Siniscalchi <[email protected]>
- Loading branch information
1 parent
ee62088
commit f0284e4
Showing
8 changed files
with
393 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.