.detoxrc.json
.github
    workflows
        dev.yml
        pull-request.yml
        release.yml
        test.yml
.mergify.yml
.prettierrc.yml
CHANGELOG.md
README.md
android
    app
        src
            androidTest
                java
                    com
                        moonlet
                            DetoxTest.java
            beta
                AndroidManifest.xml
                res
                    layout
                        overlay.xml
                    mipmap-anydpi-v26
                        ic_launcher.xml
                        ic_launcher_round.xml
                    values
                        colors.xml
                        strings.xml
            debug
                AndroidManifest.xml
            main
                AndroidManifest.xml
                java
                    com
                        moonlet
                            CustomPreventScreenshotPackage.java
                            MainActivity.java
                            MainApplication.java
                            PreventScreenshotModule.java
                res
                    layout
                        overlay.xml
                    mipmap-anydpi-v26
                        ic_launcher.xml
                        ic_launcher_round.xml
                    values
                        colors.xml
                        ic_launcher_background.xml
                        strings.xml
                        styles.xml
    fastlane
        README.md
        metadata
            android
                en-US
                    full_description.txt
                    short_description.txt
                    title.txt
    gradlew.bat
app.json
babel.config.js
codecov.yml
docs
    SECURITY AUDITS.md
    docs.md
|
e2e
    config.json
    init.js
    tests
        common
            functions.ts
            tests.ts
        general
            account-manage.spec.ts
            currency-switch.spec.ts
            general.spec.ts
            network-switch.spec.ts
            network-switch.ts
            tokens-manage
                erc20-tokens.manage.ts
                tokens-manage.spec.ts
                zrc2-tokens-manage.ts
            utils.ts
            wallet-manage.ts
        send
            blockchain
                eth.ts
                zil.ts
            common.ts
            eth.ts
            send.spec.ts
            utils.ts
            zil.ts
        wallet
            create-wallet.spec.ts
            manage-wallet.spec.ts
            recover-wallet.spec.ts
            utils.ts
    utils
        custom-keyboard.ts
        detox-utils.ts
        utils.ts
        values.ts
index.js
index.web-wallet.js
ios
    Moonlet
        AppDelegate.h
        Images.xcassets
            AppIcon-beta.appiconset
                Contents.json
            AppIcon.appiconset
                Contents.json
            Contents.json
    fastlane
        README.md
        metadata
            copyright.txt
            en-US
                description.txt
                keywords.txt
                marketing_url.txt
                name.txt
                privacy_url.txt
                release_notes.txt
                subtitle.txt
                support_url.txt
            primary_category.txt
            review_information
                demo_password.txt
                demo_user.txt
                email_address.txt
                first_name.txt
                last_name.txt
                notes.txt
                phone_number.txt
            trade_representative_contact_information
                address_line1.txt
                address_line2.txt
                address_line3.txt
                city_name.txt
                country.txt
                email_address.txt
                first_name.txt
                is_displayed_on_app_store.txt
                last_name.txt
                phone_number.txt
                postal_code.txt
                state.txt
                trade_name.txt
        screenshots
            README.txt
    pods.sh
jest.config.js
jest.setup.js
metro.config.js
package.json
scripts
    cjs-update.sh
    ts-nockeck-files.sh
