Contract 0b4ae5413272ec170f2d892e880108879da1bab579921110c2f5bd4c9f751855

← Back to Index 📥 Download WASM

Meta

rssdkver 23.2.1#ab415a33cc1f6bdce20ac4a12f0ddbe41a648949
rsver 1.91.1

Instances

  • CDD2LJKITQ5SMTWAMWFLKO236S4LM3I2HACXWVUOCLBZDQUM7JMDAWFJ
  • CDIQAMLNYUY5XVYPIVRKVYLRZVWHNYUX7XVGEYORGGTQGLJKWNP5EH7C

Interface

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) ▶