> 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/launchpad/getter.gno.md).

# getter.gno

{% embed url="<https://github.com/gnoswap-labs/gnoswap/blob/main/contract/r/gnoswap/launchpad/v1/getter.gno>" %}

## GetCurrentDepositId

```go
func GetCurrentDepositId() int64

```

GetCurrentDepositId returns the current deposit counter value.

#### Return Values

| Name        | Type  | Description             |
| ----------- | ----- | ----------------------- |
| `depositId` | int64 | current deposit counter |

***

## GetDepositCount

```go
func GetDepositCount() int

```

GetDepositCount returns the total number of deposits.

#### Return Values

| Name    | Type | Description              |
| ------- | ---- | ------------------------ |
| `count` | int  | total number of deposits |

***

## GetDepositAmount

```go
func GetDepositAmount(
	depositId string
) (int64, error)

```

GetDepositAmount returns the deposit amount of a deposit by its ID.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `depositId` | string | ID of the deposit |

#### Return Values

| Name     | Type  | Description        |
| -------- | ----- | ------------------ |
| `amount` | int64 | deposit amount     |
| `err`    | error | error if not found |

***

## GetDepositCreatedAt

```go
func GetDepositCreatedAt(
	depositId string
) (int64, error)

```

GetDepositCreatedAt returns the created time of a deposit by its ID.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `depositId` | string | ID of the deposit |

#### Return Values

| Name        | Type  | Description        |
| ----------- | ----- | ------------------ |
| `timestamp` | int64 | creation timestamp |
| `err`       | error | error if not found |

***

## GetDepositCreatedHeight

```go
func GetDepositCreatedHeight(
	depositId string
) (int64, error)

```

GetDepositCreatedHeight returns the created height of a deposit by its ID.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `depositId` | string | ID of the deposit |

#### Return Values

| Name     | Type  | Description              |
| -------- | ----- | ------------------------ |
| `height` | int64 | block height at creation |
| `err`    | error | error if not found       |

***

## GetDepositEndTime

```go
func GetDepositEndTime(
	depositId string
) (int64, error)

```

GetDepositEndTime returns the end time of a deposit by its ID.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `depositId` | string | ID of the deposit |

#### Return Values

| Name        | Type  | Description        |
| ----------- | ----- | ------------------ |
| `timestamp` | int64 | end timestamp      |
| `err`       | error | error if not found |

***

## GetDepositProjectID

```go
func GetDepositProjectID(
	depositId string
) (string, error)

```

GetDepositProjectID returns the project ID of a deposit by its ID.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `depositId` | string | ID of the deposit |

#### Return Values

| Name        | Type   | Description        |
| ----------- | ------ | ------------------ |
| `projectId` | string | project ID         |
| `err`       | error  | error if not found |

***

## GetDepositProjectTierID

```go
func GetDepositProjectTierID(
	depositId string
) (string, error)

```

GetDepositProjectTierID returns the project tier ID of a deposit by its ID.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `depositId` | string | ID of the deposit |

#### Return Values

| Name            | Type   | Description        |
| --------------- | ------ | ------------------ |
| `projectTierId` | string | project tier ID    |
| `err`           | error  | error if not found |

***

## GetDepositTier

```go
func GetDepositTier(
	depositId string
) (int64, error)

```

GetDepositTier returns the tier of a deposit by its ID.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `depositId` | string | ID of the deposit |

#### Return Values

| Name   | Type  | Description        |
| ------ | ----- | ------------------ |
| `tier` | int64 | tier level         |
| `err`  | error | error if not found |

***

## GetDepositWithdrawnHeight

```go
func GetDepositWithdrawnHeight(
	depositId string
) (int64, error)

```

GetDepositWithdrawnHeight returns the withdrawn height of a deposit by its ID.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `depositId` | string | ID of the deposit |

#### Return Values

| Name     | Type  | Description                |
| -------- | ----- | -------------------------- |
| `height` | int64 | block height at withdrawal |
| `err`    | error | error if not found         |

***

## GetDepositWithdrawnTime

```go
func GetDepositWithdrawnTime(
	depositId string
) (int64, error)

```

