Skip to content

Commit

Permalink
Expose pythnet message buffer idls (#865)
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-bahjati authored Jun 9, 2023
1 parent 31e8d02 commit 183081c
Show file tree
Hide file tree
Showing 28 changed files with 2,696 additions and 2,392 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/message-buffer-idl-check.yaml
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/*
3 changes: 1 addition & 2 deletions governance/multisig_wh_message_builder/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"exclude": ["node_modules", "**/__tests__/*"],
"compilerOptions": {
"rootDir": "src/",
"outDir": "./lib",
"skipLibCheck": true
"outDir": "./lib"
}
}
3 changes: 1 addition & 2 deletions governance/xc_admin/packages/crank_executor/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"exclude": ["node_modules", "**/__tests__/*"],
"compilerOptions": {
"rootDir": "src/",
"outDir": "./lib",
"skipLibCheck": true
"outDir": "./lib"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"exclude": ["node_modules", "**/__tests__/*"],
"compilerOptions": {
"rootDir": "src/",
"outDir": "./lib",
"skipLibCheck": true
"outDir": "./lib"
}
}
3 changes: 1 addition & 2 deletions governance/xc_admin/packages/proposer_server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"exclude": ["node_modules", "**/__tests__/*"],
"compilerOptions": {
"rootDir": "src/",
"outDir": "./lib",
"skipLibCheck": true
"outDir": "./lib"
}
}
3 changes: 1 addition & 2 deletions governance/xc_admin/packages/xc_admin_cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"exclude": ["node_modules", "**/__tests__/*"],
"compilerOptions": {
"rootDir": "src/",
"outDir": "./lib",
"skipLibCheck": true
"outDir": "./lib"
}
}
3 changes: 1 addition & 2 deletions governance/xc_admin/packages/xc_admin_common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"exclude": ["node_modules", "**/__tests__/*"],
"compilerOptions": {
"rootDir": "src/",
"outDir": "./lib",
"skipLibCheck": true
"outDir": "./lib"
}
}
4 changes: 2 additions & 2 deletions governance/xc_admin/packages/xc_admin_frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"target": "es2020",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
Expand All @@ -13,7 +12,8 @@
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true
"incremental": true,
"skipLibCheck": true
},
"include": [
"next-env.d.ts",
Expand Down
3 changes: 1 addition & 2 deletions governance/xc_governance_sdk_js/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"exclude": ["node_modules", "**/__tests__/*"],
"compilerOptions": {
"rootDir": "src/",
"outDir": "./lib",
"skipLibCheck": true
"outDir": "./lib"
}
}
Loading

2 comments on commit 183081c

@vercel
Copy link

@vercel vercel bot commented on 183081c Jun 9, 2023

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

@vercel
Copy link

@vercel vercel bot commented on 183081c Jun 9, 2023

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

Please sign in to comment.