Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/v2/environments"

Index

Type aliases

AliasEnvironmentName

AliasEnvironmentName: "production" | "msProd" | "msTest" | "msDev" | "msLatest"

EnvironmentName

EnvironmentName: "prod" | "staging" | "test" | "dev" | "latest" | "local" | "localNonSecure" | "mock" | "adminProd" | "adminTest" | "adminDev" | "adminLatest" | "custom"

Environments

Environments: object

Type declaration

Variables

Const hardcodedPublicKeys

hardcodedPublicKeys: object = Object.freeze({serverXpub: {prod:'xpub661MyMwAqRbcEtUgu9HF8ai4ipuVKKHBzUqks4jSFypW8dwwQL1zygLgQx99NmC7zJJznSiwKG6RQfVjAKMtCsx8VjR6kQW8x7HrkXFZdnQ',test:'xpub661MyMwAqRbcErFqVXGiUFv9YeoPbhN72UiNCUdj9nj3T6M8h7iKNmbCYpMVWVZP7LA2ma3HWcPngz1gRTm4FPdtm9mHfrNvU93MCoszsGL',},hsmXpub: {prod:'xpub661MyMwAqRbcGEtTFgMAoxMFoqsRdDaiaR63byNfZdV7cBZFvovQSNJ5bpyeoQtuKVgXBk6sFQ7TtvyWqadt41DnKwveYgM5KoU2EKYjdY2',test:'xpub661MyMwAqRbcGFKe4Bqvk4Sgric4gNFC8pUbw4tUkVjZxubjCA522gPzc1YaXb3bQVmDWc7CjG8AGNWRpcdAU38RETBh8n2bnqEU4kbV4oK',dev:'xpub661MyMwAqRbcFWzoz8qnYRDYEFQpPLYwxVFoG6WLy3ck5ZupRGJTG4ju6yGb7Dj3ey6GsC4kstLRER2nKzgjLtmxyPgC4zHy7kVhUt6yfGn',},})

Type declaration

Object literals

Const AliasEnvironments

AliasEnvironments: object

msDev

msDev: "dev" = "dev"

msLatest

msLatest: "latest" = "latest"

msProd

msProd: "prod" = "prod"

msTest

msTest: "test" = "test"

production

production: "prod" = "prod"

Const Environments

Environments: object

adminDev

adminDev: EnvironmentTemplate & object = Object.assign({}, devBase, {uri: 'https://admin.bitgo-dev.com',stellarFederationServerUrl: 'https://admin.bitgo-dev.com/api/v2/txlm/federation',})

adminLatest

adminLatest: EnvironmentTemplate & object = Object.assign({}, devBase, {uri: 'https://admin.bitgo-latest.com',stellarFederationServerUrl: 'https://admin.bitgo-latest.com/api/v2/xlm/federation',})

adminProd

adminProd: EnvironmentTemplate & object = Object.assign({}, mainnetBase, {uri: 'https://admin.bitgo.com',stellarFederationServerUrl: 'https://admin.bitgo.com/api/v2/xlm/federation',})

adminTest

adminTest: EnvironmentTemplate & object = Object.assign({}, testnetBase, {uri: 'https://admin.bitgo-test.com',stellarFederationServerUrl: 'https://admin.bitgo-test.com/api/v2/txlm/federation',})

custom

