Skip to content

Commit 8e2f1c8

Browse files
committed
f: feat: add CLI tool to submit proposal
1 parent 8c18f4e commit 8e2f1c8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

bin/gobject-prepare.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ async function main() {
209209
);
210210
let totalDash = cycleCount * dashAmount;
211211

212-
console.log();
212+
console.log("");
213213
console.log(
214214
`Proposal Period: ${selected.startIso} - ${selected.endIso} (~${proposalDeltaStr} days)`,
215215
);
@@ -219,7 +219,7 @@ async function main() {
219219
console.log(
220220
`Payment Period: ${selected.superblockIso} - ${selected.superblockIso} (~${paymentDeltaStr} days)`,
221221
);
222-
console.log();
222+
console.log("");
223223
console.log(`Total Dash: ${totalDash} = ${dashAmount} x ${cycleCount}`);
224224
}
225225

@@ -353,6 +353,8 @@ async function main() {
353353
method: "sendrawtransaction",
354354
params: [txInfoSigned.transaction],
355355
});
356+
console.log("");
357+
console.log("Transaction sent:");
356358
console.log(txResult);
357359
}
358360

@@ -374,12 +376,14 @@ async function main() {
374376
},
375377
);
376378
if (txResult) {
379+
console.log("");
377380
console.log(`TxOutProof`);
378381
console.log(txResult);
379382
let jsonResult = await rpc.request("/", {
380383
method: "getrawtransaction",
381384
params: [txid, 1],
382385
});
386+
console.log("");
383387
console.log(`Tx`);
384388
console.log(jsonResult);
385389
break;
@@ -441,6 +445,8 @@ async function main() {
441445
for (;;) {
442446
let gobjResult = await submit();
443447
if (gobjResult) {
448+
console.log("");
449+
console.log("gobject submit result:");
444450
console.log(gobjResult);
445451
break;
446452
}

0 commit comments

Comments
 (0)