From de697a37551e2d0f3deb380e38205a1c0fd372b5 Mon Sep 17 00:00:00 2001 From: Victor Yves Crispim Date: Thu, 25 Jan 2024 11:07:25 -0300 Subject: [PATCH] feat(proxy): update cartesi-rollups-cli endpoints --- cmd/cartesi-rollups-cli/root/increasetime/increasetime.go | 2 +- cmd/cartesi-rollups-cli/root/inspect/inspect.go | 2 +- cmd/cartesi-rollups-cli/root/read/input/input.go | 2 +- cmd/cartesi-rollups-cli/root/read/inputs/inputs.go | 2 +- cmd/cartesi-rollups-cli/root/read/notice/notice.go | 2 +- cmd/cartesi-rollups-cli/root/read/notices/notices.go | 2 +- cmd/cartesi-rollups-cli/root/read/report/report.go | 2 +- cmd/cartesi-rollups-cli/root/read/reports/reports.go | 2 +- cmd/cartesi-rollups-cli/root/read/voucher/voucher.go | 2 +- cmd/cartesi-rollups-cli/root/read/vouchers/vouchers.go | 2 +- cmd/cartesi-rollups-cli/root/validate/validate.go | 2 +- docs/cartesi-rollups-cli_increase-time.md | 2 +- docs/cartesi-rollups-cli_inspect.md | 2 +- docs/cartesi-rollups-cli_read_input.md | 2 +- docs/cartesi-rollups-cli_read_inputs.md | 2 +- docs/cartesi-rollups-cli_read_notice.md | 2 +- docs/cartesi-rollups-cli_read_notices.md | 2 +- docs/cartesi-rollups-cli_read_report.md | 2 +- docs/cartesi-rollups-cli_read_reports.md | 2 +- docs/cartesi-rollups-cli_read_voucher.md | 2 +- docs/cartesi-rollups-cli_read_vouchers.md | 2 +- docs/cartesi-rollups-cli_validate.md | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-) diff --git a/cmd/cartesi-rollups-cli/root/increasetime/increasetime.go b/cmd/cartesi-rollups-cli/root/increasetime/increasetime.go index 02fa5c321..5b18522f7 100644 --- a/cmd/cartesi-rollups-cli/root/increasetime/increasetime.go +++ b/cmd/cartesi-rollups-cli/root/increasetime/increasetime.go @@ -34,7 +34,7 @@ func init() { Cmd.Flags().IntVar(&time, "time", defaultTime, "The amount of time to increase in the evm, in seconds") - Cmd.Flags().StringVar(&anvilEndpoint, "anvil-endpoint", "http://0.0.0.0:8545", + Cmd.Flags().StringVar(&anvilEndpoint, "anvil-endpoint", "http://localhost:8545", "anvil address used to send to the request") } diff --git a/cmd/cartesi-rollups-cli/root/inspect/inspect.go b/cmd/cartesi-rollups-cli/root/inspect/inspect.go index 32d76d578..f88077e35 100644 --- a/cmd/cartesi-rollups-cli/root/inspect/inspect.go +++ b/cmd/cartesi-rollups-cli/root/inspect/inspect.go @@ -35,7 +35,7 @@ func init() { cobra.CheckErr(Cmd.MarkFlagRequired("payload")) - Cmd.Flags().StringVar(&inspectEndpoint, "inspect-endpoint", "http://0.0.0.0:10009/", + Cmd.Flags().StringVar(&inspectEndpoint, "inspect-endpoint", "http://localhost:10000/", "address used to connect to the inspect api") } diff --git a/cmd/cartesi-rollups-cli/root/read/input/input.go b/cmd/cartesi-rollups-cli/root/read/input/input.go index 13b838e5e..b580814b4 100644 --- a/cmd/cartesi-rollups-cli/root/read/input/input.go +++ b/cmd/cartesi-rollups-cli/root/read/input/input.go @@ -33,7 +33,7 @@ func init() { cobra.CheckErr(Cmd.MarkFlagRequired("index")) - Cmd.Flags().StringVar(&graphqlEndpoint, "graphql-endpoint", "http://0.0.0.0:4000/graphql", + Cmd.Flags().StringVar(&graphqlEndpoint, "graphql-endpoint", "http://localhost:10000/graphql", "address used to connect to graphql") } diff --git a/cmd/cartesi-rollups-cli/root/read/inputs/inputs.go b/cmd/cartesi-rollups-cli/root/read/inputs/inputs.go index 132a23295..c05378229 100644 --- a/cmd/cartesi-rollups-cli/root/read/inputs/inputs.go +++ b/cmd/cartesi-rollups-cli/root/read/inputs/inputs.go @@ -27,7 +27,7 @@ var ( ) func init() { - Cmd.Flags().StringVar(&graphqlEndpoint, "graphql-endpoint", "http://0.0.0.0:4000/graphql", + Cmd.Flags().StringVar(&graphqlEndpoint, "graphql-endpoint", "http://localhost:10000/graphql", "address used to connect to graphql") } diff --git a/cmd/cartesi-rollups-cli/root/read/notice/notice.go b/cmd/cartesi-rollups-cli/root/read/notice/notice.go index ebc418f24..6cebc4424 100644 --- a/cmd/cartesi-rollups-cli/root/read/notice/notice.go +++ b/cmd/cartesi-rollups-cli/root/read/notice/notice.go @@ -39,7 +39,7 @@ func init() { cobra.CheckErr(Cmd.MarkFlagRequired("input-index")) - Cmd.Flags().StringVar(&graphqlEndpoint, "graphql-endpoint", "http://0.0.0.0:4000/graphql", + Cmd.Flags().StringVar(&graphqlEndpoint, "graphql-endpoint", "http://localhost:10000/graphql", "address used to connect to graphql") } diff --git a/cmd/cartesi-rollups-cli/root/read/notices/notices.go b/cmd/cartesi-rollups-cli/root/read/notices/notices.go index 4643eac61..c0043c814 100644 --- a/cmd/cartesi-rollups-cli/root/read/notices/notices.go +++ b/cmd/cartesi-rollups-cli/root/read/notices/notices.go @@ -31,7 +31,7 @@ func init() { Cmd.Flags().IntVar(&inputIndex, "input-index", -1, "index of the input") - Cmd.Flags().StringVar(&graphqlEndpoint, "graphql-endpoint", "http://0.0.0.0:4000/graphql", + Cmd.Flags().StringVar(&graphqlEndpoint, "graphql-endpoint", "http://localhost:10000/graphql", "address used to connect to graphql") } diff --git a/cmd/cartesi-rollups-cli/root/read/report/report.go b/cmd/cartesi-rollups-cli/root/read/report/report.go index 505367043..8ee67f895 100644 --- a/cmd/cartesi-rollups-cli/root/read/report/report.go +++ b/cmd/cartesi-rollups-cli/root/read/report/report.go @@ -39,7 +39,7 @@ func init() { cobra.CheckErr(Cmd.MarkFlagRequired("input-index")) - Cmd.Flags().StringVar(&graphqlEndpoint, "graphql-endpoint", "http://0.0.0.0:4000/graphql", + Cmd.Flags().StringVar(&graphqlEndpoint, "graphql-endpoint", "http://localhost:10000/graphql", "address used to connect to graphql") } diff --git a/cmd/cartesi-rollups-cli/root/read/reports/reports.go b/cmd/cartesi-rollups-cli/root/read/reports/reports.go index eb601a337..bd33aad40 100644 --- a/cmd/cartesi-rollups-cli/root/read/reports/reports.go +++ b/cmd/cartesi-rollups-cli/root/read/reports/reports.go @@ -31,7 +31,7 @@ func init() { Cmd.Flags().IntVar(&inputIndex, "input-index", -1, "index of the input") - Cmd.Flags().StringVar(&graphqlEndpoint, "graphql-endpoint", "http://0.0.0.0:4000/graphql", + Cmd.Flags().StringVar(&graphqlEndpoint, "graphql-endpoint", "http://localhost:10000/graphql", "address used to connect to graphql") } diff --git a/cmd/cartesi-rollups-cli/root/read/voucher/voucher.go b/cmd/cartesi-rollups-cli/root/read/voucher/voucher.go index 258c0ae28..32d939682 100644 --- a/cmd/cartesi-rollups-cli/root/read/voucher/voucher.go +++ b/cmd/cartesi-rollups-cli/root/read/voucher/voucher.go @@ -39,7 +39,7 @@ func init() { cobra.CheckErr(Cmd.MarkFlagRequired("input-index")) - Cmd.Flags().StringVar(&graphqlEndpoint, "graphql-endpoint", "http://0.0.0.0:4000/graphql", + Cmd.Flags().StringVar(&graphqlEndpoint, "graphql-endpoint", "http://localhost:10000/graphql", "address used to connect to graphql") } diff --git a/cmd/cartesi-rollups-cli/root/read/vouchers/vouchers.go b/cmd/cartesi-rollups-cli/root/read/vouchers/vouchers.go index aa77418f2..6f40b2809 100644 --- a/cmd/cartesi-rollups-cli/root/read/vouchers/vouchers.go +++ b/cmd/cartesi-rollups-cli/root/read/vouchers/vouchers.go @@ -31,7 +31,7 @@ func init() { Cmd.Flags().IntVar(&inputIndex, "input-index", -1, "index of the input") - Cmd.Flags().StringVar(&graphqlEndpoint, "graphql-endpoint", "http://0.0.0.0:4000/graphql", + Cmd.Flags().StringVar(&graphqlEndpoint, "graphql-endpoint", "http://localhost:10000/graphql", "address used to connect to graphql") } diff --git a/cmd/cartesi-rollups-cli/root/validate/validate.go b/cmd/cartesi-rollups-cli/root/validate/validate.go index 985e333c8..e195abac4 100644 --- a/cmd/cartesi-rollups-cli/root/validate/validate.go +++ b/cmd/cartesi-rollups-cli/root/validate/validate.go @@ -44,7 +44,7 @@ func init() { cobra.CheckErr(Cmd.MarkFlagRequired("input-index")) - Cmd.Flags().StringVar(&graphqlEndpoint, "graphql-endpoint", "http://0.0.0.0:10004/graphql", + Cmd.Flags().StringVar(&graphqlEndpoint, "graphql-endpoint", "http://localhost:10000/graphql", "address used to connect to graphql") Cmd.Flags().StringVar(ðEndpoint, "eth-endpoint", "http://localhost:8545", diff --git a/docs/cartesi-rollups-cli_increase-time.md b/docs/cartesi-rollups-cli_increase-time.md index 93a910044..cf47abc11 100644 --- a/docs/cartesi-rollups-cli_increase-time.md +++ b/docs/cartesi-rollups-cli_increase-time.md @@ -16,7 +16,7 @@ cartesi-rollups-cli increase-time ### Options ``` - --anvil-endpoint string anvil address used to send to the request (default "http://0.0.0.0:8545") + --anvil-endpoint string anvil address used to send to the request (default "http://localhost:8545") -h, --help help for increase-time --time int The amount of time to increase in the evm, in seconds (default 86400) ``` diff --git a/docs/cartesi-rollups-cli_inspect.md b/docs/cartesi-rollups-cli_inspect.md index 9c5bf4725..f4563a499 100644 --- a/docs/cartesi-rollups-cli_inspect.md +++ b/docs/cartesi-rollups-cli_inspect.md @@ -17,7 +17,7 @@ cartesi-rollups-cli inspect --payload 0x$(printf "hi" | xxd -p) ``` -h, --help help for inspect - --inspect-endpoint string address used to connect to the inspect api (default "http://0.0.0.0:10009/") + --inspect-endpoint string address used to connect to the inspect api (default "http://localhost:10000/") --payload string input payload hex-encoded starting with 0x ``` diff --git a/docs/cartesi-rollups-cli_read_input.md b/docs/cartesi-rollups-cli_read_input.md index 074ca919a..035035b12 100644 --- a/docs/cartesi-rollups-cli_read_input.md +++ b/docs/cartesi-rollups-cli_read_input.md @@ -16,7 +16,7 @@ cartesi-rollups-cli read input --index 5 ### Options ``` - --graphql-endpoint string address used to connect to graphql (default "http://0.0.0.0:4000/graphql") + --graphql-endpoint string address used to connect to graphql (default "http://localhost:10000/graphql") -h, --help help for input --index int index of the input ``` diff --git a/docs/cartesi-rollups-cli_read_inputs.md b/docs/cartesi-rollups-cli_read_inputs.md index 567381212..6ed91febd 100644 --- a/docs/cartesi-rollups-cli_read_inputs.md +++ b/docs/cartesi-rollups-cli_read_inputs.md @@ -16,7 +16,7 @@ cartesi-rollups-cli read inputs ### Options ``` - --graphql-endpoint string address used to connect to graphql (default "http://0.0.0.0:4000/graphql") + --graphql-endpoint string address used to connect to graphql (default "http://localhost:10000/graphql") -h, --help help for inputs ``` diff --git a/docs/cartesi-rollups-cli_read_notice.md b/docs/cartesi-rollups-cli_read_notice.md index 3cba296e8..8f498a460 100644 --- a/docs/cartesi-rollups-cli_read_notice.md +++ b/docs/cartesi-rollups-cli_read_notice.md @@ -16,7 +16,7 @@ cartesi-rollups-cli read notice --notice-index 5 --input-index 6 ### Options ``` - --graphql-endpoint string address used to connect to graphql (default "http://0.0.0.0:4000/graphql") + --graphql-endpoint string address used to connect to graphql (default "http://localhost:10000/graphql") -h, --help help for notice --input-index int index of the input --notice-index int index of the notice diff --git a/docs/cartesi-rollups-cli_read_notices.md b/docs/cartesi-rollups-cli_read_notices.md index bb29006f1..d59ff1faa 100644 --- a/docs/cartesi-rollups-cli_read_notices.md +++ b/docs/cartesi-rollups-cli_read_notices.md @@ -16,7 +16,7 @@ cartesi-rollups-cli read notices ### Options ``` - --graphql-endpoint string address used to connect to graphql (default "http://0.0.0.0:4000/graphql") + --graphql-endpoint string address used to connect to graphql (default "http://localhost:10000/graphql") -h, --help help for notices --input-index int index of the input (default -1) ``` diff --git a/docs/cartesi-rollups-cli_read_report.md b/docs/cartesi-rollups-cli_read_report.md index 57d4b3081..ee9050b4d 100644 --- a/docs/cartesi-rollups-cli_read_report.md +++ b/docs/cartesi-rollups-cli_read_report.md @@ -16,7 +16,7 @@ cartesi-rollups-cli read report --report-index 5 --input-index 6 ### Options ``` - --graphql-endpoint string address used to connect to graphql (default "http://0.0.0.0:4000/graphql") + --graphql-endpoint string address used to connect to graphql (default "http://localhost:10000/graphql") -h, --help help for report --input-index int index of the input --report-index int index of the report diff --git a/docs/cartesi-rollups-cli_read_reports.md b/docs/cartesi-rollups-cli_read_reports.md index 62eb2f7ea..9b46b9e38 100644 --- a/docs/cartesi-rollups-cli_read_reports.md +++ b/docs/cartesi-rollups-cli_read_reports.md @@ -16,7 +16,7 @@ cartesi-rollups-cli read reports ### Options ``` - --graphql-endpoint string address used to connect to graphql (default "http://0.0.0.0:4000/graphql") + --graphql-endpoint string address used to connect to graphql (default "http://localhost:10000/graphql") -h, --help help for reports --input-index int index of the input (default -1) ``` diff --git a/docs/cartesi-rollups-cli_read_voucher.md b/docs/cartesi-rollups-cli_read_voucher.md index 2c863c97b..c47bb0020 100644 --- a/docs/cartesi-rollups-cli_read_voucher.md +++ b/docs/cartesi-rollups-cli_read_voucher.md @@ -16,7 +16,7 @@ cartesi-rollups-cli read voucher --voucher-index 5 --input-index 6 ### Options ``` - --graphql-endpoint string address used to connect to graphql (default "http://0.0.0.0:4000/graphql") + --graphql-endpoint string address used to connect to graphql (default "http://localhost:10000/graphql") -h, --help help for voucher --input-index int index of the input --voucher-index int index of the voucher diff --git a/docs/cartesi-rollups-cli_read_vouchers.md b/docs/cartesi-rollups-cli_read_vouchers.md index 758aecd3f..304483177 100644 --- a/docs/cartesi-rollups-cli_read_vouchers.md +++ b/docs/cartesi-rollups-cli_read_vouchers.md @@ -16,7 +16,7 @@ cartesi-rollups-cli read vouchers ### Options ``` - --graphql-endpoint string address used to connect to graphql (default "http://0.0.0.0:4000/graphql") + --graphql-endpoint string address used to connect to graphql (default "http://localhost:10000/graphql") -h, --help help for vouchers --input-index int index of the input (default -1) ``` diff --git a/docs/cartesi-rollups-cli_validate.md b/docs/cartesi-rollups-cli_validate.md index c4e7430ed..de2a430a8 100644 --- a/docs/cartesi-rollups-cli_validate.md +++ b/docs/cartesi-rollups-cli_validate.md @@ -18,7 +18,7 @@ cartesi-rollups-cli validate --notice-index 5 --input-index 6 ``` --address-book string if set, load the address book from the given file; else, use test addresses --eth-endpoint string ethereum node JSON-RPC endpoint (default "http://localhost:8545") - --graphql-endpoint string address used to connect to graphql (default "http://0.0.0.0:10004/graphql") + --graphql-endpoint string address used to connect to graphql (default "http://localhost:10000/graphql") -h, --help help for validate --input-index int index of the input --notice-index int index of the notice