feat: cash-in implementation for trx + usdt

This commit is contained in:
Rafael Taranto 2023-09-04 22:51:49 +01:00
parent b399ff0110
commit a1a27826b8
10 changed files with 5282 additions and 186 deletions

View file

@ -39,7 +39,7 @@ const SAVE_ACCOUNTS = gql`
}
`
const isConfigurable = it => R.contains(it)(['infura', 'bitgo'])
const isConfigurable = it => R.contains(it)(['infura', 'bitgo', 'trongrid'])
const isLocalHosted = it =>
R.contains(it)([
@ -152,6 +152,21 @@ const ChooseWallet = ({ data: currentData, addData }) => {
/>
</>
)}
{selected === 'trongrid' && (
<>
<H4 noMargin>Enter wallet information</H4>
<FormRenderer
value={accounts.trongrid}
save={saveWallet(selected)}
elements={schema.trongrid.elements}
validationSchema={schema.trongrid.getValidationSchema(
accounts.trongrid
)}
buttonLabel={'Continue'}
buttonClass={classes.formButton}
/>
</>
)}
</div>
)
}