Skip to content

Commit

Permalink
rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
it4rb committed Mar 15, 2024
1 parent eb4634d commit d376be1
Show file tree
Hide file tree
Showing 38 changed files with 68 additions and 73 deletions.
2 changes: 1 addition & 1 deletion entities/nearestusabletick.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package entities
import (
"math"

"github.com/daoleno/uniswapv3-sdk/utils"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
)

/**
Expand Down
2 changes: 1 addition & 1 deletion entities/nearestusabletick_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package entities
import (
"testing"

"github.com/daoleno/uniswapv3-sdk/utils"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions entities/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"errors"
"math/big"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
"github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/daoleno/uniswapv3-sdk/utils"
"github.com/ethereum/go-ethereum/common"
)

Expand Down
4 changes: 2 additions & 2 deletions entities/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"math/big"
"testing"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
"github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/daoleno/uniswapv3-sdk/utils"
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions entities/position.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"errors"
"math/big"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
"github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/daoleno/uniswapv3-sdk/utils"
)

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

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
"github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/daoleno/uniswapv3-sdk/utils"
"github.com/ethereum/go-ethereum/common"
"github.com/shopspring/decimal"
"github.com/stretchr/testify/assert"
Expand Down
4 changes: 2 additions & 2 deletions entities/route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"math/big"
"testing"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
"github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/daoleno/uniswapv3-sdk/utils"
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion entities/ticklist.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"math"
"math/big"

"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion entities/ticklist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"math/big"
"testing"

"github.com/daoleno/uniswapv3-sdk/utils"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion entities/trade.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"math/big"
"sort"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/ethereum/go-ethereum/common"
)

Expand Down
4 changes: 2 additions & 2 deletions entities/trade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"math/big"
"testing"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
"github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/daoleno/uniswapv3-sdk/utils"
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/assert"
)
Expand Down
8 changes: 4 additions & 4 deletions examples/helper/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"errors"
"math/big"

"github.com/daoleno/uniswapv3-sdk/examples/contract"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/examples/contract"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/entities"
sdkutils "github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
coreEntities "github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/daoleno/uniswapv3-sdk/entities"
sdkutils "github.com/daoleno/uniswapv3-sdk/utils"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
)
Expand Down
10 changes: 5 additions & 5 deletions examples/liquidity/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"strings"
"time"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/entities"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/examples/contract"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/examples/helper"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/periphery"
coreEntities "github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/daoleno/uniswapv3-sdk/entities"
"github.com/daoleno/uniswapv3-sdk/examples/contract"
"github.com/daoleno/uniswapv3-sdk/examples/helper"
"github.com/daoleno/uniswapv3-sdk/periphery"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
Expand Down
4 changes: 2 additions & 2 deletions examples/quoter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"log"

"github.com/daoleno/uniswapv3-sdk/examples/contract"
"github.com/daoleno/uniswapv3-sdk/examples/helper"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/examples/contract"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/examples/helper"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
)
Expand Down
8 changes: 4 additions & 4 deletions examples/swap/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (

"log"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/entities"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/examples/helper"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/periphery"
coreEntities "github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/daoleno/uniswapv3-sdk/entities"
"github.com/daoleno/uniswapv3-sdk/examples/helper"
"github.com/daoleno/uniswapv3-sdk/periphery"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
)
Expand Down
5 changes: 1 addition & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
module github.com/KyberNetwork/uniswapv3-sdk
module github.com/KyberNetwork/uniswapv3-sdk-uint256

go 1.18

replace github.com/daoleno/uniswapv3-sdk v0.4.0 => github.com/KyberNetwork/uniswapv3-sdk v0.4.0

require (
github.com/daoleno/uniswap-sdk-core v0.1.5
github.com/daoleno/uniswapv3-sdk v0.4.0
github.com/ethereum/go-ethereum v1.10.20
github.com/shopspring/decimal v1.3.1
github.com/stretchr/testify v1.8.0
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
github.com/KyberNetwork/uniswapv3-sdk v0.4.0 h1:hbTeJBFgFqYqYTduGuEnb4JIvCtcmuvBTFuRARJIa1Y=
github.com/KyberNetwork/uniswapv3-sdk v0.4.0/go.mod h1:K+cqy6zkitxxfShghmuoVwjGJWO16FTXAV+dvddXtgw=
github.com/VictoriaMetrics/fastcache v1.6.0 h1:C/3Oi3EiBCqufydp1neRZkqcwmEiuRT9c3fqvvgKm5o=
github.com/btcsuite/btcd/btcec/v2 v2.2.0 h1:fzn1qaOt32TuLjFlkzYSsBC35Q3KUjT1SwPxiMSCF5k=
github.com/btcsuite/btcd/btcec/v2 v2.2.0/go.mod h1:U7MHm051Al6XmscBQ0BoNydpOTsFAn707034b5nY8zU=
Expand Down
6 changes: 3 additions & 3 deletions periphery/const_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package periphery
import (
"math/big"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/entities"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
core "github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/daoleno/uniswapv3-sdk/entities"
"github.com/daoleno/uniswapv3-sdk/utils"
"github.com/ethereum/go-ethereum/common"
)

Expand Down
6 changes: 3 additions & 3 deletions periphery/nonfungible_position_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"errors"
"math/big"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/entities"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
core "github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/daoleno/uniswapv3-sdk/entities"
"github.com/daoleno/uniswapv3-sdk/utils"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
)
Expand Down
6 changes: 3 additions & 3 deletions periphery/nonfungible_position_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"math/big"
"testing"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/entities"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
core "github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/daoleno/uniswapv3-sdk/entities"
"github.com/daoleno/uniswapv3-sdk/utils"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/stretchr/testify/assert"
Expand Down
4 changes: 2 additions & 2 deletions periphery/quoter.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"math/big"
"reflect"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/entities"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
core "github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/entities"
"github.com/daoleno/uniswapv3-sdk/utils"
"github.com/ethereum/go-ethereum/common"
)

Expand Down
4 changes: 2 additions & 2 deletions periphery/quoter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"math/big"
"testing"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/entities"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
core "github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/entities"
"github.com/daoleno/uniswapv3-sdk/utils"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions periphery/staker.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
_ "embed"
"math/big"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/entities"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
core "github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/entities"
"github.com/daoleno/uniswapv3-sdk/utils"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
)
Expand Down
6 changes: 3 additions & 3 deletions periphery/staker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"math/big"
"testing"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/entities"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
core "github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/daoleno/uniswapv3-sdk/entities"
"github.com/daoleno/uniswapv3-sdk/utils"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/stretchr/testify/assert"
Expand Down
6 changes: 3 additions & 3 deletions periphery/swaprouter.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"errors"
"math/big"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/entities"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
core "github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/daoleno/uniswapv3-sdk/entities"
"github.com/daoleno/uniswapv3-sdk/utils"
"github.com/ethereum/go-ethereum/common"
)

Expand Down
4 changes: 2 additions & 2 deletions periphery/swaprouter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"math/big"
"testing"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/entities"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/utils"
core "github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/entities"
"github.com/daoleno/uniswapv3-sdk/utils"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion utils/compute_pool_address.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package utils
import (
"math/big"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
Expand Down
2 changes: 1 addition & 1 deletion utils/compute_pool_address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package utils
import (
"testing"

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion utils/encode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"math/big"
"testing"

"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion utils/full_math.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package utils
import (
"math/big"

"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
)

func MulDivRoundingUp(a, b, denominator *big.Int) *big.Int {
Expand Down
2 changes: 1 addition & 1 deletion utils/liquidity_math.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package utils
import (
"math/big"

"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
)

func AddDelta(x, y *big.Int) *big.Int {
Expand Down
2 changes: 1 addition & 1 deletion utils/max_liquidity_for_amounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package utils
import (
"math/big"

"github.com/daoleno/uniswapv3-sdk/constants"
"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
)

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

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
)

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

"github.com/KyberNetwork/uniswapv3-sdk-uint256/constants"
"github.com/daoleno/uniswap-sdk-core/entities"
"github.com/daoleno/uniswapv3-sdk/constants"
)

/**
Expand Down
Loading

0 comments on commit d376be1

Please sign in to comment.