Socket
Socket
Sign inDemoInstall

@apolkingg8/changer

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @apolkingg8/changer

Pre-interview test for Perpetual Protocol.


Version published
Maintainers
1
Install size
5.19 kB
Created

Readme

Source

@apolkingg8/changer

Pre-interview test for Perpetual Protocol.

Use

yarn add @apolkingg8/changer

import changer, {Changer, EnumChangerCurrency} from "@apolkingg8/changer";

// set reserve
changer.setReserves(EnumChangerCurrency.twd, 100)
changer.setReserves(EnumChangerCurrency.usd, 200)

// trade
changer.trade(EnumChangerCurrency.twd, EnumChangerCurrency.usd, 50)

// multiple instance
let changer1 = new Changer()
let changer2 = new Changer()

Check the detail spec in changer.test.ts

Dev

  • Test: yarn test
  • Build: yarn build

CI/CD with GitHub actions config.

License

MIT

FAQs

Last updated on 05 Oct 2020

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