depool -> depools

This commit is contained in:
Andrej Zavgorodnij 2020-08-04 09:34:10 +03:00
parent b7da6b06b2
commit bdc3854646
16 changed files with 42 additions and 33 deletions

View File

@ -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 (

View File

@ -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"
)

View File

@ -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) {

View File

@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/depool/dc4bc/client"
"github.com/depools/dc4bc/client"
"github.com/stretchr/testify/require"
)

View File

@ -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() {

View File

@ -2,7 +2,8 @@ package fsm_pool
import (
"errors"
"github.com/depool/dc4bc/fsm/fsm"
"github.com/depools/dc4bc/fsm/fsm"
)
type IStateMachine interface {

View File

@ -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?

View File

@ -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 (

View File

@ -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

View File

@ -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

View File

@ -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 (

View File

@ -2,7 +2,8 @@ package requests
import (
"errors"
"github.com/depool/dc4bc/fsm/config"
"github.com/depools/dc4bc/fsm/config"
)
// Requests

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/depool/dc4bc
module github.com/depools/dc4bc
go 1.13

View File

@ -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"

View File

@ -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

View File

@ -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