Skip to content

Commit

Permalink
modify imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mariameda committed Jun 4, 2018
1 parent b010690 commit b1d58c2
Show file tree
Hide file tree
Showing 595 changed files with 2,283 additions and 6,494 deletions.
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Before you do a feature request please check and make sure that it isn't possible
through some other means. The JavaScript enabled console is a powerful feature
in the right hands. Please check our [Wiki page](https://github.com/ethereum/go-ethereum/wiki) for more info
in the right hands. Please check our [Wiki page](https://github.com/NiluPlatform/go-nilu/wiki) for more info
and help.

## Contributing
Expand All @@ -11,6 +11,6 @@ If you'd like to contribute to go-ethereum please fork, fix, commit and
send a pull request. Commits which do not comply with the coding standards
are ignored (use gofmt!).

See [Developers' Guide](https://github.com/ethereum/go-ethereum/wiki/Developers'-Guide)
See [Developers' Guide](https://github.com/NiluPlatform/go-nilu/wiki/Developers'-Guide)
for more details on configuring your environment, testing, and
dependency management.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: go
go_import_path: github.com/ethereum/go-ethereum
go_import_path: github.com/NiluPlatform/go-nilu
sudo: false
matrix:
include:
Expand Down
114 changes: 55 additions & 59 deletions README.md

Large diffs are not rendered by default.

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/NiluPlatform/go-nilu/common"
"github.com/NiluPlatform/go-nilu/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/NiluPlatform/go-nilu/accounts/keystore"
"github.com/NiluPlatform/go-nilu/common"
"github.com/NiluPlatform/go-nilu/core/types"
"github.com/NiluPlatform/go-nilu/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/NiluPlatform/go-nilu"
"github.com/NiluPlatform/go-nilu/common"
"github.com/NiluPlatform/go-nilu/core/types"
)

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

"github.com/ethereum/go-ethereum"
"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/ethash"
"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/NiluPlatform/go-nilu"
"github.com/NiluPlatform/go-nilu/accounts/abi/bind"
"github.com/NiluPlatform/go-nilu/common"
"github.com/NiluPlatform/go-nilu/common/math"
"github.com/NiluPlatform/go-nilu/consensus/ethash"
"github.com/NiluPlatform/go-nilu/core"
"github.com/NiluPlatform/go-nilu/core/bloombits"
"github.com/NiluPlatform/go-nilu/core/rawdb"
"github.com/NiluPlatform/go-nilu/core/state"
"github.com/NiluPlatform/go-nilu/core/types"
"github.com/NiluPlatform/go-nilu/core/vm"
"github.com/NiluPlatform/go-nilu/eth/filters"
"github.com/NiluPlatform/go-nilu/ethdb"
"github.com/NiluPlatform/go-nilu/event"
"github.com/NiluPlatform/go-nilu/params"
"github.com/NiluPlatform/go-nilu/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/NiluPlatform/go-nilu"
"github.com/NiluPlatform/go-nilu/accounts/abi"
"github.com/NiluPlatform/go-nilu/common"
"github.com/NiluPlatform/go-nilu/core/types"
"github.com/NiluPlatform/go-nilu/crypto"
"github.com/NiluPlatform/go-nilu/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/NiluPlatform/go-nilu/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/NiluPlatform/go-nilu/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/NiluPlatform/go-nilu/common"
"golang.org/x/tools/imports"
)

Expand Down
6 changes: 3 additions & 3 deletions 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/NiluPlatform/go-nilu/accounts/abi"

// tmplData is the data structure required to fill the binding template.
type tmplData struct {
Expand Down Expand Up @@ -427,8 +427,8 @@ const tmplSourceJava = `
package {{.Package}};
import org.ethereum.gilu.*;
import org.ethereum.gilu.internal.*;
import org.ethereum.geth.*;
import org.ethereum.geth.internal.*;
{{range $contract := .Contracts}}
public class {{.Type}} {
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/NiluPlatform/go-nilu/accounts/abi"
"github.com/NiluPlatform/go-nilu/common"
"github.com/NiluPlatform/go-nilu/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/NiluPlatform/go-nilu/common"
"github.com/NiluPlatform/go-nilu/core/types"
"github.com/NiluPlatform/go-nilu/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/NiluPlatform/go-nilu/accounts/abi/bind"
"github.com/NiluPlatform/go-nilu/accounts/abi/bind/backends"
"github.com/NiluPlatform/go-nilu/common"
"github.com/NiluPlatform/go-nilu/core"
"github.com/NiluPlatform/go-nilu/core/types"
"github.com/NiluPlatform/go-nilu/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/NiluPlatform/go-nilu/common"
"github.com/NiluPlatform/go-nilu/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/NiluPlatform/go-nilu/common"
"github.com/NiluPlatform/go-nilu/crypto"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -244,7 +244,7 @@ func unpackTestEventData(dest interface{}, hexData string, jsonEvent []byte, ass

/*
Taken from
https://github.com/ethereum/go-ethereum/pull/15568
https://github.com/NiluPlatform/go-nilu/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/NiluPlatform/go-nilu/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/NiluPlatform/go-nilu/common"
"github.com/NiluPlatform/go-nilu/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/NiluPlatform/go-nilu/common"
"github.com/NiluPlatform/go-nilu/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/NiluPlatform/go-nilu/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/NiluPlatform/go-nilu/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/NiluPlatform/go-nilu/common"
)

// reads the integer based on its kind
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/NiluPlatform/go-nilu/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/NiluPlatform/go-nilu"
"github.com/NiluPlatform/go-nilu/common"
"github.com/NiluPlatform/go-nilu/core/types"
"github.com/NiluPlatform/go-nilu/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 @@ -27,9 +27,9 @@ import (
"sync"
"time"

"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/NiluPlatform/go-nilu/accounts"
"github.com/NiluPlatform/go-nilu/common"
"github.com/NiluPlatform/go-nilu/log"
"gopkg.in/fatih/set.v0"
)

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/NiluPlatform/go-nilu/accounts"
"github.com/NiluPlatform/go-nilu/common"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion accounts/keystore/file_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"sync"
"time"

"github.com/ethereum/go-ethereum/log"
"github.com/NiluPlatform/go-nilu/log"
set "gopkg.in/fatih/set.v0"
)

Expand Down
6 changes: 3 additions & 3 deletions accounts/keystore/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import (
"strings"
"time"

"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/NiluPlatform/go-nilu/accounts"
"github.com/NiluPlatform/go-nilu/common"
"github.com/NiluPlatform/go-nilu/crypto"
"github.com/pborman/uuid"
)

Expand Down
10 changes: 5 additions & 5 deletions accounts/keystore/keystore.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ import (
"sync"
"time"

"github.com/ethereum/go-ethereum/accounts"
"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/NiluPlatform/go-nilu/accounts"
"github.com/NiluPlatform/go-nilu/common"
"github.com/NiluPlatform/go-nilu/core/types"
"github.com/NiluPlatform/go-nilu/crypto"
"github.com/NiluPlatform/go-nilu/event"
)

var (
Expand Down
Loading

0 comments on commit b1d58c2

Please sign in to comment.