Skip to content

Commit 5c9ac9a

Browse files
authored
feat(sdk): add back PluginType enum and fix npm dependencies (#78)
* feat: add back plugin type enum * chore: bump version and maintain changelog * chore: update lockfile
1 parent ffa6b45 commit 5c9ac9a

File tree

5 files changed

+24
-10
lines changed

5 files changed

+24
-10
lines changed

sdk/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
- Add `PluginType` enum
1213
- Add `resolveEnsName` functions
1314
- Add `getProtocolVersion` function
1415

sdk/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@aragon/osx-commons-sdk",
33
"author": "Aragon Association",
4-
"version": "0.0.1-alpha.10",
4+
"version": "0.0.1-alpha.11",
55
"license": "MIT",
66
"main": "dist/index.js",
77
"module": "dist/osx-commons-sdk.esm.js",
@@ -54,12 +54,12 @@
5454
},
5555
"dependencies": {
5656
"@aragon/osx-commons-configs": "^0.4.0",
57-
"@ethersproject/address": "^5.7.0",
58-
"@ethersproject/bignumber": "^5.7.0",
59-
"@ethersproject/contracts": "^5.7.0",
60-
"@ethersproject/hash": "^5.7.0",
61-
"@ethersproject/logger": "^5.7.0",
62-
"@ethersproject/providers": "^5.7.0",
57+
"@ethersproject/address": "5.7.0",
58+
"@ethersproject/bignumber": "5.7.0",
59+
"@ethersproject/contracts": "5.7.0",
60+
"@ethersproject/hash": "5.7.0",
61+
"@ethersproject/logger": "5.7.0",
62+
"@ethersproject/providers": "5.7.2",
6363
"ipfs-http-client": "^51.0.0"
6464
}
6565
}

sdk/src/introspection.ts

+13
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,16 @@ export async function getProtocolVersion(
4747
}
4848
return protocolVersion;
4949
}
50+
51+
/**
52+
* Enum for PluginType
53+
* Reference: https://github.com/aragon/osx-commons/blob/ffa6b45fab9ec067d4bed3b81f5097f03861b876/contracts/src/plugin/IPlugin.sol
54+
*
55+
* @export
56+
* @enum {number}
57+
*/
58+
export enum PluginType {
59+
UUPS = 0,
60+
Cloneable = 1,
61+
Constructable = 2,
62+
}

sdk/src/permission.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {id} from '@ethersproject/hash';
22

33
/**
44
* Enum for PermissionType
5-
* Reference:
5+
* Reference: https://github.com/aragon/osx-commons/blob/ffa6b45fab9ec067d4bed3b81f5097f03861b876/contracts/src/permission/PermissionLib.sol
66
*
77
* @export
88
* @enum {number}

sdk/yarn.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@
11391139
dependencies:
11401140
"@ethersproject/bignumber" "^5.7.0"
11411141

1142-
"@ethersproject/[email protected]", "@ethersproject/contracts@^5.7.0":
1142+
"@ethersproject/[email protected]":
11431143
version "5.7.0"
11441144
resolved "https://registry.yarnpkg.com/@ethersproject/contracts/-/contracts-5.7.0.tgz#c305e775abd07e48aa590e1a877ed5c316f8bd1e"
11451145
integrity sha512-5GJbzEU3X+d33CdfPhcyS+z8MzsTrBGk/sc+G+59+tPa9yFkl6HQ9D6L0QMgNTA9q8dT0XKxxkyp883XsQvbbg==
@@ -1242,7 +1242,7 @@
12421242
dependencies:
12431243
"@ethersproject/logger" "^5.7.0"
12441244

1245-
"@ethersproject/[email protected]", "@ethersproject/providers@^5.7.0":
1245+
"@ethersproject/[email protected]":
12461246
version "5.7.2"
12471247
resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.7.2.tgz#f8b1a4f275d7ce58cf0a2eec222269a08beb18cb"
12481248
integrity sha512-g34EWZ1WWAVgr4aptGlVBF8mhl3VWjv+8hoAnzStu8Ah22VHBsuGzP17eb6xDVRzw895G4W7vvx60lFFur/1Rg==

0 commit comments

Comments
 (0)