Browse Source

REF: allow hodlhodl on bip49; analytics events for hodlhodl

settings-bar
Overtorment 5 years ago
parent
commit
b87ac0abea
  1. 1
      analytics.js
  2. 4
      class/hd-segwit-p2sh-wallet.js
  3. 2
      screen/wallets/hodlHodl.js

1
analytics.js

@ -24,6 +24,7 @@ A.ENUM = {
CREATED_WALLET: 'CREATED_WALLET', CREATED_WALLET: 'CREATED_WALLET',
CREATED_LIGHTNING_WALLET: 'CREATED_LIGHTNING_WALLET', CREATED_LIGHTNING_WALLET: 'CREATED_LIGHTNING_WALLET',
APP_UNSUSPENDED: 'APP_UNSUSPENDED', APP_UNSUSPENDED: 'APP_UNSUSPENDED',
NAVIGATED_TO_WALLETS_HODLHODL: 'NAVIGATED_TO_WALLETS_HODLHODL',
}; };
module.exports = A; module.exports = A;

4
class/hd-segwit-p2sh-wallet.js

@ -154,4 +154,8 @@ export class HDSegwitP2SHWallet extends AbstractHDElectrumWallet {
}); });
return address; return address;
} }
allowHodlHodlTrading() {
return true;
}
} }

2
screen/wallets/hodlHodl.js

@ -20,6 +20,7 @@ import PropTypes from 'prop-types';
import { HodlHodlApi } from '../../class/hodl-hodl-api'; import { HodlHodlApi } from '../../class/hodl-hodl-api';
import Modal from 'react-native-modal'; import Modal from 'react-native-modal';
import { Icon } from 'react-native-elements'; import { Icon } from 'react-native-elements';
const A = require('../../analytics');
const CURRENCY_CODE_ANY = '_any'; const CURRENCY_CODE_ANY = '_any';
const METHOD_ANY = '_any'; const METHOD_ANY = '_any';
@ -263,6 +264,7 @@ export default class HodlHodl extends Component {
async componentDidMount() { async componentDidMount() {
console.log('wallets/hodlHodl - componentDidMount'); console.log('wallets/hodlHodl - componentDidMount');
A(A.ENUM.NAVIGATED_TO_WALLETS_HODLHODL);
try { try {
await this.fetchMyCountry(); await this.fetchMyCountry();

Loading…
Cancel
Save