Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/gosdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
title: Upgrade 0Chain GoSDK to ${{ github.event.inputs.gosdk }}
body: |
0Chain GoSDK `${{ github.event.inputs.gosdk }}` is released.
see full changelog on https://github.com/0chain/gosdk/releases/tag/${{ github.event.inputs.gosdk }}
see full changelog on https://github.com/0chain/gosdk_common/releases/tag/${{ github.event.inputs.gosdk }}
draft: false
reviewers: guruhubb
labels: GoSDK
9 changes: 5 additions & 4 deletions cmd/auth-register.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package cmd

import (
"github.com/0chain/gosdk/core/transaction"
"github.com/0chain/gosdk/zcnbridge"
"github.com/0chain/gosdk/zcncore"
"github.com/pkg/errors"
"log"
"strings"

"github.com/0chain/gosdk_common/core/transaction"
"github.com/0chain/gosdk_common/zcnbridge"
"github.com/0chain/gosdk_common/zcncore"
"github.com/pkg/errors"
)

//goland:noinspection ALL
Expand Down
2 changes: 1 addition & 1 deletion cmd/auth-sc-delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"time"

"github.com/0chain/gosdk/zcnbridge"
"github.com/0chain/gosdk_common/zcnbridge"
comm "github.com/ethereum/go-ethereum/common"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/auth-sc-register.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"time"

"github.com/0chain/gosdk/zcnbridge"
"github.com/0chain/gosdk_common/zcnbridge"
comm "github.com/ethereum/go-ethereum/common"
)

Expand Down
7 changes: 4 additions & 3 deletions cmd/bridge-auth-config-update.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package cmd

import (
"fmt"
"github.com/0chain/gosdk/core/common"
"github.com/0chain/gosdk/zcncore"
"github.com/spf13/cobra"
"log"
"strconv"

"github.com/0chain/gosdk_common/core/common"
"github.com/0chain/gosdk_common/zcncore"
"github.com/spf13/cobra"
)

var updateAuthorizerConfigCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/bridge-auth-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"log"

"github.com/0chain/gosdk/zcnbridge"
"github.com/0chain/gosdk_common/zcnbridge"
"github.com/0chain/zwalletcli/util"
"github.com/spf13/cobra"
)
Expand Down
5 changes: 3 additions & 2 deletions cmd/bridge-auth-delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package cmd

import (
"fmt"
"github.com/0chain/gosdk/zcncore"
"github.com/spf13/cobra"
"log"

"github.com/0chain/gosdk_common/zcncore"
"github.com/spf13/cobra"
)

var deleteAuthorizerConfigCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/bridge-burn-eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/ethereum/go-ethereum/core/types"

"github.com/0chain/gosdk/zcnbridge"
"github.com/0chain/gosdk_common/zcnbridge"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/bridge-burn-usdc.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/ethereum/go-ethereum/core/types"

"github.com/0chain/gosdk/zcnbridge"
"github.com/0chain/gosdk_common/zcnbridge"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/bridge-burn-wzcn.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/ethereum/go-ethereum/core/types"

"github.com/0chain/gosdk/zcnbridge"
"github.com/0chain/gosdk_common/zcnbridge"
)

func init() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/bridge-burn-zcn.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package cmd
import (
"fmt"

"github.com/0chain/gosdk/zcncore"
"github.com/0chain/gosdk_common/zcncore"

"github.com/0chain/gosdk/zcnbridge"
"github.com/0chain/gosdk_common/zcnbridge"
)

func init() {
Expand Down
5 changes: 3 additions & 2 deletions cmd/bridge-config-update.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package cmd

import (
"fmt"
"github.com/0chain/gosdk/zcncore"
"github.com/spf13/cobra"
"log"

"github.com/0chain/gosdk_common/zcncore"
"github.com/spf13/cobra"
)

var updateBridgeGlobalConfigCmd = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions cmd/bridge-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"log"

"github.com/0chain/gosdk/zcnbridge"
"github.com/0chain/gosdk/zcncore"
"github.com/0chain/gosdk_common/zcnbridge"
"github.com/0chain/gosdk_common/zcncore"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/bridge-get-wzcn-burnticket.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"fmt"

"github.com/0chain/gosdk/zcnbridge"
"github.com/0chain/gosdk_common/zcnbridge"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/bridge-get-zcn-burnticket.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"fmt"

"github.com/0chain/gosdk/zcnbridge"
"github.com/0chain/gosdk_common/zcnbridge"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/bridge-import-account.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/0chain/gosdk/zcnbridge"
"github.com/0chain/gosdk_common/zcnbridge"
"github.com/spf13/cobra"
)

Expand Down
3 changes: 2 additions & 1 deletion cmd/bridge-list-accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package cmd

import (
"fmt"
"github.com/0chain/gosdk/zcnbridge"

"github.com/0chain/gosdk_common/zcnbridge"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/bridge-list-authorizers.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"log"

"github.com/0chain/gosdk/zcnbridge"
"github.com/0chain/gosdk_common/zcnbridge"
"github.com/0chain/zwalletcli/util"
"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/bridge-mint-wzcn.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"time"

"github.com/0chain/gosdk/zcnbridge"
"github.com/0chain/gosdk/zcncore"
"github.com/0chain/gosdk_common/zcnbridge"
"github.com/0chain/gosdk_common/zcncore"
)

