Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #22

Merged
merged 66 commits into from
Jan 3, 2023
Merged

Development #22

merged 66 commits into from
Jan 3, 2023

Conversation

0xKitsune
Copy link
Owner

No description provided.

0xKitsune and others added 30 commits December 27, 2022 12:49
…an to reflect least and most significant bits
0xKitsune and others added 27 commits December 30, 2022 11:55
* Development (#17)

* exposed min and max tick constants as public, updated version and cargo lock

* bumped version to 0.2.4

* bumping to v 0.2.5

* added constants for MIN_SQRT_RATIO and MAX_SQRT_RATIO, bumped version

* removed unneeded import

* Overflow/Underflow in tick_bit_map.rs, changed little endian/big endian to reflect least and most significant bits

* patching next_initialized_tick_within_one_word

* bumping version to 0.2.8

* updated mulmod to use ruint

* patched overflow on left shift during next_initialized_tick_within_one_word

* patched compute swap step, updated I256 -> U256 conversion

* patched mulmod, bumping version

* patching mulmod to allow overflowing mul

* patching muldiv  to allow overflowing/underflowing

* updated mulmod to use ruint

* fixed clippy warnings and merged main

* bumped to 0.2.14

Co-authored-by: Leyton <leytontaylor23@gmail.com>

* use arithmetic operators

* run clippy --fix

* errors and is_zero

* more unnecessary parens

* bump ethers

* rm main.rs in library

* negatives

* minor nits

* revert negatives

.is_negative is not lt(0) but lte(0)

* last unnecessary parens

* propagate middleware error

* final touches

* final last unnecessary parens

* fix wrong placement

* fixed compilation errors, fixed failing tests

* fixed clippy warnings, ran formatting

Co-authored-by: 0xKitsune <77890308+0xKitsune@users.noreply.github.com>
Co-authored-by: Leyton <leytontaylor23@gmail.com>
Co-authored-by: 0xKitsune <0xKitsune@protonmail.com>
@0xKitsune 0xKitsune merged commit 64f44f0 into main Jan 3, 2023
0xKitsune added a commit that referenced this pull request Jan 20, 2023
* Development (#22)

* exposed min and max tick constants as public, updated version and cargo lock

* bumped version to 0.2.4

* bumping to v 0.2.5

* added constants for MIN_SQRT_RATIO and MAX_SQRT_RATIO, bumped version

* removed unneeded import

* Overflow/Underflow in tick_bit_map.rs, changed little endian/big endian to reflect least and most significant bits

* patching next_initialized_tick_within_one_word

* bumping version to 0.2.8

* updated mulmod to use ruint

* patched overflow on left shift during next_initialized_tick_within_one_word

* patched compute swap step, updated I256 -> U256 conversion

* patched mulmod, bumping version

* patching mulmod to allow overflowing mul

* patching muldiv  to allow overflowing/underflowing

* updated mulmod to use ruint

* fixed clippy warnings and merged main

* bumped to 0.2.14

* add_delta Patches and tests

* updated muldiv to use ruint

* patched bug that used exp instead of bitor, updating tests

* patched bitor to bitxor within muldiv, all tests passing

* added all univ3 tests for add delta

* added tests for sqrt price math

* removed unneeded test

* amount out delta tests written, something wrong with encode sqrt price

* added all tests for get amount out 0

* updating version

* moved tests for _get_amount_0_delta

* adding tests for test_get_next_sqrt_price_from_input

* added get amount 1 delta private

* updated tests

* patched test_get_next_sqrt_price_from_output test

* test_get_next_sqrt_price_from_input passing

* added more tests for get_next_sqrt_price_from_input, all passing

* updated tests

* added all tests for get_next_sqrt_price_from_output

* all tests passing for sqrt_price_math

* bumping version to 0.2.16

* Compute swap step unit test

* Pushing compute swap step parity unit tests

* Swap math tests

* Removing supes

* Bumping version

* Pushing changes in tick math

* Pushing changes

* patched get_sqrt_ratio_at_tick tests

* fixed typos, removed cross function

* bumped to 0.2.18

* added tests for msb and lsb

* added lsb and msb

* added all tests for msb

* lsb updated and all tests added

* updated next_initialized_tick_within_one_word to use msb and lsb

* Improve readability (#18)

* Development (#17)

* exposed min and max tick constants as public, updated version and cargo lock

* bumped version to 0.2.4

* bumping to v 0.2.5

* added constants for MIN_SQRT_RATIO and MAX_SQRT_RATIO, bumped version

* removed unneeded import

* Overflow/Underflow in tick_bit_map.rs, changed little endian/big endian to reflect least and most significant bits

* patching next_initialized_tick_within_one_word

* bumping version to 0.2.8

* updated mulmod to use ruint

* patched overflow on left shift during next_initialized_tick_within_one_word

* patched compute swap step, updated I256 -> U256 conversion

* patched mulmod, bumping version

* patching mulmod to allow overflowing mul

* patching muldiv  to allow overflowing/underflowing

* updated mulmod to use ruint

* fixed clippy warnings and merged main

* bumped to 0.2.14

Co-authored-by: Leyton <leytontaylor23@gmail.com>

* use arithmetic operators

* run clippy --fix

* errors and is_zero

* more unnecessary parens

* bump ethers

* rm main.rs in library

* negatives

* minor nits

* revert negatives

.is_negative is not lt(0) but lte(0)

* last unnecessary parens

* propagate middleware error

* final touches

* final last unnecessary parens

* fix wrong placement

* fixed compilation errors, fixed failing tests

* fixed clippy warnings, ran formatting

Co-authored-by: 0xKitsune <77890308+0xKitsune@users.noreply.github.com>
Co-authored-by: Leyton <leytontaylor23@gmail.com>
Co-authored-by: 0xKitsune <0xKitsune@protonmail.com>

* updated version to 0.2.19

* Patches in nextInitializedTickWithinWord

* patched next_initialized_tick_within_one_word and bumped version

* patched sqrt price math and swap math functions, bumped version to 0.2.22

Co-authored-by: Leyton <leytontaylor23@gmail.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>

* Seperated next_initialized_tick_within_one_word into two functions, one with an external call and one without

* Clippy and formatting

Co-authored-by: 0xKitsune <77890308+0xKitsune@users.noreply.github.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
0xKitsune added a commit that referenced this pull request Feb 1, 2023
* exposed min and max tick constants as public, updated version and cargo lock

* bumped version to 0.2.4

* bumping to v 0.2.5

* added constants for MIN_SQRT_RATIO and MAX_SQRT_RATIO, bumped version

* removed unneeded import

* Overflow/Underflow in tick_bit_map.rs, changed little endian/big endian to reflect least and most significant bits

* patching next_initialized_tick_within_one_word

* bumping version to 0.2.8

* updated mulmod to use ruint

* patched overflow on left shift during next_initialized_tick_within_one_word

* patched compute swap step, updated I256 -> U256 conversion

* patched mulmod, bumping version

* patching mulmod to allow overflowing mul

* patching muldiv  to allow overflowing/underflowing

* updated mulmod to use ruint

* fixed clippy warnings and merged main

* bumped to 0.2.14

* add_delta Patches and tests

* updated muldiv to use ruint

* patched bug that used exp instead of bitor, updating tests

* patched bitor to bitxor within muldiv, all tests passing

* added all univ3 tests for add delta

* added tests for sqrt price math

* removed unneeded test

* amount out delta tests written, something wrong with encode sqrt price

* added all tests for get amount out 0

* updating version

* moved tests for _get_amount_0_delta

* adding tests for test_get_next_sqrt_price_from_input

* added get amount 1 delta private

* updated tests

* patched test_get_next_sqrt_price_from_output test

* test_get_next_sqrt_price_from_input passing

* added more tests for get_next_sqrt_price_from_input, all passing

* updated tests

* added all tests for get_next_sqrt_price_from_output

* all tests passing for sqrt_price_math

* bumping version to 0.2.16

* Compute swap step unit test

* Pushing compute swap step parity unit tests

* Swap math tests

* Removing supes

* Bumping version

* Pushing changes in tick math

* Pushing changes

* patched get_sqrt_ratio_at_tick tests

* fixed typos, removed cross function

* bumped to 0.2.18

* added tests for msb and lsb

* added lsb and msb

* added all tests for msb

* lsb updated and all tests added

* updated next_initialized_tick_within_one_word to use msb and lsb

* Improve readability (#18)

* Development (#17)

* exposed min and max tick constants as public, updated version and cargo lock

* bumped version to 0.2.4

* bumping to v 0.2.5

* added constants for MIN_SQRT_RATIO and MAX_SQRT_RATIO, bumped version

* removed unneeded import

* Overflow/Underflow in tick_bit_map.rs, changed little endian/big endian to reflect least and most significant bits

* patching next_initialized_tick_within_one_word

* bumping version to 0.2.8

* updated mulmod to use ruint

* patched overflow on left shift during next_initialized_tick_within_one_word

* patched compute swap step, updated I256 -> U256 conversion

* patched mulmod, bumping version

* patching mulmod to allow overflowing mul

* patching muldiv  to allow overflowing/underflowing

* updated mulmod to use ruint

* fixed clippy warnings and merged main

* bumped to 0.2.14

Co-authored-by: Leyton <leytontaylor23@gmail.com>

* use arithmetic operators

* run clippy --fix

* errors and is_zero

* more unnecessary parens

* bump ethers

* rm main.rs in library

* negatives

* minor nits

* revert negatives

.is_negative is not lt(0) but lte(0)

* last unnecessary parens

* propagate middleware error

* final touches

* final last unnecessary parens

* fix wrong placement

* fixed compilation errors, fixed failing tests

* fixed clippy warnings, ran formatting

Co-authored-by: 0xKitsune <77890308+0xKitsune@users.noreply.github.com>
Co-authored-by: Leyton <leytontaylor23@gmail.com>
Co-authored-by: 0xKitsune <0xKitsune@protonmail.com>

* updated version to 0.2.19

* Patches in nextInitializedTickWithinWord

* patched next_initialized_tick_within_one_word and bumped version

* patched sqrt price math and swap math functions, bumped version to 0.2.22

* Tick word call removal (#25)

* Development (#22)

* exposed min and max tick constants as public, updated version and cargo lock

* bumped version to 0.2.4

* bumping to v 0.2.5

* added constants for MIN_SQRT_RATIO and MAX_SQRT_RATIO, bumped version

* removed unneeded import

* Overflow/Underflow in tick_bit_map.rs, changed little endian/big endian to reflect least and most significant bits

* patching next_initialized_tick_within_one_word

* bumping version to 0.2.8

* updated mulmod to use ruint

* patched overflow on left shift during next_initialized_tick_within_one_word

* patched compute swap step, updated I256 -> U256 conversion

* patched mulmod, bumping version

* patching mulmod to allow overflowing mul

* patching muldiv  to allow overflowing/underflowing

* updated mulmod to use ruint

* fixed clippy warnings and merged main

* bumped to 0.2.14

* add_delta Patches and tests

* updated muldiv to use ruint

* patched bug that used exp instead of bitor, updating tests

* patched bitor to bitxor within muldiv, all tests passing

* added all univ3 tests for add delta

* added tests for sqrt price math

* removed unneeded test

* amount out delta tests written, something wrong with encode sqrt price

* added all tests for get amount out 0

* updating version

* moved tests for _get_amount_0_delta

* adding tests for test_get_next_sqrt_price_from_input

* added get amount 1 delta private

* updated tests

* patched test_get_next_sqrt_price_from_output test

* test_get_next_sqrt_price_from_input passing

* added more tests for get_next_sqrt_price_from_input, all passing

* updated tests

* added all tests for get_next_sqrt_price_from_output

* all tests passing for sqrt_price_math

* bumping version to 0.2.16

* Compute swap step unit test

* Pushing compute swap step parity unit tests

* Swap math tests

* Removing supes

* Bumping version

* Pushing changes in tick math

* Pushing changes

* patched get_sqrt_ratio_at_tick tests

* fixed typos, removed cross function

* bumped to 0.2.18

* added tests for msb and lsb

* added lsb and msb

* added all tests for msb

* lsb updated and all tests added

* updated next_initialized_tick_within_one_word to use msb and lsb

* Improve readability (#18)

* Development (#17)

* exposed min and max tick constants as public, updated version and cargo lock

* bumped version to 0.2.4

* bumping to v 0.2.5

* added constants for MIN_SQRT_RATIO and MAX_SQRT_RATIO, bumped version

* removed unneeded import

* Overflow/Underflow in tick_bit_map.rs, changed little endian/big endian to reflect least and most significant bits

* patching next_initialized_tick_within_one_word

* bumping version to 0.2.8

* updated mulmod to use ruint

* patched overflow on left shift during next_initialized_tick_within_one_word

* patched compute swap step, updated I256 -> U256 conversion

* patched mulmod, bumping version

* patching mulmod to allow overflowing mul

* patching muldiv  to allow overflowing/underflowing

* updated mulmod to use ruint

* fixed clippy warnings and merged main

* bumped to 0.2.14

Co-authored-by: Leyton <leytontaylor23@gmail.com>

* use arithmetic operators

* run clippy --fix

* errors and is_zero

* more unnecessary parens

* bump ethers

* rm main.rs in library

* negatives

* minor nits

* revert negatives

.is_negative is not lt(0) but lte(0)

* last unnecessary parens

* propagate middleware error

* final touches

* final last unnecessary parens

* fix wrong placement

* fixed compilation errors, fixed failing tests

* fixed clippy warnings, ran formatting

Co-authored-by: 0xKitsune <77890308+0xKitsune@users.noreply.github.com>
Co-authored-by: Leyton <leytontaylor23@gmail.com>
Co-authored-by: 0xKitsune <0xKitsune@protonmail.com>

* updated version to 0.2.19

* Patches in nextInitializedTickWithinWord

* patched next_initialized_tick_within_one_word and bumped version

* patched sqrt price math and swap math functions, bumped version to 0.2.22

Co-authored-by: Leyton <leytontaylor23@gmail.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>

* Seperated next_initialized_tick_within_one_word into two functions, one with an external call and one without

* Clippy and formatting

Co-authored-by: 0xKitsune <77890308+0xKitsune@users.noreply.github.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>

* bumped version to 0.2.23

* removed async from next_initialized_tick_within_one_word

---------

Co-authored-by: Leyton <leytontaylor23@gmail.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants