Created
October 29, 2022 12:16
-
-
Save Th0rgal/40ce5699b845959aba2ef6b2d002d159 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
%lang starknet | |
from starkware.cairo.common.uint256 import Uint256 | |
from src.game import GameData | |
@contract_interface | |
namespace IGasLessLiar { | |
func deposit(amount: Uint256) { | |
} | |
func withdraw(amount: Uint256) { | |
} | |
func get_deposit(user: felt) -> (amount: Uint256) { | |
} | |
func create_game(id: felt, entry_fee: Uint256, key_a, key_b) { | |
} | |
func set_a_user(game_id, sig: (felt, felt)) { | |
} | |
func set_b_user(game_id, sig: (felt, felt)) { | |
} | |
func get_game_data(game_id: felt) -> (game_data: GameData) { | |
} | |
func open_dispute_state_1(dispute, game_id, h1, sig: (felt, felt)) { | |
} | |
func close_dispute_state_1(dispute, game_id, prev_state_hash, s2, h1, sig: (felt, felt)) { | |
} | |
func open_dispute_state_2(dispute, game_id, prev_state_hash, s2, h1, sig: (felt, felt)) { | |
} | |
func close_dispute_state_2( | |
dispute, game_id, prev_state_hash, s1, starting_card, sig: (felt, felt) | |
) { | |
} | |
func close_dispute(dispute) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment