Skip to content

Commit 183081c

Browse files
authored
Expose pythnet message buffer idls (#865)
1 parent 31e8d02 commit 183081c

File tree

28 files changed

+2696
-2392
lines changed

28 files changed

+2696
-2392
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Message Buffer IDL Check
2+
on:
3+
pull_request:
4+
paths:
5+
- pythnet/message_buffer/**
6+
push:
7+
branches:
8+
- main
9+
paths:
10+
- pythnet/message_buffer/**
11+
jobs:
12+
abi-check:
13+
name: Check Message Buffer IDL files are up to date
14+
runs-on: ubuntu-latest
15+
defaults:
16+
run:
17+
working-directory: pythnet/message_buffer
18+
steps:
19+
- name: Checkout sources
20+
uses: actions/checkout@v3
21+
- uses: actions-rs/toolchain@v1
22+
with:
23+
profile: minimal
24+
toolchain: nightly-2023-03-01
25+
components: rustfmt, clippy
26+
- name: Install Solana
27+
run: |
28+
sh -c "$(curl -sSfL https://release.solana.com/v1.14.18/install)"
29+
echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
30+
- name: Install Anchor
31+
run: |
32+
cargo install --git https://github.com/coral-xyz/anchor --tag v0.27.0 anchor-cli --locked
33+
- name: Build and generate IDLs
34+
run: anchor build
35+
- name: Copy anchor target files
36+
run: cp ./target/idl/message_buffer.json idl/ && cp ./target/types/message_buffer.ts idl/
37+
- name: Run prettier (to avoid pre-commit failures)
38+
run: |
39+
npx prettier --write "./idl/*"
40+
- name: Check IDL changes
41+
# Fails if the IDL files are not up to date. Please use anchor build to regenerate the IDL files for
42+
# the current version of the contract and update idl directory.
43+
run: git diff --exit-code idl/*

governance/multisig_wh_message_builder/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"exclude": ["node_modules", "**/__tests__/*"],
55
"compilerOptions": {
66
"rootDir": "src/",
7-
"outDir": "./lib",
8-
"skipLibCheck": true
7+
"outDir": "./lib"
98
}
109
}

governance/xc_admin/packages/crank_executor/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"exclude": ["node_modules", "**/__tests__/*"],
55
"compilerOptions": {
66
"rootDir": "src/",
7-
"outDir": "./lib",
8-
"skipLibCheck": true
7+
"outDir": "./lib"
98
}
109
}

governance/xc_admin/packages/crank_pythnet_relayer/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"exclude": ["node_modules", "**/__tests__/*"],
55
"compilerOptions": {
66
"rootDir": "src/",
7-
"outDir": "./lib",
8-
"skipLibCheck": true
7+
"outDir": "./lib"
98
}
109
}

governance/xc_admin/packages/proposer_server/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"exclude": ["node_modules", "**/__tests__/*"],
55
"compilerOptions": {
66
"rootDir": "src/",
7-
"outDir": "./lib",
8-
"skipLibCheck": true
7+
"outDir": "./lib"
98
}
109
}

governance/xc_admin/packages/xc_admin_cli/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"exclude": ["node_modules", "**/__tests__/*"],
55
"compilerOptions": {
66
"rootDir": "src/",
7-
"outDir": "./lib",
8-
"skipLibCheck": true
7+
"outDir": "./lib"
98
}
109
}

governance/xc_admin/packages/xc_admin_common/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"exclude": ["node_modules", "**/__tests__/*"],
55
"compilerOptions": {
66
"rootDir": "src/",
7-
"outDir": "./lib",
8-
"skipLibCheck": true
7+
"outDir": "./lib"
98
}
109
}

governance/xc_admin/packages/xc_admin_frontend/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"target": "es2020",
44
"lib": ["dom", "dom.iterable", "esnext"],
55
"allowJs": true,
6-
"skipLibCheck": true,
76
"strict": true,
87
"forceConsistentCasingInFileNames": true,
98
"noEmit": true,
@@ -13,7 +12,8 @@
1312
"resolveJsonModule": true,
1413
"isolatedModules": true,
1514
"jsx": "preserve",
16-
"incremental": true
15+
"incremental": true,
16+
"skipLibCheck": true
1717
},
1818
"include": [
1919
"next-env.d.ts",

governance/xc_governance_sdk_js/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"exclude": ["node_modules", "**/__tests__/*"],
55
"compilerOptions": {
66
"rootDir": "src/",
7-
"outDir": "./lib",
8-
"skipLibCheck": true
7+
"outDir": "./lib"
98
}
109
}

0 commit comments

Comments
 (0)