Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

announce module and e2e testing #84

Merged
merged 41 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
db625e3
Completely broken ava network
Sep 23, 2023
40152be
avalanche queries
Sep 24, 2023
1db15f7
avalanche startup sequence and health check
Sep 24, 2023
8100ef7
avalanche startup sequence and health check
Sep 24, 2023
3ba6c8d
fixed defer() issue in avalanche start sequence
Sep 24, 2023
a695895
refactor launch avalanche test case
Sep 24, 2023
2aed3b1
Fixed heighliner hyperlane-cosmos build error
Sep 25, 2023
21583f1
Fixed heighliner build, added flags for hyperlane cosmos builds
Sep 25, 2023
e0960e1
Validators listening for mailbox messages
Sep 26, 2023
4b8bf9f
Updated test
Sep 27, 2023
7b08ed2
Merge branch 'main' of ssh://github.com/strangelove-ventures/hyperlan…
Sep 27, 2023
46d53c5
Cosmos<->Cosmos test case w/ hyperlane validators
Sep 27, 2023
a49d2d2
test case updates to debug val signature issue
Sep 27, 2023
24fd421
Test case mostly working
Sep 27, 2023
8acd368
Test case for cosmos-cosmos e2e
Sep 28, 2023
f276c1d
Test case passing for cosmos-cosmos e2e
Sep 28, 2023
74735d8
Fixed go.mod (remove local import path)
Sep 28, 2023
3bf7eeb
stubbed validator announcements
Sep 30, 2023
971d4c9
queries/msg updates
Oct 4, 2023
18ee14e
Test for validator announcement
Oct 5, 2023
8b101ee
Test case for announcement TX and queries
Oct 6, 2023
c6db774
Test case for announcement TX and queries
Oct 6, 2023
1d1e789
validator announcement test
Oct 11, 2023
7a34ad9
Test case to show URL type error
Oct 11, 2023
84ed342
Register type URL for interchaintest announce
Oct 11, 2023
9ad91ab
test for getAnnouncedValidators CLI
Oct 11, 2023
0dcf5ed
Return empty announcements instead of error; go eth ecrecover lib com…
Oct 12, 2023
ef9cde5
TestAnnounce passes with hyperlane validator announcement
Oct 12, 2023
32d9895
Working announcement test; draft e2e test
Oct 14, 2023
070b79a
Merge branch 'main' of ssh://github.com/strangelove-ventures/hyperlan…
Oct 15, 2023
f594160
fixed relayer config for e2e test
Oct 16, 2023
d08f77a
Use kvstore when checking if a message was delivered
misko9 Oct 16, 2023
dac9eff
Merge branch 'main' into kamoser/val-announce
misko9 Oct 16, 2023
9553141
Fix merge from main issues and lint fix
misko9 Oct 16, 2023
2ef6e85
Remove the delivered map from mailbox keeper
misko9 Oct 17, 2023
188aef5
Remove hardcoded mailbox address
misko9 Oct 17, 2023
da0f470
Refactoring test cases
Oct 17, 2023
db5f000
Refactoring test cases
Oct 17, 2023
b61f8da
cosmos e2e with multiple messages
Oct 18, 2023
26de2ed
removed avalanche-cosmos e2e test and added genesis test
Oct 23, 2023
5485f82
Fixed genesis test
Oct 26, 2023
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
14 changes: 12 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ import (
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"

// Hyperlane dependencies
announce "github.com/strangelove-ventures/hyperlane-cosmos/x/announce"
announcekeeper "github.com/strangelove-ventures/hyperlane-cosmos/x/announce/keeper"
announcetypes "github.com/strangelove-ventures/hyperlane-cosmos/x/announce/types"

igp "github.com/strangelove-ventures/hyperlane-cosmos/x/igp"
igpkeeper "github.com/strangelove-ventures/hyperlane-cosmos/x/igp/keeper"
igptypes "github.com/strangelove-ventures/hyperlane-cosmos/x/igp/types"
Expand Down Expand Up @@ -239,6 +243,7 @@ var (
mailbox.AppModuleBasic{},
ism.AppModuleBasic{},
igp.AppModuleBasic{},
announce.AppModuleBasic{},
)

// module account permissions
Expand Down Expand Up @@ -303,6 +308,7 @@ type SimApp struct {
MailboxKeeper mailboxkeeper.Keeper
IsmKeeper ismkeeper.Keeper
IgpKeeper igpkeeper.Keeper
AnnounceKeeper announcekeeper.Keeper

ScopedIBCKeeper capabilitykeeper.ScopedKeeper
ScopedICAHostKeeper capabilitykeeper.ScopedKeeper
Expand Down Expand Up @@ -354,7 +360,7 @@ func NewSimApp(
ibcexported.StoreKey, ibctransfertypes.StoreKey, ibcfeetypes.StoreKey,
wasm.StoreKey, icahosttypes.StoreKey,
icacontrollertypes.StoreKey, mailboxtypes.StoreKey, ismtypes.StoreKey,
igptypes.StoreKey,
igptypes.StoreKey, announcetypes.StoreKey,
)

tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey)
Expand Down Expand Up @@ -631,10 +637,10 @@ func NewSimApp(

// TODO: How are the domains registered selected.. using 12345 as a placeholder
// domain := uint32(12345)

app.IgpKeeper = igpkeeper.NewKeeper(appCodec, keys[igptypes.StoreKey], app.BankKeeper.(bankkeeper.SendKeeper), app.StakingKeeper, "")
app.IsmKeeper = ismkeeper.NewKeeper(appCodec, keys[ismtypes.StoreKey], authtypes.NewModuleAddress(govtypes.ModuleName).String())
app.MailboxKeeper = mailboxkeeper.NewKeeper(appCodec, keys[mailboxtypes.StoreKey], &app.WasmKeeper, &app.IsmKeeper)
app.AnnounceKeeper = announcekeeper.NewKeeper(appCodec, keys[announcetypes.StoreKey], app.MailboxKeeper)
// app.MailboxKeeper.SetDomain(domain)

// The gov proposal types can be individually enabled
Expand Down Expand Up @@ -718,6 +724,7 @@ func NewSimApp(
mailbox.NewAppModule(app.MailboxKeeper),
ism.NewAppModule(app.IsmKeeper),
igp.NewAppModule(app.IgpKeeper),
announce.NewAppModule(app.AnnounceKeeper),
crisis.NewAppModule(app.CrisisKeeper, skipGenesisInvariants, app.GetSubspace(crisistypes.ModuleName)), // always be last to make sure that it checks for all invariants and not only part of them
)

Expand All @@ -741,6 +748,7 @@ func NewSimApp(
mailboxtypes.ModuleName,
ismtypes.ModuleName,
igptypes.ModuleName,
announcetypes.ModuleName,
)

app.ModuleManager.SetOrderEndBlockers(
Expand All @@ -759,6 +767,7 @@ func NewSimApp(
mailboxtypes.ModuleName,
ismtypes.ModuleName,
igptypes.ModuleName,
announcetypes.ModuleName,
)

// NOTE: The genutils module must occur after staking so that pools are
Expand All @@ -785,6 +794,7 @@ func NewSimApp(
mailboxtypes.ModuleName,
ismtypes.ModuleName,
igptypes.ModuleName,
announcetypes.ModuleName,
}
app.ModuleManager.SetOrderInitGenesis(genesisModuleOrder...)
app.ModuleManager.SetOrderExportGenesis(genesisModuleOrder...)
Expand Down
Loading
Loading