# Models

## The Plugin object

```json
{"openapi":"3.0.3","info":{"title":"XDAO TON API docs","version":"1.1.0"},"components":{"schemas":{"Plugin":{"type":"object","required":["address","type"],"properties":{"address":{"type":"string"},"type":{"type":"string"},"lp_manager_index":{"type":"integer","nullable":true,"description":"LP Manager index (v6.1+), null for other plugin types."},"lp_jetton_master_address":{"type":"string","nullable":true,"description":"LP token jetton master address (only for LP Manager)."},"lp_token_name":{"type":"string","nullable":true},"lp_token_symbol":{"type":"string","nullable":true},"lp_token_image":{"type":"string","nullable":true},"subaccount_index":{"type":"integer","nullable":true},"subaccount_name":{"type":"string","nullable":true}}}}}}
```

## The Holder object

```json
{"openapi":"3.0.3","info":{"title":"XDAO TON API docs","version":"1.1.0"},"components":{"schemas":{"Holder":{"type":"object","required":["jetton_wallet_address","owner_address","balance"],"properties":{"jetton_wallet_address":{"type":"string"},"owner_address":{"type":"string"},"balance":{"type":"string"}}}}}}
```

## The Dao object

```json
{"openapi":"3.0.3","info":{"title":"XDAO TON API docs","version":"1.1.0"},"components":{"schemas":{"Dao":{"type":"object","required":["address","owner_address","name","jetton_address","jetton_metadata","success_percentage","total_supply","plugins","date_create","crowdfunding_status"],"properties":{"address":{"type":"string"},"owner_address":{"type":"string"},"name":{"type":"string"},"jetton_address":{"type":"string"},"jetton_metadata":{"type":"object","additionalProperties":true},"success_percentage":{"type":"number"},"total_supply":{"type":"string"},"date_create":{"type":"string"},"plugins":{"type":"array","items":{"$ref":"#/components/schemas/Plugin"}},"crowdfunding_status":{"type":"string","enum":["legacy","enabled","ready"]}}},"Plugin":{"type":"object","required":["address","type"],"properties":{"address":{"type":"string"},"type":{"type":"string"},"lp_manager_index":{"type":"integer","nullable":true,"description":"LP Manager index (v6.1+), null for other plugin types."},"lp_jetton_master_address":{"type":"string","nullable":true,"description":"LP token jetton master address (only for LP Manager)."},"lp_token_name":{"type":"string","nullable":true},"lp_token_symbol":{"type":"string","nullable":true},"lp_token_image":{"type":"string","nullable":true},"subaccount_index":{"type":"integer","nullable":true},"subaccount_name":{"type":"string","nullable":true}}}}}}
```

## The Vote object

```json
{"openapi":"3.0.3","info":{"title":"XDAO TON API docs","version":"1.1.0"},"components":{"schemas":{"Vote":{"type":"object","required":["proposal_address","voter_address","amount","date_create"],"properties":{"proposal_address":{"type":"string"},"voter_address":{"type":"string"},"amount":{"type":"string"},"date_create":{"type":"string"}}}}}}
```

## The ProposalStatus object

```json
{"openapi":"3.0.3","info":{"title":"XDAO TON API docs","version":"1.1.0"},"components":{"schemas":{"ProposalStatus":{"type":"string","enum":["active","rejected","executed","mine","unknown"]}}}}
```

## The Proposal object

