Skip to content

Commit

Permalink
refactor 2
Browse files Browse the repository at this point in the history
  • Loading branch information
smaulik13 committed Jan 16, 2025
1 parent d649bba commit b59dcf4
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ To run all the unit tests in `gosdk`: `go test github.com/0chain/gosdk/zboxcore/
$ go test ./...
```

To run all the unit tests in `bls0chain_test.go`, run this command from $TOP: `go test github.com/0chain/gosdk/core/zcncrypto -v`
To run all the unit tests in `bls0chain_test.go`, run this command from $TOP: `go test github.com/0chain/gosdk_common/core/zcncrypto -v`

To run a specific unit test in `bls0chain_test.go`, such as `TestSignatureScheme`, run: `go test github.com/0chain/gosdk/core/zcncrypto -v -run TestSignatureScheme`
To run a specific unit test in `bls0chain_test.go`, such as `TestSignatureScheme`, run: `go test github.com/0chain/gosdk_common/core/zcncrypto -v -run TestSignatureScheme`

To run the coverage test in `gosdk`:

Expand Down
4 changes: 2 additions & 2 deletions wasmsdk/allocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"sync"
"syscall/js"

"github.com/0chain/gosdk/core/transaction"
"github.com/0chain/gosdk/wasmsdk/jsbridge"
"github.com/0chain/gosdk/zboxcore/sdk"
"github.com/0chain/gosdk_common/core/transaction"
"github.com/0chain/gosdk_common/wasmsdk/jsbridge"
)

const TOKEN_UNIT int64 = 1e10
Expand Down
4 changes: 2 additions & 2 deletions wasmsdk/auth_txn.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"fmt"
"syscall/js"

"github.com/0chain/gosdk/core/sys"
"github.com/0chain/gosdk/wasmsdk/jsbridge"
"github.com/0chain/gosdk/zcncore"
"github.com/0chain/gosdk_common/core/sys"
"github.com/0chain/gosdk_common/wasmsdk/jsbridge"
)

type AuthCallbackFunc func(msg string) string
Expand Down
14 changes: 7 additions & 7 deletions wasmsdk/blobber.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ import (
"time"

"github.com/0chain/gosdk/constants"
"github.com/0chain/gosdk/core/client"
"github.com/0chain/gosdk/core/common"
"github.com/0chain/gosdk/core/encryption"
"github.com/0chain/gosdk/core/pathutil"
"github.com/0chain/gosdk/core/sys"
"github.com/0chain/gosdk_common/core/client"
"github.com/0chain/gosdk_common/core/common"
"github.com/0chain/gosdk_common/core/encryption"
"github.com/0chain/gosdk_common/core/pathutil"
"github.com/0chain/gosdk_common/core/sys"
"github.com/hack-pad/safejs"

"github.com/0chain/gosdk/core/transaction"
"github.com/0chain/gosdk/wasmsdk/jsbridge"
"github.com/0chain/gosdk/zboxcore/fileref"
"github.com/0chain/gosdk/zboxcore/sdk"
"github.com/0chain/gosdk/zboxcore/zboxutil"
"github.com/0chain/gosdk_common/core/transaction"
"github.com/0chain/gosdk_common/wasmsdk/jsbridge"

"github.com/hack-pad/go-webworkers/worker"
)
Expand Down
4 changes: 2 additions & 2 deletions wasmsdk/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"errors"
"time"

"github.com/0chain/gosdk/core/client"
"github.com/0chain/gosdk/wasmsdk/jsbridge"
"github.com/0chain/gosdk/zboxcore/sdk"
"github.com/0chain/gosdk_common/core/client"
"github.com/0chain/gosdk_common/wasmsdk/jsbridge"
lru "github.com/hashicorp/golang-lru/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion wasmsdk/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"errors"
"syscall/js"

"github.com/0chain/gosdk/wasmsdk/jsbridge"
"github.com/0chain/gosdk/zboxcore/sdk"
"github.com/0chain/gosdk_common/wasmsdk/jsbridge"
)

// PrintError is to print to stderr
Expand Down
4 changes: 2 additions & 2 deletions wasmsdk/player_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"sync"
"time"

"github.com/0chain/gosdk/core/sys"
"github.com/0chain/gosdk/wasmsdk/jsbridge"
"github.com/0chain/gosdk/zboxcore/marker"
"github.com/0chain/gosdk/zboxcore/sdk"
"github.com/0chain/gosdk_common/core/sys"
"github.com/0chain/gosdk_common/wasmsdk/jsbridge"
)

type StreamPlayer struct {
Expand Down
10 changes: 5 additions & 5 deletions wasmsdk/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import (
"sync"
"time"

"github.com/0chain/gosdk/core/client"
"github.com/0chain/gosdk/core/sys"
"github.com/0chain/gosdk/core/version"
"github.com/0chain/gosdk/core/zcncrypto"
"github.com/0chain/gosdk/wasmsdk/jsbridge"
"github.com/0chain/gosdk/zboxcore/sdk"
"github.com/0chain/gosdk/zcncore"
"github.com/0chain/gosdk_common/core/client"
"github.com/0chain/gosdk_common/core/sys"
"github.com/0chain/gosdk_common/core/version"
"github.com/0chain/gosdk_common/core/zcncrypto"
"github.com/0chain/gosdk_common/wasmsdk/jsbridge"

"github.com/hack-pad/safejs"

Expand Down
6 changes: 3 additions & 3 deletions wasmsdk/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"os"
"strconv"

"github.com/0chain/gosdk/core/client"
"github.com/0chain/gosdk/core/zcncrypto"
"github.com/0chain/gosdk/wasmsdk/jsbridge"
"github.com/0chain/gosdk_common/core/client"
"github.com/0chain/gosdk_common/core/zcncrypto"
"github.com/0chain/gosdk_common/wasmsdk/jsbridge"
)

func setWallet(clientID, clientKey, peerPublicKey, publicKey, privateKey, mnemonic string, isSplit bool) error {
Expand Down

0 comments on commit b59dcf4

Please sign in to comment.