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

@helium/currency

Package Overview
Dependencies
Maintainers
4
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@helium/currency - npm Package Compare versions

Comparing version 4.6.2 to 4.7.0

3

build/CurrencyType.d.ts

@@ -1,6 +0,5 @@

import { TokenType } from '@helium/transactions';
import { BaseCurrencyType, DataCredits, IotTokens, MobileTokens, NetworkTokens, SecurityTokens, TestNetworkTokens, USDollars } from './currency_types';
export declare type AnyCurrencyType = NetworkTokens | MobileTokens | IotTokens | TestNetworkTokens | SecurityTokens | DataCredits | USDollars;
export default class CurrencyType {
static fromTokenType(type: TokenType): BaseCurrencyType;
static fromTicker(ticker?: string): BaseCurrencyType;
static get default(): NetworkTokens;

@@ -7,0 +6,0 @@ static get networkToken(): NetworkTokens;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const transactions_1 = require("@helium/transactions");
const currency_types_1 = require("./currency_types");
class CurrencyType {
static fromTokenType(type) {
switch (type) {
static fromTicker(ticker) {
switch (ticker === null || ticker === void 0 ? void 0 : ticker.toUpperCase()) {
default:
case transactions_1.TokenType.hnt:
case this.default.ticker:
return this.default;
case transactions_1.TokenType.hst:
case this.security.ticker:
return this.security;
case transactions_1.TokenType.mobile:
case this.mobile.ticker:
return this.mobile;
case transactions_1.TokenType.iot:
case this.iot.ticker:
return this.iot;

@@ -17,0 +16,0 @@ }

{
"name": "@helium/currency",
"version": "4.6.2",
"version": "4.7.0",
"description": "Utilities for handling different currency types on the Helium blockchain",

@@ -29,6 +29,5 @@ "keywords": [

"dependencies": {
"@helium/transactions": "^4.6.2",
"bignumber.js": "^9.0.0"
},
"gitHead": "6800dfa927a111bb028bb68531e67dd334d52e0f"
"gitHead": "20d7cf8f2002f3962dce732bf4c1f0ef7e88b6f7"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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