Skip to content

Commit

Permalink
Merge pull request #23 from kommitters/v0.2
Browse files Browse the repository at this point in the history
Release v0.2.0
  • Loading branch information
juanmagiraldor authored Dec 5, 2023
2 parents 324010b + 86bf154 commit e353d8a
Show file tree
Hide file tree
Showing 13 changed files with 678 additions and 288 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
env:
CARGO_TERM_COLOR: always

permissions:
contents: read

jobs:
build_and_test:
name: Rust project - latest
Expand All @@ -16,7 +19,12 @@ jobs:
toolchain:
- stable
steps:
- uses: actions/checkout@v3
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit

- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: rustup target add wasm32-unknown-unknown
- name: Contract Build
Expand Down
23 changes: 19 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,22 @@ jobs:
toolchain:
- stable
steps:
- uses: actions/checkout@v3
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
coveralls.io:443
crates.io:443
github.com:443
index.crates.io:443
objects.githubusercontent.com:443
static.crates.io:443
static.rust-lang.org:443
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: rustup target add wasm32-unknown-unknown
- name: Contract Build
Expand All @@ -33,12 +48,12 @@ jobs:
run: |
cargo fmt --check
- name: Code Tests and coverage
uses: actions-rs/tarpaulin@v0.1
uses: actions-rs/tarpaulin@044a1e5bdace8dd2f727b1af63c1d9a1d3572068 # v0.1.3
with:
version: 0.22.0
args: --all-features --fail-under 99.0 --out Lcov
args: --all-features --fail-under 98.0 --out Lcov
- name: Upload to Coveralls
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@09b709cf6a16e30b0808ba050c7a6e8a5ef13f8d # master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: "./lcov.info"
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 0.2.0 (05.12.2023)
- [Implement DID Document Structure and update storage](https://github.com/kommitters/soroban-did-contract/issues/20)
- [Update README file](https://github.com/kommitters/soroban-did-contract/pull/17)
- [[StepSecurity] Apply security best practices](https://github.com/kommitters/soroban-did-contract/pull/21)

## 0.1.0 (16.11.2023)
- [Allow getting DID attributes](https://github.com/kommitters/soroban-did-contract/issues/10)
- [Allow setting DID attributes](https://github.com/kommitters/soroban-did-contract/issues/9)
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "soroban-did-contract"
version = "0.1.0"
version = "0.2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -9,10 +9,10 @@ edition = "2021"
crate-type = ["cdylib"]

[dependencies]
soroban-sdk = "20.0.0-rc2"
soroban-sdk = "=20.0.0-rc2.2"

[dev_dependencies]
soroban-sdk = { version = "20.0.0-rc2", features = ["testutils"] }
soroban-sdk = { version = "=20.0.0-rc2.2", features = ["testutils"] }

[profile.release]
opt-level = "z"
Expand Down
Loading

0 comments on commit e353d8a

Please sign in to comment.