Skip to content

Commit

Permalink
🚚 [MIGRATION] Use poly-go/pkg instead of [pkg].
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
  • Loading branch information
ggwpez committed Nov 16, 2021
1 parent 5ad1b0e commit 44d1011
Show file tree
Hide file tree
Showing 143 changed files with 181 additions and 181 deletions.
2 changes: 1 addition & 1 deletion apps/payment/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (

"perun.network/go-perun/channel"
"perun.network/go-perun/channel/test"
pkgtest "perun.network/go-perun/pkg/test"
wallettest "perun.network/go-perun/wallet/test"
pkgtest "polycry.pt/poly-go/test"
)

func TestApp_Def(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion apps/payment/randomizer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

_ "perun.network/go-perun/backend/sim" // backend init
"perun.network/go-perun/channel"
pkgtest "perun.network/go-perun/pkg/test"
pkgtest "polycry.pt/poly-go/test"
)

func TestRandomizer(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion apps/payment/resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (

_ "perun.network/go-perun/backend/sim" // backend init
"perun.network/go-perun/channel"
pkgtest "perun.network/go-perun/pkg/test"
"perun.network/go-perun/wallet/test"
pkgtest "polycry.pt/poly-go/test"
)

func TestResolver(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/channel/adjudicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"perun.network/go-perun/channel"
"perun.network/go-perun/client"
"perun.network/go-perun/log"
psync "perun.network/go-perun/pkg/sync"
psync "polycry.pt/poly-go/sync"
)

// compile time check that we implement the perun adjudicator interface.
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/channel/adjudicator_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"perun.network/go-perun/backend/ethereum/bindings/adjudicator"
"perun.network/go-perun/channel"
channeltest "perun.network/go-perun/channel/test"
pkgtest "perun.network/go-perun/pkg/test"
pkgtest "polycry.pt/poly-go/test"
)

func Test_toEthSubStates(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/channel/adjudicator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
ethwallettest "perun.network/go-perun/backend/ethereum/wallet/test"
"perun.network/go-perun/channel"
channeltest "perun.network/go-perun/channel/test"
pkgtest "perun.network/go-perun/pkg/test"
pkgtest "polycry.pt/poly-go/test"
)

const defaultTxTimeout = 2 * time.Second
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/channel/asset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
ethchannel "perun.network/go-perun/backend/ethereum/channel"
"perun.network/go-perun/backend/ethereum/channel/test"
ethwallettest "perun.network/go-perun/backend/ethereum/wallet/test"
pkgtest "perun.network/go-perun/pkg/test"
pkgtest "polycry.pt/poly-go/test"
)

