Skip to content

Commit

Permalink
Merge branch 'develop' into 2012-combine-store-of-persisted-local-evm…
Browse files Browse the repository at this point in the history
…-transactions-in-to-store-of-blockscout-evm-transactions
  • Loading branch information
MarkNerdi authored Feb 29, 2024
2 parents ce6b436 + cbe29c2 commit bc679c7
Show file tree
Hide file tree
Showing 15 changed files with 341 additions and 213 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { Answer, EventStatus } from '@iota/sdk/out/types'
import { Icon, IconName, Indicator, Text, TooltipIcon } from '@bloomwalletio/ui'
import { Icon, IconName, Text, TooltipIcon } from '@bloomwalletio/ui'
export let onAnswerClick: () => void
Expand Down Expand Up @@ -53,17 +53,7 @@
>
<div class="flex space-x-3 items-center w-full min-w-0">
{#if answerIndex !== undefined}
{#if isVotedFor}
<status-icon class="flex justify-center items-center shrink-0 w-5 h-5">
{#if proposalStatus === EventStatus.Ended || proposalStatus === EventStatus.Commencing}
<Icon name={IconName.ReceiptCheck} size="sm" textColor={isWinner ? 'invert' : 'brand'} />
{:else if proposalStatus === EventStatus.Holding}
<Indicator size="sm" ping />
{/if}
</status-icon>
{:else}
<answer-index>{answerIndex + 1}</answer-index>
{/if}
<answer-index>{answerIndex + 1}</answer-index>
{/if}
<Text
align="left"
Expand All @@ -74,6 +64,9 @@
</Text>
</div>
<div class="flex items-center space-x-1.5">
{#if isVotedFor}
<Icon name={IconName.ReceiptCheck} textColor="brand" size="xs" />
{/if}
{#if isWinner}
<Icon name={IconName.Trophy} size="xs" />
{/if}
Expand Down Expand Up @@ -120,16 +113,6 @@
}
}
&.voted {
&:hover {
@apply bg-blue-50;
}
&::after {
@apply bg-blue-100;
}
}
&.winner {
@apply bg-text-brand-dark border-brand;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
let hasVoted = false
$: $participationOverviewForSelectedAccount, setHasVoted()
$: $participationOverviewForSelectedAccount, proposal, setHasVoted()
function setHasVoted(): void {
hasVoted = isVotingForProposal(proposal?.id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</script>

{#if status}
<Pill color={STATUS_COLORS[status]}>
<Pill color={error ? 'danger' : STATUS_COLORS[status]}>
<div class="flex flex-row space-x-1 items-center">
{#if error}
<Icon name={IconName.CrossClose} textColor="danger" size="xs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@
const { metadata } = $visibleSelectedAccountTokens?.[$activeProfile?.network?.id]?.baseCoin ?? {}
let totalVotes = BigInt(0)
const hasMounted = false
$: selectedProposalOverview = $participationOverviewForSelectedAccount?.participations?.[$selectedProposal?.id]
$: trackedParticipations = Object.values(selectedProposalOverview ?? {})
$: currentMilestone = $networkStatus.currentMilestone
// Reactively start updating votes once component has mounted and participation overview is available.
$: hasMounted && $selectedParticipationEventStatus && trackedParticipations && currentMilestone && setTotalVotes()
$: $selectedParticipationEventStatus && trackedParticipations && currentMilestone && setTotalVotes()
function setTotalVotes(): void {
switch ($selectedParticipationEventStatus?.status) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function getActivityTileAction(activity: Activity): string | undefined {
} else if (activity.governanceAction === GovernanceAction.DecreaseVotingPower) {
return isConfirmed ? 'general.decreased' : 'general.decreasing'
} else if (activity.governanceAction === GovernanceAction.StartVoting) {
return isConfirmed ? 'general.voteStarted' : 'general.voteStarting'
return isConfirmed ? 'general.votedOn' : 'general.votingOn'
} else if (activity.governanceAction === GovernanceAction.StopVoting) {
return isConfirmed ? 'general.unvoted' : 'general.unvoting'
} else if (activity.governanceAction === GovernanceAction.ChangedVote) {
Expand Down
96 changes: 56 additions & 40 deletions packages/shared/src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,8 @@
"permissions": {
"step": "Berechtigung",
"tip": "Dies sind begrenzte Berechtigungen für die dApp, eine Interaktionsanfrage für Ihre Genehmigung zu senden. Bestätige nur dApps die du kennst und denen du vertraust.",
"title": "Berechtigungen auswählen",
"requiredTitle": "Required permissions",
"optionalTitle": "Optional permissions",
"signData": "Anfrage zur Signierung von Daten",
"signTransaction": "Anfrage zur Signierung einer Transaktion",
"sendTransaction": "Anfrage zum Senden einer Transaktion",
Expand All @@ -531,7 +532,8 @@
},
"networks": {
"step": "Netzwerke",
"title": "Netzwerke auswählen",
"requiredTitle": "Required networks",
"optionalTitle": "Optional networks",
"tip": "Die benötigten Netzwerke werden von der dApp vorausgewählt und können später auch neu konfiguriert werden.",
"empty": "Es muss mindestens ein Netzwerk ausgewählt werden"
},
Expand Down Expand Up @@ -650,24 +652,24 @@
},
"statusTimeline": {
"upcoming": {
"past": "Announced",
"present": "Announcement",
"future": "Announcement"
"past": "Angekündigt",
"present": "Ankündigung",
"future": "Ankündigung"
},
"commencing": {
"past": "Voting opened",
"present": "Voting open",
"future": "Voting opens"
"past": "Abstimmung begonnen",
"present": "Abstimmung läuft",
"future": "Abstimmung beginnt"
},
"holding": {
"past": "Counting started",
"present": "Counting started",
"future": "Counting starts"
"past": "Zählung gestartet",
"present": "Zählung gestartet",
"future": "Zählung beginnt"
},
"ended": {
"past": "Counting stopped",
"present": "Counting stopped",
"future": "Counting stops"
"past": "Zählung beendet",
"present": "Zählung beendet",
"future": "Zählung endet"
}
},
"details": {
Expand All @@ -686,7 +688,11 @@
"nodeUrl": "Node-URL"
},
"fetching": "Abrufen der Abstimmungsdaten",
"hintVote": "Du kannst nicht über eine Abstimmung abstimmen, die sich noch in der Ankündigungsphase befindet. Die Abstimmung wird in {time} geöffnet."
"hintVote": "Du kannst nicht über eine Abstimmung abstimmen, die sich noch in der Ankündigungsphase befindet. Die Abstimmung wird in {time} geöffnet.",
"projection": {
"label": "Projected votes",
"tooltip": "The projection is based on current voting weight and remaining milestones."
}
}
},
"updateStronghold": {
Expand Down Expand Up @@ -863,7 +869,7 @@
"loadingNodeInfo": "Lade Node-Informationen",
"nodeAddress": "Node-Adresse",
"removeConfirmation": "Willst du diesen Node wirklich löschen?",
"requiresAuthentication": "Node requires authentication",
"requiresAuthentication": "Node erfordert Authentifizierung",
"info": {
"general": {
"tab": "Allgemein",
Expand Down Expand Up @@ -899,8 +905,8 @@
"useMetricPrefix": "Metrisches Präfix verwenden"
}
},
"jwt": "JSON web token",
"credentials": "Sign-in credentials"
"jwt": "JSON-Web-Token",
"credentials": "Anmeldeinformationen"
},
"errorLog": {
"title": "Fehlerprotokoll",
Expand Down Expand Up @@ -973,10 +979,18 @@
},
"siwe": {
"title": "Anmelden mit Ethereum",
"details": "Details",
"raw": "Raw",
"rawMessage": "Raw message",
"domain": "Domain",
"statement": "Statement",
"resources": "Resources",
"action": "Sign in"
"resources": "Ressourcen",
"chainId": "Chain Id",
"nonce": "Nonce",
"issuedAt": "Issued at",
"notBefore": "Not before",
"requestId": "Request Id",
"action": "Einloggen"
},
"signTransaction": {
"title": "Transaktion signieren",
Expand All @@ -991,6 +1005,7 @@
"smartContractCall": {
"title": "Aufruf des Smart Contracts an {contractAddress}",
"unableToVerify": "Bloom kann den Smart Contract nicht verifizieren. Fahre nur mit Apps fort, denen du vertraust.",
"viewSmartContract": "View Smart Contract",
"action": "Bestätigen",
"success": "Aufruf des Smart Contracts an {recipient}"
},
Expand Down Expand Up @@ -1157,7 +1172,7 @@
"errors": {
"invalidMimetype": "Ungültiger MimeTyp, überprüfen Sie, ob der Dateityp unterstützt wird",
"quantityTooSmall": "Menge muss größer als Null sein",
"quantityTooLarge": "Quantity needs to be smaller than 127",
"quantityTooLarge": "Menge muss kleiner als 127 sein",
"emptyName": "Name ist ein Pflichtfeld",
"invalidURI": "Ungültige URL, bitte gib eine gültige URL ein",
"notReachable": "URI nicht erreichbar, NFT Typ kann nicht überprüft werden",
Expand Down Expand Up @@ -1186,7 +1201,7 @@
"title": "Vorschlag hinzufügen",
"body": "Bitte gib die unten aufgeführten Informationen an, um einen Vorschlag hinzuzufügen.",
"addToAllAccounts": "Vorschlag zu allen Konten hinzufügen",
"addAllProposalsOnNode": "Add all proposals on this node"
"addAllProposalsOnNode": "Alle Vorschläge zu diesem Node hinzufügen"
},
"editProposal": {
"title": "Vorschlag bearbeiten",
Expand Down Expand Up @@ -1355,7 +1370,7 @@
"addProposal": "Vorschlag hinzufügen",
"removeProposal": "Abstimmung entfernen",
"changeNode": "Node wechseln",
"changeNodeUrl": "Change node URL",
"changeNodeUrl": "Node-URL ändern",
"stopVoting": "Abstimmen beenden",
"revote": "Wiederabstimmen",
"skipAndKeep": "Überspringen und altes Passwort behalten",
Expand All @@ -1365,11 +1380,11 @@
"syncAccounts": "Konten synchronisieren",
"importToken": "{type} Token importiert",
"syncTokens": "Token-Synchronisation erzwingen",
"mintNftCollection": "Mint NFT collection"
"mintNftCollection": "Minte NFT-Sammlung"
},
"general": {
"recipient": "Empfänger",
"username": "Username",
"username": "Benutzername",
"password": "Passwort",
"confirmPassword": "Passwort bestätigen",
"currentPassword": "Aktuelles Passwort",
Expand All @@ -1381,18 +1396,18 @@
"receiving": "Empfange",
"newVotingPower": "Neues Stimmrecht",
"votingPower": "Stimmrecht",
"increased": "Stimmrecht erhöht",
"increasing": "Erhöhe Stimmrecht",
"decreased": "Stimmrecht verringert",
"decreasing": "Verringere Stimmrecht",
"increased": "Voting increased",
"increasing": "Increasing voting",
"decreased": "Voting decreased",
"decreasing": "Decreasing voting",
"voted": "Abgestimmt",
"voting": "Abstimmung",
"changedVote": "Stimme geändert",
"changingVote": "Stimme ändern",
"revoted": "Erneut abgestimmt",
"revoting": "Erneut abstimmen",
"unvoted": "Nicht abgestimmt",
"unvoting": "Stimme zurücknehmen",
"unvoted": "Stopped voting",
"unvoting": "Stopping voting",
"transferred": "Transferiert",
"transferring": "Transferiere",
"shimmerClaimed": "Beansprucht",
Expand Down Expand Up @@ -1531,6 +1546,7 @@
"contractFunction": "Vertragsfunktion",
"standard": "Standard",
"uri": "URI",
"image": "Image",
"issuer": "Aussteller",
"issuerAddress": "Ausstelleradresse",
"issuerName": "Name des Ausstellers",
Expand Down Expand Up @@ -1587,8 +1603,8 @@
"governance": "Governance",
"baseCoin": "Basis-Token",
"unverifiedContract": "Unverifizierter Vertrag",
"startIndex": "Start index",
"mintNftCollectionDescription": "Mint collection NFT in Alias Output"
"startIndex": "Start-Index",
"mintNftCollectionDescription": "Minte Sammlungs-NFT im Alias-Output"
},
"filters": {
"title": "Filter",
Expand Down Expand Up @@ -1797,7 +1813,7 @@
"success": "Kontaktadressen erfolgreich aktualisiert"
},
"siwe": {
"rejected": "Invalid SIWE request"
"rejected": "Ungültige SIWE-Anfrage"
},
"syncTokens": {
"success": "Token erfolgreich synchronisiert"
Expand Down Expand Up @@ -2073,7 +2089,7 @@
"attributes": "Optionaler Parameter: Eine Reihe von Merkmalen und Werten, die Attribute der NFT definieren",
"uri": "Um eine URI mittels benutzerdefinierter Medien zu erstellen, laden Sie zuerst Ihre Datei über einen Speicherdienst auf IPFS hoch (z.B. https://nft.storage/)",
"quantity": "Optionaler Parameter: Die Anzahl der mit diesen Metadaten gemintete Kopien.",
"startIndex": "Optional parameter: The start index of the NFTs to mint."
"startIndex": "Optionaler Parameter: Der Start-Index der zu mintenden NFTs."
},
"governance": {
"removeProposalWarning": "Du musst das Abstimmen für diesen Vorschlag stoppen, bevor du sie entfernen kannst.",
Expand All @@ -2099,7 +2115,7 @@
"collectibles": "Sammlerstücke",
"governance": "Governance",
"campaigns": "Kampagnen",
"buySell": "Buy IOTA",
"buySell": "Kaufe IOTA",
"developer": "Entwickler",
"tokens": "Token",
"settings": "Einstellungen"
Expand Down Expand Up @@ -2134,10 +2150,10 @@
"appNotOpen": "App nicht geöffnet"
},
"dappVerification": {
"valid": "Verified",
"invalid": "Domain Mismatch",
"unknown": "Cannot verify",
"scam": "Security Risk"
"valid": "Verifiziert",
"invalid": "Domain stimmt nicht überein",
"unknown": "Verifizierung nicht möglich",
"scam": "Sicherheitsrisiko"
}
},
"menus": {
Expand Down
22 changes: 12 additions & 10 deletions packages/shared/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1085,19 +1085,19 @@
"Conflicting": "Failed to decrease voting power"
},
"startVoting": {
"Pending": "Voting for {proposalName}",
"Confirmed": "Voted for {proposalName}",
"Conflicting": "Failed to vote for"
"Pending": "Voting on {proposalName}",
"Confirmed": "Voted on {proposalName}",
"Conflicting": "Failed to vote on"
},
"stopVoting": {
"Pending": "Stopping voting for {proposalName}",
"Confirmed": "Stopped voting for {proposalName}",
"Conflicting": "Failed to stop voting for"
"Pending": "Stopping voting on {proposalName}",
"Confirmed": "Stopped voting on {proposalName}",
"Conflicting": "Failed to stop voting on"
},
"changedVote": {
"Pending": "Changing vote for {proposalName}",
"Confirmed": "Changed vote for {proposalName}",
"Conflicting": "Failed to change vote for"
"Pending": "Changing vote on {proposalName}",
"Confirmed": "Changed vote on {proposalName}",
"Conflicting": "Failed to change vote on"
},
"revote": {
"Pending": "Revoting",
Expand Down Expand Up @@ -1219,7 +1219,7 @@
"revote": {
"title": "Revote on proposals",
"body": "Changing your voting power temporarily stops your votes for all proposals from being counted. Simply click \"Revote\" to resume voting.",
"hint": "Bloom remembers all of the proposals and answer options you previously voted for."
"hint": "Bloom remembers all the proposals and answer options you previously voted for."
},
"removeProposal": {
"title": "Remove proposal",
Expand Down Expand Up @@ -1404,6 +1404,8 @@
"decreasing": "Decreasing voting",
"voted": "Voted",
"voting": "Voting",
"votingOn": "Voting on",
"votedOn": "Voted on",
"changedVote": "Changed vote",
"changingVote": "Changing vote",
"revoted": "Revoted",
Expand Down
Loading

0 comments on commit bc679c7

Please sign in to comment.