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 d942d77 commit 70b9ced
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 @@ -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 =>
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 70b9ced

Please sign in to comment.