Skip to content

Commit

Permalink
feat: rename module name
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin-Luooo committed Aug 18, 2022
1 parent 5e88a10 commit 7456204
Show file tree
Hide file tree
Showing 51 changed files with 145 additions and 145 deletions.
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"os"
"path"

cmd "github.com/fbsobreira/gotron-sdk/cmd/subcommands"
cmd "github.com/Robin-Luooo/gotron-sdk/cmd/subcommands"
// Need this side effect
_ "github.com/fbsobreira/gotron-sdk/pkg/store"
_ "github.com/Robin-Luooo/gotron-sdk/pkg/store"
"github.com/spf13/cobra"
)

Expand Down
12 changes: 6 additions & 6 deletions cmd/subcommands/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"strconv"
"strings"

"github.com/fbsobreira/gotron-sdk/pkg/address"
"github.com/fbsobreira/gotron-sdk/pkg/client/transaction"
"github.com/fbsobreira/gotron-sdk/pkg/common"
"github.com/fbsobreira/gotron-sdk/pkg/keystore"
"github.com/fbsobreira/gotron-sdk/pkg/proto/core"
"github.com/fbsobreira/gotron-sdk/pkg/store"
"github.com/Robin-Luooo/gotron-sdk/pkg/address"
"github.com/Robin-Luooo/gotron-sdk/pkg/client/transaction"
"github.com/Robin-Luooo/gotron-sdk/pkg/common"
"github.com/Robin-Luooo/gotron-sdk/pkg/keystore"
"github.com/Robin-Luooo/gotron-sdk/pkg/proto/core"
"github.com/Robin-Luooo/gotron-sdk/pkg/store"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/subcommands/bc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"fmt"
"time"

"github.com/Robin-Luooo/gotron-sdk/pkg/address"
"github.com/Robin-Luooo/gotron-sdk/pkg/common"
"github.com/Robin-Luooo/gotron-sdk/pkg/proto/core"
"github.com/fatih/structs"
"github.com/fbsobreira/gotron-sdk/pkg/address"
"github.com/fbsobreira/gotron-sdk/pkg/common"
"github.com/fbsobreira/gotron-sdk/pkg/proto/core"
"github.com/golang/protobuf/ptypes"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/subcommands/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strconv"
"strings"

"github.com/fbsobreira/gotron-sdk/pkg/common"
"github.com/Robin-Luooo/gotron-sdk/pkg/common"
"github.com/spf13/cobra"
"gopkg.in/yaml.v2"
)
Expand Down
12 changes: 6 additions & 6 deletions cmd/subcommands/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"io/ioutil"
"math"

"github.com/fbsobreira/gotron-sdk/pkg/address"
"github.com/fbsobreira/gotron-sdk/pkg/client/transaction"
"github.com/fbsobreira/gotron-sdk/pkg/common"
"github.com/fbsobreira/gotron-sdk/pkg/contract"
"github.com/fbsobreira/gotron-sdk/pkg/keystore"
"github.com/fbsobreira/gotron-sdk/pkg/store"
"github.com/Robin-Luooo/gotron-sdk/pkg/address"
"github.com/Robin-Luooo/gotron-sdk/pkg/client/transaction"
"github.com/Robin-Luooo/gotron-sdk/pkg/common"
"github.com/Robin-Luooo/gotron-sdk/pkg/contract"
"github.com/Robin-Luooo/gotron-sdk/pkg/keystore"
"github.com/Robin-Luooo/gotron-sdk/pkg/store"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/subcommands/custom-flags.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/fbsobreira/gotron-sdk/pkg/address"
"github.com/Robin-Luooo/gotron-sdk/pkg/address"
"github.com/pkg/errors"
)

Expand Down
10 changes: 5 additions & 5 deletions cmd/subcommands/exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"strconv"
"time"

"github.com/fbsobreira/gotron-sdk/pkg/address"
"github.com/fbsobreira/gotron-sdk/pkg/client/transaction"
"github.com/fbsobreira/gotron-sdk/pkg/common"
"github.com/fbsobreira/gotron-sdk/pkg/keystore"
"github.com/fbsobreira/gotron-sdk/pkg/store"
"github.com/Robin-Luooo/gotron-sdk/pkg/address"
"github.com/Robin-Luooo/gotron-sdk/pkg/client/transaction"
"github.com/Robin-Luooo/gotron-sdk/pkg/common"
"github.com/Robin-Luooo/gotron-sdk/pkg/keystore"
"github.com/Robin-Luooo/gotron-sdk/pkg/store"
"github.com/spf13/cobra"
)

