forked from royhodge/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
84 lines (70 loc) · 2 KB
/
Copy pathconfig.php
File metadata and controls
84 lines (70 loc) · 2 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
/**
* YOURCOIN PARAMETERS
*/
class AssetParams
{
const INIT_QTY = 1000;
const ASSET_NAME = "yourcoin";
}
/**
* Explorer Parameters
*/
class ExplorerParams
{
public static $hostName;
public static $PORT;
public static $CHAIN_NAME;
public static $TX_URL_PREFIX;
public static $BLOCK_URL_PREFIX;
public static $ADDRESS_URL_PREFIX;
public static function init(){
self::$hostName = $_SERVER['SERVER_ADDR'];
self::$PORT = "2750";
self::$CHAIN_NAME = "Yobichain";
self::$TX_URL_PREFIX = "http://".self::$hostName.":".self::$PORT."/".self::$CHAIN_NAME."/tx/";
self::$BLOCK_URL_PREFIX = "http://".self::$hostName.":".self::$PORT."/".self::$CHAIN_NAME."/block/";
self::$ADDRESS_URL_PREFIX = "http://".self::$hostName.":".self::$PORT."/".self::$CHAIN_NAME."/address/";
}
}
ExplorerParams::init();
/**
* Web server parameters
*/
class WebServerParams
{
public static $hostName; // IP address or Host Name of the Web Server
const PRIMECHAIN_ROOT_DIR = "apps"; // Root directory of Apps
public static function init(){
self::$hostName = $_SERVER['SERVER_ADDR'];
}
}
WebServerParams::init();
/**
* MULTICHAIN PARAMETERS
*/
class MultichainParams
{
const HOST_NAME = "localhost";
const RPC_PORT = "6820";
const RPC_USER = "multichainrpc";
const RPC_PASSWORD = "CYw4pp91TF3Tm8pNhgbu4hFgZiRQNccbCnGhHXRuhfee";
const MANAGER_ADDRESS = "1Mdqxe9WaiQLKnCorD7Ncu2VxZq9Cefn9qPKR4";
const USER_STREAMS = array(
"USERS_CREDENTIALS" => "users_credentials",
"USERS_DETAILS" => "users_details",
"USERS_ADDRESSES" => "users_addresses",
"USERS_SESSION" => "users_session"
);
const CONTRACT_STREAMS = array(
"CONTRACT_DETAILS" => "contract_details",
"CONTRACT_FILES" => "contract_files",
"CONTRACT_SIGNATURES" => "contract_signatures",
"CONTRACTS_SIGNED" => "contracts_signed",
"CONTRACT_INVITED_SIGNEES" => "contract_invited_signees"
);
const VAULT_STREAMS = array(
"DATA" => "vault"
);
}
?>