Skip to content

Commit

Permalink
removed ipfs pin and autopin for NFT
Browse files Browse the repository at this point in the history
Signed-off-by: Vadym Struts <vstruts@brave.com>
  • Loading branch information
vadimstruts committed May 15, 2024
1 parent 280d4af commit af0044d
Show file tree
Hide file tree
Showing 92 changed files with 16 additions and 8,490 deletions.
17 changes: 0 additions & 17 deletions app/brave_settings_strings.grdp
Original file line number Diff line number Diff line change
Expand Up @@ -1149,23 +1149,9 @@
<message name="IDS_SETTINGS_WALLET_RESET_TRANSACTION_INFO_DESC" desc="Reset wallet transactions description">
Clearing transactions may be useful for developers or when clearing state on a local server
</message>
<message name="IDS_SETTINGS_WALLET_ENABLE_NFT_PINNING" desc="Enable NFT pinning">
Automatically pin NFTs
</message>
<message name="IDS_SETTINGS_WALLET_ENABLE_NFT_PINNING_DESC" desc="Enable NFT pinning description">
NFTs which are added to the Brave Wallet may be automatically pinned to the local IPFS node.
Note: IPFS daemon may be started for the pinning purposes so your local node will share cached data and pinned NFTs to the IPFS network.
</message>
<message name="IDS_SETTINGS_WALLET_RESET" desc="Reset wallet settings item text">
Reset and clear wallet data
</message>
<message name="IDS_SETTINGS_CLEAR_PINNED_NFT" desc="Clear pinned NFTs item text">
Clear pinned NFTs
</message>
<message name="IDS_SETTINGS_CLEAR_PINNED_NFT_DESC" desc="CL item text">
Pinned NFTs are hosted to the IPFS network when local IPFS node is launched.
You have <ph name="NFT_COUNT">$1<ex>2</ex></ph> pinned NFTs at the moment.
</message>
<message name="IDS_SETTINGS_WALLET_RESET_TRANSACTION_INFO_CONFIRMATION" desc="Reset wallet settings confirmation for resetting transaction info message text">
Are you sure you want to reset all of your wallet transaction and nonce information? This option is mostly used by developers running a local test server. Type "<ph name="CONFIRMATION_PHRASE">$1<ex>Yes</ex></ph>" to confirm.
</message>
Expand All @@ -1181,9 +1167,6 @@
<message name="IDS_SETTINGS_WALLET_RESET_TRANSACTION_INFO_CONFIRMED" desc="Reset wallet settings confirmed message text">
Your wallet transaction information was reset.
</message>
<message name="IDS_SETTINGS_WALLET_CLEAR_PINNED_NFT_INFO_CONFIRMED" desc="Clear pinned NFTs confirmed message text">
Your pinned NFTs were reset.
</message>
<message name="IDS_SETTINGS_WALLET_RESET_CONFIRMATION_PHRASE" desc="The phrase users should type to reset wallet">
Yes
</message>
Expand Down
8 changes: 0 additions & 8 deletions browser/brave_wallet/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@ source_set("brave_wallet") {
"zcash_wallet_service_factory.cc",
"zcash_wallet_service_factory.h",
]
if (enable_ipfs_local_node) {
sources += [
"brave_wallet_auto_pin_service_factory.cc",
"brave_wallet_auto_pin_service_factory.h",
"brave_wallet_pin_service_factory.cc",
"brave_wallet_pin_service_factory.h",
]
}
if (!is_android) {
sources += [ "wallet_notification_helper.h" ]
}
Expand Down
104 changes: 0 additions & 104 deletions browser/brave_wallet/brave_wallet_auto_pin_service_factory.cc

This file was deleted.

57 changes: 0 additions & 57 deletions browser/brave_wallet/brave_wallet_auto_pin_service_factory.h

This file was deleted.

104 changes: 0 additions & 104 deletions browser/brave_wallet/brave_wallet_pin_service_factory.cc

This file was deleted.

54 changes: 0 additions & 54 deletions browser/brave_wallet/brave_wallet_pin_service_factory.h

This file was deleted.

10 changes: 0 additions & 10 deletions browser/browser_context_keyed_service_factories.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@
#include "brave/browser/ipfs/ipfs_service_factory.h"
#endif

#if BUILDFLAG(ENABLE_IPFS_LOCAL_NODE)
#include "brave/browser/brave_wallet/brave_wallet_auto_pin_service_factory.h"
#include "brave/browser/brave_wallet/brave_wallet_pin_service_factory.h"
#endif

#if BUILDFLAG(ENABLE_TOR)
#include "brave/browser/tor/tor_profile_service_factory.h"
#endif
Expand Down Expand Up @@ -181,11 +176,6 @@ void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
#endif
brave_wallet::BraveWalletIpfsServiceFactory::GetInstance();

#if BUILDFLAG(ENABLE_IPFS_LOCAL_NODE)
brave_wallet::BraveWalletAutoPinServiceFactory::GetInstance();
brave_wallet::BraveWalletPinServiceFactory::GetInstance();
#endif

EphemeralStorageServiceFactory::GetInstance();
PermissionLifetimeManagerFactory::GetInstance();
#if BUILDFLAG(ENABLE_BRAVE_VPN) || BUILDFLAG(ENABLE_AI_CHAT)
Expand Down
Loading

0 comments on commit af0044d

Please sign in to comment.