Skip to content

Commit

Permalink
Rename tracker to indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranbt committed Apr 6, 2022
1 parent 3389491 commit 2081891
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions event-indexer/boltdb/bolt_store.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package trackerboltdb
package indexerboltdb

import (
"bytes"
"encoding/binary"

"github.com/boltdb/bolt"
"github.com/umbracle/ethgo"
tracker "github.com/umbracle/ethgo/event-indexer"
indexer "github.com/umbracle/ethgo/event-indexer"
)

//var _ tracker.Store = (*BoltStore)(nil)
//var _ indexer.Store = (*BoltStore)(nil)

var (
dbLogs = []byte("logs")
Expand Down Expand Up @@ -101,7 +101,7 @@ func (b *BoltStore) Set(k, v string) error {
}

// GetEntry implements the store interface
func (b *BoltStore) GetEntry(hash string) (tracker.Entry, error) {
func (b *BoltStore) GetEntry(hash string) (indexer.Entry, error) {
txn, err := b.conn.Begin(true)
if err != nil {
return nil, err
Expand Down Expand Up @@ -136,7 +136,7 @@ func (e *Entry) GetLastBlock() (*ethgo.Block, error) {
panic("TODO")
}

func (e *Entry) StoreEvent(evnt *tracker.Event) error {
func (e *Entry) StoreEvent(evnt *indexer.Event) error {
panic("TODO")
}

Expand Down
2 changes: 1 addition & 1 deletion event-indexer/boltdb/bolt_store_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package trackerboltdb
package indexerboltdb

/*
import (
Expand Down
2 changes: 1 addition & 1 deletion event-indexer/config.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tracker
package indexer

import (
"io/ioutil"
Expand Down
2 changes: 1 addition & 1 deletion event-indexer/tracker.go → event-indexer/indexer.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tracker
package indexer

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tracker
package indexer

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion event-indexer/inmem_store.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tracker
package indexer

import (
"math/big"
Expand Down
2 changes: 1 addition & 1 deletion event-indexer/inmem_store_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tracker
package indexer

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion event-indexer/store.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tracker
package indexer

import "github.com/umbracle/ethgo"

Expand Down
2 changes: 1 addition & 1 deletion event-indexer/store_testing.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tracker
package indexer

import (
"reflect"
Expand Down

0 comments on commit 2081891

Please sign in to comment.