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

dexterlib

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dexterlib - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

23

dist/token.js

@@ -62,3 +62,3 @@ "use strict";

const contractStorage = yield contract.storage();
const ledger = yield contractStorage.ledger;
let ledger = yield contractStorage.ledger;
if (ledger === undefined) {

@@ -154,2 +154,23 @@ return new bignumber_js_1.BigNumber(0);

}
getBalance(address) {
return __awaiter(this, void 0, void 0, function* () {
try {
const contract = yield this.tezos.contract.at(this.contractAddress);
const contractStorage = yield contract.storage();
let ledger = yield contractStorage.balances;
if (ledger === undefined) {
return new bignumber_js_1.BigNumber(0);
}
const bigMapKey = yield ledger.get(address);
if (bigMapKey === undefined) {
return new bignumber_js_1.BigNumber(0);
}
return bigMapKey.balance;
}
catch (err) {
console.log(err);
throw err;
}
});
}
}

@@ -156,0 +177,0 @@ exports.KUSD = KUSD;

2

package.json
{
"name": "dexterlib",
"version": "0.1.7",
"version": "0.1.8",
"description": "Tezos Dexter Utility Library",

@@ -5,0 +5,0 @@ "main": "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