> For the complete documentation index, see [llms.txt](https://docs.songs-tools.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.songs-tools.com/protocol/protocol-modules/wrapped-song-module.md).

# Wrapped Song Module

## Wrapped Song Factory

The `WrappedSongFactory` contract is responsible for creating new wrapped songs. It interacts with the `ProtocolModule` to ensure that all necessary conditions are met before a wrapped song is created. This contract also manages the initialization of new wrapped songs and keeps track of the songs created by each owner.

{% embed url="<https://github.com/gordo-labs/songs-protocol/blob/main/contracts/protocol/NonUpgradable/WrappedSongFactory.sol>" %}

## Wrapped Song Smart Account Model

The `WrappedSongSmartAccount` contract represents the smart account for a wrapped song. It manages the song's state, including its release status, authenticity, and associated distributor wallet. This contract also handles the financial operations related to the wrapped song, such as receiving payments and distributing earnings.

{% embed url="<https://github.com/gordo-labs/songs-protocol/blob/main/contracts/protocol/NonUpgradable/WrappedSongSmartAccount.sol>" %}

## Wrapped Song Token Management

The `WSTokensManagement` contract manages the creation and distribution of song-related tokens, including both NFTs and fungible shares. It allows for the creation of song concept NFTs, the minting of participation NFTs, and the exchange of NFTs for fungible shares. This contract also handles the setting and retrieval of token URIs.

{% embed url="<https://github.com/gordo-labs/songs-protocol/blob/main/contracts/protocol/NonUpgradable/WSTokensManagement.sol>" %}
