diff --git a/CODEOWNERS b/CODEOWNERS deleted file mode 100644 index 75c9d5a..0000000 --- a/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -* @figment-networks/graph diff --git a/Makefile b/Makefile index fbe9514..e71c442 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ -PKG ?= github.com/figment-networks/firehose-cosmos +PKG ?= github.com/graphprotocol/firehose-cosmos BUILD_COMMIT ?= $(shell git rev-parse HEAD) BUILD_TIME ?= $(shell date -u +"%Y-%m-%dT%H:%M:%SZ" | tr -d '\n') BUILD_PATH ?= firecosmos LDFLAGS ?= -s -w -X main.BuildCommit=$(BUILD_COMMIT) -X main.BuildTime=$(BUILD_TIME) VERSION ?= latest -DOCKER_IMAGE ?= figmentnetworks/firehose-cosmos +DOCKER_IMAGE ?= graphprotocol/firehose-cosmos DOCKER_TAG ?= ${VERSION} DOCKER_UID ?= 1234 diff --git a/README.md b/README.md index 6964e4d..78e5940 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Firehose integration for Cosmos chains To get started, first clone the repository and install all dependencies: ```bash -git clone https://github.com/figment-networks/firehose-cosmos.git +git clone https://github.com/graphprotocol/firehose-cosmos.git go mod download ``` @@ -25,20 +25,20 @@ To install the binary globally, run: make install ``` -Alternatively, use a prebuilt binary from [Releases Page](https://github.com/figment-networks/firehose-cosmos/releases) +Alternatively, use a prebuilt binary from [Releases Page](https://github.com/graphprotocol/firehose-cosmos/releases) ### Docker -You can use our official Docker images: https://hub.docker.com/r/figmentnetworks/firehose-cosmos/tags +You can use our official Docker images: https://hub.docker.com/r/graphprotocol/firehose-cosmos/tags ``` -docker pull figmentnetworks/firehose-cosmos:0.4.0 +docker pull graphprotocol/firehose-cosmos:0.4.0 ``` Execute with: ``` -docker run --rm -it figmentnetworks/firehose-cosmos:0.4.0 /app/firehose help +docker run --rm -it graphprotocol/firehose-cosmos:0.4.0 /app/firehose help ``` ## Usage diff --git a/cmd/firecosmos/cli/app_reader.go b/cmd/firecosmos/cli/app_reader.go index 219e559..24a578b 100644 --- a/cmd/firecosmos/cli/app_reader.go +++ b/cmd/firecosmos/cli/app_reader.go @@ -23,7 +23,7 @@ import ( "github.com/streamingfast/shutter" "go.uber.org/zap" - "github.com/figment-networks/firehose-cosmos/codec" + "github.com/graphprotocol/firehose-cosmos/codec" ) const ( @@ -34,7 +34,7 @@ const ( modeNode = "node" // Consume events from the spawned node process ) -var readerLogger, readerTracer = logging.PackageLogger("reader", "github.com/figment-network/firehose-cosmos/noderunner") +var readerLogger, readerTracer = logging.PackageLogger("reader", "github.com/graphprotocol/firehose-cosmos/noderunner") func init() { appLogger := readerLogger diff --git a/cmd/firecosmos/cli/firehose.go b/cmd/firecosmos/cli/firehose.go index dc3e308..ce6e88d 100644 --- a/cmd/firecosmos/cli/firehose.go +++ b/cmd/firecosmos/cli/firehose.go @@ -8,7 +8,7 @@ import ( "github.com/spf13/viper" "go.uber.org/zap" - sftransform "github.com/figment-networks/firehose-cosmos/transform" + sftransform "github.com/graphprotocol/firehose-cosmos/transform" "github.com/streamingfast/bstream/transform" dauthAuthenticator "github.com/streamingfast/dauth/authenticator" _ "github.com/streamingfast/dauth/authenticator/null" diff --git a/cmd/firecosmos/cli/main.go b/cmd/firecosmos/cli/main.go index 497df3a..7b105ee 100644 --- a/cmd/firecosmos/cli/main.go +++ b/cmd/firecosmos/cli/main.go @@ -3,7 +3,7 @@ package cli import ( "fmt" - "github.com/figment-networks/firehose-cosmos/tools" + "github.com/graphprotocol/firehose-cosmos/tools" "github.com/spf13/cobra" "github.com/spf13/viper" "github.com/streamingfast/derr" @@ -13,7 +13,7 @@ import ( ) var ( - zlog, _ = logging.RootLogger("firecosmos", "github.com/figment-network/firehose-cosmos/cmd/firecosmos") + zlog, _ = logging.RootLogger("firecosmos", "github.com/graphprotocol/firehose-cosmos/cmd/firecosmos") allFlags = map[string]bool{} RootCmd = &cobra.Command{ diff --git a/cmd/firecosmos/cli/reader.go b/cmd/firecosmos/cli/reader.go index 4739224..f32afcb 100644 --- a/cmd/firecosmos/cli/reader.go +++ b/cmd/firecosmos/cli/reader.go @@ -11,8 +11,8 @@ import ( "github.com/streamingfast/shutter" "go.uber.org/zap" - "github.com/figment-networks/firehose-cosmos/filereader" - "github.com/figment-networks/firehose-cosmos/noderunner" + "github.com/graphprotocol/firehose-cosmos/filereader" + "github.com/graphprotocol/firehose-cosmos/noderunner" ) type ReaderApp struct { diff --git a/cmd/firecosmos/cli/start.go b/cmd/firecosmos/cli/start.go index 83270a7..c13e92d 100644 --- a/cmd/firecosmos/cli/start.go +++ b/cmd/firecosmos/cli/start.go @@ -1,7 +1,8 @@ package cli import ( - "github.com/figment-networks/firehose-cosmos/codec" + "github.com/graphprotocol/firehose-cosmos/codec" + "github.com/spf13/cobra" "github.com/spf13/viper" "github.com/streamingfast/bstream" diff --git a/cmd/firecosmos/main.go b/cmd/firecosmos/main.go index 4873d43..b904ac6 100644 --- a/cmd/firecosmos/main.go +++ b/cmd/firecosmos/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/figment-networks/firehose-cosmos/cmd/firecosmos/cli" + "github.com/graphprotocol/firehose-cosmos/cmd/firecosmos/cli" ) // Commit sha1 value, injected via go build `ldflags` at build time diff --git a/codec/codec.go b/codec/codec.go index 5cb9e86..c2b488b 100644 --- a/codec/codec.go +++ b/codec/codec.go @@ -6,7 +6,8 @@ import ( "io" "time" - pbcosmos "github.com/figment-networks/proto-cosmos/pb/sf/cosmos/type/v1" + pbcosmos "github.com/graphprotocol/proto-cosmos/pb/sf/cosmos/type/v1" + "github.com/streamingfast/bstream" pbbstream "github.com/streamingfast/pbgo/sf/bstream/v1" "google.golang.org/protobuf/proto" diff --git a/codec/consolereader.go b/codec/consolereader.go index 364274f..a979506 100644 --- a/codec/consolereader.go +++ b/codec/consolereader.go @@ -5,8 +5,8 @@ import ( "io" "strings" - "github.com/figment-networks/extractor-cosmos" - pbcosmos "github.com/figment-networks/proto-cosmos/pb/sf/cosmos/type/v1" + "github.com/graphprotocol/extractor-cosmos" + pbcosmos "github.com/graphprotocol/proto-cosmos/pb/sf/cosmos/type/v1" "github.com/streamingfast/bstream" pbbstream "github.com/streamingfast/pbgo/sf/bstream/v1" diff --git a/codec/parser.go b/codec/parser.go index 1b0e03d..3fa6560 100644 --- a/codec/parser.go +++ b/codec/parser.go @@ -8,8 +8,8 @@ import ( "strings" "time" - "github.com/figment-networks/extractor-cosmos" - pbcosmos "github.com/figment-networks/proto-cosmos/pb/sf/cosmos/type/v1" + "github.com/graphprotocol/extractor-cosmos" + pbcosmos "github.com/graphprotocol/proto-cosmos/pb/sf/cosmos/type/v1" "google.golang.org/protobuf/proto" ) diff --git a/codec/parser_test.go b/codec/parser_test.go index 7a22f66..270c636 100644 --- a/codec/parser_test.go +++ b/codec/parser_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" "google.golang.org/protobuf/proto" - pbcosmos "github.com/figment-networks/proto-cosmos/pb/sf/cosmos/type/v1" + pbcosmos "github.com/graphprotocol/proto-cosmos/pb/sf/cosmos/type/v1" ) func TestParseLine(t *testing.T) { diff --git a/devel/cosmoshub4/bootstrap.sh b/devel/cosmoshub4/bootstrap.sh index 2672151..ac8e896 100755 --- a/devel/cosmoshub4/bootstrap.sh +++ b/devel/cosmoshub4/bootstrap.sh @@ -53,7 +53,7 @@ echo "Your platform is $OS_PLATFORM/$OS_ARCH" if [ ! -f "gaiad" ]; then echo "Downloading gaiad $GAIA_VERSION binary" - wget --quiet -O ./gaiad "https://github.com/figment-networks/gaia-dm/releases/download/$GAIA_VERSION/gaiad_${GAIA_VERSION}_firehose_$GAIA_PLATFORM" + wget --quiet -O ./gaiad "https://github.com/graphprotocol/gaia-dm/releases/download/$GAIA_VERSION/gaiad_${GAIA_VERSION}_firehose_$GAIA_PLATFORM" chmod +x ./gaiad fi diff --git a/go.mod b/go.mod index 6e1093e..8520af8 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/figment-networks/firehose-cosmos +module github.com/graphprotocol/firehose-cosmos go 1.18 @@ -60,7 +60,6 @@ require ( github.com/Azure/azure-storage-blob-go v0.14.0 // indirect github.com/abourget/llerrgroup v0.0.0-20161118145731-75f536392d17 // indirect github.com/cespare/xxhash/v2 v2.1.2 // indirect - github.com/figment-networks/proto-cosmos v0.1.1-0.20220520135517-930111e6fe89 github.com/klauspost/compress v1.15.9 // indirect github.com/mattn/go-ieproxy v0.0.1 // indirect github.com/mitchellh/mapstructure v1.4.3 // indirect @@ -80,7 +79,8 @@ require ( require ( github.com/RoaringBitmap/roaring v0.9.4 - github.com/figment-networks/extractor-cosmos v0.1.0 + github.com/graphprotocol/extractor-cosmos v0.1.1 + github.com/graphprotocol/proto-cosmos v0.1.3 github.com/lithammer/dedent v1.1.0 github.com/spf13/cobra v1.4.0 github.com/spf13/pflag v1.0.5 diff --git a/go.sum b/go.sum index eb0e384..6296535 100644 --- a/go.sum +++ b/go.sum @@ -199,10 +199,6 @@ github.com/envoyproxy/protoc-gen-validate v0.6.2/go.mod h1:2t7qjJNvHPx8IjnBOzl9E github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/felixge/httpsnoop v1.0.3 h1:s/nj+GCswXYzN5v2DpNMuMQYe+0DDwt5WVCU6CWBdXk= github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/figment-networks/extractor-cosmos v0.1.0 h1:PgOoO9/gNS/gFjof7FMl8wfW4LHeLLkdPYkp7oE8RvM= -github.com/figment-networks/extractor-cosmos v0.1.0/go.mod h1:Fq0U8wYrSd5MixC/64ncCg3gNXcFe7RbfcOhSHYXCIQ= -github.com/figment-networks/proto-cosmos v0.1.1-0.20220520135517-930111e6fe89 h1:JkcncppGIS9TAYm3QoM7LRZyfCecW/Q+JKRqBZO+2Jk= -github.com/figment-networks/proto-cosmos v0.1.1-0.20220520135517-930111e6fe89/go.mod h1:bBynLkXMq/hMdsgNg0yEaksxSJkIk1hzPNTWBdetk5I= github.com/form3tech-oss/jwt-go v3.2.2+incompatible h1:TcekIExNqud5crz4xD2pavyTgWiPvpYe4Xau31I0PRk= github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= @@ -341,6 +337,10 @@ github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM= +github.com/graphprotocol/extractor-cosmos v0.1.1 h1:y1S64E6ZCbQMa9E3BmIcRmhhFZnh45gKTcQJzxwTk+Q= +github.com/graphprotocol/extractor-cosmos v0.1.1/go.mod h1:b2UD7Z31psHvJwEnp+C5+icoNfxpqAgZfjkNpIaIdyM= +github.com/graphprotocol/proto-cosmos v0.1.3 h1:tkyGfkp/LnFSJSlAZo9HfPY83YuFlky3ZqXmsYreZ7o= +github.com/graphprotocol/proto-cosmos v0.1.3/go.mod h1:6jHvrU7/HS13V3x16oins6QU2bYuuXfSooFwI2vgkWg= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= diff --git a/tools/cmd.go b/tools/cmd.go index 72511b7..4735536 100644 --- a/tools/cmd.go +++ b/tools/cmd.go @@ -3,7 +3,8 @@ package tools import ( "fmt" - "github.com/figment-networks/firehose-cosmos/codec" + "github.com/graphprotocol/firehose-cosmos/codec" + "github.com/spf13/cobra" ) diff --git a/tools/download_blocks_from_firehose.go b/tools/download_blocks_from_firehose.go index 0b8b060..729b69f 100644 --- a/tools/download_blocks_from_firehose.go +++ b/tools/download_blocks_from_firehose.go @@ -6,8 +6,9 @@ import ( "os" "strconv" - "github.com/figment-networks/firehose-cosmos/codec" - pbcosmos "github.com/figment-networks/proto-cosmos/pb/sf/cosmos/type/v1" + "github.com/graphprotocol/firehose-cosmos/codec" + pbcosmos "github.com/graphprotocol/proto-cosmos/pb/sf/cosmos/type/v1" + "github.com/spf13/cobra" "github.com/streamingfast/bstream" sftools "github.com/streamingfast/sf-tools" diff --git a/tools/event_origin_index.go b/tools/event_origin_index.go index d46bb10..d939168 100644 --- a/tools/event_origin_index.go +++ b/tools/event_origin_index.go @@ -6,8 +6,9 @@ import ( "fmt" "strconv" - "github.com/figment-networks/firehose-cosmos/transform" - pbcosmos "github.com/figment-networks/proto-cosmos/pb/sf/cosmos/type/v1" + "github.com/graphprotocol/firehose-cosmos/transform" + pbcosmos "github.com/graphprotocol/proto-cosmos/pb/sf/cosmos/type/v1" + "github.com/spf13/cobra" "github.com/streamingfast/bstream" "github.com/streamingfast/bstream/stream" diff --git a/tools/event_type_index.go b/tools/event_type_index.go index fabb19f..3f42933 100644 --- a/tools/event_type_index.go +++ b/tools/event_type_index.go @@ -6,8 +6,9 @@ import ( "fmt" "strconv" - "github.com/figment-networks/firehose-cosmos/transform" - pbcosmos "github.com/figment-networks/proto-cosmos/pb/sf/cosmos/type/v1" + "github.com/graphprotocol/firehose-cosmos/transform" + pbcosmos "github.com/graphprotocol/proto-cosmos/pb/sf/cosmos/type/v1" + "github.com/spf13/cobra" "github.com/streamingfast/bstream" "github.com/streamingfast/bstream/stream" diff --git a/tools/logging.go b/tools/logging.go index efdb384..73e6cc5 100644 --- a/tools/logging.go +++ b/tools/logging.go @@ -5,4 +5,4 @@ import ( "go.uber.org/zap" ) -var zlog, tracer = logging.PackageLogger("tools", "github.com/figment-networks/firehose-cosmos/tools", logging.LoggerDefaultLevel(zap.InfoLevel)) +var zlog, tracer = logging.PackageLogger("tools", "github.com/graphprotocol/firehose-cosmos/tools", logging.LoggerDefaultLevel(zap.InfoLevel)) diff --git a/tools/message_type_index.go b/tools/message_type_index.go index bd53f82..0a99e2b 100644 --- a/tools/message_type_index.go +++ b/tools/message_type_index.go @@ -6,8 +6,9 @@ import ( "fmt" "strconv" - "github.com/figment-networks/firehose-cosmos/transform" - pbcosmos "github.com/figment-networks/proto-cosmos/pb/sf/cosmos/type/v1" + "github.com/graphprotocol/firehose-cosmos/transform" + pbcosmos "github.com/graphprotocol/proto-cosmos/pb/sf/cosmos/type/v1" + "github.com/spf13/cobra" "github.com/streamingfast/bstream" "github.com/streamingfast/bstream/stream" diff --git a/transform/event_origin_filter.go b/transform/event_origin_filter.go index 811baa9..8dcc610 100644 --- a/transform/event_origin_filter.go +++ b/transform/event_origin_filter.go @@ -9,8 +9,8 @@ import ( "google.golang.org/protobuf/proto" "google.golang.org/protobuf/types/known/anypb" - pbtransform "github.com/figment-networks/proto-cosmos/pb/sf/cosmos/transform/v1" - pbcosmos "github.com/figment-networks/proto-cosmos/pb/sf/cosmos/type/v1" + pbtransform "github.com/graphprotocol/proto-cosmos/pb/sf/cosmos/transform/v1" + pbcosmos "github.com/graphprotocol/proto-cosmos/pb/sf/cosmos/type/v1" ) type EventOrigin string diff --git a/transform/event_origin_indexer.go b/transform/event_origin_indexer.go index 9b14309..49c60a7 100644 --- a/transform/event_origin_indexer.go +++ b/transform/event_origin_indexer.go @@ -1,7 +1,7 @@ package transform import ( - pbcosmos "github.com/figment-networks/proto-cosmos/pb/sf/cosmos/type/v1" + pbcosmos "github.com/graphprotocol/proto-cosmos/pb/sf/cosmos/type/v1" "github.com/streamingfast/bstream/transform" "github.com/streamingfast/dstore" ) diff --git a/transform/event_type_filter.go b/transform/event_type_filter.go index 73af47e..6fb3329 100644 --- a/transform/event_type_filter.go +++ b/transform/event_type_filter.go @@ -9,8 +9,8 @@ import ( "google.golang.org/protobuf/proto" "google.golang.org/protobuf/types/known/anypb" - pbtransform "github.com/figment-networks/proto-cosmos/pb/sf/cosmos/transform/v1" - pbcosmos "github.com/figment-networks/proto-cosmos/pb/sf/cosmos/type/v1" + pbtransform "github.com/graphprotocol/proto-cosmos/pb/sf/cosmos/transform/v1" + pbcosmos "github.com/graphprotocol/proto-cosmos/pb/sf/cosmos/type/v1" ) var EventTypeFilterMessageName = proto.MessageName(&pbtransform.EventTypeFilter{}) diff --git a/transform/event_type_indexer.go b/transform/event_type_indexer.go index 54b144a..b4adc36 100644 --- a/transform/event_type_indexer.go +++ b/transform/event_type_indexer.go @@ -1,7 +1,7 @@ package transform import ( - pbcosmos "github.com/figment-networks/proto-cosmos/pb/sf/cosmos/type/v1" + pbcosmos "github.com/graphprotocol/proto-cosmos/pb/sf/cosmos/type/v1" "github.com/streamingfast/bstream/transform" "github.com/streamingfast/dstore" ) diff --git a/transform/message_type_filter.go b/transform/message_type_filter.go index 97a3971..17faff7 100644 --- a/transform/message_type_filter.go +++ b/transform/message_type_filter.go @@ -9,8 +9,8 @@ import ( "google.golang.org/protobuf/proto" "google.golang.org/protobuf/types/known/anypb" - pbtransform "github.com/figment-networks/proto-cosmos/pb/sf/cosmos/transform/v1" - pbcosmos "github.com/figment-networks/proto-cosmos/pb/sf/cosmos/type/v1" + pbtransform "github.com/graphprotocol/proto-cosmos/pb/sf/cosmos/transform/v1" + pbcosmos "github.com/graphprotocol/proto-cosmos/pb/sf/cosmos/type/v1" ) var MessageTypeFilterMessageName = proto.MessageName(&pbtransform.MessageTypeFilter{}) diff --git a/transform/message_type_indexer.go b/transform/message_type_indexer.go index 6075e91..9a78c79 100644 --- a/transform/message_type_indexer.go +++ b/transform/message_type_indexer.go @@ -1,7 +1,7 @@ package transform import ( - pbcosmos "github.com/figment-networks/proto-cosmos/pb/sf/cosmos/type/v1" + pbcosmos "github.com/graphprotocol/proto-cosmos/pb/sf/cosmos/type/v1" "github.com/streamingfast/bstream/transform" "github.com/streamingfast/dstore" "google.golang.org/protobuf/types/known/anypb"