Any contribution that you make to this repository will be under the Apache 2 License, as dictated by that license:
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
Contributors must sign-off each commit by adding a Signed-off-by: ...
line to commit messages to certify that they have the right to submit
the code they are contributing to the project according to the
Developer Certificate of Origin (DCO).
- Update
go.mod
with the new version of allora-chain - If a new version of Transaction types were created (e.g. vA gets updated to vB):
- Update
defaultRegisterFuncs
oncodec/codec.go
, adding the register function of old version to the list (e.g. vA) - Update imports on
codec/codec.go
(at "OLD VERSIONS of MINT TRANSACTIONS" or "OLD VERSIONS of EMISSIONS TRANSACTIONS" sections) - Update
TestCodec_DefaultRegisterFuncs
test oncodec/codec_test.go
, inserting the new types (e.g. vB) to ensure full coverage. - Update the config files under
config/
with the new versions (e.g. vB) - Update
app/service/query.go
- Update
EmissionsServicePrefix
andMintServicePrefix
constants - Check if the names of the types did not change
- Update
- Update
- If a new version of Event types were created (e.g. vA gets updated to vB):
- Copy the old version of
events.pb.go
undercodec/allora-chain/x
(follow the structure of existing versions) - Add a silent import on codec/codec.go` (at "OLD VERSIONS of MINT EVENTS" or "OLD VERSIONS of EMISSIONS EVENTS" sections)
- Add a new test at
TestAllEventsAreRegistered
, ontests/integration/codec/codec_test.go
to ensure all event types are recognized. - Update the config files under
config/
with the new versions (e.g. vB)
- Copy the old version of