-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simple katana deployment using starkli
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Run katana | ||
# Configure for starkli | ||
export STARKNET_RPC="http://localhost:5050/" | ||
|
||
# password is katana | ||
export STARKNET_KEYSTORE="scripts/katana_signer" | ||
|
||
export STARKNET_ACCOUNT="scripts/katana_account.json" | ||
|
||
export ACCOUNT_ADDRESS=$(jq .deployment.address scripts/katana_account.json -r) | ||
|
||
|
||
starkli declare --compiler-version 2.1.0 target/dev/briq_protocol-BriqToken.json | ||
starkli declare --compiler-version 2.1.0 target/dev/briq_protocol-SetNft.json | ||
starkli declare --compiler-version 2.1.0 target/dev/briq_protocol-GenericERC1155.json | ||
|
||
BRIQ_HASH=0x021ea5ff87eb7faee063659417bb201918a2ef99a0208ac1acdf29c0e8fbbdbe | ||
ERC1155_HASH=0x05ae1b827310a48a5d03d095ab70a61ad957191c06a738c00be43716f4488412 | ||
SET_HASH=0x0198e67b9d8705ba90de0f9b95a7f4e3fc71b1406e0527a8c6f1fdb59cebf9cb | ||
|
||
sozo migrate | ||
|
||
WORLD_ADDRESS=0x23aa0e3ffa4663cca36a00577eb9c188aff648568c859735e6de463d41713ec | ||
|
||
starkli deploy $BRIQ_HASH $WORLD_ADDRESS | ||
starkli deploy $ERC1155_HASH $WORLD_ADDRESS | ||
starkli deploy $ERC1155_HASH $WORLD_ADDRESS | ||
starkli deploy $SET_HASH $WORLD_ADDRESS | ||
|
||
BRIQ_ADDR=0x007d2829b6a5c7c0eac8885ca95c338543423cffd8e33c52a92f7be8926f6f61 | ||
BOOKLET_ADDR=0x0039dc86205ffde13227be280c630a50a37965e2d7f320ee6c61cc9e0d14e493 | ||
BOX_ADDR=0x059e9566317c6177e26fb8fec87d1f5d541cf285d1c195ecd6b0bbd60a432aea | ||
SET_ADDR=0x063dc9cd853bf1ab8015f2aa447958900b18d458a7df61b4279c8512e9801a72 | ||
|
||
sozo execute SetupWorld --world $WORLD_ADDRESS --calldata $ACCOUNT_ADDRESS,$BRIQ_ADDR,$SET_ADDR,$BOOKLET_ADDR,$BOX_ADDR | ||
|
||
|
||
## Integration tests | ||
sozo execute ERC1155MintBurn --calldata $WORLD_ADDRESS,$BRIQ_ADDR,0,$ACCOUNT_ADDRESS,1,1,1,100 --world $WORLD_ADDRESS | ||
|
||
# Doesnt' work at all | ||
sozo component get ERC1155Balance --world $WORLD_ADDRESS | ||
|
||
starkli call $BRIQ_ADDR balance_of $ACCOUNT_ADDRESS u256:1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"version": 1, | ||
"variant": { | ||
"type": "open_zeppelin", | ||
"version": 1, | ||
"public_key": "0x01b7b37a580d91bc3ad4f9933ed61f3a395e0e51c9dd5553323b8ca3942bb44e" | ||
}, | ||
"deployment": { | ||
"status": "deployed", | ||
"class_hash": "0x04d07e40e93398ed3c76981e72dd1fd22557a78ce36c0515f679e27f0bb5bc5f", | ||
"address": "0x03ee9e18edc71a6df30ac3aca2e0b02a198fbce19b7480a63a0d71cbd76652e0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"crypto":{"cipher":"aes-128-ctr","cipherparams":{"iv":"ae2671d8f184ca3a2de28987e2f051f2"},"ciphertext":"3ef3e0a4f9ff8e8c3203d44e3cc44bdc7d635ae42579e051c0122b260a8b1456","kdf":"scrypt","kdfparams":{"dklen":32,"n":8192,"p":1,"r":8,"salt":"ad09058d8e10e30425d082c8954ad698eb086321c4e054374533fc86ba9bd483"},"mac":"bfada32ce51a26092730d2b053a7d4f42fc1eb81cbd8e051b8080447c6708d84"},"id":"52ed649f-1813-488c-9241-33bd1abc69ef","version":3} |