Expand Down
10 changes: 5 additions & 5 deletions cmd/subcommands/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import (
"fmt"
"os"

"github.com/Robin-Luooo/gotron-sdk/pkg/account"
c "github.com/Robin-Luooo/gotron-sdk/pkg/common"
"github.com/fatih/color"
"github.com/fbsobreira/gotron-sdk/pkg/account"
c "github.com/fbsobreira/gotron-sdk/pkg/common"

"github.com/fbsobreira/gotron-sdk/pkg/ledger"
"github.com/fbsobreira/gotron-sdk/pkg/mnemonic"
"github.com/fbsobreira/gotron-sdk/pkg/store"
"github.com/Robin-Luooo/gotron-sdk/pkg/ledger"
"github.com/Robin-Luooo/gotron-sdk/pkg/mnemonic"
"github.com/Robin-Luooo/gotron-sdk/pkg/store"
"github.com/spf13/cobra"
"github.com/tyler-smith/go-bip39"
)
Expand Down
10 changes: 5 additions & 5 deletions cmd/subcommands/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"strings"
"time"

"github.com/fbsobreira/gotron-sdk/pkg/address"
"github.com/fbsobreira/gotron-sdk/pkg/client/transaction"
"github.com/fbsobreira/gotron-sdk/pkg/common"
"github.com/fbsobreira/gotron-sdk/pkg/keystore"
"github.com/fbsobreira/gotron-sdk/pkg/store"
"github.com/Robin-Luooo/gotron-sdk/pkg/address"
"github.com/Robin-Luooo/gotron-sdk/pkg/client/transaction"
"github.com/Robin-Luooo/gotron-sdk/pkg/common"
"github.com/Robin-Luooo/gotron-sdk/pkg/keystore"
"github.com/Robin-Luooo/gotron-sdk/pkg/store"
"github.com/spf13/cobra"
)

Expand Down
14 changes: 7 additions & 7 deletions cmd/subcommands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import (
"strings"
"time"

"github.com/Robin-Luooo/gotron-sdk/pkg/client"
"github.com/Robin-Luooo/gotron-sdk/pkg/client/transaction"
"github.com/Robin-Luooo/gotron-sdk/pkg/common"
c "github.com/Robin-Luooo/gotron-sdk/pkg/common"
"github.com/Robin-Luooo/gotron-sdk/pkg/store"
color "github.com/fatih/color"
"github.com/fbsobreira/gotron-sdk/pkg/client"
"github.com/fbsobreira/gotron-sdk/pkg/client/transaction"
"github.com/fbsobreira/gotron-sdk/pkg/common"
c "github.com/fbsobreira/gotron-sdk/pkg/common"
"github.com/fbsobreira/gotron-sdk/pkg/store"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/spf13/cobra/doc"
Expand Down Expand Up @@ -150,8 +150,8 @@ func init() {
var (
// VersionWrapDump meant to be set from main.go
VersionWrapDump = ""
versionLink = "https://api.github.com/repos/fbsobreira/gotron-sdk/releases/latest"
versionTagLink = "https://api.github.com/repos/fbsobreira/gotron-sdk/git/ref/tags/"
versionLink = "https://api.github.com/repos/Robin-Luooo/gotron-sdk/releases/latest"
versionTagLink = "https://api.github.com/repos/Robin-Luooo/gotron-sdk/git/ref/tags/"
versionFormat = regexp.MustCompile("v[0-9]+-[a-z0-9]{7}")
)

Expand Down
10 changes: 5 additions & 5 deletions cmd/subcommands/sr.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"fmt"
"strconv"

"github.com/fbsobreira/gotron-sdk/pkg/address"
"github.com/fbsobreira/gotron-sdk/pkg/client/transaction"
"github.com/fbsobreira/gotron-sdk/pkg/common"
"github.com/fbsobreira/gotron-sdk/pkg/keystore"
"github.com/fbsobreira/gotron-sdk/pkg/store"
"github.com/Robin-Luooo/gotron-sdk/pkg/address"
"github.com/Robin-Luooo/gotron-sdk/pkg/client/transaction"
"github.com/Robin-Luooo/gotron-sdk/pkg/common"
"github.com/Robin-Luooo/gotron-sdk/pkg/keystore"
"github.com/Robin-Luooo/gotron-sdk/pkg/store"
"github.com/spf13/cobra"
)

Expand Down
12 changes: 6 additions & 6 deletions cmd/subcommands/trc10.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"strings"
"time"

"github.com/Robin-Luooo/gotron-sdk/pkg/address"
"github.com/Robin-Luooo/gotron-sdk/pkg/client/transaction"
"github.com/Robin-Luooo/gotron-sdk/pkg/common"
"github.com/Robin-Luooo/gotron-sdk/pkg/keystore"
"github.com/Robin-Luooo/gotron-sdk/pkg/proto/core"
"github.com/Robin-Luooo/gotron-sdk/pkg/store"
"github.com/araddon/dateparse"
"github.com/fbsobreira/gotron-sdk/pkg/address"
"github.com/fbsobreira/gotron-sdk/pkg/client/transaction"
"github.com/fbsobreira/gotron-sdk/pkg/common"
"github.com/fbsobreira/gotron-sdk/pkg/keystore"
"github.com/fbsobreira/gotron-sdk/pkg/proto/core"
"github.com/fbsobreira/gotron-sdk/pkg/store"
"github.com/spf13/cobra"
)

