From 92348ca43f68de9830ccdfcfce586476296df6fe Mon Sep 17 00:00:00 2001 From: Jake Hartnell Date: Tue, 4 Jul 2023 17:52:04 +0200 Subject: [PATCH 1/3] Add required metadata for publishing on crates.io --- Cargo.toml | 3 ++- contracts/accessories/listener/Cargo.toml | 2 ++ contracts/accessories/polytone-tester/Cargo.toml | 2 ++ contracts/main/note/Cargo.toml | 2 ++ contracts/main/proxy/Cargo.toml | 2 ++ contracts/main/voice/Cargo.toml | 2 ++ packages/polytone/Cargo.toml | 3 ++- 7 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6945857..8ea689b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,8 @@ members = [ [workspace.package] edition = "2021" -license = "BSD-3" +license = "BSD-3-Clause" +repository = "https://github.com/DA0-DA0/polytone" rust-version = "1.67" version = "1.0.0" diff --git a/contracts/accessories/listener/Cargo.toml b/contracts/accessories/listener/Cargo.toml index 4e7ad15..c2fedce 100644 --- a/contracts/accessories/listener/Cargo.toml +++ b/contracts/accessories/listener/Cargo.toml @@ -1,8 +1,10 @@ [package] name = "polytone-listener" authors = ["noah "] +description = "A contract that listens for Polytone callbacks." edition = { workspace = true } license = { workspace = true } +repository = { workspace = true } rust-version = { workspace = true } version = { workspace = true } diff --git a/contracts/accessories/polytone-tester/Cargo.toml b/contracts/accessories/polytone-tester/Cargo.toml index f699ca6..4ba7db2 100644 --- a/contracts/accessories/polytone-tester/Cargo.toml +++ b/contracts/accessories/polytone-tester/Cargo.toml @@ -1,8 +1,10 @@ [package] name = "polytone-tester" authors = ["ekez "] +description = "A Polytone tester contract." edition = { workspace = true } license = { workspace = true } +repository = { workspace = true } rust-version = { workspace = true } version = { workspace = true } diff --git a/contracts/main/note/Cargo.toml b/contracts/main/note/Cargo.toml index ad834ee..50afa69 100644 --- a/contracts/main/note/Cargo.toml +++ b/contracts/main/note/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "polytone-note" authors = ["ekez "] +description = "Sends messages to be executed on other chains over IBC." edition = { workspace = true } license = { workspace = true } rust-version = { workspace = true } +repository = { workspace = true } version = { workspace = true } [lib] diff --git a/contracts/main/proxy/Cargo.toml b/contracts/main/proxy/Cargo.toml index fd79a86..6a23f21 100644 --- a/contracts/main/proxy/Cargo.toml +++ b/contracts/main/proxy/Cargo.toml @@ -1,8 +1,10 @@ [package] name = "polytone-proxy" authors = ["ekez "] +description = "An Interchain Account contract." edition = { workspace = true } license = { workspace = true } +repository = { workspace = true } rust-version = { workspace = true } version = { workspace = true } diff --git a/contracts/main/voice/Cargo.toml b/contracts/main/voice/Cargo.toml index d39decc..41ad362 100644 --- a/contracts/main/voice/Cargo.toml +++ b/contracts/main/voice/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "polytone-voice" authors = ["ekez "] +description = "The Polytone Voice contract, recieving notes over IBC and vocalizing them on the host chain via account proxy contracts." edition = { workspace = true } license = { workspace = true } rust-version = { workspace = true } +repository = { workspace = true } version = { workspace = true } [lib] diff --git a/packages/polytone/Cargo.toml b/packages/polytone/Cargo.toml index e648eb7..bfdb9b3 100644 --- a/packages/polytone/Cargo.toml +++ b/packages/polytone/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "polytone" authors = ["ekez "] +description = "Core interfaces for Polytone Interchain accounts and queries." edition = { workspace = true } license = { workspace = true } rust-version = { workspace = true } @@ -10,4 +11,4 @@ version = { workspace = true } cosmwasm-schema = { workspace = true } cosmwasm-std = { workspace = true } cw-storage-plus = { workspace = true } -thiserror = { workspace = true } \ No newline at end of file +thiserror = { workspace = true } From 88a372d8aa7511344cd1e0bfafaafe6271a441ec Mon Sep 17 00:00:00 2001 From: Jake Hartnell Date: Tue, 4 Jul 2023 17:57:35 +0200 Subject: [PATCH 2/3] Specify version in workspace Cargo.toml file --- Cargo.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8ea689b..010b024 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,10 +24,10 @@ panic = 'abort' rpath = false [workspace.dependencies] -polytone = { path = "packages/polytone" } -polytone-proxy = { path = "contracts/main/proxy" } -polytone-note = { path = "contracts/main/note" } -polytone-voice = { path = "contracts/main/voice" } +polytone = { path = "packages/polytone", version = "1.0.0" } +polytone-proxy = { path = "contracts/main/proxy", version = "1.0.0" } +polytone-note = { path = "contracts/main/note", version = "1.0.0" } +polytone-voice = { path = "contracts/main/voice", version = "1.0.0" } cosmwasm-schema = "1.2.1" cosmwasm-std = { version = "1.2.4", features = ["ibc3"] } From 5e198c06f0ae1a57372c46b443cb1abf6e52c64a Mon Sep 17 00:00:00 2001 From: Jake Hartnell Date: Tue, 4 Jul 2023 18:07:44 +0200 Subject: [PATCH 3/3] Use stable rust for linting and clippy --- .github/workflows/clippy.yml | 2 +- .github/workflows/format.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index 3c00631..aeda25c 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -8,7 +8,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: - toolchain: nightly + toolchain: stable components: clippy override: true - uses: actions-rs/clippy-check@v1 diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 5b2d5f5..43f7c9c 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -8,7 +8,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: - toolchain: nightly + toolchain: stable components: rustfmt override: true - name: Run cargo fmt