Skip to content

Commit

Permalink
Feat/anchor 0.28.0 (#90)
Browse files Browse the repository at this point in the history
* bumped to anchor 0.28.0, and adjusted required dependencies

* tokio

* fix/fixing in progress, client inside async environemtn

* fix/some client calls fixed to work in blocking env, but it is slow

* escrow example passes , as functions are updated to work in async env

* client updates with async client

* bumped mainly solana version to the latest + changes linked to upgraded dependencies + moved dependencies into one file

* little escrow changes linked to updated dependencies + redundant code parts

* turnstile updated to anchor 0.28.0

* Create test_escrow.yml

feat-escrow test workflow

* Create action.yml

* Update test_escrow.yml

* fix/ IDL Parse error

* Update test-examples-turnstile.yml

* fix/ wait until program is completely deployed, so that subsequent instruction calls won`t fail

* turnstile small adjustments

* updated main lock file

* Update and rename test_escrow.yml to run_examples.yml

* 📌 Bumped the trdelnik-client version in templates.

* 💚 Speed Up Workflow Process and adjust trigger

* 🔧 Tidy Up Toml files

* ✅ Regenerated IDL file for Escrow so that Client tests pass

* 🔥 Removed Escrow test workflow as new workflow tests both examples

* 💚 Make Tests examples run in parallel

* 💚 Make Tests examples run in parallel

* 💚 Make Tests examples run in parallel

* 🔧 Anchor-client async feature moved to workspace toml config.

* 📝 Bumped versions inside Readme

* 📝 Changelog updated

* 📝 Readme Roadmap Fix

* 🔧 Rust-toolchain specified

* 🐛 Fixed max_supported_transaction_version value

* 📌 Changed rust-toolchain to specific rust version instead of nightly date

* 🔖 Updated crates versions based on crates.io
  • Loading branch information
lukacan committed Aug 21, 2023
1 parent 764ad2e commit f93da05
Show file tree
Hide file tree
Showing 29 changed files with 7,127 additions and 3,841 deletions.
16 changes: 16 additions & 0 deletions .github/actions/setup-anchor/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Setup Anchor"
description: "Setup Anchor"

runs:
using: "composite"
steps:
- uses: actions/cache@v3
name: Cache Anchor Tool Suite
id: cache-anchor
with:
path: |
~/.cache/anchor/
~/.local/share/anchor/
key: anchor-${{ runner.os }}-v0000-${{ env.ANCHOR_VERSION }}
- run: npm i -g @coral-xyz/anchor-cli@${{ env.ANCHOR_VERSION }} ts-mocha typescript
shell: bash
45 changes: 45 additions & 0 deletions .github/workflows/run_examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
workflow_dispatch:
pull_request:
push:
branches: [master]

name: Test Escrow and Turnstile

env:
SOLANA_CLI_VERSION: 1.16.6
ANCHOR_VERSION: 0.28.0

jobs:
test_escrow:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-rust/
- uses: ./.github/actions/setup-solana/
- uses: ./.github/actions/setup-anchor/
id: rust-setup
- uses: Swatinem/rust-cache@v2
name: Cache Rust and it's packages
- name: Build Escrow
working-directory: examples/escrow
run: anchor build
- name: Test Escrow
working-directory: examples/escrow
run: cargo run --manifest-path ../../Cargo.toml test
test_turnstile:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-rust/
- uses: ./.github/actions/setup-solana/
- uses: ./.github/actions/setup-anchor/
id: rust-setup
- uses: Swatinem/rust-cache@v2
name: Cache Rust and it's packages
- name: Build Turnstile
working-directory: examples/turnstile
run: anchor build
- name: Test Turnstile
working-directory: examples/turnstile
run: cargo run --manifest-path ../../Cargo.toml test
36 changes: 0 additions & 36 deletions .github/workflows/test-examples-turnstile.yml

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ incremented upon a breaking change and the patch version will be incremented for

## [Unreleased]

## [0.4.1] - 2023-08-21
### Changed
- Upgrade Solana (`=1.16.6`) and Anchor framework (`=0.28.0`) versions.
### Fixed
- Implemented Anchor Client logic was not able to work with newer version of Anchor. Fixed with `async_rpc` and `async` feature.
- Trdelnik init IDL Parse Error on newer version of Rust, fixed with updated `accounts` token.


## [0.3.0] - 2022-09-23
### Changed
- Upgrade Solana (`~1.10`) and Anchor framework (`~0.25`) versions
Expand Down
Loading

0 comments on commit f93da05

Please sign in to comment.