A TypeScript SDK for the Safe Gateway
Endpoint types are defined in src/types/gateway.ts.
Each endpoint consists of:
- a function defined in src/index.ts(e.g.getBalances)
- a path definition (e.g. '/chains/{chainId}/safes/{address}/balances/{currency}/')
- operation definition (e.g. safes_balances_list)
- response definition
To add a new endpoint, follow the pattern set by the existing endpoints.
This command will run before every commit:
yarn eslint:fix
To run the unit and e2e tests locally:
yarn test
N.B.: the e2e tests make actual API calls on staging.