custom: EnvironmentTemplate & object = Object.assign({}, mainnetBase, {// eslint-disable-next-line @typescript-eslint/no-non-null-assertionuri: process.env.BITGO_CUSTOM_ROOT_URI!,networks: {btc: bitcoin.networks.bitcoin,tbtc: bitcoin.networks.testnet,},network: process.env.BITGO_CUSTOM_BITCOIN_NETWORK as V1Network,rmgNetwork: process.env.BITGO_CUSTOM_RMG_NETWORK as V1RmgNetwork,hsmXpub: hardcodedPublicKeys.hsmXpub.dev,smartBitApiBaseUrl:process.env.BITGO_CUSTOM_BITCOIN_NETWORK !== 'bitcoin'? 'https://testnet-api.smartbit.com.au/v1': 'https://api.smartbit.com.au/v1',bchExplorerBaseUrl:process.env.BITGO_CUSTOM_BITCOIN_NETWORK !== 'bitcoin'? 'https://test-bch-insight.bitpay.com/api': 'https://blockdozer.com/insight-api',btgExplorerBaseUrl: process.env.BITGO_CUSTOM_BITCOIN_NETWORK !== 'bitcoin' ? null : 'https://btgexplorer.com/api',ltcExplorerBaseUrl:process.env.BITGO_CUSTOM_LITECOIN_NETWORK !== 'litecoin'? 'http://explorer.litecointools.com/api': 'https://insight.litecore.io/api',etherscanBaseUrl:process.env.BITGO_CUSTOM_ETHEREUM_NETWORK !== 'ethereum'? 'https://kovan.etherscan.io': 'https://api.etherscan.io',zecExplorerBaseUrl:process.env.BITGO_CUSTOM_ZCASH_NETWORK !== 'zcash'? 'https://explorer.testnet.z.cash/api': 'https://zcashnetwork.info/api',dashExplorerBaseUrl:process.env.BITGO_CUSTOM_DASH_NETWORK !== 'dash'? 'https://testnet-insight.dashevo.org/insight-api': 'https://insight.dash.org/insight-api',stellarFederationServerUrl:process.env.BITGO_CUSTOM_STELLAR_NETWORK !== 'stellar'? `https://${process.env.BITGO_CUSTOM_ROOT_URI}/api/v2/txlm/federation`: `https://${process.env.BITGO_CUSTOM_ROOT_URI}/api/v2/xlm/federation`,serverXpub:process.env.BITGO_CUSTOM_BITCOIN_NETWORK !== 'bitcoin'? hardcodedPublicKeys.serverXpub.test: hardcodedPublicKeys.serverXpub.prod,})

dev

dev: EnvironmentTemplate & object = Object.assign({}, devBase, {uri: 'https://app.bitgo-dev.com',stellarFederationServerUrl: 'https://app.bitgo-dev.com/api/v2/txlm/federation',})

latest

latest: EnvironmentTemplate & object = Object.assign({}, devBase, {uri: 'https://app.bitgo-latest.com',stellarFederationServerUrl: 'https://app.bitgo-latest.com/api/v2/xlm/federation',})

local

local: EnvironmentTemplate & object = Object.assign({}, devBase, {uri: 'https://localhost:3000',stellarFederationServerUrl: 'https://localhost:3000/api/v2/txlm/federation',})

localNonSecure

localNonSecure: EnvironmentTemplate & object = Object.assign({}, devBase, {uri: 'http://localhost:3000',stellarFederationServerUrl: 'http://localhost:3000/api/v2/txlm/federation',})

mock

mock: EnvironmentTemplate & object = Object.assign({}, devBase, {uri: 'https://bitgo.fakeurl',smartBitApiBaseUrl: 'https://testnet-api.smartbit.fakeurl/v1',bchExplorerBaseUrl: 'https://test-bch-insight.bitpay.fakeurl/api',stellarFederationServerUrl: 'https://bitgo.fakeurl/api/v2/txlm/federation',etherscanBaseUrl: 'https://kovan.etherscan.fakeurl',etherscanApiToken: process.env.ETHERSCAN_API_TOKEN,ltcExplorerBaseUrl: 'http://explorer.litecointools.fakeurl/api',zecExplorerBaseUrl: 'https://explorer.testnet.z.fakeurl/api',dashExplorerBaseUrl: 'https://testnet-insight.dashevo.fakeurl/insight-api',})

prod

prod: EnvironmentTemplate & object = Object.assign({}, mainnetBase, {uri: 'https://app.bitgo.com',stellarFederationServerUrl: 'https://app.bitgo.com/api/v2/xlm/federation',})

staging

staging: EnvironmentTemplate & object = Object.assign({}, mainnetBase, {uri: 'https://staging.bitgo.com',stellarFederationServerUrl: 'https://staging.bitgo.com/api/v2/xlm/federation',})

test

test: EnvironmentTemplate & object = Object.assign({}, testnetBase, {uri: 'https://app.bitgo-test.com',stellarFederationServerUrl: 'https://app.bitgo-test.com/api/v2/txlm/federation',})

Generated using TypeDoc