Expand Down
12 changes: 6 additions & 6 deletions cmd/subcommands/trc20.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"fmt"
"math/big"

"github.com/fbsobreira/gotron-sdk/pkg/address"
"github.com/fbsobreira/gotron-sdk/pkg/client/transaction"
"github.com/fbsobreira/gotron-sdk/pkg/common"
"github.com/fbsobreira/gotron-sdk/pkg/common/decimals"
"github.com/fbsobreira/gotron-sdk/pkg/keystore"
"github.com/fbsobreira/gotron-sdk/pkg/store"
"github.com/Robin-Luooo/gotron-sdk/pkg/address"
"github.com/Robin-Luooo/gotron-sdk/pkg/client/transaction"
"github.com/Robin-Luooo/gotron-sdk/pkg/common"
"github.com/Robin-Luooo/gotron-sdk/pkg/common/decimals"
"github.com/Robin-Luooo/gotron-sdk/pkg/keystore"
"github.com/Robin-Luooo/gotron-sdk/pkg/store"
"github.com/spf13/cobra"
)

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

"github.com/fbsobreira/gotron-sdk/pkg/address"
"github.com/Robin-Luooo/gotron-sdk/pkg/address"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/fbsobreira/gotron-sdk
module github.com/Robin-Luooo/gotron-sdk

go 1.17

Expand Down
4 changes: 2 additions & 2 deletions pkg/abi/abi.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"strconv"
"strings"

"github.com/Robin-Luooo/gotron-sdk/pkg/address"
"github.com/Robin-Luooo/gotron-sdk/pkg/proto/core"
eABI "github.com/ethereum/go-ethereum/accounts/abi"
eCommon "github.com/ethereum/go-ethereum/common"
"github.com/fbsobreira/gotron-sdk/pkg/address"
"github.com/fbsobreira/gotron-sdk/pkg/proto/core"
"golang.org/x/crypto/sha3"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/account/creation.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package account

import (
"github.com/fbsobreira/gotron-sdk/pkg/keys"
"github.com/fbsobreira/gotron-sdk/pkg/mnemonic"
"github.com/fbsobreira/gotron-sdk/pkg/store"
"github.com/Robin-Luooo/gotron-sdk/pkg/keys"
"github.com/Robin-Luooo/gotron-sdk/pkg/mnemonic"
"github.com/Robin-Luooo/gotron-sdk/pkg/store"
)

// Creation struct for account
Expand Down
4 changes: 2 additions & 2 deletions pkg/account/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"path/filepath"

"github.com/fbsobreira/gotron-sdk/pkg/keystore"
"github.com/fbsobreira/gotron-sdk/pkg/store"
"github.com/Robin-Luooo/gotron-sdk/pkg/keystore"
"github.com/Robin-Luooo/gotron-sdk/pkg/store"
)

