Code Monkey home page Code Monkey logo

contract-list-schema's People

Contributors

dylandesrosier avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

isabella232

contract-list-schema's Issues

Question: Track Global Deploy Version on Individual Contracts?

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
  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.