Skip to content

Commit

Permalink
✨ Let there be contracts for Skip Swap
Browse files Browse the repository at this point in the history
Co-authored-by: larry0x <[email protected]>
Co-authored-by: Keefer Taylor <[email protected]>
Co-authored-by: William Shao <[email protected]>
  • Loading branch information
4 people committed Jun 29, 2023
0 parents commit 08e2ff8
Show file tree
Hide file tree
Showing 60 changed files with 8,516 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
58 changes: 58 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build / Test On PR

on: [pull_request]

jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: wasm32-unknown-unknown

- name: Check for errors
# use wasm32 target so that if we have included wasm-incompatible
# dependencies, it will result in CI failure
run: cargo check --locked --target wasm32-unknown-unknown
env:
RUST_BACKTRACE: 1

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

- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

- name: Run tests
run: cargo test --lib --locked --tests
env:
RUST_BACKTRACE: 1

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: clippy

- name: Run clippy
# use nightly toolchain so that we get all the latest linter features
run: cargo +nightly clippy --tests -- -D warnings
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Build results
target
artifacts
/schema

# Cargo+Git helper file (https://github.com/rust-lang/cargo/blob/0.44.1/src/cargo/sources/git/utils.rs#L320-L327)
.cargo-ok

# Text file backups
**/*.rs.bk

# macOS
.DS_Store

# IDEs
*.iml
.idea

# Things not ready yet
LICENSE
NOTICE
.cargo
.circleci
.editorconfig

# Python venv
venv
.venv
.env
Loading

0 comments on commit 08e2ff8

Please sign in to comment.