Skip to content

Commit

Permalink
Merge pull request #1449 from input-output-hk/chore/rename_test_envs
Browse files Browse the repository at this point in the history
chore(e2e): rename some env vars with TEST_* prefix
  • Loading branch information
ginnun authored Aug 28, 2024
2 parents 748ca3d + b641bdb commit 0b14abe
Show file tree
Hide file tree
Showing 13 changed files with 219 additions and 161 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/continuous-integration-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@ env:
# -----------------------------------------------------------------------------------------
KEY_MANAGEMENT_PROVIDER: 'inMemory'
KEY_MANAGEMENT_PARAMS: '{"bip32Ed25519": "Sodium", "accountIndex": 0, "chainId":{"networkId": 0, "networkMagic": 888}, "passphrase":"some_passphrase","mnemonic":"vacant violin soft weird deliver render brief always monitor general maid smart jelly core drastic erode echo there clump dizzy card filter option defense"}'
ASSET_PROVIDER: 'http'
ASSET_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4014/"}'
CHAIN_HISTORY_PROVIDER: 'http'
CHAIN_HISTORY_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
TEST_CLIENT_ASSET_PROVIDER: 'http'
TEST_CLIENT_ASSET_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4014/"}'
TEST_CLIENT_CHAIN_HISTORY_PROVIDER: 'http'
TEST_CLIENT_CHAIN_HISTORY_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
DB_SYNC_CONNECTION_STRING: 'postgresql://postgres:doNoUseThisSecret!@localhost:5435/cexplorer'
HANDLE_PROVIDER: 'http'
HANDLE_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4011/"}'
TEST_CLIENT_HANDLE_PROVIDER: 'http'
TEST_CLIENT_HANDLE_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4011/"}'
STAKE_POOL_CONNECTION_STRING: 'postgresql://postgres:doNoUseThisSecret!@localhost:5435/stake_pool'
STAKE_POOL_TEST_CONNECTION_STRING: 'postgresql://postgres:doNoUseThisSecret!@localhost:5435/stake_pool_test'
NETWORK_INFO_PROVIDER: 'ws'
NETWORK_INFO_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
TEST_CLIENT_NETWORK_INFO_PROVIDER: 'ws'
TEST_CLIENT_NETWORK_INFO_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
OGMIOS_URL: 'ws://localhost:1340/'
REWARDS_PROVIDER: 'http'
REWARDS_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
TX_SUBMIT_PROVIDER: 'http'
TX_SUBMIT_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
UTXO_PROVIDER: 'http'
UTXO_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
STAKE_POOL_PROVIDER: 'http'
STAKE_POOL_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
TEST_CLIENT_REWARDS_PROVIDER: 'http'
TEST_CLIENT_REWARDS_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
TEST_CLIENT_TX_SUBMIT_PROVIDER: 'http'
TEST_CLIENT_TX_SUBMIT_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
TEST_CLIENT_UTXO_PROVIDER: 'http'
TEST_CLIENT_UTXO_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
TEST_CLIENT_STAKE_POOL_PROVIDER: 'http'
TEST_CLIENT_STAKE_POOL_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
WS_PROVIDER_URL: 'http://localhost:4100/ws'

on:
Expand Down
32 changes: 16 additions & 16 deletions packages/e2e/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ KEY_MANAGEMENT_PARAMS='{"bip32Ed25519": "Sodium", "accountIndex": 0, "chainId":{
#KEY_MANAGEMENT_PARAMS='{"bip32Ed25519": "Sodium", "accountIndex": 0, "chainId":{"networkId": 0, "networkMagic": 888}, "passphrase":"some_passphrase","mnemonic":"salon zoo engage submit smile frost later decide wing sight chaos renew lizard rely canal coral scene hobby scare step bus leaf tobacco slice"}'

