@windingtree/org.id-core
Advanced tools
Comparing version 1.0.0-beta.28 to 1.0.0-beta.29
@@ -5,7 +5,6 @@ "use strict"; | ||
const getOrgIdsCount = async (contract) => { | ||
// Call smart contract | ||
const count = await contract['totalSupply()'](); | ||
return Number(count); | ||
return count.toNumber(); | ||
}; | ||
exports.getOrgIdsCount = getOrgIdsCount; | ||
//# sourceMappingURL=getOrgIdsCount.js.map |
@@ -22,2 +22,3 @@ import type { BigNumber, Signer, providers } from 'ethers'; | ||
getDelegates(orgIdHash: string): Promise<Delegates>; | ||
getOwnOrgIds(ownerAddress: string): Promise<OrgIdData[] | []>; | ||
} |
@@ -18,2 +18,3 @@ "use strict"; | ||
const removeDelegates_1 = require("./api/removeDelegates"); | ||
const getOwnOrgIds_1 = require("./api/getOwnOrgIds"); | ||
class OrgIdContract { | ||
@@ -85,4 +86,7 @@ constructor(contractAddress, providerOrUri) { | ||
} | ||
getOwnOrgIds(ownerAddress) { | ||
return (0, getOwnOrgIds_1.getOwnOrgIds)(this.contract, ownerAddress); | ||
} | ||
} | ||
exports.OrgIdContract = OrgIdContract; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@windingtree/org.id-core", | ||
"version": "1.0.0-beta.28", | ||
"version": "1.0.0-beta.29", | ||
"description": "Core ORGiD Javascript library", | ||
@@ -16,3 +16,3 @@ "main": "dist/index.js", | ||
"lint:fix": "npx eslint . --ext .ts --fix", | ||
"build": "rm -rf dist && npx tsc -p tsconfig-build.json", | ||
"build": "rm -rf dist && npx tsc -p tsconfig-build.json && yarn build:docs", | ||
"build:docs": "rm -rf docs/generated && npx typedoc --plugin typedoc-plugin-markdown --readme none --out docs/generated src/index.ts", | ||
@@ -65,3 +65,3 @@ "test": "npx hardhat test", | ||
}, | ||
"gitHead": "03f841d31cc7b9c1a8364e7ba3d75a3914b9c623" | ||
"gitHead": "2d69a63879e2b513439f282f5c9c82aa7998f03a" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
44014
45
516