Skip to content

Releases: Near-One/near-plugins

v0.4.0

12 Sep 12:18
9e6f057
Compare
Choose a tag to compare

What's Changed

  • feat(upgradable)!: add hash parameter to up_deploy_code by @mooori in #117

Full Changelog: v0.3.1...v0.4.0

v0.3.1

12 Sep 12:17
4f8466b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.0...v0.3.1

v0.3.0

20 Aug 14:13
eff928f
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.0...v0.3.0

v0.2.0

19 Jan 09:50
542601c
Compare
Choose a tag to compare

BREAKING CHANGES:

  • #118: Update of rust-version (MSRV) from 1.64.0 to 1.69.0. Contracts using near-plugins now require a Rust version of at least 1.69.0.
    • Developers who want to run the test suite of near-plugins and run into compilation errors can follow this workaround.

Testing

  • 128 applies temporary workarounds required to build tests.

Dependencies

Dev-dependencies

  • #118 upgrades:
    • near-sdk
    • near-workspaces
  • #122 removes borsh which was an unused dev-dependencies.

v0.1.0

08 May 15:41
64c512f
Compare
Choose a tag to compare

This section lists changes affecting multiple plugins. Changes that affect only individual plugins are listed below.

BREAKING CHANGES

  • Functions returning storage prefixes return &'static [u8] instead of Vec<u8>. [#92]

Testing & documentation

  • All plugins are now tested in integration tests using Near’s workspaces, as described here.
  • The contracts used in tests contain many comments and serve as usage examples.

Dependencies

  • Update near-sdk to 4.1.0. [#40]
  • Update workspaces to 0.7. [#65]

Plugins

AccessControllable

BREAKING CHANGES

  • Store plugin state under a separate storage key. Previously it was stored under a field injected into the struct that derives AccessControllable. [#84]

Feature enhancements

  • Make the limit for the the number of role variants explicit. [#70]
  • Enable viewing permissions that have been granted to accounts. [#75, #78]
  • Add the function acl_revoke_super_admin. [#89]
  • Add the function acl_transfer_super_admin. [#94]
  • Add the function acl_add_super_admin. [#98]

FullAccessKeyFallback

BREAKING CHANGES

  • The plugin has been removed. [#87]

Pausable

BREAKING CHANGES

  • Use AccessControllable instead of Ownable to manage authorization of (un)pausing features and to define exemptions via except. [47]
  • Make functions pa_[un]pause return bool. [#91]
  • Emit events Pause and Unpause only if state was modified successfully. [#91]

Feature enhancements

  • Improve an error message related to if_paused. [95]

Upgradable

BREAKING CHANGES

  • Use AccessControllable instead of Ownable to manage permissions for functionality provided by Upgradable. [85]
  • Enable optionally batching a function call with code deployment, which changes the signature of Upgradable::up_deploy_code. [86]

Feature enhancements

  • Allow contracts to set a minimum duration that must pass between staging and deploying new code. The staging duration is a safety mechanism to protect users. [#44]

v0.0.2

23 Nov 09:07
c958583
Compare
Choose a tag to compare
  • Use near-sdk 4.1.0. Use near_sdk::store.
  • Expose function to fetch super admin acl_get_super_admins
  • Use the version of panic friendly for near blockchain.