-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpackage.json
181 lines (181 loc) · 11.1 KB
/
package.json
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
{
"name": "nahmii-contracts",
"version": "1.5.0",
"description": "Smart contracts for nahmii",
"main": "truffle.js",
"directories": {
"test": "test"
},
"scripts": {
"build": "node --max-old-space-size=2048 node_modules/truffle/build/cli.bundled.js compile",
"build:all": "node --max-old-space-size=2048 node_modules/truffle/build/cli.bundled.js compile --all",
"clean:contract-abstractions": "rm -f build/contracts/*",
"clean:events": "rm -f events/*",
"deploy": "npm run deploy:test",
"deploy:ci": "truffle migrate",
"deploy:ganache": "npm run build && truffle migrate --network ganache",
"deploy:ganache-cli": "npm run build && truffle migrate --network ganache-cli",
"deploy-reset:ganache-cli": "npm run build && truffle migrate --reset --network ganache-cli",
"deploy:main": "truffle migrate --network mainnet",
"deploy:test": "truffle migrate --network testnet",
"docs": "soldoc",
"exec:add-signer": "truffle exec scripts/truffle/add-signer.js",
"exec:check:ropsten": "truffle exec scripts/truffle/check.js --network ropsten-infura",
"exec:compare-client-fund": "truffle exec scripts/truffle/compare-client-fund.js",
"exec:compose-scenarios": "node scripts/node/compose-scenarios.js",
"exec:deploy-testerc20": "truffle exec scripts/truffle/deploy-testerc20.js",
"exec:execute-scenarios": "node scripts/node/execute-scenarios.js",
"exec:export-client-fund:mainnet": "truffle exec scripts/truffle/export-client-fund.js --network mainnet-infura",
"exec:export-client-fund:ropsten": "truffle exec scripts/truffle/export-client-fund.js --network ropsten-infura",
"exec:export-driip-settlement-by-payment:mainnet": "truffle exec scripts/truffle/export-driip-settlement-by-payment.js --network mainnet-infura",
"exec:export-driip-settlement-by-payment:ropsten": "truffle exec scripts/truffle/export-driip-settlement-by-payment.js --network ropsten-infura",
"exec:export-driip-settlement-challenge-by-payment:mainnet": "truffle exec scripts/truffle/export-driip-settlement-challenge-by-payment.js --network mainnet-infura",
"exec:export-driip-settlement-challenge-by-payment:ropsten": "truffle exec scripts/truffle/export-driip-settlement-challenge-by-payment.js --network ropsten-infura",
"exec:export-driip-settlement-challenge-state:mainnet": "truffle exec scripts/truffle/export-driip-settlement-challenge-state.js --network mainnet-infura",
"exec:export-driip-settlement-challenge-state:ropsten": "truffle exec scripts/truffle/export-driip-settlement-challenge-state.js --network ropsten-infura",
"exec:export-driip-settlement-dispute-by-payment:mainnet": "truffle exec scripts/truffle/export-driip-settlement-dispute-by-payment.js --network mainnet-infura",
"exec:export-driip-settlement-state:mainnet": "truffle exec scripts/truffle/export-driip-settlement-state.js --network mainnet-infura",
"exec:export-driip-settlement-state:ropsten": "truffle exec scripts/truffle/export-driip-settlement-state.js --network ropsten-infura",
"exec:export-null-settlement-state:mainnet": "truffle exec scripts/truffle/export-null-settlement-state.js --network mainnet-infura",
"exec:export-null-settlement-state:ropsten": "truffle exec scripts/truffle/export-null-settlement-state.js --network ropsten-infura",
"exec:export-null-settlement:mainnet": "truffle exec scripts/truffle/export-null-settlement.js --network mainnet-infura",
"exec:export-null-settlement:ropsten": "truffle exec scripts/truffle/export-null-settlement.js --network ropsten-infura",
"exec:export-null-settlement-challenge-by-payment:mainnet": "truffle exec scripts/truffle/export-null-settlement-challenge-by-payment.js --network mainnet-infura",
"exec:export-null-settlement-challenge-by-payment:ropsten": "truffle exec scripts/truffle/export-null-settlement-challenge-by-payment.js --network ropsten-infura",
"exec:export-null-settlement-challenge-state:mainnet": "truffle exec scripts/truffle/export-null-settlement-challenge-state.js --network mainnet-infura",
"exec:export-null-settlement-challenge-state:ropsten": "truffle exec scripts/truffle/export-null-settlement-challenge-state.js --network ropsten-infura",
"exec:export-payments:mainnet": "concurrently --raw --success first --kill-others 'kubectl port-forward trade-db-0 27017:27017' 'sleep 2 && mongo omphalos scripts/mongodb/aggregate-payments.js > tmp.json && mkdir -p state/export/offchain && tail -n +5 tmp.json > state/export/offchain/payments.json && rm -f tmp.json'",
"exec:export-payments:ropsten": "concurrently --raw --success first --kill-others 'kubectl port-forward trade-db-0 27017:27017 -n test' 'sleep 2 && mongo omphalos scripts/mongodb/aggregate-payments.js > tmp.json && mkdir -p state/export/offchain && tail -n +5 tmp.json > state/export/offchain/payments.json && rm -f tmp.json'",
"exec:export-settlements:mainnet": "npm run exec:export-driip-settlement-by-payment:mainnet && npm run exec:export-driip-settlement-challenge-by-payment:mainnet && npm run exec:export-null-settlement:mainnet && npm run exec:export-null-settlement-challenge-by-payment:mainnet",
"exec:export-settlements:ropsten": "npm run exec:export-driip-settlement-by-payment:ropsten && npm run exec:export-driip-settlement-challenge-by-payment:ropsten && npm run exec:export-null-settlement:ropsten && npm run exec:export-null-settlement-challenge-by-payment:ropsten",
"exec:ganache-cli": "ganache-cli -l 8000000 -e 10000",
"exec:import-driip-settlement-state:mainnet": "truffle exec scripts/truffle/import-driip-settlement-state.js --network mainnet-hubii",
"exec:import-null-settlement-state:mainnet": "truffle exec scripts/truffle/import-null-settlement-state.js --network mainnet-hubii",
"exec:mint-erc20-tokens": "truffle exec scripts/truffle/mint-erc20-tokens.js",
"exec:register-currency": "truffle exec scripts/truffle/register-currency.js",
"exec:release-nii-tokens": "truffle exec scripts/truffle/release-nii-tokens.js",
"exec:script:mainnet": "npm run build && truffle exec scripts/truffle/script-template.js --network mainnet-infura",
"exec:script:ropsten": "npm run build && truffle exec scripts/truffle/script-template.js --network ropsten-infura",
"exec:update-require-messages": "node scripts/node/update-require-messages",
"exec:upgrade-state": "truffle exec scripts/truffle/upgrade-state.js",
"postinstall": "if [ -d '../../node_modules' ]; then cd ../..; else cd .; fi; npm explore truffle -- npm install [email protected]; cd -; npm dedupe",
"pretest": "npm run exec:update-require-messages",
"sample:events": "concurrently --raw --success first --kill-others 'ganache-cli -l 8000000 -e 1000 >/dev/null' 'npm run build && truffle test ./sample/*.js'",
"symlink:contract-abstractions": "npm run symlink:contract-abstractions-contracts && npm run symlink:contract-abstractions-events",
"symlink:contract-abstractions-contracts": "rm -rf build/contracts && mkdir -p build && ln -vs $(pwd)/node_modules/nahmii-contract-abstractions/build/contracts build/contracts",
"symlink:contract-abstractions-events": "rm -rf events && ln -vs $(pwd)/node_modules/nahmii-contract-abstractions/events events",
"symlink:contract-abstractions-ropsten": "npm run symlink:contract-abstractions-ropsten-contracts && npm run symlink:contract-abstractions-ropsten-events",
"symlink:contract-abstractions-ropsten-contracts": "rm -rf build/contracts && mkdir -p build && ln -vs $(pwd)/node_modules/nahmii-contract-abstractions-ropsten/build/contracts build/contracts",
"symlink:contract-abstractions-ropsten-events": "rm -rf events && ln -vs $(pwd)/node_modules/nahmii-contract-abstractions-ropsten/events events",
"test": "npm run test:unit",
"test:deploy": "concurrently --success first --kill-others 'npm run exec:ganache-cli' 'npm run deploy-reset:ganache-cli'",
"test:scripts": "mocha scripts/**/*.spec.js",
"test:unit": "concurrently --raw --success first --kill-others 'npm run exec:ganache-cli >/dev/null' 'npm run build && truffle test'",
"test:unit:ganache": "npm run build && truffle test --network ganache",
"version:compiler": "solcjs --version",
"version:truffle": "truffle version"
},
"keywords": [
"nahmii",
"smart contracts",
"ethereum"
],
"author": "Hubii",
"license": "LGPL-3.0",
"repository": {
"type": "git",
"url": "git+https://github.com/hubiinetwork/nahmii-contracts.git"
},
"dependencies": {
"@truffle/hdwallet-provider": "^1.0.26",
"async": "^2.6.0",
"debug": "^4.1.1",
"ethers": "^3.0.29",
"find-up": "^4.1.0",
"ganache-cli": "~6.4.3",
"keythereum": "^1.0.4",
"moment": "^2.23.0",
"omphalos-commons": "github:hubiinetwork/omphalos-commons#develop",
"openzeppelin-solidity": "^2.2.0",
"solc": "0.5.13",
"solidity-util": "github:willitscale/solidity-util",
"truffle": "^4.1.15",
"yargs": "^13.2.4"
},
"devDependencies": {
"bluebird": "^3.5.4",
"bn-chai": "^1.0.1",
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"concurrently": "^4.1.0",
"ethereumjs-util": "^5.2.0",
"mocha-teamcity-reporter": "^2.5.0",
"mock-fs": "github:hubiinetwork/mock-fs",
"n-readlines": "^1.0.0",
"sinon": "^5.0.1",
"sinon-chai": "^3.0.0",
"solhint": "^1.1.10"
},
"requireEnumerate": [
"AccrualBenefactor.sol",
"BalanceTrackable.sol",
"BalanceTracker.sol",
"BlockNumbDisdIntsLib.sol",
"BlockNumbFiguresLib.sol",
"BlockNumbIntsLib.sol",
"BlockNumbReferenceCurrenciesLib.sol",
"BlockNumbUintsLib.sol",
"CancelOrdersChallengable.sol",
"CancelOrdersChallenge.sol",
"ClientFundable.sol",
"CommunityVotable.sol",
"Configurable.sol",
"ConfigurableOperational.sol",
"Configuration.sol",
"CurrenciesLib.sol",
"DriipSettlementByPayment.sol",
"DriipSettlementByTrade.sol",
"DriipSettlementChallengeByOrder.sol",
"DriipSettlementChallengeByPayment.sol",
"DriipSettlementChallengeByTrade.sol",
"DriipSettlementChallengeState.sol",
"DriipSettlementDisputeByOrder.sol",
"DriipSettlementDisputeByPayment.sol",
"DriipSettlementDisputeByTrade.sol",
"DriipSettlementState.sol",
"ERC20TransferController.sol",
"ERC721TransferController.sol",
"FraudChallengable.sol",
"FraudChallengeByPayment.sol",
"FraudChallengeBySuccessivePayments.sol",
"NullSettlement.sol",
"NullSettlementChallengeByOrder.sol",
"NullSettlementChallengeByPayment.sol",
"NullSettlementChallengeState.sol",
"NullSettlementDisputeByOrder.sol",
"NullSettlementDisputeByPayment.sol",
"NullSettlementDisputeByTrade.sol",
"PartnerBenefactorable.sol",
"PartnerFund.sol",
"PaymentHashable.sol",
"RevenueFund.sol",
"RevenueToken.sol",
"RevenueTokenManager.sol",
"SecurityBond.sol",
"SecurityBondable.sol",
"SignerManageable.sol",
"SignerManager.sol",
"TokenHolderRevenueFund.sol",
"TokenMultiTimelock.sol",
"TradeHashable.sol",
"TransactionTrackable.sol",
"TransactionTracker.sol",
"TransferControllerManageable.sol",
"TransferControllerManager.sol",
"TxHistoryLib.sol",
"Upgradable.sol",
"Validatable.sol",
"ValidatableV2.sol",
"WalletLockable.sol"
]
}