From f4a65a9e0463d6c8909dff69341945c541259130 Mon Sep 17 00:00:00 2001 From: Alex Shorsher Date: Thu, 1 Sep 2022 21:35:53 -0400 Subject: [PATCH] add new operation and transaction type Added support for: - `data_publish` transaction - `sharedstorage_upload_value` operation Signed-off-by: Alex Shorsher --- src/interfaces/enums/operationTypes.ts | 6 ++++++ src/interfaces/enums/transactionTypes.ts | 7 +++++++ src/translations/en.json | 2 ++ 3 files changed, 15 insertions(+) diff --git a/src/interfaces/enums/operationTypes.ts b/src/interfaces/enums/operationTypes.ts index 8f0af7f..3e97582 100644 --- a/src/interfaces/enums/operationTypes.ts +++ b/src/interfaces/enums/operationTypes.ts @@ -55,6 +55,7 @@ export enum FF_OPS { // Message/Definitions SHAREDSTORAGE_UPLOAD_BATCH = 'sharedstorage_upload_batch', SHAREDSTORAGE_UPLOAD_BLOB = 'sharedstorage_upload_blob', + SHAREDSTORAGE_UPLOAD_VALUE = 'sharedstorage_upload_value', SHAREDSTORAGE_DOWNLOAD_BATCH = 'sharedstorage_download_batch', SHAREDSTORAGE_DOWNLOAD_BLOB = 'sharedstorage_download_blob', DATAEXCHANGE_SEND_BATCH = 'dataexchange_send_batch', @@ -89,6 +90,11 @@ export const FF_OP_CATEGORY_MAP: { [key in FF_OPS]: IBlockchainCategory } = { color: FFColors.Orange, nicename: 'sharedStorageUploadBatch', }, + [FF_OPS.SHAREDSTORAGE_UPLOAD_VALUE]: { + category: OpCategoryEnum.MESSAGES, + color: FFColors.Orange, + nicename: 'sharedStorageUploadValue', + }, [FF_OPS.SHAREDSTORAGE_UPLOAD_BLOB]: { category: OpCategoryEnum.MESSAGES, color: FFColors.Orange, diff --git a/src/interfaces/enums/transactionTypes.ts b/src/interfaces/enums/transactionTypes.ts index 5b993ce..e4558ad 100644 --- a/src/interfaces/enums/transactionTypes.ts +++ b/src/interfaces/enums/transactionTypes.ts @@ -58,6 +58,8 @@ export enum FF_TX { TOKEN_APPROVAL = 'token_approval', TOKEN_POOL = 'token_pool', TOKEN_TRANSFER = 'token_transfer', + // Data Publishing + DATA_PUBLISH = 'data_publish', } export const FF_TX_CATEGORY_MAP: { [key in FF_TX]: IBlockchainCategory } = { @@ -104,4 +106,9 @@ export const FF_TX_CATEGORY_MAP: { [key in FF_TX]: IBlockchainCategory } = { color: FFColors.Pink, nicename: 'tokenTransfer', }, + [FF_TX.DATA_PUBLISH]: { + category: TxCategoryEnum.MESSAGES, + color: FFColors.Orange, + nicename: 'dataPublish', + }, }; diff --git a/src/translations/en.json b/src/translations/en.json index 10ee712..270046c 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -81,6 +81,7 @@ "dataExchangeSendBatch": "Data Exchange Send Batch", "dataExchangeSendBlob": "Data Exchange Send Blob", "dataHash": "Data Hash", + "dataPublish": "Data Publish", "datatype": "Datatype", "datatypeConfirmed": "Datatype Confirmed", "datatypeID": "Datatype ID", @@ -314,6 +315,7 @@ "sharedStorageDownloadBlob": "Shared Storage Download Blob", "sharedStorageUploadBatch": "Shared Storage Upload Batch", "sharedStorageUploadBlob": "Shared Storage Upload Blob", + "sharedStorageUploadValue": "Shared Storage Upload Value", "signature": "Signature", "signingKey": "Signing Key", "source": "Source",