# Getting Started

## How to depend on this service?

#### Dependencies

{% tabs %}
{% tab title="Mainnet" %}

```
CetusDlmm = { git = "https://github.com/CetusProtocol/cetus-dlmm-interface.git", subdir = "packages/dlmm", rev = "mainnet-v0.7.0" }
IntegerMate = { git = "https://github.com/CetusProtocol/integer-mate.git", rev = "mainnet-v1.3.0", override = true }
MoveSTL = { git = "https://github.com/CetusProtocol/move-stl.git", rev = "mainnet-v1.3.0", override = true }
```

{% endtab %}

{% tab title="Testnet" %}

```
CetusDlmm = { git = "https://github.com/CetusProtocol/cetus-dlmm-interface.git", subdir = "packages/dlmm", rev = "testnet-v0.7.0", override = true }
MoveSTL = { git = "https://github.com/CetusProtocol/move-stl.git", subdir = "sui", rev = "testnet-v1.23.1", override = true }
IntegerMate = { git = "https://github.com/CetusProtocol/integer-mate.git", subdir = "sui", rev = "testnet-v1.23.1", override = true }
```

{% endtab %}
{% endtabs %}

#### Example

{% tabs %}
{% tab title="Mainnet" %}

```
[package]
name= "cetus_example"
version = "0.0.1"

[dependencies]
CetusDlmm = { git = "https://github.com/CetusProtocol/cetus-dlmm-interface.git", subdir = "packages/dlmm", rev = "mainnet-v0.7.0" }
IntegerMate = { git = "https://github.com/CetusProtocol/integer-mate.git", rev = "mainnet-v1.3.0", override = true }
MoveSTL = { git = "https://github.com/CetusProtocol/move-stl.git", rev = "mainnet-v1.3.0", override = true }

[address]
cetus_example = "0x0"
```

{% endtab %}

{% tab title="Testnet" %}

```
[package]
name= "cetus_example"
version = "0.0.1"

[dependencies]
CetusDlmm = { git = "https://github.com/CetusProtocol/cetus-dlmm-interface.git", subdir = "packages/dlmm", rev = "testnet-v0.7.0", override = true }
MoveSTL = { git = "https://github.com/CetusProtocol/move-stl.git", subdir = "sui", rev = "testnet-v1.23.1", override = true }
IntegerMate = { git = "https://github.com/CetusProtocol/integer-mate.git", subdir = "sui", rev = "testnet-v1.23.1", override = true }

[address]
cetus_example = "0x0"
```

{% endtab %}
{% endtabs %}

## How to build and publish?

{% hint style="danger" %}
Cetus dlmm interface is not complete in terms of code base (only function definition is provided), so it will get failed when sui client checks its code version. However, this does not affect its actual functionality.&#x20;

Therefore, we need to add a `--dependencies-are-root` during the build and publish.
{% endhint %}

### Share Object IDs&#x20;

{% tabs %}
{% tab title="Mainnet" %}

<table><thead><tr><th width="146.14453125">Name</th><th>Object ID</th></tr></thead><tbody><tr><td>Global Config ID</td><td>0xf31b605d117f959b9730e8c07b08b856cb05143c5e81d5751c90d2979e82f599</td></tr><tr><td>Versioned ID</td><td>0x05370b2d656612dd5759cbe80463de301e3b94a921dfc72dd9daa2ecdeb2d0a8</td></tr><tr><td>Registry ID</td><td>0xb1d55e7d895823c65f98d99b81a69436cf7d1638629c9ccb921326039cda1f1b</td></tr></tbody></table>
{% endtab %}

{% tab title="Testnet" %}

<table><thead><tr><th width="146.14453125">Name</th><th>Object ID</th></tr></thead><tbody><tr><td>Global Config ID</td><td>0x88bb33e9eff2fccab980a0e4b43fc4572abd08f08304d47a20d3e4e99d94d159</td></tr><tr><td>Versioned ID</td><td>0xa710caae87b2129acc97fbb98ea7011e3137c3291b02c0fcce866d67d5d9e8d0</td></tr><tr><td>Registry ID</td><td>0x319070e26a6809f439d3c4a45e63bf74939c5fe3165de7b65968ee8547f71bd0</td></tr></tbody></table>
{% endtab %}
{% endtabs %}


---

# 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://cetus-1.gitbook.io/cetus-developer-docs/developer/via-dlmm-contract/getting-started.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.
