MSafe Contracts

Deployed Smart Contract

  • Devnet:

    0x74f14286e43d27ed0acc0c4548a5be99a7c2af3cf17a1344c87b7f026b2fcc23
  • Testnet:

    0x74f14286e43d27ed0acc0c4548a5be99a7c2af3cf17a1344c87b7f026b2fcc23
  • Mainnet

    0xaa90e0d9d16b63ba4a289fb0dc8d1b454058b21c9b5c76864f825d5c1f32582e

In the following entry function, the deployed smart contract address is represented as @msafe.

Entry functions

@msafe::creator

Helper module used for MSafe creation and registration.

public entry fun init_wallet_creation(
    s: &signer,
    owners: vector<address>,    
    threshold: u8,    
    init_balance: u64,    
    payload: vector<u8>,    
    signature: vector<u8>,
) acquires PendingMultiSigCreations, MultiSigCreationEvent
public entry fun submit_signature(
    msafe_address: address,
    pk_index: u64,
    signature: vector<u8>,
) acquires PendingMultiSigCreations, MultiSigCreationEvent
public entry fun clean_expired_creation(
    msafe_addresses: vector<address>
) acquires PendingMultiSigCreations

@msafe::momentum_safe

Main module for storing MSafe transaction payload and signatures.

public entry fun register(
    msafe: &signer,
    metadata: vector<u8>
)
public entry fun init_transaction(
    msafe_address: address,
    pk_index: u64,
    payload: vector<u8>,
    signature: vector<u8>,
) acquires Momentum, MomentumSafeEvent
public entry fun submit_signature(
    msafe_address: address,
    pk_index: u64,
    tx_hash: vector<u8>,
    signature: vector<u8>
) acquires Momentum, MomentumSafeEvent
public entry fun do_nothing()

@msafe::registry

Store MSafe addresses owned by an address.

public entry fun register(
    s: &signer,
    public_key: vector<u8>,
)

Last updated