GetDepositWithdrawnTime returns the withdrawn time of a deposit by its ID.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `depositId` | string | ID of the deposit |

#### Return Values

| Name        | Type  | Description          |
| ----------- | ----- | -------------------- |
| `timestamp` | int64 | withdrawal timestamp |
| `err`       | error | error if not found   |

***

## GetProjectCount

```go
func GetProjectCount() int

```

GetProjectCount returns the total number of projects.

#### Return Values

| Name    | Type | Description              |
| ------- | ---- | ------------------------ |
| `count` | int  | total number of projects |

***

## GetProjectIDs

```go
func GetProjectIDs(
	offset int,
	count int
) []string

```

GetProjectIDs returns a paginated list of project IDs.

#### Parameters

| Name     | Type | Description             |
| -------- | ---- | ----------------------- |
| `offset` | int  | starting index          |
| `count`  | int  | number of IDs to return |

#### Return Values

| Name         | Type      | Description         |
| ------------ | --------- | ------------------- |
| `projectIds` | \[]string | list of project IDs |

***

## GetProjectActiveStatus

```go
func GetProjectActiveStatus(
	projectId string
) (bool, error)

```

GetProjectActiveStatus returns whether a project is currently active.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `projectId` | string | ID of the project |

#### Return Values

| Name     | Type  | Description               |
| -------- | ----- | ------------------------- |
| `active` | bool  | true if project is active |
| `err`    | error | error if not found        |

***

## GetProjectCreatedAt

```go
func GetProjectCreatedAt(
	projectId string
) (int64, error)

```

GetProjectCreatedAt returns the created time of a project by its ID.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `projectId` | string | ID of the project |

#### Return Values

| Name        | Type  | Description        |
| ----------- | ----- | ------------------ |
| `timestamp` | int64 | creation timestamp |
| `err`       | error | error if not found |

***

## GetProjectCreatedHeight

```go
func GetProjectCreatedHeight(
	projectId string
) (int64, error)

```

GetProjectCreatedHeight returns the created height of a project by its ID.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `projectId` | string | ID of the project |

#### Return Values

| Name     | Type  | Description              |
| -------- | ----- | ------------------------ |
| `height` | int64 | block height at creation |
| `err`    | error | error if not found       |

***

## GetProjectDepositAmount

```go
func GetProjectDepositAmount(
	projectId string
) (int64, error)

```

GetProjectDepositAmount returns the deposit amount of a project by its ID.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `projectId` | string | ID of the project |

#### Return Values

| Name     | Type  | Description        |
| -------- | ----- | ------------------ |
| `amount` | int64 | deposit amount     |
| `err`    | error | error if not found |

***

## GetProjectName

```go
func GetProjectName(
	projectId string
) (string, error)

```

GetProjectName returns the name of a project by its ID.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `projectId` | string | ID of the project |

#### Return Values

| Name   | Type   | Description        |
| ------ | ------ | ------------------ |
| `name` | string | project name       |
| `err`  | error  | error if not found |

***

## GetProjectRecipient

```go
func GetProjectRecipient(
	projectId string
) (address, error)

```

GetProjectRecipient returns the recipient address of a project by its ID.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `projectId` | string | ID of the project |

#### Return Values

| Name        | Type    | Description        |
| ----------- | ------- | ------------------ |
| `recipient` | address | recipient address  |
| `err`       | error   | error if not found |

***

## GetProjectTokenPath

```go
func GetProjectTokenPath(
	projectId string
) (string, error)

```

GetProjectTokenPath returns the token path of a project by its ID.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `projectId` | string | ID of the project |

#### Return Values

| Name        | Type   | Description        |
| ----------- | ------ | ------------------ |
| `tokenPath` | string | project token path |
| `err`       | error  | error if not found |

***

## GetProjectTiersRatios

```go
func GetProjectTiersRatios(
	projectId string
) (map[int64]int64, error)

```

GetProjectTiersRatios returns the tiers ratios map of a project by its ID.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `projectId` | string | ID of the project |

#### Return Values

