Merge pull request #11 from coinbase/patrick/add-versioning-info
[Services] Add versioning info
This commit is contained in:
commit
ba9d9ce367
5 changed files with 28 additions and 6 deletions
|
@ -50,7 +50,7 @@ jobs:
|
||||||
name: default
|
name: default
|
||||||
steps:
|
steps:
|
||||||
- *fast-checkout
|
- *fast-checkout
|
||||||
- run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.27.0
|
- run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.30.0
|
||||||
- run: make lint
|
- run: make lint
|
||||||
check-license:
|
check-license:
|
||||||
executor:
|
executor:
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -44,7 +44,7 @@ check-comments:
|
||||||
${GOLINT_CMD} -set_exit_status ${GO_FOLDERS} .
|
${GOLINT_CMD} -set_exit_status ${GO_FOLDERS} .
|
||||||
|
|
||||||
lint: | check-comments
|
lint: | check-comments
|
||||||
golangci-lint run -v -E ${LINT_SETTINGS},gomnd
|
golangci-lint run --timeout 2m0s -v -E ${LINT_SETTINGS},gomnd
|
||||||
|
|
||||||
add-license:
|
add-license:
|
||||||
${ADDLICENCE_SCRIPT} .
|
${ADDLICENCE_SCRIPT} .
|
||||||
|
|
|
@ -87,8 +87,9 @@ func (s *NetworkAPIService) NetworkOptions(
|
||||||
) (*types.NetworkOptionsResponse, *types.Error) {
|
) (*types.NetworkOptionsResponse, *types.Error) {
|
||||||
return &types.NetworkOptionsResponse{
|
return &types.NetworkOptionsResponse{
|
||||||
Version: &types.Version{
|
Version: &types.Version{
|
||||||
RosettaVersion: "1.4.2",
|
RosettaVersion: RosettaVersion,
|
||||||
NodeVersion: "0.0.1",
|
NodeVersion: NodeVersion,
|
||||||
|
MiddlewareVersion: &MiddlewareVersion,
|
||||||
},
|
},
|
||||||
Allow: &types.Allow{
|
Allow: &types.Allow{
|
||||||
OperationStatuses: bitcoin.OperationStatuses,
|
OperationStatuses: bitcoin.OperationStatuses,
|
||||||
|
|
|
@ -27,10 +27,12 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
middlewareVersion = "0.0.2"
|
||||||
defaultNetworkOptions = &types.NetworkOptionsResponse{
|
defaultNetworkOptions = &types.NetworkOptionsResponse{
|
||||||
Version: &types.Version{
|
Version: &types.Version{
|
||||||
RosettaVersion: "1.4.2",
|
RosettaVersion: "1.4.4",
|
||||||
NodeVersion: "0.0.1",
|
NodeVersion: "0.20.1",
|
||||||
|
MiddlewareVersion: &middlewareVersion,
|
||||||
},
|
},
|
||||||
Allow: &types.Allow{
|
Allow: &types.Allow{
|
||||||
OperationStatuses: bitcoin.OperationStatuses,
|
OperationStatuses: bitcoin.OperationStatuses,
|
||||||
|
|
|
@ -22,6 +22,25 @@ import (
|
||||||
"github.com/coinbase/rosetta-sdk-go/types"
|
"github.com/coinbase/rosetta-sdk-go/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
// RosettaVersion is the version of the
|
||||||
|
// Rosetta Specification we are using.
|
||||||
|
RosettaVersion = "1.4.4"
|
||||||
|
|
||||||
|
// NodeVersion is the version of
|
||||||
|
// bitcoin core we are using.
|
||||||
|
NodeVersion = "0.20.1"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
// MiddlewareVersion is the version
|
||||||
|
// of rosetta-bitcoin. We set this as a
|
||||||
|
// variable instead of a constant because
|
||||||
|
// we typically need the pointer of this
|
||||||
|
// value.
|
||||||
|
MiddlewareVersion = "0.0.2"
|
||||||
|
)
|
||||||
|
|
||||||
// Client is used by the servicers to get Peer information
|
// Client is used by the servicers to get Peer information
|
||||||
// and to submit transactions.
|
// and to submit transactions.
|
||||||
type Client interface {
|
type Client interface {
|
||||||
|
|
Loading…
Reference in a new issue