File tree 5 files changed +8031
-6
lines changed 5 files changed +8031
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { useAppContext } from '../../context/appStore'
4
4
import {
5
5
getContractDetails ,
6
6
requestAccounts ,
7
- } from '../../utils/lotteryContract '
7
+ } from '../../utils/lottery/contract '
8
8
9
9
function notifySuccessfulConnection ( balance : string ) : void {
10
10
notification . success ( {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import {
15
15
getContractDetails ,
16
16
pickWinner ,
17
17
web3 ,
18
- } from '../../utils/lotteryContract '
18
+ } from '../../utils/lottery/contract '
19
19
import { toPrice } from '../../utils/numeral'
20
20
import type { Winner } from '../WinnerMask/WinnerMask'
21
21
Original file line number Diff line number Diff line change 5
5
"scripts" : {
6
6
"generate-types" : " typechain --t
9397
arget=truffle-v5 'build/contracts/*.json'" ,
7
7
"tsc-migrate" : " tsc -p ./tsconfig.migrate.json --outDir ./migrations" ,
8
+ "contract-json" : " cp ./build/contracts/Lottery.json ./utils/lottery/contract.json" ,
8
9
"premigrate" : " npm run tsc-migrate" ,
9
10
"migrate" : " truffle migrate" ,
11
+ "postmigrate" : " npm run contract-json" ,
10
12
"premigrate-goerli" : " npm run tsc-migrate" ,
11
13
"migrate-goerli" : " truffle migrate --network goerli" ,
14
+ "postmigrate-goerli" : " npm run contract-json" ,
12
15
"typecheck" : " truffle compile && npm run generate-types && tsc --noEmit" ,
13
16
"dev" : " next dev" ,
14
17
"build" : " next build" ,
15
- "premigrate-build" : " npm run migrate-goerli" ,
16
- "migrate-build" : " next build" ,
17
18
"start" : " next start" ,
18
19
"lint" : " next lint" ,
19
20
"test" : " truffle test"
You can’t perform that action at this time.
0 commit comments