Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Region pallet #33

Merged
merged 86 commits into from
Apr 24, 2024
Merged

Region pallet #33

merged 86 commits into from
Apr 24, 2024

Conversation

Szegoo
Copy link
Member

@Szegoo Szegoo commented Mar 11, 2024

Region pallet

The pallet responsible for handling all the region related logic.

Regions are reserve transferred from the Coretime chain to the RegionX parachain. Upon transferring regions to the parachain the AssetTransactor on RegionX should call the mint_into extrinsic which will create an ISMP get request to fetch the region record.

The region pallet will handle the callback from the ISMP module, which will result in setting the region record on the parachain.

It is expected that users will self-relay, by running an ISMP get request handler in the browser. This request handler will be embedded in the RegionX frontend app so the user doesn't have to worry about any of this.

TODOs:

  • Write tests
  • Add events
  • Write benchmarks
  • Generate Weights
  • Add license text to each new file
  • E2E test (separate PR)
  • Add region asset transactor (separate PR)

Closes: #12

cuteolaf and others added 6 commits April 17, 2024 22:31
Szegoo and others added 4 commits April 19, 2024 14:13
* weights for pallet-regions

* add header and template to weights

---------

Co-authored-by: Sergej <[email protected]>
pallets/regions/src/lib.rs Outdated Show resolved Hide resolved
pallets/regions/src/lib.rs Show resolved Hide resolved
pallets/regions/src/lib.rs Show resolved Hide resolved
pallets/regions/src/nonfungible_impls.rs Show resolved Hide resolved
pallets/regions/src/nonfungible_impls.rs Show resolved Hide resolved
pallets/regions/src/nonfungible_impls.rs Show resolved Hide resolved
Szegoo and others added 7 commits April 20, 2024 12:28
* test owner

* refactor

* test method: attribute

* test nonfungible transfer

* cargo fmt

* update test for on_timeout

* WIP: tests for on_response

* fix test for invalid id and record

---------

Co-authored-by: Sergej <[email protected]>
@Szegoo Szegoo merged commit baeee1c into main Apr 24, 2024
3 of 4 checks passed
@cuteolaf cuteolaf deleted the region-pallet branch April 29, 2024 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pallet substrate frame pallet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regions pallet
2 participants