```json
{"openapi":"3.0.3","info":{"title":"XDAO TON API docs","version":"1.1.0"},"components":{"schemas":{"Proposal":{"type":"object","required":["proposal_id","address","dao_address","jetton_master_address","initiated_by_address","success_amount","current_amount","total_supply","success_percentage","date_start","date_expire","type","data","status","raw_data","dao"],"properties":{"proposal_id":{"type":"integer","format":"int64"},"name":{"type":"string"},"is_user_voted":{"type":"boolean"},"description":{"type":"string"},"address":{"type":"string"},"dao_address":{"type":"string","deprecated":true},"jetton_master_address":{"type":"string"},"initiated_by_address":{"type":"string"},"success_amount":{"type":"string"},"current_amount":{"type":"string"},"total_supply":{"type":"string"},"success_percentage":{"type":"number"},"date_start":{"type":"string"},"date_expire":{"type":"string"},"type":{"type":"string"},"data":{"type":"object","additionalProperties":true},"status":{"$ref":"#/components/schemas/ProposalStatus"},"raw_data":{"type":"string"},"dao":{"$ref":"#/components/schemas/Dao"}}},"ProposalStatus":{"type":"string","enum":["active","rejected","executed","mine","unknown"]},"Dao":{"type":"object","required":["address","owner_address","name","jetton_address","jetton_metadata","success_percentage","total_supply","plugins","date_create","crowdfunding_status"],"properties":{"address":{"type":"string"},"owner_address":{"type":"string"},"name":{"type":"string"},"jetton_address":{"type":"string"},"jetton_metadata":{"type":"object","additionalProperties":true},"success_percentage":{"type":"number"},"total_supply":{"type":"string"},"date_create":{"type":"string"},"plugins":{"type":"array","items":{"$ref":"#/components/schemas/Plugin"}},"crowdfunding_status":{"type":"string","enum":["legacy","enabled","ready"]}}},"Plugin":{"type":"object","required":["address","type"],"properties":{"address":{"type":"string"},"type":{"type":"string"},"lp_manager_index":{"type":"integer","nullable":true,"description":"LP Manager index (v6.1+), null for other plugin types."},"lp_jetton_master_address":{"type":"string","nullable":true,"description":"LP token jetton master address (only for LP Manager)."},"lp_token_name":{"type":"string","nullable":true},"lp_token_symbol":{"type":"string","nullable":true},"lp_token_image":{"type":"string","nullable":true},"subaccount_index":{"type":"integer","nullable":true},"subaccount_name":{"type":"string","nullable":true}}}}}}
```

## The CampaignStatus object

```json
{"openapi":"3.0.3","info":{"title":"XDAO TON API docs","version":"1.1.0"},"components":{"schemas":{"CampaignStatus":{"type":"string","enum":["active","successful","failed","emergency_withdrawn"]}}}}
```

## The CrowdfundingContributor object

```json
{"openapi":"3.0.3","info":{"title":"XDAO TON API docs","version":"1.1.0"},"components":{"schemas":{"CrowdfundingContributor":{"type":"object","required":["address","amount"],"properties":{"address":{"type":"string"},"amount":{"type":"string"}}}}}}
```

## The CrowdfundingParticipant object

```json
{"openapi":"3.0.3","info":{"title":"XDAO TON API docs","version":"1.1.0"},"components":{"schemas":{"CrowdfundingParticipant":{"type":"object","required":["address","masterAddress","ownerAddress","amount"],"properties":{"address":{"type":"string"},"masterAddress":{"type":"string"},"ownerAddress":{"type":"string"},"amount":{"type":"string"},"isClaimed":{"type":"boolean"},"isRefunded":{"type":"boolean"},"claimedAt":{"type":"string","format":"date-time"},"refundedAt":{"type":"string","format":"date-time"},"dateCreate":{"type":"string","format":"date-time"}}}}}}
```

## The CrowdfundingCampaign object

