Comments (4)
Hmm, I ran into this issue as well when trying to deploy a new refresh contract in update. I think one way might be a way to add expected parameters, where those are simply used to assert that the contract has the correct default parameters corresponding to each constant index
refresh_contract_parameters:
p2s: 62TTAg5ZqAM7HwjB169cSSn844L2ZmMq4xjen6QcGt9Bb6ssYBgg3SNHuRiDqJmHYXbdgU179G5WiYPMq5VgUHDPbjHpDSE95sfKszRFXzLKkSUxrQTMR1f9Rohi1yLubR7XtZggBNteASRhCfiKZyuw1YuCzRyVPVdmfJ3D5W1Vf13oZ4doCivwHN8YgDii4WxqvsR3m1iKrv3eB3H8iSrqzmh2bPP5TUJ7oKfkk3vtgNXQwkioCE76Pmvy4scW4pMHqQxmjswDNCPdK2uHmqATKnKj6nkqJFgnTx8Y1Yn63h2wu8W6Lr1oYGE1JpcQqPnYeK2qmmFrHbQ9TjPm5ucdQSrHGXKm9fvcE41LxCmcsBU53AYb1CXmtepSGiK38vBW4CxsSnMcqug4PbiWZjjFypDFaysfpy9scFdgKtEQx5PV92dhfT7L1Xz39DUUsTWJ2yGf4GzeGsEuG6prTto9CNc7xX3BA89kDiJ872WMednh9pG1MFAwyW3S2LgPiF4UyxGBUYbmkbEZUCjVoFg4Mq26f5iBiqSatTgHFtqEbYPJ9tuAjq9vr7t3DTdxzfJ3xsgGxM7CrjA9Jn1ohbuUdYxzh6F1sanQgwr161PfGHufiU7Wx4gGJ6tLcf3Zh38SGS8EToHUs7mtBtmDWWWGRZXwhyEffTTZyGoRd68pj3E9dYUJs7sVmGZzYS6GtfY5ksrJEpmZ4dRxckrGf5haYNdixXQfNkEm2a5vEpfsm4Lg8Z78xGSozW
pool_nft_index: 17
oracle_token_id_index: 3
min_data_points_index: 13
min_data_points: 4
buffer_index: 21
buffer_length: 4
max_deviation_percent_index: 15
max_deviation_percent: 4
epoch_length_index: 0
epoch_length: 30
expected_parameters:
max_deviation_percent: 5
epoch_length: 30
buffer_length:4
re-designate them to be treated as new parameters on bootstrap or expected parameters in all other cases. Distinguish via two methods in *Contract (load/create?)
I like this option, bootstrap can generate P2S addresses in final oracle_config.yaml with the custom parameters set.
from oracle-core.
@dusek I'm leaning toward the second option as well. More so, I'm thinking of generating new p2s for updated contracts on bootstrap and afterward treat all contract parameter values from the config as expected. So that after the bootstrap, the config has p2s precisely the same as boxes on-chain.
from oracle-core.
@dusek I'm leaning toward
@greenhat you probably meant @SethDusek instead ;-)
from oracle-core.
@dusek I'm leaning toward
@greenhat you probably meant @SethDusek instead ;-)
Yes! Sorry for the ping and thank you for letting me know!
from oracle-core.
Related Issues (20)
- Posting datapoint txs for 11, 12, 16 minutes without success HOT 1
- Missing my ballot token on the XAU/ERG pool on testnet HOT 1
- Possible error on update-pool in case of changing the update contract parameters (i.e. min_votes) HOT 1
- Suggest changes to ballot contract to allow ballot token owners to spend ballot boxes without any requirements HOT 2
- Bootstrap a new pool for ERG/XAU on testnet HOT 1
- Pool health OK for a first few minutes while running bootstrapped pool with only 1 oracle
- In oracle boxes scan filter out non-oracle boxes guarded by non-oracle-contract (PK wallets, etc.)
- Return 503 HTTP error for pool and oracle health endpoints when it's down
- Refresh NFT error in pool box after updating min_votes HOT 1
- Better error messages when config files loading failed
- Oracle health OK but the last posted box is 65 blocks old (epoch length is 35)
- Pool health DOWN but active oracle count is not changed
- For status base url use explorer.ergoplatform.com instead of api.ergoplatform.com
- Docker Hub Repo link broken
- Recommended way to run oracle-core when already running full ergo node? HOT 2
- Add CLI switch to auto approve "extract-reward-tokens" command HOT 2
- Add claimable reward token metrics to the Prometheus metrics endpoint HOT 1
- Scan Issue HOT 4
- Failed to found my own oracle box in the filtered posted oracle boxes HOT 10
- Add scan start blockheight parameter in config HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oracle-core.