Skip to content

Conversation

0Tech
Copy link
Collaborator

@0Tech 0Tech commented Apr 11, 2023

Description

This patch would make the events deterministic and add the corresponding tests. The target modules are:

  • x/foundation
  • x/token
  • x/collection

closes: #962

Checklist:

  • I followed the contributing guidelines and code of conduct.
  • I have added a relevant changelog to CHANGELOG.md
  • I have added tests to cover my changes.
  • I have updated the documentation accordingly.
  • I have updated API documentation client/docs/swagger-ui/swagger.yaml

@0Tech 0Tech added A: improvement Changes in existing functionality C:x/collection C:x/token C:x/foundation x/foundation module labels Apr 11, 2023
@0Tech 0Tech self-assigned this Apr 11, 2023
@codecov
Copy link

codecov bot commented Apr 11, 2023

Codecov Report

Merging #963 (3ae1833) into rc/v0.47.0-alpha1 (88c4242) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@                  Coverage Diff                  @@
##           rc/v0.47.0-alpha1     #963      +/-   ##
=====================================================
+ Coverage              62.51%   62.53%   +0.02%     
=====================================================
  Files                    655      655              
  Lines                  79939    79998      +59     
=====================================================
+ Hits                   49970    50029      +59     
  Misses                 27286    27286              
  Partials                2683     2683              
Impacted Files Coverage Δ
x/collection/event.go 100.00% <100.00%> (ø)
x/token/event.go 100.00% <100.00%> (ø)

@0Tech 0Tech marked this pull request as ready for review April 11, 2023 10:08
loin3
loin3 previously approved these changes Apr 11, 2023
@zemyblue zemyblue linked an issue Apr 12, 2023 that may be closed by this pull request
zemyblue
zemyblue previously approved these changes Apr 12, 2023
@0Tech 0Tech dismissed stale reviews from zemyblue and loin3 via 88fe2d3 April 12, 2023 05:30
@0Tech 0Tech requested review from zemyblue and loin3 April 12, 2023 05:39
@0Tech 0Tech requested a review from jaeseung-bae April 13, 2023 01:49
@0Tech 0Tech merged commit f656c7a into Finschia:rc/v0.47.0-alpha1 Apr 13, 2023
@0Tech 0Tech deleted the event-determinism branch April 13, 2023 02:12
zemyblue added a commit to zemyblue/finschia-sdk that referenced this pull request Apr 21, 2023
* rc/v0.47.0-alpha1: (34 commits)
  ci: update docker action (Finschia#983)
  fix: revert Finschia#952 (Finschia#984)
  refactor: refactor x/token,collection query errors (Finschia#980)
  fix: not to throw error when no txs in block (Finschia#982)
  chore: change import path to `github.com/Finschia/finschia-sdk` (Finschia#970)
  fix: remove legacy events on x/collection and x/token (Finschia#966)
  chore: provide specific error messages on x/collection queries (Finschia#965)
  fix: check event determinism on original modules (Finschia#963)
  fix: refactor queries of x/collection and x/token (Finschia#957)
  chore: address generation of the empty coins in x/foundation (Finschia#952)
  fix: do not loop enum in x/collection (Finschia#961)
  fix: fix default next class ids of x/collection (Finschia#960)
  fix: revert Finschia#955 and add Query/HasParent into x/collection (Finschia#959)
  fix: replace query errors on the original modules into gRPC ones (Finschia#956)
  fix: return nil where the parent not exists in x/collection Query/Parent (Finschia#955)
  fix: remove duplicated events in x/collection Msg/Modify (Finschia#954)
  fix: allow zero amount of coin in x/collection Query/Balance (Finschia#953)
  fix: unpack proposals in x/foundation import-genesis (Finschia#947)
  fix: fix broken x/foundation invariant on treasury (Finschia#946)
  docs: update comments in the x/token,collection events proto (Finschia#944)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: improvement Changes in existing functionality C:x/collection C:x/foundation x/foundation module C:x/token
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Event determinism on x/token and x/collection
4 participants