Skip to content

Commit

Permalink
add new operation and transaction type
Browse files Browse the repository at this point in the history
Added support for:
 - `data_publish` transaction
 - `sharedstorage_upload_value` operation

Signed-off-by: Alex Shorsher <[email protected]>
  • Loading branch information
shorsher committed Sep 2, 2022
1 parent 900c580 commit f4a65a9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/interfaces/enums/operationTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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,
Expand Down
7 changes: 7 additions & 0 deletions src/interfaces/enums/transactionTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 } = {
Expand Down Expand Up @@ -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',
},
};
2 changes: 2 additions & 0 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit f4a65a9

Please sign in to comment.