-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
277 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package main | ||
|
||
import ( | ||
"encoding/json" | ||
|
||
"github.com/spf13/cobra" | ||
|
||
"github.com/cosmos/cosmos-sdk/types/module" | ||
|
||
"github.com/initia-labs/OPinit/contrib/launchtools" | ||
"github.com/initia-labs/OPinit/contrib/launchtools/steps" | ||
"github.com/initia-labs/initia/app/params" | ||
minitiaapp "github.com/initia-labs/minievm/app" | ||
) | ||
|
||
// DefaultLaunchStepFactories is a list of default launch step factories. | ||
var DefaultLaunchStepFactories = []launchtools.LauncherStepFuncFactory[launchtools.Input]{ | ||
steps.InitializeConfig, | ||
steps.InitializeRPCHelpers, | ||
|
||
// Initialize genesis | ||
steps.InitializeGenesis, | ||
|
||
// Add system keys to the keyring | ||
steps.InitializeKeyring, | ||
|
||
// Run the app | ||
steps.RunApp, | ||
|
||
// Establish IBC channels for fungible and NFT transfer | ||
steps.EstablishIBCChannelsWithNFTTransfer(func() (string, string, string) { | ||
return "nft-transfer", "nft-transfer", "ics721-1" | ||
}), | ||
|
||
// Enable oracle..? | ||
steps.EnableOracle, | ||
|
||
// Create OP Bridge, using open channel states | ||
steps.InitializeOpBridge, | ||
|
||
// Cleanup | ||
steps.StopApp, | ||
} | ||
|
||
func LaunchCommand(ac *appCreator, enc params.EncodingConfig, mbm module.BasicManager) *cobra.Command { | ||
return launchtools.LaunchCmd( | ||
ac, | ||
func(denom string) map[string]json.RawMessage { | ||
return minitiaapp.NewDefaultGenesisState(enc.Codec, mbm, denom) | ||
}, | ||
DefaultLaunchStepFactories, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.