diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml index bf5030a..61ef688 100644 --- a/.github/workflows/publish-packages.yml +++ b/.github/workflows/publish-packages.yml @@ -26,18 +26,36 @@ jobs: TOOLCHAIN: stable, TARGET: x86_64-unknown-linux-gnu, } + - { + NAME: linux-x64-musl, + OS: ubuntu-22.04, + TOOLCHAIN: stable, + TARGET: x86_64-unknown-linux-musl, + } - { NAME: linux-x86-glibc, OS: ubuntu-22.04, TOOLCHAIN: stable, TARGET: i686-unknown-linux-gnu, } + - { + NAME: linux-x86-musl, + OS: ubuntu-22.04, + TOOLCHAIN: stable, + TARGET: i686-unknown-linux-musl, + } - { NAME: linux-arm64-glibc, OS: ubuntu-20.04, TOOLCHAIN: stable, TARGET: aarch64-unknown-linux-gnu, } + - { + NAME: linux-arm64-musl, + OS: ubuntu-20.04, + TOOLCHAIN: stable, + TARGET: aarch64-unknown-linux-musl, + } - { NAME: win32-x64-msvc, OS: windows-2022, diff --git a/CHANGELOG.md b/CHANGELOG.md index 57652e8..a452616 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,15 @@ +## [0.1.2] - 2024-04-02 + +### ✨️ Features + - Simplify the Bolt typescript Sdk (#36) + - Simplify system arguments (#35) + - Simplify component_deserialize macro (#34) + - Upgrade to latest anchor version, supporting the new IDL s… (#33) + - Propagate signing authority to the systems (#31) + - Macro to define and access extra accounts (#26) +Inject extra account init fn with th system macro, to generate a correct idl wich contains also the extra accounts + ## [0.1.1] - 2024-03-09 ### ✨️ Features diff --git a/Cargo.lock b/Cargo.lock index ee8733a..4640a32 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -794,7 +794,7 @@ checksum = "8d696c370c750c948ada61c69a0ee2cbbb9c50b1019ddb86d9317157a99c2cae" [[package]] name = "bolt-attribute-bolt-arguments" -version = "0.1.1" +version = "0.1.2" dependencies = [ "proc-macro2", "quote", @@ -803,7 +803,7 @@ dependencies = [ [[package]] name = "bolt-attribute-bolt-component" -version = "0.1.1" +version = "0.1.2" dependencies = [ "bolt-utils", "proc-macro2", @@ -813,7 +813,7 @@ dependencies = [ [[package]] name = "bolt-attribute-bolt-component-deserialize" -version = "0.1.1" +version = "0.1.2" dependencies = [ "bolt-utils", "proc-macro2", @@ -823,7 +823,7 @@ dependencies = [ [[package]] name = "bolt-attribute-bolt-component-id" -version = "0.1.1" +version = "0.1.2" dependencies = [ "proc-macro2", "quote", @@ -832,7 +832,7 @@ dependencies = [ [[package]] name = "bolt-attribute-bolt-extra-accounts" -version = "0.1.1" +version = "0.1.2" dependencies = [ "proc-macro2", "quote", @@ -841,7 +841,7 @@ dependencies = [ [[package]] name = "bolt-attribute-bolt-program" -version = "0.1.1" +version = "0.1.2" dependencies = [ "proc-macro2", "quote", @@ -850,7 +850,7 @@ dependencies = [ [[package]] name = "bolt-attribute-bolt-system" -version = "0.1.1" +version = "0.1.2" dependencies = [ "proc-macro2", "quote", @@ -859,7 +859,7 @@ dependencies = [ [[package]] name = "bolt-attribute-bolt-system-input" -version = "0.1.1" +version = "0.1.2" dependencies = [ "proc-macro2", "quote", @@ -868,7 +868,7 @@ dependencies = [ [[package]] name = "bolt-cli" -version = "0.1.1" +version = "0.1.2" dependencies = [ "anchor-cli", "anchor-client", @@ -882,7 +882,7 @@ dependencies = [ [[package]] name = "bolt-component" -version = "0.1.1" +version = "0.1.2" dependencies = [ "anchor-lang", "bolt-system", @@ -894,7 +894,7 @@ version = "0.0.1" [[package]] name = "bolt-helpers-system-template" -version = "0.1.1" +version = "0.1.2" dependencies = [ "proc-macro2", "quote", @@ -903,7 +903,7 @@ dependencies = [ [[package]] name = "bolt-helpers-world-apply" -version = "0.1.1" +version = "0.1.2" dependencies = [ "proc-macro2", "quote", @@ -912,7 +912,7 @@ dependencies = [ [[package]] name = "bolt-lang" -version = "0.1.1" +version = "0.1.2" dependencies = [ "ahash 0.8.6", "anchor-lang", @@ -932,7 +932,7 @@ dependencies = [ [[package]] name = "bolt-system" -version = "0.1.1" +version = "0.1.2" dependencies = [ "anchor-lang", "bolt-helpers-system-template", @@ -948,7 +948,7 @@ dependencies = [ [[package]] name = "bolt-utils" -version = "0.1.1" +version = "0.1.2" dependencies = [ "proc-macro2", "quote", @@ -3058,7 +3058,7 @@ dependencies = [ [[package]] name = "position" -version = "0.1.1" +version = "0.1.2" dependencies = [ "anchor-lang", "bolt-lang", @@ -5005,7 +5005,7 @@ dependencies = [ [[package]] name = "system-apply-velocity" -version = "0.1.1" +version = "0.1.2" dependencies = [ "anchor-lang", "anchor-spl", @@ -5037,7 +5037,7 @@ dependencies = [ [[package]] name = "system-fly" -version = "0.1.1" +version = "0.1.2" dependencies = [ "anchor-lang", "bolt-lang", @@ -5046,7 +5046,7 @@ dependencies = [ [[package]] name = "system-simple-movement" -version = "0.1.1" +version = "0.1.2" dependencies = [ "anchor-lang", "bolt-lang", @@ -5568,7 +5568,7 @@ checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" [[package]] name = "velocity" -version = "0.1.1" +version = "0.1.2" dependencies = [ "anchor-lang", "bolt-lang", @@ -5910,7 +5910,7 @@ dependencies = [ [[package]] name = "world" -version = "0.1.1" +version = "0.1.2" dependencies = [ "anchor-lang", "bolt-component", diff --git a/Cargo.toml b/Cargo.toml index 284881a..709b8d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ members = [ ] [workspace.package] -version = "0.1.1" +version = "0.1.2" authors = ["Magicblock Labs "] repository = "https://github.com/magicblock-labs/bolt" homepage = "https://www.magicblock.gg/" @@ -15,24 +15,24 @@ license = "MIT" edition = "2021" [workspace.dependencies] -bolt-attribute-bolt-program = { path = "crates/bolt-lang/attribute/bolt-program", version = "=0.1.1" } -bolt-attribute-bolt-component = { path = "crates/bolt-lang/attribute/component", version = "=0.1.1" } -bolt-attribute-bolt-system = { path = "crates/bolt-lang/attribute/system", version = "=0.1.1"} -bolt-attribute-bolt-system-input = { path = "crates/bolt-lang/attribute/system-input", version = "=0.1.1" } -bolt-attribute-bolt-extra-accounts = { path = "crates/bolt-lang/attribute/extra-accounts", version = "=0.1.1" } -bolt-attribute-bolt-arguments = { path = "crates/bolt-lang/attribute/arguments", version = "=0.1.1" } -bolt-attribute-bolt-component-deserialize = { path = "crates/bolt-lang/attribute/component-deserialize", version = "=0.1.1" } -bolt-attribute-bolt-component-id = { path = "crates/bolt-lang/attribute/component-id", version = "=0.1.1" } -bolt-helpers-system-template = { path = "crates/bolt-helpers/attribute/system-template", version = "=0.1.1" } -bolt-helpers-world-apply = { path = "crates/bolt-helpers/attribute/world-apply", version = "=0.1.1" } -bolt-utils = { path = "crates/bolt-lang/utils", version = "=0.1.1" } -world = { path = "programs/world", features = ["cpi"], version = "=0.1.1"} -bolt-system = { path = "programs/bolt-system", features = ["cpi"], version = "=0.1.1"} -bolt-component = { path = "programs/bolt-component", features = ["cpi"], version = "=0.1.1"} +bolt-attribute-bolt-program = { path = "crates/bolt-lang/attribute/bolt-program", version = "=0.1.2" } +bolt-attribute-bolt-component = { path = "crates/bolt-lang/attribute/component", version = "=0.1.2" } +bolt-attribute-bolt-system = { path = "crates/bolt-lang/attribute/system", version = "=0.1.2"} +bolt-attribute-bolt-system-input = { path = "crates/bolt-lang/attribute/system-input", version = "=0.1.2" } +bolt-attribute-bolt-extra-accounts = { path = "crates/bolt-lang/attribute/extra-accounts", version = "=0.1.2" } +bolt-attribute-bolt-arguments = { path = "crates/bolt-lang/attribute/arguments", version = "=0.1.2" } +bolt-attribute-bolt-component-deserialize = { path = "crates/bolt-lang/attribute/component-deserialize", version = "=0.1.2" } +bolt-attribute-bolt-component-id = { path = "crates/bolt-lang/attribute/component-id", version = "=0.1.2" } +bolt-helpers-system-template = { path = "crates/bolt-helpers/attribute/system-template", version = "=0.1.2" } +bolt-helpers-world-apply = { path = "crates/bolt-helpers/attribute/world-apply", version = "=0.1.2" } +bolt-utils = { path = "crates/bolt-lang/utils", version = "=0.1.2" } +world = { path = "programs/world", features = ["cpi"], version = "=0.1.2"} +bolt-system = { path = "programs/bolt-system", features = ["cpi"], version = "=0.1.2"} +bolt-component = { path = "programs/bolt-component", features = ["cpi"], version = "=0.1.2"} ## External crates -anchor-lang = { git = "https://github.com/coral-xyz/anchor.git", rev = "0f60909", features = ["init-if-needed"] } -anchor-spl = { git = "https://github.com/coral-xyz/anchor.git", rev = "0f60909" } +anchor-lang = { version = "0.29.0", git = "https://github.com/coral-xyz/anchor.git", rev = "0f60909", features = ["init-if-needed"] } +anchor-spl = { version = "0.29.0", git = "https://github.com/coral-xyz/anchor.git", rev = "0f60909" } solana-security-txt = "1.1.1" tuple-conv = "1.0.1" syn = { version = "1.0.60", features = ["full"] } diff --git a/cli/npm-package/package.json b/cli/npm-package/package.json index 22f6aae..ef94073 100644 --- a/cli/npm-package/package.json +++ b/cli/npm-package/package.json @@ -1,6 +1,6 @@ { "name": "@magicblock-labs/bolt-cli", - "version": "0.1.1", + "version": "0.1.2", "description": "Bolt CLI tool", "homepage": "https://github.com/magicblock-labs/bolt#readme", "bugs": { @@ -29,13 +29,16 @@ "typescript": "^4.9.4" }, "optionalDependencies": { - "@magicblock-labs/bolt-cli-darwin-x64": "0.1.1", - "@magicblock-labs/bolt-cli-darwin-arm64": "0.1.1", - "@magicblock-labs/bolt-cli-linux-x86": "0.1.1", - "@magicblock-labs/bolt-cli-linux-x64": "0.1.1", - "@magicblock-labs/bolt-cli-linux-arm64": "0.1.1", - "@magicblock-labs/bolt-cli-windows-x86": "0.1.1", - "@magicblock-labs/bolt-cli-windows-x64": "0.1.1" + "@magicblock-labs/bolt-cli-darwin-x64": "0.1.2", + "@magicblock-labs/bolt-cli-darwin-arm64": "0.1.2", + "@magicblock-labs/bolt-cli-linux-x86": "0.1.2", + "@magicblock-labs/bolt-cli-linux-x64": "0.1.2", + "@magicblock-labs/bolt-cli-linux-arm64": "0.1.2", + "@magicblock-labs/bolt-cli-windows-x86": "0.1.2", + "@magicblock-labs/bolt-cli-windows-x64": "0.1.2", + "@magicblock-labs/bolt-cli-linux-x64-musl": "0.1.2", + "@magicblock-labs/bolt-cli-linux-x86-musl": "0.1.2", + "@magicblock-labs/bolt-cli-linux-arm64-musl": "0.1.2" }, "publishConfig": { "access": "public" diff --git a/cli/npm-package/package.json.tmpl b/cli/npm-package/package.json.tmpl index 2521e8b..b34cab6 100644 --- a/cli/npm-package/package.json.tmpl +++ b/cli/npm-package/package.json.tmpl @@ -1,7 +1,7 @@ { "name": "@magicblock-labs/${node_pkg}", "description": "Bolt CLI tool (${node_pkg})", - "version": "0.1.1", + "version": "0.1.2", "repository": { "type": "git", "url": "git+https://github.com/magicblock-labs/bolt.git" diff --git a/cli/src/rust_template.rs b/cli/src/rust_template.rs index a19f446..1f1df84 100644 --- a/cli/src/rust_template.rs +++ b/cli/src/rust_template.rs @@ -12,7 +12,7 @@ use std::path::{Path, PathBuf}; // Anchor CLI version // TODO: use the stable version once the new IDL standard is released pub const ANCHOR_CLI_VERSION: &str = - "{ git = \"https://github.com/coral-xyz/anchor.git\", rev = \"0f60909\" }"; + "{ git = { version = \"0.29.0\", \"https://github.com/coral-xyz/anchor.git\", rev = \"0f60909\" }"; pub const TS_ANCHOR_VERSION: &str = "0.29.1"; /// Create a component from the given name. diff --git a/clients/bolt-sdk/package.json b/clients/bolt-sdk/package.json index f402e4a..4ff64a5 100644 --- a/clients/bolt-sdk/package.json +++ b/clients/bolt-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@magicblock-labs/bolt-sdk", - "version": "0.1.1", + "version": "0.1.2", "description": "Bolt typescript SDK", "author": "dev@magicblock.gg", "license": "MIT",