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

Commit

Permalink
move to github.com/luno/moonbeam
Browse files Browse the repository at this point in the history
  • Loading branch information
timothy committed Apr 17, 2017
1 parent 0d81585 commit f862468
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 29 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
src/
bin/
pkg/
2 changes: 1 addition & 1 deletion channels/channels_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btcutil"

"bitbucket.org/bitx/moonchan/models"
"github.com/luno/moonbeam/models"
)

const addr1 = "mrreYyaosje7fxCLi3pzknasHiSfziX9GY"
Expand Down
2 changes: 1 addition & 1 deletion channels/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btcutil"

"bitbucket.org/bitx/moonchan/models"
"github.com/luno/moonbeam/models"
)

type ReceiverConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion channels/sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/btcsuite/btcd/txscript"
"github.com/btcsuite/btcutil"

"bitbucket.org/bitx/moonchan/models"
"github.com/luno/moonbeam/models"
)

type SenderConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"net/http"
"strings"

"bitbucket.org/bitx/moonchan/models"
"github.com/luno/moonbeam/models"
)

var debugRPC = flag.Bool("debug_rpc", true, "Debug RPC")
Expand Down
10 changes: 5 additions & 5 deletions cmd/mbclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import (
"github.com/btcsuite/btcutil"
"github.com/btcsuite/btcutil/hdkeychain"

"bitbucket.org/bitx/moonchan/address"
"bitbucket.org/bitx/moonchan/channels"
"bitbucket.org/bitx/moonchan/client"
"bitbucket.org/bitx/moonchan/models"
"bitbucket.org/bitx/moonchan/resolver"
"github.com/luno/moonbeam/address"
"github.com/luno/moonbeam/channels"
"github.com/luno/moonbeam/client"
"github.com/luno/moonbeam/models"
"github.com/luno/moonbeam/resolver"
)

var testnet = flag.Bool("testnet", true, "Use testnet")
Expand Down
2 changes: 1 addition & 1 deletion cmd/mbclient/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcutil/hdkeychain"

"bitbucket.org/bitx/moonchan/channels"
"github.com/luno/moonbeam/channels"
)

type Channel struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/mbserver/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"strconv"
"strings"

"bitbucket.org/bitx/moonchan/models"
"bitbucket.org/bitx/moonchan/receiver"
"github.com/luno/moonbeam/models"
"github.com/luno/moonbeam/receiver"
)

var debugServerRPC = flag.Bool(
Expand Down
6 changes: 3 additions & 3 deletions cmd/mbserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/btcsuite/btcrpcclient"
"github.com/btcsuite/btcutil/hdkeychain"

"bitbucket.org/bitx/moonchan/receiver"
"bitbucket.org/bitx/moonchan/resolver"
"bitbucket.org/bitx/moonchan/storage/filesystem"
"github.com/luno/moonbeam/receiver"
"github.com/luno/moonbeam/resolver"
"github.com/luno/moonbeam/storage/filesystem"
)

var testnet = flag.Bool("testnet", true, "Use testnet")
Expand Down
6 changes: 3 additions & 3 deletions cmd/mbserver/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"net/http"
"sort"

"bitbucket.org/bitx/moonchan/models"
"bitbucket.org/bitx/moonchan/resolver"
"bitbucket.org/bitx/moonchan/storage"
"github.com/luno/moonbeam/models"
"github.com/luno/moonbeam/resolver"
"github.com/luno/moonbeam/storage"
)

func render(t *template.Template, w http.ResponseWriter, data interface{}) {
Expand Down
2 changes: 1 addition & 1 deletion receiver/directory.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package receiver

import (
"bitbucket.org/bitx/moonchan/address"
"github.com/luno/moonbeam/address"
)

// Directory provides access to the set of targets.
Expand Down
6 changes: 3 additions & 3 deletions receiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"github.com/btcsuite/btcrpcclient"
"github.com/btcsuite/btcutil/hdkeychain"

"bitbucket.org/bitx/moonchan/channels"
"bitbucket.org/bitx/moonchan/models"
"bitbucket.org/bitx/moonchan/storage"
"github.com/luno/moonbeam/channels"
"github.com/luno/moonbeam/models"
"github.com/luno/moonbeam/storage"
)

type Receiver struct {
Expand Down
6 changes: 3 additions & 3 deletions receiver/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"log"
"time"

"bitbucket.org/bitx/moonchan/channels"
"bitbucket.org/bitx/moonchan/models"
"bitbucket.org/bitx/moonchan/storage"
"github.com/luno/moonbeam/channels"
"github.com/luno/moonbeam/models"
"github.com/luno/moonbeam/storage"
)

func (r *Receiver) checkChannel(blockCount int64, rec storage.Record) error {
Expand Down
1 change: 0 additions & 1 deletion src/bitbucket.org/bitx/moonchan

This file was deleted.

4 changes: 2 additions & 2 deletions storage/filesystem/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"sync"

"bitbucket.org/bitx/moonchan/channels"
"bitbucket.org/bitx/moonchan/storage"
"github.com/luno/moonbeam/channels"
"github.com/luno/moonbeam/storage"
)

type data struct {
Expand Down
2 changes: 1 addition & 1 deletion storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package storage
import (
"errors"

"bitbucket.org/bitx/moonchan/channels"
"github.com/luno/moonbeam/channels"
)

var ErrNotFound = errors.New("record not found")
Expand Down
3 changes: 3 additions & 0 deletions vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

export GOPATH=`pwd`

mkdir -p src/github.com/luno
rm src/github.com/luno/moonbeam
ln -s ../../.. src/github.com/luno/moonbeam

0 comments on commit f862468

Please sign in to comment.