Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 committed Sep 22, 2023
1 parent 507d742 commit 975cd85
Show file tree
Hide file tree
Showing 932 changed files with 2,428 additions and 3,132 deletions.
2 changes: 1 addition & 1 deletion accounts/abi/abi.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"fmt"
"io"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"

"github.com/ledgerwatch/erigon/crypto"
)
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/abi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"strings"
"testing"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"

"github.com/ledgerwatch/erigon/common"
"github.com/ledgerwatch/erigon/common/math"
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/bind/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"errors"
"math/big"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"

"github.com/ledgerwatch/erigon/core/types"
"github.com/ledgerwatch/erigon/crypto"
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/bind/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"errors"
"math/big"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"

ethereum "github.com/ledgerwatch/erigon"
"github.com/ledgerwatch/erigon/core/types"
Expand Down
14 changes: 7 additions & 7 deletions accounts/abi/bind/backends/simulated.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ import (
"github.com/holiman/uint256"
"github.com/ledgerwatch/log/v3"

"github.com/ledgerwatch/erigon-lib/chain"
libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon-lib/common/fixedgas"
"github.com/ledgerwatch/erigon-lib/common/hexutility"
"github.com/ledgerwatch/erigon-lib/kv"
state2 "github.com/ledgerwatch/erigon-lib/state"
types2 "github.com/ledgerwatch/erigon-lib/types"
"github.com/ledgerwatch/erigon/erigon-lib/chain"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
"github.com/ledgerwatch/erigon/erigon-lib/common/fixedgas"
"github.com/ledgerwatch/erigon/erigon-lib/common/hexutility"
"github.com/ledgerwatch/erigon/erigon-lib/kv"
state2 "github.com/ledgerwatch/erigon/erigon-lib/state"
types2 "github.com/ledgerwatch/erigon/erigon-lib/types"

ethereum "github.com/ledgerwatch/erigon"
"github.com/ledgerwatch/erigon/accounts/abi"
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/bind/backends/simulated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ import (

"github.com/holiman/uint256"
ethereum "github.com/ledgerwatch/erigon"
libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon-lib/kv"
"github.com/ledgerwatch/erigon/accounts/abi"
"github.com/ledgerwatch/erigon/accounts/abi/bind"
"github.com/ledgerwatch/erigon/common"
"github.com/ledgerwatch/erigon/common/u256"
"github.com/ledgerwatch/erigon/core/rawdb"
"github.com/ledgerwatch/erigon/core/types"
"github.com/ledgerwatch/erigon/crypto"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
"github.com/ledgerwatch/erigon/erigon-lib/kv"
"github.com/ledgerwatch/erigon/params"
)

Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/bind/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"math/big"

"github.com/holiman/uint256"
libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"

ethereum "github.com/ledgerwatch/erigon"
"github.com/ledgerwatch/erigon/accounts/abi"
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/bind/base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"strings"
"testing"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"

ethereum "github.com/ledgerwatch/erigon"
"github.com/ledgerwatch/erigon/accounts/abi"
Expand Down
26 changes: 13 additions & 13 deletions accounts/abi/bind/bind_test.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion accounts/abi/bind/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ import (
ethereum "github.com/ledgerwatch/erigon"
"github.com/ledgerwatch/erigon/accounts/abi"
"github.com/ledgerwatch/erigon/accounts/abi/bind"
libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
"github.com/ledgerwatch/erigon/core/types"
"github.com/ledgerwatch/erigon/event"
)
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/bind/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"errors"
"time"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
"github.com/ledgerwatch/log/v3"

"github.com/ledgerwatch/erigon/core/types"
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/bind/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ import (
"testing"
"time"

libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon/accounts/abi/bind"
"github.com/ledgerwatch/erigon/accounts/abi/bind/backends"
"github.com/ledgerwatch/erigon/common"
"github.com/ledgerwatch/erigon/common/u256"
"github.com/ledgerwatch/erigon/core/types"
"github.com/ledgerwatch/erigon/crypto"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
"github.com/ledgerwatch/erigon/params"
)

Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"reflect"
"strings"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"

"github.com/ledgerwatch/erigon/crypto"
)
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"strings"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"

"github.com/ledgerwatch/erigon/crypto"
)
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"strings"
"testing"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"math/big"
"reflect"

common2 "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon/common"
"github.com/ledgerwatch/erigon/common/math"
common2 "github.com/ledgerwatch/erigon/erigon-lib/common"
)

// packBytesSlice packs the given bytes as [L, V] as the canonical representation
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/pack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"strings"
"testing"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"

"github.com/ledgerwatch/erigon/common"
)
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/packing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package abi
import (
"math/big"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"

"github.com/ledgerwatch/erigon/common"
)
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/topics.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"math/big"
"reflect"

libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon-lib/common/length"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
"github.com/ledgerwatch/erigon/erigon-lib/common/length"

"github.com/ledgerwatch/erigon/crypto"
)
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/topics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"reflect"
"testing"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"

"github.com/ledgerwatch/erigon/crypto"
)
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"strconv"
"strings"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
)

