Skip to content

Commit

Permalink
Rename pallet-constraints to pallet-programs (#451)
Browse files Browse the repository at this point in the history
* Rename `pallet-constraints` to `pallet-programs`

* Update imports

* Rename constraints pallet folder to "programs"

* Update import paths

* Rename weight file

* Update lockfile

* Rename pallet in `construct_runtime`

* Update metadata

* Remove ACL and Architecture related code

* Remove `entropy-constraints` crate

Now that we've remove the ACL and Architecture code this isn't needed anymore.

* Move `ConstraintsError` to `user` module

* Update `subxt` calls to Program pallet

* Replace a bunch of "constraint"s with "program"s

* Same replacement, but for capitalized words

* Fix import name

* RustFmt

* Add a `CHANGELOG` entry

* RustFmt
  • Loading branch information
HCastano authored Oct 26, 2023
1 parent 519db3b commit bfa5dfb
Show file tree
Hide file tree
Showing 46 changed files with 193 additions and 789 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ At the moment this project **does not** adhere to
There are a few breaking changes in this release, mostly related to the APIs around Programs
(formerly Constraints).

Some notables changes introduced in [#428](https://github.com/entropyxyz/entropy-core/pull/428) and
[#433](https://github.com/entropyxyz/entropy-core/pull/433) are:
Some notables changes introduced in [#428](https://github.com/entropyxyz/entropy-core/pull/428),
[#433](https://github.com/entropyxyz/entropy-core/pull/433), and
[#451](https://github.com/entropyxyz/entropy-core/pull/451) are:

- The Constraint pallet's `update_v2_constraints` extrinsic has been renamed to `update_program`.
The extrinsic arguments remain unchanged
Expand All @@ -24,6 +25,7 @@ Some notables changes introduced in [#428](https://github.com/entropyxyz/entropy
- The Constraint pallet's `V2ConstraintLengthExceeded` error has been renamed to `ProgramLengthExceeded`
- The Relayer pallet's `register` extrinsic now takes a `Vec<u8>` as a program instead of an
`Option<Contraints>`
- The Constraints pallet has been renamed to the Programs pallet

### Added
- Proactive refresh ([#413](https://github.com/entropyxyz/entropy-core/pull/413))
Expand All @@ -36,6 +38,7 @@ Some notables changes introduced in [#428](https://github.com/entropyxyz/entropy
- Replace outdated `--ws-external` with `--rpc-external` ([#424](https://github.com/entropyxyz/entropy-core/pull/424))
- Place `demo_offence` dispatchable behind root origin check ([#426](https://github.com/entropyxyz/entropy-core/pull/426))
- Update `pallet-relayer` to use Contraints V2 ([#433](https://github.com/entropyxyz/entropy-core/pull/433))
- Rename `pallet-constraints` to `pallet-programs` ([#451](https://github.com/entropyxyz/entropy-core/pull/451))

### Removed
- Remove `is_swapping` from registration details ([#437](https://github.com/entropyxyz/entropy-core/pull/437))
Expand Down
Loading

0 comments on commit bfa5dfb

Please sign in to comment.