Skip to content

Commit

Permalink
Merge pull request #46 from hadronlabs-org/feat/LIDO-102-multiple-unb…
Browse files Browse the repository at this point in the history
…onded-batches

multiple unbonded batches
  • Loading branch information
oldremez authored Mar 23, 2024
2 parents 84e898c + dfeb595 commit d689435
Show file tree
Hide file tree
Showing 28 changed files with 1,426 additions and 267 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
inputs:
toolchain:
description: 'Default Rust Toolchain'
default: "1.73.0"
default: "1.75.0"
required: true
type: string
target:
Expand All @@ -31,7 +31,7 @@ on:
type: string

env:
TOOLCHAIN: ${{ inputs.toolchain || '1.73.0' }}
TOOLCHAIN: ${{ inputs.toolchain || '1.75.0' }}
TARGET: ${{ inputs.target || 'wasm32-unknown-unknown' }}
REF: ${{ github.event_name == 'push' && github.ref || inputs.branch || 'main' }}
ID: ${{ inputs.id || 'scheduled' }}
Expand All @@ -46,7 +46,7 @@ jobs:
ref: ${{ env.REF }}
fetch-depth: 0
- name: Save SHA
run: echo "sha=$(/usr/bin/git log -1 --format='%H')" >> $GITHUB_ENV
run: echo "sha=$(/usr/bin/git log -1 --format='%H')" >> $GITHUB_ENV
- name: Check input type
run: |
if git show-ref --quiet --heads $REF; then
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ jobs:
fetch-depth: 1
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.73.0
toolchain: 1.75.0
components: clippy
profile: minimal
override: true
target: wasm32-unknown-unknown
- run: cargo fetch --verbose
- run: cargo clippy --all --all-targets -- -D warnings
- run: cargo clippy --lib --target wasm32-unknown-unknown -- -D warnings

rustfmt:
name: Actions - rustfmt
Expand All @@ -31,7 +33,7 @@ jobs:
fetch-depth: 1
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.73.0
toolchain: 1.75.0
components: rustfmt
profile: minimal
override: true
Expand All @@ -44,7 +46,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.73.0
toolchain: 1.75.0
profile: minimal
- run: cargo fetch --verbose
- run: cargo build
Expand All @@ -62,7 +64,7 @@ jobs:
fetch-depth: 1
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.73.0
toolchain: 1.75.0
profile: minimal
override: true
- name: Setup node
Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ test:
@cargo test

clippy:
@rustup target add wasm32-unknown-unknown
@cargo clippy --all --all-targets -- -D warnings
@cargo clippy --lib --target wasm32-unknown-unknown -- -D warnings

fmt:
@cargo fmt -- --check
Expand All @@ -19,15 +21,15 @@ compile:
--mount type=volume,source="$(notdir $(CURDIR))_cache",target=/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
--platform linux/amd64 \
cosmwasm/workspace-optimizer:0.15.0
cosmwasm/workspace-optimizer:0.15.1
@sudo chown -R $(shell id -u):$(shell id -g) artifacts

compile_arm64:
@docker run --rm -v "$(CURDIR)":/code \
--mount type=volume,source="$(notdir $(CURDIR))_cache",target=/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
--platform linux/arm64 \
cosmwasm/workspace-optimizer-arm64:0.15.0
cosmwasm/workspace-optimizer-arm64:0.15.1
@cd artifacts && for file in *-aarch64.wasm; do cp -f "$$file" "$${file%-aarch64.wasm}.wasm"; done

check_contracts:
Expand Down
Loading

0 comments on commit d689435

Please sign in to comment.