Skip to content

Commit

Permalink
Merge pull request #53 from osmosis-labs/value-range
Browse files Browse the repository at this point in the history
Add ValueRange type
  • Loading branch information
ethanfrey authored Jun 19, 2023
2 parents 7a35a54 + 884673a commit 470f726
Show file tree
Hide file tree
Showing 5 changed files with 405 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.65.0
toolchain: 1.70.0
target: wasm32-unknown-unknown
override: true

Expand All @@ -28,7 +28,7 @@ jobs:
- name: Run build
uses: actions-rs/cargo@v1
with:
toolchain: 1.65.0
toolchain: 1.70.0
command: build
args: --workspace
env:
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Run tests
uses: actions-rs/cargo@v1
with:
toolchain: 1.65.0
toolchain: 1.70.0
command: test
args: --workspace
env:
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Compile WASM contract
uses: actions-rs/cargo@v1
with:
toolchain: 1.65.0
toolchain: 1.70.0
command: wasm
env:
RUSTFLAGS: "-C link-arg=-s"
Expand All @@ -62,7 +62,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.65.0
toolchain: 1.70.0
override: true
components: rustfmt, clippy

Expand All @@ -74,13 +74,13 @@ jobs:
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
toolchain: 1.65.0
toolchain: 1.70.0
command: fmt
args: --all -- --check

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
toolchain: 1.65.0
toolchain: 1.70.0
command: clippy
args: --all-targets -- -D warnings
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.65.0
toolchain: 1.70.0
target: wasm32-unknown-unknown
override: true

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ schema/
schemas/

.DS_Store
.vscode
.idea

node_modules
2 changes: 2 additions & 0 deletions packages/sync/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
mod locks;
mod range;

pub use locks::{LockError, LockState, Lockable};
pub use range::{max_range, min_range, spread, RangeError, ValueRange};
Loading

0 comments on commit 470f726

Please sign in to comment.