Skip to content

Commit

Permalink
refactor: sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
piavgh committed Jul 10, 2023
1 parent f560980 commit e16853a
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 11 deletions.
3 changes: 2 additions & 1 deletion entities/nearestusabletick_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package entities
import (
"testing"

"github.com/KyberNetwork/pancake-v3-sdk/utils"
"github.com/stretchr/testify/assert"

"github.com/KyberNetwork/pancake-v3-sdk/utils"
)

func TestNearestUsableTick(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions entities/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import (
"math/big"
"testing"

"github.com/KyberNetwork/pancake-v3-sdk/constants"
"github.com/KyberNetwork/pancake-v3-sdk/utils"
"github.com/daoleno/uniswap-sdk-core/entities"
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/assert"

"github.com/KyberNetwork/pancake-v3-sdk/constants"
"github.com/KyberNetwork/pancake-v3-sdk/utils"
)

var (
Expand Down
3 changes: 2 additions & 1 deletion entities/ticklist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"math/big"
"testing"

"github.com/KyberNetwork/pancake-v3-sdk/utils"
"github.com/stretchr/testify/assert"

"github.com/KyberNetwork/pancake-v3-sdk/utils"
)

var (
Expand Down
3 changes: 2 additions & 1 deletion utils/compute_pool_address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package utils
import (
"testing"

"github.com/KyberNetwork/pancake-v3-sdk/constants"
"github.com/daoleno/uniswap-sdk-core/entities"
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/assert"

"github.com/KyberNetwork/pancake-v3-sdk/constants"
)

func TestComputePoolAddress(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion utils/encode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"math/big"
"testing"

"github.com/KyberNetwork/pancake-v3-sdk/constants"
"github.com/stretchr/testify/assert"

"github.com/KyberNetwork/pancake-v3-sdk/constants"
)

func TestEncodeSqrtRatioX96(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion utils/most_significant_bit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"errors"
"math/big"

"github.com/KyberNetwork/pancake-v3-sdk/constants"
"github.com/daoleno/uniswap-sdk-core/entities"

"github.com/KyberNetwork/pancake-v3-sdk/constants"
)

var ErrInvalidInput = errors.New("invalid input")
Expand Down
3 changes: 2 additions & 1 deletion utils/price_tick_conversions.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package utils
import (
"math/big"

"github.com/KyberNetwork/pancake-v3-sdk/constants"
"github.com/daoleno/uniswap-sdk-core/entities"

"github.com/KyberNetwork/pancake-v3-sdk/constants"
)

/**
Expand Down
3 changes: 2 additions & 1 deletion utils/sqrtprice_math.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"errors"
"math/big"

"github.com/KyberNetwork/pancake-v3-sdk/constants"
"github.com/daoleno/uniswap-sdk-core/entities"

"github.com/KyberNetwork/pancake-v3-sdk/constants"
)

var (
Expand Down
3 changes: 2 additions & 1 deletion utils/tick_math.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"errors"
"math/big"

"github.com/KyberNetwork/pancake-v3-sdk/constants"
"github.com/daoleno/uniswap-sdk-core/entities"

"github.com/KyberNetwork/pancake-v3-sdk/constants"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion utils/tick_math_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"math/big"
"testing"

"github.com/KyberNetwork/pancake-v3-sdk/constants"
"github.com/stretchr/testify/assert"

"github.com/KyberNetwork/pancake-v3-sdk/constants"
)

func TestGetSqrtRatioAtTick(t *testing.T) {
Expand Down

0 comments on commit e16853a

Please sign in to comment.