```json
{"openapi":"3.0.3","info":{"title":"XDAO TON API docs","version":"1.1.0"},"components":{"schemas":{"CrowdfundingCampaign":{"type":"object","required":["address","daoAddress","status"],"properties":{"address":{"type":"string"},"daoAddress":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"daoName":{"type":"string"},"isNative":{"type":"boolean"},"jettonSymbol":{"type":"string","nullable":true},"jettonDecimals":{"type":"integer","nullable":true},"jettonImage":{"type":"string","nullable":true},"jettonMasterAddress":{"type":"string"},"lpManagerAddress":{"type":"string"},"lpJettonMasterAddress":{"type":"string"},"destinationAddress":{"type":"string"},"feeManagerAddress":{"type":"string"},"minTotalAmount":{"type":"string"},"maxTotalAmount":{"type":"string"},"minAmountPerUser":{"type":"string"},"maxAmountPerUser":{"type":"string"},"startTime":{"type":"string","format":"date-time"},"endTime":{"type":"string","format":"date-time"},"lpPrice":{"type":"string"},"managementFee":{"type":"integer"},"status":{"$ref":"#/components/schemas/CampaignStatus"},"paused":{"type":"boolean"},"totalAmount":{"type":"string"},"totalClaimed":{"type":"string"},"totalRefunded":{"type":"string"},"isEmergencyWithdrawn":{"type":"boolean"},"hasWhitelist":{"type":"boolean"},"whitelist":{"type":"array","items":{"type":"string"}},"contributors":{"type":"array","items":{"$ref":"#/components/schemas/CrowdfundingContributor"}},"participantsCount":{"type":"integer"},"progressPercentage":{"type":"number","format":"float"},"updatedAt":{"type":"string","format":"date-time"},"finishedAt":{"type":"string","format":"date-time"},"dao":{"$ref":"#/components/schemas/Dao"},"userHelper":{"$ref":"#/components/schemas/CrowdfundingParticipant"},"daoFeeClaimed":{"type":"boolean"},"daoFeeClaimedAt":{"type":"string","format":"date-time","nullable":true},"daoFeeAmount":{"type":"string"}}},"CampaignStatus":{"type":"string","enum":["active","successful","failed","emergency_withdrawn"]},"CrowdfundingContributor":{"type":"object","required":["address","amount"],"properties":{"address":{"type":"string"},"amount":{"type":"string"}}},"Dao":{"type":"object","required":["address","owner_address","name","jetton_address","jetton_metadata","success_percentage","total_supply","plugins","date_create","crowdfunding_status"],"properties":{"address":{"type":"string"},"owner_address":{"type":"string"},"name":{"type":"string"},"jetton_address":{"type":"string"},"jetton_metadata":{"type":"object","additionalProperties":true},"success_percentage":{"type":"number"},"total_supply":{"type":"string"},"date_create":{"type":"string"},"plugins":{"type":"array","items":{"$ref":"#/components/schemas/Plugin"}},"crowdfunding_status":{"type":"string","enum":["legacy","enabled","ready"]}}},"Plugin":{"type":"object","required":["address","type"],"properties":{"address":{"type":"string"},"type":{"type":"string"},"lp_manager_index":{"type":"integer","nullable":true,"description":"LP Manager index (v6.1+), null for other plugin types."},"lp_jetton_master_address":{"type":"string","nullable":true,"description":"LP token jetton master address (only for LP Manager)."},"lp_token_name":{"type":"string","nullable":true},"lp_token_symbol":{"type":"string","nullable":true},"lp_token_image":{"type":"string","nullable":true},"subaccount_index":{"type":"integer","nullable":true},"subaccount_name":{"type":"string","nullable":true}}},"CrowdfundingParticipant":{"type":"object","required":["address","masterAddress","ownerAddress","amount"],"properties":{"address":{"type":"string"},"masterAddress":{"type":"string"},"ownerAddress":{"type":"string"},"amount":{"type":"string"},"isClaimed":{"type":"boolean"},"isRefunded":{"type":"boolean"},"claimedAt":{"type":"string","format":"date-time"},"refundedAt":{"type":"string","format":"date-time"},"dateCreate":{"type":"string","format":"date-time"}}}}}}
```

## The CrowdfundingLpHolder object

```json
{"openapi":"3.0.3","info":{"title":"XDAO TON API docs","version":"1.1.0"},"components":{"schemas":{"CrowdfundingLpHolder":{"type":"object","required":["lpJettonWalletAddress","ownerAddress","balance"],"properties":{"lpJettonWalletAddress":{"type":"string"},"ownerAddress":{"type":"string"},"balance":{"type":"string"}}}}}}
```

## The DaoLpMasterWithLpHolders object

```json
{"openapi":"3.0.3","info":{"title":"XDAO TON API docs","version":"1.1.0"},"components":{"schemas":{"DaoLpMasterWithLpHolders":{"type":"object","required":["lpJettonMasterAddress","campaignAddresses","holdersTotal","holders"],"properties":{"lpJettonMasterAddress":{"type":"string"},"campaignAddresses":{"type":"array","items":{"type":"string"}},"holdersTotal":{"type":"integer","format":"int64"},"holders":{"type":"array","items":{"$ref":"#/components/schemas/CrowdfundingLpHolder"}}}},"CrowdfundingLpHolder":{"type":"object","required":["lpJettonWalletAddress","ownerAddress","balance"],"properties":{"lpJettonWalletAddress":{"type":"string"},"ownerAddress":{"type":"string"},"balance":{"type":"string"}}}}}}
```

## The DaoHoldersList object

```json
{"openapi":"3.0.3","info":{"title":"XDAO TON API docs","version":"1.1.0"},"components":{"schemas":{"DaoHoldersList":{"type":"object","required":["total","items"],"properties":{"total":{"type":"integer","format":"int64"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Holder"}}}},"Holder":{"type":"object","required":["jetton_wallet_address","owner_address","balance"],"properties":{"jetton_wallet_address":{"type":"string"},"owner_address":{"type":"string"},"balance":{"type":"string"}}}}}}
```

## The ProposalList object

