Skip to content

Commit

Permalink
Bump proto-cosmos@v0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
patrycjazawadka committed Nov 3, 2023
1 parent d1e8ca1 commit 54aa447
Show file tree
Hide file tree
Showing 28 changed files with 56 additions and 50 deletions.
1 change: 0 additions & 1 deletion CODEOWNERS

This file was deleted.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cmd/firecosmos/cli/app_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/firecosmos/cli/firehose.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions cmd/firecosmos/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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{
Expand Down
4 changes: 2 additions & 2 deletions cmd/firecosmos/cli/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion cmd/firecosmos/cli/start.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion cmd/firecosmos/main.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion codec/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions codec/consolereader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions codec/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion codec/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion devel/cosmoshub4/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/figment-networks/firehose-cosmos
module github.com/graphprotocol/firehose-cosmos

go 1.18

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down Expand Up @@ -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=
Expand Down
3 changes: 2 additions & 1 deletion tools/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
5 changes: 3 additions & 2 deletions tools/download_blocks_from_firehose.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 3 additions & 2 deletions tools/event_origin_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 3 additions & 2 deletions tools/event_type_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tools/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
5 changes: 3 additions & 2 deletions tools/message_type_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions transform/event_origin_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion transform/event_origin_indexer.go
Original file line number Diff line number Diff line change
@@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions transform/event_type_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{})
Expand Down
2 changes: 1 addition & 1 deletion transform/event_type_indexer.go
Original file line number Diff line number Diff line change
@@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions transform/message_type_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{})
Expand Down
2 changes: 1 addition & 1 deletion transform/message_type_indexer.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 54aa447

Please sign in to comment.