add getSNTAllowance to subdomain registry
This commit is contained in:
parent
4ca9dfb592
commit
d213d4cbad
|
@ -1,5 +1,6 @@
|
||||||
import web3 from "Embark/web3"
|
import web3 from "Embark/web3"
|
||||||
import ENSSubdomainRegistry from 'Embark/contracts/ENSSubdomainRegistry';
|
import ENSSubdomainRegistry from 'Embark/contracts/ENSSubdomainRegistry';
|
||||||
|
import TestToken from 'Embark/contracts/TestToken';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import Hidden from '@material-ui/core/Hidden';
|
import Hidden from '@material-ui/core/Hidden';
|
||||||
|
@ -7,11 +8,13 @@ import { Button, MobileSearch, MobileButton, Field } from '../../ui/components';
|
||||||
import { withFormik } from 'formik';
|
import { withFormik } from 'formik';
|
||||||
import { hash } from 'eth-ens-namehash';
|
import { hash } from 'eth-ens-namehash';
|
||||||
import { zeroAddress, zeroBytes32, formatPrice } from './utils';
|
import { zeroAddress, zeroBytes32, formatPrice } from './utils';
|
||||||
import { getStatusContactCode } from '../../reducers/accounts';
|
import { getStatusContactCode, getSNTAllowance } from '../../reducers/accounts';
|
||||||
import FieldGroup from '../standard/FieldGroup';
|
import FieldGroup from '../standard/FieldGroup';
|
||||||
import LinearProgress from '@material-ui/core/LinearProgress';
|
import LinearProgress from '@material-ui/core/LinearProgress';
|
||||||
import { generateXY } from '../../utils/ecdsa';
|
import { generateXY } from '../../utils/ecdsa';
|
||||||
|
|
||||||
|
console.log(TestToken)
|
||||||
|
|
||||||
const { soliditySha3, fromWei } = web3.utils;
|
const { soliditySha3, fromWei } = web3.utils;
|
||||||
|
|
||||||
const InnerForm = ({
|
const InnerForm = ({
|
||||||
|
@ -179,7 +182,8 @@ const RegisterSubDomain = withFormik({
|
||||||
})(InnerForm);
|
})(InnerForm);
|
||||||
|
|
||||||
const mapStateToProps = state => ({
|
const mapStateToProps = state => ({
|
||||||
statusContactCode: getStatusContactCode(state)
|
statusContactCode: getStatusContactCode(state),
|
||||||
|
SNTAllowance: getSNTAllowance(state),
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(mapStateToProps)(RegisterSubDomain);
|
export default connect(mapStateToProps)(RegisterSubDomain);
|
||||||
|
|
|
@ -73,6 +73,7 @@ export const getAccounts = state => state.accounts.accounts;
|
||||||
export const getDefaultAccount = state => state.accounts.defaultAccount;
|
export const getDefaultAccount = state => state.accounts.defaultAccount;
|
||||||
export const accountsIsLoading = state => state.accounts.loading;
|
export const accountsIsLoading = state => state.accounts.loading;
|
||||||
export const getStatusContactCode = state => state.accounts.statusContactCode;
|
export const getStatusContactCode = state => state.accounts.statusContactCode;
|
||||||
|
export const getSNTAllowance = state => state.accounts.SNTAllowance;
|
||||||
export const getCurrentAccount = createSelector(
|
export const getCurrentAccount = createSelector(
|
||||||
getDefaultAccount,
|
getDefaultAccount,
|
||||||
getAccounts,
|
getAccounts,
|
||||||
|
|
Loading…
Reference in New Issue