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

dsd-constants-lib

Package Overview
Dependencies
Maintainers
1
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dsd-constants-lib - npm Package Compare versions

Comparing version 3.7.14 to 3.7.15

13

lib/constants.js

@@ -270,5 +270,5 @@ /**

BlockchainZetonium: { name: "zetonium", id: 1, transferOffset: "0x0000000000000000" },
BlockchainEthereum: { name: "ethereum", id: 2, transferOffset: "0x0000000000000000" },
BlockchainPolygon: { name: "polygon", id: 3, transferOffset: "0x0008000000000000" },
BlockchainFlow: { name: "flow", id: 4, transferOffset: "0x0010000000000000" },
BlockchainEthereum: { name: "ethereum", id: 2, transferOffset: "0x0008000000000000" },
BlockchainPolygon: { name: "polygon", id: 3, transferOffset: "0x0010000000000000" },
BlockchainFlow: { name: "flow", id: 4, transferOffset: "0x0018000000000000" }
};

@@ -298,5 +298,6 @@ }

trReqId = Constants.formatTransferReqId(trReqId);
if(trReqId.startsWith("0x0000")) return Constants.blockchainTypes.BlockchainEthereum;
if(trReqId.startsWith("0x0008")) return Constants.blockchainTypes.BlockchainPolygon;
if(trReqId.startsWith("0x0010")) return Constants.blockchainTypes.BlockchainFlow;
//fixme: take in account numbers over 48bits (because the space is 50bits)
if(trReqId.startsWith("0x0008")) return Constants.blockchainTypes.BlockchainEthereum;
if(trReqId.startsWith("0x0010")) return Constants.blockchainTypes.BlockchainPolygon;
if(trReqId.startsWith("0x0018")) return Constants.blockchainTypes.BlockchainFlow;
}

@@ -303,0 +304,0 @@

{
"name": "dsd-constants-lib",
"version": "3.7.14",
"version": "3.7.15",
"dependencies": {},

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

Sorry, the diff of this file is too big to display

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