Skip to content
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

feat: Votes sum invariant #330

Merged
merged 148 commits into from
Jun 8, 2021
Merged
Show file tree
Hide file tree
Changes from 145 commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
e31c19a
adding RegisterInvariants to Configuration
likhita-809 Feb 22, 2021
6d2092a
fixing failed tests
likhita-809 Feb 22, 2021
9c19e84
fix failing tests
likhita-809 Feb 23, 2021
1e51704
fix lint issues
likhita-809 Feb 23, 2021
a5338df
add-TallyVotesInvariant
likhita-809 Feb 26, 2021
f353d41
remove temp
likhita-809 Feb 26, 2021
89a43db
fix lint issues
likhita-809 Feb 26, 2021
74aabf7
Merge branch 'master' of github.com:regen-network/regen-ledger into l…
likhita-809 Mar 1, 2021
0a64ab2
adding invariants
likhita-809 Mar 2, 2021
ad719bf
changes to invariant
likhita-809 Mar 2, 2021
0c1556a
fix lint issues
likhita-809 Mar 2, 2021
822d61d
addressing requested changes
likhita-809 Mar 4, 2021
a60f625
"Remove getAllProposals"
likhita-809 Mar 4, 2021
fd08c73
"Remove invariant.go"
likhita-809 Mar 4, 2021
3f6c079
"Change naming conventions"
likhita-809 Mar 4, 2021
96c61f2
"Fix lint issues"
likhita-809 Mar 4, 2021
ec7fba5
Merge branch 'master' into likhita/add-invariants
likhita-809 Mar 4, 2021
8f39c1e
change naming conventions
likhita-809 Mar 5, 2021
d223200
"Change naming conventions"
likhita-809 Mar 5, 2021
23c0167
Merge branch 'master' into likhita/add-invariants
likhita-809 Mar 5, 2021
d62f5e9
Merge branch 'master' into likhita/add-invariants
likhita-809 Mar 6, 2021
76be926
Merge branch 'master' into likhita/add-invariants
likhita-809 Mar 6, 2021
ef878de
Merge branch 'master' into likhita/add-invariants
anilcse Mar 8, 2021
68a0e0f
Update types/module/server/manager.go
likhita-809 Mar 9, 2021
af62bac
Update types/module/server/manager.go
likhita-809 Mar 9, 2021
95f27b3
Update types/module/server/manager.go
likhita-809 Mar 9, 2021
6783ecd
Update types/module/server/manager.go
likhita-809 Mar 9, 2021
94e8b93
Update types/module/server/manager.go
likhita-809 Mar 9, 2021
3b8328e
Update types/module/server/manager.go
likhita-809 Mar 9, 2021
3dd8029
Update x/group/server/server.go
likhita-809 Mar 9, 2021
7c3ebe5
Update types/module/server/module.go
likhita-809 Mar 9, 2021
09c1dde
Update x/group/server/invariants.go
likhita-809 Mar 9, 2021
a365a4b
Update x/group/server/invariants.go
likhita-809 Mar 9, 2021
bd7b116
Update x/group/server/invariants.go
likhita-809 Mar 9, 2021
bc555a9
Update invariants and fix naming conventions
likhita-809 Mar 9, 2021
7b9886b
update naming convetions
likhita-809 Mar 9, 2021
30e9857
update types/module/server/manager.go
likhita-809 Mar 9, 2021
1a11a87
Fix failed tests
likhita-809 Mar 9, 2021
849a31b
fix failing tests
likhita-809 Mar 9, 2021
0062f9d
fix failed tests
likhita-809 Mar 9, 2021
594c142
WIP
likhita-809 Mar 9, 2021
d790e96
changes to manager
likhita-809 Mar 9, 2021
b257000
fix failed tests
likhita-809 Mar 9, 2021
3bd1dcf
Update invariants in group module
likhita-809 Mar 10, 2021
f16a4c2
Update x/group/server/invariants.go
likhita-809 Mar 10, 2021
cd739de
changes to invariants
likhita-809 Mar 10, 2021
3a4f33c
Change naming convention for invariants
likhita-809 Mar 18, 2021
4a0f031
Remove `invariant` as param in types/module/server/testutil.go
likhita-809 Mar 18, 2021
42763c9
Remove `invar` in `FixtureFactory`
likhita-809 Mar 18, 2021
7daac2e
Code cleaning
likhita-809 Mar 18, 2021
f5df08b
Implement tallyVotesInvariant without using serverImpl
likhita-809 Mar 19, 2021
e4327fc
invariant test in progress
likhita-809 Mar 20, 2021
a45380d
invariant test in progress
likhita-809 Mar 20, 2021
30386f8
Invariants test in progress
likhita-809 Mar 20, 2021
074e9bc
Modify invariants
likhita-809 Mar 22, 2021
9e31ebf
change invariants
likhita-809 Mar 23, 2021
7bc6181
invariants test in progress
likhita-809 Mar 26, 2021
1910ed9
fix invariants
likhita-809 Mar 26, 2021
308f639
Invariants test added
likhita-809 Mar 26, 2021
16b5832
resolve merge conflict
likhita-809 Mar 26, 2021
60ac9b2
update files
likhita-809 Mar 26, 2021
52a0eb1
fix failed tests
likhita-809 Mar 26, 2021
17edac2
fix failed tests
likhita-809 Mar 26, 2021
c5e5e72
fix
likhita-809 Mar 26, 2021
9fb38fd
fix errors
likhita-809 Mar 26, 2021
5fd97fb
fix errors
likhita-809 Mar 26, 2021
b7ea6f3
Register Invariants in configurator
likhita-809 Mar 26, 2021
58d65e5
remove serverImpl in invariants test
likhita-809 Mar 30, 2021
09568a6
add table tests for invariants
likhita-809 Mar 30, 2021
d647651
change table test name
likhita-809 Mar 30, 2021
9910747
change params in tallyVotesInvariant func
likhita-809 Mar 30, 2021
adbc7e5
add changes to invariants_test
likhita-809 Mar 30, 2021
9e75372
Merge branch 'master' of https://github.com/regen-network/regen-ledge…
likhita-809 Mar 30, 2021
5e4754e
update stable_appconfig
likhita-809 Mar 30, 2021
89227a0
change GroupAccount filed to Address
likhita-809 Mar 30, 2021
42dcecf
address changes
likhita-809 Mar 30, 2021
d7806b1
Update with CacheContext
likhita-809 Mar 30, 2021
9ba1404
remove unnecessary code
likhita-809 Mar 31, 2021
c8c69be
resolve requested changes
likhita-809 Mar 31, 2021
71b1d89
remove redundant return in experimental_appconfig
likhita-809 Mar 31, 2021
df3e7f4
address requested changes
likhita-809 Apr 1, 2021
be7952c
remove AllInvariants function
likhita-809 Apr 1, 2021
7ef6cb5
changes to invariant
likhita-809 Apr 2, 2021
97c8c7c
remove unncessary changes
likhita-809 Apr 2, 2021
15ce9a9
add votesInvariant const
likhita-809 Apr 2, 2021
084c33b
add tallyTotalWeightInvariant
likhita-809 Apr 3, 2021
b340653
change naming conventions in tallyTotalWeightInvariant
likhita-809 Apr 3, 2021
a2df03e
fix lint issues
likhita-809 Apr 3, 2021
8bbd8e4
fix something
likhita-809 Apr 5, 2021
622565d
change naming conventions and add improvements to invariants
likhita-809 Apr 8, 2021
c520fd6
fix lint issue
likhita-809 Apr 8, 2021
2da5355
fix lint issues
likhita-809 Apr 8, 2021
c29b9d1
changes in groupTotalWeightInvariant
likhita-809 Apr 8, 2021
ead7312
code refactoring in invariants_Test
likhita-809 Apr 9, 2021
4f1b50d
changes in invariants_test
likhita-809 Apr 9, 2021
5503918
remove ReadAll and add LoadNext in invariants
likhita-809 Apr 12, 2021
d8316df
close iterator
likhita-809 Apr 12, 2021
6d4af82
fix lint issues
likhita-809 Apr 12, 2021
51c239d
changes to invariants
likhita-809 Apr 14, 2021
ee43a70
use groupIt with LoadNext
likhita-809 Apr 14, 2021
9f00995
remove unecessary lines
likhita-809 Apr 14, 2021
51dcff5
refactoring code
likhita-809 Apr 15, 2021
32bd9e4
refactor code
likhita-809 Apr 15, 2021
5878b58
fix lint issues
likhita-809 Apr 15, 2021
24330fc
add proposal tally invariant
likhita-809 Apr 22, 2021
81a57bf
changes to invariants
likhita-809 Apr 22, 2021
cdf570e
Merge branch 'master' of https://github.com/regen-network/regen-ledge…
likhita-809 Apr 22, 2021
6b8caa1
merge changes
likhita-809 Apr 22, 2021
2cb4854
fix lint issues
likhita-809 Apr 22, 2021
5a9a78c
fix lint issues and add more invariant tests for proposalTallyInvariant
likhita-809 Apr 22, 2021
2824adb
change naming conventions
likhita-809 Apr 22, 2021
e4e8f8c
address naming convention changes
likhita-809 Apr 23, 2021
288018a
wip invariants
likhita-809 Apr 26, 2021
029788d
wip invariants
likhita-809 Apr 27, 2021
b5dd71d
wip invariants
likhita-809 Apr 27, 2021
d9d3ece
add new index to groupaccount
likhita-809 Apr 27, 2021
dd52d55
add propsal tally invariant and its tests
likhita-809 Apr 28, 2021
0babe99
refactor code in invariants_test
likhita-809 Apr 28, 2021
9610b3d
changes to invariants and invariants_test
likhita-809 Apr 28, 2021
ee4d6f9
reset vote variables after tally of each proposal
likhita-809 Apr 29, 2021
f58289e
code refactoring in invariants
likhita-809 Apr 30, 2021
928aab2
nit fixes
likhita-809 Apr 30, 2021
6b12872
Merge branch 'master' of https://github.com/regen-network/regen-ledge…
likhita-809 May 12, 2021
a95d842
tidy go.mod
likhita-809 May 12, 2021
50a78a3
tidy go mod in group module
likhita-809 May 12, 2021
beff6e0
wip: find simulation failing error
likhita-809 May 12, 2021
499bbbd
wip: check for error
likhita-809 May 12, 2021
0cd6cfd
wip: check somthing
likhita-809 May 12, 2021
9bd7895
clear logs
likhita-809 May 12, 2021
711bb23
address requested changes
likhita-809 May 12, 2021
8519dec
fix something
likhita-809 May 12, 2021
9d644b9
find failing simulations cause
likhita-809 May 12, 2021
faadbb7
wip: check something
likhita-809 May 12, 2021
97b5da1
try fixing failed simulation
likhita-809 May 13, 2021
17ad17b
code cleaning
likhita-809 May 13, 2021
83036bf
Merge branch 'master' of https://github.com/regen-network/regen-ledge…
likhita-809 May 19, 2021
fbd4680
fix: review changes
likhita-809 May 19, 2021
ec84472
fix in invariants
likhita-809 May 19, 2021
9465daa
restrict votesSumInvariant to active proposals and add relative tests
likhita-809 May 20, 2021
e9374c8
remove panic errors on all group invariants by adding relevant msgs a…
likhita-809 May 20, 2021
176ad91
address review comments
likhita-809 May 21, 2021
b7759e6
remove unused slices from x/group/server/invariants_test.go
likhita-809 May 21, 2021
98d86be
Merge branch 'master' of https://github.com/regen-network/regen-ledge…
likhita-809 May 21, 2021
d44e9d5
Merge branch 'master' of https://github.com/regen-network/regen-ledge…
likhita-809 Jun 1, 2021
3e1ca4c
specify error in the returned msgs for group invariants
likhita-809 Jun 2, 2021
fd33c28
fix small nits
likhita-809 Jun 3, 2021
0f0d384
Merge branch 'master' into likhita/proposal-tally-invariant
amaury1093 Jun 7, 2021
b04e6dd
Merge branch 'master' into likhita/proposal-tally-invariant
amaury1093 Jun 8, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
github.com/cosmos/cosmos-sdk v0.43.0-beta1 h1:cfRZY+opamo+zF+MuEbvriZwoSzfCuEh1fqUM8fFHbg=
github.com/cosmos/cosmos-sdk v0.43.0-beta1/go.mod h1:rpCPaC3MnityU4Io4CDZqZB4GMtPqNeYXxPk8iRqmYM=
github.com/cosmos/cosmos-sdk v0.43.0-beta1.0.20210520130629-fbb50cfa0a43 h1:50vB4gU07eqPc3LqzBOYXxXt7uiwkzsBMF/q9mms7UY=
github.com/cosmos/cosmos-sdk v0.43.0-beta1.0.20210520130629-fbb50cfa0a43/go.mod h1:rpCPaC3MnityU4Io4CDZqZB4GMtPqNeYXxPk8iRqmYM=
Expand Down
Loading