-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
179 lines (179 loc) · 12.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
{
"name": "card-protocol-xdai",
"version": "0.9.3",
"description": "",
"main": "index.js",
"scripts": {
"build": "./node_modules/.bin/hardhat compile",
"build:clean": "./node_modules/.bin/hardhat clean && yarn build",
"test": "yarn lint && yarn test:sol",
"test:parallel": "yarn lint && ./node_modules/.bin/mocha",
"test:sol": "./node_modules/.bin/hardhat test",
"test:sol:debug": "npx --node-options='--inspect-brk' hardhat test",
"test:sol:trace": "./node_modules/.bin/hardhat test --trace",
"test:coverage": "./node_modules/.bin/hardhat coverage",
"test:size": "{ ./node_modules/.bin/hardhat size-contracts | tee /dev/fd/3 | grep -q 'exceed the size limit for mainnet deployment' && exit 1; } 3>&1 || echo 'All contracts within size limit'",
"test:migration": "env DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI=true yarn test:migration:sokol && yarn test:migration:xdai",
"test:migration:sokol": "env HARDHAT_FORKING=sokol FORK_BLOCK_NUMBER=$SOKOL_FORK_BLOCK_NUMBER DEBUG=card-protocol.migration* yarn test:sol",
"test:migration:sokol:debug": "env HARDHAT_FORKING=sokol npx --node-options='--inspect-brk' hardhat test",
"test:migration:xdai": "env HARDHAT_FORKING=xdai FORK_BLOCK_NUMBER=$XDAI_FORK_BLOCK_NUMBER DEBUG=card-protocol.migration* yarn test:sol",
"watch:compile": "./node_modules/.bin/hardhat watch compile",
"watch:test": "./node_modules/.bin/hardhat watch test",
"write:abi": "node ./scripts/write-abi.js",
"lint": "yarn lint:sol && yarn lint:js",
"lint:js": "./node_modules/.bin/eslint .",
"lint:sol": "./node_modules/.bin/solhint ./contracts/\\*\\*/\\*.sol -w 0",
"deploy": "env DEBUG='@openzeppelin*,card-protocol.*' ./node_modules/.bin/hardhat run scripts/deploy/deploy.ts",
"deploy:sokol": "env HARDHAT_NETWORK=sokol DEPLOY_MNEMONIC=\"$SOKOL_MNEMONIC\" DEPLOY_MNEMONIC_DERIVATION_PATH=$SOKOL_MNEMONIC_DERIVATION_PATH yarn deploy",
"deploy:sokol:skip-verify": "env SKIP_VERIFY=true yarn deploy:sokol",
"deploy:sokol:upgrade-protocol": "env HARDHAT_NETWORK=sokol DEPLOY_MNEMONIC=\"$SOKOL_MNEMONIC\" DEPLOY_MNEMONIC_DERIVATION_PATH=$SOKOL_MNEMONIC_DERIVATION_PATH yarn deploy:upgrade-protocol",
"deploy:xdai": "env HARDHAT_NETWORK=xdai DEPLOY_MNEMONIC=\"$XDAI_MNEMONIC\" DEPLOY_MNEMONIC_DERIVATION_PATH=$XDAI_MNEMONIC_DERIVATION_PATH yarn deploy",
"deploy:xdai:skip-verify": "env SKIP_VERIFY=true yarn deploy:xdai",
"deploy:xdai:upgrade-protocol": "env HARDHAT_NETWORK=xdai DEPLOY_MNEMONIC=\"$XDAI_MNEMONIC\" DEPLOY_MNEMONIC_DERIVATION_PATH=$XDAI_MNEMONIC_DERIVATION_PATH yarn deploy:upgrade-protocol",
"deploy:localhost": "env HARDHAT_NETWORK=localhost SKIP_VERIFY=true yarn deploy && yarn deploy:localhost:upgrade-protocol",
"deploy:localhost:upgrade-protocol": "env HARDHAT_NETWORK=localhost yarn deploy:upgrade-protocol",
"deploy:smoketest": "rm -f .openzeppelin/metadata-localhost.json .openzeppelin/unknown-31337.json && env BRIDGE_MEDIATOR=0xd1e46b8a371AF04Ce74c993B325b844ef0f48b16 RELAY_SERVER_TX_SENDER=0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B CARDPAY_AUTOCONFIRM=true yarn deploy:smoketest:localhost",
"deploy:smoketest:localhost": "env IMMEDIATE_CONFIG_APPLY=true yarn deploy:localhost && yarn deploy:localhost && yarn deploy:status:localhost",
"deploy:fork": "env SKIP_VERIFY=true HARDHAT_NETWORK=localhost DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI=true yarn deploy",
"deploy:fork:sokol": "env HARDHAT_FORKING=sokol FORK_BLOCK_NUMBER=$SOKOL_FORK_BLOCK_NUMBER DEPLOY_MNEMONIC=\"$SOKOL_MNEMONIC\" DEPLOY_MNEMONIC_DERIVATION_PATH=$SOKOL_MNEMONIC_DERIVATION_PATH yarn deploy:fork",
"deploy:fork:xdai": "env HARDHAT_FORKING=xdai FORK_BLOCK_NUMBER=$XDAI_FORK_BLOCK_NUMBER yarn deploy:fork",
"deploy:status": "env DEBUG=card-protocol.* DEPLOY_UTIL=status ./node_modules/.bin/hardhat run ./scripts/deploy/run-util.ts",
"deploy:status:fork": "env HARDHAT_NETWORK=localhost DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI=true yarn deploy:status",
"deploy:status:fork:sokol": "env HARDHAT_FORKING=sokol FORK_BLOCK_NUMBER=$SOKOL_FORK_BLOCK_NUMBER DEPLOY_MNEMONIC=\"$SOKOL_MNEMONIC\" DEPLOY_MNEMONIC_DERIVATION_PATH=$SOKOL_MNEMONIC_DERIVATION_PATH yarn deploy:status:fork",
"deploy:status:localhost": "env HARDHAT_NETWORK=localhost yarn deploy:status",
"deploy:status:sokol": "env HARDHAT_NETWORK=sokol yarn deploy:status",
"deploy:status:xdai": "env HARDHAT_NETWORK=xdai yarn deploy:status",
"deploy:proposed-diff": "env DEBUG=card-protocol.* DEPLOY_UTIL=proposed-diff ./node_modules/.bin/hardhat run ./scripts/deploy/run-util.ts",
"deploy:proposed-diff:sokol": "env HARDHAT_NETWORK=sokol yarn deploy:proposed-diff",
"deploy:proposed-diff:xdai": "env HARDHAT_NETWORK=xdai yarn deploy:proposed-diff",
"deploy:upgrade-protocol": "env DEBUG='card-protocol.*' ./node_modules/.bin/hardhat run scripts/deploy/upgrade-protocol.ts",
"deploy:upgrade-protocol:sokol:patch": "env CARDPAY_VERSION=patch yarn deploy:sokol:upgrade-protocol",
"deploy:upgrade-protocol:sokol:minor": "env CARDPAY_VERSION=minor yarn deploy:sokol:upgrade-protocol",
"deploy:upgrade-protocol:sokol:major": "env CARDPAY_VERSION=major yarn deploy:sokol:upgrade-protocol",
"deploy:upgrade-protocol:xdai:promote": "env CARDPAY_VERSION=promote yarn deploy:xdai:upgrade-protocol",
"deploy:fork:upgrade-protocol": "env HARDHAT_NETWORK=localhost DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI=true yarn deploy:upgrade-protocol",
"deploy:fork:upgrade-protocol:sokol:patch": "env HARDHAT_FORKING=sokol FORK_BLOCK_NUMBER=$SOKOL_FORK_BLOCK_NUMBER DEPLOY_MNEMONIC=\"$SOKOL_MNEMONIC\" DEPLOY_MNEMONIC_DERIVATION_PATH=$SOKOL_MNEMONIC_DERIVATION_PATH CARDPAY_VERSION=patch yarn deploy:fork:upgrade-protocol",
"deploy:safe-tx": "env DEBUG=card-protocol.* DEPLOY_UTIL=safe-tx ./node_modules/.bin/hardhat run ./scripts/deploy/run-util.ts",
"deploy:safe-tx:fork": "env SKIP_VERIFY=true HARDHAT_NETWORK=localhost DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI=true yarn deploy:safe-tx",
"deploy:safe-tx:fork:sokol": "env HARDHAT_FORKING=sokol FORK_BLOCK_NUMBER=$SOKOL_FORK_BLOCK_NUMBER DEPLOY_MNEMONIC=\"$SOKOL_MNEMONIC\" DEPLOY_MNEMONIC_DERIVATION_PATH=$SOKOL_MNEMONIC_DERIVATION_PATH yarn deploy:safe-tx:fork",
"deploy:safe-tx:sokol": "env HARDHAT_NETWORK=sokol DEPLOY_MNEMONIC=\"$SOKOL_MNEMONIC\" DEPLOY_MNEMONIC_DERIVATION_PATH=$SOKOL_MNEMONIC_DERIVATION_PATH yarn deploy:safe-tx",
"deploy:safe-tx:fork:xdai": "env HARDHAT_FORKING=xdai FORK_BLOCK_NUMBER=$XDAI_FORK_BLOCK_NUMBER DEPLOY_MNEMONIC=\"$XDAI_MNEMONIC\" DEPLOY_MNEMONIC_DERIVATION_PATH=$XDAI_MNEMONIC_DERIVATION_PATH yarn deploy:safe-tx:fork",
"deploy:safe-tx:xdai": "env HARDHAT_NETWORK=xdai DEPLOY_MNEMONIC=\"$XDAI_MNEMONIC\" DEPLOY_MNEMONIC_DERIVATION_PATH=$XDAI_MNEMONIC_DERIVATION_PATH yarn deploy:safe-tx",
"adopt": "env DEBUG=card-protocol.* ./node_modules/.bin/hardhat run scripts/deploy/adopt.ts",
"adopt:xdai": "env HARDHAT_NETWORK=xdai yarn adopt",
"adopt:fork": "env HARDHAT_NETWORK=localhost DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI=true yarn adopt",
"adopt:fork:xdai": "env HARDHAT_FORKING=xdai FORK_BLOCK_NUMBER=$XDAI_FORK_BLOCK_NUMBER IMPERSONATE_ADDRESS=0xA06C2B0b8a2EECA46eac0ca6Cc958Dc94101dC5d yarn adopt:fork",
"safe-ownership": "env DEBUG=card-protocol.* ./node_modules/.bin/hardhat run scripts/deploy/safe-ownership.ts",
"safe-ownership:xdai": "env HARDHAT_NETWORK=xdai yarn safe-ownership",
"safe-ownership:fork": "env HARDHAT_NETWORK=localhost DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI=true yarn safe-ownership",
"safe-ownership:fork:xdai": "env HARDHAT_FORKING=xdai IMPERSONATE_ADDRESS=$XDAI_IMPERSONATE_ADDRESS FORK_BLOCK_NUMBER=$XDAI_FORK_BLOCK_NUMBER yarn safe-ownership:fork",
"start-forked-node": "./node_modules/.bin/hardhat node --fork $FORK_RPC_URL --fork-block-number $FORK_BLOCK_NUMBER",
"start-forked-node:sokol": "env FORK_BLOCK_NUMBER=$SOKOL_FORK_BLOCK_NUMBER FORK_RPC_URL=https://sokol.poa.network HARDHAT_FORKING=sokol yarn start-forked-node",
"start-forked-node:xdai": "env FORK_BLOCK_NUMBER=$XDAI_FORK_BLOCK_NUMBER FORK_RPC_URL=https://rpc.gnosischain.com HARDHAT_FORKING=xdai yarn start-forked-node",
"console:localhost": "env HARDHAT_NETWORK=localhost DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI=true npx hardhat console",
"console:fork:sokol": "env HARDHAT_FORKING=sokol FORK_BLOCK_NUMBER=$SOKOL_FORK_BLOCK_NUMBER yarn console:localhost",
"verify": "env DEBUG=hardhat:hardhat-etherscan,card-protocol.* ./node_modules/.bin/hardhat run scripts/verify.ts",
"verify:sokol": "env HARDHAT_NETWORK=sokol yarn verify",
"verify:xdai": "env HARDHAT_NETWORK=xdai yarn verify",
"release:sokol:patch": "yarn deploy:sokol && yarn deploy:upgrade-protocol:sokol:patch && node ./lib/release.js sokol patch",
"release:sokol:patch:skip-verify": "yarn deploy:sokol:skip-verify && yarn deploy:upgrade-protocol:sokol:patch && node ./lib/release.js sokol patch",
"release:sokol:minor": "yarn deploy:sokol && yarn deploy:upgrade-protocol:sokol:minor && node ./lib/release.js sokol minor",
"release:sokol:major": "yarn deploy:sokol && yarn deploy:upgrade-protocol:sokol:major && node ./lib/release.js sokol major",
"promote:xdai": "yarn deploy:xdai && yarn deploy:upgrade-protocol:xdai:promote && node ./lib/release.js xdai promote",
"promote:xdai:skip-verify": "yarn deploy:xdai:skip-verify && yarn deploy:upgrade-protocol:xdai:promote && node ./lib/release.js xdai promote"
},
"repository": {
"type": "git",
"url": "git+https://github.com/cardstack/card-protocol-xdai.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/cardstack/card-protocol-xdai/issues"
},
"engines": {
"node": ">=14.0"
},
"homepage": "https://github.com/cardstack/card-protocol-xdai#readme",
"devDependencies": {
"@chainlink/contracts": "^0.4.0",
"@ethersproject/abi": "5.4.1",
"@gnosis.pm/mock-contract": "github:gnosis/mock-contract#sol_0_5_0",
"@gnosis.pm/safe-contracts": "~1.3.0",
"@nomiclabs/hardhat-ethers": "^2.0.2",
"@nomiclabs/hardhat-truffle5": "^2.0.5",
"@nomiclabs/hardhat-web3": "^2.0.0",
"@openzeppelin/contracts-upgradeable": "4.7.1",
"@openzeppelin/hardhat-upgrades": "^1.19.0",
"@types/chai": "^4.2.14",
"@types/chai-as-promised": "^7.1.3",
"@types/diff": "^5.0.2",
"@types/fs-extra": "^9.0.13",
"@types/lodash": "^4.14.182",
"@types/mocha": "^8.0.3",
"@types/node": "^16.11.22",
"@typescript-eslint/eslint-plugin": "^4.31.0",
"@typescript-eslint/parser": "^4.31.0",
"CardPay-Contracts": "github:cardstack/card-commerce-protocol#6dd4d470e98f7b94881e3fe256b7b677bbedd3e7",
"async-await-retry": "^1.2.2",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"chai-bn": "^0.2.1",
"chai-exclude": "^2.0.2",
"dotenv": "^8.2.0",
"enquirer": "2.3.6",
"eslint": "^7.31.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eth-gas-reporter": "^0.2.24",
"eth-lightwallet": "^4.0.0",
"ethers": "5.4.5",
"fast-glob": "^3.2.7",
"fs-extra": "^10.1.0",
"glob": "^7.1.7",
"glob-promise": "^4.2.1",
"hardhat": "^2.9.9",
"hardhat-contract-sizer": "^2.0.3",
"lodash": "^4.17.21",
"mocha": "^9.2.2",
"node-fetch": "^2.6.7",
"pify": "^5.0.0",
"prettier": "^2.2.1",
"prettier-plugin-solidity": "^1.0.0-beta.19",
"semver": "^7.3.5",
"solc": "0.5.17",
"solhint": "^3.3.6",
"solidity-coverage": "^0.7.20",
"trezor-cli-wallet-provider": "1.0.6",
"ts-generator": "^0.1.1",
"ts-node": "^10.2.1",
"typescript": "^4.4.2",
"web3": "^1.4.0",
"web3-eth-abi": "^1.3.0",
"web3-utils": "^1.3.0"
},
"resolutions": {
"bitcore-lib": "8.1.1"
},
"volta": {
"node": "16.13.1",
"yarn": "1.22.17"
},
"dependencies": {
"@nomicfoundation/hardhat-chai-matchers": "^1.0.0-beta.2",
"@nomiclabs/hardhat-etherscan": "^3.0.3",
"@solidity-parser/parser": "0.14.0",
"@types/async-retry": "^1.4.3",
"@types/debug": "^4.1.7",
"async-retry": "^1.3.3",
"axios": "^0.26.1",
"cli-table3": "^0.6.2",
"colors": "^1.4.0",
"debug": "^4.3.3",
"diff": "^5.1.0",
"hardhat-storage-layout": "^0.1.6",
"hardhat-tracer": "^1.1.0-rc.6",
"hardhat-watcher": "^2.1.1"
}
}