// ExportPrivateKey from account
Expand Down
8 changes: 4 additions & 4 deletions pkg/account/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (

"github.com/mitchellh/go-homedir"

"github.com/Robin-Luooo/gotron-sdk/pkg/common"
"github.com/Robin-Luooo/gotron-sdk/pkg/keystore"
"github.com/Robin-Luooo/gotron-sdk/pkg/mnemonic"
"github.com/Robin-Luooo/gotron-sdk/pkg/store"
"github.com/btcsuite/btcd/btcec"
mapset "github.com/deckarep/golang-set"
"github.com/fbsobreira/gotron-sdk/pkg/common"
"github.com/fbsobreira/gotron-sdk/pkg/keystore"
"github.com/fbsobreira/gotron-sdk/pkg/mnemonic"
"github.com/fbsobreira/gotron-sdk/pkg/store"
)

// ImportFromPrivateKey allows import of an ECDSA private key
Expand Down
2 changes: 1 addition & 1 deletion pkg/account/model.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package account

import (
"github.com/fbsobreira/gotron-sdk/pkg/proto/core"
"github.com/Robin-Luooo/gotron-sdk/pkg/proto/core"
)

// FrozenResource by account
Expand Down
4 changes: 2 additions & 2 deletions pkg/account/removal.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"path"

"github.com/fbsobreira/gotron-sdk/pkg/common"
"github.com/fbsobreira/gotron-sdk/pkg/store"
"github.com/Robin-Luooo/gotron-sdk/pkg/common"
"github.com/Robin-Luooo/gotron-sdk/pkg/store"
"github.com/mitchellh/go-homedir"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/address/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"encoding/base64"
"math/big"

"github.com/Robin-Luooo/gotron-sdk/pkg/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/fbsobreira/gotron-sdk/pkg/common"
)

const (
Expand Down
10 changes: 5 additions & 5 deletions pkg/client/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"fmt"
"math/big"

"github.com/fbsobreira/gotron-sdk/pkg/account"
"github.com/fbsobreira/gotron-sdk/pkg/address"
"github.com/fbsobreira/gotron-sdk/pkg/common"
"github.com/fbsobreira/gotron-sdk/pkg/proto/api"
"github.com/fbsobreira/gotron-sdk/pkg/proto/core"
"github.com/Robin-Luooo/gotron-sdk/pkg/account"
"github.com/Robin-Luooo/gotron-sdk/pkg/address"
"github.com/Robin-Luooo/gotron-sdk/pkg/common"
"github.com/Robin-Luooo/gotron-sdk/pkg/proto/api"
"github.com/Robin-Luooo/gotron-sdk/pkg/proto/core"
"github.com/golang/protobuf/proto"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/client/assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"strconv"
"time"

"github.com/fbsobreira/gotron-sdk/pkg/common"
"github.com/fbsobreira/gotron-sdk/pkg/proto/api"
"github.com/fbsobreira/gotron-sdk/pkg/proto/core"
"github.com/Robin-Luooo/gotron-sdk/pkg/common"
"github.com/Robin-Luooo/gotron-sdk/pkg/proto/api"
"github.com/Robin-Luooo/gotron-sdk/pkg/proto/core"
"github.com/golang/protobuf/proto"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/client/bank.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package client
import (
"fmt"

"github.com/fbsobreira/gotron-sdk/pkg/common"
"github.com/fbsobreira/gotron-sdk/pkg/proto/api"
"github.com/fbsobreira/gotron-sdk/pkg/proto/core"
"github.com/Robin-Luooo/gotron-sdk/pkg/common"
"github.com/Robin-Luooo/gotron-sdk/pkg/proto/api"
"github.com/Robin-Luooo/gotron-sdk/pkg/proto/core"
"github.com/golang/protobuf/proto"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/client/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package client
import (
"fmt"

"github.com/fbsobreira/gotron-sdk/pkg/common"
"github.com/fbsobreira/gotron-sdk/pkg/proto/api"
"github.com/fbsobreira/gotron-sdk/pkg/proto/core"
"github.com/Robin-Luooo/gotron-sdk/pkg/common"
"github.com/Robin-Luooo/gotron-sdk/pkg/proto/api"
"github.com/Robin-Luooo/gotron-sdk/pkg/proto/core"
)

// GetNowBlock return TIP block
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"time"

"github.com/fbsobreira/gotron-sdk/pkg/proto/api"
"github.com/Robin-Luooo/gotron-sdk/pkg/proto/api"
"google.golang.org/grpc"
"google.golang.org/grpc/metadata"
)
Expand Down
Loading

0 comments on commit 7456204

Please sign in to comment.