Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
9c09ea2c
Unverified
Commit
9c09ea2c
authored
May 18, 2021
by
Ivan Vandot
Committed by
GitHub
May 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch swap endpoint to localhost (#1731)
parent
ae036e06
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
22 additions
and
16 deletions
+22
-16
.goreleaser.yml
.goreleaser.yml
+4
-1
cmd.go
cmd/bee/cmd/cmd.go
+1
-1
bee.yaml
packaging/bee.yaml
+2
-2
postinst
packaging/deb/postinst
+3
-2
default
packaging/default
+1
-1
README.md
packaging/docker/README.md
+2
-2
env
packaging/docker/env
+2
-2
bee.yaml
packaging/homebrew/bee.yaml
+2
-2
post
packaging/rpm/post
+3
-1
bee.yaml
packaging/scoop/bee.yaml
+2
-2
No files found.
.goreleaser.yml
View file @
9c09ea2c
...
...
@@ -175,6 +175,7 @@ scoop:
-
"
if(!(Test-Path
$persist_dir
\\
password)){[System.Web.Security.Membership]::GeneratePassword(32,5)
|
Set-Content
-Path
$persist_dir
\\
password}"
-
"
if(sc.exe
query
SwarmBeeSvc
|
Select-String
FAILED){sc.exe
create
SwarmBeeSvc
binPath=
\"
$dir
\\
bee.exe
start
--config=$persist_dir
\\
bee.yaml
\"
type=
share
start=
auto
displayName=
\"
Bee
\"
;
sc.exe
description
SwarmBeeSvc
\"
Swarm
client
implemented
in
Go.
\"
}"
-
"
if($global){$ETH_ADDRESS
=
(((C:
\\
ProgramData
\\
scoop
\\
shims
\\
bee.exe
init
--config=$persist_dir
\\
bee.yaml
|
Select-String
ethereum)
-split
'
‘)[-1]).Trim('
\"
')}
else
{$ETH_ADDRESS
=
(((bee.exe
init
--config=$persist_dir
\\
bee.yaml
|
Select-String
ethereum)
-split
'
‘)[-1]).Trim('
\"
')};
Write-Host
\"
Please
make
sure
there
is
sufficient
eth
and
bzz
available
on
$ETH_ADDRESS
address.
\n
Learn
how
to
fund
your
node
by
visiting
our
docs
at
https://docs.ethswarm.org/docs/installation/fund-your-node
\"
"
-
"
Write-Host
\"
Obtain
a
free
Infura
account
and
set:
swap-endpoint:
wss://goerli.infura.io/ws/v3/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
inside
$persist_dir
\\
bee.yaml
\"
"
-
"
Write-Host
\"
After
the
initial
fund
deploy
Bee
chequebook
with
[sudo]
$dir
\\
bee.exe
deploy
--config=$persist_dir
\\
bee.yaml
\"
"
-
"
Write-Host
'Start
Bee
service
with
[sudo]
sc.exe
start
SwarmBeeSvc'"
...
...
@@ -195,7 +196,9 @@ brews:
Logs: #{var}/log/swarm-bee/bee.log
Config: #{etc}/swarm-bee/bee.yaml
Bee has SWAP enabled and by default is using slock.it goerli ethereum endpoint.
Bee requires an Ethereum endpoint to function. By default is using ws://localhost:8546 ethereum endpoint.
If needed obtain a free Infura account and set:
`swap-endpoint: wss://goerli.infura.io/ws/v3/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
It is recommended to use external signer with bee.
Check documentation for more info:
- SWAP https://docs.ethswarm.org/docs/installation/manual#swap-bandwidth-incentives
...
...
cmd/bee/cmd/cmd.go
View file @
9c09ea2c
...
...
@@ -226,7 +226,7 @@ func (c *command) setAllFlags(cmd *cobra.Command) {
cmd
.
Flags
()
.
Bool
(
optionNameClefSignerEnable
,
false
,
"enable clef signer"
)
cmd
.
Flags
()
.
String
(
optionNameClefSignerEndpoint
,
""
,
"clef signer endpoint"
)
cmd
.
Flags
()
.
String
(
optionNameClefSignerEthereumAddress
,
""
,
"ethereum address to use from clef signer"
)
cmd
.
Flags
()
.
String
(
optionNameSwapEndpoint
,
"
http://localhost:8545
"
,
"swap ethereum blockchain endpoint"
)
cmd
.
Flags
()
.
String
(
optionNameSwapEndpoint
,
"
ws://localhost:8546
"
,
"swap ethereum blockchain endpoint"
)
cmd
.
Flags
()
.
String
(
optionNameSwapFactoryAddress
,
""
,
"swap factory addresses"
)
cmd
.
Flags
()
.
StringSlice
(
optionNameSwapLegacyFactoryAddresses
,
nil
,
"legacy swap factory addresses"
)
cmd
.
Flags
()
.
String
(
optionNameSwapInitialDeposit
,
"10000000000000000"
,
"initial deposit if deploying a new chequebook"
)
...
...
packaging/bee.yaml
View file @
9c09ea2c
...
...
@@ -60,8 +60,8 @@ password-file: /var/lib/bee/password
# standalone: false
## enable swap (default true)
# swap-enable: true
## swap ethereum blockchain endpoint (default "
http://localhost:8545
")
swap-endpoint
:
https://rpc.slock.it/goerli
## swap ethereum blockchain endpoint (default "
ws://localhost:8546
")
# swap-endpoint: ws://localhost:8546
## swap factory address
# swap-factory-address: ""
## initial deposit if deploying a new chequebook (default 10000000000000000)
...
...
packaging/deb/postinst
View file @
9c09ea2c
...
...
@@ -11,10 +11,11 @@ if [ "$1" = "configure" ]; then
Logs: journalctl -f -u bee.service
Config: /etc/bee/bee.yaml
Bee has SWAP enabled and by default is using slock.it goerli ethereum endpoint.
Bee requires an Ethereum endpoint to function. By default is using ws://localhost:8546 ethereum endpoint.
If needed obtain a free Infura account and set:
`
swap-endpoint: wss://goerli.infura.io/ws/v3/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
`
It is recommended to use external signer with bee.
Check documentation for more info:
- SWAP https://docs.ethswarm.org/docs/installation/manual#swap-bandwidth-incentives
- External signer https://docs.ethswarm.org/docs/installation/bee-clef
After you finish configuration run 'sudo bee-get-addr'.
...
...
packaging/default
View file @
9c09ea2c
# Configuration for bee daemon
#BEE_SWAP_ENDPOINT=
http://localhost:8545
#BEE_SWAP_ENDPOINT=
ws://localhost:8546
#BEE_RESOLVER_OPTIONS=
\ No newline at end of file
packaging/docker/README.md
View file @
9c09ea2c
...
...
@@ -11,8 +11,8 @@ Set all configuration variables inside `.env`
`clef`
is configured with
`CLEF_CHAINID=5`
for goerli
To configure
`bee`
set:
-
`BEE_SWAP_ENDPOINT=
https://rpc.slock.it/goerli
`
Bee requires an Ethereum endpoint to function. Obtain a free Infura account and
set:
-
`BEE_SWAP_ENDPOINT=
wss://goerli.infura.io/ws/v3/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
`
Set bee password by either setting
`BEE_PASSWORD`
or
`BEE_PASSWORD_FILE`
...
...
packaging/docker/env
View file @
9c09ea2c
...
...
@@ -67,8 +67,8 @@ BEE_CLEF_SIGNER_ENABLE=true
# BEE_STANDALONE=false
## enable swap (default true)
# BEE_SWAP_ENABLE=true
## swap ethereum blockchain endpoint (default
http://localhost:8545
)
# BEE_SWAP_ENDPOINT=
http://localhost:8545
## swap ethereum blockchain endpoint (default
ws://localhost:8546
)
# BEE_SWAP_ENDPOINT=
ws://localhost:8546
## swap factory address
# BEE_SWAP_FACTORY_ADDRESS=
## initial deposit if deploying a new chequebook (default 100000000)
...
...
packaging/homebrew/bee.yaml
View file @
9c09ea2c
...
...
@@ -60,8 +60,8 @@ password-file: /usr/local/var/lib/swarm-bee/password
# standalone: false
## enable swap (default true)
# swap-enable: true
## swap ethereum blockchain endpoint (default "
http://localhost:8545
")
swap-endpoint
:
https://rpc.slock.it/goerli
## swap ethereum blockchain endpoint (default "
ws://localhost:8546
")
# swap-endpoint: ws://localhost:8546
## swap factory address
# swap-factory-address: ""
## initial deposit if deploying a new chequebook (default 10000000000000000)
...
...
packaging/rpm/post
View file @
9c09ea2c
...
...
@@ -10,7 +10,9 @@ if [ $1 -eq 1 ] ; then
Logs: journalctl -f -u bee.service
Config: /etc/bee/bee.yaml
Bee has SWAP enabled and by default is using slock.it goerli ethereum endpoint.
Bee requires an Ethereum endpoint to function. By default is using ws://localhost:8546 ethereum endpoint.
If needed obtain a free Infura account and set:
`swap-endpoint: wss://goerli.infura.io/ws/v3/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
It is recommended to use external signer with bee.
Check documentation for more info:
- SWAP https://docs.ethswarm.org/docs/installation/manual#swap-bandwidth-incentives
...
...
packaging/scoop/bee.yaml
View file @
9c09ea2c
...
...
@@ -50,8 +50,8 @@ password-file: ./password
# standalone: false
## enable swap (default true)
# swap-enable: true
## swap ethereum blockchain endpoint (default "
http://localhost:8545
")
swap-endpoint
:
https://rpc.slock.it/goerli
## swap ethereum blockchain endpoint (default "
ws://localhost:8546
")
# swap-endpoint: ws://localhost:8546
## swap factory address
# swap-factory-address: ""
## initial deposit if deploying a new chequebook (default 10000000000000000)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment