Skip to content

Instantly share code, notes, and snippets.

@Th0rgal
Created October 29, 2022 12:16
Show Gist options
  • Save Th0rgal/40ce5699b845959aba2ef6b2d002d159 to your computer and use it in GitHub Desktop.
Save Th0rgal/40ce5699b845959aba2ef6b2d002d159 to your computer and use it in GitHub Desktop.
%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