From 0326e41f6c463b6d2095d191a9aa66c6e01848c0 Mon Sep 17 00:00:00 2001 From: Michal Handzlik <4hansu@gmail.com> Date: Fri, 22 Mar 2024 14:18:37 +0100 Subject: [PATCH] Final touches --- .github/workflows/unit_tests.yml | 3 ++- RELEASE_TODO.md | 10 ++++++++++ lib.rs | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 RELEASE_TODO.md diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 045fb8c..636e005 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -41,6 +41,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: test + args: --features "contract" build: name: Build the contract @@ -69,4 +70,4 @@ jobs: uses: actions-rs/cargo@v1 with: command: contract - args: build --release + args: build --release --features "contract" diff --git a/RELEASE_TODO.md b/RELEASE_TODO.md new file mode 100644 index 0000000..afd3127 --- /dev/null +++ b/RELEASE_TODO.md @@ -0,0 +1,10 @@ +The release procedure: + +1. Compile the current version of the crate with `cargo contract build --release --features "contract"`, optionally using one of dockerized build environments. +2. Deploy contracts to Testnet and Mainnet. +3. Prepare a release PR which: + a. Inserts deployed addresses in `traits.rs` and `README.md`, + b. Adds `.contract`, `.json` and `.wasm` files to `artifacts', + c. Deletes this file. +4. Merge the release PR and tag the resulting commit with `1.0.0`. +5. Publish to crates.io \ No newline at end of file diff --git a/lib.rs b/lib.rs index 945fc44..c47e511 100644 --- a/lib.rs +++ b/lib.rs @@ -3,7 +3,7 @@ mod traits; // Re-export of PSP22 stuff for convenience of cross-contract calls -pub use psp22::{PSP22Error, PSP22Metadata, PSP22}; +pub use psp22::{PSP22Error, PSP22}; pub use traits::{WrappedAZERO, MAINNET, TESTNET};