Skip to content

Commit

Permalink
Add version in module name (#22)
Browse files Browse the repository at this point in the history
* Add version in module name

* Fix internal imports
  • Loading branch information
quentinlesceller authored Sep 16, 2020
1 parent b00362d commit eb169fb
Show file tree
Hide file tree
Showing 28 changed files with 43 additions and 39 deletions.
4 changes: 2 additions & 2 deletions client/node_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package client
import (
"fmt"

"github.com/blockcypher/libgrin/api"
"github.com/blockcypher/libgrin/core/consensus"
"github.com/blockcypher/libgrin/v4/api"
"github.com/blockcypher/libgrin/v4/core/consensus"
)

// NodeAPI struct
Expand Down
4 changes: 2 additions & 2 deletions client/node_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"strconv"
"testing"

"github.com/blockcypher/libgrin/api"
"github.com/blockcypher/libgrin/client"
"github.com/blockcypher/libgrin/v4/api"
"github.com/blockcypher/libgrin/v4/client"
"github.com/gorilla/mux"
log "github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
Expand Down
4 changes: 2 additions & 2 deletions client/owner_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (

"github.com/google/uuid"

"github.com/blockcypher/libgrin/core"
"github.com/blockcypher/libgrin/libwallet"
"github.com/blockcypher/libgrin/v4/core"
"github.com/blockcypher/libgrin/v4/libwallet"
log "github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion client/rpchttp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"testing"

"github.com/blockcypher/libgrin/client"
"github.com/blockcypher/libgrin/v4/client"
"github.com/stretchr/testify/assert"
)

Expand Down
6 changes: 3 additions & 3 deletions client/secure_owner_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"errors"
"strings"

"github.com/blockcypher/libgrin/libwallet"
"github.com/blockcypher/libgrin/libwallet/slatepack"
"github.com/blockcypher/libgrin/libwallet/slateversions"
"github.com/blockcypher/libgrin/v4/libwallet"
"github.com/blockcypher/libgrin/v4/libwallet/slatepack"
"github.com/blockcypher/libgrin/v4/libwallet/slateversions"
"github.com/btcsuite/btcd/btcec"
"github.com/google/uuid"

Expand Down
2 changes: 1 addition & 1 deletion core/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

package core

import "github.com/blockcypher/libgrin/core/pow"
import "github.com/blockcypher/libgrin/v4/core/pow"

// BlockHeader is a block header, fairly standard compared to other blockchains.
type BlockHeader struct {
Expand Down
4 changes: 2 additions & 2 deletions core/pow.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
package core

import (
"github.com/blockcypher/libgrin/core/consensus"
"github.com/blockcypher/libgrin/core/pow"
"github.com/blockcypher/libgrin/v4/core/consensus"
"github.com/blockcypher/libgrin/v4/core/pow"
)

const maxSols uint32 = 10
Expand Down
2 changes: 1 addition & 1 deletion core/pow/cuckaroo.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package pow
import (
"errors"

"github.com/blockcypher/libgrin/core/consensus"
"github.com/blockcypher/libgrin/v4/core/consensus"
)

// https://github.com/mimblewimble/grin/blob/master/core/src/pow/cuckaroo.rs
Expand Down
2 changes: 1 addition & 1 deletion core/pow/cuckaroo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package pow
import (
"testing"

"github.com/blockcypher/libgrin/core/consensus"
"github.com/blockcypher/libgrin/v4/core/consensus"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion core/pow/cuckarood.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package pow
import (
"errors"

"github.com/blockcypher/libgrin/core/consensus"
"github.com/blockcypher/libgrin/v4/core/consensus"
)

// NewCuckaroodCtx instantiates a new CuckaroodContext as a PowContext. Note that this can't
Expand Down
2 changes: 1 addition & 1 deletion core/pow/cuckarood_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package pow
import (
"testing"

"github.com/blockcypher/libgrin/core/consensus"
"github.com/blockcypher/libgrin/v4/core/consensus"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion core/pow/cuckaroom.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package pow
import (
"errors"

"github.com/blockcypher/libgrin/core/consensus"
"github.com/blockcypher/libgrin/v4/core/consensus"
)

// NewCuckaroomCtx instantiates a new CuckaroomContext as a PowContext. Note that this can't
Expand Down
2 changes: 1 addition & 1 deletion core/pow/cuckaroom_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package pow
import (
"testing"

"github.com/blockcypher/libgrin/core/consensus"
"github.com/blockcypher/libgrin/v4/core/consensus"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion core/pow/cuckarooz.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package pow
import (
"errors"

"github.com/blockcypher/libgrin/core/consensus"
"github.com/blockcypher/libgrin/v4/core/consensus"
)

// NewCuckaroozCtx instantiates a new CuckaroozContext as a PowContext. Note that this can't
Expand Down
2 changes: 1 addition & 1 deletion core/pow/cuckarooz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package pow
import (
"testing"

"github.com/blockcypher/libgrin/core/consensus"
"github.com/blockcypher/libgrin/v4/core/consensus"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion core/pow/cuckatoo.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package pow
import (
"errors"

"github.com/blockcypher/libgrin/core/consensus"
"github.com/blockcypher/libgrin/v4/core/consensus"
)

// NewCuckatooCtx instantiates a new CuckatooContext as a PowContext
Expand Down
2 changes: 1 addition & 1 deletion core/pow/cuckatoo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package pow
import (
"testing"

"github.com/blockcypher/libgrin/core/consensus"
"github.com/blockcypher/libgrin/v4/core/consensus"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion core/pow/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"math/big"
"strconv"

"github.com/blockcypher/libgrin/core/consensus"
"github.com/blockcypher/libgrin/v4/core/consensus"
)

// PowContext is a generic interface for a solver/verifier providing common
Expand Down
4 changes: 2 additions & 2 deletions core/pow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (
"encoding/binary"
"testing"

"github.com/blockcypher/libgrin/core/pow"
"github.com/blockcypher/libgrin/v4/core/pow"

"github.com/blockcypher/libgrin/core/consensus"
"github.com/blockcypher/libgrin/v4/core/consensus"
"github.com/stretchr/testify/assert"
)

Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
module github.com/blockcypher/libgrin
module github.com/blockcypher/libgrin/v4

go 1.14

require (
github.com/blockcypher/libgrin v2.0.0+incompatible
github.com/btcsuite/btcd v0.20.1-beta
github.com/btcsuite/btcutil v1.0.2
github.com/google/uuid v1.1.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII=
github.com/blockcypher/libgrin v2.0.0+incompatible h1:ESNyziuY5NjwXmYW4H8pfvZCfQvm8EtEUCIWQBN6/8s=
github.com/blockcypher/libgrin v2.0.0+incompatible/go.mod h1:v+0kVsZz7bCDN4FZmDlKjVtU6SWvX/7EUJDadaavYz4=
github.com/btcsuite/btcd v0.20.1-beta h1:Ik4hyJqN8Jfyv3S4AGBOmyouMsYE3EdYODkMbQjwPGw=
github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ=
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA=
Expand Down
5 changes: 3 additions & 2 deletions libwallet/address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ package libwallet_test

import (
"fmt"
"github.com/blockcypher/libgrin/libwallet"
"github.com/stretchr/testify/assert"
"testing"

"github.com/blockcypher/libgrin/v4/libwallet"
"github.com/stretchr/testify/assert"
)

func TestOnionV3Conversion(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions libwallet/api_impl_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
package libwallet

import (
"github.com/blockcypher/libgrin/core"
"github.com/blockcypher/libgrin/keychain"
"github.com/blockcypher/libgrin/libwallet/slatepack"
"github.com/blockcypher/libgrin/libwallet/slateversions"
"github.com/blockcypher/libgrin/v4/core"
"github.com/blockcypher/libgrin/v4/keychain"
"github.com/blockcypher/libgrin/v4/libwallet/slatepack"
"github.com/blockcypher/libgrin/v4/libwallet/slateversions"
)

// SendTXArgs Send TX API Args
Expand Down
2 changes: 1 addition & 1 deletion libwallet/slate.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"strconv"
"strings"

"github.com/blockcypher/libgrin/core"
"github.com/blockcypher/libgrin/v4/core"
"github.com/google/uuid"
"github.com/mitchellh/mapstructure"
)
Expand Down
2 changes: 1 addition & 1 deletion libwallet/slatepack/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"encoding/json"
"errors"

"github.com/blockcypher/libgrin/core/consensus"
"github.com/blockcypher/libgrin/v4/core/consensus"
"github.com/btcsuite/btcutil/bech32"
)

Expand Down
2 changes: 1 addition & 1 deletion libwallet/slateversions/v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package slateversions

import (
"github.com/blockcypher/libgrin/core"
"github.com/blockcypher/libgrin/v4/core"
"github.com/google/uuid"
)

Expand Down
2 changes: 1 addition & 1 deletion libwallet/slateversions/v4.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"strconv"
"strings"

"github.com/blockcypher/libgrin/core"
"github.com/blockcypher/libgrin/v4/core"

"github.com/google/uuid"
)
Expand Down
4 changes: 2 additions & 2 deletions libwallet/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"encoding/json"
"time"

"github.com/blockcypher/libgrin/core"
"github.com/blockcypher/libgrin/keychain"
"github.com/blockcypher/libgrin/v4/core"
"github.com/blockcypher/libgrin/v4/keychain"
"github.com/google/uuid"
)

Expand Down

0 comments on commit eb169fb

Please sign in to comment.