-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose pythnet message buffer idls (#865)
- Loading branch information
1 parent
31e8d02
commit 183081c
Showing
28 changed files
with
2,696 additions
and
2,392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Message Buffer IDL Check | ||
on: | ||
pull_request: | ||
paths: | ||
- pythnet/message_buffer/** | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- pythnet/message_buffer/** | ||
jobs: | ||
abi-check: | ||
name: Check Message Buffer IDL files are up to date | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: pythnet/message_buffer | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: nightly-2023-03-01 | ||
components: rustfmt, clippy | ||
- name: Install Solana | ||
run: | | ||
sh -c "$(curl -sSfL https://release.solana.com/v1.14.18/install)" | ||
echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH | ||
- name: Install Anchor | ||
run: | | ||
cargo install --git https://github.com/coral-xyz/anchor --tag v0.27.0 anchor-cli --locked | ||
- name: Build and generate IDLs | ||
run: anchor build | ||
- name: Copy anchor target files | ||
run: cp ./target/idl/message_buffer.json idl/ && cp ./target/types/message_buffer.ts idl/ | ||
- name: Run prettier (to avoid pre-commit failures) | ||
run: | | ||
npx prettier --write "./idl/*" | ||
- name: Check IDL changes | ||
# Fails if the IDL files are not up to date. Please use anchor build to regenerate the IDL files for | ||
# the current version of the contract and update idl directory. | ||
run: git diff --exit-code idl/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
183081c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
xc-admin-frontend – ./
xc-admin-frontend-pyth-web.vercel.app
xc-admin-frontend.vercel.app
xc-admin-frontend-git-main-pyth-web.vercel.app
183081c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
example-oracle-amm – ./target_chains/ethereum/examples/oracle_swap/app
example-oracle-amm-pyth-web.vercel.app
example-oracle-amm-git-main-pyth-web.vercel.app
pyth-example-oracle-amm.vercel.app