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

[Core] Deploying all-the-protocol-actors #710

Merged
merged 33 commits into from
Jun 8, 2023
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
9ba8871
📝 🧬🎣🚪 all actor configs
0xBigBoss Apr 14, 2023
1d79321
Add /v1/query/nodeRoles RPC endpoint and localnet updates
0xBigBoss Apr 29, 2023
9603a6f
update docs
0xBigBoss Apr 30, 2023
e3ba3f0
add mock servicer relay rpc
0xBigBoss May 2, 2023
0e20307
rebased, minor improvements for docker compose
0xBigBoss May 5, 2023
a76188d
clean up configs for docker compose
0xBigBoss May 6, 2023
2302776
clean up and addressing feedback
0xBigBoss May 7, 2023
a82d65b
clean up docker compose, genesis, localnet
0xBigBoss May 7, 2023
eabd0e2
bit of clean up
0xBigBoss May 14, 2023
9e2ca7d
add fishermen keys
0xBigBoss May 14, 2023
548d4b7
Merge remote-tracking branch upstream/main into 0xbigboss/dw-1860/cor…
0xBigBoss May 26, 2023
5019123
fix the tests
0xBigBoss May 26, 2023
3d89907
add generated helm docs
invalid-email-address May 26, 2023
a0e2ebb
add missing compose services
0xBigBoss May 27, 2023
8539e8e
golint
0xBigBoss May 27, 2023
1d7d0ae
clean up names and configs
0xBigBoss Jun 2, 2023
0273210
squash lil 🐛 and tidy up code 🧹
0xBigBoss Jun 2, 2023
4feeb78
clean up and refactor actor modules
0xBigBoss Jun 2, 2023
6e20fa6
Merge remote-tracking branch 'upstream/main' into 0xbigboss/dw-1860/c…
0xBigBoss Jun 2, 2023
cc8d3f6
merge in upstream/main
0xBigBoss Jun 2, 2023
b61f894
clean up docker compose, new line
0xBigBoss Jun 2, 2023
71880bd
fix localnet
0xBigBoss Jun 2, 2023
06af3ef
clean up actor numbers
0xBigBoss Jun 2, 2023
4b0eaf8
fix panic, pass by cfg by ref
0xBigBoss Jun 2, 2023
cd5942d
merge service and servicer modules
0xBigBoss Jun 6, 2023
ebdf98c
check if cast works
0xBigBoss Jun 6, 2023
d222dba
clean up get modules
0xBigBoss Jun 6, 2023
ec97a7f
fix the interfaces
0xBigBoss Jun 6, 2023
025b4ed
clean up utility and servicer module
0xBigBoss Jun 6, 2023
e1fb8f6
fallback to client context namespace
0xBigBoss Jun 6, 2023
4302a8f
changelogs
0xBigBoss Jun 6, 2023
452e7f5
Merge remote-tracking branch 'upstream/main' into 0xbigboss/dw-1860/c…
0xBigBoss Jun 6, 2023
fe90c0d
rm ./var directory
0xBigBoss Jun 8, 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
Prev Previous commit
Next Next commit
check if cast works
  • Loading branch information
0xBigBoss committed Jun 6, 2023
commit ebdf98cde63557320b4e0e1ccbfc6148e9d6e5df
21 changes: 18 additions & 3 deletions utility/module.go
Original file line number Diff line number Diff line change
@@ -142,15 +142,30 @@ func (u *utilityModule) GetActorModules() map[string]modules.Module {
}

func (u *utilityModule) GetServicerModule() modules.ServicerModule {
return u.actorModules[servicer.ServicerModuleName].(modules.ServicerModule)
m, ok := u.actorModules[servicer.ServicerModuleName].(modules.ServicerModule)
if !ok {
0xBigBoss marked this conversation as resolved.
Show resolved Hide resolved
u.logger.Warn().Err(errors.New("failed to cast servicer module")).Msg("failed to get servicer module")
return nil
}
return m
}

func (u *utilityModule) GetFishermanModule() modules.FishermanModule {
return u.actorModules[fisherman.FishermanModuleName].(modules.FishermanModule)
m, ok := u.actorModules[fisherman.FishermanModuleName].(modules.FishermanModule)
0xBigBoss marked this conversation as resolved.
Show resolved Hide resolved
if !ok {
u.logger.Warn().Err(errors.New("failed to cast fisherman module")).Msg("failed to get fisherman module")
return nil
}
return m
}

func (u *utilityModule) GetValidatorModule() modules.ValidatorModule {
return u.actorModules[validator.ValidatorModuleName].(modules.ValidatorModule)
m, ok := u.actorModules[validator.ValidatorModuleName].(modules.ValidatorModule)
if !ok {
u.logger.Warn().Err(errors.New("failed to cast validator module")).Msg("failed to get validator module")
return nil
}
return m
}

// validateActorModuleExclusivity validates that the actor modules are enabled in a valid combination.