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