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

@kava-labs/kava-tools

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kava-labs/kava-tools - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

Dockerfile

6

index.js

@@ -1,3 +0,4 @@

const PriceOracle = require('./oracle/oracle').PriceOracle;
const AuctionBot = require('./auction/auction').AuctionBot;
const PriceOracle = require("./oracle/oracle").PriceOracle;
const AuctionBot = require("./auction/auction").AuctionBot
const RefundBot = require("./refund/refund").RefundBot;

@@ -7,2 +8,3 @@ module.exports = {

AuctionBot,
RefundBot
};

@@ -77,6 +77,17 @@ require('dotenv').config();

// fetch account data so we can manually manage sequence when posting
var accountData = await kava.tx.loadMetaData(
this.client.wallet.address,
this.client.baseURI
);
let accountData
try {
accountData = await kava.tx.loadMetaData(
this.client.wallet.address,
this.client.baseURI
);
} catch {
// if the account is new, use the default values, these will be updated
// after the first tx is created with this account
accountData = {
account_number: '0',
sequence: '0',
}
}
// Attempt to fetch and post prices for each market for valid new prices

@@ -126,3 +137,3 @@ await asyncForEach(this.marketIDs, async (market) => {

if (!res.success) {
res = await this.fetchPriceBinance(marketID);
res = await this.fetchPriceCoinGecko(marketID);
}

@@ -174,3 +185,3 @@ return res;

console.log(`couldn't get previous prices for ${marketID}, skipping...`);
return false;
return true;
}

@@ -177,0 +188,0 @@

{
"name": "@kava-labs/kava-tools",
"description": "Tools for interacting with the Kava blockchain",
"version": "0.1.6",
"version": "0.1.7",
"license": "Apache-2.0",

@@ -17,2 +17,3 @@ "main": "index.js",

"dependencies": {
"@binance-chain/javascript-sdk": "^3.0.2",
"@kava-labs/javascript-sdk": "^2.0.0-beta.6",

@@ -19,0 +20,0 @@ "axios": "^0.19.2",

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