From e88fe304c1868e0f65608646c4e6d42bc3063fce Mon Sep 17 00:00:00 2001 From: Kiran Pachhai Date: Wed, 25 Oct 2023 10:41:41 -0400 Subject: [PATCH] Changed the package names --- README.md | 10 +----- package.json | 8 ++--- packages/site/package.json | 2 +- packages/snap/README.md | 13 ++------ packages/snap/package.json | 8 ++--- packages/snap/snap.manifest.json | 10 +++--- packages/snap/src/index.ts | 10 +++--- .../snap/src/rpc/account/getAccountBalance.ts | 8 ++--- .../snap/src/rpc/account/getAccountInfo.ts | 8 ++--- .../snap/src/rpc/account/transferCrypto.ts | 10 +++--- packages/snap/src/snap/account.ts | 20 ++++++------ packages/snap/src/snap/dapp.ts | 10 +++--- packages/snap/src/snap/dialog.ts | 6 ++-- packages/snap/src/snap/state.ts | 32 +++++++++---------- packages/snap/src/types/state.ts | 18 +++++------ packages/snap/src/utils/config.ts | 6 ++-- packages/snap/src/utils/init.ts | 8 ++--- yarn.lock | 12 +++---- 18 files changed, 91 insertions(+), 108 deletions(-) diff --git a/README.md b/README.md index 94e3150..a55a38e 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,4 @@ -# @metamask/template-snap-monorepo - -This repository demonstrates how to develop a snap with TypeScript. For detailed instructions, see [the MetaMask documentation](https://docs.metamask.io/guide/snaps.html#serving-a-snap-to-your-local-environment). - -MetaMask Snaps is a system that allows anyone to safely expand the capabilities of MetaMask. A _snap_ is a program that we run in an isolated environment that can customize the wallet experience. - -## Snaps is pre-release software - -To interact with (your) Snaps, you will need to install [MetaMask Flask](https://metamask.io/flask/), a canary distribution for developers that provides access to upcoming features. +# @tuum-tech/hedera-wallet-snap-monorepo ## Getting Started diff --git a/package.json b/package.json index df27458..da776c8 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,15 @@ { - "name": "@tuum-tech/hedera-pulse-monorepo", + "name": "@tuum-tech/hedera-wallet-snap-monorepo", "version": "0.1.0", "private": true, "description": "", - "homepage": "https://github.com/tuum-tech/hedera-pulse#readme", + "homepage": "https://github.com/tuum-tech/hedera-wallet-snap#readme", "bugs": { - "url": "https://github.com/tuum-tech/hedera-pulse/issues" + "url": "https://github.com/tuum-tech/hedera-wallet-snap/issues" }, "repository": { "type": "git", - "url": "git+https://github.com/tuum-tech/hedera-pulse.git" + "url": "git+https://github.com/tuum-tech/hedera-wallet-snap.git" }, "license": "(MIT-0 OR Apache-2.0)", "author": "", diff --git a/packages/site/package.json b/packages/site/package.json index ca0cf33..bae5fda 100644 --- a/packages/site/package.json +++ b/packages/site/package.json @@ -1,5 +1,5 @@ { - "name": "@tuum-tech/hedera-pulse-site", + "name": "@tuum-tech/hedera-wallet-snap-site", "version": "0.1.0", "private": true, "license": "(MIT-0 OR Apache-2.0)", diff --git a/packages/snap/README.md b/packages/snap/README.md index c3601a1..3575e79 100644 --- a/packages/snap/README.md +++ b/packages/snap/README.md @@ -1,12 +1,3 @@ -# TypeScript Example Snap +# Hedera Wallet Snap -This snap demonstrates how to develop a snap with TypeScript. It is a simple -snap that displays a confirmation dialog when the `hello` JSON-RPC method is -called. - -## Testing - -The snap comes with some basic tests, to demonstrate how to write tests for -snaps. To test the snap, run `yarn test` in this directory. This will use -[`@metamask/snaps-jest`](https://github.com/MetaMask/snaps/tree/main/packages/snaps-jest) -to run the tests in `src/index.test.ts`. +Hedera Wallet unlocks wallet functionality via Metamask that any other apps can interact with, thereby turning Metamask into a native Hedera wallet without relying on Hedera JSON-RPC Relay. diff --git a/packages/snap/package.json b/packages/snap/package.json index 4f64510..b7c5f3f 100644 --- a/packages/snap/package.json +++ b/packages/snap/package.json @@ -1,17 +1,17 @@ { - "name": "@tuum-tech/hedera-pulse", + "name": "@tuum-tech/hedera-wallet-snap", "version": "0.1.0", - "description": "Hedera Pulse Snap unlocks wallet functionality via Metamask that any other apps can interact with, thereby turning Metamask into a native Hedera wallet without relying on Hedera JSON-RPC Relay.", + "description": "Hedera Wallet unlocks wallet functionality via Metamask that any other apps can interact with, thereby turning Metamask into a native Hedera wallet without relying on Hedera JSON-RPC Relay.", "keywords": [ "MetaMask", "Snaps", "Hedera Hashgraph", "HBAR" ], - "homepage": "https://github.com/tuum-tech/hedera-pulse", + "homepage": "https://github.com/tuum-tech/hedera-wallet-snap", "repository": { "type": "git", - "url": "https://github.com/tuum-tech/hedera-pulse.git" + "url": "https://github.com/tuum-tech/hedera-wallet-snap.git" }, "license": "(MIT-0 OR Apache-2.0)", "author": { diff --git a/packages/snap/snap.manifest.json b/packages/snap/snap.manifest.json index 47e03ca..2d01847 100644 --- a/packages/snap/snap.manifest.json +++ b/packages/snap/snap.manifest.json @@ -1,18 +1,18 @@ { "version": "0.1.0", - "description": "Hedera Pulse Snap unlocks wallet functionality via Metamask that any other apps can interact with, thereby turning Metamask into a native Hedera wallet without relying on Hedera JSON-RPC Relay.", - "proposedName": "Hedera Pulse", + "description": "Hedera Wallet unlocks wallet functionality via Metamask that any other apps can interact with, thereby turning Metamask into a native Hedera wallet without relying on Hedera JSON-RPC Relay.", + "proposedName": "Hedera Wallet", "repository": { "type": "git", - "url": "https://github.com/tuum-tech/hedera-pulse.git" + "url": "https://github.com/tuum-tech/hedera-wallet-snap.git" }, "source": { - "shasum": "mlUPY6AfdzeXLaGkSP9uoaO1a+w8SdSqqpVbPgCjU98=", + "shasum": "lIPUuxtJBK1FGTeeiLgxiTbw+95PgnIxXZKNEkSs16I=", "location": { "npm": { "filePath": "dist/snap.js", "iconPath": "images/icon.svg", - "packageName": "@tuum-tech/hedera-pulse", + "packageName": "@tuum-tech/hedera-wallet-snap", "registry": "https://registry.npmjs.org/" } } diff --git a/packages/snap/src/index.ts b/packages/snap/src/index.ts index c424a84..bd18d5d 100644 --- a/packages/snap/src/index.ts +++ b/packages/snap/src/index.ts @@ -7,7 +7,7 @@ import { getAccountInfo } from './rpc/account/getAccountInfo'; import { transferCrypto } from './rpc/account/transferCrypto'; import { setCurrentAccount } from './snap/account'; import { getSnapStateUnchecked } from './snap/state'; -import { PulseSnapParams } from './types/state'; +import { WalletSnapParams } from './types/state'; import { init } from './utils/init'; import { getMirrorNodeFlagIfExists, @@ -69,7 +69,7 @@ export const onRpcRequest: OnRpcRequestHandler = async ({ `Current account: ${JSON.stringify(state.currentAccount, null, 4)}`, ); - const pulseSnapParams: PulseSnapParams = { + const walletSnapParams: WalletSnapParams = { origin, state, mirrorNodeUrl, @@ -98,7 +98,7 @@ export const onRpcRequest: OnRpcRequestHandler = async ({ return { currentAccount: state.currentAccount, accountInfo: await getAccountInfo( - pulseSnapParams, + walletSnapParams, request.params.accountId, ), }; @@ -106,14 +106,14 @@ export const onRpcRequest: OnRpcRequestHandler = async ({ case 'getAccountBalance': { return { currentAccount: state.currentAccount, - accountBalance: await getAccountBalance(pulseSnapParams), + accountBalance: await getAccountBalance(walletSnapParams), }; } case 'transferCrypto': { isValidTransferCryptoParams(request.params); return { currentAccount: state.currentAccount, - receipt: await transferCrypto(pulseSnapParams, request.params), + receipt: await transferCrypto(walletSnapParams, request.params), }; } default: diff --git a/packages/snap/src/rpc/account/getAccountBalance.ts b/packages/snap/src/rpc/account/getAccountBalance.ts index 221cf65..54322a3 100644 --- a/packages/snap/src/rpc/account/getAccountBalance.ts +++ b/packages/snap/src/rpc/account/getAccountBalance.ts @@ -1,6 +1,6 @@ import { createHederaClient } from '../../snap/account'; import { updateSnapState } from '../../snap/state'; -import { PulseSnapParams } from '../../types/state'; +import { WalletSnapParams } from '../../types/state'; /** * A query that returns the account balance for the specified account. @@ -8,13 +8,13 @@ import { PulseSnapParams } from '../../types/state'; * not change the state of the account or require network consensus. The * information is returned from a single node processing the query. * - * @param pulseSnapParams - Pulse snap params. + * @param walletSnapParams - Wallet snap params. * @returns Account Balance. */ export async function getAccountBalance( - pulseSnapParams: PulseSnapParams, + walletSnapParams: WalletSnapParams, ): Promise { - const { state } = pulseSnapParams; + const { state } = walletSnapParams; const { hederaAccountId, hederaEvmAddress, network } = state.currentAccount; diff --git a/packages/snap/src/rpc/account/getAccountInfo.ts b/packages/snap/src/rpc/account/getAccountInfo.ts index a66474b..91d54b0 100644 --- a/packages/snap/src/rpc/account/getAccountInfo.ts +++ b/packages/snap/src/rpc/account/getAccountInfo.ts @@ -6,7 +6,7 @@ import { createHederaClient } from '../../snap/account'; import { generateCommonPanel, snapDialog } from '../../snap/dialog'; import { updateSnapState } from '../../snap/state'; import { AccountInfo } from '../../types/account'; -import { PulseSnapParams, SnapDialogParams } from '../../types/state'; +import { WalletSnapParams, SnapDialogParams } from '../../types/state'; import { calculateHederaQueryFees, deductServiceFee, @@ -27,15 +27,15 @@ import { * available so these fields contain current data. Historical ethereum nonce information is also * currently not available and may not be the exact value at a provided timestamp. * - * @param pulseSnapParams - Pulse snap params. + * @param walletSnapParams - Wallet snap params. * @param accountId - Hedera Account Id. * @returns Account Info. */ export async function getAccountInfo( - pulseSnapParams: PulseSnapParams, + walletSnapParams: WalletSnapParams, accountId?: string, ): Promise { - const { origin, state, mirrorNodeUrl } = pulseSnapParams; + const { origin, state, mirrorNodeUrl } = walletSnapParams; const { hederaAccountId, hederaEvmAddress, network } = state.currentAccount; diff --git a/packages/snap/src/rpc/account/transferCrypto.ts b/packages/snap/src/rpc/account/transferCrypto.ts index 9011972..b974210 100644 --- a/packages/snap/src/rpc/account/transferCrypto.ts +++ b/packages/snap/src/rpc/account/transferCrypto.ts @@ -8,20 +8,20 @@ import { import { createHederaClient } from '../../snap/account'; import { snapDialog } from '../../snap/dialog'; import { TransferCryptoRequestParams } from '../../types/params'; -import { PulseSnapParams, SnapDialogParams } from '../../types/state'; +import { WalletSnapParams, SnapDialogParams } from '../../types/state'; /** * Transfer crypto(hbar or other tokens). * - * @param pulseSnapParams - Pulse snap params. + * @param walletSnapParams - Wallet snap params. * @param transferCryptoParams - Parameters for transferring crypto. * @returns Account Info. */ export async function transferCrypto( - pulseSnapParams: PulseSnapParams, + walletSnapParams: WalletSnapParams, transferCryptoParams: TransferCryptoRequestParams, ): Promise { - const { origin, state } = pulseSnapParams; + const { origin, state } = walletSnapParams; const { transfers = [] as SimpleTransfer[], @@ -37,7 +37,7 @@ export async function transferCrypto( if (!acc[transfer.asset]) { acc[transfer.asset] = 0; } - acc[transfer.asset] += transfer.amount * 0.001; // Add 0.1% of the amount + acc[transfer.asset] += transfer.amount * 0.0001; // Add 0.01% of the amount; This can be changed in the future return acc; }, {}); diff --git a/packages/snap/src/snap/account.ts b/packages/snap/src/snap/account.ts index e929386..7abafea 100644 --- a/packages/snap/src/snap/account.ts +++ b/packages/snap/src/snap/account.ts @@ -11,7 +11,7 @@ import { NetworkParams, } from '../types/account'; import { hederaNetworks } from '../types/constants'; -import { KeyStore, PulseSnapState, SnapDialogParams } from '../types/state'; +import { KeyStore, SnapDialogParams, WalletSnapState } from '../types/state'; import { generateWallet } from '../utils/keyPair'; import { generateCommonPanel, snapDialog } from './dialog'; import { validHederaNetwork } from './network'; @@ -46,7 +46,7 @@ function ensure0xPrefix(address: string): string { * Function that returns account info of the currently selected MetaMask account. * * @param origin - Source. - * @param state - PulseSnapState. + * @param state - WalletSnapState. * @param params - Parameters that were passed by the user. * @param mirrorNodeUrl - Hedera mirror node URL. * @param isExternalAccount - Whether this is a metamask or a non-metamask account. @@ -54,7 +54,7 @@ function ensure0xPrefix(address: string): string { */ export async function setCurrentAccount( origin: string, - state: PulseSnapState, + state: WalletSnapState, params: unknown, mirrorNodeUrl: string, isExternalAccount: boolean, @@ -131,7 +131,7 @@ export async function setCurrentAccount( } else { // Handle metamask connected account connectedAddress = await getCurrentMetamaskAccount(); - // Generate a new wallet according to the Hedera Pulse's entrophy combined with the currently connected EVM address + // Generate a new wallet according to the Hedera Wallet's entrophy combined with the currently connected EVM address const res = await generateWallet(connectedAddress); if (!res) { console.log('Failed to generate snap wallet for DID operations'); @@ -158,7 +158,7 @@ export async function setCurrentAccount( !Object.keys(state.accountState[connectedAddress]).includes(network)) ) { console.log( - `The address ${connectedAddress} has NOT yet been configured for the '${network}' network in the Hedera Pulse Snap. Configuring now...`, + `The address ${connectedAddress} has NOT yet been configured for the '${network}' network in the Hedera Wallet. Configuring now...`, ); await initAccountState(state, network, connectedAddress); } @@ -181,14 +181,14 @@ export async function setCurrentAccount( * Connect EVM Account. * * @param origin - Source. - * @param state - Pulse state. + * @param state - Wallet state. * @param network - Hedera network. * @param curve - Public Key curve('ECDSA_SECP256K1' | 'ED25519'). * @param evmAddress - EVM Account address. */ async function connectEVMAccount( origin: string, - state: PulseSnapState, + state: WalletSnapState, network: string, curve: 'ECDSA_SECP256K1' | 'ED25519', evmAddress: string, @@ -256,7 +256,7 @@ async function connectEVMAccount( * Connect Hedera Account. * * @param origin - Source. - * @param state - Pulse state. + * @param state - Wallet state. * @param network - Hedera network. * @param mirrorNodeUrl - Hedera mirror node URL. * @param curve - Public Key curve('ECDSA_SECP256K1' | 'ED25519'). @@ -264,7 +264,7 @@ async function connectEVMAccount( */ async function connectHederaAccount( origin: string, - state: PulseSnapState, + state: WalletSnapState, network: string, mirrorNodeUrl: string, curve: 'ECDSA_SECP256K1' | 'ED25519', @@ -401,7 +401,7 @@ async function connectHederaAccount( */ export async function importMetaMaskAccount( origin: string, - state: PulseSnapState, + state: WalletSnapState, network: string, mirrorNode: string, connectedAddress: string, diff --git a/packages/snap/src/snap/dapp.ts b/packages/snap/src/snap/dapp.ts index 3f3889b..f358a76 100644 --- a/packages/snap/src/snap/dapp.ts +++ b/packages/snap/src/snap/dapp.ts @@ -1,13 +1,13 @@ -import { PulseSnapState } from '../types/state'; +import { WalletSnapState } from '../types/state'; import { updateSnapState } from './state'; /** * Function that lets you add a friendly dApp. * - * @param state - PulseSnapState. + * @param state - WalletSnapState. * @param dapp - Dapp. */ -export async function addFriendlyDapp(state: PulseSnapState, dapp: string) { +export async function addFriendlyDapp(state: WalletSnapState, dapp: string) { state.snapConfig.dApp.friendlyDapps.push(dapp); await updateSnapState(state); } @@ -15,10 +15,10 @@ export async function addFriendlyDapp(state: PulseSnapState, dapp: string) { /** * Function that removes a friendly dApp. * - * @param state - PulseSnapState. + * @param state - WalletSnapState. * @param dapp - Dapp. */ -export async function removeFriendlyDapp(state: PulseSnapState, dapp: string) { +export async function removeFriendlyDapp(state: WalletSnapState, dapp: string) { // FIXME: TEST IF YOU CAN REFERENCE FRIENDLY DAPS // let friendlyDapps = state.snapConfig.dApp.friendlyDapps; // friendlyDapps = friendlyDapps.filter((app) => app !== dapp); diff --git a/packages/snap/src/snap/dialog.ts b/packages/snap/src/snap/dialog.ts index f8817d3..636ce5c 100644 --- a/packages/snap/src/snap/dialog.ts +++ b/packages/snap/src/snap/dialog.ts @@ -1,14 +1,14 @@ import { divider, heading, panel, Panel, text } from '@metamask/snaps-ui'; -import { PulseSnapState, SnapDialogParams } from '../types/state'; +import { SnapDialogParams, WalletSnapState } from '../types/state'; import { updateSnapState } from './state'; /** * Function that toggles the disablePopups flag in the config. * - * @param state - PulseSnapState. + * @param state - WalletSnapState. */ -export async function updatePopups(state: PulseSnapState) { +export async function updatePopups(state: WalletSnapState) { state.snapConfig.dApp.disablePopups = !state.snapConfig.dApp.disablePopups; await updateSnapState(state); } diff --git a/packages/snap/src/snap/state.ts b/packages/snap/src/snap/state.ts index e802e1f..771d090 100644 --- a/packages/snap/src/snap/state.ts +++ b/packages/snap/src/snap/state.ts @@ -1,15 +1,15 @@ import _ from 'lodash'; import { Account } from '../types/account'; -import { PulseSnapState } from '../types/state'; +import { WalletSnapState } from '../types/state'; import { getEmptyAccountState, getInitialSnapState } from '../utils/config'; /** - * Function for updating PulseSnapState object in the MetaMask state. + * Function for updating WalletSnapState object in the MetaMask state. * * @public * @param snapState - Object to replace the current object in the MetaMask state. */ -export async function updateSnapState(snapState: PulseSnapState) { +export async function updateSnapState(snapState: WalletSnapState) { await snap.request({ method: 'snap_manageState', params: { @@ -20,46 +20,46 @@ export async function updateSnapState(snapState: PulseSnapState) { } /** - * Function to retrieve PulseSnapState object from the MetaMask state. + * Function to retrieve WalletSnapState object from the MetaMask state. * * @public * @returns Object from the state. */ -export async function getSnapState(): Promise { +export async function getSnapState(): Promise { const state = (await snap.request({ method: 'snap_manageState', params: { operation: 'get' }, - })) as PulseSnapState | null; + })) as WalletSnapState | null; if (state === null || _.isEmpty(state)) { - throw Error('PulseSnapState is not initialized!'); + throw Error('WalletSnapState is not initialized!'); } return state; } /** - * Function to retrieve PulseSnapState object from the MetaMask state. + * Function to retrieve WalletSnapState object from the MetaMask state. * * @public * @returns Object from the state. */ -export async function getSnapStateUnchecked(): Promise { +export async function getSnapStateUnchecked(): Promise { const state = (await snap.request({ method: 'snap_manageState', params: { operation: 'get' }, - })) as PulseSnapState | null; + })) as WalletSnapState | null; return state; } /** - * Function to initialize PulseSnapState object. + * Function to initialize WalletSnapState object. * * @public * @returns Object. */ -export async function initSnapState(): Promise { +export async function initSnapState(): Promise { const state = getInitialSnapState(); await updateSnapState(state); return state; @@ -68,12 +68,12 @@ export async function initSnapState(): Promise { /** * Function that creates an empty IdentitySnapState object in the Identity Snap state for the provided address. * - * @param state - PulseSnapState. + * @param state - WalletSnapState. * @param network - Hedera network. * @param evmAddress - The account address. */ export async function initAccountState( - state: PulseSnapState, + state: WalletSnapState, network: string, evmAddress: string, ): Promise { @@ -89,13 +89,13 @@ export async function initAccountState( /** * Check if Hedera account was imported. * - * @param state - PulseSnapState. + * @param state - WalletSnapState. * @param network - Hedera network. * @param evmAddress - Ethereum address. * @returns Result. */ export async function getHederaAccountIdIfExists( - state: PulseSnapState, + state: WalletSnapState, network: string, evmAddress: string, ): Promise { diff --git a/packages/snap/src/types/state.ts b/packages/snap/src/types/state.ts index 7675ea5..6d69102 100644 --- a/packages/snap/src/types/state.ts +++ b/packages/snap/src/types/state.ts @@ -2,22 +2,22 @@ import { Panel } from '@metamask/snaps-ui'; import { Account, AccountInfo } from './account'; -export type PulseSnapState = { +export type WalletSnapState = { currentAccount: Account; /** * Account specific storage * mapping(evm address -> mapping(network -> state)) */ - accountState: Record>; + accountState: Record>; /** - * Configuration for PulseSnap + * Configuration for WalletSnap */ - snapConfig: PulseSnapConfig; + snapConfig: WalletSnapConfig; }; -export type PulseSnapConfig = { +export type WalletSnapConfig = { snap: { acceptedTerms: boolean; }; @@ -36,17 +36,17 @@ export type KeyStore = { }; /** - * Pulse Snap State for a MetaMask address + * Wallet Snap State for a MetaMask address */ -export type PulseAccountState = { +export type WalletAccountState = { keyStore: KeyStore; mirrorNodeUrl: string; accountInfo: AccountInfo; }; -export type PulseSnapParams = { +export type WalletSnapParams = { origin: string; - state: PulseSnapState; + state: WalletSnapState; mirrorNodeUrl: string; }; diff --git a/packages/snap/src/utils/config.ts b/packages/snap/src/utils/config.ts index 5c3397c..e507e19 100644 --- a/packages/snap/src/utils/config.ts +++ b/packages/snap/src/utils/config.ts @@ -1,7 +1,7 @@ import cloneDeep from 'lodash.clonedeep'; import { Account, AccountInfo } from '../types/account'; -import { KeyStore, PulseAccountState, PulseSnapState } from '../types/state'; +import { KeyStore, WalletAccountState, WalletSnapState } from '../types/state'; const emptyAccountState = { keyStore: { @@ -12,13 +12,13 @@ const emptyAccountState = { hederaAccountId: '', } as KeyStore, accountInfo: {} as AccountInfo, -} as PulseAccountState; +} as WalletAccountState; export const getEmptyAccountState = () => { return cloneDeep(emptyAccountState); }; -const initialSnapState: PulseSnapState = { +const initialSnapState: WalletSnapState = { currentAccount: {} as Account, accountState: {}, snapConfig: { diff --git a/packages/snap/src/utils/init.ts b/packages/snap/src/utils/init.ts index 5749db3..ac5b9d5 100644 --- a/packages/snap/src/utils/init.ts +++ b/packages/snap/src/utils/init.ts @@ -2,20 +2,20 @@ import { heading, text } from '@metamask/snaps-ui'; import { generateCommonPanel, snapDialog } from '../snap/dialog'; import { initSnapState } from '../snap/state'; -import { PulseSnapState, SnapDialogParams } from '../types/state'; +import { SnapDialogParams, WalletSnapState } from '../types/state'; /** * Init snap state. * * @param origin - Source. */ -export async function init(origin: string): Promise { +export async function init(origin: string): Promise { const dialogParams: SnapDialogParams = { type: 'alert', content: await generateCommonPanel(origin, [ - heading('Risks about using Hedera Pulse Snap'), + heading('Risks about using Hedera Wallet'), text( - 'Applications do NOT have access to your private keys. Everything is stored inside the sandbox environment of Hedera Pulse Snap inside Metamask', + 'Applications do NOT have access to your private keys. Everything is stored inside the sandbox environment of Hedera Wallet inside Metamask', ), ]), }; diff --git a/yarn.lock b/yarn.lock index c9ebf3d..f5350ea 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6826,9 +6826,9 @@ __metadata: languageName: node linkType: hard -"@tuum-tech/hedera-pulse-monorepo@workspace:.": +"@tuum-tech/hedera-wallet-snap-monorepo@workspace:.": version: 0.0.0-use.local - resolution: "@tuum-tech/hedera-pulse-monorepo@workspace:." + resolution: "@tuum-tech/hedera-wallet-snap-monorepo@workspace:." dependencies: "@metamask/eslint-config": ^11.1.0 "@metamask/eslint-config-jest": ^11.1.0 @@ -6849,9 +6849,9 @@ __metadata: languageName: unknown linkType: soft -"@tuum-tech/hedera-pulse-site@workspace:packages/site": +"@tuum-tech/hedera-wallet-snap-site@workspace:packages/site": version: 0.0.0-use.local - resolution: "@tuum-tech/hedera-pulse-site@workspace:packages/site" + resolution: "@tuum-tech/hedera-wallet-snap-site@workspace:packages/site" dependencies: "@hashgraph/sdk": ^2.34.1 "@metamask/eslint-config": ^11.1.0 @@ -6902,9 +6902,9 @@ __metadata: languageName: unknown linkType: soft -"@tuum-tech/hedera-pulse@workspace:packages/snap": +"@tuum-tech/hedera-wallet-snap@workspace:packages/snap": version: 0.0.0-use.local - resolution: "@tuum-tech/hedera-pulse@workspace:packages/snap" + resolution: "@tuum-tech/hedera-wallet-snap@workspace:packages/snap" dependencies: "@babel/core": ^7.21.0 "@babel/plugin-proposal-decorators": ^7.21.0