Near-One / near-plugins

Implementation of common patterns used for NEAR smart contracts.
Creative Commons Zero v1.0 Universal
27 stars 12 forks source link

Add functions acl_get_{admins, grantees} #12

Closed mooori closed 1 year ago

mooori commented 1 year ago

Note To be merged after #8 and #9. Once they are merged, I'll rebase this PR. Until then, the diff here on github is messy (hence still in draft mode). After the rebase, only the most recent commit should remain in this PR.

Overview

Adds methods to retrieve the admins and grantees of roles.

# Command to execute the tests:
cargo test --test access_controllable

# This makes `workspaces` write more than 1G to /tmp (on my machine).
# Depending on the size of your /tmp, a cleanup might be required afterwards.
du --summarize --total --human-readable /tmp/sandbox-*
rm -r /tmp/sandbox-*