Contract 75cf3a582b622db2c77d54a3c3e85c9b18c857e37daf2bab76cc81f2931771b0

← Back to Index 📥 Download WASM

Meta

Description Soroban Multisig Contract
rssdkver 26.1.0#175aa41306f383057a8cdfc84b68d931664fc34e
rsver 1.95.0

Instances

  • CADPNFEF2TGNOOCJDKWAOWFZRKOQEQHLJON2WRHAFFKHBS3B2ERRGLTT
  • CC5Y35TESJEFSG4Y33ULHYXJP5BYODGFFGJ6IMINUAWNNVJTY7Q6QIAS
  • CCGDOYLHZCZ3CFG5QLRZQTYYCIDHKCSGYKZPUAAB5ZDONSFW6T4JCOSY
  • CCPTA5MVU725CAYWZDUD65SLFAHZPWAVCBG6JO3AN57YQSQKCWUHNBJR
  • CDNYY6TGJ5YZTM27QQ4KZHVTVZWSSSA6ONLECPWH6LN3WIA7AVIE6XRY

Interface

Initialize the contract members is a vector of addresses that this multisig will consist of quorum_bps requires to pass the minimum amount of required signers in BPS if not present, default if 100%

fn initialize(
    env: soroban_sdk::Env,
    name: soroban_sdk::String,
    description: soroban_sdk::String,
    members: soroban_sdk::Vec,
    quorum_bps: Option,
) -> Result<(), ContractError>
fn sign_proposal(
    env: soroban_sdk::Env,
    sender: soroban_sdk::Address,
    proposal_id: u64,
) -> Result<(), ContractError>
fn query_proposal(
    env: soroban_sdk::Env,
    proposal_id: u64,
) -> Result
fn execute_proposal(
    env: soroban_sdk::Env,
    sender: soroban_sdk::Address,
    proposal_id: u64,
) -> Result<(), ContractError>
fn query_signatures(
    env: soroban_sdk::Env,
    proposal_id: u64,
) -> Result, ContractError>
fn is_proposal_ready(
    env: soroban_sdk::Env,
    proposal_id: u64,
) -> Result
fn query_all_proposals(
    env: soroban_sdk::Env,
) -> Result, ContractError>
fn query_multisig_info(env: soroban_sdk::Env) -> Result
fn create_update_proposal(
    env: soroban_sdk::Env,
    sender: soroban_sdk::Address,
    title: soroban_sdk::String,
    description: soroban_sdk::String,
    new_wasm_hash: soroban_sdk::BytesN<32>,
    expiration_date: Option,
) -> Result<(), ContractError>
fn query_last_proposal_id(env: soroban_sdk::Env) -> Result
fn query_multisig_members(
    env: soroban_sdk::Env,
) -> Result, ContractError>
fn create_transaction_proposal(
    env: soroban_sdk::Env,
    sender: soroban_sdk::Address,
    title: soroban_sdk::String,
    description: soroban_sdk::String,
    recipient: soroban_sdk::Address,
    amount: u64,
    token: soroban_sdk::Address,
    expiration_date: Option,
) -> Result<(), ContractError>

Propose to replace the entire multisig membership with new_members. Once executed (after reaching quorum), the multisig members list is overwritten with the provided list. The signers required to pass this proposal are the current members at execution time.

fn create_member_update_proposal(
    env: soroban_sdk::Env,
    sender: soroban_sdk::Address,
    title: soroban_sdk::String,
    description: soroban_sdk::String,
    new_members: soroban_sdk::Vec,
    expiration_date: Option,
) -> Result<(), ContractError>

Imports

WebAssembly Text (WAT) ▶