.github: fix contributing.md (#1408)
This commit is contained in:
committed by
GitHub
parent
c5430df218
commit
a83a84460e
32
.github/CONTRIBUTING.md
vendored
32
.github/CONTRIBUTING.md
vendored
@ -1,26 +1,20 @@
|
|||||||
# Contributing
|
## Contributing
|
||||||
|
|
||||||
Thank you for considering to help out with the source code! We welcome
|
Thank you for considering to help out with the source code! We welcome contributions from
|
||||||
contributions from anyone on the internet, and are grateful for even the
|
anyone on the internet, and are grateful for even the smallest of fixes!
|
||||||
smallest of fixes!
|
|
||||||
|
|
||||||
If you'd like to contribute to swarm, please fork, fix, commit and send a
|
If you'd like to contribute to Swarm, please fork, fix, commit and send a pull request
|
||||||
pull request for the maintainers to review and merge into the main code base. If
|
for the maintainers to review and merge into the main code base. If you wish to submit more
|
||||||
you wish to submit more complex changes though, please check up with the core
|
complex changes though, please check up with the core devs first on [our Swarm gitter channel](https://gitter.im/ethersphere/orange-lounge)
|
||||||
devs first on [our gitter channel](https://gitter.im/ethereum/swarm) to
|
to ensure those changes are in line with the general philosophy of the project and/or get some
|
||||||
ensure those changes are in line with the general philosophy of the project
|
early feedback which can make both your efforts much lighter as well as our review and merge
|
||||||
and/or get some early feedback which can make both your efforts much lighter as
|
procedures quick and simple.
|
||||||
well as our review and merge procedures quick and simple.
|
|
||||||
|
|
||||||
## Coding guidelines
|
|
||||||
|
|
||||||
Please make sure your contributions adhere to our coding guidelines:
|
Please make sure your contributions adhere to our coding guidelines:
|
||||||
|
|
||||||
* Code must adhere to the official Go
|
* Code must adhere to the official Go [formatting](https://golang.org/doc/effective_go.html#formatting) guidelines (i.e. uses [gofmt](https://golang.org/cmd/gofmt/)).
|
||||||
[formatting](https://golang.org/doc/effective_go.html#formatting) guidelines
|
* Code must be documented adhering to the official Go [commentary](https://golang.org/doc/effective_go.html#commentary) guidelines.
|
||||||
(i.e. uses [gofmt](https://golang.org/cmd/gofmt/)).
|
|
||||||
* Code must be documented adhering to the official Go
|
|
||||||
[commentary](https://golang.org/doc/effective_go.html#commentary) guidelines.
|
|
||||||
* Pull requests need to be based on and opened against the `master` branch.
|
* Pull requests need to be based on and opened against the `master` branch.
|
||||||
|
* [Code review guidelines](https://github.com/ethersphere/swarm/blob/master/docs/Code-Review-Guidelines.md).
|
||||||
* Commit messages should be prefixed with the package(s) they modify.
|
* Commit messages should be prefixed with the package(s) they modify.
|
||||||
* E.g. "eth, rpc: make trace configs optional"
|
* E.g. "fuse: ignore default manifest entry"
|
||||||
|
22
.travis.yml
22
.travis.yml
@ -1,19 +1,11 @@
|
|||||||
language: go
|
language: go
|
||||||
go_import_path: github.com/ethereum/swarm
|
go_import_path: github.com/ethersphere/swarm
|
||||||
sudo: false
|
sudo: false
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: linux
|
|
||||||
dist: trusty
|
|
||||||
sudo: required
|
|
||||||
go: 1.10.x
|
|
||||||
script:
|
|
||||||
- sudo modprobe fuse
|
|
||||||
- sudo chmod 666 /dev/fuse
|
|
||||||
- sudo chown root:$USER /etc/fuse.conf
|
|
||||||
- go run build/ci.go install
|
|
||||||
- go run build/ci.go test -coverage $TEST_PACKAGES
|
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
dist: trusty
|
dist: trusty
|
||||||
sudo: required
|
sudo: required
|
||||||
@ -159,9 +151,3 @@ matrix:
|
|||||||
- azure-purge
|
- azure-purge
|
||||||
script:
|
script:
|
||||||
- go run build/ci.go purge -store ethswarmstorage/builds -days 14
|
- go run build/ci.go purge -store ethswarmstorage/builds -days 14
|
||||||
|
|
||||||
- name: Race Detector for Swarm
|
|
||||||
os: linux
|
|
||||||
dist: trusty
|
|
||||||
go: 1.12.x
|
|
||||||
script: ./build/travis_keepalive.sh go test -v -timeout 20m -race ./swarm...
|
|
||||||
|
@ -25,7 +25,7 @@ Swarm is a distributed storage platform and content distribution service, a nati
|
|||||||
|
|
||||||
## Building the source
|
## Building the source
|
||||||
|
|
||||||
Building Swarm requires Go (version 1.10 or later).
|
Building Swarm requires Go (version 1.11 or later).
|
||||||
|
|
||||||
go get -d github.com/ethersphere/swarm
|
go get -d github.com/ethersphere/swarm
|
||||||
|
|
||||||
@ -173,15 +173,15 @@ Swarm supports an InfluxDB exporter. Consult the help section to learn about the
|
|||||||
swarm --help | grep metrics
|
swarm --help | grep metrics
|
||||||
```
|
```
|
||||||
|
|
||||||
We use Grafana and InfluxDB to visualise metrics reported by Swarm. We keep our Grafana dashboards under version control at `./swarm/grafana_dashboards`. You could use them or design your own.
|
We use Grafana and InfluxDB to visualise metrics reported by Swarm. We keep our Grafana dashboards under version control at https://github.com/ethersphere/grafana-dashboards. You could use them or design your own.
|
||||||
|
|
||||||
We have built a tool to help with automatic start of Grafana and InfluxDB and provisioning of dashboards at https://github.com/nonsense/stateth , which requires that you have Docker installed.
|
We have built a tool to help with automatic start of Grafana and InfluxDB and provisioning of dashboards at https://github.com/nonsense/stateth, which requires that you have Docker installed.
|
||||||
|
|
||||||
Once you have `stateth` installed, and you have Docker running locally, you have to:
|
Once you have `stateth` installed, and you have Docker running locally, you have to:
|
||||||
|
|
||||||
1. Run `stateth` and keep it running in the background
|
1. Run `stateth` and keep it running in the background
|
||||||
```
|
```
|
||||||
stateth --rm --grafana-dashboards-folder $GOPATH/src/github.com/ethersphere/swarm/grafana_dashboards --influxdb-database metrics
|
stateth --rm --grafana-dashboards-folder $GOPATH/src/github.com/ethersphere/grafana-dashboards --influxdb-database metrics
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Run `swarm` with at least the following params:
|
2. Run `swarm` with at least the following params:
|
||||||
|
@ -38,10 +38,10 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethersphere/swarm/contracts/ens"
|
|
||||||
"github.com/ethereum/go-ethereum/core/types"
|
"github.com/ethereum/go-ethereum/core/types"
|
||||||
"github.com/ethereum/go-ethereum/metrics"
|
"github.com/ethereum/go-ethereum/metrics"
|
||||||
"github.com/ethersphere/swarm/chunk"
|
"github.com/ethersphere/swarm/chunk"
|
||||||
|
"github.com/ethersphere/swarm/contracts/ens"
|
||||||
"github.com/ethersphere/swarm/log"
|
"github.com/ethersphere/swarm/log"
|
||||||
"github.com/ethersphere/swarm/spancontext"
|
"github.com/ethersphere/swarm/spancontext"
|
||||||
"github.com/ethersphere/swarm/storage"
|
"github.com/ethersphere/swarm/storage"
|
||||||
|
@ -25,10 +25,10 @@ import (
|
|||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||||
"github.com/ethersphere/swarm/contracts/ens"
|
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
"github.com/ethereum/go-ethereum/node"
|
"github.com/ethereum/go-ethereum/node"
|
||||||
"github.com/ethereum/go-ethereum/p2p/enode"
|
"github.com/ethereum/go-ethereum/p2p/enode"
|
||||||
|
"github.com/ethersphere/swarm/contracts/ens"
|
||||||
"github.com/ethersphere/swarm/network"
|
"github.com/ethersphere/swarm/network"
|
||||||
"github.com/ethersphere/swarm/pss"
|
"github.com/ethersphere/swarm/pss"
|
||||||
"github.com/ethersphere/swarm/services/swap"
|
"github.com/ethersphere/swarm/services/swap"
|
||||||
|
@ -25,8 +25,8 @@ import (
|
|||||||
|
|
||||||
"github.com/ethereum/go-ethereum/cmd/utils"
|
"github.com/ethereum/go-ethereum/cmd/utils"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethersphere/swarm/contracts/ens"
|
|
||||||
"github.com/ethersphere/swarm/chunk"
|
"github.com/ethersphere/swarm/chunk"
|
||||||
|
"github.com/ethersphere/swarm/contracts/ens"
|
||||||
"github.com/ethersphere/swarm/storage"
|
"github.com/ethersphere/swarm/storage"
|
||||||
"gopkg.in/urfave/cli.v1"
|
"gopkg.in/urfave/cli.v1"
|
||||||
)
|
)
|
||||||
|
@ -35,13 +35,13 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/console"
|
"github.com/ethereum/go-ethereum/console"
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
"github.com/ethersphere/swarm/internal/debug"
|
|
||||||
"github.com/ethereum/go-ethereum/log"
|
"github.com/ethereum/go-ethereum/log"
|
||||||
"github.com/ethereum/go-ethereum/node"
|
"github.com/ethereum/go-ethereum/node"
|
||||||
"github.com/ethereum/go-ethereum/p2p/enode"
|
"github.com/ethereum/go-ethereum/p2p/enode"
|
||||||
"github.com/ethereum/go-ethereum/rpc"
|
"github.com/ethereum/go-ethereum/rpc"
|
||||||
"github.com/ethersphere/swarm"
|
"github.com/ethersphere/swarm"
|
||||||
bzzapi "github.com/ethersphere/swarm/api"
|
bzzapi "github.com/ethersphere/swarm/api"
|
||||||
|
"github.com/ethersphere/swarm/internal/debug"
|
||||||
swarmmetrics "github.com/ethersphere/swarm/metrics"
|
swarmmetrics "github.com/ethersphere/swarm/metrics"
|
||||||
"github.com/ethersphere/swarm/storage/mock"
|
"github.com/ethersphere/swarm/storage/mock"
|
||||||
mockrpc "github.com/ethersphere/swarm/storage/mock/rpc"
|
mockrpc "github.com/ethersphere/swarm/storage/mock/rpc"
|
||||||
|
@ -35,13 +35,13 @@ import (
|
|||||||
"github.com/docker/docker/pkg/reexec"
|
"github.com/docker/docker/pkg/reexec"
|
||||||
"github.com/ethereum/go-ethereum/accounts"
|
"github.com/ethereum/go-ethereum/accounts"
|
||||||
"github.com/ethereum/go-ethereum/accounts/keystore"
|
"github.com/ethereum/go-ethereum/accounts/keystore"
|
||||||
"github.com/ethersphere/swarm/internal/cmdtest"
|
|
||||||
"github.com/ethereum/go-ethereum/node"
|
"github.com/ethereum/go-ethereum/node"
|
||||||
"github.com/ethereum/go-ethereum/p2p"
|
"github.com/ethereum/go-ethereum/p2p"
|
||||||
"github.com/ethereum/go-ethereum/rpc"
|
"github.com/ethereum/go-ethereum/rpc"
|
||||||
"github.com/ethersphere/swarm"
|
"github.com/ethersphere/swarm"
|
||||||
"github.com/ethersphere/swarm/api"
|
"github.com/ethersphere/swarm/api"
|
||||||
swarmhttp "github.com/ethersphere/swarm/api/http"
|
swarmhttp "github.com/ethersphere/swarm/api/http"
|
||||||
|
"github.com/ethersphere/swarm/internal/cmdtest"
|
||||||
)
|
)
|
||||||
|
|
||||||
var loglevel = flag.Int("loglevel", 3, "verbosity of logs")
|
var loglevel = flag.Int("loglevel", 3, "verbosity of logs")
|
||||||
|
@ -39,10 +39,10 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||||
"github.com/ethersphere/swarm/contracts/chequebook/contract"
|
|
||||||
"github.com/ethereum/go-ethereum/core/types"
|
"github.com/ethereum/go-ethereum/core/types"
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
"github.com/ethereum/go-ethereum/log"
|
"github.com/ethereum/go-ethereum/log"
|
||||||
|
"github.com/ethersphere/swarm/contracts/chequebook/contract"
|
||||||
"github.com/ethersphere/swarm/services/swap/swap"
|
"github.com/ethersphere/swarm/services/swap/swap"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -27,9 +27,9 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
||||||
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethersphere/swarm/contracts/chequebook/contract"
|
|
||||||
"github.com/ethereum/go-ethereum/core"
|
"github.com/ethereum/go-ethereum/core"
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
|
"github.com/ethersphere/swarm/contracts/chequebook/contract"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -27,9 +27,9 @@ import (
|
|||||||
|
|
||||||
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
||||||
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
|
||||||
"github.com/ethersphere/swarm/contracts/chequebook/contract"
|
|
||||||
"github.com/ethereum/go-ethereum/core"
|
"github.com/ethereum/go-ethereum/core"
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
|
"github.com/ethersphere/swarm/contracts/chequebook/contract"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -27,10 +27,10 @@ import (
|
|||||||
|
|
||||||
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethersphere/swarm/contracts/ens/contract"
|
|
||||||
"github.com/ethersphere/swarm/contracts/ens/fallback_contract"
|
|
||||||
"github.com/ethereum/go-ethereum/core/types"
|
"github.com/ethereum/go-ethereum/core/types"
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
|
"github.com/ethersphere/swarm/contracts/ens/contract"
|
||||||
|
"github.com/ethersphere/swarm/contracts/ens/fallback_contract"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -23,10 +23,10 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
||||||
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
|
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethersphere/swarm/contracts/ens/contract"
|
|
||||||
"github.com/ethersphere/swarm/contracts/ens/fallback_contract"
|
|
||||||
"github.com/ethereum/go-ethereum/core"
|
"github.com/ethereum/go-ethereum/core"
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
|
"github.com/ethersphere/swarm/contracts/ens/contract"
|
||||||
|
"github.com/ethersphere/swarm/contracts/ens/fallback_contract"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -34,10 +34,10 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/p2p/simulations"
|
"github.com/ethereum/go-ethereum/p2p/simulations"
|
||||||
"github.com/ethereum/go-ethereum/p2p/simulations/adapters"
|
"github.com/ethereum/go-ethereum/p2p/simulations/adapters"
|
||||||
"github.com/ethereum/go-ethereum/rpc"
|
"github.com/ethereum/go-ethereum/rpc"
|
||||||
|
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
||||||
"github.com/ethersphere/swarm/network"
|
"github.com/ethersphere/swarm/network"
|
||||||
"github.com/ethersphere/swarm/pss"
|
"github.com/ethersphere/swarm/pss"
|
||||||
"github.com/ethersphere/swarm/state"
|
"github.com/ethersphere/swarm/state"
|
||||||
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type protoCtrl struct {
|
type protoCtrl struct {
|
||||||
|
@ -10,9 +10,9 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/p2p"
|
"github.com/ethereum/go-ethereum/p2p"
|
||||||
"github.com/ethereum/go-ethereum/p2p/enode"
|
"github.com/ethereum/go-ethereum/p2p/enode"
|
||||||
"github.com/ethereum/go-ethereum/p2p/protocols"
|
"github.com/ethereum/go-ethereum/p2p/protocols"
|
||||||
|
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
||||||
"github.com/ethersphere/swarm/network"
|
"github.com/ethersphere/swarm/network"
|
||||||
"github.com/ethersphere/swarm/pot"
|
"github.com/ethersphere/swarm/pot"
|
||||||
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type testCase struct {
|
type testCase struct {
|
||||||
|
@ -25,8 +25,8 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
"github.com/ethereum/go-ethereum/metrics"
|
"github.com/ethereum/go-ethereum/metrics"
|
||||||
"github.com/ethersphere/swarm/log"
|
|
||||||
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
||||||
|
"github.com/ethersphere/swarm/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type KeyStore struct {
|
type KeyStore struct {
|
||||||
|
@ -16,10 +16,10 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/p2p/enode"
|
"github.com/ethereum/go-ethereum/p2p/enode"
|
||||||
"github.com/ethereum/go-ethereum/p2p/simulations"
|
"github.com/ethereum/go-ethereum/p2p/simulations"
|
||||||
"github.com/ethereum/go-ethereum/p2p/simulations/adapters"
|
"github.com/ethereum/go-ethereum/p2p/simulations/adapters"
|
||||||
|
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
||||||
"github.com/ethersphere/swarm/network"
|
"github.com/ethersphere/swarm/network"
|
||||||
"github.com/ethersphere/swarm/pss"
|
"github.com/ethersphere/swarm/pss"
|
||||||
"github.com/ethersphere/swarm/state"
|
"github.com/ethersphere/swarm/state"
|
||||||
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -34,11 +34,11 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/p2p/enode"
|
"github.com/ethereum/go-ethereum/p2p/enode"
|
||||||
"github.com/ethereum/go-ethereum/p2p/protocols"
|
"github.com/ethereum/go-ethereum/p2p/protocols"
|
||||||
"github.com/ethereum/go-ethereum/rpc"
|
"github.com/ethereum/go-ethereum/rpc"
|
||||||
|
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
||||||
"github.com/ethersphere/swarm/log"
|
"github.com/ethersphere/swarm/log"
|
||||||
"github.com/ethersphere/swarm/network"
|
"github.com/ethersphere/swarm/network"
|
||||||
"github.com/ethersphere/swarm/pot"
|
"github.com/ethersphere/swarm/pot"
|
||||||
"github.com/ethersphere/swarm/storage"
|
"github.com/ethersphere/swarm/storage"
|
||||||
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
|
||||||
"golang.org/x/crypto/sha3"
|
"golang.org/x/crypto/sha3"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -45,10 +45,10 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/p2p/simulations"
|
"github.com/ethereum/go-ethereum/p2p/simulations"
|
||||||
"github.com/ethereum/go-ethereum/p2p/simulations/adapters"
|
"github.com/ethereum/go-ethereum/p2p/simulations/adapters"
|
||||||
"github.com/ethereum/go-ethereum/rpc"
|
"github.com/ethereum/go-ethereum/rpc"
|
||||||
|
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
||||||
"github.com/ethersphere/swarm/network"
|
"github.com/ethersphere/swarm/network"
|
||||||
"github.com/ethersphere/swarm/pot"
|
"github.com/ethersphere/swarm/pot"
|
||||||
"github.com/ethersphere/swarm/state"
|
"github.com/ethersphere/swarm/state"
|
||||||
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -25,8 +25,8 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||||
"github.com/ethereum/go-ethereum/p2p"
|
"github.com/ethereum/go-ethereum/p2p"
|
||||||
"github.com/ethereum/go-ethereum/rlp"
|
"github.com/ethereum/go-ethereum/rlp"
|
||||||
"github.com/ethersphere/swarm/storage"
|
|
||||||
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
||||||
|
"github.com/ethersphere/swarm/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -29,10 +29,10 @@ import (
|
|||||||
|
|
||||||
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethersphere/swarm/contracts/chequebook"
|
|
||||||
"github.com/ethersphere/swarm/contracts/chequebook/contract"
|
|
||||||
"github.com/ethereum/go-ethereum/core/types"
|
"github.com/ethereum/go-ethereum/core/types"
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
|
"github.com/ethersphere/swarm/contracts/chequebook"
|
||||||
|
"github.com/ethersphere/swarm/contracts/chequebook/contract"
|
||||||
"github.com/ethersphere/swarm/log"
|
"github.com/ethersphere/swarm/log"
|
||||||
"github.com/ethersphere/swarm/services/swap/swap"
|
"github.com/ethersphere/swarm/services/swap/swap"
|
||||||
)
|
)
|
||||||
|
4
swarm.go
4
swarm.go
@ -37,8 +37,6 @@ import (
|
|||||||
|
|
||||||
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethersphere/swarm/contracts/chequebook"
|
|
||||||
"github.com/ethersphere/swarm/contracts/ens"
|
|
||||||
"github.com/ethereum/go-ethereum/ethclient"
|
"github.com/ethereum/go-ethereum/ethclient"
|
||||||
"github.com/ethereum/go-ethereum/metrics"
|
"github.com/ethereum/go-ethereum/metrics"
|
||||||
"github.com/ethereum/go-ethereum/p2p"
|
"github.com/ethereum/go-ethereum/p2p"
|
||||||
@ -47,6 +45,8 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/rpc"
|
"github.com/ethereum/go-ethereum/rpc"
|
||||||
"github.com/ethersphere/swarm/api"
|
"github.com/ethersphere/swarm/api"
|
||||||
httpapi "github.com/ethersphere/swarm/api/http"
|
httpapi "github.com/ethersphere/swarm/api/http"
|
||||||
|
"github.com/ethersphere/swarm/contracts/chequebook"
|
||||||
|
"github.com/ethersphere/swarm/contracts/ens"
|
||||||
"github.com/ethersphere/swarm/fuse"
|
"github.com/ethersphere/swarm/fuse"
|
||||||
"github.com/ethersphere/swarm/log"
|
"github.com/ethersphere/swarm/log"
|
||||||
"github.com/ethersphere/swarm/network"
|
"github.com/ethersphere/swarm/network"
|
||||||
|
Reference in New Issue
Block a user