Skip to content

Releases: Supercolony-net/openbrush-contracts

Release v2.3.0

02 Nov 18:02
e366f6f
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.2.0...v2.3.0

Release v2.2.0

23 Jul 09:24
d6e29f0
Compare
Choose a tag to compare

Release contains:

  • Significant refactoring of how OpenBursh works with storage.
    Now it is simple and more readable. Also, it is a preparation before storage refactoring in ink!.
    More info about refactoring you can find in the description.

  • Implementation of a diamond contract without the usage of ink! codegen. It takes less size and is a good base for investigating future size optimizations.

  • Documentation on how to write upgradeable contracts.

Release v2.1.0

23 Jun 23:49
f07bce2
Compare
Choose a tag to compare
  • Updated the ink! to the v3.3.0 version.
  • Added MultiMapping, Mapping, and RawMapping that can be used to protect the code from monomorphization. The user can specify the key and value that he expects to use during interacting with those structures and that type should be used across all places. It helps to avoid duplicating code for a few different types like AccountId and &AccountId.
  • Optimized the implementation of PSP34Enumerable and also changed the way how to get enumerable functionality.

image

  • Optimized all contract with openbrush::storage::Mapping.
  • Renamed PSP1155 into PSP35 and refactored it according to the proposal.
  • Implemented AccessControlEnumerable and PSP35Enumerable.
  • Added documentation with GIFs regarding deployment of contracts on different parachains/blockchains.

It is a preparation release before a new storage system.

Release v2.0.0

02 Jun 08:46
808354f
Compare
Choose a tag to compare

OpenBursh is available on crates.io under the name openbrush.

OpenBrush uses a specific version of the ink! due to use-ink/ink#1278. And it is renamed brush -> openbrush. It is breaking change so now you need to use a new version like:

ink_primitives = { version = "~3.2.0", default-features = false }
ink_metadata = { version = "~3.2.0", default-features = false, features = ["derive"], optional = true }
ink_env = { version = "~3.2.0", default-features = false }
ink_storage = { version = "~3.2.0", default-features = false }
ink_lang = { version = "~3.2.0", default-features = false }
ink_prelude = { version = "~3.2.0", default-features = false }

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.0.0", default-features = false }

Release v1.7.1

27 May 16:38
69db735
Compare
Choose a tag to compare

Minor fix and new ink!

  • Updated ink! to 3.2.0
  • Fixed bug with not docs in metadata

Release v1.7.0

24 May 20:06
bcc475b
Compare
Choose a tag to compare

Release contains bug fixes and a new additional method.

  • Updated ink! to 3.1.0 release

Another good news: we started to use the ink! from crate.io instead of GitHub. So after updating OpenBrush to a new version also need to update the import of ink! like in documentation. Soon we also will publish brush to crate.io.

Release v1.6.2

02 Jun 13:52
6a4400f
Compare
Choose a tag to compare

Minor fixes and improvements:

  • Fixed bug in PSP34Enumerable and DiamondLoupe contracts.
  • Fixed LendingContract to be compatible with new version of the contract-pallet.
  • Added _release_all functionality into PaymentSplitter

Release v1.6.1

03 May 20:14
abe56fe
Compare
Choose a tag to compare
  • Simplified running of unit tests.
  • Speed up the build of the library by moving each trait definition to a separate file.
  • Fixed the bug with modifiers that don't allow to have more than one input argument.
  • Changed the name admin to member in _setup_role function=)
  • Up version of ink! to 3.0.1
  • Added additional tests for Diamond and for PSP34

Release v1.6.0

05 Apr 15:04
Compare
Choose a tag to compare

Included changes:

  • Moved _before_token_transfer and _after_token_transfer in all token implementations to a separate trait
  • Added NFT enumerable extension PSP34 Enumerable.
  • Added the Diamond contract for diamond standard implementation Diamond along with the Diamond Loupe extension Diamond Loupe

Release v1.5.0

18 Mar 15:27
1688c50
Compare
Choose a tag to compare

ink! v3.0.0 is released
So we are creating a new release that will use that stable version.

That release includes:

  • Refactored implementation of NFT to be compatible with PSP34.
  • Added a new #[brush::storage] macro that allows specifying the storage key of the structure. That macro is useful for upgradable contracts that can be implemented with the new delegate_call functionality.
  • Updated the storage of all contracts to be upgradable by default.
  • Added the Proxy contract that can be used for upgradable contracts.