Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #600 from vegaprotocol/release/v0.17.0
Browse files Browse the repository at this point in the history
Release 0.17.0
  • Loading branch information
ValentinTrinque authored May 9, 2023
2 parents 83319c2 + 2fff110 commit 0f4c912
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 51 deletions.
16 changes: 4 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
# Changelog

## Unreleased (0.17.0)
## 0.17.0

### 🚨 Breaking changes
- [](https://github.com/vegaprotocol/vegawallet/pull/) -
**This repository and software are no longer maintained. See the [core repository](https://github.com/vegaprotocol/vega/releases) instead.**

### 🗑️ Deprecation
- [](https://github.com/vegaprotocol/vegawallet/pull/) -
Only compatible with 0.53.0.

### 🛠 Improvements
- [](https://github.com/vegaprotocol/vegawallet/pull/) -

### 🔥 Removal
- [](https://github.com/vegaprotocol/vegawallet/pull/) -

### 🐛 Fixes
- [](https://github.com/vegaprotocol/vegawallet/pull/) -
- [593](https://github.com/vegaprotocol/vegawallet/issues/593) - Tell users to aim for the core repository

## 0.16.1

Expand Down
9 changes: 4 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -162,18 +162,17 @@ pipeline {
'''
}
}
stage('LNL System Tests') {
stage('System Tests Network Smoke') {
steps {
script {
systemTestsLNL ignoreFailure: !isPRBuild(),
systemTestsCapsule ignoreFailure: !isPRBuild(),
vegaCore: params.VEGA_CORE_BRANCH,
dataNode: params.DATA_NODE_BRANCH,
vegawallet: commitHash,
ethereumEventForwarder: params.ETHEREUM_EVENT_FORWARDER_BRANCH,
devopsInfra: params.DEVOPS_INFRA_BRANCH,
vegatools: params.VEGATOOLS_BRANCH,
systemTests: params.SYSTEM_TESTS_BRANCH,
protos: params.PROTOS_BRANCH
protos: params.PROTOS_BRANCH,
testMark: "network_infra_smoke"
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Vega Wallet

**This repository and software are no longer maintained. See the [core repository](https://github.com/vegaprotocol/vega/releases) instead.**

`vegawallet` is the command line interface for running a Wallet service, implemented in Go. It is used to sign transactions for use on [Vega](#about-vega). Vega Wallet creates and manages HD wallets with ed25519 key pairs.

## Documentation
Expand Down
39 changes: 17 additions & 22 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package cmd

import (
"context"
"fmt"
"io"
"os"
"time"

"code.vegaprotocol.io/vegawallet/cmd/cli"
"code.vegaprotocol.io/vegawallet/cmd/flags"
Expand All @@ -17,35 +15,29 @@ import (
"github.com/spf13/cobra"
)

var (
requestTimeout = 30 * time.Second
var rootExamples = cli.Examples(`
# Specify a custom Vega home directory
vegawallet --home PATH_TO_DIR COMMAND
rootExamples = cli.Examples(`
# Specify a custom Vega home directory
vegawallet --home PATH_TO_DIR COMMAND
# Change the output to JSON
vegawallet --output json COMMAND
# Change the output to JSON
vegawallet --output json COMMAND
# Disable colors on output using environment variable
NO_COLOR=1 vegawallet COMMAND
# Disable colors on output using environment variable
NO_COLOR=1 vegawallet COMMAND
# Disable the verification of the software version
vegawallet --no-version-check COMMAND
`)
)
# Disable the verification of the software version
vegawallet --no-version-check COMMAND
`)

type CheckVersionHandler func() (*semver.Version, error)

func NewCmdRoot(w io.Writer) *cobra.Command {
vh := func() (*semver.Version, error) {
ctx, cancel := context.WithTimeout(context.Background(), requestTimeout)
defer cancel()
v, err := version.Check(vgversion.BuildGithubReleasesRequestFrom(ctx, version.ReleasesAPI), version.Version)
v, err := vgversion.NewVersionFromString(version.Version)
if err != nil {
return nil, fmt.Errorf("couldn't check latest releases: %w", err)
}
return v, nil
return v.Version, nil
}

return BuildCmdRoot(w, vh)
Expand Down Expand Up @@ -88,8 +80,11 @@ func BuildCmdRoot(w io.Writer, vh CheckVersionHandler) *cobra.Command {
}

if v != nil {
p.Text("Version ").SuccessText(v.String()).Text(" is available. Your current version is ").DangerText(version.Version).Text(".").NextLine()
p.Text("Download the latest version at: ").Underline(vgversion.GetGithubReleaseURL(version.ReleasesURL, v)).NextSection()
p.DangerText("The version ").DangerText(v.String()).DangerText(" is outdated.").NextLine()
p.DangerText("The vegawallet repository is no longer updated and won't distribute the software updates anymore.").NextLine()
p.DangerText("The vegawallet software in now distributed from the \"vega\" repository.").NextLine()
p.DangerText("Download the software matching the current version of mainnet at: ").Underline("https://github.com/vegaprotocol/vega/releases").NextLine()
p.DangerBold("If you do not update, the wallet might fail the transaction submissions, due to incompatibilities.").NextSection()
}
}
return nil
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo
cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk=
cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
code.vegaprotocol.io/protos v0.51.2-0.20220613090029-59599245eb97 h1:FZfCYPAvt/n1nYYJ/MS2APU36sJ3JLkX35KUzQMm1Vo=
code.vegaprotocol.io/protos v0.51.2-0.20220613090029-59599245eb97/go.mod h1:4BqwDw6jhc/mnwbXq8ZFUtYBFCnk8tBW6zuPsBt8OrQ=
code.vegaprotocol.io/protos v0.52.0 h1:g0V1wThTy6Mc9nE3AFcLJnMHrBe4mg3xmvTUhnXfd4s=
code.vegaprotocol.io/protos v0.52.0/go.mod h1:4BqwDw6jhc/mnwbXq8ZFUtYBFCnk8tBW6zuPsBt8OrQ=
code.vegaprotocol.io/shared v0.0.0-20220614080106-5c97205b0d92 h1:BjS0uyoTUFgbBNY3clzSj0fDA1rAPLsV5dNMwfpvSNg=
Expand Down
10 changes: 1 addition & 9 deletions version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@ package version

import (
vgversion "code.vegaprotocol.io/shared/libs/version"

"github.com/blang/semver/v4"
)

const (
ReleasesAPI = "https://api.github.com/repos/vegaprotocol/vegawallet/releases"
ReleasesURL = "https://github.com/vegaprotocol/vegawallet/releases"
defaultVersionHash = "unknown"
defaultVersion = "v0.16.1"
defaultVersion = "v0.17.0"
)

var (
Expand Down Expand Up @@ -38,7 +34,3 @@ func GetVersionInfo() *GetVersionResponse {
GitHash: VersionHash,
}
}

func Check(releasesGetterFn vgversion.ReleasesGetter, currentRelease string) (*semver.Version, error) {
return vgversion.Check(releasesGetterFn, currentRelease)
}
2 changes: 1 addition & 1 deletion wallet/store/v1/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func initialiseStore(t *testing.T, walletsDir string) *storev1.Store {

func newHDWalletWithKeys(t *testing.T) *wallet.HDWallet {
t.Helper()
w, _, err := wallet.NewHDWallet(fmt.Sprintf("my-wallet-%v", time.Now().UnixNano()))
w, _, err := wallet.NewHDWallet(fmt.Sprintf("my-wallet-%v-%s", time.Now().UnixNano(), vgrand.RandomStr(2)))
if err != nil {
t.Fatalf("couldn't create wallet: %v", err)
}
Expand Down

0 comments on commit 0f4c912

Please sign in to comment.