smallet 0.11.1

Cosmic Sm(art)(w)allet
Documentation
  • Coverage
  • 22.15%
    33 out of 149 items documented0 out of 37 items with examples
  • Size
  • Source code size: 83.42 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 10.64 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • mellis1010

This program can be used to allow a smallet to govern anything a regular [Pubkey] can govern. One can use the smallet as a BPF program upgrade authority, a mint authority, etc.

To use, one must first create a [Smallet] account, specifying two important parameters:

  1. Owners - the set of addresses that sign transactions for the smallet.
  2. Threshold - the number of signers required to execute a transaction.
  3. Minimum Delay - the minimum amount of time that must pass before a [Transaction] can be executed. If 0, this is ignored.

Once the [Smallet] account is created, one can create a [Transaction] account, specifying the parameters for a normal Solana instruction.

To sign, owners should invoke the [smallet::approve] instruction, and finally, [smallet::execute_transaction], once enough (i.e. [Smallet::threshold]) of the owners have signed.