Skip to content

Commit

Permalink
Merge commit 'de52c422ef31d0b5c08c5e768cdfd17afa603b81' into 2476----…
Browse files Browse the repository at this point in the history
…support-one-click-dapp-connection-and-sign-in
  • Loading branch information
MarkNerdi committed May 27, 2024
2 parents 2c56c90 + de52c42 commit c82ce32
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 23 deletions.
29 changes: 15 additions & 14 deletions firefly.diff
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,15 @@
rename packages/desktop/views/dashboard/developer/{index.js => index.ts} (100%)
rename packages/desktop/{lib/routers/enums => views/dashboard/drawers/network-config}/network-config-route.enum.ts (86%)
rename packages/desktop/{components/menu-buttons/ProposalDetailsButton.svelte => views/dashboard/governance/components/ProposalDetailsMenu.svelte} (55%)
rename packages/desktop/{ => views/dashboard/governance}/components/ProposalQuestion.svelte (59%)
rename packages/desktop/{ => views/dashboard/governance}/components/ProposalQuestion.svelte (58%)
rename packages/desktop/views/dashboard/{index.js => index.ts} (77%)
rename packages/desktop/views/dashboard/send-flow/{index.js => index.ts} (100%)
delete mode 100644 packages/desktop/views/dashboard/send-flow/views/SendFlowTemplate.svelte
delete mode 100644 packages/desktop/views/dashboard/send-flow/views/components/DateTimePicker.svelte
delete mode 100644 packages/desktop/views/dashboard/send-flow/views/components/DateTimePickerButton.svelte
delete mode 100644 packages/desktop/views/dashboard/send-flow/views/components/TokenAmountTile.svelte
delete mode 100644 packages/desktop/views/dashboard/send-flow/views/components/TransactionDetails.svelte
delete mode 100644 packages/desktop/views/dashboard/send-flow/views/components/index.js
rename packages/desktop/views/dashboard/send-flow/views/{index.js => index.ts} (100%)
delete mode 100644 packages/desktop/views/dashboard/settings/Settings.svelte
delete mode 100644 packages/desktop/views/dashboard/settings/views/SettingsNavigator.svelte
Expand Down Expand Up @@ -242,8 +243,7 @@
rename packages/desktop/views/{index.js => index.ts} (83%)
rename packages/desktop/views/login/{index.js => index.ts} (100%)
delete mode 100644 packages/desktop/views/login/views/EnterPinView.svelte
delete mode 100644 packages/desktop/views/login/views/index.js
rename packages/{mobile/views/login/views/index.js => desktop/views/login/views/index.ts} (69%)
rename packages/desktop/views/login/views/{index.js => index.ts} (69%)
rename packages/desktop/views/onboarding/{index.js => index.ts} (100%)
rename packages/desktop/views/onboarding/views/create-from-ledger/{index.js => index.ts} (100%)
rename packages/desktop/views/onboarding/views/create-from-ledger/views/{index.js => index.ts} (77%)
Expand Down Expand Up @@ -589,6 +589,7 @@
delete mode 100644 packages/mobile/views/login/views/EnterPinView.svelte
delete mode 100644 packages/mobile/views/login/views/LoadProfileView.svelte
delete mode 100644 packages/mobile/views/login/views/SelectProfileView.svelte
delete mode 100644 packages/mobile/views/login/views/index.js
delete mode 100644 packages/mobile/views/onboarding/OnboardingRouter.svelte
delete mode 100644 packages/mobile/views/onboarding/index.js
delete mode 100644 packages/mobile/views/onboarding/views/CongratulationsView.svelte
Expand Down Expand Up @@ -1103,6 +1104,7 @@
delete mode 100644 packages/shared/lib/core/layer-2/constants/gas-budget.constant.ts
delete mode 100644 packages/shared/lib/core/layer-2/constants/gas-multiplier.constant.ts
delete mode 100644 packages/shared/lib/core/layer-2/enums/allowance.enum.ts
delete mode 100644 packages/shared/lib/core/layer-2/enums/contract-type.enum.ts
delete mode 100644 packages/shared/lib/core/layer-2/enums/destination-network.enum.ts
delete mode 100644 packages/shared/lib/core/layer-2/enums/index.ts
delete mode 100644 packages/shared/lib/core/layer-2/helpers/encodeAddress.ts
Expand All @@ -1115,7 +1117,10 @@
delete mode 100644 packages/shared/lib/core/layer-2/interfaces/layer2-parameters.interface.ts
delete mode 100644 packages/shared/lib/core/layer-2/interfaces/layer2-profile-balance.interface.ts
delete mode 100644 packages/shared/lib/core/layer-2/stores/layer2-balances.store.ts
delete mode 100644 packages/shared/lib/core/layer-2/types/abi.type.ts
delete mode 100644 packages/shared/lib/core/layer-2/types/contract.type.ts
delete mode 100644 packages/shared/lib/core/layer-2/types/evm-transaction-data.type.ts
delete mode 100644 packages/shared/lib/core/layer-2/types/index.ts
delete mode 100644 packages/shared/lib/core/layer-2/types/layer2-metadata.interface.ts
delete mode 100644 packages/shared/lib/core/layer-2/utils/addGasBudget.ts
delete mode 100644 packages/shared/lib/core/layer-2/utils/getAbiForContractType.ts
Expand Down Expand Up @@ -1189,6 +1194,7 @@
delete mode 100644 packages/shared/lib/core/network/enums/explorer-endpoint.enum.ts
delete mode 100644 packages/shared/lib/core/network/enums/index.ts
delete mode 100644 packages/shared/lib/core/network/interfaces/auth.interface.ts
delete mode 100644 packages/shared/lib/core/network/interfaces/block.interface.ts
delete mode 100644 packages/shared/lib/core/network/interfaces/chain-configuration.interface.ts
delete mode 100644 packages/shared/lib/core/network/interfaces/chain-status.interface.ts
delete mode 100644 packages/shared/lib/core/network/interfaces/chain.interface.ts
Expand Down Expand Up @@ -1586,10 +1592,10 @@
rename packages/shared/{ => src}/lib/contexts/governance/stores/selected-participation-event-status.store.ts (64%)
rename packages/shared/{ => src}/lib/contexts/governance/stores/selected-proposal.store.ts (57%)
rename packages/shared/{ => src}/lib/contexts/governance/types/index.ts (100%)
rename packages/shared/{ => src}/lib/contexts/governance/utils/calculateTotalVotesForTrackedParticipations.ts (65%)
rename packages/shared/{ => src}/lib/contexts/governance/utils/calculateTotalVotesForTrackedParticipations.ts (64%)
rename packages/shared/{ => src}/lib/contexts/governance/utils/createProposalFromError.ts (52%)
rename packages/shared/{ => src}/lib/contexts/governance/utils/getActiveParticipation.ts (82%)
rename packages/shared/{ => src}/lib/contexts/governance/utils/getNumberOfActiveProposals.ts (54%)
rename packages/shared/{ => src}/lib/contexts/governance/utils/getNumberOfActiveProposals.ts (53%)
rename packages/shared/{ => src}/lib/contexts/governance/utils/getNumberOfTotalProposals.ts (100%)
rename packages/shared/{ => src}/lib/contexts/governance/utils/getNumberOfVotedProposals.ts (92%)
rename packages/shared/{ => src}/lib/contexts/governance/utils/getNumberOfVotingProposals.ts (94%)
Expand Down Expand Up @@ -1837,23 +1843,22 @@
rename packages/shared/{ => src}/lib/core/i18n/utils/getGroupSeparator.ts (83%)
rename packages/shared/{ => src}/lib/core/i18n/utils/index.ts (100%)
rename packages/shared/{ => src}/lib/core/i18n/utils/replaceCurrencyDecimal.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/abis/erc20.abi.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/abis/erc20.abi.ts (98%)
rename packages/shared/{ => src}/lib/core/layer-2/abis/index.ts (68%)
rename packages/shared/{ => src}/lib/core/layer-2/abis/isc-sandbox.abi.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/abis/isc-sandbox.abi.ts (99%)
rename packages/shared/{ => src}/lib/core/layer-2/classes/simple-buffer.class.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/constants/accounts-contract.constant.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/constants/contract-functions.constant.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/constants/empty-buffer.constants.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/constants/erc20-tokens-poll-interval.constant.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/constants/externally-owned-account-type-id.constant.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/constants/externally-owned-account.constant.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/constants/index.ts (66%)
rename packages/shared/{ => src}/lib/core/layer-2/constants/index.ts (78%)
rename packages/shared/{ => src}/lib/core/layer-2/constants/isc-magic-contract-address.constant.ts (51%)
rename packages/shared/{ => src}/lib/core/layer-2/constants/layer2-tokens-poll-interval.constant.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/constants/target-contracts.constant.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/constants/transfer-allowance.constant.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/enums/abi-type.enum.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/enums/contract-type.enum.ts (77%)
rename packages/shared/{ => src}/lib/core/layer-2/enums/state-mutability-type.enum.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/errors/index.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/errors/layer1-recipient.error.ts (100%)
Expand All @@ -1869,10 +1874,7 @@
rename packages/shared/{lib/core/token/types/native-token-amount.type.ts => src/lib/core/layer-2/interfaces/native-token-amount.interface.ts} (73%)
rename packages/shared/{ => src}/lib/core/layer-2/stores/index.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/tests/parseLayer2MetadataForTransfer.test.ts (63%)
rename packages/shared/{ => src}/lib/core/layer-2/types/abi.type.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/types/contract.type.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/types/evm-transaction-options.type.ts (100%)
rename packages/shared/{ => src}/lib/core/layer-2/types/index.ts (54%)
rename packages/shared/{ => src}/lib/core/layer-2/utils/parseLayer2Metadata.ts (56%)
rename packages/shared/{ => src}/lib/core/ledger/classes/index.ts (100%)
rename packages/shared/{ => src}/lib/core/ledger/constants/ledger-error-locales.constant.ts (100%)
Expand Down Expand Up @@ -1921,7 +1923,6 @@
rename packages/shared/{ => src}/lib/core/network/helpers/getNetworkStatusFromNodeInfo.ts (69%)
rename packages/shared/{ => src}/lib/core/network/helpers/index.ts (100%)
rename packages/shared/{ => src}/lib/core/network/index.ts (100%)
rename packages/shared/{ => src}/lib/core/network/interfaces/block.interface.ts (100%)
rename packages/shared/{ => src}/lib/core/network/interfaces/client-options.interface.ts (54%)
rename packages/shared/{ => src}/lib/core/network/interfaces/connected-chain.interface.ts (100%)
rename packages/shared/{ => src}/lib/core/network/interfaces/evm-addresses.interface.ts (100%)
Expand All @@ -1931,7 +1932,7 @@
rename packages/shared/{ => src}/lib/core/network/interfaces/node-info-response.interface.ts (62%)
rename packages/shared/{ => src}/lib/core/network/interfaces/protocol.interface.ts (62%)
rename packages/shared/{ => src}/lib/core/network/types/network-metadata.type.ts (100%)
rename packages/shared/{ => src}/lib/core/network/types/web3-provider.type.ts (100%)
rename packages/shared/{ => src}/lib/core/network/types/web3-provider.type.ts (54%)
rename packages/shared/{ => src}/lib/core/network/utils/checkNodeUrlValidity.ts (95%)
rename packages/shared/{lib/core/network/utils/getDefaultPersistedNetwork.ts => src/lib/core/network/utils/getDefaultStardustNetwork.ts} (50%)
rename packages/shared/{ => src}/lib/core/network/utils/getEvmTransactionOptions.ts (88%)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
export let collectionId: string
$: nfts = $ownedNfts.filter((nft) => nft.collectionId === collectionId)
$: nfts = $ownedNfts.filter((nft) => nft.collectionId === collectionId && !nft.hidden && !nft.isScam)
onDestroy(() => {
$selectedCollectionId = undefined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
$: collection = $persistedCollections[collectionId]
$: nfts = $ownedNfts.filter((nft) => nft.collectionId === collectionId)
$: nfts = $ownedNfts.filter((nft) => nft.collectionId === collectionId && !nft.hidden && !nft.isScam)
</script>

{#if collection && nfts.length > 0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,18 @@
let queriedCollectionsIds: string[] = []
$: collectionsIds = new Set(
$ownedNfts
?.map((nft) => nft.collectionId)
.filter((collectionId) => collectionId && $persistedCollections[collectionId])
)
$: collectionsIds = $ownedNfts?.reduce((set, nft) => {
if (!nft.hidden && !nft.isScam && nft.collectionId && $persistedCollections[nft.collectionId]) {
set.add(nft.collectionId)
}
return set
}, new Set<string>())
$: $collectionsSearchTerm, collectionsIds, setQueriedCollectionsIds()
function setQueriedCollectionsIds(): void {
queriedCollectionsIds = Array.from(collectionsIds)
.filter((collectionId) => isVisibleCollection($persistedCollections[collectionId]))
?.filter((collectionId) => isVisibleCollection($persistedCollections[collectionId]))
.sort((collectionId1, collectionId2) =>
$persistedCollections[collectionId1]?.name
.toLowerCase()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"denylists": {
"keywords": ["lottery", "lotto", "raffle", "giveaway", "scam", "won"],
"keywords": ["lottery", "lotto", "raffle", "giveaway", "scam"],
"urls": ["iotalottery.com", "iota-lottery.com", "lottery-iota.com", "fly-fire.com"]
},
"allowlists": {
Expand Down

0 comments on commit c82ce32

Please sign in to comment.