Skip to content

Commit

Permalink
Merge pull request #64 from renproject/release/0.3.8
Browse files Browse the repository at this point in the history
Release/0.3.8
  • Loading branch information
Yunshi Sun committed May 21, 2020
2 parents 28a5a37 + a286c30 commit d9730c0
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 33 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.7
3.0.8
6 changes: 3 additions & 3 deletions artifacts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ cputype="$(uname -m)"

# download darknode binary depending on the system and architecture
if [ "$ostype" = 'Linux' -a "$cputype" = 'x86_64' ]; then
TERRAFORM_URL='https://releases.hashicorp.com/terraform/0.12.12/terraform_0.12.12_linux_amd64.zip'
TERRAFORM_URL='https://releases.hashicorp.com/terraform/0.12.24/terraform_0.12.24_linux_amd64.zip'
curl -sL 'https://www.github.com/renproject/darknode-cli/releases/latest/download/darknode_linux_amd64' > ./bin/darknode
elif [ "$ostype" = 'Linux' -a "$cputype" = 'aarch64' ]; then
TERRAFORM_URL='https://releases.hashicorp.com/terraform/0.12.12/terraform_0.12.12_linux_arm.zip'
TERRAFORM_URL='https://releases.hashicorp.com/terraform/0.12.24/terraform_0.12.24_linux_arm.zip'
curl -sL 'https://www.github.com/renproject/darknode-cli/releases/latest/download/darknode_linux_arm' > ./bin/darknode
elif [ "$ostype" = 'Darwin' -a "$cputype" = 'x86_64' ]; then
TERRAFORM_URL='https://releases.hashicorp.com/terraform/0.12.12/terraform_0.12.12_darwin_amd64.zip'
TERRAFORM_URL='https://releases.hashicorp.com/terraform/0.12.24/terraform_0.12.24_darwin_amd64.zip'
curl -sL 'https://www.github.com/renproject/darknode-cli/releases/latest/download/darknode_darwin_amd64' > ./bin/darknode
else
echo 'unsupported OS type or architecture'
Expand Down
4 changes: 2 additions & 2 deletions cmd/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ var (
}
NetworkFlag = cli.StringFlag{
Name: "network",
Value: "chaosnet",
Usage: "Network of your Darknode (default: chaosnet)",
Value: "mainnet",
Usage: "Network of your Darknode (default: mainnet)",
}
AddressFlag = cli.StringFlag{
Name: "address",
Expand Down
15 changes: 0 additions & 15 deletions cmd/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,18 +152,3 @@ func outputURL(name string) error {
color.Green("Join the network by registering your Darknode at %s", url)
return util.OpenInBrowser(url)
}

func ipfsUrl(network darknode.Network) string {
switch network {
case darknode.Mainnet:
panic("unsupported")
case darknode.Chaosnet:
return "http://157.245.76.68:8080/ipns/QmVq3uLmSpxQoz7Zk7RBaeiBb1DVaKVcCSkPGZKG9xbqvy"
case darknode.Testnet:
return "http://178.128.49.72:8080/ipns/QmU955UGWJFbnEJZMHszhWTP9YBiaxqs2g4Hiw2AP3jXwn"
case darknode.Devnet:
return "http://178.128.49.72:8080/ipns/Qma5uQ7HL87FbuDQZhvQQzc4wyoXY4P7YfKRSCoBy6qgFv"
default:
panic("unknown network")
}
}
13 changes: 7 additions & 6 deletions darknode/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (
// with real-world incentives and punishments.
Chaosnet = Network("chaosnet")

// Mainnet is production network.
// Mainnet is the production network.
Mainnet = Network("mainnet")
)

Expand All @@ -47,7 +47,8 @@ func (network Network) BootstrapNodes() []addr.MultiAddress {
bootstraps := make([]addr.MultiAddress, 0, 16)
switch network {
case Mainnet:
panic("unimplemented")
b1, _ := addr.NewSignedMultiAddressFromString("/ip4/63.34.3.233/tcp/18514/ren/8MHeT3SETNbiYLDNCWeJfgH7WZGxp2", "g6WQ7vT1Oa3bRn2IfrsHEaQsQB+ukublxc3VcQvKuEkia/m8ozdAQ+ae7+rJXgv9Xa7gK53sgGK0IWNa9dhUTQA=")
bootstraps = append(bootstraps, b1)
case Chaosnet:
b1, _ := addr.NewSignedMultiAddressFromString("/ip4/3.115.117.251/tcp/18514/ren/8MGrkr3CCG5gxnipWD5RUc8BMQnU1s", "3w8PoELIeSh0sqcb6qONy1FNgSIgP9hELVh44D/IE0saY518C9vWvBYSQn4xUmYRb7Y+nYNPY54NoH1y0zMnXAE=")
b2, _ := addr.NewSignedMultiAddressFromString("/ip4/18.182.28.215/tcp/18514/ren/8MGjmhtNxsqT4NphYt3usvJBXqVTeS", "YntncxzVBMHA+QNwgkdAQc95gSoWXrdf7r1T38+rtYkuCud5EkV7tWy0GDLeSKCvEuOpVtdPFlaVHXQyYNPwVAA=")
Expand Down Expand Up @@ -96,13 +97,13 @@ func (network Network) BootstrapNodes() []addr.MultiAddress {
func (network Network) ProtocolAddr() common.Address {
switch network {
case Mainnet:
panic("unimplemented")
return common.HexToAddress("0xc25167fFa19B4d9d03c7d5aa4682c7063F345b66")
case Chaosnet:
return common.HexToAddress("0xeF4de0E97D92757520D78c4d49d8151964f6a85B")
return common.HexToAddress("0xf61e97c464ec0cf48b33262c3a1ef42114275144")
case Testnet:
return common.HexToAddress("0x8E28748620EA6f1285761AF41f311Cf6d05b188B")
return common.HexToAddress("0x59e23c087cA9bd9ce162875811CD6e99134D6d0F")
case Devnet:
return common.HexToAddress("0x1deb773b50b66b0e65e62e41380355a1a2bed2e1")
return common.HexToAddress("0x5045E727D9D9AcDe1F6DCae52B078EC30dC95455")
default:
panic("unknown network")
}
Expand Down
8 changes: 2 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Z
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY=
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg=
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-github v17.0.0+incompatible h1:N0LgJ1j65A7kfXrZnUDaYCs/Sf4rEjNlfyDHW9dolSY=
github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ=
Expand Down Expand Up @@ -198,6 +199,7 @@ github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1Cpa
github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
github.com/onsi/gomega v1.6.0 h1:8XTW0fcJZEq9q+Upcyws4JSGua2MFysCL5xkaSgHc+M=
github.com/onsi/gomega v1.6.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
github.com/onsi/gomega v1.7.0 h1:XPnZz8VVBHjVsy1vzJmRwIcSwiUO+JFfrv/xGiigmME=
github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
github.com/oschwald/maxminddb-golang v1.3.1/go.mod h1:3jhIUymTJ5VREKyIhWm66LJiQt04F0UCDdodShpjWsY=
Expand All @@ -218,13 +220,10 @@ github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
github.com/prometheus/tsdb v0.10.0 h1:If5rVCMTp6W2SiRAQFlbpJNgVlgMEd+U2GZckwK38ic=
github.com/prometheus/tsdb v0.10.0/go.mod h1:oi49uRhEe9dPUTlS3JRZOwJuVi6tmh10QSgwXEyGCt4=
github.com/renproject/aw v0.2.4 h1:kOJVNHs28B//5wY1CesC2IPwGYnHZP8H9XtExCa4N1Y=
github.com/renproject/aw v0.2.4/go.mod h1:I3azBybw/W3wWC4/xRxgZFFQrAshVgnUWUqUOSeESWE=
github.com/renproject/aw v0.3.7 h1:KRqeAs/ALx2EtdCHH5PqVe+tpSTclOxUDexN7O4NndI=
github.com/renproject/aw v0.3.7/go.mod h1:CpgAzPcLoCoOEf9HsMMhVtWXuIGTZ1eqAGSPegmj5YI=
github.com/renproject/id v0.1.1 h1:KaV31Xp7SSlyUs5O0vHIw9rhhzrJ0lTOkQXVgbgyPEU=
github.com/renproject/id v0.1.1/go.mod h1:i4OJzgjl4XLcU7nfU9UshX7PaBVpnTk3gEVj8dKa6f8=
github.com/renproject/kv v1.0.0/go.mod h1:B+LKu5xLj9t65LrbsSyzTcgLcPdWCd0qxFEtNB7NRo8=
github.com/renproject/kv v1.0.2 h1:0t8FYMPBQnzwN/DrlHN1MLvRTaN5U5Q8USoMa7gkwo8=
github.com/renproject/kv v1.0.2/go.mod h1:B+LKu5xLj9t65LrbsSyzTcgLcPdWCd0qxFEtNB7NRo8=
github.com/renproject/kv v1.1.0 h1:xaEVeieSSuJrTFj/uvPveyB/gLqEqurJhQLoOKJF8/s=
Expand Down Expand Up @@ -287,10 +286,7 @@ golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnf
golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 h1:ObdrDkeb4kJdCP557AjRjq69pTHfNouLtWZG7j9rPN8=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191112222119-e1110fd1c708 h1:pXVtWnwHkrWD9ru3sDxY/qFK/bfc0egRovX91EjWjf4=
golang.org/x/crypto v0.0.0-20191112222119-e1110fd1c708/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
Expand Down

0 comments on commit d9730c0

Please sign in to comment.