Skip to content

Commit

Permalink
Merge pull request #13 from hirosystems/feat/introduce-proxy
Browse files Browse the repository at this point in the history
feat: improve upgradability
  • Loading branch information
Ludo Galabru authored Oct 11, 2023
2 parents e430900 + 23b8232 commit dd157f5
Show file tree
Hide file tree
Showing 29 changed files with 1,989 additions and 929 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/run-unit-tests.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Contracts unit tests

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm test
32 changes: 19 additions & 13 deletions Clarinet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ telemetry = false
cache_dir = './.cache'
requirements = []

[contracts.pyth-oracle-dev-preview-1]
path = 'contracts/pyth-oracle-dev-preview-1.clar'
[contracts.pyth-governance-v1]
path = 'contracts/pyth-governance-v1.clar'
clarity_version = 2
epoch = 2.4

Expand All @@ -16,33 +16,39 @@ path = 'contracts/pyth-oracle-v1.clar'
clarity_version = 2
epoch = 2.4

[contracts.wormhole-core-dev-preview-1]
path = 'contracts/deps/wormhole-core-dev-preview-1.clar'
[contracts.pyth-store-v1]
path = 'contracts/pyth-store-v1.clar'
clarity_version = 2
epoch = 2.4

[contracts.pyth-oracle-trait]
path = 'contracts/pyth-oracle-trait.clar'

[contracts.pyth-pnau-decoder-v1]
path = 'contracts/pyth-pnau-decoder-v1.clar'
clarity_version = 2
epoch = 2.4

[contracts.wormhole-core-trait]
path = 'contracts/deps/wormhole-core-trait.clar'
[contracts.pyth-traits-v1]
path = 'contracts/pyth-traits-v1.clar'
clarity_version = 2
epoch = 2.4

[contracts.hk-cursor-v1]
path = 'contracts/deps/hk-cursor-v1.clar'
[contracts.wormhole-core-v1]
path = 'contracts/wormhole/wormhole-core-v1.clar'
clarity_version = 2
epoch = 2.4

[contracts.wormhole-traits-v1]
path = 'contracts/wormhole/wormhole-traits-v1.clar'
clarity_version = 2
epoch = 2.4

[contracts.hk-cursor-v2]
path = 'contracts/deps/hk-cursor-v2.clar'
[contracts.hk-cursor-v1]
path = 'contracts/hiro-kit/hk-cursor-v1.clar'
clarity_version = 2
epoch = 2.4

[contracts.hk-merkle-tree-keccak160-v1]
path = 'contracts/deps/hk-merkle-tree-keccak160-v1.clar'
path = 'contracts/hiro-kit/hk-merkle-tree-keccak160-v1.clar'
clarity_version = 2
epoch = 2.4

Expand Down
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,8 @@ These events can be observed using [Chainhook](https://github.com/hirosystems/ch

## Todos:

- [] Support for `PNAU` wire format
- [] Resolve todos, mostly aiming at adding more checks in both wormhole and pyth contracts
- [] Address insufficient test coverage
- [] Add a method to update the list of price feeds watched
- [] Resolve build warnings
- [] Improve documentation
- [] Add example
- [ ] Resolve todos, mostly aiming at adding more checks in both wormhole and pyth contracts
- [ ] Address insufficient test coverage
- [ ] Resolve build warnings
- [ ] Improve documentation
- [ ] Add example
72 changes: 0 additions & 72 deletions contracts/deps/hk-cursor-v1.clar

This file was deleted.

118 changes: 0 additions & 118 deletions contracts/deps/hk-cursor-v2.clar

This file was deleted.

19 changes: 0 additions & 19 deletions contracts/deps/wormhole-core-trait.clar

This file was deleted.

Loading

0 comments on commit dd157f5

Please sign in to comment.