|
| 1 | +version: 1 |
| 2 | +generated_by: repo-knowledge-tracker |
| 3 | +last_updated: "2025-01-13T00:00:00Z" |
| 4 | +entries: |
| 5 | + - path: "src/methods/createTx.ts" |
| 6 | + title: "Transaction Creation Module" |
| 7 | + why_important: "Core module responsible for creating transactions with mortality/era settings - critical for transaction expiry issue" |
| 8 | + topics: ["transaction", "mortality", "era", "expiry", "signing"] |
| 9 | + owners: ["@backend-team"] |
| 10 | + linked_docs: [] |
| 11 | + related_components: |
| 12 | + ["src/methods/createAndSendTx.ts", "src/commands/createCommand.ts"] |
| 13 | + dependencies: |
| 14 | + direct: |
| 15 | + [ |
| 16 | + "@polkadot/util", |
| 17 | + "@polkadot/types", |
| 18 | + "@polkadot/util-crypto", |
| 19 | + "moonbeam-tools", |
| 20 | + ] |
| 21 | + indirect: [] |
| 22 | + update_triggers: ["mortality period changes", "transaction format changes"] |
| 23 | + last_seen: "2025-01-13" |
| 24 | + last_reviewed_at: "2025-01-13" |
| 25 | + staleness_hints: "Period hardcoded to 2048 blocks" |
| 26 | + recommended_action: "Make mortality period configurable via CLI parameter" |
| 27 | + notes: "Line 99: period: 2 ** 11 (2048 blocks) is hardcoded - this is the root cause of transaction expiry issues" |
| 28 | + |
| 29 | + - path: "src/methods/createAndSendTx.ts" |
| 30 | + title: "Create and Send Transaction Module" |
| 31 | + why_important: "Handles immediate transaction creation and sending with same mortality settings" |
| 32 | + topics: ["transaction", "mortality", "era", "signing", "sending"] |
| 33 | + owners: ["@backend-team"] |
| 34 | + linked_docs: [] |
| 35 | + related_components: |
| 36 | + ["src/methods/createTx.ts", "src/commands/createAndSendCommand.ts"] |
| 37 | + dependencies: |
| 38 | + direct: |
| 39 | + [ |
| 40 | + "@polkadot/util", |
| 41 | + "@polkadot/types", |
| 42 | + "@polkadot/util-crypto", |
| 43 | + "moonbeam-tools", |
| 44 | + ] |
| 45 | + indirect: [] |
| 46 | + update_triggers: ["mortality period changes", "transaction format changes"] |
| 47 | + last_seen: "2025-01-13" |
| 48 | + last_reviewed_at: "2025-01-13" |
| 49 | + staleness_hints: "Period hardcoded to 2048 blocks" |
| 50 | + recommended_action: "Synchronize mortality period configuration with createTx.ts" |
| 51 | + notes: "Line 82: Same hardcoded 2048 block period as createTx.ts" |
| 52 | + |
| 53 | + - path: "src/methods/sendTx.ts" |
| 54 | + title: "Transaction Sending Module" |
| 55 | + why_important: "Sends pre-signed transactions - uses era from stored payload" |
| 56 | + topics: ["transaction", "sending", "era", "signature"] |
| 57 | + owners: ["@backend-team"] |
| 58 | + linked_docs: [] |
| 59 | + related_components: ["src/commands/sendCommand.ts"] |
| 60 | + dependencies: |
| 61 | + direct: ["@polkadot/types", "moonbeam-tools"] |
| 62 | + indirect: [] |
| 63 | + update_triggers: ["transaction format changes", "signing process changes"] |
| 64 | + last_seen: "2025-01-13" |
| 65 | + last_reviewed_at: "2025-01-13" |
| 66 | + staleness_hints: "None" |
| 67 | + recommended_action: "Add validation for transaction age before sending" |
| 68 | + notes: "Line 62: Uses era from stored payload, doesn't validate if transaction is still valid" |
| 69 | + |
| 70 | + - path: "src/commands/createCommand.ts" |
| 71 | + title: "Create Command CLI Handler" |
| 72 | + why_important: "CLI entry point for transaction creation - has immortality flag" |
| 73 | + topics: ["cli", "transaction", "immortality"] |
| 74 | + owners: ["@backend-team"] |
| 75 | + linked_docs: [] |
| 76 | + related_components: ["src/methods/createTx.ts"] |
| 77 | + dependencies: |
| 78 | + direct: ["yargs", "moonbeam-tools"] |
| 79 | + indirect: [] |
| 80 | + update_triggers: ["CLI interface changes", "new transaction options"] |
| 81 | + last_seen: "2025-01-13" |
| 82 | + last_reviewed_at: "2025-01-13" |
| 83 | + staleness_hints: "Missing mortality period configuration option" |
| 84 | + recommended_action: "Add --mortality-period parameter to allow custom expiry settings" |
| 85 | + notes: "Line 29-34: Has immortality flag but no way to configure mortality period" |
| 86 | + |
| 87 | + - path: "src/methods/types.ts" |
| 88 | + title: "Type Definitions" |
| 89 | + why_important: "Defines interfaces for transaction options including immortality" |
| 90 | + topics: ["types", "interfaces", "transaction options"] |
| 91 | + owners: ["@backend-team"] |
| 92 | + linked_docs: [] |
| 93 | + related_components: ["src/methods/*.ts", "src/commands/*.ts"] |
| 94 | + dependencies: |
| 95 | + direct: ["@polkadot/types", "moonbeam-tools"] |
| 96 | + indirect: [] |
| 97 | + update_triggers: ["New transaction options", "API changes"] |
| 98 | + last_seen: "2025-01-13" |
| 99 | + last_reviewed_at: "2025-01-13" |
| 100 | + staleness_hints: "Missing mortality period field" |
| 101 | + recommended_action: "Add mortalityPeriod field to TxOpt interface" |
| 102 | + notes: "Lines 52, 34: immortality boolean exists but no period configuration" |
0 commit comments