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

feat(extension): update conway era tx details to the latest figma #868

Merged
merged 13 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from 5 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
4 changes: 3 additions & 1 deletion apps/browser-extension-wallet/src/lib/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"sent": "Sent",
"sending": "Sending",
"header": "Summary of your activity",
"transactionHash": "Transaction Hash",
"transactionID": "Transaction ID",
"status": "Status",
"timestamp": "Timestamp",
"inputs": "Inputs",
Expand Down Expand Up @@ -1319,6 +1319,8 @@
"eMax": "EMax",
"nOpt": "NOpt",
"costModels": "Cost Models",
"PlutusV1": "PlutusV1",
"PlutusV2": "PlutusV2",
"collateralPercentage": "Coll Percentage",
"tooltip": {
"a0": "Pool pledge influence",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ const buildGetActivityDetail =
// TODO: store the raw data here and transform it later so we always have the raw data when needed.(LW-9570)
votingProcedures: votingProceduresTransformer(tx.body.votingProcedures),
proposalProcedures: governanceProposalsTransformer(cardanoCoin, tx.body.proposalProcedures),
certificates: certificateTransformer(cardanoCoin, tx.body.certificates)
certificates: certificateTransformer(cardanoCoin, coinPrices, fiatCurrency, tx.body.certificates)
};

if (type === DelegationActivityType.delegation && delegationInfo) {
Expand Down
16 changes: 16 additions & 0 deletions apps/browser-extension-wallet/src/utils/tx-inspection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,22 @@ export const getVoterType = (voterType: Wallet.Cardano.VoterType): VoterTypeEnum
}
};

export enum CredentialType {
KeyHash = 'KeyHash',
ScriptHash = 'ScriptHash'
}

export const getCredentialType = (credentialType: Wallet.Cardano.CredentialType): CredentialType => {
switch (credentialType) {
case Wallet.Cardano.CredentialType.KeyHash:
return CredentialType.KeyHash;
case Wallet.Cardano.CredentialType.ScriptHash:
return CredentialType.ScriptHash;
default:
return CredentialType.ScriptHash;
}
};

export enum VotesEnum {
YES = 'yes',
NO = 'no',
Expand Down
Loading
Loading