Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Oasis Scan OperationsRow swagger spec #1981

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading