mirror of https://github.com/certusone/dc4bc.git
depool -> depools
This commit is contained in:
parent
b7da6b06b2
commit
bdc3854646
|
@ -8,8 +8,8 @@ import (
|
|||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/depool/dc4bc/qr"
|
||||
"github.com/depool/dc4bc/storage"
|
||||
"github.com/depools/dc4bc/qr"
|
||||
"github.com/depools/dc4bc/storage"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -9,12 +9,12 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/depool/dc4bc/mocks/qrMocks"
|
||||
"github.com/depools/dc4bc/mocks/qrMocks"
|
||||
|
||||
"github.com/depool/dc4bc/client"
|
||||
"github.com/depools/dc4bc/client"
|
||||
|
||||
"github.com/depool/dc4bc/mocks/clientMocks"
|
||||
"github.com/depool/dc4bc/mocks/storageMocks"
|
||||
"github.com/depools/dc4bc/mocks/clientMocks"
|
||||
"github.com/depools/dc4bc/mocks/storageMocks"
|
||||
"github.com/golang/mock/gomock"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
|
@ -3,12 +3,13 @@ package client
|
|||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/depool/dc4bc/qr"
|
||||
"github.com/depool/dc4bc/storage"
|
||||
"image"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
"github.com/depools/dc4bc/qr"
|
||||
"github.com/depools/dc4bc/storage"
|
||||
)
|
||||
|
||||
func errorResponse(w http.ResponseWriter, statusCode int, err string) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/depool/dc4bc/client"
|
||||
"github.com/depools/dc4bc/client"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/depool/dc4bc/fsm/state_machines"
|
||||
"github.com/depool/dc4bc/fsm/types/requests"
|
||||
"log"
|
||||
|
||||
"github.com/depools/dc4bc/fsm/state_machines"
|
||||
"github.com/depools/dc4bc/fsm/types/requests"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -2,7 +2,8 @@ package fsm_pool
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"github.com/depool/dc4bc/fsm/fsm"
|
||||
|
||||
"github.com/depools/dc4bc/fsm/fsm"
|
||||
)
|
||||
|
||||
type IStateMachine interface {
|
||||
|
|
|
@ -3,11 +3,12 @@ package state_machines
|
|||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"github.com/depool/dc4bc/fsm/fsm"
|
||||
"github.com/depool/dc4bc/fsm/fsm_pool"
|
||||
"github.com/depool/dc4bc/fsm/state_machines/internal"
|
||||
"github.com/depool/dc4bc/fsm/state_machines/signature_construct_fsm"
|
||||
"github.com/depool/dc4bc/fsm/state_machines/signature_proposal_fsm"
|
||||
|
||||
"github.com/depools/dc4bc/fsm/fsm"
|
||||
"github.com/depools/dc4bc/fsm/fsm_pool"
|
||||
"github.com/depools/dc4bc/fsm/state_machines/internal"
|
||||
"github.com/depools/dc4bc/fsm/state_machines/signature_construct_fsm"
|
||||
"github.com/depools/dc4bc/fsm/state_machines/signature_proposal_fsm"
|
||||
)
|
||||
|
||||
// Is machine state scope dump will be locked?
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package signature_construct_fsm
|
||||
|
||||
import (
|
||||
"github.com/depool/dc4bc/fsm/fsm"
|
||||
"github.com/depool/dc4bc/fsm/fsm_pool"
|
||||
"github.com/depools/dc4bc/fsm/fsm"
|
||||
"github.com/depools/dc4bc/fsm/fsm_pool"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -2,10 +2,11 @@ package signature_proposal_fsm
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"github.com/depool/dc4bc/fsm/state_machines/internal"
|
||||
"github.com/depool/dc4bc/fsm/types/requests"
|
||||
"github.com/depool/dc4bc/fsm/types/responses"
|
||||
"log"
|
||||
|
||||
"github.com/depools/dc4bc/fsm/state_machines/internal"
|
||||
"github.com/depools/dc4bc/fsm/types/requests"
|
||||
"github.com/depools/dc4bc/fsm/types/responses"
|
||||
)
|
||||
|
||||
// init -> awaitingConfirmations
|
||||
|
|
|
@ -3,9 +3,10 @@ package signature_proposal_fsm
|
|||
import (
|
||||
"crypto/sha256"
|
||||
"encoding/base64"
|
||||
"github.com/depool/dc4bc/fsm/state_machines/internal"
|
||||
"github.com/depool/dc4bc/fsm/types/responses"
|
||||
"math/rand"
|
||||
|
||||
"github.com/depools/dc4bc/fsm/state_machines/internal"
|
||||
"github.com/depools/dc4bc/fsm/types/responses"
|
||||
)
|
||||
|
||||
// Request and response mutators
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package signature_proposal_fsm
|
||||
|
||||
import (
|
||||
"github.com/depool/dc4bc/fsm/fsm"
|
||||
"github.com/depool/dc4bc/fsm/fsm_pool"
|
||||
"github.com/depools/dc4bc/fsm/fsm"
|
||||
"github.com/depools/dc4bc/fsm/fsm_pool"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -2,7 +2,8 @@ package requests
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"github.com/depool/dc4bc/fsm/config"
|
||||
|
||||
"github.com/depools/dc4bc/fsm/config"
|
||||
)
|
||||
|
||||
// Requests
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module github.com/depool/dc4bc
|
||||
module github.com/depools/dc4bc
|
||||
|
||||
go 1.13
|
||||
|
||||
|
|
2
main.go
2
main.go
|
@ -10,7 +10,7 @@ import (
|
|||
|
||||
"go.dedis.ch/kyber/v3"
|
||||
|
||||
dkglib "github.com/depool/dc4bc/dkg"
|
||||
dkglib "github.com/depools/dc4bc/dkg"
|
||||
|
||||
_ "image/gif"
|
||||
_ "image/png"
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
package clientMocks
|
||||
|
||||
import (
|
||||
client "github.com/depool/dc4bc/client"
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
reflect "reflect"
|
||||
|
||||
client "github.com/depools/dc4bc/client"
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
)
|
||||
|
||||
// MockState is a mock of State interface
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
package storageMocks
|
||||
|
||||
import (
|
||||
storage "github.com/depool/dc4bc/storage"
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
reflect "reflect"
|
||||
|
||||
storage "github.com/depools/dc4bc/storage"
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
)
|
||||
|
||||
// MockStorage is a mock of Storage interface
|
||||
|
|
Loading…
Reference in New Issue