# Providers setup - required by getWallet
ASSET_PROVIDER=http
ASSET_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4014/"}'
CHAIN_HISTORY_PROVIDER=http
CHAIN_HISTORY_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/"}'
HANDLE_PROVIDER=http
HANDLE_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4011/"}'
NETWORK_INFO_PROVIDER=ws
NETWORK_INFO_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/"}'
REWARDS_PROVIDER=http
REWARDS_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/"}'
TX_SUBMIT_PROVIDER=http
TX_SUBMIT_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/"}'
UTXO_PROVIDER=http
UTXO_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/"}'
STAKE_POOL_PROVIDER=http
STAKE_POOL_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/"}'
TEST_CLIENT_ASSET_PROVIDER=http
TEST_CLIENT_ASSET_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4014/"}'
TEST_CLIENT_CHAIN_HISTORY_PROVIDER=http
TEST_CLIENT_CHAIN_HISTORY_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/"}'
TEST_CLIENT_HANDLE_PROVIDER=http
TEST_CLIENT_HANDLE_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4011/"}'
TEST_CLIENT_NETWORK_INFO_PROVIDER=ws
TEST_CLIENT_NETWORK_INFO_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/"}'
TEST_CLIENT_REWARDS_PROVIDER=http
TEST_CLIENT_REWARDS_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/"}'
TEST_CLIENT_TX_SUBMIT_PROVIDER=http
TEST_CLIENT_TX_SUBMIT_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/"}'
TEST_CLIENT_UTXO_PROVIDER=http
TEST_CLIENT_UTXO_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/"}'
TEST_CLIENT_STAKE_POOL_PROVIDER=http
TEST_CLIENT_STAKE_POOL_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/"}'
WS_PROVIDER_URL='ws://localhost:4100/ws'