| Name     | Type             | Description          |
| -------- | ---------------- | -------------------- |
| `ratios` | map\[int64]int64 | map of tier to ratio |
| `err`    | error            | error if not found   |

***

## GetProjectTierDepositCount

```go
func GetProjectTierDepositCount(
	projectId string,
	tier int64
) int

```

GetProjectTierDepositCount returns the total number of deposits for a project tier.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `projectId` | string | ID of the project |
| `tier`      | int64  | tier level        |

#### Return Values

| Name    | Type | Description        |
| ------- | ---- | ------------------ |
| `count` | int  | number of deposits |

***

## GetProjectTierDepositIDs

```go
func GetProjectTierDepositIDs(
	projectId string,
	tier int64,
	offset int,
	count int
) []string

```

GetProjectTierDepositIDs returns a paginated list of deposit IDs for a project tier.

#### Parameters

| Name        | Type   | Description             |
| ----------- | ------ | ----------------------- |
| `projectId` | string | ID of the project       |
| `tier`      | int64  | tier level              |
| `offset`    | int    | starting index          |
| `count`     | int    | number of IDs to return |

#### Return Values

| Name         | Type      | Description         |
| ------------ | --------- | ------------------- |
| `depositIds` | \[]string | list of deposit IDs |

***

## GetProjectTierStartTime

```go
func GetProjectTierStartTime(
	projectId string,
	tier int64
) (int64, error)

```

GetProjectTierStartTime returns the start time of a project tier.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `projectId` | string | ID of the project |
| `tier`      | int64  | tier level        |

#### Return Values

| Name        | Type  | Description        |
| ----------- | ----- | ------------------ |
| `timestamp` | int64 | start timestamp    |
| `err`       | error | error if not found |

***

## GetProjectTierEndTime

```go
func GetProjectTierEndTime(
	projectId string,
	tier int64
) (int64, error)

```

GetProjectTierEndTime returns the end time of a project tier.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `projectId` | string | ID of the project |
| `tier`      | int64  | tier level        |

#### Return Values

| Name        | Type  | Description        |
| ----------- | ----- | ------------------ |
| `timestamp` | int64 | end timestamp      |
| `err`       | error | error if not found |

***

## GetProjectTierDistributeAmountPerSecondX128

```go
func GetProjectTierDistributeAmountPerSecondX128(
	projectId string,
	tier int64
) (*u256.Uint, error)

```

GetProjectTierDistributeAmountPerSecondX128 returns the distribute amount per second (Q128) of a project tier.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `projectId` | string | ID of the project |
| `tier`      | int64  | tier level        |

#### Return Values

| Name     | Type        | Description                                 |
| -------- | ----------- | ------------------------------------------- |
| `amount` | \*u256.Uint | distribute amount per second in Q128 format |
| `err`    | error       | error if not found                          |

***

## GetProjectTierTotalCollectedAmount

```go
func GetProjectTierTotalCollectedAmount(
	projectId string,
	tier int64
) (int64, error)

```

GetProjectTierTotalCollectedAmount returns the total collected amount of a project tier.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `projectId` | string | ID of the project |
| `tier`      | int64  | tier level        |

#### Return Values

| Name     | Type  | Description            |
| -------- | ----- | ---------------------- |
| `amount` | int64 | total collected amount |
| `err`    | error | error if not found     |

***

## GetProjectTierTotalDepositAmount

```go
func GetProjectTierTotalDepositAmount(
	projectId string,
	tier int64
) (int64, error)

```

GetProjectTierTotalDepositAmount returns the total deposit amount of a project tier.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `projectId` | string | ID of the project |
| `tier`      | int64  | tier level        |

#### Return Values

| Name     | Type  | Description          |
| -------- | ----- | -------------------- |
| `amount` | int64 | total deposit amount |
| `err`    | error | error if not found   |

***

## GetProjectTierTotalDepositCount

```go
func GetProjectTierTotalDepositCount(
	projectId string,
	tier int64
) (int64, error)

```

GetProjectTierTotalDepositCount returns the total deposit count of a project tier.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `projectId` | string | ID of the project |
| `tier`      | int64  | tier level        |

#### Return Values

