1import { isDevelopment } from './flags';
3const CHECK_BLOCK_EVERY_MS = isDevelopment ? 1000 : 5000;
4const DEFAULT_GAS_PRICE_GWEI = 20;
10const MIN_PLANET = 65536;
11const MAX_PLANET = 4294967297;
13const ZOD = MIN_GALAXY;
15const PLANET_ENTROPY_BITS = 64;
16const STAR_ENTROPY_BITS = 128;
17const GALAXY_ENTROPY_BITS = 384;
19const SEED_ENTROPY_BITS = 128;
21// the curve param for the network keys
22const NETWORK_KEY_CURVE_PARAMETER = '42';
23// the null result if a key is unset within azimuth
25 '0x0000000000000000000000000000000000000000000000000000000000000000';
26// the current crypto suite version
27const CRYPTO_SUITE_VERSION = 1;
29//TODO move into azimuth-js
33 CONFIGURE_KEYS: 100000,
36 ESCAPE: 115000, //NOTE low sample size
37 ADOPT: 100000, //NOTE low sample size
38 CANCEL_ESCAPE: 200000, //NOTE no samples
39 REJECT: 200000, //NOTE no samples
40 DETACH: 200000, //NOTE no samples
42 GIFT_PLANET: 400000, //NOTE low sample size
49// TODO: this is walletgen-ui specific, move into a wallet router later
51 ENY_NOSTART: Symbol('ENY_NOSTART'),
52 ENY_PENDING: Symbol('ENY_PENDING'),
53 ENY_SUCCESS: Symbol('ENY_SUCCESS'),
54 ENY_FAILURE: Symbol('ENY_FAILURE'),
55 DERIVATION_NOSTART: Symbol('DERIVATION_NOSTART'),
56 DERIVATION_PENDING: Symbol('DERIVATION_PENDING'),
57 DERIVATION_SUCCESS: Symbol('DERIVATION_SUCCESS'),
58 DERIVATION_FAILURE: Symbol('DERIVATION_FAILURE'),
59 PAPER_NOSTART: Symbol('PAPER_NOSTART'),
60 PAPER_PENDING: Symbol('PAPER_PENDING'),
61 PAPER_SUCCESS: Symbol('PAPER_SUCCESS'),
62 PAPER_FAILURE: Symbol('PAPER_FAILURE'),
65const BUTTON_STATES = {
66 NOSTART: Symbol('NOSTART'),
67 SUCCESS: Symbol('SUCCESS'),
68 ERROR: Symbol('ERROR'),
69 PENDING: Symbol('PENDING'),
72const PROFILE_STATES = {
73 NOSTART: Symbol('NOSTART'),
74 UPLOAD_SUCCESS: Symbol('UPLOAD_SUCCESS'),
75 UPLOAD_ERROR: Symbol('UPLOAD_ERROR'),
76 INPUT_SUCCESS: Symbol('INPUT_SUCCESS'),
77 INPUT_ERROR: Symbol('INPUT_ERROR'),
82 DEFAULT_GAS_PRICE_GWEI,
98 NETWORK_KEY_CURVE_PARAMETER,
100 CRYPTO_SUITE_VERSION,
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list