Contract 1427a77c5d6ecf736b33cec17919f17adb4ff7ea69c31c02d7b23f10cd1f649e

← Back to Index 📥 Download WASM

Meta

cliver 26.0.0#60f7458e7ecffddf2f2d91dc6d0d2db4fab03ecc
rssdkver 22.0.11#34f7f53ae31e0fd02aab436a9872e79fa671ca02
rsver 1.95.0

Instances

  • CBBOFJ43OHF63NH64LGOWSWYPGETBJKLI44BGPJPQIQIVL3RIVJ2N6M5

Interface

fn get_bet(env: soroban_sdk::Env, round_id: u32, bettor: soroban_sdk::Address) -> Bet
fn get_round(env: soroban_sdk::Env, round_id: u32) -> Round
fn place_bet(
    env: soroban_sdk::Env,
    round_id: u32,
    bettor: soroban_sdk::Address,
    predicted_price: i128,
    stake_amount: i128,
)
fn get_reward(
    env: soroban_sdk::Env,
    round_id: u32,
    bettor: soroban_sdk::Address,
) -> i128
fn initialize(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    token: soroban_sdk::Address,
)
fn cancel_round(env: soroban_sdk::Env, round_id: u32)
fn claim_reward(env: soroban_sdk::Env, round_id: u32, claimer: soroban_sdk::Address)
fn create_round(
    env: soroban_sdk::Env,
    creator: soroban_sdk::Address,
    end_time: u64,
    min_stake: i128,
) -> u32
fn settle_round(env: soroban_sdk::Env, round_id: u32, actual_price: i128)
fn __constructor(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    token: soroban_sdk::Address,
)
fn get_current_round(env: soroban_sdk::Env) -> u32
fn get_participant_count(env: soroban_sdk::Env, round_id: u32) -> u32

Imports

WebAssembly Text (WAT) ▶