Socket
Socket
Sign inDemoInstall

@fiatconnect/fiatconnect-types

Package Overview
Dependencies
0
Maintainers
4
Versions
59
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @fiatconnect/fiatconnect-types

Types used in the FiatConnect specification. Offered as standalone module for payment providers and wallets to both use for FiatConnect APIs and integrations.


Version published
Maintainers
4
Created

Changelog

Source

3.2.0 (2022-05-02)

Features

  • clock: Add ClockResponse type (#23) (0fa549a)
  • network: add enum for network (#24) (1c25452)

Readme

Source

fiatconnect-types

Types used in the FiatConnect specification. Offered as standalone module for payment providers and wallets to both use for FiatConnect APIs and integrations.

Installation

From your project directory, run:

yarn add @fiatconnect/fiatconnect-types

or

npm i @fiatconnect/fiatconnect-types

Example usage

import {TransferStatus} from '@fiatconnect/fiatconnect-types'
import axios from 'axios'

export async function getTransferStatus(transferId: string): Promise<TransferStatus> {
  const response = await axios
    .create({url: 'https://MOCK-PROVIDER-URL.fake'})
    .get(`/transfer/${transferId}/status`)
  return response.data.status
}

Contributing

  • Reporting issues
  • Submitting a pull request
  • Publishing updates
    • Request access to our NPM organization on Valora Discord
    • Make sure you are on the latest version of branch main
    • Check out a release branch
    • Run yarn prepublish && yarn release
    • Add release notes to CHANGELOG.md
    • Once code review has taken place:
      • Merge your branch
      • Run git tag vX.Y.Z && git push origin vX.Y.Z to push your tag (where X.Y.Z is the version you are trying to publish)
      • Create a release with the new tag
      • Run npm publish --public

Keywords

FAQs

Last updated on 03 May 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc