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

jupiter-node-sdk

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jupiter-node-sdk - npm Package Compare versions

Comparing version 0.4.1 to 0.5.0

4

Changelog.md

@@ -6,2 +6,6 @@ # Changelog

## [0.5.0] - 2020-09-02
### Changed
- Update transaction base fee
## [0.4.1] - 2020-08-09

@@ -8,0 +12,0 @@ ### Changed

29

dist/JupiterClient.js

@@ -17,6 +17,6 @@ "use strict";

const CONF = {
feeNQT: opts.feeNQT || 150,
feeNQT: opts.feeNQT || 5000,
deadline: opts.deadline || 60,
minimumFndrAccountBalance: opts.minimumFndrAccountBalance || 50000,
minimumUserAccountBalance: opts.minimumUserAccountBalance || 100000,
minimumFndrAccountBalance: opts.minimumFndrAccountBalance || 300000000,
minimumUserAccountBalance: opts.minimumUserAccountBalance || 500000000,
jupNqtDecimals: opts.jupNqtDecimals || 8,

@@ -55,18 +55,27 @@ };

if (encryptedMessageLength <= 5000) {
fee = 16500;
fee = 800000;
}
else if (encryptedMessageLength <= 10000) {
fee = 32000;
fee = 1600000;
}
else if (encryptedMessageLength <= 15000) {
fee = 2300000;
}
else if (encryptedMessageLength <= 20000) {
fee = 63000;
fee = 3100000;
}
else if (encryptedMessageLength <= 25000) {
fee = 3900000;
}
else if (encryptedMessageLength <= 30000) {
fee = 94500;
fee = 4700000;
}
else if (encryptedMessageLength <= 35000) {
fee = 5500000;
}
else if (encryptedMessageLength <= 40000) {
fee = 126000;
fee = 6300000;
}
else {
fee = 135000;
fee = 6500000;
}

@@ -78,3 +87,3 @@ return fee;

data.forEach((data) => expectedFees += this.calculateMessageFee(data.length));
return expectedFees;
return expectedFees * 1.03;
},

@@ -81,0 +90,0 @@ decrypt: encryption.decrypt.bind(encryption),

{
"name": "jupiter-node-sdk",
"version": "0.4.1",
"version": "0.5.0",
"description": "A thin wrapper around the Jupiter blockchain APIs.",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -13,6 +13,6 @@ import assert from 'assert'

const CONF = {
feeNQT: opts.feeNQT || 150,
feeNQT: opts.feeNQT || 5000,
deadline: opts.deadline || 60,
minimumFndrAccountBalance: opts.minimumFndrAccountBalance || 50000,
minimumUserAccountBalance: opts.minimumUserAccountBalance || 100000,
minimumFndrAccountBalance: opts.minimumFndrAccountBalance || 300000000,
minimumUserAccountBalance: opts.minimumUserAccountBalance || 500000000,
jupNqtDecimals: opts.jupNqtDecimals || 8,

@@ -59,15 +59,29 @@ }

return fee
if (encryptedMessageLength <= 5000) {
fee = 16500
} else if (encryptedMessageLength <= 10000) {
fee = 32000
} else if (encryptedMessageLength <= 20000) {
fee = 63000
} else if (encryptedMessageLength <= 30000) {
fee = 94500
} else if (encryptedMessageLength <= 40000) {
fee = 126000
} else {
fee = 135000
}
if (encryptedMessageLength <= 5000) {
fee = 800000
}
else if (encryptedMessageLength <= 10000) {
fee = 1600000
}
else if (encryptedMessageLength <= 15000) {
fee = 2300000
}
else if (encryptedMessageLength <= 20000) {
fee = 3100000
}
else if (encryptedMessageLength <= 25000) {
fee = 3900000
}
else if (encryptedMessageLength <= 30000) {
fee = 4700000
}
else if (encryptedMessageLength <= 35000) {
fee = 5500000
}
else if (encryptedMessageLength <= 40000) {
fee = 6300000
}
else {
fee = 6500000
}
return fee

@@ -79,3 +93,3 @@ },

data.forEach((data) => expectedFees += this.calculateMessageFee(data.length));
return expectedFees;
return expectedFees*1.03;
},

@@ -82,0 +96,0 @@

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