Skip to content

Commit b6470b6

Browse files
authored
feat: Batch XLS-0056d support (#1199)
## High Level Overview of Change <!-- Please include a summary/list of the changes. If too broad, please consider splitting into multiple PRs. --> Add support for Batch. ### Context of Change <!-- Please include the context of a change. If a bug fix, when was the bug introduced? What was the behavior? If a new feature, why was this architecture chosen? What were the alternatives? If a refactor, how is this better than the previous implementation? If there is a design document for this feature, please link it here. --> XRPLF/rippled#5060 ### Type of Change <!-- Please check relevant options, delete irrelevant ones. --> - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Refactor (non-breaking change that only restructures code) - [ ] Tests (You added tests for code that already exists, or your new feature included in this PR) - [ ] Documentation Updates - [ ] Translation Updates - [ ] Release ## Before / After <!-- If just refactoring / back-end changes, this can be just an in-English description of the change at a technical level. If a UI change, screenshots should be included. --> ### Simple ![localhost_3000_transactions_9B956A77943DF3FB891DD14D2D41A87CD6E5FA8CC606A097F47319EE6110ABA1_detailed](https://github.com/user-attachments/assets/fc4c3db8-6093-41a0-9e24-ee0c753df019) ### Details tab (Description) ![Screenshot 2025-07-01 at 12 32 09 PM](https://github.com/user-attachments/assets/b564ac6f-01af-42de-a706-e3faeaa9a484) ### TableDetail ![Screenshot 2025-07-01 at 12 32 42 PM](https://github.com/user-attachments/assets/9483eea4-251b-4be2-8eb6-93d17ae6c59b)
1 parent 841cf7b commit b6470b6

34 files changed

+856
-59
lines changed

docs/analytics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
| network | Which named network we are viewing | `mainnet`, `testnet`, `devnet`, `amm-devnet`, `custom` , or more in the future | All pages |
66
| entrypoint | The URI the explorer connects to for data | | All pages |
77
| transaction_type | The `TransactionType` field on a transaction | | `/transactions/*` |
8-
| transaction_category | An explorer specific grouping of transactions | `PAYMENT`, `DEX`, `NFT`, `ACCOUNT`, `PSEUDO`, `UNKNOWN`, or `XCHAIN` | `/transactions/*` |
8+
| transaction_category | An explorer specific grouping of transactions | `PAYMENT`, `DEX`, `NFT`, `ACCOUNT`, `PSEUDO`, `OTHER`, or `XCHAIN` | `/transactions/*` |
99
| transaction_action | An explorer specific grouping of transactions | `CREATE`, `MODIFY`, `FINISH`, `CANCEL`, or `SEND` | `/transactions/*` |
1010
| tec_code | The failure code for a transaction | | `/transactions/*` |
1111
| account_id | | | `/accounts/*` |

package-lock.json

Lines changed: 108 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"autoprefixer": "^10.4.20",
1414
"axios": "^1.6.5",
1515
"body-parser": "^1.20.3",
16+
"buffer": "^6.0.3",
1617
"bunyan": "^1.8.15",
1718
"classnames": "^2.5.1",
1819
"compression": "^1.7.4",
@@ -43,6 +44,7 @@
4344
"react18-json-view": "^0.2.8",
4445
"recharts": "^2.15.3",
4546
"ripple-address-codec": "^5.0.0",
47+
"ripple-binary-codec": "^2.4.1",
4648
"topojson-client": "^3.0.0",
4749
"usehooks-ts": "^3.1.0",
4850
"vite": "^6.3.5",
@@ -102,7 +104,7 @@
102104
"ts-jest": "^29.3.2",
103105
"ts-node": "^10.9.2",
104106
"typescript": "^4.9.5",
105-
"xrpl": "^4.2.5"
107+
"xrpl": "^4.3.0"
106108
},
107109
"resolutions": {
108110
"jest-environment-jsdom": "29.3.1",

public/locales/ca-CA/translations.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"transaction_category_NFT": "NFT",
6666
"transaction_category_PAYMENT": "Pagament",
6767
"transaction_category_PSUEDO": "Pseudo-Tx",
68-
"transaction_category_UNKNOWN": "Desconegut",
68+
"transaction_category_OTHER": null,
6969
"transaction_legend_toggle_hide": "Amaga la llegenda",
7070
"transaction_legend_toggle_show": "Mostra la llegenda",
7171
"transactions.date_header": "Data/hora (UTC)",
@@ -155,6 +155,7 @@
155155
"transaction_type_name_AMMBid": "Pujar AMM",
156156
"transaction_type_name_AMMClawback": null,
157157
"transaction_type_name_AccountSet": "Account Set",
158+
"transaction_type_name_Batch": null,
158159
"transaction_type_name_CheckCancel": "Cancel·lar Check",
159160
"transaction_type_name_CheckCash": "Cobrar Check",
160161
"transaction_type_name_CheckCreate": "Crear de Check",
@@ -575,5 +576,12 @@
575576
"permissions": null,
576577
"tx_delegated_to": null,
577578
"account_delegates_to": null,
578-
"delegate_to": null
579+
"delegate_to": null,
580+
"inner_transaction": null,
581+
"batch_table_detail_count": null,
582+
"batch_table_detail_list": null,
583+
"batch_description": null,
584+
"batch": null,
585+
"successful": null,
586+
"failed": null
579587
}