| Name    | Type  | Description         |
| ------- | ----- | ------------------- |
| `count` | int64 | total deposit count |
| `err`   | error | error if not found  |

***

## GetProjectTierTotalDistributeAmount

```go
func GetProjectTierTotalDistributeAmount(
	projectId string,
	tier int64
) (int64, error)

```

GetProjectTierTotalDistributeAmount returns the total distribute amount of a project tier.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `projectId` | string | ID of the project |
| `tier`      | int64  | tier level        |

#### Return Values

| Name     | Type  | Description             |
| -------- | ----- | ----------------------- |
| `amount` | int64 | total distribute amount |
| `err`    | error | error if not found      |

***

## GetProjectTierTotalWithdrawAmount

```go
func GetProjectTierTotalWithdrawAmount(
	projectId string,
	tier int64
) (int64, error)

```

GetProjectTierTotalWithdrawAmount returns the total withdraw amount of a project tier.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `projectId` | string | ID of the project |
| `tier`      | int64  | tier level        |

#### Return Values

| Name     | Type  | Description           |
| -------- | ----- | --------------------- |
| `amount` | int64 | total withdraw amount |
| `err`    | error | error if not found    |

***

## GetProjectTierTotalWithdrawCount

```go
func GetProjectTierTotalWithdrawCount(
	projectId string,
	tier int64
) (int64, error)

```

GetProjectTierTotalWithdrawCount returns the total withdraw count of a project tier.

#### Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| `projectId` | string | ID of the project |
| `tier`      | int64  | tier level        |

#### Return Values

| Name    | Type  | Description          |
| ------- | ----- | -------------------- |
| `count` | int64 | total withdraw count |
| `err`   | error | error if not found   |

***

## GetProjectTierRewardManagerCount

```go
func GetProjectTierRewardManagerCount() int

```

GetProjectTierRewardManagerCount returns the total number of reward managers.

#### Return Values

| Name    | Type | Description                     |
| ------- | ---- | ------------------------------- |
| `count` | int  | total number of reward managers |

***

## GetProjectTierRewardAccumulatedDistributeAmount

```go
func GetProjectTierRewardAccumulatedDistributeAmount(
	projectTierId string
) (int64, error)

```

GetProjectTierRewardAccumulatedDistributeAmount returns the accumulated distribute amount of a reward manager.

#### Parameters

| Name            | Type   | Description            |
| --------------- | ------ | ---------------------- |
| `projectTierId` | string | ID of the project tier |

#### Return Values

| Name     | Type  | Description                   |
| -------- | ----- | ----------------------------- |
| `amount` | int64 | accumulated distribute amount |
| `err`    | error | error if not found            |

***

## GetProjectTierRewardAccumulatedHeight

```go
func GetProjectTierRewardAccumulatedHeight(
	projectTierId string
) (int64, error)

```

GetProjectTierRewardAccumulatedHeight returns the accumulated height of a reward manager.

#### Parameters

| Name            | Type   | Description            |
| --------------- | ------ | ---------------------- |
| `projectTierId` | string | ID of the project tier |

#### Return Values

| Name     | Type  | Description              |
| -------- | ----- | ------------------------ |
| `height` | int64 | accumulated block height |
| `err`    | error | error if not found       |

***

## GetProjectTierRewardAccumulatedRewardPerDepositX128

```go
func GetProjectTierRewardAccumulatedRewardPerDepositX128(
	projectTierId string
) (*u256.Uint, error)

```

GetProjectTierRewardAccumulatedRewardPerDepositX128 returns the accumulated reward per deposit (Q128) of a reward manager.

#### Parameters

| Name            | Type   | Description            |
| --------------- | ------ | ---------------------- |
| `projectTierId` | string | ID of the project tier |

#### Return Values

| Name     | Type        | Description                                   |
| -------- | ----------- | --------------------------------------------- |
| `amount` | \*u256.Uint | accumulated reward per deposit in Q128 format |
| `err`    | error       | error if not found                            |

***

## GetProjectTierRewardAccumulatedTime

```go
func GetProjectTierRewardAccumulatedTime(
	projectTierId string
) (int64, error)

```

