@dsafe/sdk
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

DSafe-SDK

Install

Pre-requisites

  1. NodeJS v16
  2. jq
  3. 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:

  1. Technical Specification Document
  2. Grant Proposal

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    2
    • latest

Version History

Package Sidebar

Install

npm i @dsafe/sdk

Weekly Downloads

2

Version

1.1.1

License

MIT

Unpacked Size

411 kB

Total Files

25

Last publish

Collaborators

  • codebuster22