From 1d26ac09f7c8ba4a5a446a2213db558cf55d7cce Mon Sep 17 00:00:00 2001 From: roshan <19766713+rpalakkal@users.noreply.github.com> Date: Wed, 14 Feb 2024 18:50:38 -0500 Subject: [PATCH 1/3] chore: publish v0.0.1 to test --- LICENSE | 21 +++++++++++++++++++++ circuit/Cargo.toml | 6 ++++-- readme.md | 2 +- sdk-derive/Cargo.toml | 7 +++++-- sdk-derive/src/input.rs | 2 +- sdk/Cargo.toml | 8 +++++--- 6 files changed, 37 insertions(+), 9 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c52b3b5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Axiom + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/circuit/Cargo.toml b/circuit/Cargo.toml index b67e507..b070286 100644 --- a/circuit/Cargo.toml +++ b/circuit/Cargo.toml @@ -1,7 +1,9 @@ [package] name = "axiom-circuit" -version = "0.1.0" +version = "0.0.1" edition = "2021" +description = "Lower-level API for writing Axiom compute circuits" +license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -22,4 +24,4 @@ num-bigint = "0.4.4" num-integer = "0.1.45" [dev-dependencies] -test-case = "*" +test-case = "3.3.1" diff --git a/readme.md b/readme.md index 9a30b5e..62cc46b 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,7 @@ This repository is split into 3 components: - `sdk`: User-friendly API for writing Axiom compute circuits - `circuit`: Lower-level API for writing Axiom compute circuits -- `sdk-derive`: Procedural macros to for writing circuits with axiom-sdk +- `sdk-derive`: Procedural macros for writing Axiom compute functions with axiom-sdk ## axiom-sdk diff --git a/sdk-derive/Cargo.toml b/sdk-derive/Cargo.toml index 7127204..4ee8b88 100644 --- a/sdk-derive/Cargo.toml +++ b/sdk-derive/Cargo.toml @@ -1,12 +1,15 @@ [package] name = "axiom-sdk-derive" -version = "0.1.0" +version = "0.0.1" edition = "2021" +license = "MIT" +description = "Procedural macros for writing Axiom compute functions with axiom-sdk" +readme = "../readme.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -syn = "2.0.43" +syn = {version = "2.0.43", features=["full"]} quote = "1.0.33" proc-macro2 = "1.0.72" diff --git a/sdk-derive/src/input.rs b/sdk-derive/src/input.rs index df637b9..02263d5 100644 --- a/sdk-derive/src/input.rs +++ b/sdk-derive/src/input.rs @@ -23,7 +23,7 @@ pub fn impl_new_struct(ast: &ItemStruct) -> Result { .map(|field| field.ty.to_token_stream()) .collect(); - let field_names: Vec<_> = fields + let field_names: Vec = fields .iter() .map(|field| { if let Some(ref field) = field.ident { diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index e757460..2fb3e38 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -1,13 +1,15 @@ [package] name = "axiom-sdk" -version = "0.1.0" +version = "0.0.1" edition = "2021" +license = "MIT" +description = "User-friendly API for writing Axiom compute circuits" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -axiom-circuit = { path = "../circuit" } -axiom-sdk-derive = { path = "../sdk-derive" } +axiom-circuit = { version="0.0.1", path = "../circuit" } +axiom-sdk-derive = { version="0.0.1", path = "../sdk-derive" } ethers = "2.0" anyhow = "1.0.75" serde = { version = "1.0", features = ["derive"] } From 0e075b82ba26d62d56b1a6431baaf6ccf7ef4060 Mon Sep 17 00:00:00 2001 From: roshan <19766713+rpalakkal@users.noreply.github.com> Date: Wed, 14 Feb 2024 19:04:59 -0500 Subject: [PATCH 2/3] chore: v0.1.0 crates.io release --- circuit/Cargo.toml | 2 +- readme.md | 2 +- sdk-derive/Cargo.toml | 3 +-- sdk/Cargo.toml | 7 ++++--- sdk/src/lib.rs | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/circuit/Cargo.toml b/circuit/Cargo.toml index b070286..264b5ea 100644 --- a/circuit/Cargo.toml +++ b/circuit/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "axiom-circuit" -version = "0.0.1" +version = "0.1.0" edition = "2021" description = "Lower-level API for writing Axiom compute circuits" license = "MIT" diff --git a/readme.md b/readme.md index 62cc46b..a56a8f4 100644 --- a/readme.md +++ b/readme.md @@ -12,7 +12,7 @@ This repository is split into 3 components: To install our Rust circuit SDK into a Cargo project, run: ```bash -cargo add axiom-sdk --git https://github.com/axiom-crypto/axiom-sdk-rs +cargo add axiom-sdk ``` ### Overview diff --git a/sdk-derive/Cargo.toml b/sdk-derive/Cargo.toml index 4ee8b88..3a30ae2 100644 --- a/sdk-derive/Cargo.toml +++ b/sdk-derive/Cargo.toml @@ -1,10 +1,9 @@ [package] name = "axiom-sdk-derive" -version = "0.0.1" +version = "0.1.0" edition = "2021" license = "MIT" description = "Procedural macros for writing Axiom compute functions with axiom-sdk" -readme = "../readme.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index 2fb3e38..02951b9 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -1,15 +1,16 @@ [package] name = "axiom-sdk" -version = "0.0.1" +version = "0.1.0" edition = "2021" license = "MIT" description = "User-friendly API for writing Axiom compute circuits" +readme = "../readme.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -axiom-circuit = { version="0.0.1", path = "../circuit" } -axiom-sdk-derive = { version="0.0.1", path = "../sdk-derive" } +axiom-circuit = { version="0.1.0", path = "../circuit" } +axiom-sdk-derive = { version="0.1.0", path = "../sdk-derive" } ethers = "2.0" anyhow = "1.0.75" serde = { version = "1.0", features = ["derive"] } diff --git a/sdk/src/lib.rs b/sdk/src/lib.rs index 0da7dcf..d6c0b2b 100644 --- a/sdk/src/lib.rs +++ b/sdk/src/lib.rs @@ -4,7 +4,7 @@ //! //! To install our Rust circuit SDK into a Cargo project, run: //! ```bash -//! cargo add axiom-sdk --git https://github.com/axiom-crypto/axiom-sdk-rs +//! cargo add axiom-sdk //! ``` //! //! ### Overview @@ -26,7 +26,7 @@ //! //! ```ignore //! #[AxiomComputeInput] -//! pub struct AccountAgeInput { +//! pub struct AccountAgeInput { //! pub addr: Address, //! pub claimed_block_number: u64, //! } From a3356a0bd0d0bf5f53be9c3f026636816fe0b932 Mon Sep 17 00:00:00 2001 From: Yi Sun Date: Thu, 15 Feb 2024 11:32:08 -0500 Subject: [PATCH 3/3] chore: update LICENSE --- LICENSE | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LICENSE b/LICENSE index c52b3b5..804cc2d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Axiom +Copyright (c) 2024 Intrinsic Technologies, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE.