Contract f3e9f2cbbbb3463a7dade32f5d9ebf4bbbdb7533c1528fd34076bacd1b106e5a

← Back to Index 📥 Download WASM

Meta

rssdkver 23.2.1#ab415a33cc1f6bdce20ac4a12f0ddbe41a648949
rsver 1.91.1

Instances

  • CBAE2MUA7EDOJ2CN7ODDCML4QICCOHRCOYKLVONGOEWLKORASAZOYM4O
  • CCUXUZK2LP7INCOONDQXOOYDVDTAFQIWF2AILIAUL5ZFWZ6ZOWN63MB2
  • CD6J7NGF3SBK4XWCHAYUGTHIFUWXXD6SIQWRW2R4P2SZML6EWK4JA3EW

Interface

Initialize the factory contract with an admin address. Can only be called once, must be called before deploy() can be used.

fn init(env: soroban_sdk::Env, admin: soroban_sdk::Address)

Construct the deployer with a provided administrator. Deploys the contract on behalf of the Deployer contract.

This has to be authorized by the Deployers administrator.

fn deploy(
    env: soroban_sdk::Env,
    wasm_hash: soroban_sdk::BytesN<32>,
    salt: soroban_sdk::BytesN<32>,
    constructor_args: soroban_sdk::Vec,
) -> soroban_sdk::Address

Calculate the deterministic address of a contract that will be deployed with the given salt. This uses the current contract address as the deployer.

This function can be called at anytime, before or after the contract is deployed, because contract addresses are deterministic.

Arguments

  • salt - The 32-byte salt used for deployment

Returns

  • Address - The deterministic address of the contract that will be deployed
fn calculate_address(
    env: soroban_sdk::Env,
    salt: soroban_sdk::BytesN<32>,
) -> soroban_sdk::Address

Imports

WebAssembly Text (WAT) ▶