diff --git a/contracts/eosio.plonky/plonky2_battleship_contract.abi b/contracts/eosio.plonky/plonky2_battleship_contract.abi deleted file mode 100644 index 144604a..0000000 --- a/contracts/eosio.plonky/plonky2_battleship_contract.abi +++ /dev/null @@ -1,221 +0,0 @@ -{ - "version": "eosio::abi/1.1", - "types": [], - "structs": [ - { - "name": "GameStateTable", - "base": "", - "fields": [ - { - "name": "id", - "type": "name" - }, - { - "name": "next_turn", - "type": "uint32" - }, - { - "name": "p1", - "type": "PlayerState" - }, - { - "name": "p2", - "type": "PlayerState" - }, - { - "name": "last_hit", - "type": "uint8" - }, - { - "name": "sunk_what", - "type": "uint8" - } - ] - }, - { - "name": "PlayerState", - "base": "", - "fields": [ - { - "name": "id", - "type": "name" - }, - { - "name": "board", - "type": "bytes" - }, - { - "name": "shot_x", - "type": "uint8" - }, - { - "name": "shot_y", - "type": "uint8" - } - ] - }, - { - "name": "Proof", - "base": "", - "fields": [ - { - "name": "proof_id", - "type": "uint64" - }, - { - "name": "proof_digest", - "type": "checksum256" - }, - { - "name": "proof_input", - "type": "uint64[]" - } - ] - }, - { - "name": "clear", - "base": "", - "fields": [ - { - "name": "game", - "type": "name" - } - ] - }, - { - "name": "clearall", - "base": "", - "fields": [ - { - "name": "count", - "type": "uint32" - } - ] - }, - { - "name": "joingame", - "base": "", - "fields": [ - { - "name": "game_name", - "type": "name" - }, - { - "name": "player_two", - "type": "name" - }, - { - "name": "snarktor_receipt_data", - "type": "bytes" - }, - { - "name": "initial_state_data", - "type": "bytes" - }, - { - "name": "shot_x", - "type": "uint8" - }, - { - "name": "shot_y", - "type": "uint8" - } - ] - }, - { - "name": "newgame", - "base": "", - "fields": [ - { - "name": "game_name", - "type": "name" - }, - { - "name": "player_one", - "type": "name" - }, - { - "name": "snarktor_receipt_data", - "type": "bytes" - }, - { - "name": "initial_state_data", - "type": "bytes" - } - ] - }, - { - "name": "turn", - "base": "", - "fields": [ - { - "name": "snarktor_receipt_data", - "type": "bytes" - }, - { - "name": "round_commit_data", - "type": "bytes" - }, - { - "name": "game_name", - "type": "name" - }, - { - "name": "shot_x", - "type": "uint8" - }, - { - "name": "shot_y", - "type": "uint8" - } - ] - } - ], - "actions": [ - { - "name": "clear", - "type": "clear", - "ricardian_contract": "" - }, - { - "name": "clearall", - "type": "clearall", - "ricardian_contract": "" - }, - { - "name": "joingame", - "type": "joingame", - "ricardian_contract": "" - }, - { - "name": "newgame", - "type": "newgame", - "ricardian_contract": "" - }, - { - "name": "turn", - "type": "turn", - "ricardian_contract": "" - } - ], - "tables": [ - { - "name": "games", - "type": "GameStateTable", - "index_type": "i64", - "key_names": [], - "key_types": [] - }, - { - "name": "proofs", - "type": "Proof", - "index_type": "i64", - "key_names": [], - "key_types": [] - } - ], - "variants": [], - "abi_extensions": [], - "error_messages": [], - "ricardian_clauses": [] -} \ No newline at end of file diff --git a/contracts/eosio.plonky/plonky2_battleship_contract.wasm b/contracts/eosio.plonky/plonky2_battleship_contract.wasm deleted file mode 100644 index 6277b86..0000000 Binary files a/contracts/eosio.plonky/plonky2_battleship_contract.wasm and /dev/null differ diff --git a/setup_network.sh b/setup_network.sh index 8644b1f..cab025f 100644 --- a/setup_network.sh +++ b/setup_network.sh @@ -25,9 +25,10 @@ cleos create account eosio eosio.rex EOS5uHeBsURAT6bBXNtvwKtWaiDSDJSdSmc96rHVws5 cleos create account eosio eosio.saving EOS5uHeBsURAT6bBXNtvwKtWaiDSDJSdSmc96rHVws5M1qqVCkAm6 EOS5uHeBsURAT6bBXNtvwKtWaiDSDJSdSmc96rHVws5M1qqVCkAm6 cleos create account eosio eosio.stake EOS5uHeBsURAT6bBXNtvwKtWaiDSDJSdSmc96rHVws5M1qqVCkAm6 EOS5uHeBsURAT6bBXNtvwKtWaiDSDJSdSmc96rHVws5M1qqVCkAm6 cleos create account eosio eosio.snark EOS5uHeBsURAT6bBXNtvwKtWaiDSDJSdSmc96rHVws5M1qqVCkAm6 EOS5uHeBsURAT6bBXNtvwKtWaiDSDJSdSmc96rHVws5M1qqVCkAm6 -cleos create account eosio eosio.plonky EOS5uHeBsURAT6bBXNtvwKtWaiDSDJSdSmc96rHVws5M1qqVCkAm6 EOS5uHeBsURAT6bBXNtvwKtWaiDSDJSdSmc96rHVws5M1qqVCkAm6 cleos create account eosio eosio.goldv EOS5uHeBsURAT6bBXNtvwKtWaiDSDJSdSmc96rHVws5M1qqVCkAm6 EOS5uHeBsURAT6bBXNtvwKtWaiDSDJSdSmc96rHVws5M1qqVCkAm6 cleos create account eosio eosio.agg EOS5uHeBsURAT6bBXNtvwKtWaiDSDJSdSmc96rHVws5M1qqVCkAm6 EOS5uHeBsURAT6bBXNtvwKtWaiDSDJSdSmc96rHVws5M1qqVCkAm6 +cleos create account eosio eosio.risc EOS5uHeBsURAT6bBXNtvwKtWaiDSDJSdSmc96rHVws5M1qqVCkAm6 EOS5uHeBsURAT6bBXNtvwKtWaiDSDJSdSmc96rHVws5M1qqVCkAm6 +cleos create account eosio eosio.plonky EOS5uHeBsURAT6bBXNtvwKtWaiDSDJSdSmc96rHVws5M1qqVCkAm6 EOS5uHeBsURAT6bBXNtvwKtWaiDSDJSdSmc96rHVws5M1qqVCkAm6 curl -X POST http://127.0.0.1:8888/v1/producer/schedule_protocol_feature_activations -d '{"protocol_features_to_activate": ["0ec7e080177b2c02b278d5088611686b49d739925a92d9bfcacd7fc6b74053bd"]}' | jq @@ -78,11 +79,6 @@ echo -e "\n\n\nBUILD: Deploying SNARKtor Goldilocks verifier contract" cleos set contract eosio.goldv . ./snarktor_goldilocks_verifier_contract.wasm ./snarktor_goldilocks_verifier_contract.abi cd $OG_DIR -cd contracts/eosio.plonky -echo -e "\n\n\nBUILD: Deploying SNARKtor Plonky2 Battleship contract" -cleos set contract eosio.plonky . ./plonky2_battleship_contract.wasm ./plonky2_battleship_contract.abi -cd $OG_DIR - # Give permission to snarktor-receiver-contract to make external inline action cleos set account permission eosio.snark active --add-code