Skip to content

Commit 2fa5619

Browse files
committed
review nits
1 parent d94ec1b commit 2fa5619

File tree

4 files changed

+5
-16
lines changed

4 files changed

+5
-16
lines changed

src/mina-signer/tests/mina-signer-test-app/README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ The optional `graphql_url` flag lets you override the default target defined in
1717
## Workflow
1818

1919
1. `mina-test-signer.js` parses CLI arguments and wires the supporting services.
20-
2. `payment-service.js` derives the sender public key, composes a payment
21-
payload, and signs it with `mina-signer`.
2220
3. `graphql-client.js` sends the signed payload to the Mina daemon and can check
2321
whether the transaction reached the pool.
2422
4. `utils.js` provides small helpers for GraphQL string construction and CLI
@@ -45,15 +43,6 @@ successes and failures at a glance. GraphQL errors (including malformed
4543
responses) cause the CLI to exit with a non-zero status so they can be surfaced
4644
in scripts and CI.
4745

48-
## Customisation Tips
49-
50-
- Update `CONFIG.DEFAULT_GRAPHQL_URL` in `config.js` to point at your daemon or
51-
a hosted GraphQL endpoint.
52-
- Tweak `CONFIG.MINA_UNITS.DEFAULT_AMOUNT_MULTIPLIER` and
53-
`DEFAULT_FEE_MULTIPLIER` to adjust the default transaction values.
54-
- Extend `GraphQLClient` with additional queries (e.g. account state, balances)
55-
if you need richer diagnostics.
56-
5746
## Private key format
5847

5948
For clarity, private key is in output format of:

src/mina-signer/tests/mina-signer-test-app/config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ export const CONFIG = {
1414
};
1515

1616
/**
17-
* Human-friendly CLI usage text that `test-signer.js` displays when
17+
* Human-friendly CLI usage text that `mina-test-signer.js` displays when
1818
* the caller provides incomplete arguments.
1919
*/
2020
export const USAGE_INFO = {
21-
message: 'Usage: node test-signer.js <private_key> <recipient_address> [graphql_url] [nonce]',
22-
example: 'Example: node test-signer.js EKErBK1KznrJJY3raJafSyxSayJ6viejaVrmjzXkSmoxXiJQsesU B62qp4wcxoJyFFyXZ2RVw8kGPpWn6ncK4RtsTz29jFf6fY2XYN42R1v http://172.17.0.3:3085/graphql 3',
21+
message: 'Usage: node mina-test-signer.js <private_key> <recipient_address> [graphql_url] [nonce]',
22+
example: 'Example: node mina-test-signer.js EKErBK1KznrJJY3raJafSyxSayJ6viejaVrmjzXkSmoxXiJQsesU B62qp4wcxoJyFFyXZ2RVw8kGPpWn6ncK4RtsTz29jFf6fY2XYN42R1v http://172.17.0.3:3085/graphql 3',
2323
defaultUrl: `Default GraphQL URL: ${CONFIG.DEFAULT_GRAPHQL_URL}`
2424
};

src/mina-signer/tests/mina-signer-test-app/graphql-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class GraphQLClient {
2626
const response = await fetch(this.url, {
2727
method: 'POST',
2828
headers: { 'Content-Type': 'application/json' },
29-
body: JSON.stringify({ operationName: null, query, variables: {} }),
29+
body: JSON.stringify({ query }),
3030
});
3131

3232
return await this.handleResponse(response);

src/mina-signer/tests/mina-signer-test-app/mina-test-signer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* - Submit the signed payload to a Mina daemon and verify it reached the pool
1010
*
1111
* Usage:
12-
* node test-signer.js --private-key <key> --recipient <address> [--url <graphql_url>] [--nonce <nonce>]
12+
* node mina-test-signer.js --private-key <key> --recipient <address> [--url <graphql_url>] [--nonce <nonce>]
1313
*/
1414
import { Command } from 'commander';
1515
import { GraphQLClient } from './graphql-client.js';

0 commit comments

Comments
 (0)