Skip to content

Commit

Permalink
Begin module dev cycles.
Browse files Browse the repository at this point in the history
Upcoming changes constitute breaking public API changes to both the
client and types modules, therefore this bumps the version numbers of
both modules and adds local replacements to go.mod files such that the
new versions can be used before they are publicly tagged.
  • Loading branch information
jholdstock committed May 29, 2024
1 parent 94c6f98 commit d6258db
Show file tree
Hide file tree
Showing 18 changed files with 35 additions and 34 deletions.
4 changes: 2 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2022-2023 The Decred developers
// Copyright (c) 2022-2024 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand All @@ -18,7 +18,7 @@ import (

"github.com/decred/dcrd/txscript/v4/stdaddr"
"github.com/decred/slog"
"github.com/decred/vspd/types/v2"
"github.com/decred/vspd/types/v3"
)

type Client struct {
Expand Down
2 changes: 1 addition & 1 deletion client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"testing"

"github.com/decred/slog"
"github.com/decred/vspd/types/v2"
"github.com/decred/vspd/types/v3"
)

// TestErrorDetails ensures errors returned by client.do contain adequate
Expand Down
6 changes: 4 additions & 2 deletions client/go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
module github.com/decred/vspd/client/v3
module github.com/decred/vspd/client/v4

go 1.19

require (
github.com/decred/dcrd/txscript/v4 v4.1.0
github.com/decred/slog v1.2.0
github.com/decred/vspd/types/v2 v2.1.0
github.com/decred/vspd/types/v3 v3.0.0
)

replace github.com/decred/vspd/types/v3 => ../types

require (
github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412 // indirect
github.com/dchest/siphash v1.2.3 // indirect
Expand Down
2 changes: 0 additions & 2 deletions client/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ github.com/decred/dcrd/wire v1.6.0 h1:YOGwPHk4nzGr6OIwUGb8crJYWDiVLpuMxfDBCCF7s/
github.com/decred/dcrd/wire v1.6.0/go.mod h1:XQ8Xv/pN/3xaDcb7sH8FBLS9cdgVctT7HpBKKGsIACk=
github.com/decred/slog v1.2.0 h1:soHAxV52B54Di3WtKLfPum9OFfWqwtf/ygf9njdfnPM=
github.com/decred/slog v1.2.0/go.mod h1:kVXlGnt6DHy2fV5OjSeuvCJ0OmlmTF6LFpEPMu/fOY0=
github.com/decred/vspd/types/v2 v2.1.0 h1:cUVlmHPeLVsksPRnr2WHsmC2t1Skl6g1WH0HmpcPS7w=
github.com/decred/vspd/types/v2 v2.1.0/go.mod h1:2xnNqedkt9GuL+pK8uIzDxqYxFlwLRflYFJH64b76n0=
github.com/klauspost/cpuid/v2 v2.2.5 h1:0E5MSMDEoAulmXNFquVs//DdoomxaoTY1kUhbc/qbZg=
github.com/klauspost/cpuid/v2 v2.2.5/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
Expand Down
4 changes: 2 additions & 2 deletions cmd/v3tool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"time"

"github.com/decred/slog"
"github.com/decred/vspd/client/v3"
"github.com/decred/vspd/client/v4"
"github.com/decred/vspd/internal/config"
"github.com/decred/vspd/internal/signal"
"github.com/decred/vspd/types/v2"
"github.com/decred/vspd/types/v3"
)

