aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/api
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-09-26 10:48:31 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 18:55:22 +0800
commit9acf5fc03ad7dabcd88eb8972db032122ef5ebe1 (patch)
treee33db1d9846de04aa5d86d920a77d87064d531e5 /swarm/api
parentf97b8033c8c79f133417805fdd84bc1c36a36089 (diff)
downloaddexon-9acf5fc03ad7dabcd88eb8972db032122ef5ebe1.tar
dexon-9acf5fc03ad7dabcd88eb8972db032122ef5ebe1.tar.gz
dexon-9acf5fc03ad7dabcd88eb8972db032122ef5ebe1.tar.bz2
dexon-9acf5fc03ad7dabcd88eb8972db032122ef5ebe1.tar.lz
dexon-9acf5fc03ad7dabcd88eb8972db032122ef5ebe1.tar.xz
dexon-9acf5fc03ad7dabcd88eb8972db032122ef5ebe1.tar.zst
dexon-9acf5fc03ad7dabcd88eb8972db032122ef5ebe1.zip
Change import go github.com/dexon-foundation/dexon
Diffstat (limited to 'swarm/api')
-rw-r--r--swarm/api/act.go14
-rw-r--r--swarm/api/api.go18
-rw-r--r--swarm/api/api_test.go10
-rw-r--r--swarm/api/client/client.go10
-rw-r--r--swarm/api/client/client_test.go16
-rw-r--r--swarm/api/config.go20
-rw-r--r--swarm/api/config_test.go4
-rw-r--r--swarm/api/encrypt.go4
-rw-r--r--swarm/api/filesystem.go6
-rw-r--r--swarm/api/filesystem_test.go4
-rw-r--r--swarm/api/gen_mime.go2
-rw-r--r--swarm/api/http/middleware.go10
-rw-r--r--swarm/api/http/response.go6
-rw-r--r--swarm/api/http/roundtripper.go8
-rw-r--r--swarm/api/http/sctx.go4
-rw-r--r--swarm/api/http/server.go12
-rw-r--r--swarm/api/http/server_test.go22
-rw-r--r--swarm/api/http/templates.go2
-rw-r--r--swarm/api/http/test_server.go6
-rw-r--r--swarm/api/manifest.go8
-rw-r--r--swarm/api/manifest_test.go2
-rw-r--r--swarm/api/storage.go2
-rw-r--r--swarm/api/testapi.go2
-rw-r--r--swarm/api/uri.go4
-rw-r--r--swarm/api/uri_test.go2
25 files changed, 99 insertions, 99 deletions
diff --git a/swarm/api/act.go b/swarm/api/act.go
index e54369f9a..6021547a6 100644
--- a/swarm/api/act.go
+++ b/swarm/api/act.go
@@ -12,13 +12,13 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/crypto/ecies"
- "github.com/ethereum/go-ethereum/crypto/sha3"
- "github.com/ethereum/go-ethereum/swarm/log"
- "github.com/ethereum/go-ethereum/swarm/sctx"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/crypto"
+ "github.com/dexon-foundation/dexon/crypto/ecies"
+ "github.com/dexon-foundation/dexon/crypto/sha3"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ "github.com/dexon-foundation/dexon/swarm/sctx"
+ "github.com/dexon-foundation/dexon/swarm/storage"
"golang.org/x/crypto/scrypt"
cli "gopkg.in/urfave/cli.v1"
)
diff --git a/swarm/api/api.go b/swarm/api/api.go
index 33a8e3539..4ef2a3f89 100644
--- a/swarm/api/api.go
+++ b/swarm/api/api.go
@@ -37,15 +37,15 @@ import (
"path/filepath"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/contracts/ens"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/swarm/log"
- "github.com/ethereum/go-ethereum/swarm/spancontext"
- "github.com/ethereum/go-ethereum/swarm/storage"
- "github.com/ethereum/go-ethereum/swarm/storage/feed"
- "github.com/ethereum/go-ethereum/swarm/storage/feed/lookup"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/contracts/ens"
+ "github.com/dexon-foundation/dexon/core/types"
+ "github.com/dexon-foundation/dexon/metrics"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ "github.com/dexon-foundation/dexon/swarm/spancontext"
+ "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/dexon-foundation/dexon/swarm/storage/feed"
+ "github.com/dexon-foundation/dexon/swarm/storage/feed/lookup"
opentracing "github.com/opentracing/opentracing-go"
)
diff --git a/swarm/api/api_test.go b/swarm/api/api_test.go
index eb896f32a..2e573b9d0 100644
--- a/swarm/api/api_test.go
+++ b/swarm/api/api_test.go
@@ -28,11 +28,11 @@ import (
"os"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/swarm/sctx"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/core/types"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/swarm/sctx"
+ "github.com/dexon-foundation/dexon/swarm/storage"
)
func init() {
diff --git a/swarm/api/client/client.go b/swarm/api/client/client.go
index f793ca8b8..cafccc821 100644
--- a/swarm/api/client/client.go
+++ b/swarm/api/client/client.go
@@ -37,11 +37,11 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/swarm/api"
- "github.com/ethereum/go-ethereum/swarm/spancontext"
- "github.com/ethereum/go-ethereum/swarm/storage/feed"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/metrics"
+ "github.com/dexon-foundation/dexon/swarm/api"
+ "github.com/dexon-foundation/dexon/swarm/spancontext"
+ "github.com/dexon-foundation/dexon/swarm/storage/feed"
"github.com/pborman/uuid"
)
diff --git a/swarm/api/client/client_test.go b/swarm/api/client/client_test.go
index 39f6e4797..6a4cd4dab 100644
--- a/swarm/api/client/client_test.go
+++ b/swarm/api/client/client_test.go
@@ -25,14 +25,14 @@ import (
"sort"
"testing"
- "github.com/ethereum/go-ethereum/swarm/storage"
- "github.com/ethereum/go-ethereum/swarm/storage/feed/lookup"
-
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/swarm/api"
- swarmhttp "github.com/ethereum/go-ethereum/swarm/api/http"
- "github.com/ethereum/go-ethereum/swarm/storage/feed"
+ "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/dexon-foundation/dexon/swarm/storage/feed/lookup"
+
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/crypto"
+ "github.com/dexon-foundation/dexon/swarm/api"
+ swarmhttp "github.com/dexon-foundation/dexon/swarm/api/http"
+ "github.com/dexon-foundation/dexon/swarm/storage/feed"
)
func serverFunc(api *api.API) swarmhttp.TestServer {
diff --git a/swarm/api/config.go b/swarm/api/config.go
index be7385408..32068603a 100644
--- a/swarm/api/config.go
+++ b/swarm/api/config.go
@@ -23,16 +23,16 @@ import (
"path/filepath"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/contracts/ens"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/swarm/log"
- "github.com/ethereum/go-ethereum/swarm/network"
- "github.com/ethereum/go-ethereum/swarm/pss"
- "github.com/ethereum/go-ethereum/swarm/services/swap"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/contracts/ens"
+ "github.com/dexon-foundation/dexon/crypto"
+ "github.com/dexon-foundation/dexon/node"
+ "github.com/dexon-foundation/dexon/p2p/enode"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ "github.com/dexon-foundation/dexon/swarm/network"
+ "github.com/dexon-foundation/dexon/swarm/pss"
+ "github.com/dexon-foundation/dexon/swarm/services/swap"
+ "github.com/dexon-foundation/dexon/swarm/storage"
)
const (
diff --git a/swarm/api/config_test.go b/swarm/api/config_test.go
index bd7e1d870..7ebacacae 100644
--- a/swarm/api/config_test.go
+++ b/swarm/api/config_test.go
@@ -20,8 +20,8 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/crypto"
)
func TestConfig(t *testing.T) {
diff --git a/swarm/api/encrypt.go b/swarm/api/encrypt.go
index ffe6c16d2..93977b976 100644
--- a/swarm/api/encrypt.go
+++ b/swarm/api/encrypt.go
@@ -20,8 +20,8 @@ import (
"encoding/binary"
"errors"
- "github.com/ethereum/go-ethereum/crypto/sha3"
- "github.com/ethereum/go-ethereum/swarm/storage/encryption"
+ "github.com/dexon-foundation/dexon/crypto/sha3"
+ "github.com/dexon-foundation/dexon/swarm/storage/encryption"
)
type RefEncryption struct {
diff --git a/swarm/api/filesystem.go b/swarm/api/filesystem.go
index 266ef71be..a7dc54071 100644
--- a/swarm/api/filesystem.go
+++ b/swarm/api/filesystem.go
@@ -26,9 +26,9 @@ import (
"path/filepath"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/swarm/log"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ "github.com/dexon-foundation/dexon/swarm/storage"
)
const maxParallelFiles = 5
diff --git a/swarm/api/filesystem_test.go b/swarm/api/filesystem_test.go
index 02f5bff65..6d9f3757a 100644
--- a/swarm/api/filesystem_test.go
+++ b/swarm/api/filesystem_test.go
@@ -24,8 +24,8 @@ import (
"path/filepath"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/swarm/storage"
)
var testDownloadDir, _ = ioutil.TempDir(os.TempDir(), "bzz-test")
diff --git a/swarm/api/gen_mime.go b/swarm/api/gen_mime.go
index 109edeb50..b97880198 100644
--- a/swarm/api/gen_mime.go
+++ b/swarm/api/gen_mime.go
@@ -1,4 +1,4 @@
-// Code generated by github.com/ethereum/go-ethereum/cmd/swarm/mimegen. DO NOT EDIT.
+// Code generated by github.com/dexon-foundation/dexon/cmd/swarm/mimegen. DO NOT EDIT.
package api
diff --git a/swarm/api/http/middleware.go b/swarm/api/http/middleware.go
index f7f819eab..42302610d 100644
--- a/swarm/api/http/middleware.go
+++ b/swarm/api/http/middleware.go
@@ -7,11 +7,11 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/swarm/api"
- "github.com/ethereum/go-ethereum/swarm/log"
- "github.com/ethereum/go-ethereum/swarm/sctx"
- "github.com/ethereum/go-ethereum/swarm/spancontext"
+ "github.com/dexon-foundation/dexon/metrics"
+ "github.com/dexon-foundation/dexon/swarm/api"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ "github.com/dexon-foundation/dexon/swarm/sctx"
+ "github.com/dexon-foundation/dexon/swarm/spancontext"
"github.com/pborman/uuid"
)
diff --git a/swarm/api/http/response.go b/swarm/api/http/response.go
index d4e81d7f6..3ffa78509 100644
--- a/swarm/api/http/response.go
+++ b/swarm/api/http/response.go
@@ -24,9 +24,9 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/swarm/api"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/metrics"
+ "github.com/dexon-foundation/dexon/swarm/api"
)
var (
diff --git a/swarm/api/http/roundtripper.go b/swarm/api/http/roundtripper.go
index be8ea3985..c62b5bab7 100644
--- a/swarm/api/http/roundtripper.go
+++ b/swarm/api/http/roundtripper.go
@@ -20,17 +20,17 @@ import (
"fmt"
"net/http"
- "github.com/ethereum/go-ethereum/swarm/log"
+ "github.com/dexon-foundation/dexon/swarm/log"
)
/*
http roundtripper to register for bzz url scheme
-see https://github.com/ethereum/go-ethereum/issues/2040
+see https://github.com/dexon-foundation/dexon/issues/2040
Usage:
import (
- "github.com/ethereum/go-ethereum/common/httpclient"
- "github.com/ethereum/go-ethereum/swarm/api/http"
+ "github.com/dexon-foundation/dexon/common/httpclient"
+ "github.com/dexon-foundation/dexon/swarm/api/http"
)
client := httpclient.New()
// for (private) swarm proxy running locally
diff --git a/swarm/api/http/sctx.go b/swarm/api/http/sctx.go
index b8dafab0b..cde99b8a7 100644
--- a/swarm/api/http/sctx.go
+++ b/swarm/api/http/sctx.go
@@ -3,8 +3,8 @@ package http
import (
"context"
- "github.com/ethereum/go-ethereum/swarm/api"
- "github.com/ethereum/go-ethereum/swarm/sctx"
+ "github.com/dexon-foundation/dexon/swarm/api"
+ "github.com/dexon-foundation/dexon/swarm/sctx"
)
type uriKey struct{}
diff --git a/swarm/api/http/server.go b/swarm/api/http/server.go
index 3c6735a73..2055bda58 100644
--- a/swarm/api/http/server.go
+++ b/swarm/api/http/server.go
@@ -35,12 +35,12 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/swarm/api"
- "github.com/ethereum/go-ethereum/swarm/log"
- "github.com/ethereum/go-ethereum/swarm/storage"
- "github.com/ethereum/go-ethereum/swarm/storage/feed"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/metrics"
+ "github.com/dexon-foundation/dexon/swarm/api"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/dexon-foundation/dexon/swarm/storage/feed"
"github.com/rs/cors"
)
diff --git a/swarm/api/http/server_test.go b/swarm/api/http/server_test.go
index e82762ce0..dbb86c200 100644
--- a/swarm/api/http/server_test.go
+++ b/swarm/api/http/server_test.go
@@ -37,17 +37,17 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/swarm/storage/feed/lookup"
-
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/swarm/api"
- swarm "github.com/ethereum/go-ethereum/swarm/api/client"
- "github.com/ethereum/go-ethereum/swarm/storage"
- "github.com/ethereum/go-ethereum/swarm/storage/feed"
- "github.com/ethereum/go-ethereum/swarm/testutil"
+ "github.com/dexon-foundation/dexon/swarm/storage/feed/lookup"
+
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/core/types"
+ "github.com/dexon-foundation/dexon/crypto"
+ "github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/swarm/api"
+ swarm "github.com/dexon-foundation/dexon/swarm/api/client"
+ "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/dexon-foundation/dexon/swarm/storage/feed"
+ "github.com/dexon-foundation/dexon/swarm/testutil"
)
func init() {
diff --git a/swarm/api/http/templates.go b/swarm/api/http/templates.go
index 986f5f887..a37d7b03b 100644
--- a/swarm/api/http/templates.go
+++ b/swarm/api/http/templates.go
@@ -22,7 +22,7 @@ import (
"html/template"
"path"
- "github.com/ethereum/go-ethereum/swarm/api"
+ "github.com/dexon-foundation/dexon/swarm/api"
)
type htmlListData struct {
diff --git a/swarm/api/http/test_server.go b/swarm/api/http/test_server.go
index 9245c9c5b..14de20c77 100644
--- a/swarm/api/http/test_server.go
+++ b/swarm/api/http/test_server.go
@@ -23,9 +23,9 @@ import (
"os"
"testing"
- "github.com/ethereum/go-ethereum/swarm/api"
- "github.com/ethereum/go-ethereum/swarm/storage"
- "github.com/ethereum/go-ethereum/swarm/storage/feed"
+ "github.com/dexon-foundation/dexon/swarm/api"
+ "github.com/dexon-foundation/dexon/swarm/storage"
+ "github.com/dexon-foundation/dexon/swarm/storage/feed"
)
type TestServer interface {
diff --git a/swarm/api/manifest.go b/swarm/api/manifest.go
index 890ed88bd..d309f6914 100644
--- a/swarm/api/manifest.go
+++ b/swarm/api/manifest.go
@@ -27,11 +27,11 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/swarm/storage/feed"
+ "github.com/dexon-foundation/dexon/swarm/storage/feed"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/swarm/log"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/swarm/log"
+ "github.com/dexon-foundation/dexon/swarm/storage"
)
const (
diff --git a/swarm/api/manifest_test.go b/swarm/api/manifest_test.go
index 1c8e53c43..268e628b1 100644
--- a/swarm/api/manifest_test.go
+++ b/swarm/api/manifest_test.go
@@ -25,7 +25,7 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/swarm/storage"
)
func manifest(paths ...string) (manifestReader storage.LazySectionReader) {
diff --git a/swarm/api/storage.go b/swarm/api/storage.go
index 8a48fe5bc..7712d49ed 100644
--- a/swarm/api/storage.go
+++ b/swarm/api/storage.go
@@ -20,7 +20,7 @@ import (
"context"
"path"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/swarm/storage"
)
type Response struct {
diff --git a/swarm/api/testapi.go b/swarm/api/testapi.go
index 4c7d0982b..92a183954 100644
--- a/swarm/api/testapi.go
+++ b/swarm/api/testapi.go
@@ -17,7 +17,7 @@
package api
import (
- "github.com/ethereum/go-ethereum/swarm/network"
+ "github.com/dexon-foundation/dexon/swarm/network"
)
type Control struct {
diff --git a/swarm/api/uri.go b/swarm/api/uri.go
index 09cfa4502..30dcb4988 100644
--- a/swarm/api/uri.go
+++ b/swarm/api/uri.go
@@ -22,8 +22,8 @@ import (
"regexp"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/swarm/storage"
)
//matches hex swarm hashes
diff --git a/swarm/api/uri_test.go b/swarm/api/uri_test.go
index ea649e273..a175185ec 100644
--- a/swarm/api/uri_test.go
+++ b/swarm/api/uri_test.go
@@ -21,7 +21,7 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/swarm/storage"
+ "github.com/dexon-foundation/dexon/swarm/storage"
)
func TestParseURI(t *testing.T) {