From 3457853471439498915bd5ccfd707816896336af Mon Sep 17 00:00:00 2001 From: L Date: Thu, 29 Feb 2024 04:25:35 -0700 Subject: [PATCH] feat: render Swap Claim opaque action (#633) --- packages/types/src/transaction/perspective.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/packages/types/src/transaction/perspective.ts b/packages/types/src/transaction/perspective.ts index 2b2e2637c1..45c1b1020d 100644 --- a/packages/types/src/transaction/perspective.ts +++ b/packages/types/src/transaction/perspective.ts @@ -13,6 +13,8 @@ import { SpendView_Opaque, } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/shielded_pool/v1/shielded_pool_pb'; import { + SwapClaimView, + SwapClaimView_Opaque, SwapView, SwapView_Opaque, } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/dex/v1/dex_pb'; @@ -61,6 +63,20 @@ export const viewActionFromEmptyPerspective = (action: Action): ActionView | und }), }, }); + case 'swapClaim': + return new ActionView({ + actionView: { + case: 'swapClaim', + value: new SwapClaimView({ + swapClaimView: { + case: 'opaque', + value: new SwapClaimView_Opaque({ + swapClaim: action.action.value, + }), + }, + }), + }, + }); default: // TODO: fill in other actions. most actions don't have views (they are their own view) so they can be passed through. return undefined;