Contract a7f32705c1ceeda07496520a3b16a1c6a64f1d68e4425752e892633d6009f035

← Back to Index 📥 Download WASM

Meta

cliver 27.0.0#5a7c5fe76530bf4248477ac812fc757146b98cc4
rssdk_spec_shaking 2
rssdkver 27.0.6#60926a20d1f9f0a669d5fe551636f42a1302f0c0
rsver 1.98.1
source_repo github:zenith-protocols/zenex-util-contracts

Instances

  • CBOKFCC24264FHSAK2PZ5U6VYMDMJWU55FORXE7ZT6EWBOLVK3TBLAOI

Interface

Deploys a wallet with (signers, policies) as its constructor arguments and returns its address. The salt is the SHA-256 of their XDR, so the address commits to the wallet's signers: anyone may call this, and a second deploy of the same arguments fails.

fn deploy(
    env: soroban_sdk::Env,
    signers: soroban_sdk::Vec,
    policies: soroban_sdk::Map,
) -> soroban_sdk::Address

Pins the smart-account wasm, which must already be uploaded. There is no way to change it: a new wasm is a new factory.

fn __constructor(env: soroban_sdk::Env, account_wasm_hash: soroban_sdk::BytesN<32>)

Returns the address deploy creates for these arguments, whether or not the wallet exists yet.

fn predict_address(
    env: soroban_sdk::Env,
    signers: soroban_sdk::Vec,
    policies: soroban_sdk::Map,
) -> soroban_sdk::Address

Imports

WebAssembly Text (WAT) ▶