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

feat: register system contracts on initChain #182

Merged
merged 21 commits into from
Jan 13, 2022
Merged

Conversation

jawid-h
Copy link
Collaborator

@jawid-h jawid-h commented Jan 9, 2022

Issue being fixed or feature implemented

To simplify system data contract setup and registration and be able to use them right away. Registration is now moved to initChain method of drive.

What was done?

  • implemented systemIds for system data contracts containing contractId and ownerId predefined
  • added DPNS_MASTER_PUBLIC_KEY, DASHPAY_MASTER_PUBLIC_KEY, FEATURE_FLAGS_MASTER_PUBLIC_KEY, MASTERNODE_REWARD_SHARES_MASTER_PUBLIC_KEY env varibales to Drive to be able to set them as master keys for system data contract identities
  • updated Dashmate to handle all that

How Has This Been Tested?

  • local env
  • unit and integration tests
  • test suite tests

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@lgtm-com
Copy link

lgtm-com bot commented Jan 9, 2022

This pull request introduces 6 alerts when merging fac858a into dd6d9ee - view on LGTM.com

new alerts:

  • 6 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Jan 9, 2022

This pull request introduces 6 alerts when merging 09a458d into dd6d9ee - view on LGTM.com

new alerts:

  • 6 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Jan 10, 2022

This pull request introduces 6 alerts when merging 09ee728 into 0ca47a4 - view on LGTM.com

new alerts:

  • 6 for Unused variable, import, function or class

@jawid-h jawid-h marked this pull request as ready for review January 12, 2022 14:20
@jawid-h jawid-h requested a review from antouhou as a code owner January 12, 2022 14:20
@jawid-h jawid-h requested a review from shuplenkov January 12, 2022 14:24
@jawid-h jawid-h requested a review from shumkov January 13, 2022 11:43
@jawid-h jawid-h requested a review from shumkov January 13, 2022 14:01
Copy link
Member

@shumkov shumkov left a comment

Choose a reason for hiding this comment

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

Great job, mate! 👍

@jawid-h jawid-h merged commit a846ce2 into v0.22-dev Jan 13, 2022
@jawid-h jawid-h deleted the feat/system-contracts branch January 13, 2022 14:27
thephez added a commit to thephez/platform-tutorial-testing that referenced this pull request Jan 25, 2022
@shumkov shumkov added this to the v0.22.0 milestone Feb 1, 2022
thephez added a commit to thephez/platform-tutorial-testing that referenced this pull request Mar 3, 2022
thephez added a commit to thephez/platform-tutorial-testing that referenced this pull request Mar 28, 2022
* chore: update to 0.22-dev dependencies

* feat: switch to devnet

* fix: use renamed contract publish method

* feat!: add newly required name to contract index

* chore: update DPNS contract ID

* chore: update DPNS contract id

* chore: update dependency

* feat: add client without wallet for read only ops

* feat!: don't override DPNS contract id

no longer necessary due to dashpay/platform#192 and dashpay/platform#182

* feat: add update contract test (disabled)

* test: enable contract update test that doesn't work

* fix: temporary fix for contract cache issue

To be removed after next release of platform 0.22-dev

* fix: correct assert check

* chore: remove some commented out sections

* ci: update node version to 14 and comment out DPNS contract ID

* chore: update ip

* chore: update dependencies

* chore: update some timeouts

* fix: use a non-dust value

* feat: add test queries

* feat: add query test

* refactor: remove a describe layer

minor description updates also

* feat: use seed node instead of IP for client

* feat: add query tests for <, <=, >, >= both asc/desc

* feat: added both asc/desc test for startsWith, startAt, and startAfter

* feat: set default orderby and add limit param with default

* refactor: categorize queries

* feat: expand cases for startAt

* refactor: change test structure

* test: fix check for startsWith queries

* chore: update params

* test: re-enable some tests and fix

* chore: update dependencies to dev.14

* refactor: move queries into own folder

* chore: update timeouts and return additional info

* chore: bump dependencies to dev.16

* ci: enable remaining tests and update params

* feat: update to v0.22 dash dependencies

* feat: switch back to testnet and disable test not used in v0.22

* feat: switch query test to testnet and update params
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.

2 participants