Skip to content

Commit

Permalink
Update Oasis Scan OperationsRow swagger spec
Browse files Browse the repository at this point in the history
  • Loading branch information
buberdds committed Jun 19, 2024
1 parent 0ac34cc commit a897e44
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changelog/1981.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update Oasis Scan OperationsRow swagger spec
4 changes: 4 additions & 0 deletions src/app/components/Transaction/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down
1 change: 1 addition & 0 deletions src/app/state/transaction/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export enum TransactionType {
BeaconPvssReveal = 'beacon.PVSSReveal',
BeaconVrfProve = 'beacon.VRFProve',
ConsensusMeta = 'consensus.Meta',
VaultCreate = 'vault.Create',

// ParaTime
ConsensusDeposit = 'consensus.Deposit',
Expand Down
1 change: 1 addition & 0 deletions src/vendors/oasisscan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion src/vendors/oasisscan/models/OperationsRow.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/vendors/oasisscan/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ components:
- beacon.PVSSReveal
- beacon.VRFProve
- consensus.Meta
- vault.Create
fee:
type: string
amount:
Expand Down

0 comments on commit a897e44

Please sign in to comment.