-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
23 lines (14 loc) · 1.71 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Build and test
build :; nile compile
test :; pytest tests/
declare_oracle :; nile compile contracts/rng_oracle.cairo && nile declare --network $(env) rng_oracle
deploy_oracle :; starknet deploy --network $(env) --class_hash 0x48c0c6f9e6d9b26a209c85c702d2f4d810292ab88145fb8fda880b118aef431 --account test_account \
--inputs 56813112444515337030909853 65493416683031957558705499 2310631506289082809134561 75125512359079384286741984 66304133423307996799370298 17593286038527564039855464
deploy_dice :; nile compile contracts/examples/dice.cairo && nile deploy dice 1580029050699134120620503182540170752157749775081528336811532551277496133906
deploy_oracle_mainnet :; nile compile contracts/rng_oracle.cairo --disable-hint-validation && nile deploy --network mainnet rng_oracle 56813112444515337030909853 65493416683031957558705499 2310631506289082809134561 75125512359079384286741984 66304133423307996799370298 17593286038527564039855464 --no_wallet
declare_oracle_testnet :; starknet declare --network alpha-goerli --contract artifacts/rng_oracle.json
deploy_oracle_testnet :; starknet deploy --network alpha-goerli --class_hash 0x48c0c6f9e6d9b26a209c85c702d2f4d810292ab88145fb8fda880b118aef431 --account test_account \
--inputs 56813112444515337030909853 65493416683031957558705499 2310631506289082809134561 75125512359079384286741984 66304133423307996799370298 17593286038527564039855464
declare_dice_testnet :; starknet declare --network alpha-goerli --contract artifacts/dice.json
deploy_dice_testnet :; starknet deploy --network alpha-goerli --class_hash 0x456414132b6fe4add9548a4caf976ff893e16228b60a7780f6bdf999bebdc8a --account test_account \
--inputs 3289920912719546253433229808698838482797775240810141187271102555912478008596