diff --git a/CHANGELOG.md b/CHANGELOG.md index 32ccd8b13..dacbc60cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file. *Unreleased* *Released* +## [v0.5.8] - 2021-12-07 + +### Additions +- Adapt to Christmas app icon +- Add memo field support in Address Book +- Add Address Book support in custom destination address on Cronos Bridge +- Update dependencies to stable versions + +### Bug fixes +- Update deprecated balance retrieval endpoint for Crypto.org Mainnet upgrade ## [v0.5.7] - 2021-12-02 @@ -309,7 +319,6 @@ All notable changes to this project will be documented in this file. - Replace previous pre-encryption disk persistence by temporary memory state that's flushed later on - ## [v0.0.13] - 2021-01-07 ### Added Features @@ -322,6 +331,5 @@ All notable changes to this project will be documented in this file. ### Known Limitation -- This wallet is only testnet-ready, do not use in mainnet. - Do not transfer any ERC20 tokens to addresses generated by this sample code as it can cause loss of funds. - Crypto.com is not liable for any potential damage, loss of data/files arising from the use of the wallet. diff --git a/README.md b/README.md index 9e377e84b..3cd52fff9 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,24 @@ Please refer to the [Instructions on Multi-Language Content Management](./CONTEN [Apache 2.0](./LICENSE) ## Manual Build for Development + +### For M1 Chip Macs 💻 +At this moment, the project could only be compiled with `node` in `x64` binary version. + +Please check the installed binary version of your `node`: + +``` +node -p process.arch +x64 +``` +If `arm64` is returned, open your favourite Shell in Rosetta + +``` +arch -x86_64 /bin/bash +``` + +Reinstall `node` 14 or 15 under Rosetta. The reinstalled `node` will be in `x64` binary version by default. + ### Installation ``` diff --git a/package.json b/package.json index 6106be134..2338a6cb7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chain-desktop-wallet", - "version": "0.5.7", + "version": "0.5.8", "description": "Crypto.com Chain Desktop Wallet App", "repository": "github:crypto-com/chain-desktop-wallet", "author": "Crypto.org ", @@ -330,6 +330,7 @@ "trim-newlines": "3.0.1", "normalize-url": "5.3.1", "tar": "6.1.9", - "glob-parent": "5.1.2" + "glob-parent": "6.0.2", + "json-schema": "0.4.0" } } diff --git a/public/icon.png b/public/icon.png index 5d9dda498..5ac62a6a1 100644 Binary files a/public/icon.png and b/public/icon.png differ diff --git a/src/components/AddressBookInput/AddressBookInput.tsx b/src/components/AddressBookInput/AddressBookInput.tsx index 6caa2c12e..8602b76aa 100644 --- a/src/components/AddressBookInput/AddressBookInput.tsx +++ b/src/components/AddressBookInput/AddressBookInput.tsx @@ -15,16 +15,26 @@ interface IAddressBookInputProps { userAsset: UserAsset; currentSession: Session; onChange: (value: string, addressBookContact?: AddressBookContact) => void; + disabled?: boolean; + initialValue?: string; + isDefaultInput?: boolean; } const AddressBookInput = (props: IAddressBookInputProps) => { - const { userAsset, currentSession, onChange } = props; + const { + userAsset, + currentSession, + onChange, + initialValue, + disabled = false, + isDefaultInput = false, + } = props; const [, setNavbarSelectedKey] = useRecoilState(navbarMenuSelectedKeyState); const history = useHistory(); const [t] = useTranslation(); - const [value, setValue] = useState(); + const [value, setValue] = useState(initialValue ?? ''); const [contacts, setContacts] = useState([]); const walletId = currentSession.wallet.identifier; @@ -56,6 +66,7 @@ const AddressBookInput = (props: IAddressBookInputProps) => { (
{menu} @@ -77,7 +88,7 @@ const AddressBookInput = (props: IAddressBookInputProps) => {
)} showArrow={false} - value={value} + value={initialValue ?? value} autoFocus options={contacts.map(contact => { return { @@ -119,7 +130,7 @@ const AddressBookInput = (props: IAddressBookInputProps) => { }); }} > - {currentContact ? ( + {currentContact && !isDefaultInput ? ( + )}
diff --git a/src/components/AddressBookModal/AddAddressModal.tsx b/src/components/AddressBookModal/AddAddressModal.tsx index 9a064fa9d..d3938c041 100644 --- a/src/components/AddressBookModal/AddAddressModal.tsx +++ b/src/components/AddressBookModal/AddAddressModal.tsx @@ -31,6 +31,7 @@ const FormKeys = { asset: 'asset', label: 'label', address: 'address', + memo: 'memo', }; const AddAddressModal = (props: IAddAddressModalProps) => { @@ -119,6 +120,7 @@ const AddAddressModal = (props: IAddAddressModalProps) => { const address: string = form.getFieldValue(FormKeys.address); const network: string = form.getFieldValue(FormKeys.network); const assetSymbol: string = form.getFieldValue(FormKeys.asset); + const memo: string = form.getFieldValue(FormKeys.memo); const validateFiles = [label, address, network, assetSymbol]; @@ -133,6 +135,7 @@ const AddAddressModal = (props: IAddAddressModalProps) => { assetSymbol, label, address, + memo, ); if (!success) { message.error(t('settings.addressBook.message.updateFailed')); @@ -146,6 +149,7 @@ const AddAddressModal = (props: IAddAddressModalProps) => { assetSymbol, label, address, + memo, }); if (!contactCreated) { @@ -248,6 +252,14 @@ const AddAddressModal = (props: IAddAddressModalProps) => { > + + +