-
Notifications
You must be signed in to change notification settings - Fork 0
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
♻️ Split seda-chain-contracts
into DataRequests
and Staking
#61
Conversation
2ed2451
to
c7a23d4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the focus was mostly on splitting the contracts and that looks fine as far as I can tell.
/// Posts a data result of a data request with an attached hash of the answer and salt. | ||
/// This removes the data request from the pool and creates a new entry in the data results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this comment is no longer accurate?
/// Posts a data result of a data request with an attached result. | ||
/// This removes the data request from the pool and creates a new entry in the data results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, but I guess the focus is on splitting stuff in this PR 😅
@@ -136,7 +137,7 @@ jobs: | |||
devAccount=${{ env.DEV_ACCOUNT }} | |||
if [[ "${{ github.event.inputs.contract }}" != "proxy_contract" ]]; then | |||
proxy=${{ github.event.inputs.proxy }} | |||
OUTPUT=$(./seda-chaind tx wasm instantiate ${{ env.code_id }} '{"token":"aseda","proxy":"${proxy}"}' --no-admin --from ${devAccount} --node ${nodeUrl} --keyring-dir . --keyring-backend test --label ${{ env.code_id }} --gas-prices 0.1aseda --gas auto --gas-adjustment 1.3 -y --output json) | |||
OUTPUT=$(./seda-chaind tx wasm instantiate ${{ env.code_id }} '{"token":"aseda", "proxy": ${{ toJSON(github.event.inputs.proxy) }} }' --no-admin --from ${devAccount} --node ${nodeUrl} --keyring-dir . --keyring-backend test --label ${{ env.code_id }} --gas-prices 0.1aseda --gas auto --gas-adjustment 1.3 -y --output json) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha nice!
Motivation
To facilitate separation of concerns and easier upgradability.
Explanation of Changes
seda-chain-contracts
intoDataRequests
andStaking
check_eligibility
inDataRequests
to use a cross-contract query to the proxy to check whether a DR executor is eligibleTesting
Moved some unit tests involving commit/reveal to integration tests, since they require active data request executors
Related PRs and Issues
Closes #56