-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: refactor & improve * chore: lint * chore: pin toolchain * chore: pin toolchain 1.82 * chore: update CI * chore: update CI workflow * chore: Fix lifetimes * chore: setup node * chore: add lock file * chore: add lock file * chore: upgrade ts * chore: upgrade sdk packaging * chore: update version
- Loading branch information
1 parent
d6934f0
commit e0612cc
Showing
16 changed files
with
1,377 additions
and
3,606 deletions.
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,64 @@ | ||
name: Build SDKs | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
env: | ||
rust_version: 1.83.0 | ||
node_version: 23 | ||
|
||
jobs: | ||
install: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache-dependency-path: ts/package-lock.json | ||
node-version: ${{ env.node_version }} | ||
cache: 'npm' | ||
|
||
- name: Install Rust | ||
shell: "bash" | ||
run: rustup toolchain install ${{ env.rust_version }} --profile minimal | ||
|
||
- name: Cache rust | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
lint: | ||
needs: install | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: rust/ | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run fmt | ||
run: cargo fmt -- --check | ||
|
||
- name: Run clippy | ||
run: cargo clippy -- --deny=warnings | ||
|
||
build: | ||
needs: [install, lint] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: run build | ||
working-directory: rust/ | ||
run: | | ||
cargo build | ||
- name: npm run build | ||
working-directory: ts/ | ||
run: | | ||
npm install | ||
npm run build |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ members = [ | |
resolver = "2" | ||
|
||
[workspace.package] | ||
version = "0.1.2" | ||
version = "0.1.4" | ||
authors = ["Magicblock Labs <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT" | ||
|
@@ -21,9 +21,9 @@ readme = "../README.md" | |
keywords = ["solana", "crypto", "delegation", "ephemeral-rollups", "magicblock"] | ||
|
||
[workspace.dependencies] | ||
ephemeral-rollups-sdk-attribute-ephemeral-v2 = { path = "ephemeral", version = "=0.1.2" } | ||
ephemeral-rollups-sdk-attribute-delegate-v2 = { path = "delegate", version = "=0.1.2" } | ||
ephemeral-rollups-sdk-attribute-commit-v2 = { path = "commit-attribute", version = "=0.1.2" } | ||
ephemeral-rollups-sdk-attribute-ephemeral-v2 = { path = "ephemeral", version = "=0.1.4" } | ||
ephemeral-rollups-sdk-attribute-delegate-v2 = { path = "delegate", version = "=0.1.4" } | ||
ephemeral-rollups-sdk-attribute-commit-v2 = { path = "commit-attribute", version = "=0.1.4" } | ||
|
||
## External crates | ||
anchor-lang = "0.30.1" | ||
|
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
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
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
Oops, something went wrong.