# StakingRootDeployer

#### **`deploy`**

Creates and deploys new staking root.

```
function deploy(
        address _admin,
        address _dao_root,
        address _rewarder,
        address _rescuer,
        address _bridge_event_config_eth_ton,
        address _bridge_event_config_ton_eth,
        address _tokenRoot,
        uint32 _deploy_nonce
    ) public returns(address)
```

**Parameters:**

| Name                              | Type    | Description                                                        |
| --------------------------------- | ------- | ------------------------------------------------------------------ |
| \_admin                           | address | Address of staking root’s admin                                    |
| \_dao\_root                       | address | DAO root’s address                                                 |
| \_rewarder                        | address | Rewarder address                                                   |
| \_rescuer                         | address | Rescuer address                                                    |
| \_bridge\_event\_config\_eth\_ton | address | Address of the bridge event configuration handling ethereum to ton |
| \_bridge\_event\_config\_ton\_eth | address | Address of the bridge event configuration handling ton to ethereum |
| \_tokenRoot                       | address | Staking token root’s address                                       |
| \_deploy\_nonce                   | uint32  | Flag used for deploying new Staking contract                       |

**Return value:**

| Type    | Description                          |
| ------- | ------------------------------------ |
| address | Address of the deployed staking root |


---

# 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.octusbridge.io/integrate/octus-bridge-contracts/everscale/staking-section/stakingrootdeployer.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.