src
    __mocks__
        @react-native-community
            async-storage.js
            geolocation.js
            netinfo.js
        react-native-background-timer
            index.js
        react-native-firebase
            index.js
        react-native-keychain
            index.js
        react-native-reanimated
            index.js
        react-native-voip-push-notification
            index.js
    assets
        icons
            blockchains
                celo.svg
                cosmos.svg
                eth.svg
                near.svg
                sol.svg
                zil.svg
            ledger
                bluetooth-pairing.svg
                connect-nano-s.svg
                error.svg
                open-app.svg
                search-bluetooth.svg
                success-connect.svg
                verification-failed.svg
                verify-address.svg
            svg
                action-up-down.svg
                add-circle.svg
                add.svg
                alarm-bell.svg
                archive-locker.svg
                arr-down.svg
                arr-up.svg
                arrow-button-down.svg
                arrow-down.svg
                arrow-left.svg
                arrow-right-dash.svg
                arrow-right.svg
                arrows-up.svg
                bin.svg
                ble.svg
                bug.svg
                button-refresh-one.svg
                check-box-thicked.svg
                check-box.svg
                check.svg
                checkmark-circle.svg
                chevron-down-2.svg
                chevron-down.svg
                chevron-right.svg
                chevron-up.svg
                claim-reward.svg
                close.svg
                copy.svg
                dashboard.svg
                expand.svg
                eye.svg
                face-id.svg
                failed.svg
                flash-off.svg
                flash.svg
                inbound.svg
                information-circle.svg
                key-lock.svg
                key.svg
                keyboard-delete.svg
                keyboard-shift.svg
                laptop.svg
                ledger-logo.svg
                megaphone.svg
                minus.svg
                money-wallet.svg
                monitor.svg
                navigation-menu-horizontal.svg
                navigation-menu-vertical.svg
                navigation-menu.svg
                notes-list.svg
                outbound.svg
                pencil.svg
                pending.svg
                plus.svg
                products-give-gift.svg
                qr-code-scan.svg
                reinvest.svg
                revote.svg
                saturn-icon.svg
                search.svg
                settings-off.svg
                settings-on.svg
                settings.svg
                signed-icon.svg
                single-man-hierachy.svg
                single-neutral-actions-text.svg
                synchronize.svg
                touch-id.svg
                unlock.svg
                unvote.svg
                usb.svg
                view-off.svg
                view.svg
                vote.svg
                warning.svg
                withdraw.svg
        images
            svg
                moonlet_space.svg
                new.svg
                spy.svg
        logo
            logo-animation.json
    components
        account-address
            styles.ts
        account-summary
            styles.ts
        affiliate-banner
            styles.ts
            types.ts
        amount
            styles.ts
        bottom-blockchain-navigation
            styles.ts
        bottom-cta
            amount-cta-field
                styles.ts
            primary-cta-field
                styles.ts
            styles.ts
        bottom-sheet
            accounts-bottom-sheet
                styles.ts
            blockchain-navigation-bottom-sheet
                styles.ts
            dashboard-menu-bottom-sheet
                styles.ts
            extension-request-bottom-sheet
                styles.ts
            header
                styles.ts
            styles.ts
            wallets-bottom-sheet
                styles.ts
        coin-balance-card
            styles.ts
        conversion-card
            styles.ts
        cta-group
            styles.ts
        debug-modal
            styles.ts
        dialog
            styles.ts
        draggable-card-with-check-box
            styles.ts
        expandable-container
            styles.ts
        header-icon
            styles.ts
        header-left
            styles.ts
        header-right
            styles.ts
        icon
            icon.ts
            values.ts
        image-canvas
            styles.ts
        info-modal
            styles.ts
        keyboard-custom
            styles.ts
        ledger-badge
            styles.ts
        legal
            legal-modal
                styles.ts
            privacy-policy
                styles.ts
            styles.ts
            terms-conditions
                styles.ts
        list-account
            styles.ts
        list-card
            styles.ts
        loading-indicator
            styles.ts
        loading-modal
            styles.ts
            types.ts
        password-modal
            components
                password-pin
                    styles.ts
                password-terms
                    styles.ts
            styles.ts
        pos-widget
            styles.ts
        quick-delegate-banner
            styles.ts
        search-input
            styles.ts
        security-checks
            styles.ts
        skeleton-placeholder
            styles.ts
        skeleton-row
            styles.ts
        smart-screen
            components
                loading-skeleton
                    styles.ts
        splash-screen
            styles.ts
        staking-beta-badge
            styles.ts
        testnet-badge
            styles.ts
        text-input
            styles.ts
        token-card
            styles.ts
        token-dashboard
            styles.ts
        widgets
            components
                absolute-modules
                    styles.ts
                amount-input
                    styles.ts
                amount-selectable-box
                    styles.ts
                balance-grid-icons
                    styles.ts
                error-widget
                    styles.ts
                gradient-wrapper
                    styles.ts
                icon-one-line
                    styles.ts
                icon-two-lines
                    styles.ts
                icon
                    styles.ts
                image-banner
                    styles.ts
                input
                    styles.ts
                md-text
                    styles.ts
                module-selectable-wrapper
                    styles.ts
                module-wrapper
                    module-wrapper.ts
                    state-modifiers
                        index.ts
                        quick-stake-selected-validator.ts
                        stake-enter-amount-stake-now.ts
                        swap.ts
                        switch-node.ts
                        update-claim-pending.ts
                one-line-text-banner
                    styles.ts
                progress-bar
                    styles.ts
                progress-circle
                    styles.ts
                search
                    styles.ts
                separator
                    styles.ts
                single-balance-icon
                    styles.ts
                static-text-col-bottom-header
                    styles.ts
                static-text-col-top-header
                    styles.ts
                text-line-icon
                    styles.ts
                three-lines-cta
                    styles.ts
                three-lines-icon
                    styles.ts
                two-lines-text-banner
                    styles.ts
                ui-state-selectors
                    index.ts
                    input-balance-format.ts
                    stake-enter-all-balance.ts
                    stake-now.ts
                    swap
                        amount-std.ts
                        amount.ts
                        blockchain-symbol.ts
                        decimals.ts
                        max-balance.ts
                        price.ts
                        slippage.ts
                        symbol.ts
                    switch-node-enter-available-balance.ts
                    switch-node-selected-validator.ts
                    token-balance.ts
                validations
                    styles.ts
            styles.ts
            types.ts
        zilliqa-transaction-update
            ws-client.ts
            zilliqa-transaction-update.ts
    config
        config-beta.ts
        config-interface.ts
        config-release.ts
        index.ts
    core
        biometric-auth
            biometric-auth.ts
        blockchain
            __tests__
                blockchain-factory.test.ts
            blockchain-factory.ts
            celo
                account.ts
                client-utils.ts
                client.ts
                config.ts
                contracts
                    accounts.ts
                    base-contract.ts
                    election.ts
                    lockedgold.ts
                index.ts
                library
                    hash.js
                    rlp.js
                    signing-utils.ts
                name-service.ts
                networks.ts
                stats.ts
                tokens
                    cUSD.ts
                    celo.ts
                    erc20-client.ts
                transaction.ts
            common
                abstract-ws-client.ts
                account.ts
                cryptoNameResolver.ts
                ethNameResolver.ts
                pub-sub.ts
                zilNameResolver.ts
            cosmos
                account.ts
                client-utils.ts
                client.ts
                config.ts
                index.ts
                name-service.ts
                networks.ts
                stats.ts
                transaction.ts
            ethereum
                __tests__
                    account.test.ts
                    client.test.ts
                    index.test.ts
                account.ts
                client-utils.ts
                client.ts
                config.ts
                contracts
                    base-contract.ts
                    staking.ts
                index.ts
                name-service.ts
                networks.ts
                stats.ts
                tokens
                    chainLink.ts
                    compoundFinance.ts
                    dai.ts
                    erc20-client.ts
                    ethLend.ts
                    grt.ts
                    idrt.ts
                    maker.ts
                    omgNetwork.ts
                    syntheticNetwork.ts
                    theter.ts
                    uniSwap.ts
                    usdCoin.ts
                    yearnFinance.ts
                transaction.ts
                types.ts
            near
                account.ts
                client-utils.ts
                client.ts
                config.ts
                consts.ts
                contracts
                    base-contract.ts
                    lockup.ts
                    staking-pool.ts
                index.ts
                name-service.ts
                networks.ts
                stats.ts
                transaction.ts
                types.ts
            solana
                account.ts
                client-utils.ts
                client.ts
                config.ts
                contracts
                    base-contract.ts
                    instructions.ts
                    staking.ts
                index.ts
                name-service.ts
                networks.ts
                stats.ts
                tokens
                    btc.ts
                    eth.ts
                    ftt.ts
                    jpyc.ts
                    link.ts
                    ray.ts
                    spl-client.ts
                    srm.ts
                    sushi.ts
                    uni.ts
                    usdc.ts
                    usdt.ts
                    yfi.ts
                transaction-utils.ts
                transaction.ts
                types.ts
            types
                account.ts
                blockchain.ts
                client-utils.ts
                client.ts
                config.ts
                index.ts
                name-service.ts
                network.ts
                stats.ts
                token.ts
                transaction.ts
            zilliqa
                __tests__
                    account.test.ts
                    client.test.ts
                account.ts
                client-utils.ts
                client.ts
                config.ts
                contracts
                    base-contract.ts
                    staking.ts
                index.ts
                name-service.ts
                name-services-utils.ts
                networks.ts
                stats.ts
                tokens
                    barter.ts
                    bolt.ts
                    carb.ts
                    gzil.ts
                    kkz.ts
                    port.ts
                    redc.ts
                    sco.ts
                    sergs.ts
                    shrk.ts
                    xcad.ts
                    xsgd.ts
                    zch.ts
                    zeth.ts
                    zlf.ts
                    zlp.ts
                    zrc2-client.ts
                    zusdt.ts
                    zwap.ts
                    zwbtc.ts
                    zyf.ts
                    zyro.ts
                transaction.ts
                ws-client.ts
        constants
            app.ts
        i18n
            index.ts
            translation
                __tests__
                    translate.test.ts
                locales
                    __mocks__
                        en.ts
                    __tests__
                        en.ts
                    en.ts
                translate.ts
                types.ts
        messaging
            handlers
                data-message.ts
                notification.ts
            notifications
                android-background-messaging.ts
                notifications.ts
            types.ts
        secure
            encrypt
                __tests__
                    encrypt.test.ts
                consts.ts
                encrypt.ts
                encrypt.web.ts
            keychain
                __tests__
                    keychain.test.ts
                keychain.ts
                keychain.web.ts
            storage
                consts.ts
                storage.ts
                storage.web-wallet.ts
        theme
            itheme.ts
            theme-contex.ts
            themes.ts
        universal-links
            index.ts
        utils
            __tests__
                format-number.test.ts
                http-client.test.ts
                smart-connect.ts
            api-client
                api-client.ts
                configs.ts
                governance.ts
                notifications.ts
                utils.ts
                validators.ts
            available-funds.ts
            balance.ts
            class-registry.ts
            deferred.ts
            exchange-rates.ts
            exchange-rates.web.ts
            format-address.ts
            format-number.ts
            format-string.ts
            http-client.ts
            linking-handler.ts
            object-sanitise.ts
            pick.ts
            remote-feature-config
                index.ts
                remote-feature-config.ts
                remote-feature-config.web.ts
                types.ts
            request-permissions.ts
            screenshot.ts
            smart-connect.ts
            sort-object.ts
            stats-get-value.ts
            swap.ts
            time.ts
            url-params.ts
        wallet
            __tests__
                wallet-factory.test.ts
            hd-wallet
                __tests__
                    hd-wallet.test.ts
                    mnemonic.test.ts
                hd-key
                    hd-key-ed25519.ts
                    hdkey-factory.ts
                hd-wallet.ts
                mnemonic.ts
            hw-wallet
                hw-wallet-factory.ts
                ledger
                    apps-factory.ts
                    apps
                        celo.ts
                        cosmos.ts
                        eth.ts
                        near.ts
                        solana-interface.js
                        solana.ts
                        zil-interface.js
                        zil.ts
                    config.ts
                    ledger-wallet.ts
                    transport-factory.ts
                    transport
                        transport-ble.ts
                        transport-usb.ts
                    types.ts
                types.ts
            types.ts
            wallet-factory.ts
    library
        button
            styles.ts
        checkbox
            styles.ts
        image
            styles.ts
        index.ts
        modal
            ModalWrapperHelper.ts
        swipeable
            styles.ts
        tab-select
            styles.ts
        text
            styles.ts
    navigation
        navigation-service.ts
    react-native-web
        react-native-device-info.js
    redux
        __mocks__
            config.ts
        app
            __tests__
                actions.test.ts
                reducer.test.ts
            actions.ts
            reducer.ts
            state.ts
        config.ts
        config.web-wallet.ts
        contacts
            actions.ts
            reducer.ts
            selectors.ts
            state.ts
        market
            __tests__
                reducer.test.ts
            actions.ts
            reducer.ts
            state.ts
        notifications
            actions.ts
            reducer.ts
            state.ts
        preferences
            __tests__
                actions.test.ts
                reducer.test.ts
            actions.ts
            reducer.ts
            selectors.ts
            state.ts
        state.ts
        tokens
            actions.ts
            reducer.ts
            state.ts
            static-selectors.ts
        types.ts
        ui
            bottomSheet
                actions.ts
                reducer.ts
                state.ts
            delegated-validators
                actions.ts
                reducer.ts
                selectors.ts
                state.ts
            extension
                actions.ts
                reducer.ts
                state.ts
            password-modal
                actions.ts
                reducer.ts
                state.ts
            process-transactions
                actions.ts
                reducer.ts
                state.ts
            reducer.ts
            screens
                data
                    actions.ts
                    actions
                        index.ts
                        transactions
                            index.ts
                            transaction-builder.ts
                    handle-cta.ts
                    reducer.ts
                    state.ts
                input-data
                    actions.ts
                    reducer.ts
                    screen-actions
                        index.ts
                    state.ts
                    validation
                        amount-available-funds-to-keep.ts
                        amount-available-funds.ts
                        amount-not-empty.ts
                        index.ts
                        min-amount-to-stake.ts
                        switch-node-available-funds.ts
                        switch-node-min-amount-delegate.ts
                        switch-node-validate-amount.ts
                        token-active.ts
                posActions
                    actions.ts
                    reducer.ts
                    state.ts
                reducer.ts
                state.ts
            state.ts
            stats
                actions.ts
                reducer.ts
                selectors.ts
                state.ts
            transaction-request
                actions.ts
                reducer.ts
                state.ts
            validators
                actions.ts
                reducer.ts
                selectors.ts
                state.ts
        utils
            __tests__
                persistConfig.test.ts
            helpers.ts
            migrations
                002.ts
                003.ts
                004.ts
                005.ts
                006.ts
                007.ts
                008.ts
                009.ts
                010.ts
                011.ts
                012.ts
                013.ts
                014.ts
                015.ts
                016.ts
                017.ts
                018.ts
                019.ts
                index.ts
                utils.ts
            persistConfig.ts
            redux-decorators.ts
        wallets
            __tests__
                actions.test.ts
                reducer.test.ts
            actions
                index.ts
                password-actions.ts
                pos-actions
                    index.ts
                    solana.ts
                util-actions.ts
                wallet-actions.ts
            reducer.ts
            selectors.ts
            state.ts
    screens
        blockchain
            near
                create-account
                    styles.ts
                recover-account
                    styles.ts
        connect-hardware-wallet
            styles.ts
        create-wallet-confirm-mnemonic
            styles.ts
        create-wallet-mnemonic
            styles.ts
        dashboard
            styles.ts
            styles.web-wallet.ts
        ledger
            components
                confirm-connections
                    styles.ts
                failed-component
                    styles.ts
                location-required
                    styles.ts
                open-app
                    styles.ts
                review-message
                    styles.ts
                review-transaction
                    styles.ts
                search-ledger
                    styles.ts
                sign-declined
                    styles.ts
                smartcontract-warning
                    styles.ts
                success-connect
                    styles.ts
                troubleshooting
                    styles.ts
                verification-failed
                    styles.ts
                verify-address
                    styles.ts
            styles.ts
        manage-accounts
            styles.ts
        manage-token
            styles.ts
        notifications
            styles.ts
        onboarding
            styles.ts
        pos-actions
            components
                confirm-component
                    styles.ts
                enter-amount-component
                    styles.ts
                validator-delegate-amount
                    styles.ts
            pos-action-delegate
                delegate-enter-amount
                    styles.ts
            pos-action-quick-delegate
                quick-delegate-enter-amount
                    styles.ts
                quick-delegate-select-validator
                    styles.ts
            pos-action-redelegate
                redelegate-confirm
                    styles.ts
                redelegate-enter-amount
                    styles.ts
                redelegate-select-validator
                    styles.ts
            pos-basic-action-smart-screen-wrapper
                styles.ts
            pos-basic-action
                styles.ts
            process-transactions
                styles.ts
        privacy-policy
            styles.ts
        promo-details
            styles.ts
        quick-stake-select-validator
            styles.ts
        receive
            styles.ts
        recover-wallet
            styles.ts
        send
            components
                account-list
                    styles.ts
                add-address
                    styles.ts
                address-book
                    styles.ts
                eip1559-fees-advanced
                    styles.ts
                enter-amount
                    styles.ts
                extra-fields
                    memo
                        styles.ts
                fee-options
                    styles.ts
                fee-preset
                    styles.ts
                fee-total
                    styles.ts
                gas-fee-advanced
                    styles.ts
                header-step-by-step
                    styles.ts
            styles.ts
        settings
            backup-wallet
                styles.ts
            blockchain-portfolio
                styles.ts
            network-options
                styles.ts
            network-selection
                styles.ts
            set-currency
                styles.ts
            styles.ts
        smart-scan
            styles.ts
        smart-screen
            styles.ts
        statistics
            styles.ts
        terms-conditions
            styles.ts
        token
            components
                account-settings
                    components
                        view-key
                            styles.ts
                    styles.ts
                add-token
                    styles.ts
                default-token
                    styles.ts
                delegate-token
                    components
                        stats-component
                            styles.ts
                        tabs
                            account-tab
                                styles.ts
                            delegations-tab
                                styles.ts
                            transactions-tab
                                styles.ts
                            validators-tab
                                styles.ts
                        validators
                            validator-card
                                styles.ts
                    styles.ts
            styles.ts
        total-balance
            styles.ts
        transaction-details
            styles.ts
        transaction-request
            qr-code-tx-request
                styles.ts
            styles.ts
        transactions-history
            list-transactions-history
                styles.ts
            styles.ts
        validator-screen
            styles.ts
        view-wallet-mnemonic
            styles.ts
        wallets
            styles.ts
        watch
            styles.ts
    styles
        colors.ts
        common.ts
        dimensions.ts
        index.ts
        themes
            dark-theme.ts
            light-theme.ts
    typings.d.ts
