# 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>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.songs-tools.com/protocol/protocol-modules/wrapped-song-module.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
