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 CANCEL_TRANSFER: 550000, //NOTE: no samples
34 CONFIGURE_KEYS: 100000,
37 ESCAPE: 115000, //NOTE low sample size
38 ADOPT: 100000, //NOTE low sample size
39 CANCEL_ESCAPE: 200000, //NOTE no samples
40 REJECT: 200000, //NOTE no samples
41 DETACH: 200000, //NOTE no samples
43 GIFT_PLANET: 400000, //NOTE low sample size
50// TODO: this is walletgen-ui specific, move into a wallet router later
52 ENY_NOSTART: Symbol('ENY_NOSTART'),
53 ENY_PENDING: Symbol('ENY_PENDING'),
54 ENY_SUCCESS: Symbol('ENY_SUCCESS'),
55 ENY_FAILURE: Symbol('ENY_FAILURE'),
56 DERIVATION_NOSTART: Symbol('DERIVATION_NOSTART'),
57 DERIVATION_PENDING: Symbol('DERIVATION_PENDING'),
58 DERIVATION_SUCCESS: Symbol('DERIVATION_SUCCESS'),
59 DERIVATION_FAILURE: Symbol('DERIVATION_FAILURE'),
60 PAPER_NOSTART: Symbol('PAPER_NOSTART'),
61 PAPER_PENDING: Symbol('PAPER_PENDING'),
62 PAPER_SUCCESS: Symbol('PAPER_SUCCESS'),
63 PAPER_FAILURE: Symbol('PAPER_FAILURE'),
66const BUTTON_STATES = {
67 NOSTART: Symbol('NOSTART'),
68 SUCCESS: Symbol('SUCCESS'),
69 ERROR: Symbol('ERROR'),
70 PENDING: Symbol('PENDING'),
73const PROFILE_STATES = {
74 NOSTART: Symbol('NOSTART'),
75 UPLOAD_SUCCESS: Symbol('UPLOAD_SUCCESS'),
76 UPLOAD_ERROR: Symbol('UPLOAD_ERROR'),
77 INPUT_SUCCESS: Symbol('INPUT_SUCCESS'),
78 INPUT_ERROR: Symbol('INPUT_ERROR'),
83 DEFAULT_GAS_PRICE_GWEI,
99 NETWORK_KEY_CURVE_PARAMETER,
101 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