pooltogether / contract-list-schema Goto Github PK
View Code? Open in Web Editor NEWA package for maintaining protocol deployments & ABIs
License: MIT License
A package for maintaining protocol deployments & ABIs
License: MIT License
Contracts follow individual semver versioning with no direct link to what parent global version was used during deployment.
For example, when deploying a new PrizeTierHistory the version will go from 1.1.0
to 1.2.0
.
But as of right now, there is no way of knowing if PrizeTierHistoryv1.2.0 is used in Global.v1.1.0/v1.2.0/v.1.3.0/v1.4.0.
While not a problem at the moment because generally contracts are updated in succession and contracts are deprecated, so we can generally assume the latest ones are compatible with the latest major version.
But if we start deploying that we still need to support (even though they might be deprecated) it would be nice to future proof reverse lookups, so it's possible to find all child contracts used in (for example v1.4.0) and ensure the proper contracts are being used instead of optimistically determining the correct pairing of contracts.
The easiest solution (discussed with @dylandesrosier) could be to add an additional field to the Contract
definition that tracks the major version during deployment.
Example
{
chainId: 1,
address: 0x000.000,
deployVersion: 1.4.0,
version: {
"major":1,
"minor":1,
"patch":0
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.