tsconfig.json
tslint.json
web-wallet
    babel.config.js
    index.html
    webpack.config.js

fastlane documentation
================
# Installation

Make sure you have the latest version of the Xcode command line tools installed:

```
xcode-select --install
```

Install _fastlane_ using
```
[sudo] gem install fastlane -NV
```
or alternatively using `brew install fastlane`

# Available Actions
## iOS
### ios beta
```
fastlane ios beta
```
Submit new Beta build to Testflight
### ios deploy
```
fastlane ios deploy
```

----

This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run.
More information about fastlane can be found on [fastlane.tools](https://fastlane.tools).
The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
# Moonlet Wallet

## iOS Certificates

If iOS certificates have expired, go to https://gitlab.com/moonlet/moonlet-ios-certificates and delete all all `certs` and `profiles`. Also go to Apple Developer Portal, then `Profiles` and delete both `match AppStore` files.

Then go to `ios` and run `fastlane match appstore`.

If you are on a new device, you need to find the secret for `MATCH_PASSWORD`.

# Project Setup

## Windows

Once you've cloned the repo locally on your machine, open a command line/power shell in that folder and run ```yarn``` or ```npm install``` to install the packages for the app.

Next up you need to set the environment variables for Android on your local machine, you can find the instructions on how to do that [here](https://levelup.gitconnected.com/android-react-native-window-setup-how-to-setup-android-environment-for-react-native-app-588aaa13c3a6).

For starting the project you'll need to have an emulator running locally ( e.g. Android Studio ). Once the emulator is running execute ```npm run android``` or ```yarn android``` in a command line.

If you're getting the following error:

```
The syntax of the command is incorrect
error Command failed with exit code 1.
```
Follow these instructions:

* Install Git on your local machine
* Run GitBash inside the project folder
* Run ```which bash```, you should get something like: ```/usr/bin/bash```
* After that run ```npm config set script-shell /usr/bin/bash```
* Run ```npm run android``` or ```yarn android```

You should be able to run the project without getting an error.
fastlane documentation
================
# Installation

Make sure you have the latest version of the Xcode command line tools installed:

```
xcode-select --install
```

Install _fastlane_ using
```
[sudo] gem install fastlane -NV
```
or alternatively using `brew cask install fastlane`

# Available Actions
## Android
### android beta
```
fastlane android beta
```
Submit a new Beta Build to AppCenter
### android deploy
```
fastlane android deploy
```

----

This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run.
More information about fastlane can be found on [fastlane.tools](https://fastlane.tools).
The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