# Required by test:ogmios, test:blockfrost
Expand Down
64 changes: 32 additions & 32 deletions packages/e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,22 +131,22 @@ LOGGER_MIN_SEVERITY=info
# Providers setup
KEY_MANAGEMENT_PROVIDER=inMemory
KEY_MANAGEMENT_PARAMS='{"accountIndex": 0, "chainId":{"networkId": 0, "networkMagic": 888}, "passphrase":"some_passphrase","mnemonic":""}'
ASSET_PROVIDER=http
ASSET_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000"}'
CHAIN_HISTORY_PROVIDER=http
CHAIN_HISTORY_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000"}'
NETWORK_INFO_PROVIDER=http
NETWORK_INFO_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000"}'
REWARDS_PROVIDER=http
REWARDS_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000"}'
TX_SUBMIT_PROVIDER=http
TX_SUBMIT_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000"}'
UTXO_PROVIDER=http
UTXO_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000"}'
STAKE_POOL_PROVIDER=stub
STAKE_POOL_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000"}'
HANDLE_PROVIDER=kora-labs
HANDLE_PROVIDER_PARAMS='{"serverUrl":"http://localhost:4000","policyId":""}'
TEST_CLIENT_ASSET_PROVIDER=http
TEST_CLIENT_ASSET_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000"}'
TEST_CLIENT_CHAIN_HISTORY_PROVIDER=http
TEST_CLIENT_CHAIN_HISTORY_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000"}'
TEST_CLIENT_NETWORK_INFO_PROVIDER=http
TEST_CLIENT_NETWORK_INFO_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000"}'
TEST_CLIENT_REWARDS_PROVIDER=http
TEST_CLIENT_REWARDS_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000"}'
TEST_CLIENT_TX_SUBMIT_PROVIDER=http
TEST_CLIENT_TX_SUBMIT_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000"}'
TEST_CLIENT_UTXO_PROVIDER=http
TEST_CLIENT_UTXO_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000"}'
TEST_CLIENT_STAKE_POOL_PROVIDER=stub
TEST_CLIENT_STAKE_POOL_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000"}'
TEST_CLIENT_HANDLE_PROVIDER=kora-labs
TEST_CLIENT_HANDLE_PROVIDER_PARAMS='{"serverUrl":"http://localhost:4000","policyId":""}'
```

> :information_source: Notice that `KEY_MANAGEMENT_PARAMS.mnemonic` property is empty, if you leave this empty on the **local network's** e2e tests a new set of random mnemonics will be generated for you, this is the recommended way of setting up e2e tests on this network.
Expand All @@ -170,22 +170,22 @@ LOGGER_MIN_SEVERITY=debug
# Providers setup
KEY_MANAGEMENT_PROVIDER=inMemory
KEY_MANAGEMENT_PARAMS='{"accountIndex": 0, "chainId":{"networkId": 0, "networkMagic": 888}, "passphrase":"some_passphrase","mnemonic":"vacant violin soft weird deliver render brief always monitor general maid smart jelly core drastic erode echo there clump dizzy card filter option defense"}'
ASSET_PROVIDER=http
ASSET_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/asset"}'
CHAIN_HISTORY_PROVIDER=http
CHAIN_HISTORY_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/chain-history"}'
HANDLE_PROVIDER=kora-labs
HANDLE_PROVIDER_PARAMS='{"serverUrl":"http://localhost:4000","policyId":""}'
NETWORK_INFO_PROVIDER=http
NETWORK_INFO_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/network-info"}'
REWARDS_PROVIDER=http
REWARDS_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/rewards"}'
TX_SUBMIT_PROVIDER=http
TX_SUBMIT_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/tx-submit"}'
UTXO_PROVIDER=http
UTXO_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/utxo"}'
STAKE_POOL_PROVIDER=http
STAKE_POOL_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/stake-pool"}'
TEST_CLIENT_ASSET_PROVIDER=http
TEST_CLIENT_ASSET_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/asset"}'
TEST_CLIENT_CHAIN_HISTORY_PROVIDER=http
TEST_CLIENT_CHAIN_HISTORY_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/chain-history"}'
TEST_CLIENT_HANDLE_PROVIDER=kora-labs
TEST_CLIENT_HANDLE_PROVIDER_PARAMS='{"serverUrl":"http://localhost:4000","policyId":""}'
TEST_CLIENT_NETWORK_INFO_PROVIDER=http
TEST_CLIENT_NETWORK_INFO_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/network-info"}'
TEST_CLIENT_REWARDS_PROVIDER=http
TEST_CLIENT_REWARDS_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/rewards"}'
TEST_CLIENT_TX_SUBMIT_PROVIDER=http
TEST_CLIENT_TX_SUBMIT_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/tx-submit"}'
TEST_CLIENT_UTXO_PROVIDER=http
TEST_CLIENT_UTXO_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/utxo"}'
TEST_CLIENT_STAKE_POOL_PROVIDER=http
TEST_CLIENT_STAKE_POOL_PROVIDER_PARAMS='{"baseUrl":"http://localhost:4000/stake-pool"}'
```

