0.1.5 • Published 2 years ago

multisafe-contracts v0.1.5

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Multi-Safe

A multi-owner contract to manage Stacks Blockchain resources that requires n number of confirmations.

Features

  • Can hold and transfer STX
  • SIP-009 Non-fungible token and SIP-010 Fungible token support (coming soon)
  • Supports up to 20 owners
  • UI support (coming soon)
  • Integration with Hiro wallet

Test

Run contract tests:

clarinet test

Security

The code hasn't audited by a independent security team yet. Use at your own risk.

API Reference

Owner only functions

The following function can be run by only safe owners:

submit (executor <executor-trait>, safe <safe-trait>, param-p principal, param-u uint) => (response uint)

confirm (tx-id uint, executor <executor-trait>, safe <safe-trait>) => (response bool)

revoke (tx-id uint) => (response bool)

Safe only functions

The following functions can be run by only safe contract itself and requires the minimum number of confirmations:

add-owner (owner principal) => (response bool)

remove-owner (owner principal) => (response bool)

set-min-confirmation (value uint) => (response bool)

Views (Read only functions)

get-version() => string-ascii

get-owners() => list

get-min-confirmation() => uint

get-nonce() => uint

get-transaction (tx-id uint) => tuple

get-transactions (tx-ids (list 20 uint)) => list