Browse Source

:bookmark: Release v0.1.2 (#37)

* :sparkles: Add build targets

* :bookmark: Bump version to 0.1.2

* :bug: Add version dependendy in order to publish the crate
Gabriele Picco 1 năm trước cách đây
mục cha
commit
0ba54cfc77

+ 18 - 0
.github/workflows/publish-packages.yml

@@ -26,18 +26,36 @@ jobs:
             TOOLCHAIN: stable,
             TOOLCHAIN: stable,
             TARGET: x86_64-unknown-linux-gnu,
             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,
             NAME: linux-x86-glibc,
             OS: ubuntu-22.04,
             OS: ubuntu-22.04,
             TOOLCHAIN: stable,
             TOOLCHAIN: stable,
             TARGET: i686-unknown-linux-gnu,
             TARGET: i686-unknown-linux-gnu,
           }
           }
+          - {
+            NAME: linux-x86-musl,
+            OS: ubuntu-22.04,
+            TOOLCHAIN: stable,
+            TARGET: i686-unknown-linux-musl,
+          }
           - {
           - {
             NAME: linux-arm64-glibc,
             NAME: linux-arm64-glibc,
             OS: ubuntu-20.04,
             OS: ubuntu-20.04,
             TOOLCHAIN: stable,
             TOOLCHAIN: stable,
             TARGET: aarch64-unknown-linux-gnu,
             TARGET: aarch64-unknown-linux-gnu,
           }
           }