const (
Expand Down
9 changes: 7 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ require (
github.com/decred/dcrd/txscript/v4 v4.1.0
github.com/decred/dcrd/wire v1.6.0
github.com/decred/slog v1.2.0
github.com/decred/vspd/client/v3 v3.0.0
github.com/decred/vspd/types/v2 v2.1.0
github.com/decred/vspd/client/v4 v4.0.0
github.com/decred/vspd/types/v3 v3.0.0
github.com/dustin/go-humanize v1.0.1
github.com/gin-gonic/gin v1.10.0
github.com/gorilla/sessions v1.2.2
Expand All @@ -28,6 +28,11 @@ require (
go.etcd.io/bbolt v1.3.9
)

replace (
github.com/decred/vspd/client/v4 => ./client
github.com/decred/vspd/types/v3 => ./types
)

require (
github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412 // indirect
github.com/bytedance/sonic v1.11.6 // indirect
Expand Down
4 changes: 0 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ github.com/decred/dcrd/wire v1.6.0 h1:YOGwPHk4nzGr6OIwUGb8crJYWDiVLpuMxfDBCCF7s/
github.com/decred/dcrd/wire v1.6.0/go.mod h1:XQ8Xv/pN/3xaDcb7sH8FBLS9cdgVctT7HpBKKGsIACk=
github.com/decred/slog v1.2.0 h1:soHAxV52B54Di3WtKLfPum9OFfWqwtf/ygf9njdfnPM=
github.com/decred/slog v1.2.0/go.mod h1:kVXlGnt6DHy2fV5OjSeuvCJ0OmlmTF6LFpEPMu/fOY0=
github.com/decred/vspd/client/v3 v3.0.0 h1:4gAGDTeIU0r4quCxmV5Ez7T2J+P+OLPSibkCF+/Yb6w=
github.com/decred/vspd/client/v3 v3.0.0/go.mod h1:5pfPvIa6V38AmophMrKUCl3KMpEIxcltWtgL2R+wsW8=
github.com/decred/vspd/types/v2 v2.1.0 h1:cUVlmHPeLVsksPRnr2WHsmC2t1Skl6g1WH0HmpcPS7w=
github.com/decred/vspd/types/v2 v2.1.0/go.mod h1:2xnNqedkt9GuL+pK8uIzDxqYxFlwLRflYFJH64b76n0=
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uqxgUFjbI0=
Expand Down
2 changes: 1 addition & 1 deletion internal/webapi/getfeeaddress.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/decred/dcrd/dcrutil/v4"
"github.com/decred/vspd/database"
"github.com/decred/vspd/rpc"
"github.com/decred/vspd/types/v2"
"github.com/decred/vspd/types/v3"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/binding"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/webapi/middleware.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2023 The Decred developers
// Copyright (c) 2020-2024 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand All @@ -15,7 +15,7 @@ import (

"github.com/decred/dcrd/blockchain/stake/v5"
"github.com/decred/vspd/rpc"
"github.com/decred/vspd/types/v2"
"github.com/decred/vspd/types/v3"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/binding"
"github.com/gorilla/sessions"
Expand Down
4 changes: 2 additions & 2 deletions internal/webapi/payfee.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 The Decred developers
// Copyright (c) 2021-2024 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand All @@ -15,7 +15,7 @@ import (
"github.com/decred/dcrd/txscript/v4/stdaddr"
"github.com/decred/vspd/database"
"github.com/decred/vspd/rpc"
"github.com/decred/vspd/types/v2"
"github.com/decred/vspd/types/v3"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/binding"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/webapi/setaltsignaddr.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 The Decred developers
// Copyright (c) 2021-2024 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand All @@ -11,7 +11,7 @@ import (
"github.com/decred/dcrd/txscript/v4/stdaddr"
"github.com/decred/vspd/database"
"github.com/decred/vspd/rpc"
"github.com/decred/vspd/types/v2"
"github.com/decred/vspd/types/v3"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/binding"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/webapi/setaltsignaddr_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 The Decred developers
// Copyright (c) 2021-2024 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand All @@ -22,7 +22,7 @@ import (
"github.com/decred/slog"
"github.com/decred/vspd/database"
"github.com/decred/vspd/internal/config"
"github.com/decred/vspd/types/v2"
"github.com/decred/vspd/types/v3"
"github.com/gin-gonic/gin"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/webapi/setvotechoices.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2023 The Decred developers
// Copyright (c) 2020-2024 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand All @@ -11,7 +11,7 @@ import (

"github.com/decred/vspd/database"
"github.com/decred/vspd/rpc"
"github.com/decred/vspd/types/v2"
"github.com/decred/vspd/types/v3"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/binding"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/webapi/ticketstatus.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2022 The Decred developers
// Copyright (c) 2020-2024 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand All @@ -8,7 +8,7 @@ import (
"time"

"github.com/decred/vspd/database"
"github.com/decred/vspd/types/v2"
"github.com/decred/vspd/types/v3"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/binding"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/webapi/vspinfo.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2023 The Decred developers
// Copyright (c) 2020-2024 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand All @@ -8,7 +8,7 @@ import (
"time"

"github.com/decred/vspd/internal/version"
"github.com/decred/vspd/types/v2"
"github.com/decred/vspd/types/v3"
"github.com/gin-gonic/gin"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/webapi/webapi.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2023 The Decred developers
// Copyright (c) 2020-2024 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand All @@ -21,7 +21,7 @@ import (
"github.com/decred/vspd/database"
"github.com/decred/vspd/internal/config"
"github.com/decred/vspd/rpc"
"github.com/decred/vspd/types/v2"
"github.com/decred/vspd/types/v3"
"github.com/dustin/go-humanize"
"github.com/gin-gonic/gin"
"github.com/gorilla/sessions"
Expand Down
2 changes: 1 addition & 1 deletion types/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/decred/vspd/types/v2
module github.com/decred/vspd/types/v3

go 1.19
2 changes: 1 addition & 1 deletion types/types.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2023 The Decred developers
// Copyright (c) 2020-2024 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand Down

0 comments on commit d6258db

Please sign in to comment.