Page MenuHomePhabricator

No OneTemporary

diff --git a/web/cashtab/src/components/Common/BalanceHeaderFiat.js b/web/cashtab/src/components/Common/BalanceHeaderFiat.js
index f993a11ae..cdfc5b220 100644
--- a/web/cashtab/src/components/Common/BalanceHeaderFiat.js
+++ b/web/cashtab/src/components/Common/BalanceHeaderFiat.js
@@ -1,28 +1,42 @@
import * as React from 'react';
+import styled from 'styled-components';
import PropTypes from 'prop-types';
import { BalanceHeaderFiatWrap } from '@components/Common/Atoms';
import { currency } from '@components/Common/Ticker.js';
-
+const FiatCurrencyToXEC = styled.p`
+ margin: 0 auto;
+ padding: 0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ color: ${props => props.theme.lightWhite};
+`;
const BalanceHeaderFiat = ({ balance, settings, fiatPrice }) => {
return (
<BalanceHeaderFiatWrap>
{settings
? `${currency.fiatCurrencies[settings.fiatCurrency].symbol}`
: '$'}
{parseFloat((balance * fiatPrice).toFixed(2)).toLocaleString()}{' '}
{settings
? `${currency.fiatCurrencies[
settings.fiatCurrency
].slug.toUpperCase()} `
: 'USD'}
+ {fiatPrice && (
+ <FiatCurrencyToXEC>
+ 1 {currency.ticker} ={' '}
+ {fiatPrice.toFixed(9).toLocaleString()}{' '}
+ {settings.fiatCurrency.toUpperCase()}
+ </FiatCurrencyToXEC>
+ )}
</BalanceHeaderFiatWrap>
);
};
BalanceHeaderFiat.propTypes = {
balance: PropTypes.number,
settings: PropTypes.oneOfType([PropTypes.object, PropTypes.bool]),
fiatPrice: PropTypes.number,
};
export default BalanceHeaderFiat;
diff --git a/web/cashtab/src/components/Home/__tests__/__snapshots__/Home.test.js.snap b/web/cashtab/src/components/Home/__tests__/__snapshots__/Home.test.js.snap
index f930fc356..134f03375 100644
--- a/web/cashtab/src/components/Home/__tests__/__snapshots__/Home.test.js.snap
+++ b/web/cashtab/src/components/Home/__tests__/__snapshots__/Home.test.js.snap
@@ -1,481 +1,481 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP @generated
exports[`Wallet with BCH balances 1`] = `
Array [
<div
className="sc-ksYbfQ EFpnD"
>
<h4
- className="sc-jqCOkK AdWOH"
+ className="sc-uJMKN cKiOJP"
>
MigrationTestAlpha
</h4>
<div
className="sc-frDJqD eedyCO"
>
0
XEC
</div>
<div
className="sc-hmzhuo iakXLr"
>
$
NaN
USD
</div>
</div>,
<div
className="sc-kgAjT fyrqRY"
>
<div
- className="sc-uJMKN dqGtqM"
+ className="sc-bbmXgH cDnIaX"
>
<button
- className="sc-bbmXgH dSfiPq"
+ className="sc-gGBfsJ nhSkV"
onClick={[Function]}
>
Transactions
</button>
<button
- className="sc-bbmXgH itYgsC"
+ className="sc-gGBfsJ cUGrfZ"
onClick={[Function]}
>
eTokens
</button>
</div>
<div
- className="sc-gGBfsJ hgvUuT"
+ className="sc-jnlKLf bEDump"
>
<div />
<span
aria-label="party emoji"
role="img"
>
πŸŽ‰
</span>
Congratulations on your new wallet!
<span
aria-label="party emoji"
role="img"
>
πŸŽ‰
</span>
<br />
Start using the wallet immediately to receive
XEC
payments, or load it up with
XEC
to send to others
</div>
<div
- className="sc-gGBfsJ ZHSVU"
+ className="sc-jnlKLf iofjAr"
>
<a
- className="sc-hEsumM hFCfQE"
+ className="sc-ktHwxA bInOhz"
href="/tokens"
onClick={[Function]}
>
Create eToken
</a>
<p>
Tokens sent to your
eToken
address will appear here
</p>
</div>
</div>,
]
`;
exports[`Wallet with BCH balances and tokens 1`] = `
Array [
<div
className="sc-ksYbfQ EFpnD"
>
<h4
- className="sc-jqCOkK AdWOH"
+ className="sc-uJMKN cKiOJP"
>
MigrationTestAlpha
</h4>
<div
className="sc-frDJqD eedyCO"
>
0
XEC
</div>
<div
className="sc-hmzhuo iakXLr"
>
$
NaN
USD
</div>
</div>,
<div
className="sc-kgAjT fyrqRY"
>
<div
- className="sc-uJMKN dqGtqM"
+ className="sc-bbmXgH cDnIaX"
>
<button
- className="sc-bbmXgH dSfiPq"
+ className="sc-gGBfsJ nhSkV"
onClick={[Function]}
>
Transactions
</button>
<button
- className="sc-bbmXgH itYgsC"
+ className="sc-gGBfsJ cUGrfZ"
onClick={[Function]}
>
eTokens
</button>
</div>
<div
- className="sc-gGBfsJ hgvUuT"
+ className="sc-jnlKLf bEDump"
>
<div />
<span
aria-label="party emoji"
role="img"
>
πŸŽ‰
</span>
Congratulations on your new wallet!
<span
aria-label="party emoji"
role="img"
>
πŸŽ‰
</span>
<br />
Start using the wallet immediately to receive
XEC
payments, or load it up with
XEC
to send to others
</div>
<div
- className="sc-gGBfsJ ZHSVU"
+ className="sc-jnlKLf iofjAr"
>
<a
- className="sc-hEsumM hFCfQE"
+ className="sc-ktHwxA bInOhz"
href="/tokens"
onClick={[Function]}
>
Create eToken
</a>
<p>
Tokens sent to your
eToken
address will appear here
</p>
</div>
</div>,
]
`;
exports[`Wallet with BCH balances and tokens and state field 1`] = `
Array [
<div
className="sc-ksYbfQ EFpnD"
>
<h4
- className="sc-jqCOkK AdWOH"
+ className="sc-uJMKN cKiOJP"
>
MigrationTestAlpha
</h4>
<div
className="sc-frDJqD eedyCO"
>
0.06
XEC
</div>
<div
className="sc-hmzhuo iakXLr"
>
$
NaN
USD
</div>
</div>,
<div
className="sc-kgAjT fyrqRY"
>
<div
- className="sc-uJMKN dqGtqM"
+ className="sc-bbmXgH cDnIaX"
>
<button
- className="sc-bbmXgH dSfiPq"
+ className="sc-gGBfsJ nhSkV"
onClick={[Function]}
>
Transactions
</button>
<button
- className="sc-bbmXgH itYgsC"
+ className="sc-gGBfsJ cUGrfZ"
onClick={[Function]}
>
eTokens
</button>
</div>
<div
- className="sc-gGBfsJ hgvUuT"
+ className="sc-jnlKLf bEDump"
>
<div />
<span
aria-label="party emoji"
role="img"
>
πŸŽ‰
</span>
Congratulations on your new wallet!
<span
aria-label="party emoji"
role="img"
>
πŸŽ‰
</span>
<br />
Start using the wallet immediately to receive
XEC
payments, or load it up with
XEC
to send to others
</div>
<div
- className="sc-gGBfsJ ZHSVU"
+ className="sc-jnlKLf iofjAr"
>
<a
- className="sc-hEsumM hFCfQE"
+ className="sc-ktHwxA bInOhz"
href="/tokens"
onClick={[Function]}
>
Create eToken
</a>
<div>
<a
href="/send-token/bd1acc4c986de57af8d6d2a64aecad8c30ee80f37ae9d066d758923732ddc9ba"
onClick={[Function]}
>
<div
className="sc-ckVGcZ fPvBhX"
>
<div
className="sc-dxgOiQ CHiNn"
>
<div
className="sc-kpOJdX kKjisQ"
/>
<h4>
TBS
</h4>
</div>
<h4>
6.001
</h4>
</div>
</a>
</div>
</div>
</div>,
]
`;
exports[`Wallet without BCH balance 1`] = `
Array [
<div
className="sc-ksYbfQ EFpnD"
>
<h4
- className="sc-jqCOkK AdWOH"
+ className="sc-uJMKN cKiOJP"
>
MigrationTestAlpha
</h4>
<div
className="sc-frDJqD eedyCO"
>
0
XEC
</div>
<div
className="sc-hmzhuo iakXLr"
>
$
NaN
USD
</div>
</div>,
<div
className="sc-kgAjT fyrqRY"
>
<div
- className="sc-uJMKN dqGtqM"
+ className="sc-bbmXgH cDnIaX"
>
<button
- className="sc-bbmXgH dSfiPq"
+ className="sc-gGBfsJ nhSkV"
onClick={[Function]}
>
Transactions
</button>
<button
- className="sc-bbmXgH itYgsC"
+ className="sc-gGBfsJ cUGrfZ"
onClick={[Function]}
>
eTokens
</button>
</div>
<div
- className="sc-gGBfsJ hgvUuT"
+ className="sc-jnlKLf bEDump"
>
<div />
<span
aria-label="party emoji"
role="img"
>
πŸŽ‰
</span>
Congratulations on your new wallet!
<span
aria-label="party emoji"
role="img"
>
πŸŽ‰
</span>
<br />
Start using the wallet immediately to receive
XEC
payments, or load it up with
XEC
to send to others
</div>
<div
- className="sc-gGBfsJ ZHSVU"
+ className="sc-jnlKLf iofjAr"
>
<a
- className="sc-hEsumM hFCfQE"
+ className="sc-ktHwxA bInOhz"
href="/tokens"
onClick={[Function]}
>
Create eToken
</a>
<p>
Tokens sent to your
eToken
address will appear here
</p>
</div>
</div>,
]
`;
exports[`Without wallet defined 1`] = `
<div
className="sc-chPdSV cOYtDU"
>
<h2>
Welcome to Cashtab!
</h2>
<p
className="sc-kgoBCf iXiIML"
>
Cashtab is an
<a
className="sc-kGXeez dlhNKT"
href="https://github.com/bitcoin-abc/bitcoin-abc"
rel="noreferrer"
target="_blank"
>
open source,
</a>
non-custodial web wallet for
eCash
.
<br />
<br />
Want to learn more?
<a
className="sc-kGXeez dlhNKT"
href="https://docs.cashtabapp.com/docs/"
rel="noreferrer"
target="_blank"
>
Check out the Cashtab documentation.
</a>
</p>
<button
className="sc-jzJRlG lltaza"
onClick={[Function]}
>
<span
aria-label="plus-square"
className="anticon anticon-plus-square"
role="img"
>
<svg
aria-hidden="true"
data-icon="plus-square"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"
/>
<path
d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"
/>
</svg>
</span>
New Wallet
</button>
<button
className="sc-cSHVUG kUJUGX"
onClick={[Function]}
>
<span
aria-label="import"
className="anticon anticon-import"
role="img"
>
<svg
aria-hidden="true"
data-icon="import"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M888.3 757.4h-53.8c-4.2 0-7.7 3.5-7.7 7.7v61.8H197.1V197.1h629.8v61.8c0 4.2 3.5 7.7 7.7 7.7h53.8c4.2 0 7.7-3.4 7.7-7.7V158.7c0-17-13.7-30.7-30.7-30.7H158.7c-17 0-30.7 13.7-30.7 30.7v706.6c0 17 13.7 30.7 30.7 30.7h706.6c17 0 30.7-13.7 30.7-30.7V765.1c0-4.3-3.5-7.7-7.7-7.7zM902 476H588v-76c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-76h314c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"
/>
</svg>
</span>
Import Wallet
</button>
</div>
`;
diff --git a/web/cashtab/src/components/Send/__tests__/__snapshots__/Send.test.js.snap b/web/cashtab/src/components/Send/__tests__/__snapshots__/Send.test.js.snap
index e7faa995c..2f529284e 100644
--- a/web/cashtab/src/components/Send/__tests__/__snapshots__/Send.test.js.snap
+++ b/web/cashtab/src/components/Send/__tests__/__snapshots__/Send.test.js.snap
@@ -1,2354 +1,2354 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP @generated
exports[`Wallet with BCH balances 1`] = `
Array [
<div
className="sc-eNQAEJ bPMOWW"
>
<h4
- className="sc-cvbbAY dhgXz"
+ className="sc-jWBwVP fTCVMO"
>
MigrationTestAlpha
</h4>
<div
className="sc-kkGfuU ihmkkm"
>
You currently have 0
XEC
<br />
Deposit some funds to use this feature
</div>
</div>,
<div
className="sc-ckVGcZ jBULtA"
>
<div
className="ant-row"
style={Object {}}
type="flex"
>
<div
className="ant-col ant-col-24"
style={Object {}}
>
<form
className="ant-form ant-form-horizontal"
onReset={[Function]}
onSubmit={[Function]}
style={
Object {
"marginTop": "40px",
"width": "auto",
}
}
>
<div
- className="sc-jAaTju fBYVrj"
+ className="sc-jDwBTQ jNUfeO"
>
<label
className="sc-jKJlTe biUgjm"
>
Send to
</label>
<div
className="sc-VigVT bZouWf"
>
<div
className="ant-row ant-form-item"
style={
Object {
"marginBottom": "0px",
}
}
>
<div
className="ant-col ant-form-item-control"
style={Object {}}
>
<div
className="ant-form-item-control-input"
>
<div
className="ant-form-item-control-input-content"
>
<span
className="ant-input-group-wrapper"
>
<span
className="ant-input-wrapper ant-input-group"
>
<span
className="ant-input-affix-wrapper"
onMouseUp={[Function]}
style={null}
>
<span
className="ant-input-prefix"
>
<span
aria-label="wallet"
className="anticon anticon-wallet sc-htpNat lgbLiL"
role="img"
>
<svg
aria-hidden="true"
data-icon="wallet"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 464H528V448h312v128zm0 264H184V184h656v200H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200zM580 512a40 40 0 1080 0 40 40 0 10-80 0z"
/>
</svg>
</span>
</span>
<input
autoComplete="off"
className="ant-input"
name="address"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
placeholder="XEC Address"
required={true}
style={null}
type="text"
value=""
/>
</span>
<span
className="ant-input-group-addon"
>
<span
className="sc-iwsKbI cVxKUE"
onClick={[Function]}
>
<span
aria-label="qrcode"
className="anticon anticon-qrcode sc-bxivhb dlJbAr"
role="img"
>
<svg
aria-hidden="true"
data-icon="qrcode"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M468 128H160c-17.7 0-32 14.3-32 32v308c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8zm-56 284H192V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210H136c-4.4 0-8 3.6-8 8v308c0 17.7 14.3 32 32 32h308c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zm-56 284H192V612h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm590-630H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V160c0-17.7-14.3-32-32-32zm-32 284H612V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210h-48c-4.4 0-8 3.6-8 8v134h-78V556c0-4.4-3.6-8-8-8H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h78v102c0 4.4 3.6 8 8 8h190c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zM746 832h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm142 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"
/>
</svg>
</span>
</span>
</span>
</span>
</span>
</div>
</div>
<div
className="ant-form-item-explain"
>
<div
role="alert"
>
</div>
</div>
</div>
</div>
</div>
<label
className="sc-jKJlTe biUgjm"
>
Amount
</label>
<div
className="sc-VigVT bZouWf"
>
<div
className="ant-row ant-form-item"
style={Object {}}
>
<div
className="ant-col ant-form-item-control"
style={Object {}}
>
<div
className="ant-form-item-control-input"
>
<div
className="ant-form-item-control-input-content"
>
<span
className="ant-input-group ant-input-group-compact"
>
<span
className="ant-input-affix-wrapper"
onMouseUp={[Function]}
style={
Object {
"textAlign": "left",
"width": "60%",
}
}
>
<span
className="ant-input-prefix"
>
<img
alt=""
height={16}
src="logo_primary.png"
width={16}
/>
</span>
<input
className="ant-input"
dollar={0}
name="value"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
placeholder="Amount"
required={true}
step={0.01}
style={null}
type="number"
value=""
/>
</span>
<div
className="ant-select select-after ant-select-single ant-select-show-arrow"
onBlur={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
onKeyUp={[Function]}
onMouseDown={[Function]}
style={
Object {
"width": "30%",
}
}
>
<div
className="ant-select-selector"
onClick={[Function]}
onMouseDown={[Function]}
>
<span
className="ant-select-selection-search"
>
<input
aria-activedescendant="rc_select_TEST_OR_SSR_list_0"
aria-autocomplete="list"
aria-controls="rc_select_TEST_OR_SSR_list"
aria-haspopup="listbox"
aria-owns="rc_select_TEST_OR_SSR_list"
autoComplete="off"
className="ant-select-selection-search-input"
disabled={false}
id="rc_select_TEST_OR_SSR"
onChange={[Function]}
onCompositionEnd={[Function]}
onCompositionStart={[Function]}
onKeyDown={[Function]}
onMouseDown={[Function]}
onPaste={[Function]}
readOnly={true}
role="combobox"
style={
Object {
"opacity": 0,
}
}
type="search"
unselectable="on"
value=""
/>
</span>
<span
className="ant-select-selection-item"
title="XEC"
>
XEC
</span>
</div>
<span
aria-hidden={true}
className="ant-select-arrow"
onMouseDown={[Function]}
style={
Object {
"WebkitUserSelect": "none",
"userSelect": "none",
}
}
unselectable="on"
>
<span
aria-label="down"
className="anticon anticon-down ant-select-suffix"
role="img"
>
<svg
aria-hidden="true"
data-icon="down"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
/>
</svg>
</span>
</span>
</div>
<span
className="sc-fjdhpX iLNQZG"
disabled={false}
onClick={[Function]}
style={
Object {
"height": "55px",
"lineHeight": "55px",
"width": "10%",
}
}
>
max
</span>
</span>
</div>
</div>
<div
className="ant-form-item-explain"
>
<div
role="alert"
>
</div>
</div>
</div>
</div>
</div>
</div>
<div
- className="sc-cMljjf hGrEZg"
+ className="sc-jAaTju kplAPX"
>
<h3
- className="sc-jDwBTQ iwAZUY"
+ className="sc-gPEVay kbHIAs"
>
0
XEC
</h3>
<div
className="sc-eHgmQL bSQRhv"
>
=
$ NaN USD
</div>
</div>
<div
style={
Object {
"paddingTop": "12px",
}
}
>
<button
className="sc-kGXeez jhWitK"
>
Send
</button>
</div>
<div>
<div
className="ant-collapse ant-collapse-icon-position-left sc-kAzzGY itTQAx"
role={null}
style={
Object {
"marginBottom": "12px",
}
}
>
<div
className="ant-collapse-item"
>
<div
aria-expanded={false}
className="ant-collapse-header"
onClick={[Function]}
onKeyPress={[Function]}
role="button"
tabIndex={0}
>
<span
aria-label="right"
className="anticon anticon-right ant-collapse-arrow"
role="img"
>
<svg
aria-hidden="true"
data-icon="right"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
/>
</svg>
</span>
Advanced
</div>
</div>
</div>
</div>
</form>
</div>
</div>
<div
className="ant-collapse ant-collapse-icon-position-left sc-kAzzGY itTQAx"
role={null}
style={
Object {
"marginBottom": "24px",
}
}
>
<div
className="ant-collapse-item"
>
<div
aria-expanded={false}
className="ant-collapse-header"
onClick={[Function]}
onKeyPress={[Function]}
role="button"
tabIndex={0}
>
<span
aria-label="right"
className="anticon anticon-right ant-collapse-arrow"
role="img"
>
<svg
aria-hidden="true"
data-icon="right"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
/>
</svg>
</span>
Sign Message
</div>
</div>
</div>
</div>,
]
`;
exports[`Wallet with BCH balances and tokens 1`] = `
Array [
<div
className="sc-eNQAEJ bPMOWW"
>
<h4
- className="sc-cvbbAY dhgXz"
+ className="sc-jWBwVP fTCVMO"
>
MigrationTestAlpha
</h4>
<div
className="sc-kkGfuU ihmkkm"
>
You currently have 0
XEC
<br />
Deposit some funds to use this feature
</div>
</div>,
<div
className="sc-ckVGcZ jBULtA"
>
<div
className="ant-row"
style={Object {}}
type="flex"
>
<div
className="ant-col ant-col-24"
style={Object {}}
>
<form
className="ant-form ant-form-horizontal"
onReset={[Function]}
onSubmit={[Function]}
style={
Object {
"marginTop": "40px",
"width": "auto",
}
}
>
<div
- className="sc-jAaTju fBYVrj"
+ className="sc-jDwBTQ jNUfeO"
>
<label
className="sc-jKJlTe biUgjm"
>
Send to
</label>
<div
className="sc-VigVT bZouWf"
>
<div
className="ant-row ant-form-item"
style={
Object {
"marginBottom": "0px",
}
}
>
<div
className="ant-col ant-form-item-control"
style={Object {}}
>
<div
className="ant-form-item-control-input"
>
<div
className="ant-form-item-control-input-content"
>
<span
className="ant-input-group-wrapper"
>
<span
className="ant-input-wrapper ant-input-group"
>
<span
className="ant-input-affix-wrapper"
onMouseUp={[Function]}
style={null}
>
<span
className="ant-input-prefix"
>
<span
aria-label="wallet"
className="anticon anticon-wallet sc-htpNat lgbLiL"
role="img"
>
<svg
aria-hidden="true"
data-icon="wallet"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 464H528V448h312v128zm0 264H184V184h656v200H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200zM580 512a40 40 0 1080 0 40 40 0 10-80 0z"
/>
</svg>
</span>
</span>
<input
autoComplete="off"
className="ant-input"
name="address"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
placeholder="XEC Address"
required={true}
style={null}
type="text"
value=""
/>
</span>
<span
className="ant-input-group-addon"
>
<span
className="sc-iwsKbI cVxKUE"
onClick={[Function]}
>
<span
aria-label="qrcode"
className="anticon anticon-qrcode sc-bxivhb dlJbAr"
role="img"
>
<svg
aria-hidden="true"
data-icon="qrcode"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M468 128H160c-17.7 0-32 14.3-32 32v308c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8zm-56 284H192V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210H136c-4.4 0-8 3.6-8 8v308c0 17.7 14.3 32 32 32h308c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zm-56 284H192V612h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm590-630H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V160c0-17.7-14.3-32-32-32zm-32 284H612V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210h-48c-4.4 0-8 3.6-8 8v134h-78V556c0-4.4-3.6-8-8-8H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h78v102c0 4.4 3.6 8 8 8h190c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zM746 832h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm142 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"
/>
</svg>
</span>
</span>
</span>
</span>
</span>
</div>
</div>
<div
className="ant-form-item-explain"
>
<div
role="alert"
>
</div>
</div>
</div>
</div>
</div>
<label
className="sc-jKJlTe biUgjm"
>
Amount
</label>
<div
className="sc-VigVT bZouWf"
>
<div
className="ant-row ant-form-item"
style={Object {}}
>
<div
className="ant-col ant-form-item-control"
style={Object {}}
>
<div
className="ant-form-item-control-input"
>
<div
className="ant-form-item-control-input-content"
>
<span
className="ant-input-group ant-input-group-compact"
>
<span
className="ant-input-affix-wrapper"
onMouseUp={[Function]}
style={
Object {
"textAlign": "left",
"width": "60%",
}
}
>
<span
className="ant-input-prefix"
>
<img
alt=""
height={16}
src="logo_primary.png"
width={16}
/>
</span>
<input
className="ant-input"
dollar={0}
name="value"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
placeholder="Amount"
required={true}
step={0.01}
style={null}
type="number"
value=""
/>
</span>
<div
className="ant-select select-after ant-select-single ant-select-show-arrow"
onBlur={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
onKeyUp={[Function]}
onMouseDown={[Function]}
style={
Object {
"width": "30%",
}
}
>
<div
className="ant-select-selector"
onClick={[Function]}
onMouseDown={[Function]}
>
<span
className="ant-select-selection-search"
>
<input
aria-activedescendant="rc_select_TEST_OR_SSR_list_0"
aria-autocomplete="list"
aria-controls="rc_select_TEST_OR_SSR_list"
aria-haspopup="listbox"
aria-owns="rc_select_TEST_OR_SSR_list"
autoComplete="off"
className="ant-select-selection-search-input"
disabled={false}
id="rc_select_TEST_OR_SSR"
onChange={[Function]}
onCompositionEnd={[Function]}
onCompositionStart={[Function]}
onKeyDown={[Function]}
onMouseDown={[Function]}
onPaste={[Function]}
readOnly={true}
role="combobox"
style={
Object {
"opacity": 0,
}
}
type="search"
unselectable="on"
value=""
/>
</span>
<span
className="ant-select-selection-item"
title="XEC"
>
XEC
</span>
</div>
<span
aria-hidden={true}
className="ant-select-arrow"
onMouseDown={[Function]}
style={
Object {
"WebkitUserSelect": "none",
"userSelect": "none",
}
}
unselectable="on"
>
<span
aria-label="down"
className="anticon anticon-down ant-select-suffix"
role="img"
>
<svg
aria-hidden="true"
data-icon="down"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
/>
</svg>
</span>
</span>
</div>
<span
className="sc-fjdhpX iLNQZG"
disabled={false}
onClick={[Function]}
style={
Object {
"height": "55px",
"lineHeight": "55px",
"width": "10%",
}
}
>
max
</span>
</span>
</div>
</div>
<div
className="ant-form-item-explain"
>
<div
role="alert"
>
</div>
</div>
</div>
</div>
</div>
</div>
<div
- className="sc-cMljjf hGrEZg"
+ className="sc-jAaTju kplAPX"
>
<h3
- className="sc-jDwBTQ iwAZUY"
+ className="sc-gPEVay kbHIAs"
>
0
XEC
</h3>
<div
className="sc-eHgmQL bSQRhv"
>
=
$ NaN USD
</div>
</div>
<div
style={
Object {
"paddingTop": "12px",
}
}
>
<button
className="sc-kGXeez jhWitK"
>
Send
</button>
</div>
<div>
<div
className="ant-collapse ant-collapse-icon-position-left sc-kAzzGY itTQAx"
role={null}
style={
Object {
"marginBottom": "12px",
}
}
>
<div
className="ant-collapse-item"
>
<div
aria-expanded={false}
className="ant-collapse-header"
onClick={[Function]}
onKeyPress={[Function]}
role="button"
tabIndex={0}
>
<span
aria-label="right"
className="anticon anticon-right ant-collapse-arrow"
role="img"
>
<svg
aria-hidden="true"
data-icon="right"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
/>
</svg>
</span>
Advanced
</div>
</div>
</div>
</div>
</form>
</div>
</div>
<div
className="ant-collapse ant-collapse-icon-position-left sc-kAzzGY itTQAx"
role={null}
style={
Object {
"marginBottom": "24px",
}
}
>
<div
className="ant-collapse-item"
>
<div
aria-expanded={false}
className="ant-collapse-header"
onClick={[Function]}
onKeyPress={[Function]}
role="button"
tabIndex={0}
>
<span
aria-label="right"
className="anticon anticon-right ant-collapse-arrow"
role="img"
>
<svg
aria-hidden="true"
data-icon="right"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
/>
</svg>
</span>
Sign Message
</div>
</div>
</div>
</div>,
]
`;
exports[`Wallet with BCH balances and tokens and state field 1`] = `
Array [
<div
className="sc-eNQAEJ bPMOWW"
>
<h4
- className="sc-cvbbAY dhgXz"
+ className="sc-jWBwVP fTCVMO"
>
MigrationTestAlpha
</h4>
<div
className="sc-kEYyzF eqAzMl"
>
0.06
XEC
</div>
<div
className="sc-hMqMXs lndLVA"
>
$
NaN
USD
</div>
</div>,
<div
className="sc-ckVGcZ jBULtA"
>
<div
className="ant-row"
style={Object {}}
type="flex"
>
<div
className="ant-col ant-col-24"
style={Object {}}
>
<form
className="ant-form ant-form-horizontal"
onReset={[Function]}
onSubmit={[Function]}
style={
Object {
"marginTop": "40px",
"width": "auto",
}
}
>
<div
- className="sc-jAaTju fBYVrj"
+ className="sc-jDwBTQ jNUfeO"
>
<label
className="sc-jKJlTe biUgjm"
>
Send to
</label>
<div
className="sc-VigVT bZouWf"
>
<div
className="ant-row ant-form-item"
style={
Object {
"marginBottom": "0px",
}
}
>
<div
className="ant-col ant-form-item-control"
style={Object {}}
>
<div
className="ant-form-item-control-input"
>
<div
className="ant-form-item-control-input-content"
>
<span
className="ant-input-group-wrapper"
>
<span
className="ant-input-wrapper ant-input-group"
>
<span
className="ant-input-affix-wrapper"
onMouseUp={[Function]}
style={null}
>
<span
className="ant-input-prefix"
>
<span
aria-label="wallet"
className="anticon anticon-wallet sc-htpNat lgbLiL"
role="img"
>
<svg
aria-hidden="true"
data-icon="wallet"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 464H528V448h312v128zm0 264H184V184h656v200H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200zM580 512a40 40 0 1080 0 40 40 0 10-80 0z"
/>
</svg>
</span>
</span>
<input
autoComplete="off"
className="ant-input"
name="address"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
placeholder="XEC Address"
required={true}
style={null}
type="text"
value=""
/>
</span>
<span
className="ant-input-group-addon"
>
<span
className="sc-iwsKbI cVxKUE"
onClick={[Function]}
>
<span
aria-label="qrcode"
className="anticon anticon-qrcode sc-bxivhb dlJbAr"
role="img"
>
<svg
aria-hidden="true"
data-icon="qrcode"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M468 128H160c-17.7 0-32 14.3-32 32v308c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8zm-56 284H192V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210H136c-4.4 0-8 3.6-8 8v308c0 17.7 14.3 32 32 32h308c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zm-56 284H192V612h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm590-630H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V160c0-17.7-14.3-32-32-32zm-32 284H612V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210h-48c-4.4 0-8 3.6-8 8v134h-78V556c0-4.4-3.6-8-8-8H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h78v102c0 4.4 3.6 8 8 8h190c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zM746 832h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm142 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"
/>
</svg>
</span>
</span>
</span>
</span>
</span>
</div>
</div>
<div
className="ant-form-item-explain"
>
<div
role="alert"
>
</div>
</div>
</div>
</div>
</div>
<label
className="sc-jKJlTe biUgjm"
>
Amount
</label>
<div
className="sc-VigVT bZouWf"
>
<div
className="ant-row ant-form-item"
style={Object {}}
>
<div
className="ant-col ant-form-item-control"
style={Object {}}
>
<div
className="ant-form-item-control-input"
>
<div
className="ant-form-item-control-input-content"
>
<span
className="ant-input-group ant-input-group-compact"
>
<span
className="ant-input-affix-wrapper"
onMouseUp={[Function]}
style={
Object {
"textAlign": "left",
"width": "60%",
}
}
>
<span
className="ant-input-prefix"
>
<img
alt=""
height={16}
src="logo_primary.png"
width={16}
/>
</span>
<input
className="ant-input"
dollar={0}
name="value"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
placeholder="Amount"
required={true}
step={0.01}
style={null}
type="number"
value=""
/>
</span>
<div
className="ant-select select-after ant-select-single ant-select-show-arrow"
onBlur={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
onKeyUp={[Function]}
onMouseDown={[Function]}
style={
Object {
"width": "30%",
}
}
>
<div
className="ant-select-selector"
onClick={[Function]}
onMouseDown={[Function]}
>
<span
className="ant-select-selection-search"
>
<input
aria-activedescendant="rc_select_TEST_OR_SSR_list_0"
aria-autocomplete="list"
aria-controls="rc_select_TEST_OR_SSR_list"
aria-haspopup="listbox"
aria-owns="rc_select_TEST_OR_SSR_list"
autoComplete="off"
className="ant-select-selection-search-input"
disabled={false}
id="rc_select_TEST_OR_SSR"
onChange={[Function]}
onCompositionEnd={[Function]}
onCompositionStart={[Function]}
onKeyDown={[Function]}
onMouseDown={[Function]}
onPaste={[Function]}
readOnly={true}
role="combobox"
style={
Object {
"opacity": 0,
}
}
type="search"
unselectable="on"
value=""
/>
</span>
<span
className="ant-select-selection-item"
title="XEC"
>
XEC
</span>
</div>
<span
aria-hidden={true}
className="ant-select-arrow"
onMouseDown={[Function]}
style={
Object {
"WebkitUserSelect": "none",
"userSelect": "none",
}
}
unselectable="on"
>
<span
aria-label="down"
className="anticon anticon-down ant-select-suffix"
role="img"
>
<svg
aria-hidden="true"
data-icon="down"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
/>
</svg>
</span>
</span>
</div>
<span
className="sc-fjdhpX iLNQZG"
disabled={false}
onClick={[Function]}
style={
Object {
"height": "55px",
"lineHeight": "55px",
"width": "10%",
}
}
>
max
</span>
</span>
</div>
</div>
<div
className="ant-form-item-explain"
>
<div
role="alert"
>
</div>
</div>
</div>
</div>
</div>
</div>
<div
- className="sc-cMljjf hGrEZg"
+ className="sc-jAaTju kplAPX"
>
<h3
- className="sc-jDwBTQ iwAZUY"
+ className="sc-gPEVay kbHIAs"
>
0
XEC
</h3>
<div
className="sc-eHgmQL bSQRhv"
>
=
$ NaN USD
</div>
</div>
<div
style={
Object {
"paddingTop": "12px",
}
}
>
<button
className="sc-kgoBCf dKKqLy"
onClick={[Function]}
>
Send
</button>
</div>
<div>
<div
className="ant-collapse ant-collapse-icon-position-left sc-kAzzGY itTQAx"
role={null}
style={
Object {
"marginBottom": "12px",
}
}
>
<div
className="ant-collapse-item"
>
<div
aria-expanded={false}
className="ant-collapse-header"
onClick={[Function]}
onKeyPress={[Function]}
role="button"
tabIndex={0}
>
<span
aria-label="right"
className="anticon anticon-right ant-collapse-arrow"
role="img"
>
<svg
aria-hidden="true"
data-icon="right"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
/>
</svg>
</span>
Advanced
</div>
</div>
</div>
</div>
</form>
</div>
</div>
<div
className="ant-collapse ant-collapse-icon-position-left sc-kAzzGY itTQAx"
role={null}
style={
Object {
"marginBottom": "24px",
}
}
>
<div
className="ant-collapse-item"
>
<div
aria-expanded={false}
className="ant-collapse-header"
onClick={[Function]}
onKeyPress={[Function]}
role="button"
tabIndex={0}
>
<span
aria-label="right"
className="anticon anticon-right ant-collapse-arrow"
role="img"
>
<svg
aria-hidden="true"
data-icon="right"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
/>
</svg>
</span>
Sign Message
</div>
</div>
</div>
</div>,
]
`;
exports[`Wallet without BCH balance 1`] = `
Array [
<div
className="sc-eNQAEJ bPMOWW"
>
<h4
- className="sc-cvbbAY dhgXz"
+ className="sc-jWBwVP fTCVMO"
>
MigrationTestAlpha
</h4>
<div
className="sc-kkGfuU ihmkkm"
>
You currently have 0
XEC
<br />
Deposit some funds to use this feature
</div>
</div>,
<div
className="sc-ckVGcZ jBULtA"
>
<div
className="ant-row"
style={Object {}}
type="flex"
>
<div
className="ant-col ant-col-24"
style={Object {}}
>
<form
className="ant-form ant-form-horizontal"
onReset={[Function]}
onSubmit={[Function]}
style={
Object {
"marginTop": "40px",
"width": "auto",
}
}
>
<div
- className="sc-jAaTju fBYVrj"
+ className="sc-jDwBTQ jNUfeO"
>
<label
className="sc-jKJlTe biUgjm"
>
Send to
</label>
<div
className="sc-VigVT bZouWf"
>
<div
className="ant-row ant-form-item"
style={
Object {
"marginBottom": "0px",
}
}
>
<div
className="ant-col ant-form-item-control"
style={Object {}}
>
<div
className="ant-form-item-control-input"
>
<div
className="ant-form-item-control-input-content"
>
<span
className="ant-input-group-wrapper"
>
<span
className="ant-input-wrapper ant-input-group"
>
<span
className="ant-input-affix-wrapper"
onMouseUp={[Function]}
style={null}
>
<span
className="ant-input-prefix"
>
<span
aria-label="wallet"
className="anticon anticon-wallet sc-htpNat lgbLiL"
role="img"
>
<svg
aria-hidden="true"
data-icon="wallet"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 464H528V448h312v128zm0 264H184V184h656v200H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200zM580 512a40 40 0 1080 0 40 40 0 10-80 0z"
/>
</svg>
</span>
</span>
<input
autoComplete="off"
className="ant-input"
name="address"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
placeholder="XEC Address"
required={true}
style={null}
type="text"
value=""
/>
</span>
<span
className="ant-input-group-addon"
>
<span
className="sc-iwsKbI cVxKUE"
onClick={[Function]}
>
<span
aria-label="qrcode"
className="anticon anticon-qrcode sc-bxivhb dlJbAr"
role="img"
>
<svg
aria-hidden="true"
data-icon="qrcode"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M468 128H160c-17.7 0-32 14.3-32 32v308c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8zm-56 284H192V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210H136c-4.4 0-8 3.6-8 8v308c0 17.7 14.3 32 32 32h308c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zm-56 284H192V612h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm590-630H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V160c0-17.7-14.3-32-32-32zm-32 284H612V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210h-48c-4.4 0-8 3.6-8 8v134h-78V556c0-4.4-3.6-8-8-8H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h78v102c0 4.4 3.6 8 8 8h190c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zM746 832h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm142 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"
/>
</svg>
</span>
</span>
</span>
</span>
</span>
</div>
</div>
<div
className="ant-form-item-explain"
>
<div
role="alert"
>
</div>
</div>
</div>
</div>
</div>
<label
className="sc-jKJlTe biUgjm"
>
Amount
</label>
<div
className="sc-VigVT bZouWf"
>
<div
className="ant-row ant-form-item"
style={Object {}}
>
<div
className="ant-col ant-form-item-control"
style={Object {}}
>
<div
className="ant-form-item-control-input"
>
<div
className="ant-form-item-control-input-content"
>
<span
className="ant-input-group ant-input-group-compact"
>
<span
className="ant-input-affix-wrapper"
onMouseUp={[Function]}
style={
Object {
"textAlign": "left",
"width": "60%",
}
}
>
<span
className="ant-input-prefix"
>
<img
alt=""
height={16}
src="logo_primary.png"
width={16}
/>
</span>
<input
className="ant-input"
dollar={0}
name="value"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
placeholder="Amount"
required={true}
step={0.01}
style={null}
type="number"
value=""
/>
</span>
<div
className="ant-select select-after ant-select-single ant-select-show-arrow"
onBlur={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
onKeyUp={[Function]}
onMouseDown={[Function]}
style={
Object {
"width": "30%",
}
}
>
<div
className="ant-select-selector"
onClick={[Function]}
onMouseDown={[Function]}
>
<span
className="ant-select-selection-search"
>
<input
aria-activedescendant="rc_select_TEST_OR_SSR_list_0"
aria-autocomplete="list"
aria-controls="rc_select_TEST_OR_SSR_list"
aria-haspopup="listbox"
aria-owns="rc_select_TEST_OR_SSR_list"
autoComplete="off"
className="ant-select-selection-search-input"
disabled={false}
id="rc_select_TEST_OR_SSR"
onChange={[Function]}
onCompositionEnd={[Function]}
onCompositionStart={[Function]}
onKeyDown={[Function]}
onMouseDown={[Function]}
onPaste={[Function]}
readOnly={true}
role="combobox"
style={
Object {
"opacity": 0,
}
}
type="search"
unselectable="on"
value=""
/>
</span>
<span
className="ant-select-selection-item"
title="XEC"
>
XEC
</span>
</div>
<span
aria-hidden={true}
className="ant-select-arrow"
onMouseDown={[Function]}
style={
Object {
"WebkitUserSelect": "none",
"userSelect": "none",
}
}
unselectable="on"
>
<span
aria-label="down"
className="anticon anticon-down ant-select-suffix"
role="img"
>
<svg
aria-hidden="true"
data-icon="down"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
/>
</svg>
</span>
</span>
</div>
<span
className="sc-fjdhpX iLNQZG"
disabled={false}
onClick={[Function]}
style={
Object {
"height": "55px",
"lineHeight": "55px",
"width": "10%",
}
}
>
max
</span>
</span>
</div>
</div>
<div
className="ant-form-item-explain"
>
<div
role="alert"
>
</div>
</div>
</div>
</div>
</div>
</div>
<div
- className="sc-cMljjf hGrEZg"
+ className="sc-jAaTju kplAPX"
>
<h3
- className="sc-jDwBTQ iwAZUY"
+ className="sc-gPEVay kbHIAs"
>
0
XEC
</h3>
<div
className="sc-eHgmQL bSQRhv"
>
=
$ NaN USD
</div>
</div>
<div
style={
Object {
"paddingTop": "12px",
}
}
>
<button
className="sc-kGXeez jhWitK"
>
Send
</button>
</div>
<div>
<div
className="ant-collapse ant-collapse-icon-position-left sc-kAzzGY itTQAx"
role={null}
style={
Object {
"marginBottom": "12px",
}
}
>
<div
className="ant-collapse-item"
>
<div
aria-expanded={false}
className="ant-collapse-header"
onClick={[Function]}
onKeyPress={[Function]}
role="button"
tabIndex={0}
>
<span
aria-label="right"
className="anticon anticon-right ant-collapse-arrow"
role="img"
>
<svg
aria-hidden="true"
data-icon="right"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
/>
</svg>
</span>
Advanced
</div>
</div>
</div>
</div>
</form>
</div>
</div>
<div
className="ant-collapse ant-collapse-icon-position-left sc-kAzzGY itTQAx"
role={null}
style={
Object {
"marginBottom": "24px",
}
}
>
<div
className="ant-collapse-item"
>
<div
aria-expanded={false}
className="ant-collapse-header"
onClick={[Function]}
onKeyPress={[Function]}
role="button"
tabIndex={0}
>
<span
aria-label="right"
className="anticon anticon-right ant-collapse-arrow"
role="img"
>
<svg
aria-hidden="true"
data-icon="right"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
/>
</svg>
</span>
Sign Message
</div>
</div>
</div>
</div>,
]
`;
exports[`Without wallet defined 1`] = `
Array [
<div
className="sc-eNQAEJ bPMOWW"
>
<div
className="sc-kkGfuU ihmkkm"
>
You currently have 0
XEC
<br />
Deposit some funds to use this feature
</div>
</div>,
<div
className="sc-ckVGcZ jBULtA"
>
<div
className="ant-row"
style={Object {}}
type="flex"
>
<div
className="ant-col ant-col-24"
style={Object {}}
>
<form
className="ant-form ant-form-horizontal"
onReset={[Function]}
onSubmit={[Function]}
style={
Object {
"marginTop": "40px",
"width": "auto",
}
}
>
<div
- className="sc-jAaTju fBYVrj"
+ className="sc-jDwBTQ jNUfeO"
>
<label
className="sc-jKJlTe biUgjm"
>
Send to
</label>
<div
className="sc-VigVT bZouWf"
>
<div
className="ant-row ant-form-item"
style={
Object {
"marginBottom": "0px",
}
}
>
<div
className="ant-col ant-form-item-control"
style={Object {}}
>
<div
className="ant-form-item-control-input"
>
<div
className="ant-form-item-control-input-content"
>
<span
className="ant-input-group-wrapper"
>
<span
className="ant-input-wrapper ant-input-group"
>
<span
className="ant-input-affix-wrapper"
onMouseUp={[Function]}
style={null}
>
<span
className="ant-input-prefix"
>
<span
aria-label="wallet"
className="anticon anticon-wallet sc-htpNat lgbLiL"
role="img"
>
<svg
aria-hidden="true"
data-icon="wallet"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 464H528V448h312v128zm0 264H184V184h656v200H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200zM580 512a40 40 0 1080 0 40 40 0 10-80 0z"
/>
</svg>
</span>
</span>
<input
autoComplete="off"
className="ant-input"
name="address"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
placeholder="XEC Address"
required={true}
style={null}
type="text"
value=""
/>
</span>
<span
className="ant-input-group-addon"
>
<span
className="sc-iwsKbI cVxKUE"
onClick={[Function]}
>
<span
aria-label="qrcode"
className="anticon anticon-qrcode sc-bxivhb dlJbAr"
role="img"
>
<svg
aria-hidden="true"
data-icon="qrcode"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M468 128H160c-17.7 0-32 14.3-32 32v308c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8zm-56 284H192V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210H136c-4.4 0-8 3.6-8 8v308c0 17.7 14.3 32 32 32h308c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zm-56 284H192V612h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm590-630H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V160c0-17.7-14.3-32-32-32zm-32 284H612V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210h-48c-4.4 0-8 3.6-8 8v134h-78V556c0-4.4-3.6-8-8-8H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h78v102c0 4.4 3.6 8 8 8h190c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zM746 832h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm142 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"
/>
</svg>
</span>
</span>
</span>
</span>
</span>
</div>
</div>
<div
className="ant-form-item-explain"
>
<div
role="alert"
>
</div>
</div>
</div>
</div>
</div>
<label
className="sc-jKJlTe biUgjm"
>
Amount
</label>
<div
className="sc-VigVT bZouWf"
>
<div
className="ant-row ant-form-item"
style={Object {}}
>
<div
className="ant-col ant-form-item-control"
style={Object {}}
>
<div
className="ant-form-item-control-input"
>
<div
className="ant-form-item-control-input-content"
>
<span
className="ant-input-group ant-input-group-compact"
>
<span
className="ant-input-affix-wrapper"
onMouseUp={[Function]}
style={
Object {
"textAlign": "left",
"width": "60%",
}
}
>
<span
className="ant-input-prefix"
>
<img
alt=""
height={16}
src="logo_primary.png"
width={16}
/>
</span>
<input
className="ant-input"
dollar={0}
name="value"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
placeholder="Amount"
required={true}
step={0.01}
style={null}
type="number"
value=""
/>
</span>
<div
className="ant-select select-after ant-select-single ant-select-show-arrow"
onBlur={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
onKeyUp={[Function]}
onMouseDown={[Function]}
style={
Object {
"width": "30%",
}
}
>
<div
className="ant-select-selector"
onClick={[Function]}
onMouseDown={[Function]}
>
<span
className="ant-select-selection-search"
>
<input
aria-activedescendant="rc_select_TEST_OR_SSR_list_0"
aria-autocomplete="list"
aria-controls="rc_select_TEST_OR_SSR_list"
aria-haspopup="listbox"
aria-owns="rc_select_TEST_OR_SSR_list"
autoComplete="off"
className="ant-select-selection-search-input"
disabled={false}
id="rc_select_TEST_OR_SSR"
onChange={[Function]}
onCompositionEnd={[Function]}
onCompositionStart={[Function]}
onKeyDown={[Function]}
onMouseDown={[Function]}
onPaste={[Function]}
readOnly={true}
role="combobox"
style={
Object {
"opacity": 0,
}
}
type="search"
unselectable="on"
value=""
/>
</span>
<span
className="ant-select-selection-item"
title="XEC"
>
XEC
</span>
</div>
<span
aria-hidden={true}
className="ant-select-arrow"
onMouseDown={[Function]}
style={
Object {
"WebkitUserSelect": "none",
"userSelect": "none",
}
}
unselectable="on"
>
<span
aria-label="down"
className="anticon anticon-down ant-select-suffix"
role="img"
>
<svg
aria-hidden="true"
data-icon="down"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
/>
</svg>
</span>
</span>
</div>
<span
className="sc-fjdhpX iLNQZG"
disabled={false}
onClick={[Function]}
style={
Object {
"height": "55px",
"lineHeight": "55px",
"width": "10%",
}
}
>
max
</span>
</span>
</div>
</div>
<div
className="ant-form-item-explain"
>
<div
role="alert"
>
</div>
</div>
</div>
</div>
</div>
</div>
<div
- className="sc-cMljjf hGrEZg"
+ className="sc-jAaTju kplAPX"
>
<h3
- className="sc-jDwBTQ iwAZUY"
+ className="sc-gPEVay kbHIAs"
>
0
XEC
</h3>
<div
className="sc-eHgmQL bSQRhv"
>
=
$ NaN USD
</div>
</div>
<div
style={
Object {
"paddingTop": "12px",
}
}
>
<button
className="sc-kGXeez jhWitK"
>
Send
</button>
</div>
<div>
<div
className="ant-collapse ant-collapse-icon-position-left sc-kAzzGY itTQAx"
role={null}
style={
Object {
"marginBottom": "12px",
}
}
>
<div
className="ant-collapse-item"
>
<div
aria-expanded={false}
className="ant-collapse-header"
onClick={[Function]}
onKeyPress={[Function]}
role="button"
tabIndex={0}
>
<span
aria-label="right"
className="anticon anticon-right ant-collapse-arrow"
role="img"
>
<svg
aria-hidden="true"
data-icon="right"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
/>
</svg>
</span>
Advanced
</div>
</div>
</div>
</div>
</form>
</div>
</div>
<div
className="ant-collapse ant-collapse-icon-position-left sc-kAzzGY itTQAx"
role={null}
style={
Object {
"marginBottom": "24px",
}
}
>
<div
className="ant-collapse-item"
>
<div
aria-expanded={false}
className="ant-collapse-header"
onClick={[Function]}
onKeyPress={[Function]}
role="button"
tabIndex={0}
>
<span
aria-label="right"
className="anticon anticon-right ant-collapse-arrow"
role="img"
>
<svg
aria-hidden="true"
data-icon="right"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
/>
</svg>
</span>
Sign Message
</div>
</div>
</div>
</div>,
]
`;
diff --git a/web/cashtab/src/components/Tokens/__tests__/__snapshots__/Tokens.test.js.snap b/web/cashtab/src/components/Tokens/__tests__/__snapshots__/Tokens.test.js.snap
index ae66b3a85..5d315a8ee 100644
--- a/web/cashtab/src/components/Tokens/__tests__/__snapshots__/Tokens.test.js.snap
+++ b/web/cashtab/src/components/Tokens/__tests__/__snapshots__/Tokens.test.js.snap
@@ -1,620 +1,620 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP @generated
exports[`Wallet with BCH balances 1`] = `
Array [
<div
className="sc-kkGfuU hVVqAi"
>
<h4
- className="sc-jAaTju iGBQkN"
+ className="sc-jDwBTQ fiRxiA"
>
MigrationTestAlpha
</h4>
<div
className="sc-hSdWYo bXDUps"
>
0
XEC
</div>
<div
className="sc-iAyFgw qZuQH"
>
$
NaN
USD
</div>
</div>,
<div
className="sc-hMqMXs kjfrok"
>
<div
className="sc-cMljjf fowfXL"
>
<h3>
Create a Token
</h3>
</div>
<p
className="sc-jWBwVP dkPIf"
>
You need at least
5.5
XEC
(
$
NaN
USD
) to create a token
</p>
</div>,
]
`;
exports[`Wallet with BCH balances and tokens 1`] = `
Array [
<div
className="sc-kkGfuU hVVqAi"
>
<h4
- className="sc-jAaTju iGBQkN"
+ className="sc-jDwBTQ fiRxiA"
>
MigrationTestAlpha
</h4>
<div
className="sc-hSdWYo bXDUps"
>
0
XEC
</div>
<div
className="sc-iAyFgw qZuQH"
>
$
NaN
USD
</div>
</div>,
<div
className="sc-hMqMXs kjfrok"
>
<div
className="sc-cMljjf fowfXL"
>
<h3>
Create a Token
</h3>
</div>
<p
className="sc-jWBwVP dkPIf"
>
You need at least
5.5
XEC
(
$
NaN
USD
) to create a token
</p>
</div>,
]
`;
exports[`Wallet with BCH balances and tokens and state field 1`] = `
Array [
<div
className="sc-kkGfuU hVVqAi"
>
<h4
- className="sc-jAaTju iGBQkN"
+ className="sc-jDwBTQ fiRxiA"
>
MigrationTestAlpha
</h4>
<div
className="sc-hSdWYo bXDUps"
>
0.06
XEC
</div>
<div
className="sc-iAyFgw qZuQH"
>
$
NaN
USD
</div>
</div>,
<div
className="sc-hMqMXs kjfrok"
>
<div
className="sc-cMljjf fowfXL"
>
<h3>
Create a Token
</h3>
<div
className="sc-VigVT bZouWf"
>
<form
className="ant-form ant-form-horizontal ant-form-small"
onReset={[Function]}
onSubmit={[Function]}
style={
Object {
"width": "auto",
}
}
>
<label
className="sc-kEYyzF gSQyNg"
>
Token Name
</label>
<div
className="ant-row ant-form-item"
style={Object {}}
>
<div
className="ant-col ant-form-item-control"
style={Object {}}
>
<div
className="ant-form-item-control-input"
>
<div
className="ant-form-item-control-input-content"
>
<input
className="ant-input ant-input-sm"
name="newTokenName"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
placeholder="Enter a name for your token"
type="text"
value=""
/>
</div>
</div>
<div
className="ant-form-item-explain"
>
<div
role="alert"
>
</div>
</div>
</div>
</div>
<label
className="sc-kEYyzF gSQyNg"
>
Ticker
</label>
<div
className="ant-row ant-form-item"
style={Object {}}
>
<div
className="ant-col ant-form-item-control"
style={Object {}}
>
<div
className="ant-form-item-control-input"
>
<div
className="ant-form-item-control-input-content"
>
<input
className="ant-input ant-input-sm"
name="newTokenTicker"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
placeholder="Enter a ticker for your token"
type="text"
value=""
/>
</div>
</div>
<div
className="ant-form-item-explain"
>
<div
role="alert"
>
</div>
</div>
</div>
</div>
<label
className="sc-kEYyzF gSQyNg"
>
Decimals
</label>
<div
className="ant-row ant-form-item"
style={Object {}}
>
<div
className="ant-col ant-form-item-control"
style={Object {}}
>
<div
className="ant-form-item-control-input"
>
<div
className="ant-form-item-control-input-content"
>
<input
className="ant-input ant-input-sm"
name="newTokenDecimals"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
placeholder="Enter number of decimal places"
type="number"
value={0}
/>
</div>
</div>
<div
className="ant-form-item-explain"
>
<div
role="alert"
>
</div>
</div>
</div>
</div>
<label
className="sc-kEYyzF gSQyNg"
>
Supply
</label>
<div
className="ant-row ant-form-item"
style={Object {}}
>
<div
className="ant-col ant-form-item-control"
style={Object {}}
>
<div
className="ant-form-item-control-input"
>
<div
className="ant-form-item-control-input-content"
>
<input
className="ant-input ant-input-sm"
name="newTokenInitialQty"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
placeholder="Enter the fixed supply of your token"
type="number"
value=""
/>
</div>
</div>
<div
className="ant-form-item-explain"
>
<div
role="alert"
>
</div>
</div>
</div>
</div>
<label
className="sc-kEYyzF gSQyNg"
>
Document URL
</label>
<div
className="ant-row ant-form-item"
style={Object {}}
>
<div
className="ant-col ant-form-item-control"
style={Object {}}
>
<div
className="ant-form-item-control-input"
>
<div
className="ant-form-item-control-input-content"
>
<input
className="ant-input ant-input-sm"
name="newTokenDocumentUrl"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
placeholder="Enter a website for your token"
type="text"
value=""
/>
</div>
</div>
<div
className="ant-form-item-explain"
>
<div
role="alert"
>
</div>
</div>
</div>
</div>
<label
className="sc-kEYyzF gSQyNg"
>
Add Image
</label>
<div
className="ant-row ant-form-item"
style={Object {}}
>
<div
className="ant-col ant-form-item-control"
style={Object {}}
>
<div
className="ant-form-item-control-input"
>
<div
className="ant-form-item-control-input-content"
>
<span>
<div
className="ant-upload ant-upload-drag"
onDragLeave={[Function]}
onDragOver={[Function]}
onDrop={[Function]}
style={
Object {
"backgroundColor": "#f4f4f4",
"height": undefined,
}
}
>
<span
className="ant-upload ant-upload-btn"
onClick={[Function]}
onDragOver={[Function]}
onDrop={[Function]}
onKeyDown={[Function]}
role="button"
tabIndex="0"
>
<input
accept=""
multiple={false}
onChange={[Function]}
onClick={[Function]}
style={
Object {
"display": "none",
}
}
type="file"
/>
<div
className="ant-upload-drag-container"
>
<span
aria-label="upload"
className="anticon anticon-upload"
role="img"
>
<svg
aria-hidden="true"
data-icon="upload"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
/>
</svg>
</span>
<p>
Click, or drag file to this area to upload
</p>
<p
style={
Object {
"fontSize": "12px",
}
}
>
Only jpg or png accepted
</p>
</div>
</span>
</div>
<div
className="ant-upload-list ant-upload-list-text"
/>
</span>
</div>
</div>
</div>
</div>
</form>
</div>
<button
className="sc-jKJlTe cxrKVk"
disabled={true}
onClick={[Function]}
style={
Object {
"marginTop": "30px",
}
}
>
<span
aria-label="plus-square"
className="anticon anticon-plus-square"
role="img"
>
<svg
aria-hidden="true"
data-icon="plus-square"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"
/>
<path
d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"
/>
</svg>
</span>
Β Create eToken
</button>
</div>
</div>,
]
`;
exports[`Wallet without BCH balance 1`] = `
Array [
<div
className="sc-kkGfuU hVVqAi"
>
<h4
- className="sc-jAaTju iGBQkN"
+ className="sc-jDwBTQ fiRxiA"
>
MigrationTestAlpha
</h4>
<div
className="sc-hSdWYo bXDUps"
>
0
XEC
</div>
<div
className="sc-iAyFgw qZuQH"
>
$
NaN
USD
</div>
</div>,
<div
className="sc-hMqMXs kjfrok"
>
<div
className="sc-cMljjf fowfXL"
>
<h3>
Create a Token
</h3>
</div>
<p
className="sc-jWBwVP dkPIf"
>
You need at least
5.5
XEC
(
$
NaN
USD
) to create a token
</p>
</div>,
]
`;
exports[`Without wallet defined 1`] = `
Array [
<div
className="sc-kkGfuU hVVqAi"
>
<div
className="sc-hSdWYo bXDUps"
>
0
XEC
</div>
<div
className="sc-iAyFgw qZuQH"
>
$
NaN
USD
</div>
</div>,
<div
className="sc-hMqMXs kjfrok"
>
<div
className="sc-cMljjf fowfXL"
>
<h3>
Create a Token
</h3>
</div>
<p
className="sc-jWBwVP dkPIf"
>
You need at least
5.5
XEC
(
$
NaN
USD
) to create a token
</p>
</div>,
]
`;

File Metadata

Mime Type
text/x-diff
Expires
Sun, Apr 27, 10:57 (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5573341
Default Alt Text
(118 KB)

Event Timeline