-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
Ks contract versioning #2951
Ks contract versioning #2951
Conversation
…conflicting dashboard migration files
Codecov Report
@@ Coverage Diff @@
## grants #2951 +/- ##
==========================================
+ Coverage 17.05% 30.5% +13.44%
==========================================
Files 175 181 +6
Lines 13864 13908 +44
Branches 1813 1815 +2
==========================================
+ Hits 2365 4242 +1877
+ Misses 11491 9533 -1958
- Partials 8 133 +125
Continue to review full report at Codecov.
|
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SaptakS @thelostone-mc do these migrations look ok to you?
@@ -112,6 +112,12 @@ class Meta: | |||
default='0x0', | |||
help_text=_('The contract address of the Grant.'), | |||
) | |||
contract_version = models.DecimalField( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we include a process for handling the ABI based on contract version, so it outputs the appropriate static URL or a given contract version..?
Also, we are we using a decimalfield if decimal_places=0
with max_digits=3
?
Can we switch this to a charfield? If we're going by semantic versioning, decimalfield won't make sense: 0.1.0
for example. If we're using integers like: 0
or 1
, we should use positiveintegerfield here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we switch this to a charfield? If we're going by semantic versioning, decimalfield won't make sense: 0.1.0 for example. If we're using integers like: 0 or 1, we should use positiveintegerfield here.
this makes sense to me
Should we include a process for handling the ABI based on contract version, so it outputs the appropriate static URL or a given contract version..?
as does this
Implemented contract versioning