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

@generalprotocols/price-oracle

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@generalprotocols/price-oracle - npm Package Compare versions

Comparing version 2.1.0-development.3540578104 to 2.1.0-development.3566305716

14

dist/browser.cjs.js

@@ -425,3 +425,3 @@ 'use strict';

// Parse the message price from the content of the message.
const priceValue = libauth.binToNumberInt32LE(dataContent);
const priceValue = await this.getPriceValue(dataContent);
// Validate that the price itself has a valid format.

@@ -435,2 +435,14 @@ await this.validateMessagePrice(priceValue);

/**
* Convert a data content into a human readable number.
*
* @param dataContentBin {Uint8Array} Binary content of the data message.
*
* @returns {Promise<number>} the data content as a human readable number.
*/
static async getPriceValue(dataContentBin) {
// Parse the message price from the content of the message.
const decodedPriceValue = libauth.binToNumberInt32LE(dataContentBin);
return decodedPriceValue;
}
/**
* Convert a metadata content into a human readable string.

@@ -437,0 +449,0 @@ *

@@ -417,3 +417,3 @@ import { hexToBin, numberToBinInt32LE, flattenBinArray, binToHex, binToNumberInt32LE, decodePrivateKeyWif, sha256, secp256k1, decodeAuthenticationInstructions, authenticationInstructionsAreMalformed } from '@bitauth/libauth';

// Parse the message price from the content of the message.
const priceValue = binToNumberInt32LE(dataContent);
const priceValue = await this.getPriceValue(dataContent);
// Validate that the price itself has a valid format.

@@ -427,2 +427,14 @@ await this.validateMessagePrice(priceValue);

/**
* Convert a data content into a human readable number.
*
* @param dataContentBin {Uint8Array} Binary content of the data message.
*
* @returns {Promise<number>} the data content as a human readable number.
*/
static async getPriceValue(dataContentBin) {
// Parse the message price from the content of the message.
const decodedPriceValue = binToNumberInt32LE(dataContentBin);
return decodedPriceValue;
}
/**
* Convert a metadata content into a human readable string.

@@ -429,0 +441,0 @@ *

@@ -427,3 +427,3 @@ 'use strict';

// Parse the message price from the content of the message.
const priceValue = libauth.binToNumberInt32LE(dataContent);
const priceValue = await this.getPriceValue(dataContent);
// Validate that the price itself has a valid format.

@@ -437,2 +437,14 @@ await this.validateMessagePrice(priceValue);

/**
* Convert a data content into a human readable number.
*
* @param dataContentBin {Uint8Array} Binary content of the data message.
*
* @returns {Promise<number>} the data content as a human readable number.
*/
static async getPriceValue(dataContentBin) {
// Parse the message price from the content of the message.
const decodedPriceValue = libauth.binToNumberInt32LE(dataContentBin);
return decodedPriceValue;
}
/**
* Convert a metadata content into a human readable string.

@@ -439,0 +451,0 @@ *

@@ -256,2 +256,10 @@ import { Subscriber, Publisher, Request, Reply } from 'zeromq';

/**
* Convert a data content into a human readable number.
*
* @param dataContentBin {Uint8Array} Binary content of the data message.
*
* @returns {Promise<number>} the data content as a human readable number.
*/
static getPriceValue(dataContentBin: Uint8Array): Promise<number>;
/**
* Convert a metadata content into a human readable string.

@@ -258,0 +266,0 @@ *

@@ -419,3 +419,3 @@ import { hexToBin, numberToBinInt32LE, flattenBinArray, binToHex, binToNumberInt32LE, decodePrivateKeyWif, sha256, secp256k1, decodeAuthenticationInstructions, authenticationInstructionsAreMalformed } from '@bitauth/libauth';

// Parse the message price from the content of the message.
const priceValue = binToNumberInt32LE(dataContent);
const priceValue = await this.getPriceValue(dataContent);
// Validate that the price itself has a valid format.

@@ -429,2 +429,14 @@ await this.validateMessagePrice(priceValue);

/**
* Convert a data content into a human readable number.
*
* @param dataContentBin {Uint8Array} Binary content of the data message.
*
* @returns {Promise<number>} the data content as a human readable number.
*/
static async getPriceValue(dataContentBin) {
// Parse the message price from the content of the message.
const decodedPriceValue = binToNumberInt32LE(dataContentBin);
return decodedPriceValue;
}
/**
* Convert a metadata content into a human readable string.

@@ -431,0 +443,0 @@ *

2

package.json
{
"name": "@generalprotocols/price-oracle",
"version": "2.1.0-development.3540578104",
"version": "2.1.0-development.3566305716",
"description": "Library for creating, parsing, signing, verifying and transferring PriceOracle messages.",

@@ -5,0 +5,0 @@ "exports": {

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