8 releases

0.7.7 Aug 19, 2024
0.7.6 Jul 22, 2024
0.7.2 Jun 21, 2024
0.7.0 May 23, 2024

#5 in #loam

Download history 121/week @ 2024-05-23 157/week @ 2024-05-30 31/week @ 2024-06-06 4/week @ 2024-06-13 130/week @ 2024-06-20 4/week @ 2024-06-27 2/week @ 2024-07-04 314/week @ 2024-07-11 149/week @ 2024-07-18 72/week @ 2024-07-25 14/week @ 2024-08-01 147/week @ 2024-08-15 18/week @ 2024-08-22

188 downloads per month

Apache-2.0

11KB
70 lines

loam-subcontract-core

Contains the trait and implementation of the Core Subcontract, which contains core functionality needed by every Loam smart contract:

  • redeploy: Loam's subcontract pattern is built with upgradeability in mind. Every Loam smart contract gets a redeploy method, thanks to loam-subcontract-core, that allows it to be updated with new logic.
  • admin_get and admin_set: you want to make sure only the admin (you, probably, to start out) can call redeploy on your contract, to avoid attackers upgrading to a contract definition that kicks you out.

For more information about how to use and author Subcontracts, see the loam-sdk README.

Dependencies

~16MB
~324K SLoC