Skip to content

Commit

Permalink
feat: rename gasBudget to gasFee in UI (#7928)
Browse files Browse the repository at this point in the history
  • Loading branch information
begonaalvarezd authored Jan 26, 2024
1 parent a3ad3fd commit 5ff5bed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@
$: claimedTime = getFormattedTimeStamp(activity?.asyncData?.claimedDate)
$: hasStorageDeposit =
activity?.storageDeposit || (activity?.storageDeposit === 0 && activity?.giftedStorageDeposit === 0)
$: gasBudget = activity?.parsedLayer2Metadata?.gasBudget
// Note: Because this component is used in both confirmation and tx history,
// we asume the gas budget is the same as the gas fee,
// its true for transactions made with firefly, but it might not be true for other wallets.
$: gasFee = activity?.parsedLayer2Metadata?.gasBudget
$: formattedTransactionTime = getFormattedTimeStamp(activity?.time)
$: formattedTimelockDate = getFormattedTimeStamp(activity?.asyncData?.timelockDate)
$: formattedStorageDeposit = formatTokenAmountPrecise(activity?.storageDeposit ?? 0, getBaseToken())
$: formattedGiftedStorageDeposit = formatTokenAmountPrecise(activity?.giftedStorageDeposit ?? 0, getBaseToken())
$: formattedSurplus = formatTokenAmountPrecise(activity?.surplus ?? 0, getBaseToken())
$: formattedGasBudget = formatTokenAmountPrecise(Number(gasBudget ?? 0), getBaseToken())
$: formattedGasFee = formatTokenAmountPrecise(Number(gasFee ?? 0), getBaseToken())
let transactionDetailsList: IKeyValueBoxList
$: transactionDetailsList = {
Expand All @@ -49,8 +52,8 @@
...(activity?.giftedStorageDeposit && {
giftedStorageDeposit: { data: formattedGiftedStorageDeposit, isTooltipVisible: true },
}),
...(gasBudget && {
gasBudget: { data: formattedGasBudget, isTooltipVisible: true },
...(gasFee && {
gasFee: { data: formattedGasFee, isTooltipVisible: true },
}),
...(expirationTime && {
expirationTime: { data: expirationTime, isTooltipVisible: true },
Expand Down
6 changes: 3 additions & 3 deletions packages/shared/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,7 @@
"smartContract": "Smart Contract",
"targetContract": "Target contract",
"contractFunction": "Contract function",
"gasBudget": "Gas budget",
"gasFee": "Gas fee",
"standard": "Standard",
"uri": "URI",
"issuer": "Issuer",
Expand Down Expand Up @@ -2162,7 +2162,7 @@
"timelockDate": "The sender set a timelock on these funds. You will be able to spend them once the timelock expires.",
"metadata": "An optional data field for storing data persistently on the Tangle.",
"tag": "A short optional data field. Tagging groups of transactions can make them easier to search for.",
"gasBudget": "Gas budget is required to conduct a transaction or execute a smart contract function on Shimmer EVM."
"gasFee": "Gas fee is required to conduct a transaction or execute a smart contract function on Shimmer EVM."
},
"outgoing": {
"storageDeposit": "A storage deposit is a refundable deposit needed to store your transaction on the Tangle.",
Expand All @@ -2171,7 +2171,7 @@
"timelockDate": "You added a timelock to this transaction. The recipient will not be able to spend these funds until the timelock expires.",
"metadata": "An optional data field for storing data persistently on the Tangle.",
"tag": "A short optional data field. Tagging groups of transactions can make them easier to search for.",
"gasBudget": "Gas budget is required to conduct a transaction or execute a smart contract function on Shimmer EVM."
"gasFee": "Gas fee is required to conduct a transaction or execute a smart contract function on Shimmer EVM."
},
"nftMetadata": {
"standard": "The NFT standard e.g. IRC27.",
Expand Down

0 comments on commit 5ff5bed

Please sign in to comment.