Skip to content

Commit

Permalink
Merge branch 'main' into minhd-vu/docker
Browse files Browse the repository at this point in the history
  • Loading branch information
minhd-vu authored Dec 3, 2024
2 parents 5ca61f8 + b2aea23 commit 57d8338
Show file tree
Hide file tree
Showing 23 changed files with 64 additions and 64 deletions.
2 changes: 1 addition & 1 deletion api/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/ethereum/go-ethereum/consensus/clique"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/maticnetwork/panoptichain/network"
"github.com/0xPolygon/panoptichain/network"
)

const refreshInterval = time.Hour
Expand Down
2 changes: 1 addition & 1 deletion blockbuffer/blockbuffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"math/big"
"sync"

"github.com/maticnetwork/panoptichain/log"
"github.com/0xPolygon/panoptichain/log"
)

// BufferedBlock is a way to abstract the block for queueing and
Expand Down
6 changes: 3 additions & 3 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"github.com/prometheus/client_golang/prometheus/promhttp"

"github.com/maticnetwork/panoptichain/config"
"github.com/maticnetwork/panoptichain/log"
"github.com/maticnetwork/panoptichain/runner"
"github.com/0xPolygon/panoptichain/config"
"github.com/0xPolygon/panoptichain/log"
"github.com/0xPolygon/panoptichain/runner"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/read-observers/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/prometheus/client_golang/prometheus"

"github.com/maticnetwork/panoptichain/observer"
"github.com/0xPolygon/panoptichain/observer"
)

type parsedDesc struct {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/maticnetwork/panoptichain
module github.com/0xPolygon/panoptichain

go 1.21

Expand Down
2 changes: 1 addition & 1 deletion log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/rs/zerolog"
zlog "github.com/rs/zerolog/log"

"github.com/maticnetwork/panoptichain/config"
"github.com/0xPolygon/panoptichain/config"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"

"github.com/maticnetwork/panoptichain/config"
"github.com/0xPolygon/panoptichain/config"
)

// Subsystem defines the different types of providers that we use to
Expand Down
4 changes: 2 additions & 2 deletions network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package network
import (
"fmt"

"github.com/maticnetwork/panoptichain/config"
"github.com/maticnetwork/panoptichain/log"
"github.com/0xPolygon/panoptichain/config"
"github.com/0xPolygon/panoptichain/log"
)

// Network is the interface that we need to identify a network.
Expand Down
4 changes: 2 additions & 2 deletions observer/exchange_rates.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"

"github.com/maticnetwork/panoptichain/config"
"github.com/maticnetwork/panoptichain/observer/topics"
"github.com/0xPolygon/panoptichain/config"
"github.com/0xPolygon/panoptichain/observer/topics"
)

type ExchangeRate struct {
Expand Down
6 changes: 3 additions & 3 deletions observer/heimdall.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (

"github.com/prometheus/client_golang/prometheus"

"github.com/maticnetwork/panoptichain/api"
"github.com/maticnetwork/panoptichain/metrics"
"github.com/maticnetwork/panoptichain/observer/topics"
"github.com/0xPolygon/panoptichain/api"
"github.com/0xPolygon/panoptichain/metrics"
"github.com/0xPolygon/panoptichain/observer/topics"
)

type PreCommit struct {
Expand Down
6 changes: 3 additions & 3 deletions observer/observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/rs/zerolog"

"github.com/maticnetwork/panoptichain/config"
"github.com/maticnetwork/panoptichain/log"
"github.com/maticnetwork/panoptichain/network"
"github.com/0xPolygon/panoptichain/config"
"github.com/0xPolygon/panoptichain/log"
"github.com/0xPolygon/panoptichain/network"
)

// Observer defines the functioned required for adding a new observer. This
Expand Down
10 changes: 5 additions & 5 deletions observer/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import (
"github.com/ethereum/go-ethereum/params"
"github.com/prometheus/client_golang/prometheus"

"github.com/maticnetwork/panoptichain/api"
"github.com/maticnetwork/panoptichain/contracts"
"github.com/maticnetwork/panoptichain/log"
"github.com/maticnetwork/panoptichain/metrics"
"github.com/maticnetwork/panoptichain/observer/topics"
"github.com/0xPolygon/panoptichain/api"
"github.com/0xPolygon/panoptichain/contracts"
"github.com/0xPolygon/panoptichain/log"
"github.com/0xPolygon/panoptichain/metrics"
"github.com/0xPolygon/panoptichain/observer/topics"
)

type EmptyBlockObserver struct {
Expand Down
6 changes: 3 additions & 3 deletions observer/sensor.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"github.com/maticnetwork/polygon-cli/p2p/database"
"github.com/prometheus/client_golang/prometheus"

"github.com/maticnetwork/panoptichain/api"
"github.com/maticnetwork/panoptichain/metrics"
"github.com/maticnetwork/panoptichain/observer/topics"
"github.com/0xPolygon/panoptichain/api"
"github.com/0xPolygon/panoptichain/metrics"
"github.com/0xPolygon/panoptichain/observer/topics"
)

const ReorgsKind = "reorgs"
Expand Down
4 changes: 2 additions & 2 deletions observer/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"github.com/prometheus/client_golang/prometheus"

"github.com/maticnetwork/panoptichain/metrics"
"github.com/maticnetwork/panoptichain/observer/topics"
"github.com/0xPolygon/panoptichain/metrics"
"github.com/0xPolygon/panoptichain/observer/topics"
)

