diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4f69fd5..15704d2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6164,6 +6164,14 @@ packages: pkg-types: 1.0.3 ufo: 1.3.2 + /mlly@1.6.1: + resolution: {integrity: sha512-vLgaHvaeunuOXHSmEbZ9izxPx3USsk8KCQ8iC+aTlp5sKRSoZvwhHh5L9VbKSaVC6sJDqbyohIS76E2VmHIPAA==} + dependencies: + acorn: 8.11.3 + pathe: 1.1.2 + pkg-types: 1.0.3 + ufo: 1.5.3 + /mobx-vue-lite@0.4.2(mobx@6.12.0)(vue@3.4.15): resolution: {integrity: sha512-Xx5blLWvbH8S+XZqBkQ+5RKUyFmtJZ1r//vQo/Npol3h0ByCbCaxRcf2Icnj2CGt8h/9jPdTLjJEkezoo/OHzw==} peerDependencies: @@ -6627,7 +6635,7 @@ packages: resolution: {integrity: sha512-nN7pYi0AQqJnoLPC9eHFQ8AcyaixBUOwvqc5TDnIKCMEE6I0y8P7OKA7fPexsXGCGxQDl/cmrLAp26LhcwxZ4A==} dependencies: jsonc-parser: 3.2.1 - mlly: 1.5.0 + mlly: 1.6.1 pathe: 1.1.2 /playwright-core@1.44.0-alpha-2024-04-05: @@ -7702,6 +7710,9 @@ packages: /ufo@1.3.2: resolution: {integrity: sha512-o+ORpgGwaYQXgqGDwd+hkS4PuZ3QnmqMMxRuajK/a38L6fTpcE5GPIfrf+L/KemFzfUpeUQc1rRS1iDBozvnFA==} + /ufo@1.5.3: + resolution: {integrity: sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==} + /unc-path-regex@0.1.2: resolution: {integrity: sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==} engines: {node: '>=0.10.0'} diff --git a/src/components/popups/ProposalDeposit.vue b/src/components/popups/ProposalDeposit.vue index c35c4d9..eaae4a9 100644 --- a/src/components/popups/ProposalDeposit.vue +++ b/src/components/popups/ProposalDeposit.vue @@ -14,6 +14,8 @@ import CommonButton from "@/components/ui/CommonButton.vue"; import { useWallet } from "@/composables/useWallet"; import { useClipboard } from "@vueuse/core"; import { useProposals } from "@/composables/useProposals"; +import { useTelemetry } from "@/composables/useTelemetry"; + import { formatAmount } from "@/utility"; interface Props { @@ -49,6 +51,7 @@ const toggleModal = (dir: boolean) => { resetDeposit(); }; +const { logEvent } = useTelemetry(); const { depositProposal } = useProposals(); const { address } = useWallet(); @@ -72,6 +75,10 @@ const signDeposit = async (isCLI = false) => { cliDepositInput.value = (isCLI ? depot : "") as string; displayState.value = isCLI ? "CLI" : "deposited"; + + logEvent("Sign Popup ProposalDeposit", { + signOption: isCLI ? "CLI" : "GUI", + }); }; const { copy, copied, isSupported: isClipboardSupported } = useClipboard(); @@ -82,7 +89,7 @@ const { copy, copied, isSupported: isClipboardSupported } = useClipboard();