Skip to content

Commit

Permalink
rename to forta-network
Browse files Browse the repository at this point in the history
  • Loading branch information
canercidam committed Apr 18, 2022
1 parent ec033af commit 6dfffac
Show file tree
Hide file tree
Showing 84 changed files with 395 additions and 307 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

**Change License:** GNU General Public License 3.0 or later

**Licensed Work:** `forta-node` located at https://github.com/forta-protocol/forta-node. The Licensed Work is Copyright (c) 2022 Forta Foundation
**Licensed Work:** `forta-node` located at https://github.com/forta-network/forta-node. The Licensed Work is Copyright (c) 2022 Forta Foundation

**Licensor:** Forta Foundation

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
containers:
docker build -t forta-protocol/forta-node -f Dockerfile.node .
docker build -t forta-network/forta-node -f Dockerfile.node .
docker pull nats:2.3.2

containers-dev:
DOCKER_BUILDKIT=1 docker build -t forta-protocol/forta-node -f Dockerfile.buildkit.node .
DOCKER_BUILDKIT=1 docker build -t forta-network/forta-node -f Dockerfile.buildkit.node .
docker pull nats:2.3.2

main:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Build](https://github.com/forta-protocol/forta-node/actions/workflows/release-codedeploy-dev.yml/badge.svg)
![Build](https://github.com/forta-network/forta-node/actions/workflows/release-codedeploy-dev.yml/badge.svg)

# forta-node

Expand Down Expand Up @@ -38,7 +38,7 @@ $ go install github.com/golang/mock/[email protected]
$ make install
```

For a faster iteration in local development, it is sufficient to build the common service container only if it has changed. The CLI requires `forta-protocol/forta-node:latest` containers to be available by default and uses the local ones if other Docker image references were not specified at the compile time.
For a faster iteration in local development, it is sufficient to build the common service container only if it has changed. The CLI requires `forta-network/forta-node:latest` containers to be available by default and uses the local ones if other Docker image references were not specified at the compile time.

### CLI-only build using the local version of Go

Expand Down
2 changes: 1 addition & 1 deletion _release/apt/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Priority: optional
Maintainer: root <>
Build-Depends: debhelper-compat (= 12)
Standards-Version: 4.5.0
Homepage: https://github.com/forta-protocol/forta-node
Homepage: https://github.com/forta-network/forta-node

Package: forta
Architecture: any
Expand Down
2 changes: 1 addition & 1 deletion _release/apt/debian/copyright
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: forta
Upstream-Contact: [email protected]
Source: https://github.com/forta-protocol/forta-node
Source: https://github.com/forta-network/forta-node
#
# Please double check copyright with the licensecheck(1) command.

Expand Down
4 changes: 2 additions & 2 deletions clients/agentgrpc/agent_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"time"

"github.com/forta-protocol/forta-core-go/protocol"
"github.com/forta-protocol/forta-node/config"
"github.com/forta-network/forta-core-go/protocol"
"github.com/forta-network/forta-node/config"

log "github.com/sirupsen/logrus"
"google.golang.org/grpc"
Expand Down
6 changes: 3 additions & 3 deletions clients/agentgrpc/encoding_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"testing"
"time"

"github.com/forta-protocol/forta-core-go/protocol"
"github.com/forta-protocol/forta-node/clients/agentgrpc"
"github.com/forta-protocol/forta-node/config"
"github.com/forta-network/forta-core-go/protocol"
"github.com/forta-network/forta-node/clients/agentgrpc"
"github.com/forta-network/forta-node/config"
"google.golang.org/grpc"
)

Expand Down
6 changes: 3 additions & 3 deletions clients/agentgrpc/encoding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"net"
"testing"

"github.com/forta-protocol/forta-core-go/protocol"
"github.com/forta-protocol/forta-node/clients/agentgrpc"
"github.com/forta-protocol/forta-node/config"
"github.com/forta-network/forta-core-go/protocol"
"github.com/forta-network/forta-node/clients/agentgrpc"
"github.com/forta-network/forta-node/config"
"github.com/stretchr/testify/require"
"google.golang.org/grpc"
)
Expand Down
4 changes: 2 additions & 2 deletions clients/agentgrpc/testserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"net"

"github.com/forta-protocol/forta-core-go/protocol"
"github.com/forta-protocol/forta-node/config"
"github.com/forta-network/forta-core-go/protocol"
"github.com/forta-network/forta-node/config"
"google.golang.org/grpc"
)

Expand Down
6 changes: 3 additions & 3 deletions clients/alert_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package clients
import (
"context"
"github.com/ethereum/go-ethereum/accounts/keystore"
"github.com/forta-protocol/forta-core-go/protocol"
"github.com/forta-protocol/forta-core-go/security"
"github.com/forta-protocol/forta-node/config"
"github.com/forta-network/forta-core-go/protocol"
"github.com/forta-network/forta-core-go/security"
"github.com/forta-network/forta-node/config"
log "github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion clients/alertapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/http"
"time"

"github.com/forta-protocol/forta-core-go/domain"
"github.com/forta-network/forta-core-go/domain"
"github.com/goccy/go-json"
log "github.com/sirupsen/logrus"
)
Expand Down
4 changes: 2 additions & 2 deletions clients/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/client"
"github.com/docker/go-connections/nat"
"github.com/forta-protocol/forta-core-go/utils/workers"
"github.com/forta-protocol/forta-node/config"
"github.com/forta-network/forta-core-go/utils/workers"
"github.com/forta-network/forta-node/config"
log "github.com/sirupsen/logrus"
)

Expand Down
8 changes: 4 additions & 4 deletions clients/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import (
"context"
"io"

"github.com/forta-protocol/forta-core-go/domain"
"github.com/forta-network/forta-core-go/domain"
"google.golang.org/grpc"

"github.com/docker/docker/api/types"
"github.com/golang/protobuf/proto"

"github.com/forta-protocol/forta-core-go/protocol"
"github.com/forta-protocol/forta-node/clients/agentgrpc"
"github.com/forta-protocol/forta-node/config"
"github.com/forta-network/forta-core-go/protocol"
"github.com/forta-network/forta-node/clients/agentgrpc"
"github.com/forta-network/forta-node/config"
)

// DockerClient is a client interface for interacting with docker
Expand Down
2 changes: 1 addition & 1 deletion clients/messaging/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"github.com/forta-protocol/forta-core-go/protocol"
"github.com/forta-network/forta-core-go/protocol"
"github.com/goccy/go-json"
"github.com/golang/protobuf/proto"
"github.com/nats-io/nats.go"
Expand Down
4 changes: 2 additions & 2 deletions clients/messaging/subjects.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package messaging

import (
"github.com/forta-protocol/forta-core-go/protocol"
"github.com/forta-protocol/forta-node/config"
"github.com/forta-network/forta-core-go/protocol"
"github.com/forta-network/forta-node/config"
)

// Message types
Expand Down
10 changes: 5 additions & 5 deletions clients/mocks/mock_clients.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cmd/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/creasty/defaults"

"github.com/forta-protocol/forta-node/config"
"github.com/forta-network/forta-node/config"
"gopkg.in/yaml.v3"

"github.com/go-playground/validator/v10"
Expand Down
6 changes: 3 additions & 3 deletions cmd/cmd_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"fmt"
"io/ioutil"

"github.com/forta-protocol/forta-core-go/ethereum"
"github.com/forta-protocol/forta-node/store"
"github.com/forta-network/forta-core-go/ethereum"
"github.com/forta-network/forta-node/store"
"github.com/goccy/go-json"

"github.com/fatih/color"
"github.com/forta-protocol/forta-node/config"
"github.com/forta-network/forta-node/config"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/cmd_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"os"
"path"

"github.com/forta-protocol/forta-core-go/encoding"
"github.com/forta-protocol/forta-core-go/protocol"
"github.com/forta-protocol/forta-core-go/security"
"github.com/forta-network/forta-core-go/encoding"
"github.com/forta-network/forta-core-go/protocol"
"github.com/forta-network/forta-core-go/security"
"github.com/ipfs/go-cid"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd_images.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/forta-protocol/forta-node/config"
"github.com/forta-network/forta-node/config"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/ethereum/go-ethereum/accounts/keystore"
"github.com/fatih/color"
"github.com/forta-protocol/forta-node/config"
"github.com/forta-network/forta-node/config"
"github.com/spf13/cobra"
)

Expand Down
8 changes: 4 additions & 4 deletions cmd/cmd_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"errors"
"fmt"

"github.com/forta-protocol/forta-core-go/registry"
"github.com/forta-protocol/forta-core-go/security"
"github.com/forta-protocol/forta-node/cmd/runner"
"github.com/forta-protocol/forta-node/store"
"github.com/forta-network/forta-core-go/registry"
"github.com/forta-network/forta-core-go/security"
"github.com/forta-network/forta-node/cmd/runner"
"github.com/forta-network/forta-node/store"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/cmd_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"strings"

"github.com/fatih/color"
"github.com/forta-protocol/forta-core-go/clients/health"
"github.com/forta-protocol/forta-node/config"
"github.com/forta-network/forta-core-go/clients/health"
"github.com/forta-network/forta-node/config"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/cmd_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"github.com/ethereum/go-ethereum/common"
"github.com/fatih/color"
"github.com/forta-protocol/forta-core-go/registry"
"github.com/forta-protocol/forta-core-go/security"
"github.com/forta-protocol/forta-node/store"
"github.com/forta-network/forta-core-go/registry"
"github.com/forta-network/forta-core-go/security"
"github.com/forta-network/forta-node/store"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"encoding/json"

"github.com/forta-protocol/forta-node/config"
"github.com/forta-network/forta-node/config"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/ens.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"path"
"time"

"github.com/forta-protocol/forta-core-go/ens"
"github.com/forta-protocol/forta-node/store"
"github.com/forta-network/forta-core-go/ens"
"github.com/forta-network/forta-node/store"
"github.com/goccy/go-json"
)

Expand Down
12 changes: 6 additions & 6 deletions cmd/json-rpc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package json_rpc
import (
"context"

"github.com/forta-protocol/forta-core-go/clients/health"
"github.com/forta-protocol/forta-core-go/utils"
"github.com/forta-protocol/forta-node/config"
"github.com/forta-protocol/forta-node/healthutils"
"github.com/forta-protocol/forta-node/services"
jrp "github.com/forta-protocol/forta-node/services/json-rpc"
"github.com/forta-network/forta-core-go/clients/health"
"github.com/forta-network/forta-core-go/utils"
"github.com/forta-network/forta-node/config"
"github.com/forta-network/forta-node/healthutils"
"github.com/forta-network/forta-node/services"
jrp "github.com/forta-network/forta-node/services/json-rpc"
)

func initJsonRpcProxy(ctx context.Context, cfg config.Config) (*jrp.JsonRpcProxy, error) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/node/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/forta-protocol/forta-node/cmd/node/nodecmd"
import "github.com/forta-network/forta-node/cmd/node/nodecmd"

func main() {
nodecmd.Run()
Expand Down
10 changes: 5 additions & 5 deletions cmd/node/nodecmd/nodecmd.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package nodecmd

import (
json_rpc "github.com/forta-protocol/forta-node/cmd/json-rpc"
"github.com/forta-protocol/forta-node/cmd/publisher"
"github.com/forta-protocol/forta-node/cmd/scanner"
"github.com/forta-protocol/forta-node/cmd/supervisor"
"github.com/forta-protocol/forta-node/cmd/updater"
json_rpc "github.com/forta-network/forta-node/cmd/json-rpc"
"github.com/forta-network/forta-node/cmd/publisher"
"github.com/forta-network/forta-node/cmd/scanner"
"github.com/forta-network/forta-node/cmd/supervisor"
"github.com/forta-network/forta-node/cmd/updater"
"github.com/spf13/cobra"
)

Expand Down
12 changes: 6 additions & 6 deletions cmd/publisher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ package publisher

import (
"context"
"github.com/forta-protocol/forta-core-go/clients/health"
"github.com/forta-protocol/forta-core-go/utils"
"github.com/forta-protocol/forta-node/healthutils"
"github.com/forta-network/forta-core-go/clients/health"
"github.com/forta-network/forta-core-go/utils"
"github.com/forta-network/forta-node/healthutils"

log "github.com/sirupsen/logrus"

"github.com/forta-protocol/forta-node/config"
"github.com/forta-protocol/forta-node/services"
"github.com/forta-protocol/forta-node/services/publisher"
"github.com/forta-network/forta-node/config"
"github.com/forta-network/forta-node/services"
"github.com/forta-network/forta-node/services/publisher"
)

func initServices(ctx context.Context, cfg config.Config) ([]services.Service, error) {
Expand Down
10 changes: 5 additions & 5 deletions cmd/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"context"
"fmt"

"github.com/forta-protocol/forta-node/clients"
"github.com/forta-protocol/forta-node/config"
"github.com/forta-protocol/forta-node/services"
"github.com/forta-protocol/forta-node/services/runner"
"github.com/forta-protocol/forta-node/store"
"github.com/forta-network/forta-node/clients"
"github.com/forta-network/forta-node/config"
"github.com/forta-network/forta-node/services"
"github.com/forta-network/forta-node/services/runner"
"github.com/forta-network/forta-node/store"
log "github.com/sirupsen/logrus"
)

Expand Down
Loading

0 comments on commit 6dfffac

Please sign in to comment.