-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(target_chains/ethereum): add arbirum stylus sdk #2041
Open
Ifechukwudaniel
wants to merge
189
commits into
pyth-network:main
Choose a base branch
from
Ifechukwudaniel:stylus-sdk
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 183 commits
Commits
Show all changes
189 commits
Select commit
Hold shift + click to select a range
e002660
chore: init stylus project
Ifechukwudaniel 8d19bc1
chore: added scripts
Ifechukwudaniel 08c010c
chore: created workspace
Ifechukwudaniel 483eced
chore: docs setup
Ifechukwudaniel 9d4a368
chore: pyth contracts init
Ifechukwudaniel 900f2d4
chore: docs command setup
Ifechukwudaniel 583ca72
mock: example project
Ifechukwudaniel c813c7a
chore : created test workspace
Ifechukwudaniel c088e12
chore: changed toml version
Ifechukwudaniel 62030d7
chore: created mock pyth workspace
Ifechukwudaniel d731068
chore: renamed project sdk
Ifechukwudaniel 83ccc12
chore: refactored files
Ifechukwudaniel e94d4c5
chore : helpers functions
Ifechukwudaniel c891962
refacor : refactord code
Ifechukwudaniel 93a7291
chore: removed struct type , implemented abstract_pyth
Ifechukwudaniel 65ea9a5
chore: created storage price and storage price feed
Ifechukwudaniel 28019ed
chore: integrating storage price and storage price feed
Ifechukwudaniel 81f45ae
chore: fixed error created by storage type
Ifechukwudaniel 96dda48
chore: config changes
Ifechukwudaniel dc847cd
chore: forge init
Ifechukwudaniel 6588fe6
forge install: forge-std
Ifechukwudaniel da11d45
mock pyth : created mock solidity pyth contract
Ifechukwudaniel 5cc9626
chore: Renamed MockPyth Scripts
Ifechukwudaniel da154c0
chore: started testing
Ifechukwudaniel e3302d8
chore: removed projects
Ifechukwudaniel 824d767
feture :completed unit test and stylus contracts
Ifechukwudaniel 60baf08
added initializtion for mock
Ifechukwudaniel 86ad529
examples setup
Ifechukwudaniel a131593
chore:fixed imports
Ifechukwudaniel 299b0ce
chore:fixed types
Ifechukwudaniel 7ac267f
completed contract
Ifechukwudaniel 41e3009
External call and fution call sample
Ifechukwudaniel 05b9593
chore: Changed motsu
Ifechukwudaniel 70e2e6c
chore: Created Proxy call example
Ifechukwudaniel 5ad08c4
feture: Example for both type of call
Ifechukwudaniel 568ba56
chore: Added beches
Ifechukwudaniel 72a9b5b
Lib Changes
Ifechukwudaniel ec4d75b
chore:Scripts modifications
Ifechukwudaniel 047a73d
chore : fuction call and proxy call
Ifechukwudaniel ded7cb4
chore: added workflow
Ifechukwudaniel d31557a
chore: doc pages docs
Ifechukwudaniel 86dfbb1
chore: doc changes
Ifechukwudaniel bcd86d6
smaller chages
Ifechukwudaniel 94517ee
chore: benches and toml changes
Ifechukwudaniel 703e43a
chore: added foundry to e2e workflow
Ifechukwudaniel 28fa93e
chore:set up benchmark
Ifechukwudaniel 22bae51
Added Benches
Ifechukwudaniel 85cd41c
chore:added setup mock pyth script to bench and e2e and logs
Ifechukwudaniel d1c010b
changes
Ifechukwudaniel 8826fa5
feture: Added Proxy call to bench
Ifechukwudaniel 343de13
chore: Removed sol file
Ifechukwudaniel 1407ed4
Added deploy scripts
Ifechukwudaniel 15a47a9
chore: proxy calls
Ifechukwudaniel 5904a1a
chore: removed file
Ifechukwudaniel 28d9316
changes
Ifechukwudaniel 74a4dd4
chore:added constructor file and worked on bench
Ifechukwudaniel b1dc655
chore: moved Ipyth to pyth-contract file
Ifechukwudaniel 5fafd30
chore: added variable to bash scripts
Ifechukwudaniel 5171513
chore:decode and encode helper
Ifechukwudaniel 08fd4cb
chore: fixed mock pyth deploy script
Ifechukwudaniel e5ba09d
chore: removed dotenv crates
Ifechukwudaniel d1d5cec
chore: completed benches functions
Ifechukwudaniel 64e3be5
chore: examples and proxy call fixes
Ifechukwudaniel 69b61df
changes
Ifechukwudaniel a21b5fa
chore: added create functions
Ifechukwudaniel b354747
chore: completed get data benchmarks
Ifechukwudaniel d1a4eae
chore:contract changes
Ifechukwudaniel 8464896
chore:function calls
Ifechukwudaniel 196018c
chore: Ignore all broadcast
Ifechukwudaniel 072ec4e
chore: completed get benches
Ifechukwudaniel 70432b7
chore:changes
Ifechukwudaniel cd728b6
chore: Added Type Test
Ifechukwudaniel 30c5056
chore: tests
Ifechukwudaniel 908b866
env and examples
Ifechukwudaniel 3538303
Update README.md
Ifechukwudaniel bd054a3
Update README.md
Ifechukwudaniel e0f68e4
Update README.md
Ifechukwudaniel 58f5a2d
chore: worked on bench and e2e test
Ifechukwudaniel 0af7c1a
removed log
Ifechukwudaniel f389baa
chore: completed e2e test for function call example
Ifechukwudaniel 9471852
chore : changed pyth script
Ifechukwudaniel dee2846
chore:completed e2e test
Ifechukwudaniel 9a8d23d
chore:benches
Ifechukwudaniel ebb4858
Update README.md
Ifechukwudaniel 0f6da86
Update README.md
Ifechukwudaniel 4b84ac0
Update README.md
Ifechukwudaniel d5b33e0
Update README.md
Ifechukwudaniel 87ea83b
Update README.md
Ifechukwudaniel 46810a6
Merge branch 'pyth-network:main' into stylus-sdk
Ifechukwudaniel de44253
chore: removed docs
Ifechukwudaniel 670456a
Update README.md
Ifechukwudaniel 4b8f43c
Update README.md
Ifechukwudaniel 0625759
Update CODEOWNERS
Ifechukwudaniel 1924721
Delete target_chains/ethereum/sdk/stylus/SECURITY.md
Ifechukwudaniel b7e1a30
Delete target_chains/ethereum/sdk/stylus/lib/crypto directory
Ifechukwudaniel 2ca8638
Delete target_chains/ethereum/sdk/stylus/.linkspector.yml
Ifechukwudaniel 4ee4ccf
Delete target_chains/ethereum/sdk/stylus/netlify.toml
Ifechukwudaniel bf3199d
Update Cargo.toml removed openzepline crypto
Ifechukwudaniel a74751d
Update README.md
Ifechukwudaniel 3ed5a92
Delete target_chains/ethereum/sdk/stylus/pyth-solidity/.env.example
Ifechukwudaniel 7d2f445
Update gas-bench.yml
Ifechukwudaniel 5c2b2c0
chore:removed a bunch of openzeplin files
Ifechukwudaniel 038015b
chore: removed workflow
Ifechukwudaniel 013ea47
chore:Added Guidlines
Ifechukwudaniel 655e55e
chore: motsu changes
Ifechukwudaniel 9628334
Create Test.md
Ifechukwudaniel 3628d14
Update Test.md
Ifechukwudaniel 859e6e8
Rename Test.md to TEST.md
Ifechukwudaniel 28c3def
Update README.md
Ifechukwudaniel 42241a6
Update README.md
Ifechukwudaniel 45ff362
Update README.md
Ifechukwudaniel a118553
Delete target_chains/ethereum/sdk/stylus/TEST.md
Ifechukwudaniel 5f5bc5e
chore: removed mostu
Ifechukwudaniel 1397b2b
chore: changed Fixedbytes<32> to B256
Ifechukwudaniel 6b37ea5
chore: removed local e2e testing library
Ifechukwudaniel b2ab6db
chore: changes
Ifechukwudaniel a610d23
forge install: forge-std
Ifechukwudaniel 86a5d4a
forge install: openzeppelin-foundry-upgrades
Ifechukwudaniel 819f8a1
forge install: openzeppelin-contracts
Ifechukwudaniel bc78af5
chore: formated code
Ifechukwudaniel 36b862d
Merge branch 'main' into stylus-sdk
Ifechukwudaniel 8617b13
chore: fixed scripts
Ifechukwudaniel 746dfdf
Update target_chains/ethereum/sdk/stylus/README.md
Ifechukwudaniel fa25f06
Update target_chains/ethereum/sdk/stylus/README.md
Ifechukwudaniel fb942d2
chore: rustfmt changes
Ifechukwudaniel c2e0629
chore: changed solidity licenses to Apache 2
Ifechukwudaniel cf0f807
chore: deleted codeowner file and link
Ifechukwudaniel 1b1e351
chore: removed comments
Ifechukwudaniel 7c529fe
solidity changes
Ifechukwudaniel c1e656d
chore: removed folder
Ifechukwudaniel c9be56a
chore: removed = for version
Ifechukwudaniel 8831682
forge install: forge-std
Ifechukwudaniel 88ace13
forge install: openzeppelin-foundry-upgrades
Ifechukwudaniel 1cd711e
forge install: openzeppelin-contracts-upgradeable
Ifechukwudaniel 841af31
chore: Remove MIT license
Ifechukwudaniel f6a5fe6
chore: script changes
Ifechukwudaniel ce78d45
chore: removed dependices
Ifechukwudaniel f693364
forge install: forge-std
Ifechukwudaniel 7a63cfd
forge install: openzeppelin-foundry-upgrades
Ifechukwudaniel 42903d5
chore:added description to script
Ifechukwudaniel 45d2d8d
Update target_chains/ethereum/sdk/stylus/README.md
Ifechukwudaniel 3912338
Update target_chains/ethereum/sdk/stylus/README.md
Ifechukwudaniel 50c7cb9
Update target_chains/ethereum/sdk/stylus/contracts/src/pyth/mod.rs
Ifechukwudaniel a399be4
Update target_chains/ethereum/sdk/stylus/contracts/src/pyth/errors.rs
Ifechukwudaniel 4e00e9f
chore: changed // to /// and remove licenses because of root licenese
Ifechukwudaniel 86e1b5b
chore: Apache-2.0 license
Ifechukwudaniel a91e478
chore: renamed file name pyth-solidity to pyth-mock-solidity
Ifechukwudaniel ebe40a8
Merge branch 'main' into stylus-sdk
Ifechukwudaniel f01d0e8
chore: removed commented code
Ifechukwudaniel a87645b
chore: foundry test workflow
Ifechukwudaniel ad0468f
chore: workflows
Ifechukwudaniel d3167e0
chore: changed readme to rust
Ifechukwudaniel 7f53584
chore: fixed description mock solidity
Ifechukwudaniel 605fc58
chore: fixed zero case
Ifechukwudaniel 233f68b
chore: change all use case of gt and lt to > and <
Ifechukwudaniel d0973f2
chore: workflow
Ifechukwudaniel cea2843
chore: replaced the file with the link
Ifechukwudaniel 0fdbb3e
chore: refactor and removed unused code
Ifechukwudaniel 36f05f4
chore: renamed function for test
Ifechukwudaniel 658ad51
chore: added some sort of path filters
Ifechukwudaniel 5a15e17
Merge pull request #1 from pyth-network/main
Ifechukwudaniel dd82af7
chore: add cargo fmt and cargo clippy for stylus sdk
Ifechukwudaniel 8e7c7cc
chore: package-json.lock moved depencies to pnpm-workspace.yaml
Ifechukwudaniel 9e34259
chore:test attribute
Ifechukwudaniel 4a9c2c1
Merge branch 'pyth-network:main' into stylus-sdk
Ifechukwudaniel 960ea37
chore: git workflows
Ifechukwudaniel 1bd5dee
Merge branch 'pyth-network:main' into stylus-sdk
Ifechukwudaniel a1816b1
chore: removed functions example
Ifechukwudaniel 3094296
chore: switch for item in update_data
Ifechukwudaniel b1646d5
chore: fixed example
Ifechukwudaniel a0e25ee
chore: refactor examples
Ifechukwudaniel 153ebc5
cargo changes
Ifechukwudaniel a676824
chore: pyth example , and function call example
Ifechukwudaniel c93aca8
chore: added other example
Ifechukwudaniel 14b400a
chore: install
Ifechukwudaniel 15ca2f3
chore:installations
Ifechukwudaniel 19673ea
chore: mock pyth
Ifechukwudaniel f1626ef
chore: benches and test
Ifechukwudaniel a447f3f
smaller changes
Ifechukwudaniel 6571d3b
chore: mock
Ifechukwudaniel 37ede70
chore: bench format
Ifechukwudaniel a1258ed
chore: code format
Ifechukwudaniel 5a828da
chore: code format
Ifechukwudaniel 84ecf17
chore: removed workflow
Ifechukwudaniel 379dd58
chore: pnpm install
Ifechukwudaniel 45d4721
chore: removed package-lock.json
Ifechukwudaniel 7557a76
chore: fixed commented out job
Ifechukwudaniel 4380ef4
chore: ran pre-commit run --all
Ifechukwudaniel 996f398
chore: pre-commit run --all
Ifechukwudaniel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,47 @@ | ||
name: foundry-test | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- target_chains/ethereum/sdk/stylus/** ** | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- target_chains/ethereum/sdk/stylus/** | ||
|
||
env: | ||
FOUNDRY_PROFILE: ci | ||
|
||
jobs: | ||
check: | ||
name: Foundry project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Show Forge version | ||
run: forge --version | ||
|
||
- name: Change directory to pyth-mock-solidity | ||
run: cd pyth-mock-solidity | ||
|
||
- name: Run Forge fmt | ||
run: forge fmt --check | ||
id: fmt | ||
|
||
- name: Run Forge build | ||
run: forge build --sizes | ||
id: build | ||
|
||
- name: Run Forge tests | ||
run: forge test -vvv | ||
id: test |
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,36 @@ | ||
name: check-wasm | ||
# This workflow checks that the compiled wasm binary of every example contract | ||
# can be deployed to Arbitrum Stylus. | ||
on: | ||
pull_request: | ||
paths: | ||
- target_chains/ethereum/sdk/stylus/** ** | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- target_chains/ethereum/sdk/stylus/** | ||
permissions: | ||
contents: read | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
env: | ||
CARGO_TERM_COLOR: always | ||
jobs: | ||
check-wasm: | ||
name: Check WASM binary | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
rustflags: "" | ||
|
||
- name: Install cargo-stylus | ||
run: cargo install [email protected] | ||
|
||
- name: Run wasm check | ||
run: ./scripts/check-wasm.sh |
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,132 @@ | ||
name: check | ||
# This workflow runs whenever a PR is opened or updated, or a commit is pushed | ||
# to main. It runs several checks: | ||
# - fmt: checks that the code is formatted according to `rustfmt`. | ||
# - clippy: checks that the code does not contain any `clippy` warnings. | ||
# - doc: checks that the code can be documented without errors. | ||
# - hack: check combinations of feature flags. | ||
# - typos: checks for typos across the repo. | ||
permissions: | ||
contents: read | ||
# This configuration allows maintainers of this repo to create a branch and | ||
# pull request based on the new branch. Restricting the push trigger to the | ||
# main branch ensures that the PR only gets built once. | ||
on: | ||
pull_request: | ||
paths: | ||
- target_chains/ethereum/sdk/stylus/** ** | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- target_chains/ethereum/sdk/stylus/** | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
env: | ||
CARGO_TERM_COLOR: always | ||
jobs: | ||
fmt: | ||
runs-on: ubuntu-latest | ||
name: nightly / fmt | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Install rust | ||
# We run in nightly to make use of some features only available there. | ||
# Check out `rustfmt.toml` to see which ones. | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
components: rustfmt | ||
rustflags: "" | ||
|
||
- name: Check formatting | ||
run: cargo fmt --all --check | ||
clippy: | ||
runs-on: ubuntu-latest | ||
name: ${{ matrix.toolchain }} / clippy | ||
permissions: | ||
contents: read | ||
checks: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# Get early warning of new lints which are regularly introduced in beta | ||
# channels. | ||
toolchain: [ stable, beta ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Install rust ${{ matrix.toolchain }} | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
components: clippy | ||
rustflags: "" | ||
|
||
- name: Cargo clippy | ||
uses: giraffate/clippy-action@v1 | ||
with: | ||
reporter: 'github-pr-check' | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
doc: | ||
# Run docs generation on nightly rather than stable. This enables features | ||
# like https://doc.rust-lang.org/beta/unstable-book/language-features/doc-cfg.html | ||
# which allows an API be documented as only available in some specific | ||
# platforms. | ||
runs-on: ubuntu-latest | ||
name: nightly / doc | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Install rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
rustflags: "" | ||
|
||
- name: Cargo doc | ||
run: cargo doc --no-deps --all-features | ||
env: | ||
RUSTDOCFLAGS: --cfg docsrs | ||
hack: | ||
# `cargo-hack` checks combinations of feature flags to ensure that features | ||
# are all additive which is required for feature unification. | ||
runs-on: ubuntu-latest | ||
name: ubuntu / stable / features | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Install rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
rustflags: "" | ||
|
||
- name: Cargo install cargo-hack | ||
uses: taiki-e/install-action@cargo-hack | ||
# Intentionally no target specifier; see https://github.com/jonhoo/rust-ci-conf/pull/4 | ||
# `--feature-powerset` runs for every combination of features. Note that | ||
# target in this context means one of `--lib`, `--bin`, etc, and not the | ||
# target triple. | ||
- name: Cargo hack | ||
run: cargo hack check --feature-powerset --depth 2 --release --target wasm32-unknown-unknown --skip std --workspace --exclude e2e --exclude basic-example-script --exclude benches | ||
typos: | ||
runs-on: ubuntu-latest | ||
name: ubuntu / stable / typos | ||
steps: | ||
- name: Checkout Actions Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check spelling of files in the workspace | ||
uses: crate-ci/[email protected] |
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,52 @@ | ||
# This workflow runs our end-to-end tests suite. | ||
# | ||
# It roughly follows these steps: | ||
# - Install rust | ||
# - Install `cargo-stylus` | ||
# - Install `solc` | ||
# - Spin up `nitro-testnode` | ||
# | ||
# Contract deployments and account funding happen on a per-test basis. | ||
name: e2e | ||
permissions: | ||
contents: read | ||
on: | ||
pull_request: | ||
paths: | ||
- target_chains/ethereum/sdk/stylus/** ** | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- target_chains/ethereum/sdk/stylus/** | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
env: | ||
CARGO_TERM_COLOR: always | ||
jobs: | ||
required: | ||
name: tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
cache-key: "e2e-tests" | ||
rustflags: "" | ||
|
||
- name: Install cargo-stylus | ||
run: cargo install [email protected] | ||
|
||
- name: Install solc | ||
run: | | ||
curl -LO https://github.com/ethereum/solidity/releases/download/v0.8.24/solc-static-linux | ||
sudo mv solc-static-linux /usr/bin/solc | ||
sudo chmod a+x /usr/bin/solc | ||
|
||
- name: Setup nitro node | ||
run: ./scripts/nitro-testnode.sh -d -i | ||
- name: run integration tests | ||
run: ./scripts/e2e-tests.sh |
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,45 @@ | ||
name: gas-bench | ||
# This workflow checks that the compiled wasm binary of every example contract | ||
# can be deployed to Arbitrum Stylus. | ||
permissions: | ||
contents: read | ||
on: | ||
pull_request: | ||
paths: | ||
- target_chains/ethereum/sdk/stylus/** ** | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- target_chains/ethereum/sdk/stylus/** | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
env: | ||
CARGO_TERM_COLOR: always | ||
jobs: | ||
required: | ||
name: Gas usage report | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
cache-key: "gas-bench" | ||
rustflags: "" | ||
|
||
- name: Install cargo-stylus | ||
run: cargo install [email protected] | ||
|
||
- name: Install solc | ||
run: | | ||
curl -LO https://github.com/ethereum/solidity/releases/download/v0.8.24/solc-static-linux | ||
sudo mv solc-static-linux /usr/bin/solc | ||
sudo chmod a+x /usr/bin/solc | ||
|
||
- name: Setup nitro node | ||
run: ./scripts/nitro-testnode.sh -d -i | ||
- name: run benches | ||
run: ./scripts/bench.sh |
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 @@ | ||
# This workflow checks whether the library is able to run without the std | ||
# library. See `check.yml` for information about how the concurrency | ||
# cancellation and workflow triggering works. | ||
name: no-std | ||
permissions: | ||
contents: read | ||
on: | ||
pull_request: | ||
paths: | ||
- target_chains/ethereum/sdk/stylus/** ** | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- target_chains/ethereum/sdk/stylus/** | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
env: | ||
CARGO_TERM_COLOR: always | ||
jobs: | ||
nostd: | ||
runs-on: ubuntu-latest | ||
name: ${{ matrix.target }} | ||
strategy: | ||
matrix: | ||
target: [ wasm32-unknown-unknown ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Install rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: stable | ||
rustflags: "" | ||
|
||
- name: Add rust targets ${{ matrix.target }} | ||
run: rustup target add ${{ matrix.target }} | ||
|
||
- name: Cargo check | ||
run: cargo check --release --target ${{ matrix.target }} --no-default-features |
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,20 @@ | ||
name: Publish Pyth Stylus SDK to crates.io | ||
|
||
on: | ||
push: | ||
tags: | ||
- pythnet-stylus-sdk-v* | ||
# jobs: | ||
Ifechukwudaniel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# publish-pythnet-sdk: | ||
# name: Publish Pythnet SDK | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout sources | ||
# uses: actions/checkout@v2 | ||
|
||
# - run: cargo publish --token ${CARGO_REGISTRY_TOKEN} | ||
# env: | ||
# CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
# working-directory: "pythnet/pythnet_sdk" | ||
|
||
#Just seetinh up this script |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Github is not triggering these workflows for your PR. I'm not sure but I think it may be because there were no more changes in
target_chains/ethereum/sdk/stylus
after the workflow files were added. Try changing any file intarget_chains/ethereum/sdk/stylus
in a separate commit.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.
I did that let's see, if it works