-
Notifications
You must be signed in to change notification settings - Fork 38
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
[700 SigmaUSD] Contracts with new parameters #30
Comments
I'll do this, since I've indirectly started this issue in #57. |
@greenhat the line count for this PR keeps climbing. I just got a quick question for ergo box validation. Take the ballot box for example. The UTXO set-scan for this box has the following scanning criteria Lines 242 to 257 in ed8aa41
Now within |
Oh wow! That's quite a rabbit hole. I'm upping the bounty. Yes, I think we should check in the constructor for the required properties (regs and whatnot). Today we received the boxes from this scan, but tomorrow that might come from a different source. |
Thank you! I'll continue adding the checks. Some more issues to consider:
|
I agree that the config file becomes the source of truth. However, in the case of operator voting, it's too early to update the conf file since the actual change in the boxes and contracts will occur after the update box operation. Since it's a very rare operation (voting and updating the pool box/contract), I'd leave it for operators to manually change the conf file. At least for v2.0. We can automate it later if necessary.
I'm not sure I get it right. If in the above context, then it's not necessary. |
Got it, thanks! |
Sure. I believe it could even make the PR smaller. :) |
It will definitely be cleaner code! Maybe lines of code will be similar. I'm opting not to implement #[serde(
try_from = "TypeYaml",
into = "TypeYaml"
)] where |
Oh yes, I remember first seeing you do this in |
The bounty is sent. Thank you! |
After #28
1. Make contract instancesstatic
vialazy_static
(see existingORACLE_CONFIG
).with_*
calls);Scan
. We cannot panic since we could be in the middle of updating contracts/boxes via voting.EDIT:
static
contract instances are not viable since we need to be able to pass(inject) contract instances in tests without config file.The text was updated successfully, but these errors were encountered: