Skip to content

Commit

Permalink
feat: implement icon to neutron ibc relay setup (#183)
Browse files Browse the repository at this point in the history
* feat: implement kurtosis package to run icon-neutron ibc relay

* refactor: refactor code in run_cosmos_ibc_setup function main.star

* refactor: refactor code in main.star

* refactor: add comments inside code

* feat: implement ibc relay between already running icon and neutron/archway nodes

* refactor: change remote path to relative path in import_module inside kurtosis packages

* refactor: remove sevice.json and remove comment in ibc.go
  • Loading branch information
abhiyana authored Sep 28, 2023
1 parent bdcba3e commit 17a3905
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/commands/bridge/relays/ibc.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func startCosmosChainsAndSetupIbcRelay(diveContext *common.DiveContext, enclaveC

func setupIbcRelayforAlreadyRunningCosmosChain(diveContext *common.DiveContext, enclaveCtx *enclaves.EnclaveContext, chainA, chainB, chainAServiceResponse, chainBServiceResponse string) (string, error) {

params := fmt.Sprintf(`{"links":{"src":"%s","dst":"%s"},"src_config":%s,"dst_config":%s}`, chainA, chainB, chainAServiceResponse, chainBServiceResponse)
params := fmt.Sprintf(`{"src_chain_config":%s,"dst_chain_config":%s, "args":{"links": {"src": "%s", "dst": "%s"}, "src_config":{"data":{}}, "dst_config":{"data":{}}}}`, chainAServiceResponse, chainBServiceResponse, chainA, chainB)

executionResult, err := runStarlarkPackage(diveContext, enclaveCtx, params, "run_cosmos_ibc_relay_for_already_running_chains")

Expand Down
2 changes: 1 addition & 1 deletion cli/commands/chain/types/neutron.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func RunNeutronNode(diveContext *common.DiveContext) *common.DiveserviceResponse
// RunNeutronWithServiceConfig runs the Neutron service with the provided configuration data.
func RunNeutronWithServiceConfig(diveContext *common.DiveContext, enclaveContext *enclaves.EnclaveContext, data string) (string, error) {
params := fmt.Sprintf(`{"args":{"data":%s}}`, data)
nodeServiceResponse, _, err := enclaveContext.RunStarlarkPackage(diveContext.Ctx, common.DiveRemotePackagePath, common.DiveNeutronDefaultNodeScript, runNeutronNodeWithDefaultConfigFunctionName, params, common.DiveDryRun, common.DiveDefaultParallelism, []kurtosis_core_rpc_api_bindings.KurtosisFeatureFlag{})
nodeServiceResponse, _, err := enclaveContext.RunStarlarkRemotePackage(diveContext.Ctx, common.DiveRemotePackagePath, common.DiveNeutronDefaultNodeScript, runNeutronNodeWithDefaultConfigFunctionName, params, common.DiveDryRun, common.DiveDefaultParallelism, []kurtosis_core_rpc_api_bindings.KurtosisFeatureFlag{})
if err != nil {
return "", err
}
Expand Down

0 comments on commit 17a3905

Please sign in to comment.