Skip to content

Commit

Permalink
replace ethereum/go-ethereum with CortexFoundation/CortexTheseus
Browse files Browse the repository at this point in the history
  • Loading branch information
SiNZeRo committed May 15, 2019
1 parent 7d98259 commit 31dcb02
Show file tree
Hide file tree
Showing 733 changed files with 2,887 additions and 2,887 deletions.
4 changes: 2 additions & 2 deletions PoolMiner/cmd/miner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"strings"
"strconv"
"sync"
"github.com/ethereum/go-ethereum/PoolMiner/cortexminer"
"github.com/ethereum/go-ethereum/PoolMiner/config"
"github.com/CortexFoundation/CortexTheseus/PoolMiner/cortexminer"
"github.com/CortexFoundation/CortexTheseus/PoolMiner/config"
)

func init() {
Expand Down
4 changes: 2 additions & 2 deletions PoolMiner/cortexminer/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"os"
"time"

// "github.com/ethereum/go-ethereum/PoolMiner/miner/libcuckoo"
"github.com/ethereum/go-ethereum/PoolMiner/config"
// "github.com/CortexFoundation/CortexTheseus/PoolMiner/miner/libcuckoo"
"github.com/CortexFoundation/CortexTheseus/PoolMiner/config"

"strconv"
"plugin"
Expand Down
2 changes: 1 addition & 1 deletion PoolMiner/cortexminer/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bufio"
"sync"
"net"
"github.com/ethereum/go-ethereum/PoolMiner/config"
"github.com/CortexFoundation/CortexTheseus/PoolMiner/config"
)

type Miner interface {
Expand Down
4 changes: 2 additions & 2 deletions PoolMiner/crypto/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package crypto
import (
"encoding/binary"

"github.com/ethereum/go-ethereum/PoolMiner/common"
"github.com/ethereum/go-ethereum/PoolMiner/crypto/sha3"
"github.com/CortexFoundation/CortexTheseus/PoolMiner/common"
"github.com/CortexFoundation/CortexTheseus/PoolMiner/crypto/sha3"
)

// Keccak256 calculates and returns the Keccak256 hash of the input data.
Expand Down
6 changes: 3 additions & 3 deletions PoolMiner/miner/libcuckoo/cpu_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
"encoding/hex"
"math/rand"
"time"
"github.com/ethereum/go-ethereum/PoolMiner/config"
"github.com/ethereum/go-ethereum/PoolMiner/common"
"github.com/ethereum/go-ethereum/PoolMiner/crypto"
"github.com/CortexFoundation/CortexTheseus/PoolMiner/config"
"github.com/CortexFoundation/CortexTheseus/PoolMiner/common"
"github.com/CortexFoundation/CortexTheseus/PoolMiner/crypto"
)

//var nonceIndex int = 0
Expand Down
6 changes: 3 additions & 3 deletions PoolMiner/miner/libcuckoo/cuda_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
"math/rand"
"time"
"unsafe"
"github.com/ethereum/go-ethereum/PoolMiner/config"
"github.com/ethereum/go-ethereum/PoolMiner/common"
"github.com/ethereum/go-ethereum/PoolMiner/crypto"
"github.com/CortexFoundation/CortexTheseus/PoolMiner/config"
"github.com/CortexFoundation/CortexTheseus/PoolMiner/common"
"github.com/CortexFoundation/CortexTheseus/PoolMiner/crypto"
)

