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 b85e62e2e6..5bf0856cf1 100644 --- a/src/app/components/Transaction/index.tsx +++ b/src/app/components/Transaction/index.tsx @@ -382,6 +382,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 e072b5bcd8..01bfb9dbeb 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 00688bd79e..000cc3411e 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: