Contract d6555015ec88a308950f7be48eec3112cb899a86b1d5088cd63843b7ed1d4f2a

← Back to Index 📥 Download WASM

Meta

rssdkver 20.3.2#1d7f9bd8030f69070634bfb07394339824ceb399
rsver 1.74.1

Instances

  • CBDVKOILU7E62DVRFXIX4U3J3YUWWQINMDADJW4C67TIUYLPAYJOU2RD

Interface

Deploy the pool contract wasm and after deployment invoke the initialize function of the contract with the given admin address. Returns the contract ID and result of the initialize function.

fn deploy_pool(
    env: soroban_sdk::Env,
    salt: soroban_sdk::BytesN<32>,
    wasm_hash: soroban_sdk::BytesN<32>,
    admin: soroban_sdk::Address,
    treasury: soroban_sdk::Address,
    flash_loan_fee: u32,
    initial_health: u32,
    ir_params: IRParams,
) -> (soroban_sdk::Address, soroban_sdk::Val)

Deploy the s-token contract wasm and after deployment invoke the initialize function of the contract with the given arguments. Returns the contract ID and result of the initialize function.

fn deploy_s_token(
    env: soroban_sdk::Env,
    salt: soroban_sdk::BytesN<32>,
    wasm_hash: soroban_sdk::BytesN<32>,
    name: soroban_sdk::String,
    symbol: soroban_sdk::String,
    pool: soroban_sdk::Address,
    underlying_asset: soroban_sdk::Address,
) -> (soroban_sdk::Address, soroban_sdk::Val)

Deploy the debt token contract wasm and after deployment invoke the initialize function of the contract with the given arguments. Returns the contract ID and result of the initialize function.

fn deploy_debt_token(
    env: soroban_sdk::Env,
    salt: soroban_sdk::BytesN<32>,
    wasm_hash: soroban_sdk::BytesN<32>,
    name: soroban_sdk::String,
    symbol: soroban_sdk::String,
    pool: soroban_sdk::Address,
    underlying_asset: soroban_sdk::Address,
) -> (soroban_sdk::Address, soroban_sdk::Val)

Imports

WebAssembly Text (WAT) ▶