type System struct {
Expand Down
4 changes: 2 additions & 2 deletions provider/exchange_rates.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

"github.com/rs/zerolog"

"github.com/maticnetwork/panoptichain/observer"
"github.com/maticnetwork/panoptichain/observer/topics"
"github.com/0xPolygon/panoptichain/observer"
"github.com/0xPolygon/panoptichain/observer/topics"
)

type ExchangeRatesProvider struct {
Expand Down
6 changes: 3 additions & 3 deletions provider/hash_divergence.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/rs/zerolog"

"github.com/maticnetwork/panoptichain/network"
"github.com/maticnetwork/panoptichain/observer"
"github.com/maticnetwork/panoptichain/observer/topics"
"github.com/0xPolygon/panoptichain/network"
"github.com/0xPolygon/panoptichain/observer"
"github.com/0xPolygon/panoptichain/observer/topics"
)

// HashDivergenceProvider is a special type of provider because it's a provider
Expand Down
10 changes: 5 additions & 5 deletions provider/heimdall.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (
"github.com/rs/zerolog"
orderedmap "github.com/wk8/go-ordered-map/v2"

"github.com/maticnetwork/panoptichain/api"
"github.com/maticnetwork/panoptichain/blockbuffer"
"github.com/maticnetwork/panoptichain/network"
"github.com/maticnetwork/panoptichain/observer"
"github.com/maticnetwork/panoptichain/observer/topics"
"github.com/0xPolygon/panoptichain/api"
"github.com/0xPolygon/panoptichain/blockbuffer"
"github.com/0xPolygon/panoptichain/network"
"github.com/0xPolygon/panoptichain/observer"
"github.com/0xPolygon/panoptichain/observer/topics"
)

type HeimdallProvider struct {
Expand Down
6 changes: 3 additions & 3 deletions provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"github.com/rs/zerolog"

"github.com/maticnetwork/panoptichain/log"
"github.com/maticnetwork/panoptichain/network"
"github.com/maticnetwork/panoptichain/observer"
"github.com/0xPolygon/panoptichain/log"
"github.com/0xPolygon/panoptichain/network"
"github.com/0xPolygon/panoptichain/observer"
)

// Provider must be implemented by any system that's monitoring the
Expand Down
18 changes: 9 additions & 9 deletions provider/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ import (
"github.com/ethereum/go-ethereum/rpc"
"github.com/rs/zerolog"

"github.com/maticnetwork/panoptichain/api"
"github.com/maticnetwork/panoptichain/blockbuffer"
"github.com/maticnetwork/panoptichain/config"
"github.com/maticnetwork/panoptichain/contracts"
"github.com/maticnetwork/panoptichain/log"
"github.com/maticnetwork/panoptichain/network"
"github.com/maticnetwork/panoptichain/observer"
"github.com/maticnetwork/panoptichain/observer/topics"
"github.com/maticnetwork/panoptichain/util"
"github.com/0xPolygon/panoptichain/api"
"github.com/0xPolygon/panoptichain/blockbuffer"
"github.com/0xPolygon/panoptichain/config"
"github.com/0xPolygon/panoptichain/contracts"
"github.com/0xPolygon/panoptichain/log"
"github.com/0xPolygon/panoptichain/network"
"github.com/0xPolygon/panoptichain/observer"
"github.com/0xPolygon/panoptichain/observer/topics"
"github.com/0xPolygon/panoptichain/util"
)

// RPCProvider is the generic struct for all EVM style JSON RPC services.
Expand Down
8 changes: 4 additions & 4 deletions provider/sensor.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import (
"github.com/rs/zerolog"
"google.golang.org/api/iterator"

"github.com/maticnetwork/panoptichain/api"
"github.com/maticnetwork/panoptichain/network"
"github.com/maticnetwork/panoptichain/observer"
"github.com/maticnetwork/panoptichain/observer/topics"
"github.com/0xPolygon/panoptichain/api"
"github.com/0xPolygon/panoptichain/network"
"github.com/0xPolygon/panoptichain/observer"
"github.com/0xPolygon/panoptichain/observer/topics"
)

type SensorNetworkProvider struct {
Expand Down
4 changes: 2 additions & 2 deletions provider/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"time"

"github.com/maticnetwork/panoptichain/observer"
"github.com/maticnetwork/panoptichain/observer/topics"
"github.com/0xPolygon/panoptichain/observer"
"github.com/0xPolygon/panoptichain/observer/topics"
)

type SystemProvider struct {
Expand Down
12 changes: 6 additions & 6 deletions runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"sync"
"time"

"github.com/maticnetwork/panoptichain/config"
"github.com/maticnetwork/panoptichain/log"
"github.com/maticnetwork/panoptichain/network"
"github.com/maticnetwork/panoptichain/observer"
"github.com/maticnetwork/panoptichain/provider"
"github.com/maticnetwork/panoptichain/util"
"github.com/0xPolygon/panoptichain/config"
"github.com/0xPolygon/panoptichain/log"
"github.com/0xPolygon/panoptichain/network"
"github.com/0xPolygon/panoptichain/observer"
"github.com/0xPolygon/panoptichain/provider"
"github.com/0xPolygon/panoptichain/util"
)

var providers []provider.Provider
Expand Down
2 changes: 1 addition & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"time"

"github.com/maticnetwork/panoptichain/log"
"github.com/0xPolygon/panoptichain/log"
)

func BlockFor(ctx context.Context, duration time.Duration) {
Expand Down

0 comments on commit 57d8338

Please sign in to comment.