6 releases

0.3.1 Mar 5, 2024
0.3.0 Jan 3, 2024
0.2.1 Jan 3, 2024
0.2.0 Dec 29, 2022
0.1.3 Nov 25, 2022

#2 in #approve

Download history 786/week @ 2025-02-02 700/week @ 2025-02-09 1077/week @ 2025-02-16 929/week @ 2025-02-23 909/week @ 2025-03-02 1274/week @ 2025-03-09 1814/week @ 2025-03-16 1659/week @ 2025-03-23 1664/week @ 2025-03-30 2015/week @ 2025-04-06 1800/week @ 2025-04-13 1569/week @ 2025-04-20 1137/week @ 2025-04-27 246/week @ 2025-05-04 1186/week @ 2025-05-11 1300/week @ 2025-05-18

3,908 downloads per month
Used in 2 crates

Apache-2.0

51KB
1.5K SLoC

Community Managed Token (CMT)

Community Managed Token is an exact 1:1 code deployment of the spl_managed_token to support a full proxy of spl_token interfaces.

For composability purpose and follow the original spl_managed_token's philosophy, the goal of CMT is to have a upstream_authority (usually from a upstream program's PDA) that controls the use cases of the token.

Network Program Address
Devnet CMTQqjzH6Anr9XcPVt73EFDTjWkJWPzH7H6DtvhHcyzV
Mainnet CMTQqjzH6Anr9XcPVt73EFDTjWkJWPzH7H6DtvhHcyzV

Entrypoints:

  • InitializeMint
  • InitializeAccount
  • Transfer
  • MintTo
  • Burn
  • CloseAccount
  • Approve
  • Revoke

Build

# To build all on-chain programs
$ cargo build-sbf

# To build a specific on-chain program
$ cd <program_name>/program
$ cargo build-sbf

Test

Unit tests contained within all projects can be run with:

$ cargo test      # <-- runs host-based tests
$ cargo test-sbf  # <-- runs BPF program tests

To run a specific program's tests, such as SPL Token:

$ cd <program_name>/program
$ cargo test      # <-- runs host-based tests
$ cargo test-sbf  # <-- runs BPF program tests

License

Apache 2.0

Dependencies

~23–33MB
~527K SLoC

OSZAR »