Expand Down
64 changes: 32 additions & 32 deletions packages/e2e/src/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,33 +79,33 @@ const providerParams = makeValidator((value) => {
const validators = {
ADDRESS_DISCOVERY: str({ default: 'HDSequentialDiscovery' }),
ARRIVAL_PHASE_DURATION_IN_SECS: num(),
ASSET_PROVIDER: str(),
ASSET_PROVIDER_PARAMS: providerParams(),
CHAIN_HISTORY_PROVIDER: str(),
CHAIN_HISTORY_PROVIDER_PARAMS: providerParams(),
DB_SYNC_CONNECTION_STRING: str({ default: undefined }),
HANDLE_PROVIDER: str(),
HANDLE_PROVIDER_PARAMS: providerParams(),
KEY_MANAGEMENT_PARAMS: keyManagementParams(),
KEY_MANAGEMENT_PROVIDER: str(),
LOGGER_MIN_SEVERITY: str({ default: 'info' }),
NETWORK_INFO_PROVIDER: str(),
NETWORK_INFO_PROVIDER_PARAMS: providerParams(),
NETWORK_SPEED: str({ choices: ['fast', 'slow'], default: 'fast' }),
OGMIOS_URL: str(),
REWARDS_PROVIDER: str(),
REWARDS_PROVIDER_PARAMS: providerParams(),
STAKE_POOL_CONNECTION_STRING: str(),
STAKE_POOL_PROVIDER: str(),
STAKE_POOL_PROVIDER_PARAMS: providerParams(),
STAKE_POOL_TEST_CONNECTION_STRING: str(),
START_LOCAL_HTTP_SERVER: bool(),
TEST_CLIENT_ASSET_PROVIDER: str(),
TEST_CLIENT_ASSET_PROVIDER_PARAMS: providerParams(),
TEST_CLIENT_CHAIN_HISTORY_PROVIDER: str(),
TEST_CLIENT_CHAIN_HISTORY_PROVIDER_PARAMS: providerParams(),
TEST_CLIENT_HANDLE_PROVIDER: str(),
TEST_CLIENT_HANDLE_PROVIDER_PARAMS: providerParams(),
TEST_CLIENT_NETWORK_INFO_PROVIDER: str(),
TEST_CLIENT_NETWORK_INFO_PROVIDER_PARAMS: providerParams(),
TEST_CLIENT_REWARDS_PROVIDER: str(),
TEST_CLIENT_REWARDS_PROVIDER_PARAMS: providerParams(),
TEST_CLIENT_STAKE_POOL_PROVIDER: str(),
TEST_CLIENT_STAKE_POOL_PROVIDER_PARAMS: providerParams(),
TEST_CLIENT_TX_SUBMIT_PROVIDER: str(),
TEST_CLIENT_TX_SUBMIT_PROVIDER_PARAMS: providerParams(),
TEST_CLIENT_UTXO_PROVIDER: str(),
TEST_CLIENT_UTXO_PROVIDER_PARAMS: providerParams(),
TRANSACTIONS_NUMBER: num(),
TX_SUBMIT_HTTP_URL: str(),
TX_SUBMIT_PROVIDER: str(),
TX_SUBMIT_PROVIDER_PARAMS: providerParams(),
UTXO_PROVIDER: str(),
UTXO_PROVIDER_PARAMS: providerParams(),
VIRTUAL_USERS_COUNT: num(),
VIRTUAL_USERS_GENERATE_DURATION: num(),
WALLET_SYNC_TIMEOUT_IN_MS: num({ default: undefined }),
Expand Down Expand Up @@ -141,25 +141,25 @@ export const getEnv = <V extends readonly Validator[]>(

/** Collection of all the configuration variables required by `getWallet` */
export const walletVariables = [
'ASSET_PROVIDER',
'ASSET_PROVIDER_PARAMS',
'CHAIN_HISTORY_PROVIDER',
'CHAIN_HISTORY_PROVIDER_PARAMS',
'HANDLE_PROVIDER',
'HANDLE_PROVIDER_PARAMS',
'TEST_CLIENT_ASSET_PROVIDER',
'TEST_CLIENT_ASSET_PROVIDER_PARAMS',
'TEST_CLIENT_CHAIN_HISTORY_PROVIDER',
'TEST_CLIENT_CHAIN_HISTORY_PROVIDER_PARAMS',
'TEST_CLIENT_HANDLE_PROVIDER',
'TEST_CLIENT_HANDLE_PROVIDER_PARAMS',
'KEY_MANAGEMENT_PARAMS',
'KEY_MANAGEMENT_PROVIDER',
'LOGGER_MIN_SEVERITY',
'NETWORK_INFO_PROVIDER',
'NETWORK_INFO_PROVIDER_PARAMS',
'REWARDS_PROVIDER',
'REWARDS_PROVIDER_PARAMS',
'STAKE_POOL_PROVIDER',
'STAKE_POOL_PROVIDER_PARAMS',
'TX_SUBMIT_PROVIDER',
'TX_SUBMIT_PROVIDER_PARAMS',
'UTXO_PROVIDER',
'UTXO_PROVIDER_PARAMS',
'TEST_CLIENT_NETWORK_INFO_PROVIDER',
'TEST_CLIENT_NETWORK_INFO_PROVIDER_PARAMS',
'TEST_CLIENT_REWARDS_PROVIDER',
'TEST_CLIENT_REWARDS_PROVIDER_PARAMS',
'TEST_CLIENT_STAKE_POOL_PROVIDER',
'TEST_CLIENT_STAKE_POOL_PROVIDER_PARAMS',
'TEST_CLIENT_TX_SUBMIT_PROVIDER',
'TEST_CLIENT_TX_SUBMIT_PROVIDER_PARAMS',
'TEST_CLIENT_UTXO_PROVIDER',
'TEST_CLIENT_UTXO_PROVIDER_PARAMS',
'WS_PROVIDER_URL',
'ADDRESS_DISCOVERY',
'NETWORK_SPEED'
Expand Down
84 changes: 58 additions & 26 deletions packages/e2e/src/factories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,37 +351,53 @@ export const getWallet = async (props: GetWalletProps) => {
env.ADDRESS_DISCOVERY,
{
chainHistoryProvider: await chainHistoryProviderFactory.create(
env.CHAIN_HISTORY_PROVIDER,
env.CHAIN_HISTORY_PROVIDER_PARAMS,
env.TEST_CLIENT_CHAIN_HISTORY_PROVIDER,
env.TEST_CLIENT_CHAIN_HISTORY_PROVIDER_PARAMS,
logger
)
},
logger
),
assetProvider: await assetProviderFactory.create(env.ASSET_PROVIDER, env.ASSET_PROVIDER_PARAMS, logger),
assetProvider: await assetProviderFactory.create(
env.TEST_CLIENT_ASSET_PROVIDER,
env.TEST_CLIENT_ASSET_PROVIDER_PARAMS,
logger
),
chainHistoryProvider: await chainHistoryProviderFactory.create(
env.CHAIN_HISTORY_PROVIDER,
env.CHAIN_HISTORY_PROVIDER_PARAMS,
env.TEST_CLIENT_CHAIN_HISTORY_PROVIDER,
env.TEST_CLIENT_CHAIN_HISTORY_PROVIDER_PARAMS,
logger
),
handleProvider: await handleProviderFactory.create(
env.TEST_CLIENT_HANDLE_PROVIDER,
env.TEST_CLIENT_HANDLE_PROVIDER_PARAMS,
logger
),
handleProvider: await handleProviderFactory.create(env.HANDLE_PROVIDER, env.HANDLE_PROVIDER_PARAMS, logger),
networkInfoProvider: await networkInfoProviderFactory.create(
env.NETWORK_INFO_PROVIDER,
env.NETWORK_INFO_PROVIDER_PARAMS,
env.TEST_CLIENT_NETWORK_INFO_PROVIDER,
env.TEST_CLIENT_NETWORK_INFO_PROVIDER_PARAMS,
logger
),
rewardsProvider: await rewardsProviderFactory.create(
env.TEST_CLIENT_REWARDS_PROVIDER,
env.TEST_CLIENT_REWARDS_PROVIDER_PARAMS,
logger
),
rewardsProvider: await rewardsProviderFactory.create(env.REWARDS_PROVIDER, env.REWARDS_PROVIDER_PARAMS, logger),
stakePoolProvider: await stakePoolProviderFactory.create(
env.STAKE_POOL_PROVIDER,
env.STAKE_POOL_PROVIDER_PARAMS,
env.TEST_CLIENT_STAKE_POOL_PROVIDER,
env.TEST_CLIENT_STAKE_POOL_PROVIDER_PARAMS,
logger
),
txSubmitProvider: await txSubmitProviderFactory.create(
env.TX_SUBMIT_PROVIDER,
env.TX_SUBMIT_PROVIDER_PARAMS,
env.TEST_CLIENT_TX_SUBMIT_PROVIDER,
env.TEST_CLIENT_TX_SUBMIT_PROVIDER_PARAMS,
logger
),
utxoProvider: await utxoProviderFactory.create(env.UTXO_PROVIDER, env.UTXO_PROVIDER_PARAMS, logger)
utxoProvider: await utxoProviderFactory.create(
env.TEST_CLIENT_UTXO_PROVIDER,
env.TEST_CLIENT_UTXO_PROVIDER_PARAMS,
logger
)
};
const envKeyParams = customKeyParams ? customKeyParams : env.KEY_MANAGEMENT_PARAMS;
const keyManagementParams = { ...envKeyParams, ...(idx === undefined ? {} : { accountIndex: idx }) };
Expand Down Expand Up @@ -430,30 +446,46 @@ export const getWallet = async (props: GetWalletProps) => {
export const getSharedWallet = async (props: GetSharedWalletProps) => {
const { env, logger, name, polling, stores, paymentScript, stakingScript, witnesser } = props;
const providers = {
assetProvider: await assetProviderFactory.create(env.ASSET_PROVIDER, env.ASSET_PROVIDER_PARAMS, logger),
assetProvider: await assetProviderFactory.create(
env.TEST_CLIENT_ASSET_PROVIDER,
env.TEST_CLIENT_ASSET_PROVIDER_PARAMS,
logger
),
chainHistoryProvider: await chainHistoryProviderFactory.create(
env.CHAIN_HISTORY_PROVIDER,
env.CHAIN_HISTORY_PROVIDER_PARAMS,
env.TEST_CLIENT_CHAIN_HISTORY_PROVIDER,
env.TEST_CLIENT_CHAIN_HISTORY_PROVIDER_PARAMS,
logger
),
handleProvider: await handleProviderFactory.create(
env.TEST_CLIENT_HANDLE_PROVIDER,
env.TEST_CLIENT_HANDLE_PROVIDER_PARAMS,
logger
),
handleProvider: await handleProviderFactory.create(env.HANDLE_PROVIDER, env.HANDLE_PROVIDER_PARAMS, logger),
networkInfoProvider: await networkInfoProviderFactory.create(
env.NETWORK_INFO_PROVIDER,
env.NETWORK_INFO_PROVIDER_PARAMS,
env.TEST_CLIENT_NETWORK_INFO_PROVIDER,
env.TEST_CLIENT_NETWORK_INFO_PROVIDER_PARAMS,
logger
),
rewardsProvider: await rewardsProviderFactory.create(
env.TEST_CLIENT_REWARDS_PROVIDER,
env.TEST_CLIENT_REWARDS_PROVIDER_PARAMS,
logger
),
rewardsProvider: await rewardsProviderFactory.create(env.REWARDS_PROVIDER, env.REWARDS_PROVIDER_PARAMS, logger),
stakePoolProvider: await stakePoolProviderFactory.create(
env.STAKE_POOL_PROVIDER,
env.STAKE_POOL_PROVIDER_PARAMS,
env.TEST_CLIENT_STAKE_POOL_PROVIDER,
env.TEST_CLIENT_STAKE_POOL_PROVIDER_PARAMS,
logger
),
txSubmitProvider: await txSubmitProviderFactory.create(
env.TX_SUBMIT_PROVIDER,
env.TX_SUBMIT_PROVIDER_PARAMS,
env.TEST_CLIENT_TX_SUBMIT_PROVIDER,
env.TEST_CLIENT_TX_SUBMIT_PROVIDER_PARAMS,
logger
),
utxoProvider: await utxoProviderFactory.create(env.UTXO_PROVIDER, env.UTXO_PROVIDER_PARAMS, logger)
utxoProvider: await utxoProviderFactory.create(
env.TEST_CLIENT_UTXO_PROVIDER,
env.TEST_CLIENT_UTXO_PROVIDER_PARAMS,
logger
)
};
const wallet = createSharedWallet(
{ name, polling },
Expand Down
Loading

0 comments on commit 0b14abe

Please sign in to comment.