func FindSolutionsByGPU(hash []byte, nonce uint64, threadId uint32) (nedges uint32) {
Expand Down
6 changes: 3 additions & 3 deletions PoolMiner/miner/libcuckoo/opencl_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (
"encoding/hex"
"math/rand"
"time"
"github.com/ethereum/go-ethereum/PoolMiner/config"
"github.com/ethereum/go-ethereum/PoolMiner/common"
"github.com/ethereum/go-ethereum/PoolMiner/crypto"
"github.com/CortexFoundation/CortexTheseus/PoolMiner/config"
"github.com/CortexFoundation/CortexTheseus/PoolMiner/common"
"github.com/CortexFoundation/CortexTheseus/PoolMiner/crypto"
)

func FindSolutionsByGPU(hash []byte, nonce uint64, threadId uint32) (nedges uint32) {
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/abi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (

"reflect"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/CortexFoundation/CortexTheseus/common"
"github.com/CortexFoundation/CortexTheseus/crypto"
)

const jsondata = `
Expand Down
8 changes: 4 additions & 4 deletions accounts/abi/bind/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ import (
"io"
"io/ioutil"

"github.com/ethereum/go-ethereum/accounts/keystore"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/CortexFoundation/CortexTheseus/accounts/keystore"
"github.com/CortexFoundation/CortexTheseus/common"
"github.com/CortexFoundation/CortexTheseus/core/types"
"github.com/CortexFoundation/CortexTheseus/crypto"
)

// NewTransactor is a utility method to easily create a transaction signer from
Expand Down
6 changes: 3 additions & 3 deletions accounts/abi/bind/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"errors"
"math/big"

"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/CortexFoundation/CortexTheseus"
"github.com/CortexFoundation/CortexTheseus/common"
"github.com/CortexFoundation/CortexTheseus/core/types"
)

var (
Expand Down
30 changes: 15 additions & 15 deletions accounts/abi/bind/backends/simulated.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ import (
"sync"
"time"

"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/math"
"github.com/ethereum/go-ethereum/consensus/cuckoo"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/bloombits"
"github.com/ethereum/go-ethereum/core/rawdb"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/eth/filters"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/rpc"
"github.com/CortexFoundation/CortexTheseus/accounts/abi/bind"
"github.com/CortexFoundation/CortexTheseus/common"
"github.com/CortexFoundation/CortexTheseus/common/math"
"github.com/CortexFoundation/CortexTheseus/consensus/cuckoo"
"github.com/CortexFoundation/CortexTheseus/core"
"github.com/CortexFoundation/CortexTheseus/core/bloombits"
"github.com/CortexFoundation/CortexTheseus/core/rawdb"
"github.com/CortexFoundation/CortexTheseus/core/state"
"github.com/CortexFoundation/CortexTheseus/core/types"
"github.com/CortexFoundation/CortexTheseus/core/vm"
"github.com/CortexFoundation/CortexTheseus/eth/filters"
"github.com/CortexFoundation/CortexTheseus/ethdb"
"github.com/CortexFoundation/CortexTheseus/event"
"github.com/CortexFoundation/CortexTheseus/params"
"github.com/CortexFoundation/CortexTheseus/rpc"
)

// This nil assignment ensures compile time that SimulatedBackend implements bind.ContractBackend.
Expand Down
12 changes: 6 additions & 6 deletions accounts/abi/bind/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ import (
"fmt"
"math/big"

"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/event"
"github.com/CortexFoundation/CortexTheseus"
"github.com/CortexFoundation/CortexTheseus/accounts/abi"
"github.com/CortexFoundation/CortexTheseus/common"
"github.com/CortexFoundation/CortexTheseus/core/types"
"github.com/CortexFoundation/CortexTheseus/crypto"
"github.com/CortexFoundation/CortexTheseus/event"
)

// SignerFn is a signer function callback when a contract requires a method to
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/bind/bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// Package bind generates Ethereum contract Go bindings.
//
// Detailed usage document and tutorial available on the go-ethereum Wiki page:
// https://github.com/ethereum/go-ethereum/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts
// https://github.com/CortexFoundation/CortexTheseus/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts
package bind

import (
Expand All @@ -28,7 +28,7 @@ import (
"text/template"
"unicode"

"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/CortexFoundation/CortexTheseus/accounts/abi"
"golang.org/x/tools/imports"
)

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

"github.com/ethereum/go-ethereum/common"
"github.com/CortexFoundation/CortexTheseus/common"
"golang.org/x/tools/imports"
)

Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/bind/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package bind

import "github.com/ethereum/go-ethereum/accounts/abi"
import "github.com/CortexFoundation/CortexTheseus/accounts/abi"

// tmplData is the data structure required to fill the binding template.
type tmplData struct {
Expand Down
6 changes: 3 additions & 3 deletions accounts/abi/bind/topics.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"math/big"
"reflect"

"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/CortexFoundation/CortexTheseus/accounts/abi"
"github.com/CortexFoundation/CortexTheseus/common"
"github.com/CortexFoundation/CortexTheseus/crypto"
)

// makeTopics converts a filter query argument list into a filter topic set.
Expand Down
6 changes: 3 additions & 3 deletions accounts/abi/bind/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"fmt"
"time"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
"github.com/CortexFoundation/CortexTheseus/common"
"github.com/CortexFoundation/CortexTheseus/core/types"
"github.com/CortexFoundation/CortexTheseus/log"
)

// WaitMined waits for tx to be mined on the blockchain.
Expand Down
12 changes: 6 additions & 6 deletions accounts/abi/bind/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ import (
"testing"
"time"

"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/CortexFoundation/CortexTheseus/accounts/abi/bind"
"github.com/CortexFoundation/CortexTheseus/accounts/abi/bind/backends"
"github.com/CortexFoundation/CortexTheseus/common"
"github.com/CortexFoundation/CortexTheseus/core"
"github.com/CortexFoundation/CortexTheseus/core/types"
"github.com/CortexFoundation/CortexTheseus/crypto"
)

var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"fmt"
"strings"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/CortexFoundation/CortexTheseus/common"
"github.com/CortexFoundation/CortexTheseus/crypto"
)

// Event is an event potentially triggered by the EVM's LOG mechanism. The Event
Expand Down
6 changes: 3 additions & 3 deletions accounts/abi/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
"strings"
"testing"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/CortexFoundation/CortexTheseus/common"
"github.com/CortexFoundation/CortexTheseus/crypto"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -323,7 +323,7 @@ func unpackTestEventData(dest interface{}, hexData string, jsonEvent []byte, ass

/*
Taken from
https://github.com/ethereum/go-ethereum/pull/15568
https://github.com/CortexFoundation/CortexTheseus/pull/15568
*/

type testResult struct {
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/method.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"strings"

"github.com/ethereum/go-ethereum/crypto"
"github.com/CortexFoundation/CortexTheseus/crypto"
)

// Method represents a callable given a `Name` and whether the method is a constant.
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/numbers.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"math/big"
"reflect"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/math"
"github.com/CortexFoundation/CortexTheseus/common"
"github.com/CortexFoundation/CortexTheseus/common/math"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"math/big"
"reflect"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/math"
"github.com/CortexFoundation/CortexTheseus/common"
"github.com/CortexFoundation/CortexTheseus/common/math"
)

// 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 @@ -24,7 +24,7 @@ import (
"strings"
"testing"

"github.com/ethereum/go-ethereum/common"
"github.com/CortexFoundation/CortexTheseus/common"
)

func TestPack(t *testing.T) {
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"
"github.com/ethereum/go-ethereum/common"
"github.com/CortexFoundation/CortexTheseus/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"

"github.com/ethereum/go-ethereum/common"
"github.com/CortexFoundation/CortexTheseus/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 @@ -26,7 +26,7 @@ import (
"strings"
"testing"

"github.com/ethereum/go-ethereum/common"
"github.com/CortexFoundation/CortexTheseus/common"
"github.com/stretchr/testify/require"
)

Expand Down
8 changes: 4 additions & 4 deletions accounts/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ package accounts
import (
"math/big"

ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
ethereum "github.com/CortexFoundation/CortexTheseus"
"github.com/CortexFoundation/CortexTheseus/common"
"github.com/CortexFoundation/CortexTheseus/core/types"
"github.com/CortexFoundation/CortexTheseus/event"
)

// Account represents an Ethereum account located at a specific location defined
Expand Down
6 changes: 3 additions & 3 deletions accounts/keystore/account_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import (
"time"

mapset "github.com/deckarep/golang-set"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/CortexFoundation/CortexTheseus/accounts"
"github.com/CortexFoundation/CortexTheseus/common"
"github.com/CortexFoundation/CortexTheseus/log"
)

// Minimum amount of time between cache reloads. This limit applies if the platform does
Expand Down
4 changes: 2 additions & 2 deletions accounts/keystore/account_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (

"github.com/cespare/cp"
"github.com/davecgh/go-spew/spew"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/CortexFoundation/CortexTheseus/accounts"
"github.com/CortexFoundation/CortexTheseus/common"
)

var (
Expand Down
Loading

0 comments on commit 31dcb02

Please sign in to comment.