Skip to content

Commit

Permalink
Merge pull request #186 from Supercolony-net/release/release-2.3.0
Browse files Browse the repository at this point in the history
Openbrush release v2.3.0
  • Loading branch information
Green Baneling authored Nov 2, 2022
2 parents 7557f7d + 8534c21 commit e366f6f
Show file tree
Hide file tree
Showing 60 changed files with 75 additions and 70 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,19 @@ jobs:
env:
CARGO_TARGET_DIR: /usr/local/cache/target
steps:
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- uses: actions/checkout@v3

- name: Cache rust artifacts for source branch
id: cache-rust-artifacts-source
uses: actions/cache@v3
with:
path: /usr/local/cache/target
key: cache-rust-artifacts-pr-${{ hashFiles('Cargo.toml') }}-${{ github.ref }}
key: cache-rust-artifacts-${{ hashFiles('Cargo.toml') }}-${{ github.ref }}
restore-keys: |
cache-rust-artifacts-pr-${{ hashFiles('Cargo.toml') }}
cache-rust-artifacts-${{ hashFiles('Cargo.toml') }}
- name: Find contract data for source branch
id: find-data-source
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exclude = [

[package]
name = "openbrush"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <green.baneling@supercolony.net>"]
edition = "2018"

Expand All @@ -38,8 +38,8 @@ ink_engine = { version = "~3.4.0", default-features = false, optional = true }
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] }
scale-info = { version = "2", default-features = false, features = ["derive"], optional = true }

openbrush_contracts = { version = "~2.2.0", path = "contracts", default-features = false }
openbrush_lang = { version = "~2.2.0", path = "lang", default-features = false }
openbrush_contracts = { version = "~2.3.0", path = "contracts", default-features = false }
openbrush_lang = { version = "~2.3.0", path = "lang", default-features = false }

[lib]
name = "openbrush"
Expand Down
4 changes: 2 additions & 2 deletions contracts/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "openbrush_contracts"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <green.baneling@supercolony.net>"]
edition = "2021"

Expand All @@ -26,7 +26,7 @@ ink_engine = { version = "~3.4.0", default-features = false, optional = true }
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] }
scale-info = { version = "2", default-features = false, features = ["derive"], optional = true }

openbrush = { version = "~2.2.0", package = "openbrush_lang", path = "../lang", default-features = false }
openbrush = { version = "~2.3.0", package = "openbrush_lang", path = "../lang", default-features = false }

pallet-assets-chain-extension = { git = "https://github.com/Supercolony-net/pallet-assets-chain-extension", default-features = false, features = ["ink"] }

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/smart-contracts/example/contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ implementation of `Lending` and `LendingPermissioned` traits defined in the `len
```toml
[package]
name = "lending_contract"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <dominik.krizo@supercolony.net>"]
edition = "2021"