```json
{"openapi":"3.0.3","info":{"title":"XDAO TON API docs","version":"1.1.0"},"components":{"schemas":{"ProposalList":{"type":"object","required":["total","items"],"properties":{"total":{"type":"integer","format":"int64"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Proposal"}}}},"Proposal":{"type":"object","required":["proposal_id","address","dao_address","jetton_master_address","initiated_by_address","success_amount","current_amount","total_supply","success_percentage","date_start","date_expire","type","data","status","raw_data","dao"],"properties":{"proposal_id":{"type":"integer","format":"int64"},"name":{"type":"string"},"is_user_voted":{"type":"boolean"},"description":{"type":"string"},"address":{"type":"string"},"dao_address":{"type":"string","deprecated":true},"jetton_master_address":{"type":"string"},"initiated_by_address":{"type":"string"},"success_amount":{"type":"string"},"current_amount":{"type":"string"},"total_supply":{"type":"string"},"success_percentage":{"type":"number"},"date_start":{"type":"string"},"date_expire":{"type":"string"},"type":{"type":"string"},"data":{"type":"object","additionalProperties":true},"status":{"$ref":"#/components/schemas/ProposalStatus"},"raw_data":{"type":"string"},"dao":{"$ref":"#/components/schemas/Dao"}}},"ProposalStatus":{"type":"string","enum":["active","rejected","executed","mine","unknown"]},"Dao":{"type":"object","required":["address","owner_address","name","jetton_address","jetton_metadata","success_percentage","total_supply","plugins","date_create","crowdfunding_status"],"properties":{"address":{"type":"string"},"owner_address":{"type":"string"},"name":{"type":"string"},"jetton_address":{"type":"string"},"jetton_metadata":{"type":"object","additionalProperties":true},"success_percentage":{"type":"number"},"total_supply":{"type":"string"},"date_create":{"type":"string"},"plugins":{"type":"array","items":{"$ref":"#/components/schemas/Plugin"}},"crowdfunding_status":{"type":"string","enum":["legacy","enabled","ready"]}}},"Plugin":{"type":"object","required":["address","type"],"properties":{"address":{"type":"string"},"type":{"type":"string"},"lp_manager_index":{"type":"integer","nullable":true,"description":"LP Manager index (v6.1+), null for other plugin types."},"lp_jetton_master_address":{"type":"string","nullable":true,"description":"LP token jetton master address (only for LP Manager)."},"lp_token_name":{"type":"string","nullable":true},"lp_token_symbol":{"type":"string","nullable":true},"lp_token_image":{"type":"string","nullable":true},"subaccount_index":{"type":"integer","nullable":true},"subaccount_name":{"type":"string","nullable":true}}}}}}
```

## The ProposalVotesList object

```json
{"openapi":"3.0.3","info":{"title":"XDAO TON API docs","version":"1.1.0"},"components":{"schemas":{"ProposalVotesList":{"type":"object","required":["total","items"],"properties":{"total":{"type":"integer","format":"int64"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Vote"}}}},"Vote":{"type":"object","required":["proposal_address","voter_address","amount","date_create"],"properties":{"proposal_address":{"type":"string"},"voter_address":{"type":"string"},"amount":{"type":"string"},"date_create":{"type":"string"}}}}}}
```

## The CrowdfundingCampaignList object

