Language
Libraries
Overview

Overview

Some standard libraries (also referred to as stdlibs) come bundled with Tact compiler, but aren't automatically included to your project until explicitly made to.

To import any standard library, use the import statement followed by the name of that library in a string, like so:

import "@stdlib/deploy"; // this would include everything from @stdlib/deploy library into your codebase

List of standard libraries:

LibraryDescriptionCommonly used APIs
@stdlib/configConfig and elector address retrieval.getConfigAddress, getElectorAddress
@stdlib/contentEncoding off-chain link strings to a Cell.createOffchainContent
@stdlib/deployUnified mechanism for deployments.Deployable, FactoryDeployable
@stdlib/dnsResolution of DNS (opens in a new tab) names.DNSResolver, dnsInternalVerify
@stdlib/ownableTraits for ownership management.Ownable, OwnableTransferable
@stdlib/stoppableTraits that allow contract stops. Requires @stdlib/ownable.Stoppable, Resumable