Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

94-event-tracking-add-mixpanel-event-tracking #183

Merged
merged 20 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"@trustwallet/wallet-core": "^4.1.19",
"@tsparticles/engine": "^3.6.0",
"@tsparticles/react": "^3.0.0",
"@types/mixpanel-browser": "^2.50.2",
"@walletconnect/core": "^2.17.2",
"@walletconnect/jsonrpc-utils": "^1.0.8",
"@walletconnect/modal": "^2.7.0",
Expand Down Expand Up @@ -97,6 +98,7 @@
"lodash": "^4.17.21",
"loglevel": "^1.9.2",
"lru-cache": "^6.0.0",
"mixpanel-browser": "^2.56.0",
"nanoid": "^3.3.7",
"obs-store": "^4.0.3",
"process": "^0.11.10",
Expand Down
79 changes: 79 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions src/background/controller/provider/rpcFlow.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { ethErrors } from 'eth-rpc-errors';

import eventBus from '@/eventBus';
import { isValidEthereumAddress } from '@/ui/utils/address';
import {
keyringService,
notificationService,
Expand All @@ -7,10 +10,10 @@ import {
} from 'background/service';
import { PromiseFlow, underline2Camelcase } from 'background/utils';
import { EVENTS } from 'consts';
import providerController from './controller';
import eventBus from '@/eventBus';

import Wallet from '../wallet';
import { isValidEthereumAddress } from '@/ui/utils/address';

import providerController from './controller';

const isSignApproval = (type: string) => {
const SIGN_APPROVALS = ['SignText', 'SignTypedData', 'SignTx', 'EthConfirm'];
Expand Down
Loading