DSafe-SDK
Install
Pre-requisites
- NodeJS v16
- jq
- postgresql
Install Wheel
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/ceramicstudio/wheel/main/wheel.sh | bash
Using yarn
or npm
// using yarn
yarn add @dsafe/sdk
// using npm
npm install @dsafe/sdk
Build Locally
Clone
// clone using ssh
git clone git@github.com:daoism-systems/dSafe-SDK.git
// clone using https
git clone https://github.com/daoism-systems/dSafe-SDK.git
Build
// using yarn
yarn install
// using npm
npm install
Usage
Instantiate dSafe class
import DSafe from '@dsafe/sdk'
// instantiae
const dsafe = new DSafe()
Interact with Safe Client Gateway for routes that are not implemented yet
const apiRoute = '/about/'
const response: AxiosResponse = await dsafe.fetchLegacy('GET', apiRoute)
// ... do something with response
Docs:
- Technical Specification Document
- Grant Proposal