[governance] move governance related components under this directory (#489)
* [governance] bring related stuff in governance dir * [governance] fix changes
|
@ -2,13 +2,13 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- target-chains/ethereum/**
|
- target-chains/ethereum/**
|
||||||
- third_party/pyth/xc-governance-sdk-js/**
|
- governance/xc-governance-sdk-js/**
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- target-chains/ethereum/**
|
- target-chains/ethereum/**
|
||||||
- third_party/pyth/xc-governance-sdk-js/**
|
- governance/xc-governance-sdk-js/**
|
||||||
|
|
||||||
name: Ethereum Contract
|
name: Ethereum Contract
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ jobs:
|
||||||
|
|
||||||
- name: Install XC-governance sdk dependencies
|
- name: Install XC-governance sdk dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
working-directory: third_party/pyth/xc-governance-sdk-js
|
working-directory: governance/xc-governance-sdk-js
|
||||||
|
|
||||||
- name: Install contract npm dependencies
|
- name: Install contract npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
|
@ -2,10 +2,10 @@ name: Check Remote Executor
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
paths: [pythnet/remote-executor/**]
|
paths: [governance/remote-executor/**]
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
paths: [pythnet/remote-executor/**]
|
paths: [governance/remote-executor/**]
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -22,4 +22,4 @@ jobs:
|
||||||
sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
|
sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
|
||||||
echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
|
echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
|
||||||
- name: Run executor tests
|
- name: Run executor tests
|
||||||
run: cargo test-bpf --manifest-path ./pythnet/remote-executor/Cargo.toml
|
run: cargo test-bpf --manifest-path ./governance/remote-executor/Cargo.toml
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
name: Check Xc Admin
|
name: Check Xc Admin
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
paths: [xc-admin/**]
|
paths: [governance/xc-admin/**]
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
paths: [xc-admin/**]
|
paths: [governance/xc-admin/**]
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: xc-admin/
|
working-directory: governance/xc-admin/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Run xc-admin tests
|
- name: Run xc-admin tests
|
||||||
|
|
|
@ -21,15 +21,15 @@ repos:
|
||||||
- id: cargo-fmt-remote-executor
|
- id: cargo-fmt-remote-executor
|
||||||
name: Cargo format for remote executor
|
name: Cargo format for remote executor
|
||||||
language: "rust"
|
language: "rust"
|
||||||
entry: cargo +nightly fmt --manifest-path ./pythnet/remote-executor/Cargo.toml --all -- --config-path rustfmt.toml
|
entry: cargo +nightly fmt --manifest-path ./governance/remote-executor/Cargo.toml --all -- --config-path rustfmt.toml
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
files: pythnet/remote-executor
|
files: governance/remote-executor
|
||||||
- id: cargo-clippy-remote-executor
|
- id: cargo-clippy-remote-executor
|
||||||
name: Cargo clippy for remote executor
|
name: Cargo clippy for remote executor
|
||||||
language: "rust"
|
language: "rust"
|
||||||
entry: cargo +nightly clippy --manifest-path ./pythnet/remote-executor/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
|
entry: cargo +nightly clippy --manifest-path ./governance/remote-executor/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
files: pythnet/remote-executor
|
files: governance/remote-executor
|
||||||
# Hooks for the attester
|
# Hooks for the attester
|
||||||
- id: cargo-fmt-attester
|
- id: cargo-fmt-attester
|
||||||
name: Cargo format for attester
|
name: Cargo format for attester
|
||||||
|
|
Before Width: | Height: | Size: 308 KiB After Width: | Height: | Size: 308 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 280 B After Width: | Height: | Size: 280 B |
Before Width: | Height: | Size: 287 B After Width: | Height: | Size: 287 B |
Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 267 B |
Before Width: | Height: | Size: 274 B After Width: | Height: | Size: 274 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 182 B After Width: | Height: | Size: 182 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 261 B After Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 419 B After Width: | Height: | Size: 419 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 427 B After Width: | Height: | Size: 427 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 269 B After Width: | Height: | Size: 269 B |
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 352 B |
Before Width: | Height: | Size: 238 B After Width: | Height: | Size: 238 B |
Before Width: | Height: | Size: 295 B After Width: | Height: | Size: 295 B |