> For the complete documentation index, see [llms.txt](https://docs.gnoswap.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gnoswap.io/contracts/gov/staker/launchpad_project_deposits.gno.md).

# launchpad\_project\_deposits.gno

{% embed url="<https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/staker/launchpad_project_deposits.gno>" %}

## Types

### LaunchpadProjectDeposits

```go
type LaunchpadProjectDeposits struct
```

LaunchpadProjectDeposits manages deposit amounts for launchpad projects. It tracks the total staked amount for each project identified by owner address.

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/staker/launchpad_project_deposits.gno#L9)

#### Methods

**GetDeposit**

```go
func (lpd *LaunchpadProjectDeposits) GetDeposit(
	ownerAddress string
) (int64, bool)
```

GetDeposit looks up a project's deposit by owner address.

#### Parameters

| Name           | Type   | Description                                   |
| -------------- | ------ | --------------------------------------------- |
| `ownerAddress` | string | owner address string used as the deposit key. |

#### Return Values

| Name    | Type  | Description                                                            |
| ------- | ----- | ---------------------------------------------------------------------- |
| `int64` | int64 | stored deposit amount in the smallest token unit, or zero when absent. |
| `bool`  | bool  | true when an int64 deposit is stored for the owner.                    |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/staker/launchpad_project_deposits.gno#L48)

**GetDeposits**

```go
func (lpd *LaunchpadProjectDeposits) GetDeposits() *bptree.BPTree
```

GetDeposits returns the owner-to-deposit tree managed by this instance.

#### Return Values

| Name             | Type            | Description                                                   |
| ---------------- | --------------- | ------------------------------------------------------------- |
| `*bptree.BPTree` | \*bptree.BPTree | tree keyed by owner address string and storing int64 amounts. |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/staker/launchpad_project_deposits.gno#L28)

**RemoveDeposit**

```go
func (lpd *LaunchpadProjectDeposits) RemoveDeposit(
	ownerAddress string
) bool
```

RemoveDeposit removes an owner's deposit entry.

#### Parameters

| Name           | Type   | Description                                                 |
| -------------- | ------ | ----------------------------------------------------------- |
| `ownerAddress` | string | owner address string whose deposit entry should be removed. |

#### Return Values

| Name   | Type | Description                                                  |
| ------ | ---- | ------------------------------------------------------------ |
| `bool` | bool | true when an entry was removed; false when no entry existed. |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/staker/launchpad_project_deposits.gno#L73)

**SetDeposit**

```go
func (lpd *LaunchpadProjectDeposits) SetDeposit(
	ownerAddress string,
	amount int64
)
```

SetDeposit stores or replaces an owner's deposit amount.

#### Parameters

| Name           | Type   | Description                                   |
| -------------- | ------ | --------------------------------------------- |
| `ownerAddress` | string | owner address string used as the deposit key. |
| `amount`       | int64  | deposit amount in the smallest token unit.    |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/staker/launchpad_project_deposits.gno#L62)

**SetDeposits**

```go
func (lpd *LaunchpadProjectDeposits) SetDeposits(
	deposits *bptree.BPTree
)
```

SetDeposits replaces the owner-to-deposit tree.

#### Parameters

| Name       | Type            | Description                                                   |
| ---------- | --------------- | ------------------------------------------------------------- |
| `deposits` | \*bptree.BPTree | tree keyed by owner address string and storing int64 amounts. |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/staker/launchpad_project_deposits.gno#L36)

#### Constructors

* `func NewLaunchpadProjectDeposits() *LaunchpadProjectDeposits` ([source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/staker/launchpad_project_deposits.gno#L18))