func init() {
Expand Down
5 changes: 3 additions & 2 deletions cmd/bridge-mint-zcn.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package cmd
import (
"encoding/json"
"fmt"
"github.com/0chain/gosdk/zcnbridge"
"github.com/0chain/gosdk/zcncore"
"strconv"

"github.com/0chain/gosdk_common/zcnbridge"
"github.com/0chain/gosdk_common/zcncore"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/bridge-verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"github.com/0chain/gosdk/zcnbridge"
"github.com/0chain/gosdk_common/zcnbridge"
)

func init() {
Expand Down
14 changes: 7 additions & 7 deletions cmd/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"path/filepath"

"github.com/0chain/gosdk/core/conf"
"github.com/0chain/gosdk/zcnbridge"
"github.com/0chain/gosdk_common/core/conf"
"github.com/0chain/gosdk_common/zcnbridge"
"github.com/spf13/cobra"
)

Expand Down Expand Up @@ -274,7 +274,7 @@ func getUint64(args []*Arg, name string) uint64 {
}

// createCommand Function to initialize bridge commands with DRY principle
func createCommand(use, short, long string, functor Command, hidden bool, opts ...*Option,) *cobra.Command {
func createCommand(use, short, long string, functor Command, hidden bool, opts ...*Option) *cobra.Command {
fn := func(parameters ...*Arg) {
functor(parameters...)
}
Expand Down Expand Up @@ -332,10 +332,10 @@ func createBridgeComm(
hidden bool,
) *cobra.Command {
var cobraCommand = &cobra.Command{
Use: use,
Short: short,
Long: long,
Args: cobra.MinimumNArgs(0),
Use: use,
Short: short,
Long: long,
Args: cobra.MinimumNArgs(0),
Hidden: hidden,
Run: func(cmd *cobra.Command, args []string) {
fflags := cmd.Flags()
Expand Down
2 changes: 1 addition & 1 deletion cmd/callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"sync"

"github.com/0chain/gosdk/zcncore"
"github.com/0chain/gosdk_common/zcncore"
)

//
Expand Down
5 changes: 3 additions & 2 deletions cmd/collect_reward.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package cmd

import (
"fmt"
"github.com/0chain/gosdk/zcncore"
"github.com/spf13/cobra"
"log"

"github.com/0chain/gosdk_common/zcncore"
"github.com/spf13/cobra"
)

var minerScPayReward = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/create-wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"path/filepath"

"github.com/0chain/gosdk/zcncore"
"github.com/0chain/gosdk_common/zcncore"
"github.com/spf13/cobra"
)

Expand Down
3 changes: 2 additions & 1 deletion cmd/faucet.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package cmd

import (
"fmt"
"github.com/0chain/gosdk/zcncore"

"github.com/0chain/gosdk_common/zcncore"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/fc-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package cmd
//import (
// "log"
//
// "github.com/0chain/gosdk/zcncore"
// "github.com/0chain/gosdk_common/zcncore"
// "github.com/spf13/cobra"
//)
//
Expand Down
2 changes: 1 addition & 1 deletion cmd/fc-update-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package cmd
// "strings"
// "sync"
//
// "github.com/0chain/gosdk/zcncore"
// "github.com/0chain/gosdk_common/zcncore"
// "github.com/spf13/cobra"
//)
//
Expand Down
5 changes: 3 additions & 2 deletions cmd/getbalance.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package cmd

import (
"fmt"
"github.com/0chain/gosdk/core/client"
"github.com/0chain/gosdk/zcncore"

"github.com/0chain/gosdk_common/core/client"
"github.com/0chain/gosdk_common/zcncore"
"github.com/0chain/zwalletcli/util"
"github.com/spf13/cobra"
)
Expand Down
3 changes: 2 additions & 1 deletion cmd/getnonce.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package cmd

import (
"fmt"
"github.com/0chain/gosdk/core/client"

"github.com/0chain/gosdk_common/core/client"
"github.com/spf13/cobra"
)

Expand Down
3 changes: 2 additions & 1 deletion cmd/global-config.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cmd

import (
"github.com/0chain/gosdk/core/transaction"
"log"

"github.com/0chain/gosdk_common/core/transaction"

"github.com/spf13/cobra"
)

Expand Down
5 changes: 3 additions & 2 deletions cmd/global-update-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package cmd

import (
"fmt"
"github.com/0chain/gosdk/zcncore"
"github.com/spf13/cobra"
"log"

"github.com/0chain/gosdk_common/zcncore"
"github.com/spf13/cobra"
)

var updateGlobalConfigCmd = &cobra.Command{
Expand Down
5 changes: 3 additions & 2 deletions cmd/hardfork.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package cmd

import (
"fmt"
"github.com/0chain/gosdk/zcncore"
"github.com/spf13/cobra"
"log"

"github.com/0chain/gosdk_common/zcncore"
"github.com/spf13/cobra"
)

var addHardForkCmd = &cobra.Command{
Expand Down
Loading
Loading