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

audit feedback #216

Merged
merged 56 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
ee1f7b9
two party holder stores emergency committee address on instantiation
bekauz Mar 13, 2024
c4db8cd
single party holder lockup config update assertions fix
bekauz Mar 13, 2024
68758e6
native router no longer reserves ntrn for gas
bekauz Mar 13, 2024
b49f3ff
interchain router distribute fallback expects sender to cover the ibc…
bekauz Mar 14, 2024
3f3e7fe
querying neutron ibc tx and ica registration fees on demand; removing…
bekauz Mar 14, 2024
eb12937
astro liquid pooler withdraw handles non-lp token withdrawal
bekauz Mar 14, 2024
035d4b7
remote chain splitter routes any rounding leftover denoms to first sp…
bekauz Mar 15, 2024
dbf9bd0
two party holder validation for lockup expiration to be after the dep…
bekauz Mar 15, 2024
189907a
two party holder party host_addr and contribution amount validation
bekauz Mar 15, 2024
d1bff06
interchain router clock and destination receiver address validation
bekauz Mar 15, 2024
5e102d6
native splitter validates clock address on instantiation
bekauz Mar 15, 2024
545c83e
swap holder party address validation; native receiver config returns …
bekauz Mar 15, 2024
de1c3cb
astroport liquid pooler validates withdraw percentage range
bekauz Mar 15, 2024
7020619
single party holder validates lockup config
bekauz Mar 15, 2024
91e77aa
validating split receiver addresses & shares in native and remote cha…
bekauz Mar 15, 2024
ae907d8
top level covenant contract codes config migration
bekauz Mar 15, 2024
a00001a
swap covenant ensures party contribution denom on neutron is explicit…
bekauz Mar 16, 2024
7efe675
setting withdraw state on single party holder emergency withdrawal
bekauz Mar 16, 2024
6eba1fd
swap covenant refunds parties by bank sending respective denoms to pr…
bekauz Mar 16, 2024
5f41d28
using verify_clock to validate clock address in swap holder
bekauz Mar 17, 2024
6729805
two party holder migration split validation
bekauz Mar 17, 2024
072d9c7
swap and two party covenant conditional ibc forwarder instantiate2 co…
bekauz Mar 17, 2024
36618bf
two party holder dequeues on completion
bekauz Mar 17, 2024
ee820ad
removing commented code blocks from native router and single party ho…
bekauz Mar 17, 2024
72711c8
removing debug messages
bekauz Mar 17, 2024
a561360
removing todo!() macros
bekauz Mar 17, 2024
93d3265
removing old tests
bekauz Mar 17, 2024
54233e9
removing unused deps; clippy; fmt
bekauz Mar 18, 2024
18c66e2
removing remote chain splitter complete state; clearing INTERCHAIN_AC…
bekauz Mar 18, 2024
a1452af
removing ibc forwarder complete state
bekauz Mar 18, 2024
1a52367
removing dead code
bekauz Mar 18, 2024
bb5107b
enable fallback denom recovery from ibc-forwarder and remote-chain-sp…
bekauz Mar 18, 2024
1222928
astro liquid pooler validating pair on instantiation instead of on de…
bekauz Mar 18, 2024
dda2801
astroport liquid pooler handles xyk pool single-side liquidity provis…
bekauz Mar 19, 2024
08d864a
soft remote chain address validation in interchain-router and remote-…
bekauz Mar 19, 2024
1e74556
streamlining code duplicates from contracts that deal with icas
bekauz Mar 20, 2024
30374dc
moving ibc fee query and assertion to utils
bekauz Mar 20, 2024
dffb4d2
removing submsg events from astroport liquid pooler reply attributes
bekauz Mar 28, 2024
59b723d
two party POL holder refunds from Complete state
bekauz Apr 5, 2024
b5a096b
swap holder indefinitely attempts party deposit refunds from expired …
bekauz Apr 8, 2024
55a03bd
astro liquid pooler errors out if either of expected pool asset balan…
bekauz Apr 8, 2024
574fa1f
single party holder withdrawer and withdraw_to fields no longer optional
bekauz Apr 8, 2024
9f04b58
adding astro liquid pooler xyk single side lp limits validation; all …
bekauz Apr 9, 2024
4935764
using common ica id across all ica-enabled contracts
bekauz Apr 10, 2024
e9ce3a3
adding osmo outpost migration entrypoint; add missing code id migrate…
bekauz Apr 10, 2024
e3fc870
Tweak ci action (#201)
stiiifff Apr 10, 2024
cac6109
using decimal instead of uint64 for party allocation in 2p covenant i…
bekauz Apr 12, 2024
2adc5b2
pull CONTRACT_NAME from cargo via env!; adjust cargo package names
bekauz Apr 15, 2024
af9a159
osmo liquid pooler option to withdraw party denoms from proxy
bekauz Apr 16, 2024
f6c7386
wip: interchaintest adjustments
bekauz Apr 16, 2024
1b88a23
osmo liquid pooler handles withdrawals via pending withdraw state
bekauz Apr 18, 2024
20099fe
handling pre and post-proxy funding party denom withdraw cases in osm…
bekauz Apr 19, 2024
eeac611
revert pre & post-funding proxy withdraw branching
bekauz Apr 19, 2024
570122e
adjust ictests to new instantiate msgs
bekauz Apr 22, 2024
d8c60cc
ci fix
bekauz Apr 22, 2024
9363541
extending e2e test execution limit to 60m
bekauz Apr 23, 2024
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
84 changes: 40 additions & 44 deletions .github/workflows/basic.yml → .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,75 +1,71 @@
# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml
on: [push, pull_request]
name: Check Build and Tests

name: Basic
on:
push:
branches: [ main ]
pull_request:

env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
workflow_dispatch:

jobs:
unit-test:
name: Test Suite
check:
runs-on: ubuntu-latest
steps:
- name: checkout sources
uses: actions/checkout@v3

- name: Install latest stable toolchain
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.71.0
target: wasm32-unknown-unknown
toolchain: 1.76.0
override: true
components: rustfmt, clippy

- name: Run tests
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: test
args: --locked
command: fmt
args: --all -- --check

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings

# - name: Generate Schema
# run: ./scripts/schema.sh

# - name: Schema Changes
# # fails if any changes not committed
# run: git diff --exit-code schema

lints:
name: Lints
test:
runs-on: ubuntu-latest
steps:
- name: checkout sources
- name: Checkout sources
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.71.0
toolchain: 1.76.0
target: wasm32-unknown-unknown
override: true
components: rustfmt, clippy

- name: Run cargo fmt
- name: Run unit tests
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
command: test
args: --locked
env:
RUST_BACKTRACE: 1

- name: Run cargo clippy
- name: Compile WASM contract
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings

# schema:
# name: Schema
# runs-on: ubuntu-latest
# steps:
# - name: Checkout sources
# uses: actions/checkout@v2

# - name: Install stable toolchain
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: 1.66.0
# override: true
# components: rustfmt, clippy

# - name: Gen schemas
# run: ./scripts/schema.sh
command: wasm
args: --locked
env:
RUSTFLAGS: "-C link-arg=-s"
4 changes: 2 additions & 2 deletions .github/workflows/interchaintest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ jobs:
uses: extractions/setup-just@v1

- name: two party POL native & interchain parties
run: mkdir interchaintest/two-party-pol/wasms && cp -R artifacts/*.wasm interchaintest/two-party-pol/wasms && cp -R interchaintest/wasms/astroport/*.wasm interchaintest/two-party-pol/wasms && just local-e2e two-party-pol TestTwoPartyNativePartyPol
run: mkdir -p interchaintest/two-party-pol/wasms && cp -R artifacts/*.wasm interchaintest/two-party-pol/wasms && cp -R interchaintest/wasms/astroport/*.wasm interchaintest/two-party-pol/wasms && just local-e2e two-party-pol TestTwoPartyNativePartyPol

- name: two party POL two interchain parties
run: mkdir interchaintest/two-party-pol/wasms && cp -R artifacts/*.wasm interchaintest/two-party-pol/wasms && cp -R interchaintest/wasms/astroport/*.wasm interchaintest/two-party-pol/wasms && just local-e2e two-party-pol TestTwoPartyPol
run: mkdir -p interchaintest/two-party-pol/wasms && cp -R artifacts/*.wasm interchaintest/two-party-pol/wasms && cp -R interchaintest/wasms/astroport/*.wasm interchaintest/two-party-pol/wasms && just local-e2e two-party-pol TestTwoPartyPol

Loading
Loading