Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions cmd/rollytics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions models/minitia/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 5 additions & 2 deletions models/minitia/launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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),
)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
}
2 changes: 1 addition & 1 deletion service/docker_compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down