Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

[release] runtime 6 -> main #151

Merged
merged 17 commits into from
Sep 4, 2023
Merged

[release] runtime 6 -> main #151

merged 17 commits into from
Sep 4, 2023

Conversation

asiniscalchi
Copy link
Member

No description provided.

asiniscalchi and others added 17 commits August 29, 2023 09:23
* 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

* add AccountMapping impl to pallet config

* add initial_owner fn to AssetId

* AccountMapping only have AccountId as generic

* AccountMapping runtime test

* add AssetIdToAddress impl

* fix test after merge

* fix test after merge and docs

* use Convert substrate trait

* use Convert substrate trait when parsing from address to account id

* fmt

* fix

* fmt

* change requests

* fmt

---------

Co-authored-by: Alessandro Siniscalchi <[email protected]>
…tranfer_from

Use correct asset_id at transfer from event
…epaper

Added link to whitepaper in README
@asiniscalchi asiniscalchi merged commit 5ca187e into main Sep 4, 2023
@asiniscalchi asiniscalchi deleted the release/runtime-6 branch September 4, 2023 10:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants