-
Notifications
You must be signed in to change notification settings - Fork 4
/
.mocharc.js
55 lines (49 loc) · 2.11 KB
/
.mocharc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
process.env = {
...process.env,
NODE_URL: 'https://testnet.aeternity.io',
MIDDLEWARE_URL: 'https://testnet.aeternity.io',
OLD_CONTRACT_ADDRESS: 'ct_2siQwATqx7TFPr6D7nj4SqAGmkurVSBvRvL8xUfRPS5VZD4y4Y',
CONTRACT_ADDRESS: 'ct_27MiRFPEvT4Ep7Go2P1KL3Gxo3TSDb9s6WjCkc6bkDuy74zqJt',
ORACLE_CONTRACT_ADDRESS: 'ct_2PbBVGroJ2G618tHbWEWRrrxxf1BAn7Qt7BoNcLh3LqsSck8Lu',
TOKEN_REGISTRY_ADDRESS: 'ct_2Ga3mNT8er2zYjGKx7tJggn9nVnYt5UzmH9x9irRV4ayg4sfLL',
AUTHENTICATION_USER: 'admin',
AUTHENTICATION_PASSWORD: 'pass',
NODE_ENV: 'test',
REDIS_URL: 'redis://localhost:6379',
IPFS_URL: 'http://localhost:5001',
MIDDLEWARE_URL: 'https://mainnet.aeternity.io/mdw/'
};
*/
process.env = {
...process.env,
NODE_URL: 'https://testnet.aeternity.io',
AUTHENTICATION_USER: 'admin',
AUTHENTICATION_PASSWORD: 'pass',
NODE_ENV: 'test',
REDIS_PORT: '6379',
REDIS_HOST: 'localhost',
IPFS_URL: 'http://localhost:5001',
ORACLE_CONTRACT_ADDRESS: 'ct_2PbBVGroJ2G618tHbWEWRrrxxf1BAn7Qt7BoNcLh3LqsSck8Lu',
MIDDLEWARE_URL: 'https://testnet.aeternity.io/mdw',
TOKEN_REGISTRY_ADDRESS: 'ct_2Ga3mNT8er2zYjGKx7tJggn9nVnYt5UzmH9x9irRV4ayg4sfLL',
CONTRACT_V1_ADDRESS: 'ct_2Cvbf3NYZ5DLoaNYAU71t67DdXLHeSXhodkSNifhgd7Xsw28Xd',
CONTRACT_V2_ADDRESS: 'ct_2bvoxQ6cwwzoFASuddUxzsYVBZUet9KGHRAp7i25xsMXEWvSvx',
CONTRACT_V3_ADDRESS: 'ct_WscpdLQf6ZZxoVqrsEwUwmuAEdzEkJii5W5TzG84rVgHeK6BW',
WORD_REGISTRY_CONTRACT: 'ct_2vznPSL1yzceQLnqbHC476BoHZipR3jFaK74KnPzgtkCr7beLN',
WEBSOCKET_URL: 'wss://testnet.aeternity.io/mdw/websocket',
ORACLE_GETTER_ADDRESS: 'ct_XabcJUxaZc1w5X4WxD2WUVTLPkZX97HFYzhuwkhQXc4ZzDqDF',
CONTRACT_V1_GETTER_ADDRESS: 'ct_2ixHY4bADzDY6ZYThGixnjYa6w5dtYoSoxtCThWvZ7SGgMGFWL',
CONTRACT_V3_GETTER_ADDRESS: 'ct_414KdQa9is3wiq6AKV7LLk6z2UN3Sy3odmAZtenyYSv35h7fv'
}
// GENERATE KEYPAIR
const { generateKeyPair} = require('@aeternity/aepp-sdk');
const { secretKey, publicKey } = generateKeyPair();
process.env = {
...process.env,
PRIVATE_KEY: secretKey,
PUBLIC_KEY: publicKey,
};
// RESET ALL QUEUES
const queueLogic = require('./modules/queue/logic/queueLogic')
queueLogic.clearRedisQueues().then(() => queueLogic.init())