@aragon/sdk-client
provides easy access to the high level interactions to be
made with an Aragon DAO. It consists of three different components:
- General-purpose DAO client
- Custom clients for specific DAO plugins
- Context for holding inheritable configuration
Contributors: See development below
Use npm or yarn to install @aragon/sdk-client.
npm install @aragon/sdk-client
yarn add @aragon/sdk-client
An exhaustive list of the SDK features and methods can be found on the examples.md file.
To generate the examples.md
file run yarn examples
The building blocks are defined within the src/internal
folder. The high level
client wrappers are implemented in src/client*.ts
See ClientCore
(source):
- Abstract class implementing primitives for:
- Web3, contracts, signing
- IPFS
- GraphQL
- Inherited by classes like
Client
and all plugin classes likeClientErc20
.
When updating a ClientXXX
(plugin) class:
- Update first all affected enum's, types and interfaces in
src/internal/interfaces/plugins.ts
When updating the Client
class:
- Update first all affected enum's, types and interfaces in
src/internal/interfaces/client.ts
When updating the ClientCore
class:
- Update first all affected enum's, types and interfaces in
src/internal/interfaces/core.ts
Create a new class that extends
from ClientCore
, receives a Context
on the
constructor
and follows the structure of ClientErc20.
To execute library tests just run:
yarn test