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

Signed integers #1718

Merged
merged 33 commits into from
Jun 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
78c9adf
Port big uint types to bnum
chipshort Jun 7, 2023
6b9b234
Implement Int512
chipshort Jun 7, 2023
1f157e7
Update ci rust version
chipshort Jun 7, 2023
560d1d9
Disable coverage check temporarily
chipshort Jun 7, 2023
ee059cd
Simplify uint impls
chipshort Jun 7, 2023
77be691
Cleanup int512
chipshort Jun 9, 2023
776d629
Update rust in github workflow
chipshort Jun 9, 2023
92ef1c6
Improve int512 tests
chipshort Jun 12, 2023
59f7f83
Add Shl and Neg impl for Int512
chipshort Jun 12, 2023
bcbb3e1
Int512::checked_div_euclid
chipshort Jun 13, 2023
98e877f
Add checked_neg to Int512
chipshort Jun 13, 2023
630e299
Remove uint dependency
chipshort Jun 14, 2023
d530dbc
Use forward_ref macros for Int512 impls
chipshort Jun 14, 2023
5bcb9d2
Improve DivisionError
chipshort Jun 14, 2023
6b38adf
Improve error string
chipshort Jun 14, 2023
67fe1b4
Inline Int512 constructor
chipshort Jun 14, 2023
c65232f
Add non_exhaustive to OverflowOperation
chipshort Jun 14, 2023
7a379c5
Simplify tests
chipshort Jun 28, 2023
ac2b0be
Add Int256
chipshort Jun 28, 2023
49867d9
Fix typo
chipshort Jun 28, 2023
b395d8e
Add Int128
chipshort Jun 28, 2023
a5ae44a
Add Int64
chipshort Jun 28, 2023
8d89684
Add trait impl check for signed ints
chipshort Jun 28, 2023
4d560c9
Fix left-shift error message
chipshort Jun 29, 2023
87d685c
Avoid vec allocation
chipshort Jun 29, 2023
bdb28e2
Fix integer conversions
chipshort Jun 29, 2023
8d5a243
Fix Int64 and Int128 Display impls
chipshort Jun 29, 2023
4ecaea7
Improve Int64 and Int128 constructor
chipshort Jun 29, 2023
3c1abf3
Remove breaking checked_neg implementations
chipshort Jun 29, 2023
e2b7437
Actually test constructors
chipshort Jun 29, 2023
e16f13d
Don't fix bnum version
chipshort Jun 29, 2023
a173bb8
Add signed int trait check back in
chipshort Jun 29, 2023
6f01a81
Add changelog entry
chipshort Jun 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 73 additions & 73 deletions .circleci/config.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.60.0
toolchain: 1.65.0
target: wasm32-unknown-unknown
profile: minimal
override: true
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@ and this project adheres to
- cosmwasm-std: Add trait functions `Storage::range_keys` and
`Storage::range_values`. The default implementations just use
`Storage::range`. Later this can be implemented more efficiently. ([#1748])
- cosmwasm-std: Add `Int64`, `Int128`, `Int256` and `Int512` signed integer
types. ([#1718])

[#1593]: https://github.com/CosmWasm/cosmwasm/pull/1593
[#1635]: https://github.com/CosmWasm/cosmwasm/pull/1635
[#1647]: https://github.com/CosmWasm/cosmwasm/pull/1647
[#1684]: https://github.com/CosmWasm/cosmwasm/pull/1684
[#1687]: https://github.com/CosmWasm/cosmwasm/pull/1687
[#1718]: https://github.com/CosmWasm/cosmwasm/pull/1718
[#1727]: https://github.com/CosmWasm/cosmwasm/issues/1727
[#1747]: https://github.com/CosmWasm/cosmwasm/pull/1747
[#1748]: https://github.com/CosmWasm/cosmwasm/pull/1748
Expand Down
32 changes: 7 additions & 25 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 7 additions & 25 deletions contracts/burner/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 7 additions & 25 deletions contracts/crypto-verify/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 7 additions & 25 deletions contracts/cyberpunk/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 7 additions & 25 deletions contracts/floaty/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading