From e16853a1fbe3ab0365cce2166875f01b7312c344 Mon Sep 17 00:00:00 2001 From: Hoang Trinh Date: Mon, 10 Jul 2023 17:22:21 +0700 Subject: [PATCH] refactor: sort imports --- entities/nearestusabletick_test.go | 3 ++- entities/pool_test.go | 5 +++-- entities/ticklist_test.go | 3 ++- utils/compute_pool_address_test.go | 3 ++- utils/encode_test.go | 3 ++- utils/most_significant_bit.go | 3 ++- utils/price_tick_conversions.go | 3 ++- utils/sqrtprice_math.go | 3 ++- utils/tick_math.go | 3 ++- utils/tick_math_test.go | 3 ++- 10 files changed, 21 insertions(+), 11 deletions(-) diff --git a/entities/nearestusabletick_test.go b/entities/nearestusabletick_test.go index 7dafdad..15941ec 100644 --- a/entities/nearestusabletick_test.go +++ b/entities/nearestusabletick_test.go @@ -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) { diff --git a/entities/pool_test.go b/entities/pool_test.go index 6d7d355..9583215 100644 --- a/entities/pool_test.go +++ b/entities/pool_test.go @@ -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 ( diff --git a/entities/ticklist_test.go b/entities/ticklist_test.go index 403781a..db6f689 100644 --- a/entities/ticklist_test.go +++ b/entities/ticklist_test.go @@ -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 ( diff --git a/utils/compute_pool_address_test.go b/utils/compute_pool_address_test.go index 4b04685..b535000 100644 --- a/utils/compute_pool_address_test.go +++ b/utils/compute_pool_address_test.go @@ -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) { diff --git a/utils/encode_test.go b/utils/encode_test.go index 43120a4..193c30f 100644 --- a/utils/encode_test.go +++ b/utils/encode_test.go @@ -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) { diff --git a/utils/most_significant_bit.go b/utils/most_significant_bit.go index 09d639c..0c84c17 100644 --- a/utils/most_significant_bit.go +++ b/utils/most_significant_bit.go @@ -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") diff --git a/utils/price_tick_conversions.go b/utils/price_tick_conversions.go index e5270ec..ec22649 100644 --- a/utils/price_tick_conversions.go +++ b/utils/price_tick_conversions.go @@ -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" ) /** diff --git a/utils/sqrtprice_math.go b/utils/sqrtprice_math.go index 5c40197..9412aa8 100644 --- a/utils/sqrtprice_math.go +++ b/utils/sqrtprice_math.go @@ -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 ( diff --git a/utils/tick_math.go b/utils/tick_math.go index 4a56a1f..7891395 100644 --- a/utils/tick_math.go +++ b/utils/tick_math.go @@ -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 ( diff --git a/utils/tick_math_test.go b/utils/tick_math_test.go index 745c826..69ba678 100644 --- a/utils/tick_math_test.go +++ b/utils/tick_math_test.go @@ -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) {