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

spl: Move permissioned market proxy #962

Merged
merged 11 commits into from
Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
56 changes: 27 additions & 29 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:
branches:
- master
env:
env:
SOLANA_CLI_VERSION: 1.8.0
NODE_VERSION: 17.0.1

Expand Down Expand Up @@ -36,9 +36,9 @@ jobs:
- run: cargo fmt -- --check
- run: cargo clippy --all-targets -- -D warnings
- run: cargo test
- run: cd ts && yarn
- run: cd ts && yarn test
- run: cd ts && yarn lint
- run: cd ts && yarn
- run: cd ts && yarn test
- run: cd ts && yarn lint

setup-anchor-cli:
name: Setup Anchor cli
Expand Down Expand Up @@ -135,12 +135,12 @@ jobs:
name: anchor-binary
path: ~/.cargo/bin/
- run: chmod +rwx ~/.cargo/bin/anchor
- run: cd ${{ matrix.node.path }} && anchor build
- run: cd ${{ matrix.node.path }} && anchor build
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.node.name }}
path: ${{ matrix.node.path }}target/deploy/${{ matrix.node.name }}

test-client-example:
needs: setup-client-example
name: Client Example Test
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
path: client/example/target
key: cargo-${{ runner.os }}-client/example-${{ env.ANCHOR_VERSION }}
- uses: ./.github/actions/setup-solana/
- run: cd client/example && ./run-test.sh
- run: cd client/example && ./run-test.sh

test-programs:
needs: setup-anchor-cli
Expand All @@ -186,45 +186,43 @@ jobs:
strategy:
matrix:
node:
- cmd: cd tests/sysvars && anchor test
- cmd: cd tests/sysvars && anchor test
path: tests/sysvars
- cmd: cd tests/composite && anchor test
- cmd: cd tests/composite && anchor test
path: tests/composite
- cmd: cd tests/errors && anchor test
- cmd: cd tests/errors && anchor test
path: tests/errors
- cmd: cd tests/spl/token-proxy && anchor test
- cmd: cd tests/spl/token-proxy && anchor test
path: spl/token-proxy
- cmd: cd tests/multisig && anchor test
- cmd: cd tests/multisig && anchor test
path: tests/multisig
- cmd: cd tests/interface && anchor test
- cmd: cd tests/interface && anchor test
path: tests/interface
- cmd: cd tests/lockup && anchor test
- cmd: cd tests/lockup && anchor test
path: tests/lockup
- cmd: cd tests/permissioned-markets/deps/serum-dex/dex && cargo build-bpf && cd ../../../ && anchor test
path: tests/permissioned-markets
- cmd: cd tests/swap/deps/serum-dex/dex && cargo build-bpf && cd ../../../ && anchor test
- cmd: cd tests/swap/deps/serum-dex/dex && cargo build-bpf && cd ../../../ && anchor test
path: tests/swap
- cmd: cd tests/escrow && anchor test
- cmd: cd tests/escrow && anchor test
path: tests/escrow
- cmd: cd tests/pyth && anchor test
- cmd: cd tests/pyth && anchor test
path: tests/pyth
- cmd: cd tests/system-accounts && anchor test
- cmd: cd tests/system-accounts && anchor test
path: tests/system-accounts
- cmd: cd tests/misc && anchor test
- cmd: cd tests/misc && anchor test
path: tests/misc
- cmd: cd tests/events && anchor test
- cmd: cd tests/events && anchor test
path: tests/events
- cmd: cd tests/cashiers-check && anchor test
- cmd: cd tests/cashiers-check && anchor test
path: tests/cashiers-check
- cmd: cd tests/typescript && anchor test
- cmd: cd tests/typescript && anchor test
path: tests/typescript
- cmd: cd tests/zero-copy && anchor test
- cmd: cd tests/zero-copy && anchor test
path: tests/zero-copy
- cmd: cd tests/chat && anchor test
- cmd: cd tests/chat && anchor test
path: tests/chat
- cmd: cd tests/ido-pool && anchor test
- cmd: cd tests/ido-pool && anchor test
path: tests/ido-pool
- cmd: cd tests/cfo && anchor run test-with-build
- cmd: cd tests/cfo && anchor run test-with-build
path: tests/cfo
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -255,6 +253,6 @@ jobs:
with:
path: ${{ matrix.node.path }}/target
key: cargo-${{ runner.os }}-${{ matrix.node.path }}-${{ env.ANCHOR_VERSION }}

- run: ${{ matrix.node.cmd }}
name: ${{ matrix.node.path }} program test
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ incremented for features.
* cli: Add fields `os` and `cpu` to npm package `@project-serum/anchor-cli` ([#976](https://github.com/project-serum/anchor/pull/976)).
* cli: Allow specify output directory for TypeScript IDL ([#940](https://github.com/project-serum/anchor/pull/940)).

### Breaking

* spl: Move permissioned markets into dex repository ([#962](https://github.com/project-serum/anchor/pull/962)).

## [0.18.0] - 2021-10-24

### Features
Expand Down
2 changes: 2 additions & 0 deletions spl/src/dex/cpi.rs → spl/src/dex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ use serum_dex::matching::{OrderType, Side};
use std::io::Write;
use std::num::NonZeroU64;

pub use serum_dex;

#[cfg(not(feature = "devnet"))]
anchor_lang::solana_program::declare_id!("9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin");

Expand Down
Loading