Merge pull request #110 from 67P/feature/contribution-balances

Add contract calls for total contribution balances
This commit was merged in pull request #110.
This commit is contained in:
2019-04-23 13:47:50 +01:00
committed by GitHub
6 changed files with 44 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ module.exports = async function(callback) {
console.log(`Using Contributor at: ${kredits.Contributor.contract.address}`);
const table = new Table({
head: ['ID', 'Account', 'Name', 'Core?', 'Balance', 'IPFS']
head: ['ID', 'Account', 'Name', 'Core?', 'Balance', 'Kredits earned', 'Contributions count', 'IPFS']
})
try {
@@ -33,6 +33,8 @@ module.exports = async function(callback) {
`${c.name}`,
c.isCore,
ethers.utils.formatEther(c.balance),
c.totalKreditsEarned.toString(),
c.contributionsCount.toString(),
c.ipfsHash
])
})