```json
{"openapi":"3.0.3","info":{"title":"XDAO TON API docs","version":"1.1.0"},"components":{"schemas":{"CrowdfundingCampaignList":{"type":"object","required":["total","items"],"properties":{"total":{"type":"integer","format":"int64"},"items":{"type":"array","items":{"$ref":"#/components/schemas/CrowdfundingCampaign"}}}},"CrowdfundingCampaign":{"type":"object","required":["address","daoAddress","status"],"properties":{"address":{"type":"string"},"daoAddress":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"daoName":{"type":"string"},"isNative":{"type":"boolean"},"jettonSymbol":{"type":"string","nullable":true},"jettonDecimals":{"type":"integer","nullable":true},"jettonImage":{"type":"string","nullable":true},"jettonMasterAddress":{"type":"string"},"lpManagerAddress":{"type":"string"},"lpJettonMasterAddress":{"type":"string"},"destinationAddress":{"type":"string"},"feeManagerAddress":{"type":"string"},"minTotalAmount":{"type":"string"},"maxTotalAmount":{"type":"string"},"minAmountPerUser":{"type":"string"},"maxAmountPerUser":{"type":"string"},"startTime":{"type":"string","format":"date-time"},"endTime":{"type":"string","format":"date-time"},"lpPrice":{"type":"string"},"managementFee":{"type":"integer"},"status":{"$ref":"#/components/schemas/CampaignStatus"},"paused":{"type":"boolean"},"totalAmount":{"type":"string"},"totalClaimed":{"type":"string"},"totalRefunded":{"type":"string"},"isEmergencyWithdrawn":{"type":"boolean"},"hasWhitelist":{"type":"boolean"},"whitelist":{"type":"array","items":{"type":"string"}},"contributors":{"type":"array","items":{"$ref":"#/components/schemas/CrowdfundingContributor"}},"participantsCount":{"type":"integer"},"progressPercentage":{"type":"number","format":"float"},"updatedAt":{"type":"string","format":"date-time"},"finishedAt":{"type":"string","format":"date-time"},"dao":{"$ref":"#/components/schemas/Dao"},"userHelper":{"$ref":"#/components/schemas/CrowdfundingParticipant"},"daoFeeClaimed":{"type":"boolean"},"daoFeeClaimedAt":{"type":"string","format":"date-time","nullable":true},"daoFeeAmount":{"type":"string"}}},"CampaignStatus":{"type":"string","enum":["active","successful","failed","emergency_withdrawn"]},"CrowdfundingContributor":{"type":"object","required":["address","amount"],"properties":{"address":{"type":"string"},"amount":{"type":"string"}}},"Dao":{"type":"object","required":["address","owner_address","name","jetton_address","jetton_metadata","success_percentage","total_supply","plugins","date_create","crowdfunding_status"],"properties":{"address":{"type":"string"},"owner_address":{"type":"string"},"name":{"type":"string"},"jetton_address":{"type":"string"},"jetton_metadata":{"type":"object","additionalProperties":true},"success_percentage":{"type":"number"},"total_supply":{"type":"string"},"date_create":{"type":"string"},"plugins":{"type":"array","items":{"$ref":"#/components/schemas/Plugin"}},"crowdfunding_status":{"type":"string","enum":["legacy","enabled","ready"]}}},"Plugin":{"type":"object","required":["address","type"],"properties":{"address":{"type":"string"},"type":{"type":"string"},"lp_manager_index":{"type":"integer","nullable":true,"description":"LP Manager index (v6.1+), null for other plugin types."},"lp_jetton_master_address":{"type":"string","nullable":true,"description":"LP token jetton master address (only for LP Manager)."},"lp_token_name":{"type":"string","nullable":true},"lp_token_symbol":{"type":"string","nullable":true},"lp_token_image":{"type":"string","nullable":true},"subaccount_index":{"type":"integer","nullable":true},"subaccount_name":{"type":"string","nullable":true}}},"CrowdfundingParticipant":{"type":"object","required":["address","masterAddress","ownerAddress","amount"],"properties":{"address":{"type":"string"},"masterAddress":{"type":"string"},"ownerAddress":{"type":"string"},"amount":{"type":"string"},"isClaimed":{"type":"boolean"},"isRefunded":{"type":"boolean"},"claimedAt":{"type":"string","format":"date-time"},"refundedAt":{"type":"string","format":"date-time"},"dateCreate":{"type":"string","format":"date-time"}}}}}}
```

## The DaoLpMasterWithLpHoldersList object

```json
{"openapi":"3.0.3","info":{"title":"XDAO TON API docs","version":"1.1.0"},"components":{"schemas":{"DaoLpMasterWithLpHoldersList":{"type":"object","required":["total","items"],"properties":{"total":{"type":"integer","format":"int64"},"items":{"type":"array","items":{"$ref":"#/components/schemas/DaoLpMasterWithLpHolders"}}}},"DaoLpMasterWithLpHolders":{"type":"object","required":["lpJettonMasterAddress","campaignAddresses","holdersTotal","holders"],"properties":{"lpJettonMasterAddress":{"type":"string"},"campaignAddresses":{"type":"array","items":{"type":"string"}},"holdersTotal":{"type":"integer","format":"int64"},"holders":{"type":"array","items":{"$ref":"#/components/schemas/CrowdfundingLpHolder"}}}},"CrowdfundingLpHolder":{"type":"object","required":["lpJettonWalletAddress","ownerAddress","balance"],"properties":{"lpJettonWalletAddress":{"type":"string"},"ownerAddress":{"type":"string"},"balance":{"type":"string"}}}}}}
```

## The Error object

```json
{"openapi":"3.0.3","info":{"title":"XDAO TON API docs","version":"1.1.0"},"components":{"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}
```
