-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui): #2053: create skeleton files for unimplemented actions
- Loading branch information
Showing
27 changed files
with
334 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
packages/ui/src/ActionView/actions/community-pool-deposit.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { CommunityPoolDeposit } from '@penumbra-zone/protobuf/penumbra/core/component/governance/v1/governance_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface CommunityPoolDepositActionProps { | ||
value: CommunityPoolDeposit; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const CommunityPoolDepositAction = (_: CommunityPoolDepositActionProps) => { | ||
return <UnknownAction label='Community Pool Deposit' opaque={false} />; | ||
}; |
11 changes: 11 additions & 0 deletions
11
packages/ui/src/ActionView/actions/community-pool-output.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { CommunityPoolOutput } from '@penumbra-zone/protobuf/penumbra/core/component/governance/v1/governance_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface CommunityPoolOutputActionProps { | ||
value: CommunityPoolOutput; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const CommunityPoolOutputAction = (_: CommunityPoolOutputActionProps) => { | ||
return <UnknownAction label='Community Pool Output' opaque={false} />; | ||
}; |
11 changes: 11 additions & 0 deletions
11
packages/ui/src/ActionView/actions/community-pool-spend.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { CommunityPoolSpend } from '@penumbra-zone/protobuf/penumbra/core/component/governance/v1/governance_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface CommunityPoolSpendActionProps { | ||
value: CommunityPoolSpend; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const CommunityPoolSpendAction = (_: CommunityPoolSpendActionProps) => { | ||
return <UnknownAction label='Community Pool Spend' opaque={false} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Delegate } from '@penumbra-zone/protobuf/penumbra/core/component/stake/v1/stake_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface DelegateActionProps { | ||
value: Delegate; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const DelegateAction = (_: DelegateActionProps) => { | ||
return <UnknownAction label='Delegate' opaque={false} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { DelegatorVoteView } from '@penumbra-zone/protobuf/penumbra/core/component/governance/v1/governance_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface DelegatorVoteActionProps { | ||
value: DelegatorVoteView; | ||
} | ||
|
||
export const DelegatorVoteAction = ({ value }: DelegatorVoteActionProps) => { | ||
return <UnknownAction label='Delegator Vote' opaque={value.delegatorVote.case === 'opaque'} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { UnknownAction } from './unknown'; | ||
import { ActionDutchAuctionEnd } from '@penumbra-zone/protobuf/penumbra/core/component/auction/v1/auction_pb'; | ||
|
||
export interface DutchAuctionEndActionProps { | ||
value: ActionDutchAuctionEnd; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const DutchAuctionEndAction = (_: DutchAuctionEndActionProps) => { | ||
return <UnknownAction label='Dutch Auction End' opaque={false} />; | ||
}; |
11 changes: 11 additions & 0 deletions
11
packages/ui/src/ActionView/actions/dutch-auction-schedule.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ActionDutchAuctionScheduleView } from '@penumbra-zone/protobuf/penumbra/core/component/auction/v1/auction_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface DutchAuctionScheduleActionProps { | ||
value: ActionDutchAuctionScheduleView; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const DutchAuctionScheduleAction = (_: DutchAuctionScheduleActionProps) => { | ||
return <UnknownAction label='Dutch Auction Schedule' opaque={false} />; | ||
}; |
11 changes: 11 additions & 0 deletions
11
packages/ui/src/ActionView/actions/dutch-auction-withdraw.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ActionDutchAuctionWithdrawView } from '@penumbra-zone/protobuf/penumbra/core/component/auction/v1/auction_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface DutchAuctionWithdrawActionProps { | ||
value: ActionDutchAuctionWithdrawView; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const DutchAuctionWithdrawAction = (_: DutchAuctionWithdrawActionProps) => { | ||
return <UnknownAction label='Dutch Auction Withdraw' opaque={false} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { IbcRelay } from '@penumbra-zone/protobuf/penumbra/core/component/ibc/v1/ibc_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface IbcRelayActionProps { | ||
value: IbcRelay; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const IbcRelayAction = (_: IbcRelayActionProps) => { | ||
return <UnknownAction label='IBC Relay' opaque={false} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Ics20Withdrawal } from '@penumbra-zone/protobuf/penumbra/core/component/ibc/v1/ibc_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface Ics20WithdrawalActionProps { | ||
value: Ics20Withdrawal; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const Ics20WithdrawalAction = (_: Ics20WithdrawalActionProps) => { | ||
return <UnknownAction label='ICS 20 Withdrawal' opaque={false} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { PositionClose } from '@penumbra-zone/protobuf/penumbra/core/component/dex/v1/dex_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface PositionCloseActionProps { | ||
value: PositionClose; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const PositionCloseAction = (_: PositionCloseActionProps) => { | ||
return <UnknownAction label='Position Close' opaque={false} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { PositionOpen } from '@penumbra-zone/protobuf/penumbra/core/component/dex/v1/dex_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface PositionOpenActionProps { | ||
value: PositionOpen; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const PositionOpenAction = (_: PositionOpenActionProps) => { | ||
return <UnknownAction label='Position Open' opaque={false} />; | ||
}; |
11 changes: 11 additions & 0 deletions
11
packages/ui/src/ActionView/actions/position-reward-claim.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { PositionRewardClaim } from '@penumbra-zone/protobuf/penumbra/core/component/dex/v1/dex_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface PositionRewardClaimActionProps { | ||
value: PositionRewardClaim; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const PositionRewardClaimAction = (_: PositionRewardClaimActionProps) => { | ||
return <UnknownAction label='Position Reward Claim' opaque={false} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { PositionWithdraw } from '@penumbra-zone/protobuf/penumbra/core/component/dex/v1/dex_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface PositionWithdrawActionProps { | ||
value: PositionWithdraw; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const PositionWithdrawAction = (_: PositionWithdrawActionProps) => { | ||
return <UnknownAction label='Position Withdraw' opaque={false} />; | ||
}; |
11 changes: 11 additions & 0 deletions
11
packages/ui/src/ActionView/actions/proposal-deposit-claim.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ProposalDepositClaim } from '@penumbra-zone/protobuf/penumbra/core/component/governance/v1/governance_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface ProposalDepositClaimActionProps { | ||
value: ProposalDepositClaim; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const ProposalDepositClaimAction = (_: ProposalDepositClaimActionProps) => { | ||
return <UnknownAction label='Proposal Deposit Claim' opaque={false} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ProposalSubmit } from '@penumbra-zone/protobuf/penumbra/core/component/governance/v1/governance_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface ProposalSubmitActionProps { | ||
value: ProposalSubmit; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const ProposalSubmitAction = (_: ProposalSubmitActionProps) => { | ||
return <UnknownAction label='Proposal Submit' opaque={false} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ProposalWithdraw } from '@penumbra-zone/protobuf/penumbra/core/component/governance/v1/governance_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface ProposalWithdrawActionProps { | ||
value: ProposalWithdraw; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const ProposalWithdrawAction = (_: ProposalWithdrawActionProps) => { | ||
return <UnknownAction label='Proposal Withdraw' opaque={false} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { UnknownAction } from './unknown'; | ||
import { UndelegateClaim } from '@penumbra-zone/protobuf/penumbra/core/component/stake/v1/stake_pb'; | ||
|
||
export interface UndelegateClaimActionProps { | ||
value: UndelegateClaim; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const UndelegateClaimAction = (_: UndelegateClaimActionProps) => { | ||
return <UnknownAction label='Swap Claim' opaque={false} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Undelegate } from '@penumbra-zone/protobuf/penumbra/core/component/stake/v1/stake_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface UndelegateActionProps { | ||
value: Undelegate; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const UndelegateAction = (_: UndelegateActionProps) => { | ||
return <UnknownAction label='Undelegate' opaque={false} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
packages/ui/src/ActionView/actions/validator-definition.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ValidatorDefinition } from '@penumbra-zone/protobuf/penumbra/core/component/stake/v1/stake_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface ValidatorDefinitionActionProps { | ||
value: ValidatorDefinition; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const ValidatorDefinitionAction = (_: ValidatorDefinitionActionProps) => { | ||
return <UnknownAction label='Validator Definition' opaque={false} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ValidatorVote } from '@penumbra-zone/protobuf/penumbra/core/component/governance/v1/governance_pb'; | ||
import { UnknownAction } from './unknown'; | ||
|
||
export interface ValidatorVoteActionProps { | ||
value: ValidatorVote; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- unimplemented | ||
export const ValidatorVoteAction = (_: ValidatorVoteActionProps) => { | ||
return <UnknownAction label='Delegator Vote' opaque={false} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.