# Smart Contract Template

All smart contracts are located in [TODO\_CELESTIUM\_CONTRACTS\_REPO\_URL](https://github.com/NextGenOrgs/celestium/blob/main/about-celestium/for-developers/TODO_CELESTIUM_CONTRACTS_REPO_URL/README.md) along with their deployed version on Polygon Network.

The most important contract is `Core.sol` which is the entry point for any bet or stake.

Your new game must be based on `GameInterface.sol` and implement all functions.

Feel free to get inspiration from the [Predict Game](/smartcontracts-description/predict-contract/predict-game.md) or any other to create new games. Use the [Web Template](/for-developers/web-template.md) to implement the Web Interface for your game to be easily integrated into the existing environment.

Once tested and deployed on testnet (Polygon Amoy — `80002`), reach out to us to get your game deployed on mainnet. Prepare your source code repository on github.com — it must be public!


---

# 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.celestium.digital/for-developers/smart-contract-template.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.
