@aragon/osx-commons-sdk
provides common utilities for the development of plugins and the OSx protocol. This includes:
-
common helper functionality for
- web3 interaction
- subgraph interaction
- file storage on IPFS
- retrieving addresses of deployed Aragon OSx framework contracts
- contract deployment
- contract testing
-
base classes for creating custom JS clients on top of the built-in one.
-
Extendable JS client with built-in Web3, Subgraph and IPFS
-
Extendable context for holding inheritable configuration
Use npm or yarn to install @aragon/osx-commons-sdk.
npm install @aragon/osx-commons-sdk
yarn add @aragon/osx-commons-sdk
The SDK usage is demonstrated in the SDK examples section of the Developer Portal.
In order for the SDK to be used in restricted environments like react native install the following polyfilesand into your project:
Then import them like the following before you import the Aragon SDK package:
import {Client} from '@aragon/osx-commons-sdk';
import '@ethersproject/shims';
import 'react-native-url-polyfill/auto';
See ClientCore
(source):
- Abstract class implementing primitives for:
- Web3, contracts, signing
- IPFS
- GraphQL
- Inherited by classes like
Client
and all plugin classes likeTokenVotingClient
.
When updating the ClientCore
class:
-
Update first all affected enum's, types and interfaces in
src/internal/interfaces.ts
To execute library tests just run:
yarn test
If you believe you've found a security issue, we encourage you to notify us. We welcome working with you to resolve the issue promptly.
Security Contact Email: sirt@aragon.org
Please do not use the issue tracker for security issues.