Expand All @@ -36,7 +36,7 @@ scale-info = { version = "2", default-features = false, features = ["derive"], o
shares_contract = { path = "../shares", default-features = false, features = ["ink-as-dependency"] }
loan_contract = { path = "../loan", default-features = false, features = ["ink-as-dependency"] }
lending_project = { path = "../..", default-features = false }
openbrush = { version = "~2.2.0", default-features = false, features = ["pausable", "access_control"] }
openbrush = { version = "~2.3.0", default-features = false, features = ["pausable", "access_control"] }

[lib]
name = "lending_contract"
Expand Down
8 changes: 4 additions & 4 deletions docs/docs/smart-contracts/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ scale = { package = "parity-scale-codec", version = "3", default-features = fals
scale-info = { version = "2", default-features = false, features = ["derive"], optional = true }

# Brush dependency
openbrush = { version = "~2.2.0", default-features = false }
openbrush = { version = "~2.3.0", default-features = false }

[features]
default = ["std"]
Expand Down Expand Up @@ -89,17 +89,17 @@ The name of the feature is the same as the name of the module. For example:

To enable `psp22`:
```toml
openbrush = { version = "~2.2.0", default-features = false, features = ["psp22"] }
openbrush = { version = "~2.3.0", default-features = false, features = ["psp22"] }
```

To enable `ownable`:
```toml
openbrush = { version = "~2.2.0", default-features = false, features = ["ownable"] }
openbrush = { version = "~2.3.0", default-features = false, features = ["ownable"] }
```

To enable both:
```toml
openbrush = { version = "~2.2.0", default-features = false, features = ["psp22", "ownable"] }
openbrush = { version = "~2.3.0", default-features = false, features = ["psp22", "ownable"] }
```

After enabling the feature and importing the corresponding module, you need to embed the module
Expand Down
2 changes: 1 addition & 1 deletion example_project_structure/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lending_project"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <green.baneling@supercolony.net, dominik.krizo@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion example_project_structure/contracts/lending/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lending_contract"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <dominik.krizo@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion example_project_structure/contracts/loan/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "loan_contract"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <dominik.krizo@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion example_project_structure/contracts/shares/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shares_contract"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <dominik.krizo@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion example_project_structure/contracts/stable_coin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stable_coin_contract"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <dominik.krizo@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/access_control/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_access_control"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <green.baneling@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/access_control_extensions/enumerable/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_access_control_enumerable"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <nameless.endless@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/alternatives/diamond/ink/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ink_diamond"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <green.baneling@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/alternatives/diamond/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rust_diamond"
version = "2.0.0"
version = "2.3.0"
authors = ["Supercolony <dominik.krizo@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/diamond/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_diamond"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <dominik.krizo@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/diamond/diamond_caller/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "diamond_caller"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <dominik.krizo@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/diamond/psp22_facet_v1/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp22_facet_v1"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <dominik.krizo@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/diamond/psp22_facet_v2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp22_facet_v2"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <dominik.krizo@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/diamond/psp22_metadata_facet/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp22_metadata_facet"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <dominik.krizo@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/ownable/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_ownable"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <green.baneling@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/pausable/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_pausable"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <green.baneling@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/payment_splitter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_payment_splitter"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <green.baneling@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/proxy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_proxy"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <horacio.lex@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/proxy/psp22_metadata_upgradeable/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp22_metadata_upgradeable"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <horacio.lex@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/proxy/psp22_upgradeable/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp22_upgradeable"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <horacio.lex@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/psp22/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp22"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <green.baneling@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/psp22_extensions/burnable/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp22_burnable"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <m.konstantinovna@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/psp22_extensions/capped/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp22_capped"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <dominik.krizo@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/psp22_extensions/flashmint/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp22_flashmint"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <dominik.krizo@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/psp22_extensions/metadata/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp22_metadata"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <m.konstantinovna@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/psp22_extensions/mintable/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp22_mintable"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <m.konstantinovna@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/psp22_extensions/pausable/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp22_pausable"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <dominik.krizo@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/psp22_extensions/wrapper/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp22_wrapper"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <dominik.krizo@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/psp22_pallet/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp22_pallet"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <green.baneling@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/psp22_pallet_extensions/burnable/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp22_pallet_burnable"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <nameless.endless@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/psp22_pallet_extensions/metadata/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp22_pallet_metadata"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <nameless.endless@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/psp22_pallet_extensions/mintable/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp22_pallet_mintable"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <nameless.endless@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/psp22_utils/token_timelock/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp22_token_timelock"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <dominik.krizo@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/psp34/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp34"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <dominik.krizo@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/psp34_extensions/burnable/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp34_burnable"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <dominik.krizo@supercolony.net>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion examples/psp34_extensions/enumerable/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "my_psp34_enumerable"
version = "2.2.0"
version = "2.3.0"
authors = ["Supercolony <green.baneling@supercolony.net>"]
edition = "2021"

Expand Down
Loading

0 comments on commit e366f6f

Please sign in to comment.