public/locales/en-US/translations.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"transaction_category_PAYMENT": "Payment",
6969
"transaction_category_PSEUDO": "Pseudo-Tx",
7070
"transaction_category_XCHAIN": "XChain",
71-
"transaction_category_UNKNOWN": "Unknown",
71+
"transaction_category_OTHER": "Other",
7272
"transaction_legend_toggle_hide": "Hide Legend",
7373
"transaction_legend_toggle_show": "Show Legend",
7474
"transactions.date_header": "Date/time (UTC)",
@@ -158,6 +158,7 @@
158158
"transaction_type_name_AMMBid": "AMM Bid",
159159
"transaction_type_name_AMMClawback": "AMMClawback",
160160
"transaction_type_name_AccountSet": "Account Set",
161+
"transaction_type_name_Batch": "Batch",
161162
"transaction_type_name_CheckCancel": "Check Cancel",
162163
"transaction_type_name_CheckCash": "Check Cash",
163164
"transaction_type_name_CheckCreate": "Check Create",
@@ -582,5 +583,12 @@
582583
"permissions": "Permissions",
583584
"tx_delegated_to": "The transaction is delegated to <Account/>",
584585
"account_delegates_to": "<Account/> delegates <Permissions/> permissions to <Authorize/>",
585-
"delegate_to": "<DelegateLabel/> <Permissions/> permissions to <Account/>"
586+
"delegate_to": "<DelegateLabel/> <Permissions/> permissions to <Account/>",
587+
"inner_transaction": "Inner Transaction",
588+
"batch_table_detail_count": "<BatchLabel/> {{batch_count}} transactions",
589+
"batch_table_detail_list": "Applied Inner Transactions: <TxList/>",
590+
"batch_description": "Batch Signers: <SignerList/>",
591+
"batch": "Batch",
592+
"successful": "Successful",
593+
"failed": "Failed"
586594
}

public/locales/es-ES/translations.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"transaction_category_PAYMENT": "Pago",
6767
"transaction_category_PSEUDO": "Pseudo-Tx",
6868
"transaction_category_XCHAIN": null,
69-
"transaction_category_UNKNOWN": "Desconocido",
69+
"transaction_category_OTHER": null,
7070
"transaction_legend_toggle_hide": "Ocultar Leyenda",
7171
"transaction_legend_toggle_show": "Mostrar Leyenda",
7272
"transactions.date_header": "Fecha/hora (UTC)",
@@ -155,6 +155,7 @@
155155
"transaction_type_name_AMMBid": "Puja AMM",
156156
"transaction_type_name_AMMClawback": null,
157157
"transaction_type_name_AccountSet": "Configurar Cuenta",
158+
"transaction_type_name_Batch": null,
158159
"transaction_type_name_CheckCancel": "Cancelar Cheque",
159160
"transaction_type_name_CheckCash": "Cobrar Cheque",
160161
"transaction_type_name_CheckCreate": "Crear Cheque",
@@ -577,6 +578,11 @@
577578
"delegate": null,
578579
"permissions": null,
579580
"tx_delegated_to": null,
580-
"account_delegates_to": null,
581-
"delegate_to": null
581+
"inner_transaction": null,
582+
"batch_table_detail_count": null,
583+
"batch_table_detail_list": null,
584+
"batch_description": null,
585+
"batch": null,
586+
"successful": null,
587+
"failed": null
582588
}

0 commit comments

Comments
 (0)