// Type enumerator
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/type_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"testing"

"github.com/davecgh/go-spew/spew"
libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
)

// typeWithoutStringer is a alias for the Type type which simply doesn't implement
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/unpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"math/big"
"reflect"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/unpack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"strings"
"testing"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
"github.com/stretchr/testify/require"

"github.com/ledgerwatch/erigon/common"
Expand Down
4 changes: 2 additions & 2 deletions cl/abstract/beacon_state.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package abstract

import (
"github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon-lib/types/clonable"
"github.com/ledgerwatch/erigon/cl/clparams"
"github.com/ledgerwatch/erigon/cl/cltypes"
"github.com/ledgerwatch/erigon/cl/cltypes/solid"
"github.com/ledgerwatch/erigon/erigon-lib/common"
"github.com/ledgerwatch/erigon/erigon-lib/types/clonable"
)

type BeaconState interface {
Expand Down
2 changes: 1 addition & 1 deletion cl/beacon/handler/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"fmt"
"net/http"

libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon/cl/clparams"
"github.com/ledgerwatch/erigon/cl/cltypes"
"github.com/ledgerwatch/erigon/cl/persistence/beacon_indicies"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
)

type headerResponse struct {
Expand Down
2 changes: 1 addition & 1 deletion cl/beacon/handler/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"net/http"
"sort"

libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon/cl/clparams"
"github.com/ledgerwatch/erigon/cl/cltypes"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
)

func (a *ApiHandler) getSpec(r *http.Request) (data any, finalized *bool, version *clparams.StateVersion, httpStatus int, err error) {
Expand Down
4 changes: 2 additions & 2 deletions cl/beacon/handler/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"strings"

"github.com/go-chi/chi/v5"
libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon-lib/types/ssz"
"github.com/ledgerwatch/erigon/cl/clparams"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
"github.com/ledgerwatch/erigon/erigon-lib/types/ssz"
"github.com/ledgerwatch/log/v3"
)

Expand Down
4 changes: 2 additions & 2 deletions cl/beacon/handler/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"errors"
"net/http"

"github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon/cl/clparams"
"github.com/ledgerwatch/erigon/cl/fork"
"github.com/ledgerwatch/erigon/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
)

type genesisReponse struct {
Expand Down
2 changes: 1 addition & 1 deletion cl/beacon/handler/headers.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"io"
"net/http"

libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon/cl/clparams"
"github.com/ledgerwatch/erigon/cl/cltypes"
"github.com/ledgerwatch/erigon/cl/persistence/beacon_indicies"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
)

func (a *ApiHandler) getHeaders(r *http.Request) (data any, finalized *bool, version *clparams.StateVersion, httpStatus int, err error) {
Expand Down
4 changes: 2 additions & 2 deletions cl/clparams/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"os"
"time"

libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon-lib/types/ssz"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
"github.com/ledgerwatch/erigon/erigon-lib/types/ssz"
"gopkg.in/yaml.v2"

"github.com/ledgerwatch/erigon/cl/utils"
Expand Down
2 changes: 1 addition & 1 deletion cl/clparams/initial_state/initial_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package initial_state_test
import (
"testing"

libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon/cl/clparams"
"github.com/ledgerwatch/erigon/cl/clparams/initial_state"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion cl/cltypes/aggregate.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package cltypes

import (
libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon/cl/cltypes/solid"
"github.com/ledgerwatch/erigon/cl/merkle_tree"
ssz2 "github.com/ledgerwatch/erigon/cl/ssz"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
)

/*
Expand Down
4 changes: 2 additions & 2 deletions cl/cltypes/beacon_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cltypes
import (
"fmt"

libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon-lib/types/ssz"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
"github.com/ledgerwatch/erigon/erigon-lib/types/ssz"

"github.com/ledgerwatch/erigon/cl/clparams"
"github.com/ledgerwatch/erigon/cl/cltypes/solid"
Expand Down
2 changes: 1 addition & 1 deletion cl/cltypes/beacon_block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"testing"

"github.com/holiman/uint256"
libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon/cl/clparams"
"github.com/ledgerwatch/erigon/cl/cltypes/solid"
"github.com/ledgerwatch/erigon/core/types"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions cl/cltypes/beacon_header.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cltypes

import (
libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon-lib/common/length"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
"github.com/ledgerwatch/erigon/erigon-lib/common/length"

"github.com/ledgerwatch/erigon/cl/merkle_tree"
ssz2 "github.com/ledgerwatch/erigon/cl/ssz"
Expand Down
2 changes: 1 addition & 1 deletion cl/cltypes/beacon_kzgcommitment.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"encoding/json"

gokzg4844 "github.com/crate-crypto/go-kzg-4844"
libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon/cl/merkle_tree"
ssz2 "github.com/ledgerwatch/erigon/cl/ssz"
libcommon "github.com/ledgerwatch/erigon/erigon-lib/common"
)

type Blob gokzg4844.Blob
Expand Down
Loading

0 comments on commit 975cd85

Please sign in to comment.