How to use the ambrosus-node-contracts.constants.HERMES function in ambrosus-node-contracts

To help you get started, we’ve selected a few ambrosus-node-contracts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ambrosus / ambrosus-nop / src / consts.js View on Github external
/*
Copyright: Ambrosus Inc.
Email: tech@ambrosus.com

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

This Source Code Form is “Incompatible With Secondary Licenses”, as defined by the Mozilla Public License, v. 2.0.
*/

import {constants} from 'ambrosus-node-contracts';

export const APOLLO_CODE = constants.APOLLO;
export const HERMES_CODE = constants.HERMES;
export const ATLAS_CODE = constants.ATLAS;
export const NO_ROLE_CODE = constants.NONE;

export const ATLAS_1_STAKE = constants.ATLAS1_STAKE;
export const ATLAS_2_STAKE = constants.ATLAS2_STAKE;
export const ATLAS_3_STAKE = constants.ATLAS3_STAKE;

export const APOLLO = 'Apollo';
export const HERMES = 'Hermes';
export const ATLAS_1 = 'Atlas Zeta';
export const ATLAS_2 = 'Atlas Sigma';
export const ATLAS_3 = 'Atlas Omega';
github ambrosus / ambrosus-nop / src / builder.js View on Github external
objects.checkAddressWhitelistingStatusPhase = checkAddressWhitelistingStatusPhase(objects.smartContractsModel, objects.stateModel, objects.addressIsNotWhitelistedDialog, objects.addressIsWhitelistedDialog);
    objects.performOnboardingPhase = performOnboardingPhase(objects.stateModel, objects.smartContractsModel,
      objects.notEnoughBalanceDialog, objects.alreadyOnboardedDialog, objects.askForApolloDepositDialog, objects.onboardingConfirmationDialog,
      objects.onboardingSuccessfulDialog, objects.insufficientFundsDialog, objects.genericErrorDialog);
    objects.prepareDockerPhase = prepareDockerPhase(objects.stateModel, objects.healthCheckUrlDialog, objects.dockerComposeCommandDialog);
    objects.acceptTosPhase = acceptTosPhase(objects.stateModel, objects.smartContractsModel, objects.acceptTosDialog);

    objects.actions = {
      [messages.actions.changeUrl]: prepareAction(changeUrlAction(
        objects.stateModel,
        objects.rolesWrapper,
        objects.nectarWarningDialog,
        objects.askForNodeUrlDialog,
        objects.changeUrlConfirmationDialog,
        objects.changeUrlSuccessfulDialog),
      [constants.ATLAS, constants.HERMES]
      ),
      [messages.actions.payouts]: prepareAction(payoutAction(
        objects.payoutsActions,
        objects.availablePayoutDialog,
        objects.confirmPayoutWithdrawalDialog,
        objects.withdrawalSuccessfulDialog),
      [constants.ATLAS]
      ),
      [messages.actions.retire]: prepareAction(retireAction(
        objects.atlasModeModel,
        objects.onboardActions,
        objects.confirmRetirementDialog,
        objects.retirementSuccessfulDialog,
        objects.continueAtlasRetirementDialog,
        objects.retirementStartSuccessfulDialog,
        objects.retirementContinueDialog,