@@ -5,12 +5,12 @@ Command-line helper for drafting, signing, and broadcasting Mina payments via th
55## Getting Started
66- ** Prerequisites:** Node.js 18+ (for native ` fetch ` ) and npm.
77- ** Install dependencies:** ` npm install `
8- - ** Quick run:** ` node test-signer.js <private_key> <recipient_address> [graphql_url] [nonce] `
8+ - ** Quick run:** ` node mina- test-signer.js <private_key> <recipient_address> [graphql_url] [nonce] `
99
1010The optional ` graphql_url ` flag lets you override the default target defined in ` config.js ` .
1111
1212## Workflow
13- 1 . ` test-signer.js ` parses CLI arguments and wires the supporting services.
13+ 1 . ` mina- test-signer.js` parses CLI arguments and wires the supporting services.
14142 . ` payment-service.js ` derives the sender public key, composes a payment payload, and signs it with ` mina-signer ` .
15153 . ` graphql-client.js ` sends the signed payload to the Mina daemon and can check whether the transaction reached the pool.
16164 . ` utils.js ` provides small helpers for GraphQL string construction and CLI validation.
@@ -22,7 +22,7 @@ The CLI prints emoji-enhanced step logs and a summary table so you can spot succ
2222GraphQL errors (including malformed responses) cause the CLI to exit with a non-zero status so they can be surfaced in scripts and CI.
2323
2424## File Guide
25- - ` test-signer.js ` – CLI entry point orchestrating validation, signing, submission, and pool verification.
25+ - ` mina- test-signer.js` – CLI entry point orchestrating validation, signing, submission, and pool verification.
2626- ` payment-service.js ` – Thin wrapper around ` mina-signer ` with sensible defaults for MINA amounts and fees.
2727- ` graphql-client.js ` – Minimal fetch-based GraphQL transport for sending payments and querying pooled commands.
2828- ` utils.js ` – GraphQL stringification helpers plus basic CLI argument validation/parsing.
0 commit comments