Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gnosis.pm/safe-react-gateway-sdk

Package Overview
Dependencies
Maintainers
17
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gnosis.pm/safe-react-gateway-sdk

A TypeScript SDK for the [Safe Gateway](https://gnosis.github.io/safe-client-gateway/docs/routes/index.html).

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
17
Created
Source

Safe Gateway TypeScript SDK

A TypeScript SDK for the Safe Gateway.

Generating types

To generate transaction-service types (which help a bit when typing the gateway), run the following command:

./scripts/make-transaction-service-types.sh

This will create a folder called openapi with an OpenAPI JSON and the corresponding TypeScript definitions.

Adding an endpoint

Endpoints are defined in src/types/gateway.ts and `src/index.ts. Each endpoint consists of:

  • a path definition
  • operation definition (params and response types)
  • response definition
  • a function that fetches the endpoint

To add a new endpoint, follow the pattern set by the existing endpoints.

Eslint & prettier

This command will run before every commit:

yarn eslint:fix

Tests

To run the tests:

jest test --watch

FAQs

Package last updated on 27 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc