diff --git a/.changeset/README.md b/.changeset/README.md deleted file mode 100644 index e5b6d8d..0000000 --- a/.changeset/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# Changesets - -Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works -with multi-package repos, or single-package repos to help you version and publish your code. You can -find the full documentation for it [in our repository](https://github.com/changesets/changesets) - -We have a quick list of common questions to get you started engaging with this project in -[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) diff --git a/.changeset/config.json b/.changeset/config.json deleted file mode 100644 index 7fcf973..0000000 --- a/.changeset/config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "$schema": "https://unpkg.com/@changesets/config@2.2.0/schema.json", - "changelog": "@changesets/cli/changelog", - "commit": false, - "fixed": [], - "linked": [], - "access": "restricted", - "baseBranch": "main", - "updateInternalDependencies": "patch", - "ignore": [] -} diff --git a/.changeset/few-jokes-ring.md b/.changeset/few-jokes-ring.md deleted file mode 100644 index 5d483e8..0000000 --- a/.changeset/few-jokes-ring.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@sybel-io-blockchain/shared": patch ---- - -Initial version diff --git a/contracts/wallets/MultiVestingWallets.sol b/contracts/wallets/MultiVestingWallets.sol index 463dd08..c0ca56e 100644 --- a/contracts/wallets/MultiVestingWallets.sol +++ b/contracts/wallets/MultiVestingWallets.sol @@ -128,7 +128,7 @@ contract MultiVestingWallets is FrakAccessControlUpgradeable { } /* -------------------------------------------------------------------------- */ - /* Create vesting's */ + /* Create vestings */ /* -------------------------------------------------------------------------- */ /** @@ -328,7 +328,7 @@ contract MultiVestingWallets is FrakAccessControlUpgradeable { } /* -------------------------------------------------------------------------- */ - /* View method's */ + /* View methods */ /* -------------------------------------------------------------------------- */ /** @@ -358,6 +358,15 @@ contract MultiVestingWallets is FrakAccessControlUpgradeable { return owned[beneficiary].length(); } + /** + * @notice Get all the vesting id owned by an address. + * @param beneficiary Address to check. + * @return All the vesting ids of the address. + */ + function ownedVestingIds(address beneficiary) public view returns (uint256[] memory) { + return owned[beneficiary].values(); + } + /** * @notice Get the remaining amount of token of a beneficiary. * @param beneficiary Address to check.