diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 72caca59..20408e24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ env: GO_VERSION: "1.21" # https://go.dev/dl/ STRINGER_VERSION: "0.23.0" # https://pkg.go.dev/golang.org/x/tools/cmd/stringer?tab=versions # Protoc dependencies. - PROTOC_VERSION: "27.1" # https://github.com/protocolbuffers/protobuf/releases + PROTOC_VERSION: "27.3" # https://github.com/protocolbuffers/protobuf/releases PROTOC_GEN_GO_VERSION: "1.31.0" # https://pkg.go.dev/google.golang.org/protobuf/cmd/protoc-gen-go?tab=versions PROTOC_GEN_GO_GRPC_VERSION: "1.4.0" # https://pkg.go.dev/google.golang.org/grpc/cmd/protoc-gen-go-grpc?tab=versions ARCH: "linux-x86_64" @@ -134,3 +134,14 @@ jobs: make ${{ matrix.tool }} & sleep 5 make loadtest + + install: + name: Install go package + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ env.GO_VERSION }} + - name: Install polycli using go + run: go install github.com/0xPolygon/polygon-cli@latest diff --git a/Dockerfile b/Dockerfile index 1917167e..5da4b3db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,4 +28,4 @@ ENTRYPOINT ["polycli"] CMD ["--help"] # How to test this image? -# https://github.com/maticnetwork/polygon-cli/pull/189#discussion_r1464486344 +# https://github.com/0xPolygon/polygon-cli/pull/189#discussion_r1464486344 diff --git a/Makefile b/Makefile index 62126bae..88b751c9 100644 --- a/Makefile +++ b/Makefile @@ -10,10 +10,10 @@ GIT_SHA := $(shell git rev-parse HEAD | cut -c 1-8) GIT_TAG := $(shell git describe --tags) DATE := $(shell date +%s) VERSION_FLAGS=\ - -X github.com/maticnetwork/polygon-cli/cmd/version.Version=$(GIT_TAG) \ - -X github.com/maticnetwork/polygon-cli/cmd/version.Commit=$(GIT_SHA) \ - -X github.com/maticnetwork/polygon-cli/cmd/version.Date=$(DATE) \ - -X github.com/maticnetwork/polygon-cli/cmd/version.BuiltBy=makefile + -X github.com/0xPolygon/polygon-cli/cmd/version.Version=$(GIT_TAG) \ + -X github.com/0xPolygon/polygon-cli/cmd/version.Commit=$(GIT_SHA) \ + -X github.com/0xPolygon/polygon-cli/cmd/version.Date=$(DATE) \ + -X github.com/0xPolygon/polygon-cli/cmd/version.BuiltBy=makefile .PHONY: help help: ## Display this help. diff --git a/bindings/tester/helper.go b/bindings/tester/helper.go index ea34931a..0b720eb0 100644 --- a/bindings/tester/helper.go +++ b/bindings/tester/helper.go @@ -13,7 +13,7 @@ import ( ethcommon "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/ethclient" - "github.com/maticnetwork/polygon-cli/util" + "github.com/0xPolygon/polygon-cli/util" "github.com/rs/zerolog/log" ) diff --git a/cmd/abi/abi.go b/cmd/abi/abi.go index c95ccf77..90418f05 100644 --- a/cmd/abi/abi.go +++ b/cmd/abi/abi.go @@ -5,8 +5,8 @@ import ( _ "embed" - "github.com/maticnetwork/polygon-cli/cmd/abi/decode" - "github.com/maticnetwork/polygon-cli/cmd/abi/encode" + "github.com/0xPolygon/polygon-cli/cmd/abi/decode" + "github.com/0xPolygon/polygon-cli/cmd/abi/encode" ) var ( diff --git a/cmd/abi/encode/encode.go b/cmd/abi/encode/encode.go index a692114a..5cc55f2f 100644 --- a/cmd/abi/encode/encode.go +++ b/cmd/abi/encode/encode.go @@ -7,7 +7,7 @@ import ( "github.com/spf13/cobra" - "github.com/maticnetwork/polygon-cli/abi" + "github.com/0xPolygon/polygon-cli/abi" ) var ( diff --git a/cmd/dbbench/dbbench.go b/cmd/dbbench/dbbench.go index 51e172da..ad4af824 100644 --- a/cmd/dbbench/dbbench.go +++ b/cmd/dbbench/dbbench.go @@ -624,8 +624,8 @@ func init() { readStrict = flagSet.Bool("read-strict", false, "if true the rand reads will be made in strict mode") noWriteMerge = flagSet.Bool("no-merge-write", false, "allows disabling write merge") syncWrites = flagSet.Bool("sync-writes", false, "sync each write") - // https://github.com/maticnetwork/bor/blob/eedeaed1fb17d73dd46d8999644d5035e176e22a/eth/backend.go#L141 - // https://github.com/maticnetwork/bor/blob/eedeaed1fb17d73dd46d8999644d5035e176e22a/eth/ethconfig/config.go#L86C2-L86C15 + // https://github.com/0xPolygon/bor/blob/eedeaed1fb17d73dd46d8999644d5035e176e22a/eth/backend.go#L141 + // https://github.com/0xPolygon/bor/blob/eedeaed1fb17d73dd46d8999644d5035e176e22a/eth/ethconfig/config.go#L86C2-L86C15 cacheSize = flagSet.Int("cache-size", 512, "the number of megabytes to use as our internal cache size") openFilesCacheCapacity = flagSet.Int("handles", 500, "defines the capacity of the open files caching. Use -1 for zero, this has same effect as specifying NoCacher to OpenFilesCacher.") writeZero = flagSet.Bool("write-zero", false, "if true, we'll write 0s rather than random data") diff --git a/cmd/dumpblocks/dumpblocks.go b/cmd/dumpblocks/dumpblocks.go index c7f76e36..8b30bfa1 100644 --- a/cmd/dumpblocks/dumpblocks.go +++ b/cmd/dumpblocks/dumpblocks.go @@ -13,9 +13,9 @@ import ( _ "embed" ethrpc "github.com/ethereum/go-ethereum/rpc" - "github.com/maticnetwork/polygon-cli/proto/gen/pb" - "github.com/maticnetwork/polygon-cli/rpctypes" - "github.com/maticnetwork/polygon-cli/util" + "github.com/0xPolygon/polygon-cli/proto/gen/pb" + "github.com/0xPolygon/polygon-cli/rpctypes" + "github.com/0xPolygon/polygon-cli/util" "github.com/rs/zerolog/log" "github.com/spf13/cobra" "golang.org/x/exp/slices" diff --git a/cmd/ecrecover/ecrecover.go b/cmd/ecrecover/ecrecover.go index 8a83c6d7..79db2d34 100644 --- a/cmd/ecrecover/ecrecover.go +++ b/cmd/ecrecover/ecrecover.go @@ -11,7 +11,7 @@ import ( "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/ethclient" ethrpc "github.com/ethereum/go-ethereum/rpc" - "github.com/maticnetwork/polygon-cli/util" + "github.com/0xPolygon/polygon-cli/util" "github.com/rs/zerolog/log" "github.com/spf13/cobra" ) diff --git a/cmd/fund/cmd.go b/cmd/fund/cmd.go index fbb102c8..cb4aaf72 100644 --- a/cmd/fund/cmd.go +++ b/cmd/fund/cmd.go @@ -6,7 +6,7 @@ import ( _ "embed" - "github.com/maticnetwork/polygon-cli/util" + "github.com/0xPolygon/polygon-cli/util" "github.com/spf13/cobra" ) diff --git a/cmd/fund/fund.go b/cmd/fund/fund.go index 920e1672..22e44677 100644 --- a/cmd/fund/fund.go +++ b/cmd/fund/fund.go @@ -16,9 +16,9 @@ import ( "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethclient" "github.com/ethereum/go-ethereum/rpc" - "github.com/maticnetwork/polygon-cli/bindings/funder" - "github.com/maticnetwork/polygon-cli/hdwallet" - "github.com/maticnetwork/polygon-cli/util" + "github.com/0xPolygon/polygon-cli/bindings/funder" + "github.com/0xPolygon/polygon-cli/hdwallet" + "github.com/0xPolygon/polygon-cli/util" "github.com/rs/zerolog/log" ) diff --git a/cmd/loadtest/app.go b/cmd/loadtest/app.go index 923128d0..785266c7 100644 --- a/cmd/loadtest/app.go +++ b/cmd/loadtest/app.go @@ -10,8 +10,8 @@ import ( "time" ethcommon "github.com/ethereum/go-ethereum/common" - "github.com/maticnetwork/polygon-cli/rpctypes" - "github.com/maticnetwork/polygon-cli/util" + "github.com/0xPolygon/polygon-cli/rpctypes" + "github.com/0xPolygon/polygon-cli/util" "github.com/rs/zerolog" "github.com/spf13/cobra" "golang.org/x/time/rate" diff --git a/cmd/loadtest/loadtest.go b/cmd/loadtest/loadtest.go index 49626c12..1e512bb5 100644 --- a/cmd/loadtest/loadtest.go +++ b/cmd/loadtest/loadtest.go @@ -23,13 +23,13 @@ import ( "github.com/ethereum/go-ethereum/signer/core/apitypes" "github.com/holiman/uint256" - "github.com/maticnetwork/polygon-cli/bindings/tester" - "github.com/maticnetwork/polygon-cli/bindings/tokens" - uniswapv3loadtest "github.com/maticnetwork/polygon-cli/cmd/loadtest/uniswapv3" + "github.com/0xPolygon/polygon-cli/bindings/tester" + "github.com/0xPolygon/polygon-cli/bindings/tokens" + uniswapv3loadtest "github.com/0xPolygon/polygon-cli/cmd/loadtest/uniswapv3" - "github.com/maticnetwork/polygon-cli/abi" - "github.com/maticnetwork/polygon-cli/rpctypes" - "github.com/maticnetwork/polygon-cli/util" + "github.com/0xPolygon/polygon-cli/abi" + "github.com/0xPolygon/polygon-cli/rpctypes" + "github.com/0xPolygon/polygon-cli/util" ethereum "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/accounts/abi/bind" @@ -53,7 +53,7 @@ const ( // If you add a new constant, it fill fail to compile until you regenerate the strings. // There are two steps needed: // 1. Install stringer: `go install golang.org/x/tools/cmd/stringer`. - // 2. Generate the string: `go generate github.com/maticnetwork/polygon-cli/cmd/loadtest`. + // 2. Generate the string: `go generate github.com/0xPolygon/polygon-cli/cmd/loadtest`. // You can also use `make gen-loadtest-modes`. loadTestModeERC20 loadTestMode = iota loadTestModeERC721 diff --git a/cmd/loadtest/output.go b/cmd/loadtest/output.go index 1ac3cc9e..8b54838f 100644 --- a/cmd/loadtest/output.go +++ b/cmd/loadtest/output.go @@ -13,8 +13,8 @@ import ( "golang.org/x/time/rate" - "github.com/maticnetwork/polygon-cli/rpctypes" - "github.com/maticnetwork/polygon-cli/util" + "github.com/0xPolygon/polygon-cli/rpctypes" + "github.com/0xPolygon/polygon-cli/util" "golang.org/x/exp/constraints" "golang.org/x/text/language" "golang.org/x/text/message" diff --git a/cmd/loadtest/recall.go b/cmd/loadtest/recall.go index 3c8ccf1f..38d97877 100644 --- a/cmd/loadtest/recall.go +++ b/cmd/loadtest/recall.go @@ -6,8 +6,8 @@ import ( ethtypes "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/ethclient" ethrpc "github.com/ethereum/go-ethereum/rpc" - "github.com/maticnetwork/polygon-cli/rpctypes" - "github.com/maticnetwork/polygon-cli/util" + "github.com/0xPolygon/polygon-cli/rpctypes" + "github.com/0xPolygon/polygon-cli/util" "math/big" "strings" ) diff --git a/cmd/loadtest/uniswapv3.go b/cmd/loadtest/uniswapv3.go index ec8d819d..e04927d8 100644 --- a/cmd/loadtest/uniswapv3.go +++ b/cmd/loadtest/uniswapv3.go @@ -13,8 +13,8 @@ import ( "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethclient" - "github.com/maticnetwork/polygon-cli/bindings/uniswapv3" - uniswapv3loadtest "github.com/maticnetwork/polygon-cli/cmd/loadtest/uniswapv3" + "github.com/0xPolygon/polygon-cli/bindings/uniswapv3" + uniswapv3loadtest "github.com/0xPolygon/polygon-cli/cmd/loadtest/uniswapv3" "github.com/rs/zerolog/log" ) diff --git a/cmd/loadtest/uniswapv3/deploy.go b/cmd/loadtest/uniswapv3/deploy.go index 1596f2ee..492d3ec0 100644 --- a/cmd/loadtest/uniswapv3/deploy.go +++ b/cmd/loadtest/uniswapv3/deploy.go @@ -11,8 +11,8 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/ethclient" - "github.com/maticnetwork/polygon-cli/bindings/uniswapv3" - "github.com/maticnetwork/polygon-cli/util" + "github.com/0xPolygon/polygon-cli/bindings/uniswapv3" + "github.com/0xPolygon/polygon-cli/util" "github.com/rs/zerolog/log" ) diff --git a/cmd/loadtest/uniswapv3/pool.go b/cmd/loadtest/uniswapv3/pool.go index 03885965..5ada80bd 100644 --- a/cmd/loadtest/uniswapv3/pool.go +++ b/cmd/loadtest/uniswapv3/pool.go @@ -10,8 +10,8 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/ethclient" - "github.com/maticnetwork/polygon-cli/bindings/uniswapv3" - "github.com/maticnetwork/polygon-cli/util" + "github.com/0xPolygon/polygon-cli/bindings/uniswapv3" + "github.com/0xPolygon/polygon-cli/util" "github.com/rs/zerolog/log" ) diff --git a/cmd/loadtest/uniswapv3/swap.go b/cmd/loadtest/uniswapv3/swap.go index 0b7beabd..15f17243 100644 --- a/cmd/loadtest/uniswapv3/swap.go +++ b/cmd/loadtest/uniswapv3/swap.go @@ -5,7 +5,7 @@ import ( "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/common" - "github.com/maticnetwork/polygon-cli/bindings/uniswapv3" + "github.com/0xPolygon/polygon-cli/bindings/uniswapv3" "github.com/rs/zerolog/log" ) diff --git a/cmd/loadtest/uniswapv3/swapper.go b/cmd/loadtest/uniswapv3/swapper.go index f86ce208..f85f4c40 100644 --- a/cmd/loadtest/uniswapv3/swapper.go +++ b/cmd/loadtest/uniswapv3/swapper.go @@ -10,8 +10,8 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/ethclient" - "github.com/maticnetwork/polygon-cli/bindings/uniswapv3" - "github.com/maticnetwork/polygon-cli/util" + "github.com/0xPolygon/polygon-cli/bindings/uniswapv3" + "github.com/0xPolygon/polygon-cli/util" "github.com/rs/zerolog/log" ) diff --git a/cmd/metricsToDash/metricsToDash.go b/cmd/metricsToDash/metricsToDash.go index 21dd5501..81a600cc 100644 --- a/cmd/metricsToDash/metricsToDash.go +++ b/cmd/metricsToDash/metricsToDash.go @@ -5,7 +5,7 @@ import ( _ "embed" - "github.com/maticnetwork/polygon-cli/dashboard" + "github.com/0xPolygon/polygon-cli/dashboard" "github.com/spf13/cobra" ) diff --git a/cmd/mnemonic/mnemonic.go b/cmd/mnemonic/mnemonic.go index 7b37310c..79e0feec 100644 --- a/cmd/mnemonic/mnemonic.go +++ b/cmd/mnemonic/mnemonic.go @@ -3,7 +3,7 @@ package mnemonic import ( "fmt" - "github.com/maticnetwork/polygon-cli/hdwallet" + "github.com/0xPolygon/polygon-cli/hdwallet" "github.com/spf13/cobra" ) diff --git a/cmd/monitor/cmd.go b/cmd/monitor/cmd.go index 66aa6051..1395e593 100644 --- a/cmd/monitor/cmd.go +++ b/cmd/monitor/cmd.go @@ -7,7 +7,7 @@ import ( "sync" "time" - "github.com/maticnetwork/polygon-cli/util" + "github.com/0xPolygon/polygon-cli/util" "github.com/spf13/cobra" ) diff --git a/cmd/monitor/monitor.go b/cmd/monitor/monitor.go index 09851ee4..3491f673 100644 --- a/cmd/monitor/monitor.go +++ b/cmd/monitor/monitor.go @@ -11,7 +11,7 @@ import ( "time" lru "github.com/hashicorp/golang-lru" - "github.com/maticnetwork/polygon-cli/util" + "github.com/0xPolygon/polygon-cli/util" _ "embed" @@ -20,9 +20,9 @@ import ( "github.com/cenkalti/backoff/v4" termui "github.com/gizak/termui/v3" - "github.com/maticnetwork/polygon-cli/cmd/monitor/ui" - "github.com/maticnetwork/polygon-cli/metrics" - "github.com/maticnetwork/polygon-cli/rpctypes" + "github.com/0xPolygon/polygon-cli/cmd/monitor/ui" + "github.com/0xPolygon/polygon-cli/metrics" + "github.com/0xPolygon/polygon-cli/rpctypes" "github.com/rs/zerolog/log" ) diff --git a/cmd/monitor/ui/ui.go b/cmd/monitor/ui/ui.go index 3ebfde9e..4f60896e 100644 --- a/cmd/monitor/ui/ui.go +++ b/cmd/monitor/ui/ui.go @@ -14,8 +14,8 @@ import ( ethrpc "github.com/ethereum/go-ethereum/rpc" ui "github.com/gizak/termui/v3" "github.com/gizak/termui/v3/widgets" - "github.com/maticnetwork/polygon-cli/metrics" - "github.com/maticnetwork/polygon-cli/rpctypes" + "github.com/0xPolygon/polygon-cli/metrics" + "github.com/0xPolygon/polygon-cli/rpctypes" "github.com/rs/zerolog/log" ) diff --git a/cmd/p2p/crawl/crawl.go b/cmd/p2p/crawl/crawl.go index 6ed24e16..077ed687 100644 --- a/cmd/p2p/crawl/crawl.go +++ b/cmd/p2p/crawl/crawl.go @@ -10,7 +10,7 @@ import ( "github.com/rs/zerolog/log" "github.com/spf13/cobra" - "github.com/maticnetwork/polygon-cli/p2p" + "github.com/0xPolygon/polygon-cli/p2p" ) type ( diff --git a/cmd/p2p/crawl/crawl_util.go b/cmd/p2p/crawl/crawl_util.go index 9d33c30f..564eefe0 100644 --- a/cmd/p2p/crawl/crawl_util.go +++ b/cmd/p2p/crawl/crawl_util.go @@ -9,7 +9,7 @@ import ( "github.com/ethereum/go-ethereum/p2p/enode" "github.com/rs/zerolog/log" - "github.com/maticnetwork/polygon-cli/p2p" + "github.com/0xPolygon/polygon-cli/p2p" ) type crawler struct { diff --git a/cmd/p2p/nodelist/nodelist.go b/cmd/p2p/nodelist/nodelist.go index 4b7f8d58..a19a4b5a 100644 --- a/cmd/p2p/nodelist/nodelist.go +++ b/cmd/p2p/nodelist/nodelist.go @@ -4,7 +4,7 @@ import ( "encoding/json" "os" - "github.com/maticnetwork/polygon-cli/p2p/database" + "github.com/0xPolygon/polygon-cli/p2p/database" "github.com/spf13/cobra" ) diff --git a/cmd/p2p/p2p.go b/cmd/p2p/p2p.go index 73349b91..159827d4 100644 --- a/cmd/p2p/p2p.go +++ b/cmd/p2p/p2p.go @@ -5,11 +5,11 @@ import ( _ "embed" - "github.com/maticnetwork/polygon-cli/cmd/p2p/crawl" - "github.com/maticnetwork/polygon-cli/cmd/p2p/nodelist" - "github.com/maticnetwork/polygon-cli/cmd/p2p/ping" - "github.com/maticnetwork/polygon-cli/cmd/p2p/query" - "github.com/maticnetwork/polygon-cli/cmd/p2p/sensor" + "github.com/0xPolygon/polygon-cli/cmd/p2p/crawl" + "github.com/0xPolygon/polygon-cli/cmd/p2p/nodelist" + "github.com/0xPolygon/polygon-cli/cmd/p2p/ping" + "github.com/0xPolygon/polygon-cli/cmd/p2p/query" + "github.com/0xPolygon/polygon-cli/cmd/p2p/sensor" ) //go:embed usage.md diff --git a/cmd/p2p/ping/ping.go b/cmd/p2p/ping/ping.go index f61a3cca..78de7e21 100644 --- a/cmd/p2p/ping/ping.go +++ b/cmd/p2p/ping/ping.go @@ -8,7 +8,7 @@ import ( "github.com/rs/zerolog/log" "github.com/spf13/cobra" - "github.com/maticnetwork/polygon-cli/p2p" + "github.com/0xPolygon/polygon-cli/p2p" ) type ( diff --git a/cmd/p2p/query/query.go b/cmd/p2p/query/query.go index 99f38c11..f4363108 100644 --- a/cmd/p2p/query/query.go +++ b/cmd/p2p/query/query.go @@ -7,7 +7,7 @@ import ( "github.com/rs/zerolog/log" "github.com/spf13/cobra" - "github.com/maticnetwork/polygon-cli/p2p" + "github.com/0xPolygon/polygon-cli/p2p" ) type ( diff --git a/cmd/p2p/sensor/sensor.go b/cmd/p2p/sensor/sensor.go index c841c205..92afed37 100644 --- a/cmd/p2p/sensor/sensor.go +++ b/cmd/p2p/sensor/sensor.go @@ -31,9 +31,9 @@ import ( "github.com/rs/zerolog/log" "github.com/spf13/cobra" - "github.com/maticnetwork/polygon-cli/p2p" - "github.com/maticnetwork/polygon-cli/p2p/database" - "github.com/maticnetwork/polygon-cli/rpctypes" + "github.com/0xPolygon/polygon-cli/p2p" + "github.com/0xPolygon/polygon-cli/p2p/database" + "github.com/0xPolygon/polygon-cli/rpctypes" ) type ( diff --git a/cmd/p2p/usage.md b/cmd/p2p/usage.md index 3e96c9e9..60dcd69a 100644 --- a/cmd/p2p/usage.md +++ b/cmd/p2p/usage.md @@ -58,6 +58,6 @@ polycli p2p crawl nodes.json \ --network-id 137 ``` -[mainnet-genesis]: https://github.com/maticnetwork/bor/blob/master/builder/files/genesis-mainnet-v1.json -[mumbai-genesis]: https://github.com/maticnetwork/bor/blob/master/builder/files/genesis-testnet-v4.json +[mainnet-genesis]: https://github.com/0xPolygon/bor/blob/master/builder/files/genesis-mainnet-v1.json +[mumbai-genesis]: https://github.com/0xPolygon/bor/blob/master/builder/files/genesis-testnet-v4.json [bootnodes]: https://wiki.polygon.technology/docs/pos/operate/node/full-node-binaries/#configure-bor-seeds-mainnet diff --git a/cmd/parseethwallet/parseethwallet.go b/cmd/parseethwallet/parseethwallet.go index a968dc0d..0851f890 100644 --- a/cmd/parseethwallet/parseethwallet.go +++ b/cmd/parseethwallet/parseethwallet.go @@ -4,7 +4,7 @@ import ( "encoding/hex" "encoding/json" "fmt" - "github.com/maticnetwork/polygon-cli/gethkeystore" + "github.com/0xPolygon/polygon-cli/gethkeystore" "io" "os" "strings" diff --git a/cmd/retest/retest.go b/cmd/retest/retest.go index 904e9d27..d7c452d2 100644 --- a/cmd/retest/retest.go +++ b/cmd/retest/retest.go @@ -8,7 +8,7 @@ import ( "fmt" ethcommon "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/maticnetwork/polygon-cli/abi" + "github.com/0xPolygon/polygon-cli/abi" "github.com/rs/zerolog/log" "github.com/spf13/cobra" "io" diff --git a/cmd/root.go b/cmd/root.go index c9bc9c13..e4240f26 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -2,34 +2,34 @@ package cmd import ( "fmt" - "github.com/maticnetwork/polygon-cli/cmd/retest" - "github.com/maticnetwork/polygon-cli/cmd/ulxly" + "github.com/0xPolygon/polygon-cli/cmd/retest" + "github.com/0xPolygon/polygon-cli/cmd/ulxly" "os" - "github.com/maticnetwork/polygon-cli/cmd/fork" - "github.com/maticnetwork/polygon-cli/cmd/p2p" - "github.com/maticnetwork/polygon-cli/cmd/parseethwallet" - "github.com/maticnetwork/polygon-cli/util" + "github.com/0xPolygon/polygon-cli/cmd/fork" + "github.com/0xPolygon/polygon-cli/cmd/p2p" + "github.com/0xPolygon/polygon-cli/cmd/parseethwallet" + "github.com/0xPolygon/polygon-cli/util" "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/maticnetwork/polygon-cli/cmd/abi" - "github.com/maticnetwork/polygon-cli/cmd/dbbench" - "github.com/maticnetwork/polygon-cli/cmd/dumpblocks" - "github.com/maticnetwork/polygon-cli/cmd/ecrecover" - "github.com/maticnetwork/polygon-cli/cmd/enr" - "github.com/maticnetwork/polygon-cli/cmd/fund" - "github.com/maticnetwork/polygon-cli/cmd/hash" - "github.com/maticnetwork/polygon-cli/cmd/loadtest" - "github.com/maticnetwork/polygon-cli/cmd/metricsToDash" - "github.com/maticnetwork/polygon-cli/cmd/mnemonic" - "github.com/maticnetwork/polygon-cli/cmd/monitor" - "github.com/maticnetwork/polygon-cli/cmd/nodekey" - "github.com/maticnetwork/polygon-cli/cmd/rpcfuzz" - "github.com/maticnetwork/polygon-cli/cmd/signer" - "github.com/maticnetwork/polygon-cli/cmd/version" - "github.com/maticnetwork/polygon-cli/cmd/wallet" + "github.com/0xPolygon/polygon-cli/cmd/abi" + "github.com/0xPolygon/polygon-cli/cmd/dbbench" + "github.com/0xPolygon/polygon-cli/cmd/dumpblocks" + "github.com/0xPolygon/polygon-cli/cmd/ecrecover" + "github.com/0xPolygon/polygon-cli/cmd/enr" + "github.com/0xPolygon/polygon-cli/cmd/fund" + "github.com/0xPolygon/polygon-cli/cmd/hash" + "github.com/0xPolygon/polygon-cli/cmd/loadtest" + "github.com/0xPolygon/polygon-cli/cmd/metricsToDash" + "github.com/0xPolygon/polygon-cli/cmd/mnemonic" + "github.com/0xPolygon/polygon-cli/cmd/monitor" + "github.com/0xPolygon/polygon-cli/cmd/nodekey" + "github.com/0xPolygon/polygon-cli/cmd/rpcfuzz" + "github.com/0xPolygon/polygon-cli/cmd/signer" + "github.com/0xPolygon/polygon-cli/cmd/version" + "github.com/0xPolygon/polygon-cli/cmd/wallet" ) var ( diff --git a/cmd/rpcfuzz/cmd.go b/cmd/rpcfuzz/cmd.go index b0d406e3..22c68fee 100644 --- a/cmd/rpcfuzz/cmd.go +++ b/cmd/rpcfuzz/cmd.go @@ -8,8 +8,8 @@ import ( "github.com/ethereum/go-ethereum/crypto" fuzz "github.com/google/gofuzz" - "github.com/maticnetwork/polygon-cli/cmd/rpcfuzz/argfuzz" - "github.com/maticnetwork/polygon-cli/util" + "github.com/0xPolygon/polygon-cli/cmd/rpcfuzz/argfuzz" + "github.com/0xPolygon/polygon-cli/util" "github.com/rs/zerolog/log" "github.com/spf13/cobra" ) diff --git a/cmd/rpcfuzz/rpcfuzz.go b/cmd/rpcfuzz/rpcfuzz.go index f0f7c73f..5065f76e 100644 --- a/cmd/rpcfuzz/rpcfuzz.go +++ b/cmd/rpcfuzz/rpcfuzz.go @@ -36,9 +36,9 @@ import ( "github.com/ethereum/go-ethereum/ethclient" "github.com/ethereum/go-ethereum/rpc" fuzz "github.com/google/gofuzz" - "github.com/maticnetwork/polygon-cli/bindings/tester" - "github.com/maticnetwork/polygon-cli/cmd/rpcfuzz/testreporter" - "github.com/maticnetwork/polygon-cli/rpctypes" + "github.com/0xPolygon/polygon-cli/bindings/tester" + "github.com/0xPolygon/polygon-cli/cmd/rpcfuzz/testreporter" + "github.com/0xPolygon/polygon-cli/rpctypes" "github.com/rs/zerolog/log" "github.com/xeipuuv/gojsonschema" ) diff --git a/cmd/signer/signer.go b/cmd/signer/signer.go index 479e5f57..00567b9f 100644 --- a/cmd/signer/signer.go +++ b/cmd/signer/signer.go @@ -32,7 +32,7 @@ import ( "github.com/ethereum/go-ethereum/signer/core/apitypes" "github.com/google/tink/go/kwp/subtle" "github.com/manifoldco/promptui" - "github.com/maticnetwork/polygon-cli/gethkeystore" + "github.com/0xPolygon/polygon-cli/gethkeystore" "github.com/rs/zerolog/log" "github.com/spf13/cobra" "google.golang.org/api/iterator" diff --git a/cmd/ulxly/ulxly.go b/cmd/ulxly/ulxly.go index 6fae7e1e..4a008d4d 100644 --- a/cmd/ulxly/ulxly.go +++ b/cmd/ulxly/ulxly.go @@ -26,7 +26,7 @@ import ( ethclient "github.com/ethereum/go-ethereum/ethclient" ethrpc "github.com/ethereum/go-ethereum/rpc" - "github.com/maticnetwork/polygon-cli/bindings/ulxly" + "github.com/0xPolygon/polygon-cli/bindings/ulxly" "github.com/rs/zerolog/log" "github.com/spf13/cobra" ) diff --git a/cmd/wallet/wallet.go b/cmd/wallet/wallet.go index 868552d3..c16947b4 100644 --- a/cmd/wallet/wallet.go +++ b/cmd/wallet/wallet.go @@ -7,7 +7,7 @@ import ( _ "embed" - "github.com/maticnetwork/polygon-cli/hdwallet" + "github.com/0xPolygon/polygon-cli/hdwallet" "github.com/spf13/cobra" ) diff --git a/doc/polycli_p2p.md b/doc/polycli_p2p.md index 0ffc91be..8c814f11 100644 --- a/doc/polycli_p2p.md +++ b/doc/polycli_p2p.md @@ -75,8 +75,8 @@ polycli p2p crawl nodes.json \ --network-id 137 ``` -[mainnet-genesis]: https://github.com/maticnetwork/bor/blob/master/builder/files/genesis-mainnet-v1.json -[mumbai-genesis]: https://github.com/maticnetwork/bor/blob/master/builder/files/genesis-testnet-v4.json +[mainnet-genesis]: https://github.com/0xPolygon/bor/blob/master/builder/files/genesis-mainnet-v1.json +[mumbai-genesis]: https://github.com/0xPolygon/bor/blob/master/builder/files/genesis-testnet-v4.json [bootnodes]: https://wiki.polygon.technology/docs/pos/operate/node/full-node-binaries/#configure-bor-seeds-mainnet ## Flags diff --git a/docutil/main.go b/docutil/main.go index 2a934936..0edbf18a 100644 --- a/docutil/main.go +++ b/docutil/main.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/maticnetwork/polygon-cli/cmd" + "github.com/0xPolygon/polygon-cli/cmd" ) var ( diff --git a/go.mod b/go.mod index 0288893d..38a50258 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/maticnetwork/polygon-cli +module github.com/0xPolygon/polygon-cli go 1.21 diff --git a/main.go b/main.go index d11a07d0..f9341872 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,6 @@ package main -import "github.com/maticnetwork/polygon-cli/cmd" +import "github.com/0xPolygon/polygon-cli/cmd" func main() { cmd.Execute() diff --git a/metrics/metrics.go b/metrics/metrics.go index e315c8ed..87bc623a 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -10,7 +10,7 @@ import ( "github.com/ethereum/go-ethereum/consensus/clique" ethtypes "github.com/ethereum/go-ethereum/core/types" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/maticnetwork/polygon-cli/rpctypes" + "github.com/0xPolygon/polygon-cli/rpctypes" ) var ( diff --git a/p2p/protocol.go b/p2p/protocol.go index 8fcef238..4fa5ad31 100644 --- a/p2p/protocol.go +++ b/p2p/protocol.go @@ -20,7 +20,7 @@ import ( "github.com/rs/zerolog" "github.com/rs/zerolog/log" - "github.com/maticnetwork/polygon-cli/p2p/database" + "github.com/0xPolygon/polygon-cli/p2p/database" ) // conn represents an individual connection with a peer. diff --git a/proto/block.proto b/proto/block.proto index da2ff25c..1d33cd80 100644 --- a/proto/block.proto +++ b/proto/block.proto @@ -1,7 +1,7 @@ // If you make changes, recompile protos with `make generate` syntax = "proto3"; package proto; -option go_package = "github.com/maticnetwork/polygon-cli/proto/gen/pb;pb"; +option go_package = "github.com/0xPolygon/polygon-cli/proto/gen/pb;pb"; import "transaction.proto"; diff --git a/proto/gen/pb/block.pb.go b/proto/gen/pb/block.pb.go index 397b95b0..34380733 100644 --- a/proto/gen/pb/block.pb.go +++ b/proto/gen/pb/block.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v5.27.1 +// protoc v5.27.3 // source: block.proto package pb @@ -304,10 +304,10 @@ var file_block_proto_rawDesc = []byte{ 0x18, 0x0a, 0x07, 0x6d, 0x69, 0x78, 0x48, 0x61, 0x73, 0x68, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x69, 0x78, 0x48, 0x61, 0x73, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x18, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x42, - 0x35, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x61, - 0x74, 0x69, 0x63, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6c, 0x79, 0x67, - 0x6f, 0x6e, 0x2d, 0x63, 0x6c, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x70, 0x62, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x32, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x30, 0x78, + 0x50, 0x6f, 0x6c, 0x79, 0x67, 0x6f, 0x6e, 0x2f, 0x70, 0x6f, 0x6c, 0x79, 0x67, 0x6f, 0x6e, 0x2d, + 0x63, 0x6c, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, + 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/gen/pb/transaction.pb.go b/proto/gen/pb/transaction.pb.go index 9134c504..a0deea1c 100644 --- a/proto/gen/pb/transaction.pb.go +++ b/proto/gen/pb/transaction.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v5.27.1 +// protoc v5.27.3 // source: transaction.proto package pb @@ -217,11 +217,11 @@ var file_transaction_proto_rawDesc = []byte{ 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x01, 0x76, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x76, 0x12, 0x0c, 0x0a, 0x01, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x73, 0x12, 0x0c, 0x0a, 0x01, 0x72, 0x18, 0x10, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x01, 0x72, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x74, 0x6f, 0x42, 0x35, 0x5a, 0x33, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x61, 0x74, 0x69, 0x63, - 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6c, 0x79, 0x67, 0x6f, 0x6e, 0x2d, - 0x63, 0x6c, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, - 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x28, 0x09, 0x52, 0x01, 0x72, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x74, 0x6f, 0x42, 0x32, 0x5a, 0x30, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x30, 0x78, 0x50, 0x6f, 0x6c, + 0x79, 0x67, 0x6f, 0x6e, 0x2f, 0x70, 0x6f, 0x6c, 0x79, 0x67, 0x6f, 0x6e, 0x2d, 0x63, 0x6c, 0x69, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x3b, 0x70, 0x62, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/transaction.proto b/proto/transaction.proto index bdc0d186..a9a134e3 100644 --- a/proto/transaction.proto +++ b/proto/transaction.proto @@ -1,7 +1,7 @@ // If you make changes, recompile protos with `make generate` syntax = "proto3"; package proto; -option go_package = "github.com/maticnetwork/polygon-cli/proto/gen/pb;pb"; +option go_package = "github.com/0xPolygon/polygon-cli/proto/gen/pb;pb"; message Transaction { string hash = 1; diff --git a/sonar-project.properties b/sonar-project.properties index 91aa97da..5b7a3080 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1 +1 @@ -sonar.projectKey=maticnetwork_polygon-cli_AYYwjbzmo7MiTaKfMGkx +sonar.projectKey=0xPolygon_polygon-cli_AYYwjbzmo7MiTaKfMGkx