Merge pull request #73 from 67P/feature/contribution_owner

Convert contribution owner to ID, use smaller number formats
This commit was merged in pull request #73.
This commit is contained in:
2019-04-04 21:40:16 +00:00
committed by GitHub
16 changed files with 159 additions and 128 deletions

View File

@@ -27,7 +27,7 @@ module.exports = async function(callback) {
console.log(`Creating a contribution for contributor account ${contributorAccount} ID: ${contributorId}`);
let contributionAttributes = {
contributorAccount,
contributorId,
amount: await promptly.prompt('Amount: '),
description: await promptly.prompt('Description: '),
kind: await promptly.prompt('Kind: ', { default: 'dev' }),

View File

@@ -14,7 +14,6 @@ module.exports = async function(callback) {
console.log(`Using Contribution at: ${kredits.Contribution.contract.address}`);
const table = new Table({
head: ['ID', 'Contributor account', 'Amount', 'Claimed?', 'Vetoed?', 'Description']
})
@@ -24,7 +23,7 @@ module.exports = async function(callback) {
contributions.forEach((c) => {
table.push([
c.id.toString(),
c.contributor,
c.contributorId,
c.amount.toString(),
c.claimed,
c.vetoed,

View File

@@ -14,7 +14,6 @@ module.exports = async function(callback) {
console.log(`Using Proposal at: ${kredits.Proposal.contract.address}`);
const table = new Table({
head: ['ID', 'Contributor ID', 'Amount', 'Votes', 'Executed?', 'Description']
})

View File

@@ -40,6 +40,7 @@ module.exports = async function(callback) {
next();
}).catch((error) => {
console.log(`[FAILED] kredits.${contractName}.${method}(${JSON.stringify(args)})`);
console.log(`Error: ${error.message}`);
next();
});
}, () => { console.log("\nDone!") });