func TestValidateAssetHolderETH(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions backend/ethereum/channel/backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ import (
ethchanneltest "perun.network/go-perun/backend/ethereum/channel/test"
ethwallettest "perun.network/go-perun/backend/ethereum/wallet/test"
"perun.network/go-perun/channel/test"
iotest "perun.network/go-perun/pkg/io/test"
pkgtest "perun.network/go-perun/pkg/test"
perunwallet "perun.network/go-perun/wallet"
wallettest "perun.network/go-perun/wallet/test"
iotest "polycry.pt/poly-go/io/test"
pkgtest "polycry.pt/poly-go/test"
)

func TestAdjudicator_PureFunctions(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions backend/ethereum/channel/conclude_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (
"perun.network/go-perun/backend/ethereum/wallet/keystore"
"perun.network/go-perun/channel"
channeltest "perun.network/go-perun/channel/test"
"perun.network/go-perun/pkg/errors"
pkgtest "perun.network/go-perun/pkg/test"
"perun.network/go-perun/wallet"
"polycry.pt/poly-go/errors"
pkgtest "polycry.pt/poly-go/test"
)

func TestAdjudicator_ConcludeFinal(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/channel/contractbackend.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (

cherrors "perun.network/go-perun/backend/ethereum/channel/errors"
"perun.network/go-perun/log"
pcontext "perun.network/go-perun/pkg/context"
pcontext "polycry.pt/poly-go/context"
)

// How many blocks we query into the past for events.
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/channel/contractbackend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (
ethchannel "perun.network/go-perun/backend/ethereum/channel"
"perun.network/go-perun/backend/ethereum/channel/test"
ethwallet "perun.network/go-perun/backend/ethereum/wallet"
pkgtest "perun.network/go-perun/pkg/test"
"perun.network/go-perun/wallet"
pkgtest "polycry.pt/poly-go/test"
)

func fromEthAddr(a common.Address) wallet.Address {
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/channel/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
cherrors "perun.network/go-perun/backend/ethereum/channel/errors"
"perun.network/go-perun/client"
"perun.network/go-perun/log"
pcontext "perun.network/go-perun/pkg/context"
pcontext "polycry.pt/poly-go/context"
)

const deployGasLimit = 6600000
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/channel/deploy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/stretchr/testify/assert"
ethchannel "perun.network/go-perun/backend/ethereum/channel"
"perun.network/go-perun/backend/ethereum/channel/test"
pkgtest "perun.network/go-perun/pkg/test"
pkgtest "polycry.pt/poly-go/test"
)

func TestDeployReorgResistance(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions backend/ethereum/channel/funder.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ import (
"perun.network/go-perun/channel"
"perun.network/go-perun/client"
"perun.network/go-perun/log"
pcontext "perun.network/go-perun/pkg/context"
perror "perun.network/go-perun/pkg/errors"
perunwallet "perun.network/go-perun/wallet"
pcontext "polycry.pt/poly-go/context"
perror "polycry.pt/poly-go/errors"
)

type assetHolder struct {
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/channel/funder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ import (
"perun.network/go-perun/backend/ethereum/wallet/keystore"
"perun.network/go-perun/channel"
channeltest "perun.network/go-perun/channel/test"
pkgtest "perun.network/go-perun/pkg/test"
"perun.network/go-perun/wallet"
wallettest "perun.network/go-perun/wallet/test"
pkgtest "polycry.pt/poly-go/test"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/channel/register_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"perun.network/go-perun/backend/ethereum/channel/test"
"perun.network/go-perun/channel"
channeltest "perun.network/go-perun/channel/test"
pkgtest "perun.network/go-perun/pkg/test"
pkgtest "polycry.pt/poly-go/test"
)

func TestAdjudicator_MultipleRegisters(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/channel/reorg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/stretchr/testify/require"

"perun.network/go-perun/backend/ethereum/channel/test"
pkgtest "perun.network/go-perun/pkg/test"
pkgtest "polycry.pt/poly-go/test"
)

// sendTXsBlockLen describes how many blocks the function `sendTXs` will create.
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/channel/test/simulated.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
"perun.network/go-perun/channel"
"perun.network/go-perun/channel/test"
"perun.network/go-perun/log"
"perun.network/go-perun/pkg/sync"
"polycry.pt/poly-go/sync"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/channel/test/simulated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"perun.network/go-perun/backend/ethereum/channel/test"
pkgtest "perun.network/go-perun/pkg/test"
pkgtest "polycry.pt/poly-go/test"
)

// TestSimBackend_AutoMine tests that SimulatedBackend mines blocks after
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/channel/withdraw_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
ethwallet "perun.network/go-perun/backend/ethereum/wallet"
"perun.network/go-perun/channel"
channeltest "perun.network/go-perun/channel/test"
pkgtest "perun.network/go-perun/pkg/test"
pkgtest "polycry.pt/poly-go/test"
)

func TestAdjudicator_MultipleWithdraws_FinalState(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/client/dispute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (
"perun.network/go-perun/client"
clienttest "perun.network/go-perun/client/test"
"perun.network/go-perun/log"
pkgtest "perun.network/go-perun/pkg/test"
"perun.network/go-perun/wire"
pkgtest "polycry.pt/poly-go/test"
)

const twoPartyTestTimeout = 10 * time.Second
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/client/happy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import (
perunclient "perun.network/go-perun/client"
clienttest "perun.network/go-perun/client/test"
"perun.network/go-perun/log"
pkgtest "perun.network/go-perun/pkg/test"
"perun.network/go-perun/wire"
pkgtest "polycry.pt/poly-go/test"
)

func TestHappyAliceBob(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/client/progression_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import (
"perun.network/go-perun/channel"
"perun.network/go-perun/client"
clienttest "perun.network/go-perun/client/test"
pkgtest "perun.network/go-perun/pkg/test"
"perun.network/go-perun/wallet"
"perun.network/go-perun/wire"
pkgtest "polycry.pt/poly-go/test"
)

func TestProgression(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/subscription/eventsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/ethereum/go-ethereum/event"
cherrors "perun.network/go-perun/backend/ethereum/channel/errors"
"perun.network/go-perun/log"
pkgsync "perun.network/go-perun/pkg/sync"
pkgsync "polycry.pt/poly-go/sync"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/subscription/eventsub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ import (
"perun.network/go-perun/backend/ethereum/wallet/keystore"
channeltest "perun.network/go-perun/channel/test"
"perun.network/go-perun/log"
pkgtest "perun.network/go-perun/pkg/test"
wallettest "perun.network/go-perun/wallet/test"
pkgtest "polycry.pt/poly-go/test"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/subscription/resistanteventsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

cherrors "perun.network/go-perun/backend/ethereum/channel/errors"
"perun.network/go-perun/log"
pkgsync "perun.network/go-perun/pkg/sync"
pkgsync "polycry.pt/poly-go/sync"
)

type (
Expand Down
4 changes: 2 additions & 2 deletions backend/ethereum/subscription/resistanteventsub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"perun.network/go-perun/backend/ethereum/channel/test"
"perun.network/go-perun/backend/ethereum/subscription"
"perun.network/go-perun/log"
pctx "perun.network/go-perun/pkg/context"
pkgtest "perun.network/go-perun/pkg/test"
pctx "polycry.pt/poly-go/context"
pkgtest "polycry.pt/poly-go/test"
)

var event = func() *subscription.Event {
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/wallet/address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/require"

pkgtest "perun.network/go-perun/pkg/test"
pkgtest "polycry.pt/poly-go/test"
)

func TestAsWalletAddr(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/wallet/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (

"github.com/ethereum/go-ethereum/crypto"

perunio "perun.network/go-perun/pkg/io"
"perun.network/go-perun/wallet"
perunio "polycry.pt/poly-go/io"
)

// Backend implements the utility interface defined in the wallet package.
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/wallet/hd/transactor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"perun.network/go-perun/backend/ethereum/channel/test"
"perun.network/go-perun/backend/ethereum/wallet"
"perun.network/go-perun/backend/ethereum/wallet/hd"
pkgtest "perun.network/go-perun/pkg/test"
pkgtest "polycry.pt/poly-go/test"
)

// missingAddr is the address for which key will not be contained in the wallet.
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/wallet/hd/wallet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (

ethwallet "perun.network/go-perun/backend/ethereum/wallet"
"perun.network/go-perun/backend/ethereum/wallet/hd"
pkgtest "perun.network/go-perun/pkg/test"
"perun.network/go-perun/wallet/test"
pkgtest "polycry.pt/poly-go/test"
)

var dataToSign = []byte("SomeLongDataThatShouldBeSignedPlease")
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/wallet/keystore/transactor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (
"perun.network/go-perun/backend/ethereum/wallet"
"perun.network/go-perun/backend/ethereum/wallet/keystore"
_ "perun.network/go-perun/backend/ethereum/wallet/test"
pkgtest "perun.network/go-perun/pkg/test"
wallettest "perun.network/go-perun/wallet/test"
pkgtest "polycry.pt/poly-go/test"
)

// Random address for which key will not be contained in the wallet.
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/wallet/keystore/wallet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (

ethwallet "perun.network/go-perun/backend/ethereum/wallet"
ethwallettest "perun.network/go-perun/backend/ethereum/wallet/test"
pkgtest "perun.network/go-perun/pkg/test"
"perun.network/go-perun/wallet/test"
pkgtest "polycry.pt/poly-go/test"
)

var dataToSign = []byte("SomeLongDataThatShouldBeSignedPlease")
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/wallet/simple/transactor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"perun.network/go-perun/backend/ethereum/channel/test"
"perun.network/go-perun/backend/ethereum/wallet"
"perun.network/go-perun/backend/ethereum/wallet/simple"
pkgtest "perun.network/go-perun/pkg/test"
pkgtest "polycry.pt/poly-go/test"
)

// Missing address for which key will not be contained in the wallet.
Expand Down
2 changes: 1 addition & 1 deletion backend/ethereum/wallet/simple/wallet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (

ethwallet "perun.network/go-perun/backend/ethereum/wallet"
"perun.network/go-perun/backend/ethereum/wallet/simple"
pkgtest "perun.network/go-perun/pkg/test"
"perun.network/go-perun/wallet/test"
pkgtest "polycry.pt/poly-go/test"
)

var dataToSign = []byte("SomeLongDataThatShouldBeSignedPlease")
Expand Down
2 changes: 1 addition & 1 deletion backend/sim/channel/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"math/rand"

"perun.network/go-perun/channel"
perunio "perun.network/go-perun/pkg/io"
perunio "polycry.pt/poly-go/io"
)

// Asset simulates a `channel.Asset` by only containing an `ID`.
Expand Down
2 changes: 1 addition & 1 deletion backend/sim/channel/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (

"perun.network/go-perun/channel"
"perun.network/go-perun/log"
perunio "perun.network/go-perun/pkg/io"
"perun.network/go-perun/wallet"
perunio "polycry.pt/poly-go/io"
)

// backend implements the utility interface defined in the channel package.
Expand Down
2 changes: 1 addition & 1 deletion backend/sim/channel/channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (
"testing"

chtest "perun.network/go-perun/channel/test"
pkgtest "perun.network/go-perun/pkg/test"
"perun.network/go-perun/wallet"
wtest "perun.network/go-perun/wallet/test"
pkgtest "polycry.pt/poly-go/test"
)

func TestGenericTests(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion backend/sim/wallet/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"github.com/pkg/errors"

"perun.network/go-perun/log"
"perun.network/go-perun/pkg/sync/atomic"
"perun.network/go-perun/wallet"
"polycry.pt/poly-go/sync/atomic"
)

// Account represents a mocked account.
Expand Down
2 changes: 1 addition & 1 deletion backend/sim/wallet/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
"github.com/pkg/errors"

"perun.network/go-perun/log"
perunio "perun.network/go-perun/pkg/io"
"perun.network/go-perun/wallet"
perunio "polycry.pt/poly-go/io"
)

// Address represents a simulated address.
Expand Down
Loading

0 comments on commit 44d1011

Please sign in to comment.