conseiljs
Advanced tools
Comparing version 5.0.9-2 to 5.0.9-3
@@ -19,3 +19,3 @@ import { KeyStore, Signer } from '../../../../types/ExternalInterfaces'; | ||
destination: string; | ||
token_id: number; | ||
token_id: number | string; | ||
amount: number; | ||
@@ -49,3 +49,3 @@ } | ||
function removeOperators(server: string, address: string, signer: Signer, keystore: KeyStore, fee: number, updateOps: UpdateOperator[], gas?: number, freight?: number): Promise<string>; | ||
function getAccountBalance(server: string, mapid: number, account: string, tokenid: number): Promise<number>; | ||
function getAccountBalance(server: string, mapid: number, account: string, tokenid: number, balancePath?: string): Promise<number>; | ||
} |
@@ -202,3 +202,3 @@ "use strict"; | ||
MultiAssetTokenHelper.removeOperators = removeOperators; | ||
function getAccountBalance(server, mapid, account, tokenid) { | ||
function getAccountBalance(server, mapid, account, tokenid, balancePath = '$.int') { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -211,3 +211,3 @@ const accountHex = `0x${TezosMessageUtil_1.TezosMessageUtils.writeAddress(account)}`; | ||
} | ||
const jsonresult = jsonpath_plus_1.JSONPath({ path: '$.int', json: mapResult }); | ||
const jsonresult = jsonpath_plus_1.JSONPath({ path: balancePath, json: mapResult }); | ||
return Number(jsonresult[0]); | ||
@@ -214,0 +214,0 @@ }); |
{ | ||
"name": "conseiljs", | ||
"version": "5.0.9-2", | ||
"version": "5.0.9-3", | ||
"description": "Client-side library for Tezos dApp development.", | ||
@@ -102,3 +102,3 @@ "browser": "dist/index-web.js", | ||
"tsconfig-paths-webpack-plugin": "3.3.0", | ||
"typedoc": "^0.20.36", | ||
"typedoc": "0.18.0", | ||
"typedoc-plugin-markdown": "2.4.2", | ||
@@ -105,0 +105,0 @@ "typescript": "3.8.3", |
@@ -62,3 +62,3 @@ # ConseilJS-core | ||
<script src="https://cdn.jsdelivr.net/gh/cryptonomic/conseiljs/dist-web/conseiljs.min.js" | ||
integrity="sha384-00+mCQozoha9AxOWtEN+VW/3vMpSBrANeDsYMEioopddFtFoidSiR3X+B+87l1mP" | ||
integrity="sha384-bRH9Mt6UHYBnIDaoxe48FZvDI58yN1oktXpCpzrAqBVEf0hXtLfMusOdJcWFGYnq" | ||
crossorigin="anonymous"></script> | ||
@@ -65,0 +65,0 @@ <script src="https://cdn.jsdelivr.net/gh/cryptonomic/conseiljs-softsigner/dist-web/conseiljs-softsigner.min.js" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
870105
0