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

Merge QGB feature branch into main #742

Merged
merged 96 commits into from
Sep 23, 2022
Merged
Show file tree
Hide file tree
Changes from 90 commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
7c0e453
Adds remaining messages and queries to QGB skeleton scaffolding (#212)
rach-id Feb 16, 2022
59176d3
adds valset confirm logic and queries (#215)
rach-id Feb 18, 2022
a6aaab3
add qgb orchestrator address logic (#218)
rach-id Feb 21, 2022
e20e44d
adds remaining valset confirm handler (#219)
rach-id Feb 21, 2022
1dc066b
Add data commitment logic (#222)
rach-id Feb 24, 2022
0171fff
Record validator set during `EndBlock` for QGB orchestrator (#232)
evan-forbes Mar 8, 2022
ed0e48b
Adds qgb module tests (#237)
rach-id Mar 10, 2022
eaed5db
Add qgb data commitment tests (#240)
rach-id Mar 11, 2022
8209e23
Adds msg server data commitment test for QGB module (#242)
rach-id Mar 11, 2022
df46d12
Adds simple indexing to qgb module (#246)
rach-id Mar 14, 2022
6d78b9b
Adds QGB related ADRs (#250)
rach-id Mar 24, 2022
2f3686c
Orchestrator and relayer client (#255)
evan-forbes Mar 30, 2022
76e2715
Improves the orchestrator/relayer commands, adds tests and moves Ethe…
evan-forbes Apr 14, 2022
e48ccce
Adds Ethereum signatures verification + refactor the orchestrator/rel…
rach-id Apr 20, 2022
95f5208
Add valset request by nonce support for QGB (#342)
rach-id Apr 23, 2022
2d3c072
Replay mechanism for QGB relayer (#344)
rach-id Apr 25, 2022
e310505
QGB go mod tidy (#350)
rach-id Apr 25, 2022
77cf3f9
Adds unbonding height query to QGB (#346)
rach-id Apr 25, 2022
d8dd2e7
adds new relayer method (#355)
rach-id Apr 26, 2022
1534631
adds evm_client wait for transaction confirmation (#354)
rach-id Apr 26, 2022
d79b858
Use uint64 instead of int64 in QGB types (#358)
rach-id Apr 27, 2022
8edfc38
indexes data commitment confirms by (end_block, begin_block, validato…
rach-id Apr 27, 2022
4fe09dc
adds query data confirm by exact range (#367)
rach-id Apr 28, 2022
0e5db96
adds last valset request before height query (#365)
rach-id Apr 28, 2022
45109e5
Orchestrator old signatures replay (#351)
rach-id Apr 29, 2022
bdfd247
Relayer query right valset for confirmations (#372)
rach-id Apr 29, 2022
a73a8f6
Merge remote-tracking branch 'upstream/master' into qgb-integration
rach-id May 9, 2022
9e81420
update go.mod
rach-id May 9, 2022
cf86c63
use latest cosmos-sdk qgb branch
rach-id May 9, 2022
fb271ad
fix the tests to use a non zero ethereum address
rach-id May 9, 2022
172a5a1
Merge pull request #392 from SweeXordious/qgb-integration
rach-id May 9, 2022
e14ed2e
remove local ethAddress type and use cosmos-sdk one (#393)
rach-id May 10, 2022
57fc969
better structure QGB CLI flags (#402)
rach-id May 12, 2022
f342425
updates the deploy command to query for the right validator (#404)
rach-id May 13, 2022
f250f5d
Adds querier stop method (#417)
rach-id May 18, 2022
d5d3834
Qgb integration test environment (#408)
rach-id May 23, 2022
7ea764c
Adds integration tests scenarios to QGB (#423)
rach-id May 26, 2022
9d7b56a
add qgb e2e makefile (#443)
rach-id May 26, 2022
e3ba3cd
add qgb e2e github action (#444)
rach-id May 26, 2022
bfa7827
QGB update relayer to work in multiple validators environment (#445)
rach-id May 26, 2022
7d455e7
refactors + add readme (#449)
rach-id May 26, 2022
53c02f0
Scripts cosmetics (#450)
rach-id May 26, 2022
2f46cb3
Add ADR-004-QGB_relayer_security (#464)
rach-id Jun 6, 2022
1218589
small rewording for the QGB relayer security ADR (#476)
rach-id Jun 8, 2022
0e740d1
better context handling + timeouts for QGB E2E network (#459)
rach-id Jun 9, 2022
d537ff4
Adds data commitment request (#478)
rach-id Jun 9, 2022
b8ebb36
Fixes set latest data commitment nonce (#481)
rach-id Jun 10, 2022
adfdc85
Add support for universal nonce, fixes/improves relayer and depends o…
rach-id Jun 24, 2022
43dd20f
update the evm client to wait for transactions to be included (#508)
rach-id Jun 29, 2022
458b6b2
QGB E2e cosmetics (#515)
rach-id Jul 1, 2022
41d0ae7
Orchestrator refactor (#512)
rach-id Jul 10, 2022
9fbfa7d
Go fumpt the qgb-integration branch (#519)
rach-id Jul 11, 2022
0ed87bb
QGB Orchestrator only signs if part of valset (#523)
rach-id Jul 12, 2022
a246519
checking the confirm is sent to a dc attestation in msg_server.go (#524)
rach-id Jul 13, 2022
7be1c7f
QGB CLI takes time to execute (#526)
rach-id Jul 13, 2022
e399df5
QGB remove unnecessary keystore (#527)
rach-id Jul 13, 2022
3d81287
QGB Use Geth implementation of Ethereum address (#528)
rach-id Jul 13, 2022
13347c0
QGB better genesis initialization (#529)
rach-id Jul 13, 2022
f2168c7
QGB State machine error handling (#550)
rach-id Jul 21, 2022
931d85f
temporary fix for any import in query.pb.go (#554)
rach-id Jul 21, 2022
deef798
QGB Remove unnecessary comment (#559)
rach-id Jul 24, 2022
bbf0610
handle nonce 1 case + comments (#558)
rach-id Jul 24, 2022
3b3176c
adds more configuration flags (#556)
rach-id Jul 24, 2022
4feef98
QGB better e2e context and channel usage (#562)
rach-id Jul 27, 2022
6b0f7ee
remove unnecessary code (#575)
rach-id Jul 28, 2022
195da78
general QGB cosmetics (#576)
rach-id Jul 29, 2022
bcd59ba
Merge branch 'main' into qgb-integration-46
rach-id Aug 5, 2022
1922693
Necessary QGB implementation update to support cosmos-sdk v0.46.x (#602)
rach-id Aug 8, 2022
2fef6fd
Merge pull request #601 from celestiaorg/sweexordious/qgb-integration-46
rach-id Aug 8, 2022
0ee5a45
QGB Use Ecrecover to validate Ethereum signatures (#605)
rach-id Aug 17, 2022
79b83d8
QGB depend on latest version of core and use begin/end block instead …
rach-id Aug 17, 2022
d63b998
relaying 2/3 signatures correctly (#629)
rach-id Aug 18, 2022
e74d61d
QGB state machine remove confirm valset check (#645)
rach-id Aug 22, 2022
a965914
QGB state machine remove invalid validator set check (#646)
rach-id Aug 23, 2022
3bb9933
QGB Relayer add commitments check when relaying confirms (#613)
rach-id Aug 31, 2022
7fda428
QGB ADR-005 Reducing QGB module state usage (#657)
rach-id Sep 5, 2022
fd7c742
remove e2e, relayer, orchestrator to prepare for the merge (#719)
rach-id Sep 16, 2022
ab906e5
Remove valset/data commitment confirm logic from state machine (#720)
rach-id Sep 19, 2022
27f57d2
Merge branch 'main' into update_qgb_branch_from_main
rach-id Sep 20, 2022
43b6489
add dependency on `github.com/cosmos/cosmos-sdk v0.46.0` to fix the w…
rach-id Sep 20, 2022
ecd2146
regenerate proto files
rach-id Sep 20, 2022
646fb8d
Merge branch 'main' into update_qgb_branch_from_main
rach-id Sep 20, 2022
3184397
fix: go.mod update
rach-id Sep 20, 2022
12aa6d1
Update qgb branch from main (#741)
rach-id Sep 20, 2022
4eec540
fix: remove common.go test utils as they're no longer used
rach-id Sep 20, 2022
6b2800d
ci: remove unnecessary check on branch qgb-integration
rach-id Sep 20, 2022
0d0256c
fix: add Ethereum private key for the address defined in the single-n…
rach-id Sep 20, 2022
f876bdd
ci: update master to main target branch when running tests
rach-id Sep 20, 2022
3de7d25
Revert "fix: remove common.go test utils as they're no longer used"
rach-id Sep 20, 2022
8ec4c68
docs: update the QGB ADR titles
rach-id Sep 20, 2022
3b4ff8e
QGB Update valset and data commitment confirm ADRs to link to ADR-005…
rach-id Sep 21, 2022
bfa216f
QGB Feedback on PR #742 (#746)
rach-id Sep 21, 2022
69c8d28
Qgb universal nonces ADR update (#748)
rach-id Sep 21, 2022
d94943d
QGB nits + docs for the merge 2 (#753)
rach-id Sep 21, 2022
a8b1ad8
chore: Go mod tidy on QGB branch (#767)
rach-id Sep 22, 2022
13a9db9
update proto-gen docker image to a new one and remove manual install …
rach-id Sep 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ frontend/.cache
secret.yml
build
coverage.txt
.idea
.vscode
tools-stamp
.vscode
profile.out
28 changes: 16 additions & 12 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,21 @@ func New(
app.FeeGrantKeeper = feegrantkeeper.NewKeeper(appCodec, keys[feegrant.StoreKey], app.AccountKeeper)
app.UpgradeKeeper = upgradekeeper.NewKeeper(skipUpgradeHeights, keys[upgradetypes.StoreKey], appCodec, homePath, app.BaseApp, authtypes.NewModuleAddress(govtypes.ModuleName).String())

app.QgbKeeper = *qgbmodulekeeper.NewKeeper(
appCodec,
keys[qgbmoduletypes.StoreKey],
app.GetSubspace(qgbmoduletypes.ModuleName),
&stakingKeeper,
)
qgbmod := qgbmodule.NewAppModule(appCodec, app.QgbKeeper)

// register the staking hooks
// NOTE: stakingKeeper above is passed by reference, so that it will contain these hooks
app.StakingKeeper = *stakingKeeper.SetHooks(
stakingtypes.NewMultiStakingHooks(app.DistrKeeper.Hooks(), app.SlashingKeeper.Hooks()),
stakingtypes.NewMultiStakingHooks(app.DistrKeeper.Hooks(),
app.SlashingKeeper.Hooks(),
app.QgbKeeper.Hooks(),
),
)

// ... other modules keepers
Expand All @@ -329,7 +340,7 @@ func New(
AddRoute(paramproposal.RouterKey, params.NewParamChangeProposalHandler(app.ParamsKeeper)).
AddRoute(distrtypes.RouterKey, distr.NewCommunityPoolSpendProposalHandler(app.DistrKeeper)).
AddRoute(upgradetypes.RouterKey, upgrade.NewSoftwareUpgradeProposalHandler(app.UpgradeKeeper))
// AddRoute(ibcclienttypes.RouterKey, ibcclient.NewClientProposalHandler(app.IBCKeeper.ClientKeeper))
// AddRoute(ibcclienttypes.RouterKey, ibcclient.NewClientProposalHandler(app.IBCKeeper.ClientKeeper))

// Create Transfer Keepers
// app.TransferKeeper = ibctransferkeeper.NewKeeper(
Expand Down Expand Up @@ -357,14 +368,7 @@ func New(
app.PaymentKeeper = *paymentmodulekeeper.NewKeeper(
appCodec,
)
paymentmodule := paymentmodule.NewAppModule(appCodec, app.PaymentKeeper)

app.QgbKeeper = *qgbmodulekeeper.NewKeeper(
appCodec,
keys[qgbmoduletypes.StoreKey],
keys[qgbmoduletypes.MemStoreKey],
)
qgbmodule := qgbmodule.NewAppModule(appCodec, app.QgbKeeper)
paymentmod := paymentmodule.NewAppModule(appCodec, app.PaymentKeeper)

// // Create static IBC router, add transfer route, then set and seal it
// ibcRouter := ibcporttypes.NewRouter()
Expand Down Expand Up @@ -401,8 +405,8 @@ func New(
// ibc.NewAppModule(app.IBCKeeper),
params.NewAppModule(app.ParamsKeeper),
// transferModule,
paymentmodule,
qgbmodule,
paymentmod,
qgbmod,
)

// During begin block slashing happens after distr.BeginBlocker so that
Expand Down