GetProjectTierRewardAccumulatedTime returns the accumulated time of a reward manager.

#### Parameters

| Name            | Type   | Description            |
| --------------- | ------ | ---------------------- |
| `projectTierId` | string | ID of the project tier |

#### Return Values

| Name        | Type  | Description           |
| ----------- | ----- | --------------------- |
| `timestamp` | int64 | accumulated timestamp |
| `err`       | error | error if not found    |

***

## GetProjectTierRewardClaimableDuration

```go
func GetProjectTierRewardClaimableDuration(
	projectTierId string
) (int64, error)

```

GetProjectTierRewardClaimableDuration returns the reward claimable duration of a reward manager.

#### Parameters

| Name            | Type   | Description            |
| --------------- | ------ | ---------------------- |
| `projectTierId` | string | ID of the project tier |

#### Return Values

| Name       | Type  | Description                   |
| ---------- | ----- | ----------------------------- |
| `duration` | int64 | claimable duration in seconds |
| `err`      | error | error if not found            |

***

## GetProjectTierRewardDistributeAmountPerSecondX128

```go
func GetProjectTierRewardDistributeAmountPerSecondX128(
	projectTierId string
) (*u256.Uint, error)

```

GetProjectTierRewardDistributeAmountPerSecondX128 returns the distribute amount per second (Q128) of a reward manager.

#### Parameters

| Name            | Type   | Description            |
| --------------- | ------ | ---------------------- |
| `projectTierId` | string | ID of the project tier |

#### Return Values

| Name     | Type        | Description                                 |
| -------- | ----------- | ------------------------------------------- |
| `amount` | \*u256.Uint | distribute amount per second in Q128 format |
| `err`    | error       | error if not found                          |

***

## GetProjectTierRewardDistributeEndTime

```go
func GetProjectTierRewardDistributeEndTime(
	projectTierId string
) (int64, error)

```

GetProjectTierRewardDistributeEndTime returns the distribute end time of a reward manager.

#### Parameters

| Name            | Type   | Description            |
| --------------- | ------ | ---------------------- |
| `projectTierId` | string | ID of the project tier |

#### Return Values

| Name        | Type  | Description              |
| ----------- | ----- | ------------------------ |
| `timestamp` | int64 | distribute end timestamp |
| `err`       | error | error if not found       |

***

## GetProjectTierRewardDistributeStartTime

```go
func GetProjectTierRewardDistributeStartTime(
	projectTierId string
) (int64, error)

```

GetProjectTierRewardDistributeStartTime returns the distribute start time of a reward manager.

#### Parameters

| Name            | Type   | Description            |
| --------------- | ------ | ---------------------- |
| `projectTierId` | string | ID of the project tier |

#### Return Values

| Name        | Type  | Description                |
| ----------- | ----- | -------------------------- |
| `timestamp` | int64 | distribute start timestamp |
| `err`       | error | error if not found         |

***

## GetProjectTierRewardTotalClaimedAmount

```go
func GetProjectTierRewardTotalClaimedAmount(
	projectTierId string
) (int64, error)

```

GetProjectTierRewardTotalClaimedAmount returns the total claimed amount of a reward manager.

#### Parameters

| Name            | Type   | Description            |
| --------------- | ------ | ---------------------- |
| `projectTierId` | string | ID of the project tier |

#### Return Values

| Name     | Type  | Description          |
| -------- | ----- | -------------------- |
| `amount` | int64 | total claimed amount |
| `err`    | error | error if not found   |

***

## GetProjectTierRewardTotalDistributeAmount

```go
func GetProjectTierRewardTotalDistributeAmount(
	projectTierId string
) (int64, error)

```

GetProjectTierRewardTotalDistributeAmount returns the total distribute amount of a reward manager.

#### Parameters

| Name            | Type   | Description            |
| --------------- | ------ | ---------------------- |
| `projectTierId` | string | ID of the project tier |

#### Return Values

| Name     | Type  | Description             |
| -------- | ----- | ----------------------- |
| `amount` | int64 | total distribute amount |
| `err`    | error | error if not found      |
