diff --git a/cmd/rollytics.go b/cmd/rollytics.go index 997afc8..76473ab 100644 --- a/cmd/rollytics.go +++ b/cmd/rollytics.go @@ -7,6 +7,7 @@ import ( "github.com/initia-labs/weave/common" "github.com/initia-labs/weave/service" + "github.com/initia-labs/weave/styles" "github.com/spf13/cobra" ) @@ -51,6 +52,8 @@ func rollyticsStartCommand() *cobra.Command { if err != nil { return err } + fmt.Println("Rollytics Address: ", styles.Text("http://localhost:6767", styles.Cyan)) + fmt.Println("Swagger Docs: ", styles.Text("http://localhost:6767/swagger", styles.Cyan)) fmt.Println("Started rollytics service. You can see the logs with `weave rollytics log`") return nil diff --git a/models/minitia/constants.go b/models/minitia/constants.go index 0bb2ca5..ae837ab 100644 --- a/models/minitia/constants.go +++ b/models/minitia/constants.go @@ -39,6 +39,7 @@ const ( DefaultMinitiaGRPC string = "http://localhost:9090" DefaultMinitiaJsonRPC string = "http://localhost:8545" DefaultMinitiaJsonRPCWS string = "ws://localhost:8546" + DefaultMinitiaIndexer string = "http://localhost:6767" DefaultRollupDenom string = "umin" DefaultMinievmDenom string = "GAS" diff --git a/models/minitia/launch.go b/models/minitia/launch.go index 7e7f81e..1625b52 100644 --- a/models/minitia/launch.go +++ b/models/minitia/launch.go @@ -2806,6 +2806,7 @@ type ScanPayload struct { Lcd string `json:"lcd"` Rpc string `json:"rpc"` JsonRpc string `json:"jsonRpc,omitempty"` + Indexer string `json:"indexer"` } func (sp *ScanPayload) EncodeToBase64() (string, error) { @@ -3080,6 +3081,7 @@ func (m *LaunchingNewMinitiaLoading) Update(msg tea.Msg) (tea.Model, tea.Cmd) { Lcd: DefaultMinitiaLCD, Rpc: DefaultMinitiaRPC, JsonRpc: jsonRpc, + Indexer: DefaultMinitiaIndexer, } encodedPayload, err := payload.EncodeToBase64() @@ -3195,9 +3197,10 @@ func (m *TerminalState) Update(_ tea.Msg) (tea.Model, tea.Cmd) { func (m *TerminalState) View() string { state := weavecontext.GetCurrentState[LaunchState](m.Ctx) return m.WrapView(state.weave.Render()) + state.scanLink + fmt.Sprintf( - "\n\n%s %s\n%s\n", + "\n\n%s %s\n%s\n%s\n", styles.Text("i", styles.Yellow), styles.BoldUnderlineText("Important", styles.Yellow), - styles.Text("Open this in Chrome is recommended because some browsers may not support localhost access from a different host, or edit your browser's settings to allow it if necessary.", styles.Yellow), + styles.Text("Opening this in Chrome is recommended because some browsers may not support localhost access from a different host; alternatively, adjust your browser settings to allow it.", styles.Yellow), + styles.Text("Data will not be fully populated until indexer is running. Run "+styles.Text("weave rollup indexer start", styles.Cyan)+" to populate data.", styles.White), ) } diff --git a/service/docker_compose.go b/service/docker_compose.go index aaebfa9..7fe20d7 100644 --- a/service/docker_compose.go +++ b/service/docker_compose.go @@ -123,7 +123,7 @@ func (d *Docker) createDockerCompose(version string) error { CORS_ALLOW_CREDENTIALS: true CORS_MAX_AGE: 300 ports: - - "8088:8080" + - "6767:8080" extra_hosts: - "host.docker.internal:host-gateway" networks: