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

@hawksightco/hawk-sdk

Package Overview
Dependencies
Maintainers
1
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hawksightco/hawk-sdk - npm Package Compare versions

Comparing version 0.0.46 to 0.0.47

20

dist/src/functions.js

@@ -36,2 +36,3 @@ "use strict";

exports.getFeeEstimate = exports.resultOrError = exports.createTxMetadata = void 0;
const client = __importStar(require("@hawksightco/swagger-client"));
const web3 = __importStar(require("@solana/web3.js"));

@@ -127,5 +128,22 @@ const Transaction_1 = require("./classes/Transaction");

});
return (yield resultOrError(response, (result) => __awaiter(this, void 0, void 0, function* () { return result.priorityFeeEstimate; }))).data;
return (yield resultOrError(response, (result) => __awaiter(this, void 0, void 0, function* () {
let priorityFee;
if (priority === client.PriorityLevel.Default || priority === client.PriorityLevel.Medium) {
priorityFee = result.feeLevels._default;
}
else if (priority === client.PriorityLevel.High) {
priorityFee = result.feeLevels.high;
}
else if (priority === client.PriorityLevel.VeryHigh) {
priorityFee = result.feeLevels.high;
}
else {
const max = result.feeLevels._default;
const min = result.feeLevels.low;
priorityFee = min + ((max - min) / 2);
}
return result.priorityFeeEstimate;
}))).data;
});
}
exports.getFeeEstimate = getFeeEstimate;

2

package.json
{
"name": "@hawksightco/hawk-sdk",
"version": "0.0.46",
"version": "0.0.47",
"description": "Hawksight v2 SDK",

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

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