+          - {
+            NAME: linux-arm64-musl,
+            OS: ubuntu-20.04,
+            TOOLCHAIN: stable,
+            TARGET: aarch64-unknown-linux-musl,
+          }
           - {
           - {
             NAME: win32-x64-msvc,
             NAME: win32-x64-msvc,
             OS: windows-2022,
             OS: windows-2022,

+ 11 - 0
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
 ## [0.1.1] - 2024-03-09
 
 
 ### ✨️ Features
 ### ✨️ Features

+ 21 - 21
Cargo.lock

@@ -794,7 +794,7 @@ checksum = "8d696c370c750c948ada61c69a0ee2cbbb9c50b1019ddb86d9317157a99c2cae"
 
 
 [[package]]
 [[package]]
 name = "bolt-attribute-bolt-arguments"
 name = "bolt-attribute-bolt-arguments"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "proc-macro2",
  "proc-macro2",
  "quote",
  "quote",
@@ -803,7 +803,7 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "bolt-attribute-bolt-component"
 name = "bolt-attribute-bolt-component"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "bolt-utils",
  "bolt-utils",
  "proc-macro2",
  "proc-macro2",
@@ -813,7 +813,7 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "bolt-attribute-bolt-component-deserialize"
 name = "bolt-attribute-bolt-component-deserialize"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "bolt-utils",
  "bolt-utils",
  "proc-macro2",
  "proc-macro2",
@@ -823,7 +823,7 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "bolt-attribute-bolt-component-id"
 name = "bolt-attribute-bolt-component-id"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "proc-macro2",
  "proc-macro2",
  "quote",
  "quote",
@@ -832,7 +832,7 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "bolt-attribute-bolt-extra-accounts"
 name = "bolt-attribute-bolt-extra-accounts"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "proc-macro2",
  "proc-macro2",
  "quote",
  "quote",
@@ -841,7 +841,7 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "bolt-attribute-bolt-program"
 name = "bolt-attribute-bolt-program"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "proc-macro2",
  "proc-macro2",
  "quote",
  "quote",
@@ -850,7 +850,7 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "bolt-attribute-bolt-system"
 name = "bolt-attribute-bolt-system"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "proc-macro2",
  "proc-macro2",
  "quote",
  "quote",
@@ -859,7 +859,7 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "bolt-attribute-bolt-system-input"
 name = "bolt-attribute-bolt-system-input"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "proc-macro2",
  "proc-macro2",
  "quote",
  "quote",
@@ -868,7 +868,7 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "bolt-cli"
 name = "bolt-cli"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "anchor-cli",
  "anchor-cli",
  "anchor-client",
  "anchor-client",
@@ -882,7 +882,7 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "bolt-component"
 name = "bolt-component"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "anchor-lang",
  "anchor-lang",
  "bolt-system",
  "bolt-system",
@@ -894,7 +894,7 @@ version = "0.0.1"
 
 
 [[package]]
 [[package]]
 name = "bolt-helpers-system-template"
 name = "bolt-helpers-system-template"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "proc-macro2",
  "proc-macro2",
  "quote",
  "quote",
@@ -903,7 +903,7 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "bolt-helpers-world-apply"
 name = "bolt-helpers-world-apply"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "proc-macro2",
  "proc-macro2",
  "quote",
  "quote",
@@ -912,7 +912,7 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "bolt-lang"
 name = "bolt-lang"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "ahash 0.8.6",
  "ahash 0.8.6",
  "anchor-lang",
  "anchor-lang",
@@ -932,7 +932,7 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "bolt-system"
 name = "bolt-system"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "anchor-lang",
  "anchor-lang",
  "bolt-helpers-system-template",
  "bolt-helpers-system-template",
@@ -948,7 +948,7 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "bolt-utils"
 name = "bolt-utils"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "proc-macro2",
  "proc-macro2",
  "quote",
  "quote",
@@ -3058,7 +3058,7 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "position"
 name = "position"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "anchor-lang",
  "anchor-lang",
  "bolt-lang",
  "bolt-lang",
@@ -5005,7 +5005,7 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "system-apply-velocity"
 name = "system-apply-velocity"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "anchor-lang",
  "anchor-lang",
  "anchor-spl",
  "anchor-spl",
@@ -5037,7 +5037,7 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "system-fly"
 name = "system-fly"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "anchor-lang",
  "anchor-lang",
  "bolt-lang",
  "bolt-lang",
@@ -5046,7 +5046,7 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "system-simple-movement"
 name = "system-simple-movement"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "anchor-lang",
  "anchor-lang",
  "bolt-lang",
  "bolt-lang",
@@ -5568,7 +5568,7 @@ checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
 
 
 [[package]]
 [[package]]
 name = "velocity"
 name = "velocity"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "anchor-lang",
  "anchor-lang",
  "bolt-lang",
  "bolt-lang",
@@ -5910,7 +5910,7 @@ dependencies = [
 
 
 [[package]]
 [[package]]
 name = "world"
 name = "world"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
 dependencies = [
  "anchor-lang",
  "anchor-lang",
  "bolt-component",
  "bolt-component",

+ 17 - 17
Cargo.toml

@@ -7,7 +7,7 @@ members = [
 ]
 ]
 
 
 [workspace.package]
 [workspace.package]
-version = "0.1.1"
+version = "0.1.2"
 authors = ["Magicblock Labs <dev@magicblock.gg>"]
 authors = ["Magicblock Labs <dev@magicblock.gg>"]
 repository = "https://github.com/magicblock-labs/bolt"
 repository = "https://github.com/magicblock-labs/bolt"
 homepage = "https://www.magicblock.gg/"
 homepage = "https://www.magicblock.gg/"
@@ -15,24 +15,24 @@ license = "MIT"
 edition = "2021"
 edition = "2021"
 
 
 [workspace.dependencies]
 [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
 ## 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"
 solana-security-txt = "1.1.1"
 tuple-conv = "1.0.1"
 tuple-conv = "1.0.1"
 syn = { version = "1.0.60", features = ["full"] }
 syn = { version = "1.0.60", features = ["full"] }

+ 11 - 8
cli/npm-package/package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "@magicblock-labs/bolt-cli",
   "name": "@magicblock-labs/bolt-cli",
-  "version": "0.1.1",
+  "version": "0.1.2",
   "description": "Bolt CLI tool",
   "description": "Bolt CLI tool",
   "homepage": "https://github.com/magicblock-labs/bolt#readme",
   "homepage": "https://github.com/magicblock-labs/bolt#readme",
   "bugs": {
   "bugs": {
@@ -29,13 +29,16 @@
     "typescript": "^4.9.4"
     "typescript": "^4.9.4"
   },
   },
   "optionalDependencies": {
   "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": {
   "publishConfig": {
     "access": "public"
     "access": "public"

+ 1 - 1
cli/npm-package/package.json.tmpl

@@ -1,7 +1,7 @@
 {
 {
   "name": "@magicblock-labs/${node_pkg}",
   "name": "@magicblock-labs/${node_pkg}",
   "description": "Bolt CLI tool (${node_pkg})",
   "description": "Bolt CLI tool (${node_pkg})",
-  "version": "0.1.1",
+  "version": "0.1.2",
   "repository": {
   "repository": {
     "type": "git",
     "type": "git",
     "url": "git+https://github.com/magicblock-labs/bolt.git"
     "url": "git+https://github.com/magicblock-labs/bolt.git"

+ 1 - 1
cli/src/rust_template.rs

@@ -12,7 +12,7 @@ use std::path::{Path, PathBuf};
 // Anchor CLI version
 // Anchor CLI version
 // TODO: use the stable version once the new IDL standard is released
 // TODO: use the stable version once the new IDL standard is released
 pub const ANCHOR_CLI_VERSION: &str =
 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";
 pub const TS_ANCHOR_VERSION: &str = "0.29.1";
 
 
 /// Create a component from the given name.
 /// Create a component from the given name.

+ 1 - 1
clients/bolt-sdk/package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "@magicblock-labs/bolt-sdk",
   "name": "@magicblock-labs/bolt-sdk",
-  "version": "0.1.1",
+  "version": "0.1.2",
   "description": "Bolt typescript SDK",
   "description": "Bolt typescript SDK",
   "author": "dev@magicblock.gg",
   "author": "dev@magicblock.gg",
   "license": "MIT",
   "license": "MIT",