# app.gainforest.funding.config

> Published by [gainforest.earth](https://lexicon.garden/identity/did:plc:qoti4acfmc5wg6zzmtix6hse)

✓ This is the authoritative definition for this NSID.

## Description

A record that represents the funding / donations configuration for a given bumicert. It shares the same rkey as the claim.activity (bumicert) record.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qoti4acfmc5wg6zzmtix6hse/app.gainforest.funding.config)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qoti4acfmc5wg6zzmtix6hse/app.gainforest.funding.config/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qoti4acfmc5wg6zzmtix6hse/app.gainforest.funding.config/examples)

## Definitions

### `app.gainforest.funding.config`

**Type**: `record`

The funding / donations configuration for a given bumicert.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `status` | `string` | No | The current status of the listing. Defaults to 'open'. |
| `createdAt` | `string` (datetime) | Yes | Client-declared timestamp when this record was originally created. |
| `goalInUSD` | `string` | No | An optional field to set a fundraising goal in USD (e.g. '1000.50'). |
| `updatedAt` | `string` (datetime) | Yes | Client-declared timestamp when this record was last updated. |
| `allowOversell` | `boolean` | No | An optional field to determine if donations are accepted post the goal reach. Defaults to true (overselling is allowed). |
| `receivingWallet` | `union` | Yes | Reference to the wallet link record where funds should be received. Open union to support future wallet types (e.g. Solana, Cosmos). |
| `maxDonationInUSD` | `string` | No | Optional maximum donation amount in USD (e.g. '10000.00'). Donations above this amount will be rejected. |
| `minDonationInUSD` | `string` | No | Optional minimum donation amount in USD (e.g. '1.00'). Donations below this amount will be rejected. |

### `app.gainforest.funding.config#evmLinkRef`

**Type**: `object`

Reference to an EVM wallet link record (app.gainforest.link.evm).

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | AT-URI of the app.gainforest.link.evm record. |

## Raw Schema

```json
{
  "id": "app.gainforest.funding.config",
  "defs": {
    "main": {
      "key": "any",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "receivingWallet",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "status": {
            "type": "string",
            "maxLength": 20,
            "description": "The current status of the listing. Defaults to 'open'.",
            "knownValues": [
              "coming-soon",
              "open",
              "paused",
              "closed"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Client-declared timestamp when this record was originally created."
          },
          "goalInUSD": {
            "type": "string",
            "maxLength": 50,
            "description": "An optional field to set a fundraising goal in USD (e.g. '1000.50')."
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime",
            "description": "Client-declared timestamp when this record was last updated."
          },
          "allowOversell": {
            "type": "boolean",
            "default": true,
            "description": "An optional field to determine if donations are accepted post the goal reach. Defaults to true (overselling is allowed)."
          },
          "receivingWallet": {
            "refs": [
              "#evmLinkRef"
            ],
            "type": "union",
            "description": "Reference to the wallet link record where funds should be received. Open union to support future wallet types (e.g. Solana, Cosmos)."
          },
          "maxDonationInUSD": {
            "type": "string",
            "maxLength": 50,
            "description": "Optional maximum donation amount in USD (e.g. '10000.00'). Donations above this amount will be rejected."
          },
          "minDonationInUSD": {
            "type": "string",
            "maxLength": 50,
            "description": "Optional minimum donation amount in USD (e.g. '1.00'). Donations below this amount will be rejected."
          }
        }
      },
      "description": "The funding / donations configuration for a given bumicert."
    },
    "evmLinkRef": {
      "type": "object",
      "required": [
        "uri"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "at-uri",
          "description": "AT-URI of the app.gainforest.link.evm record."
        }
      },
      "description": "Reference to an EVM wallet link record (app.gainforest.link.evm)."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "A record that represents the funding / donations configuration for a given bumicert. It shares the same rkey as the claim.activity (bumicert) record."
}
```
