From 70b9cedacc42e0e38f243b4180dc088f75e34b3d Mon Sep 17 00:00:00 2001 From: Michal Zielenkiewicz Date: Wed, 19 Jun 2024 14:01:42 +0200 Subject: [PATCH] Update Oasis Scan OperationsRow swagger spec --- .changelog/1981.internal.md | 1 + src/app/components/Transaction/index.tsx | 4 ++++ src/app/state/transaction/types.ts | 1 + src/vendors/oasisscan.ts | 1 + src/vendors/oasisscan/models/OperationsRow.ts | 3 ++- src/vendors/oasisscan/swagger.yml | 1 + 6 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .changelog/1981.internal.md diff --git a/.changelog/1981.internal.md b/.changelog/1981.internal.md new file mode 100644 index 0000000000..27eb04897e --- /dev/null +++ b/.changelog/1981.internal.md @@ -0,0 +1 @@ +Update Oasis Scan OperationsRow swagger spec diff --git a/src/app/components/Transaction/index.tsx b/src/app/components/Transaction/index.tsx index cf65184270..d8da988a96 100644 --- a/src/app/components/Transaction/index.tsx +++ b/src/app/components/Transaction/index.tsx @@ -381,6 +381,10 @@ export function Transaction(props: TransactionProps) { [TransactionSide.Received]: genericTransaction, [TransactionSide.Sent]: genericTransaction, }, + [transactionTypes.TransactionType.VaultCreate]: { + [TransactionSide.Received]: genericTransaction, + [TransactionSide.Sent]: genericTransaction, + }, } const isTypeRecognized = (type: string | undefined): type is transactionTypes.TransactionType => diff --git a/src/app/state/transaction/types.ts b/src/app/state/transaction/types.ts index 669e7fdb0d..345cc87dec 100644 --- a/src/app/state/transaction/types.ts +++ b/src/app/state/transaction/types.ts @@ -23,6 +23,7 @@ export enum TransactionType { BeaconPvssReveal = 'beacon.PVSSReveal', BeaconVrfProve = 'beacon.VRFProve', ConsensusMeta = 'consensus.Meta', + VaultCreate = 'vault.Create', // ParaTime ConsensusDeposit = 'consensus.Deposit', diff --git a/src/vendors/oasisscan.ts b/src/vendors/oasisscan.ts index e600087cfb..5c3e0688d5 100644 --- a/src/vendors/oasisscan.ts +++ b/src/vendors/oasisscan.ts @@ -142,6 +142,7 @@ export const transactionMethodMap: { [OperationsRowMethodEnum.BeaconPvssReveal]: TransactionType.BeaconPvssReveal, [OperationsRowMethodEnum.BeaconVrfProve]: TransactionType.BeaconVrfProve, [OperationsRowMethodEnum.ConsensusMeta]: TransactionType.ConsensusMeta, + [OperationsRowMethodEnum.VaultCreate]: TransactionType.VaultCreate, [ParaTimeCtxRowMethodEnum.ConsensusDeposit]: TransactionType.ConsensusDeposit, [ParaTimeCtxRowMethodEnum.ConsensusWithdraw]: TransactionType.ConsensusWithdraw, [ParaTimeCtxRowMethodEnum.ConsensusAccountsParameters]: TransactionType.ConsensusAccountsParameters, diff --git a/src/vendors/oasisscan/models/OperationsRow.ts b/src/vendors/oasisscan/models/OperationsRow.ts index d8dc64a9e6..af711f82c6 100644 --- a/src/vendors/oasisscan/models/OperationsRow.ts +++ b/src/vendors/oasisscan/models/OperationsRow.ts @@ -124,7 +124,8 @@ export enum OperationsRowMethodEnum { BeaconPvssCommit = 'beacon.PVSSCommit', BeaconPvssReveal = 'beacon.PVSSReveal', BeaconVrfProve = 'beacon.VRFProve', - ConsensusMeta = 'consensus.Meta' + ConsensusMeta = 'consensus.Meta', + VaultCreate = 'vault.Create' } export function OperationsRowFromJSON(json: any): OperationsRow { diff --git a/src/vendors/oasisscan/swagger.yml b/src/vendors/oasisscan/swagger.yml index 0d1663549d..46df381e89 100644 --- a/src/vendors/oasisscan/swagger.yml +++ b/src/vendors/oasisscan/swagger.yml @@ -457,6 +457,7 @@ components: - beacon.PVSSReveal - beacon.VRFProve - consensus.Meta + - vault.Create fee: type: string amount: