-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.rc.json.example
executable file
·43 lines (38 loc) · 14.2 KB
/
.env.rc.json.example
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
{
"client": {
"REACT_APP_ONLINE": "srvr.local:3000",
"REACT_APP_ONLINE_PORT": "3000",
"REACT_APP_DB_API": "https://srvr.local:3001",
"REACT_APP_DB_API_PORT": "3001",
"REACT_APP_DB_API_ACCESS_KEY": "KINDA-PUBLIC-SECERET",
"REACT_APP_DB_API_SUB_TLS_RSA_PUBLIC_KEY": "ZY5IElQwWQDV1EUwgtNoxiquknNKO9VskMPMY0xwWsdfsD4OblOjLZfKJEcISgpYVnF5t+A2OteNBY3qNYa2PWpkXPQwAwGnCqDcPYqNCYzgmjUNIe9xSsU4ra25EcvIpvKadALUP7ezGc3rK0p2GEbXJhHYij+7jWBEEKuy9hlNyXI0L+DkSIm7p4eac0XaIii8JQjfoNR0JZbBkAQQgRD1yyAICOPylkLGJExvVnovyBUh1Cb6LAc3SMrTx+mK14oGUrGBp6kABRTQgbV/YeRso+VNKS97oYecNQgQkwemAXXMkJoaejo9cyN0mTZNacxHR3OmVYQlDacrCbnYMw=="
},
"server": {
"SUB_TLS_RSA_ENCRYPTION_LEVEL": 2048,
"SUB_TLS_RSA_PRIVATE_KEY": "6.8000112240",
"REACT_APP_ADMIN": "https://srvr.local:3003",
"REACT_APP_ADMIN_PORT": "3003",
"REACT_APP_ADMIN_API": "https://srvr.local:3002",
"REACT_APP_ADMIN_API_PORT": "3002",
"DB_API_RESULTS_REFRESH_TIME": 2000,
"DB_API_JWT_PRIVATE_KEY": "KINDA-SECRET-SECRET",
"DB_API_JWT_REFRESH_KEY":
"KINDA-REFRESHING-SECERET",
"DB_API_JWT_EXPIRY_TIME": 30,
"DB_API_JWT_REFRESH_TIME": 5,
"DB_API_JWT_TIME_SCALE": "m",
"DB_API_JWT_TIME_SCALE_NUMERIC": 60000,
"DB_API_JWT_ENCRYPTION_ALG": "HS512",
"DB_HOST": "localhost",
"DB_USER": "root",
"DB_PASSWORD": "mypass",
"DB_DATABASE_NAME": "votechain",
"RPC_URL": "http://localhost:8545",
"ETH_ACCOUNT": "0x164c73321a97bd9097bc46fa81157c851a820145",
"ACCOUNT_PRIVATE_KEY": "0xba55ec29f65b3d930c5bded3761d95abdb9d26f6b6c251f29898270cbc08d1f4",
"REACT_APP_CONTRACT_ADDRESS": "0xA604a88171f171A0Df40FF2a2AeDD2D868b76fAe",
"CONTRACT_ABI": "[{\"constant\":false,\"inputs\":[{\"name\":\"_aid\",\"type\":\"uint16\"},{\"name\":\"_to\",\"type\":\"uint8\"}],\"name\":\"transfer_vote\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"string\"},{\"name\":\"_about\",\"type\":\"string\"}],\"name\":\"add_candidate\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"get_candidates\",\"outputs\":[{\"name\":\"\",\"type\":\"string[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_aid\",\"type\":\"uint16\"}],\"name\":\"has_voted\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"get_total_candidates\",\"outputs\":[{\"name\":\"\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_from\",\"type\":\"uint8\"}],\"name\":\"get_votes\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"get_candidates_about\",\"outputs\":[{\"components\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"about\",\"type\":\"string\"},{\"name\":\"votes\",\"type\":\"uint256\"}],\"name\":\"\",\"type\":\"tuple[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"get_all_votes\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"_deployer_name\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"}]",
"CONTRACT_DATA": "0x60806040523480156200001157600080fd5b50604051620014df380380620014df8339810180604052620000379190810190620001c0565b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600390805190602001906200008f929190620000b3565b506000600660006101000a81548160ff021916908360ff1602179055505062000296565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620000f657805160ff191683800117855562000127565b8280016001018555821562000127579182015b828111156200012657825182559160200191906001019062000109565b5b5090506200013691906200013a565b5090565b6200015f91905b808211156200015b57600081600090555060010162000141565b5090565b90565b600082601f83011215156200017657600080fd5b81516200018d620001878262000233565b62000205565b91508082526020830160208301858383011115620001aa57600080fd5b620001b783828462000260565b50505092915050565b600060208284031215620001d357600080fd5b600082015167ffffffffffffffff811115620001ee57600080fd5b620001fc8482850162000162565b91505092915050565b6000604051905081810181811067ffffffffffffffff821117156200022957600080fd5b8060405250919050565b600067ffffffffffffffff8211156200024b57600080fd5b601f19601f8301169050602081019050919050565b60005b838110156200028057808201518184015260208101905062000263565b8381111562000290576000848401525b50505050565b61123980620002a66000396000f3fe608060405260043610610088576000357c01000000000000000000000000000000000000000000000000000000009004806339d0a19a1461008d578063598d29b9146100b65780635d711db1146100df578063896ec58b1461010a578063a37ab6e814610147578063ad99ef9e14610172578063e378bb91146101af578063e5f9e8b3146101da575b600080fd5b34801561009957600080fd5b506100b460048036036100af9190810190610d8e565b610205565b005b3480156100c257600080fd5b506100dd60048036036100d89190810190610cf9565b6102f8565b005b3480156100eb57600080fd5b506100f4610488565b6040516101019190610fe4565b60405180910390f35b34801561011657600080fd5b50610131600480360361012c9190810190610d65565b6105cc565b60405161013e919061104a565b60405180910390f35b34801561015357600080fd5b5061015c61065d565b6040516101699190611080565b60405180910390f35b34801561017e57600080fd5b5061019960048036036101949190810190610dca565b6106d3565b6040516101a69190611065565b60405180910390f35b3480156101bb57600080fd5b506101c4610786565b6040516101d19190611006565b60405180910390f35b3480156101e657600080fd5b506101ef6109fc565b6040516101fc9190611028565b60405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610260576102f4565b600560008361ffff1661ffff16815260200190815260200160002060009054906101000a900460ff1615610293576102f4565b6001600560008461ffff1661ffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600460008260ff1660ff168152602001908152602001600020600201600081548092919060010191905055505b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561035357610484565b61035b610b12565b828160000181905250818160200181905250600081604001818152505080600460006006600081819054906101000a900460ff1660010191906101000a81548160ff021916908360ff160217905560ff1660ff16815260200190815260200160002060008201518160000190805190602001906103d9929190610b34565b5060208201518160010190805190602001906103f6929190610b34565b50604082015181600201559050506001839080600181540180825580915050906001820390600052602060002001600090919290919091509080519060200190610441929190610bb4565b50506002829080600181540180825580915050906001820390600052602060002001600090919290919091509080519060200190610480929190610bb4565b5050505b5050565b60606000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156105c8576001805480602002602001604051908101604052809291908181526020016000905b828210156105bd578382906000526020600020018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105a95780601f1061057e576101008083540402835291602001916105a9565b820191906000526020600020905b81548152906001019060200180831161058c57829003601f168201915b505050505081526020019060010190610501565b5050505090506105c9565b5b90565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561065357600560008361ffff1661ffff16815260200190815260200160002060009054906101000a900460ff169050610658565b600190505b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156106cb57600660009054906101000a900460ff1690506106d0565b600090505b90565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561077c57600660009054906101000a900460ff1660ff168260ff1611158015610752575060008260ff16115b1561077b57600460008360ff1660ff168152602001908152602001600020600201549050610781565b5b600090505b919050565b606080600660009054906101000a900460ff1660ff166040519080825280602002602001820160405280156107d557816020015b6107c2610c34565b8152602001906001900390816107ba5790505b5090506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156109f5576000600190505b600660009054906101000a900460ff1660ff168160ff161115156109f357600460008260ff1660ff16815260200190815260200160002060606040519081016040529081600082018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156109105780601f106108e557610100808354040283529160200191610910565b820191906000526020600020905b8154815290600101906020018083116108f357829003601f168201915b50505050508152602001600182018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156109b25780601f10610987576101008083540402835291602001916109b2565b820191906000526020600020905b81548152906001019060200180831161099557829003601f168201915b50505050508152602001600282015481525050826001830360ff168151811015156109d957fe5b906020019060200201819052508080600101915050610834565b505b8091505090565b606080600660009054906101000a900460ff1660ff16604051908082528060200260200182016040528015610a405781602001602082028038833980820191505090505b5090506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610b0b576000600190505b600660009054906101000a900460ff1660ff168160ff16111515610b0957600460008260ff1660ff16815260200190815260200160002060020154826001830360ff16815181101515610aee57fe5b90602001906020020181815250508080600101915050610a9f565b505b8091505090565b6060604051908101604052806060815260200160608152602001600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610b7557805160ff1916838001178555610ba3565b82800160010185558215610ba3579182015b82811115610ba2578251825591602001919060010190610b87565b5b509050610bb09190610c56565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610bf557805160ff1916838001178555610c23565b82800160010185558215610c23579182015b82811115610c22578251825591602001919060010190610c07565b5b509050610c309190610c56565b5090565b6060604051908101604052806060815260200160608152602001600081525090565b610c7891905b80821115610c74576000816000905550600101610c5c565b5090565b90565b600082601f8301121515610c8e57600080fd5b8135610ca1610c9c826110c8565b61109b565b91508082526020830160208301858383011115610cbd57600080fd5b610cc88382846111ac565b50505092915050565b6000610cdd8235611191565b905092915050565b6000610cf1823561119f565b905092915050565b60008060408385031215610d0c57600080fd5b600083013567ffffffffffffffff811115610d2657600080fd5b610d3285828601610c7b565b925050602083013567ffffffffffffffff811115610d4f57600080fd5b610d5b85828601610c7b565b9150509250929050565b600060208284031215610d7757600080fd5b6000610d8584828501610cd1565b91505092915050565b60008060408385031215610da157600080fd5b6000610daf85828601610cd1565b9250506020610dc085828601610ce5565b9150509250929050565b600060208284031215610ddc57600080fd5b6000610dea84828501610ce5565b91505092915050565b6000610dfe8261111b565b80845260208401935083602082028501610e17856110f4565b60005b84811015610e50578383038852610e32838351610f39565b9250610e3d82611147565b9150602088019750600181019050610e1a565b508196508694505050505092915050565b6000610e6c82611126565b80845260208401935083602082028501610e8585611101565b60005b84811015610ebe578383038852610ea0838351610f6f565b9250610eab82611154565b9150602088019750600181019050610e88565b508196508694505050505092915050565b6000610eda82611131565b808452602084019350610eec8361110e565b60005b82811015610f1e57610f02868351610fc6565b610f0b82611161565b9150602086019550600181019050610eef565b50849250505092915050565b610f338161116e565b82525050565b6000610f448261113c565b808452610f588160208601602086016111bb565b610f61816111ee565b602085010191505092915050565b60006060830160008301518482036000860152610f8c8282610f39565b91505060208301518482036020860152610fa68282610f39565b9150506040830151610fbb6040860182610fc6565b508091505092915050565b610fcf8161117a565b82525050565b610fde81611184565b82525050565b60006020820190508181036000830152610ffe8184610df3565b905092915050565b600060208201905081810360008301526110208184610e61565b905092915050565b600060208201905081810360008301526110428184610ecf565b905092915050565b600060208201905061105f6000830184610f2a565b92915050565b600060208201905061107a6000830184610fc6565b92915050565b60006020820190506110956000830184610fd5565b92915050565b6000604051905081810181811067ffffffffffffffff821117156110be57600080fd5b8060405250919050565b600067ffffffffffffffff8211156110df57600080fd5b601f19601f8301169050602081019050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b60008115159050919050565b6000819050919050565b600060ff82169050919050565b600061ffff82169050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156111d95780820151818401526020810190506111be565b838111156111e8576000848401525b50505050565b6000601f19601f830116905091905056fea265627a7a72305820d9f6cca247c7f08f9c42f251b48f916b893e393ce6c7f1211e57ed4e6a7227826c6578706572696d656e74616cf50037",
"SSL_CERT_PATH": "../"
}
}