Skip to content

Commit

Permalink
Rename packages
Browse files Browse the repository at this point in the history
  • Loading branch information
artheraone committed Jul 18, 2023
1 parent 3dc0d3f commit 90e3559
Show file tree
Hide file tree
Showing 128 changed files with 326 additions and 324 deletions.
4 changes: 2 additions & 2 deletions abft/apply_genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package abft
import (
"fmt"

"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/Fantom-foundation/lachesis-base/inter/pos"
"github.com/artheranet/lachesis/inter/idx"
"github.com/artheranet/lachesis/inter/pos"
)

// Genesis stores genesis state
Expand Down
6 changes: 3 additions & 3 deletions abft/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"errors"
"fmt"

"github.com/Fantom-foundation/lachesis-base/abft/election"
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/Fantom-foundation/lachesis-base/inter/pos"
"github.com/artheranet/lachesis/abft/election"
"github.com/artheranet/lachesis/inter/idx"
"github.com/artheranet/lachesis/inter/pos"
)

const (
Expand Down
16 changes: 8 additions & 8 deletions abft/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package abft
import (
"math/rand"

"github.com/Fantom-foundation/lachesis-base/hash"
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/Fantom-foundation/lachesis-base/inter/pos"
"github.com/Fantom-foundation/lachesis-base/kvdb"
"github.com/Fantom-foundation/lachesis-base/kvdb/memorydb"
"github.com/Fantom-foundation/lachesis-base/lachesis"
"github.com/Fantom-foundation/lachesis-base/utils/adapters"
"github.com/Fantom-foundation/lachesis-base/vecfc"
"github.com/artheranet/lachesis/hash"
"github.com/artheranet/lachesis/inter/idx"
"github.com/artheranet/lachesis/inter/pos"
"github.com/artheranet/lachesis/kvdb"
"github.com/artheranet/lachesis/kvdb/memorydb"
"github.com/artheranet/lachesis/lachesis"
"github.com/artheranet/lachesis/utils/adapters"
"github.com/artheranet/lachesis/vecfc"
)

type applyBlockFn func(block *lachesis.Block) *pos.Validators
Expand Down
2 changes: 1 addition & 1 deletion abft/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package abft

import "github.com/Fantom-foundation/lachesis-base/utils/cachescale"
import "github.com/artheranet/lachesis/utils/cachescale"

type Config struct {
}
Expand Down
4 changes: 2 additions & 2 deletions abft/dagidx/dag_indexer.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package dagidx

import (
"github.com/Fantom-foundation/lachesis-base/hash"
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/artheranet/lachesis/hash"
"github.com/artheranet/lachesis/inter/idx"
)

type Seq interface {
Expand Down
2 changes: 1 addition & 1 deletion abft/election/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"crypto/sha256"
"fmt"

"github.com/Fantom-foundation/lachesis-base/hash"
"github.com/artheranet/lachesis/hash"
)

// DebugStateHash may be used in tests to match election state
Expand Down
6 changes: 3 additions & 3 deletions abft/election/election.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package election

import (
"github.com/Fantom-foundation/lachesis-base/hash"
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/Fantom-foundation/lachesis-base/inter/pos"
"github.com/artheranet/lachesis/hash"
"github.com/artheranet/lachesis/inter/idx"
"github.com/artheranet/lachesis/inter/pos"
)

type (
Expand Down
4 changes: 2 additions & 2 deletions abft/election/election_math.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"fmt"

"github.com/Fantom-foundation/lachesis-base/hash"
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/artheranet/lachesis/hash"
"github.com/artheranet/lachesis/inter/idx"
)

// ProcessRoot calculates Atropos votes only for the new root.
Expand Down
12 changes: 6 additions & 6 deletions abft/election/election_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (

"github.com/stretchr/testify/assert"

"github.com/Fantom-foundation/lachesis-base/hash"
"github.com/Fantom-foundation/lachesis-base/inter/dag"
"github.com/Fantom-foundation/lachesis-base/inter/dag/tdag"
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/Fantom-foundation/lachesis-base/inter/pos"
"github.com/Fantom-foundation/lachesis-base/utils"
"github.com/artheranet/lachesis/hash"
"github.com/artheranet/lachesis/inter/dag"
"github.com/artheranet/lachesis/inter/dag/tdag"
"github.com/artheranet/lachesis/inter/idx"
"github.com/artheranet/lachesis/inter/pos"
"github.com/artheranet/lachesis/utils"
)

type fakeEdge struct {
Expand Down
6 changes: 3 additions & 3 deletions abft/event_processing.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package abft
import (
"github.com/pkg/errors"

"github.com/Fantom-foundation/lachesis-base/abft/election"
"github.com/Fantom-foundation/lachesis-base/inter/dag"
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/artheranet/lachesis/abft/election"
"github.com/artheranet/lachesis/inter/dag"
"github.com/artheranet/lachesis/inter/idx"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions abft/event_processing_root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

"github.com/stretchr/testify/assert"

"github.com/Fantom-foundation/lachesis-base/inter/dag"
"github.com/Fantom-foundation/lachesis-base/inter/dag/tdag"
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/artheranet/lachesis/inter/dag"
"github.com/artheranet/lachesis/inter/dag/tdag"
"github.com/artheranet/lachesis/inter/idx"
)

func TestLachesisClassicRoots(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions abft/event_processing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (

"github.com/stretchr/testify/assert"

"github.com/Fantom-foundation/lachesis-base/inter/dag"
"github.com/Fantom-foundation/lachesis-base/inter/dag/tdag"
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/Fantom-foundation/lachesis-base/inter/pos"
"github.com/Fantom-foundation/lachesis-base/lachesis"
"github.com/artheranet/lachesis/inter/dag"
"github.com/artheranet/lachesis/inter/dag/tdag"
"github.com/artheranet/lachesis/inter/idx"
"github.com/artheranet/lachesis/inter/pos"
"github.com/artheranet/lachesis/lachesis"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions abft/events_source.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package abft

import (
"github.com/Fantom-foundation/lachesis-base/hash"
"github.com/Fantom-foundation/lachesis-base/inter/dag"
"github.com/artheranet/lachesis/hash"
"github.com/artheranet/lachesis/inter/dag"
)

// EventSource is a callback for getting events from an external storage.
Expand Down
6 changes: 3 additions & 3 deletions abft/events_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (

"github.com/stretchr/testify/assert"

"github.com/Fantom-foundation/lachesis-base/hash"
"github.com/Fantom-foundation/lachesis-base/inter/dag"
"github.com/Fantom-foundation/lachesis-base/inter/dag/tdag"
"github.com/artheranet/lachesis/hash"
"github.com/artheranet/lachesis/inter/dag"
"github.com/artheranet/lachesis/inter/dag/tdag"
)

// EventStore is a abft event storage for test purpose.
Expand Down
6 changes: 3 additions & 3 deletions abft/frame_decide.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package abft

import (
"github.com/Fantom-foundation/lachesis-base/hash"
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/Fantom-foundation/lachesis-base/inter/pos"
"github.com/artheranet/lachesis/hash"
"github.com/artheranet/lachesis/inter/idx"
"github.com/artheranet/lachesis/inter/pos"
)

// onFrameDecided moves LastDecidedFrameN to frame.
Expand Down
10 changes: 5 additions & 5 deletions abft/frame_decide_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (

"github.com/stretchr/testify/assert"

"github.com/Fantom-foundation/lachesis-base/inter/dag"
"github.com/Fantom-foundation/lachesis-base/inter/dag/tdag"
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/Fantom-foundation/lachesis-base/inter/pos"
"github.com/Fantom-foundation/lachesis-base/lachesis"
"github.com/artheranet/lachesis/inter/dag"
"github.com/artheranet/lachesis/inter/dag/tdag"
"github.com/artheranet/lachesis/inter/idx"
"github.com/artheranet/lachesis/inter/pos"
"github.com/artheranet/lachesis/lachesis"
)

func TestConfirmBlocks_1(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions abft/indexed_lachesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import (

"github.com/ethereum/go-ethereum/common"

"github.com/Fantom-foundation/lachesis-base/abft/dagidx"
"github.com/Fantom-foundation/lachesis-base/hash"
"github.com/Fantom-foundation/lachesis-base/inter/dag"
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/Fantom-foundation/lachesis-base/inter/pos"
"github.com/Fantom-foundation/lachesis-base/kvdb"
"github.com/Fantom-foundation/lachesis-base/lachesis"
"github.com/artheranet/lachesis/abft/dagidx"
"github.com/artheranet/lachesis/hash"
"github.com/artheranet/lachesis/inter/dag"
"github.com/artheranet/lachesis/inter/idx"
"github.com/artheranet/lachesis/inter/pos"
"github.com/artheranet/lachesis/kvdb"
"github.com/artheranet/lachesis/lachesis"
)

var _ lachesis.Consensus = (*IndexedLachesis)(nil)
Expand Down
12 changes: 6 additions & 6 deletions abft/lachesis.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package abft

import (
"github.com/Fantom-foundation/lachesis-base/abft/dagidx"
"github.com/Fantom-foundation/lachesis-base/hash"
"github.com/Fantom-foundation/lachesis-base/inter/dag"
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/Fantom-foundation/lachesis-base/inter/pos"
"github.com/Fantom-foundation/lachesis-base/lachesis"
"github.com/artheranet/lachesis/abft/dagidx"
"github.com/artheranet/lachesis/hash"
"github.com/artheranet/lachesis/inter/dag"
"github.com/artheranet/lachesis/inter/idx"
"github.com/artheranet/lachesis/inter/pos"
"github.com/artheranet/lachesis/lachesis"
)

var _ lachesis.Consensus = (*Lachesis)(nil)
Expand Down
10 changes: 5 additions & 5 deletions abft/orderer.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package abft

import (
"github.com/Fantom-foundation/lachesis-base/abft/dagidx"
"github.com/Fantom-foundation/lachesis-base/abft/election"
"github.com/Fantom-foundation/lachesis-base/hash"
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/Fantom-foundation/lachesis-base/inter/pos"
"github.com/artheranet/lachesis/abft/dagidx"
"github.com/artheranet/lachesis/abft/election"
"github.com/artheranet/lachesis/hash"
"github.com/artheranet/lachesis/inter/idx"
"github.com/artheranet/lachesis/inter/pos"
)

type OrdererCallbacks struct {
Expand Down
18 changes: 9 additions & 9 deletions abft/restart_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import (

"github.com/stretchr/testify/assert"

"github.com/Fantom-foundation/lachesis-base/inter/dag"
"github.com/Fantom-foundation/lachesis-base/inter/dag/tdag"
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/Fantom-foundation/lachesis-base/inter/pos"
"github.com/Fantom-foundation/lachesis-base/kvdb"
"github.com/Fantom-foundation/lachesis-base/kvdb/memorydb"
"github.com/Fantom-foundation/lachesis-base/lachesis"
"github.com/Fantom-foundation/lachesis-base/utils/adapters"
"github.com/Fantom-foundation/lachesis-base/vecfc"
"github.com/artheranet/lachesis/inter/dag"
"github.com/artheranet/lachesis/inter/dag/tdag"
"github.com/artheranet/lachesis/inter/idx"
"github.com/artheranet/lachesis/inter/pos"
"github.com/artheranet/lachesis/kvdb"
"github.com/artheranet/lachesis/kvdb/memorydb"
"github.com/artheranet/lachesis/lachesis"
"github.com/artheranet/lachesis/utils/adapters"
"github.com/artheranet/lachesis/vecfc"
)

func TestRestart_1(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions abft/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (

"github.com/ethereum/go-ethereum/rlp"

"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/Fantom-foundation/lachesis-base/kvdb"
"github.com/Fantom-foundation/lachesis-base/kvdb/memorydb"
"github.com/Fantom-foundation/lachesis-base/kvdb/table"
"github.com/Fantom-foundation/lachesis-base/utils/simplewlru"
"github.com/artheranet/lachesis/inter/idx"
"github.com/artheranet/lachesis/kvdb"
"github.com/artheranet/lachesis/kvdb/memorydb"
"github.com/artheranet/lachesis/kvdb/table"
"github.com/artheranet/lachesis/utils/simplewlru"
)

// Store is a abft persistent storage working over parent key-value database.
Expand Down
4 changes: 2 additions & 2 deletions abft/store_epoch_state.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package abft

import (
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/Fantom-foundation/lachesis-base/inter/pos"
"github.com/artheranet/lachesis/inter/idx"
"github.com/artheranet/lachesis/inter/pos"
)

const esKey = "e"
Expand Down
4 changes: 2 additions & 2 deletions abft/store_event_confirmed.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package abft

import (
"github.com/Fantom-foundation/lachesis-base/hash"
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/artheranet/lachesis/hash"
"github.com/artheranet/lachesis/inter/idx"
)

// SetEventConfirmedOn stores confirmed event hash.
Expand Down
2 changes: 1 addition & 1 deletion abft/store_last_decided_state.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package abft

import (
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/artheranet/lachesis/inter/idx"
)

const dsKey = "d"
Expand Down
8 changes: 4 additions & 4 deletions abft/store_roots.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"bytes"
"fmt"

"github.com/Fantom-foundation/lachesis-base/abft/election"
"github.com/Fantom-foundation/lachesis-base/hash"
"github.com/Fantom-foundation/lachesis-base/inter/dag"
"github.com/Fantom-foundation/lachesis-base/inter/idx"
"github.com/artheranet/lachesis/abft/election"
"github.com/artheranet/lachesis/hash"
"github.com/artheranet/lachesis/inter/dag"
"github.com/artheranet/lachesis/inter/idx"
)

func rootRecordKey(r *election.RootAndSlot) []byte {
Expand Down
4 changes: 2 additions & 2 deletions abft/traversal.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package abft
import (
"errors"

"github.com/Fantom-foundation/lachesis-base/hash"
"github.com/Fantom-foundation/lachesis-base/inter/dag"
"github.com/artheranet/lachesis/hash"
"github.com/artheranet/lachesis/inter/dag"
)

type eventFilterFn func(event dag.Event) bool
Expand Down
4 changes: 2 additions & 2 deletions common/bytes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/stretchr/testify/assert"

"github.com/Fantom-foundation/lachesis-base/common/bigendian"
"github.com/Fantom-foundation/lachesis-base/common/littleendian"
"github.com/artheranet/lachesis/common/bigendian"
"github.com/artheranet/lachesis/common/littleendian"
)

func Test_IntToBytes(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions emitter/ancestor/metric_cache.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package ancestor

import (
"github.com/Fantom-foundation/lachesis-base/hash"
"github.com/Fantom-foundation/lachesis-base/utils/wlru"
"github.com/artheranet/lachesis/hash"
"github.com/artheranet/lachesis/utils/wlru"
)

type Metric uint64
Expand Down
Loading

0 comments on commit 90e3559

Please sign in to comment.