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

Set up an oracle account on deployment of a network #1725

Merged
merged 5 commits into from
Nov 18, 2019
Merged

Conversation

yerdua
Copy link
Contributor

@yerdua yerdua commented Nov 14, 2019

Description

This PR does the setup for an oracle account on a testnet. It adds a new type of account that has its address and private key generated from the mnemonic. This account is included as an oracle for StableToken in the migration overrides that are set when deploying with celotool. By being included in that set, it is whitelisted as an oracle, and funded in the genesis block to cover transaction fees.

Tested

I deployed a testnet with these changes, and verified that I was able to report values from that oracle account successfully.

Related issues

@yerdua yerdua added protocol All issues relating to protocol packages celotool labels Nov 14, 2019
@yerdua yerdua changed the title Whitelist an oracle account and fund it in the genesis block Set up an oracle account on deployment of a network Nov 14, 2019
@nambrot nambrot assigned yerdua and unassigned nambrot Nov 14, 2019
@codecov
Copy link

codecov bot commented Nov 15, 2019

Codecov Report

Merging #1725 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #1725    +/-   ##
========================================
  Coverage   74.26%   74.26%            
========================================
  Files         277      277            
  Lines        7617     7617            
  Branches      953      669   -284     
========================================
  Hits         5657     5657            
  Misses       1845     1845            
  Partials      115      115
Flag Coverage Δ
#mobile 74.26% <ø> (ø) ⬆️
Impacted Files Coverage Δ
packages/mobile/src/identity/verification.ts 66.14% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc51087...f25fd56. Read the comment docs.

@yerdua yerdua merged commit 7abb9b5 into master Nov 18, 2019
@yerdua yerdua deleted the yerdua/oracle-setup branch November 18, 2019 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
celotool protocol All issues relating to protocol packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants