openapi: 3.1.0 info: title: '' version: 0.0.0 paths: /api/v1/asset/asset/{chainId}/{address}/{tokenId}: get: operationId: fetchAssetMetadata parameters: - in: path name: address schema: type: string pattern: ^0x[0-9A-Fa-f]{40}|0x[0-9A-Fa-f]{64}$ required: true - in: path name: chainId schema: type: string pattern: ^\w+$ required: true - in: query name: refresh schema: type: boolean - in: path name: tokenId schema: type: string pattern: ^\d+$ required: false tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/AssetDetail' description: '' /api/v1/asset/collection/{chainId}/{address}/: get: operationId: fetchNFTAssetCollectionMetadata2 parameters: - in: path name: address schema: type: string pattern: ^0x[0-9A-Fa-f]{40}|0x[0-9A-Fa-f]{64}$ required: true - in: path name: chainId schema: type: string pattern: ^\w+$ required: true - in: query name: refresh schema: type: boolean tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/NFTAssetCollectionDetailSchema' description: '' /api/v1/asset/collection/slug/{openseaSlug}/: get: operationId: fetchNFTAssetCollectionMetadata parameters: - in: path name: openseaSlug schema: type: string pattern: ^[\w-]+$ required: true - in: query name: refresh schema: type: boolean tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/NFTAssetCollectionDetailSchema' description: '' /api/v1/asset/price/{chainId}/{contractAddress}/{tokenId}: get: operationId: fetchAssetPrice description: |- Returns price currently available in the DB and info about a task is scheduled or not. HTTP Status: * 200 returning price from DB * TODO: 202 when task was scheduled, returned with or without the data * TODO: get asset category (once asset_category_refactor is merged) parameters: - in: path name: chainId schema: type: string pattern: ^\w+$ required: true - in: path name: contractAddress schema: type: string pattern: ^0x[0-9A-Fa-f]{40}|0x[0-9A-Fa-f]{64}$ required: true - in: query name: refresh schema: type: boolean - in: query name: timestamp schema: type: integer - in: path name: tokenId schema: type: string pattern: ^\d+|null$ required: true tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/AssetPriceAndTaskStatusSchema' description: '' /api/v1/asset/user-erc20s/{chainId}/{userAddress}/: get: operationId: fetchUserErc20s parameters: - in: path name: chainId schema: type: string pattern: ^\w+$ required: true - in: query name: subdomain schema: type: string - in: path name: userAddress schema: type: string pattern: ^0x[0-9A-Fa-f]{40}|0x[0-9A-Fa-f]{64}$ required: true tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/ERC20AssetSchemaWithBalance' description: '' /api/v1/asset/user-nfts/{chainId}/{userAddress}/: get: operationId: fetchUserNfts parameters: - in: path name: chainId schema: type: string pattern: ^\w+$ required: true - in: query name: metadata_source schema: type: string enum: - ALCHEMY - CELOSCAN - INKONCHAIN_EXPLORER - MORALIS - in: query name: page schema: type: string - in: query name: subdomain schema: type: string - in: path name: userAddress schema: type: string pattern: ^0x[0-9A-Fa-f]{40}|0x[0-9A-Fa-f]{64}$ required: true tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/FetchUserNFTsResponse' description: '' /api/v1/notification/mark-as-seen-all/{recipientAddress}/: post: operationId: notificationsMarkAsSeenAll parameters: - in: path name: recipientAddress schema: type: string pattern: ^0x[0-9A-Fa-f]+$ required: true tags: - include-sdk security: - jwtAuth: [] - {} responses: '204': description: all user notifications correctly marked as seen /api/v1/notification/mark-as-seen/{recipientAddress}/: post: operationId: notificationsMarkAsSeen parameters: - in: path name: recipientAddress schema: type: string pattern: ^0x[0-9A-Fa-f]+$ required: true tags: - include-sdk requestBody: content: application/json: schema: $ref: '#/components/schemas/MarkAsSeenBodyRequest' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/MarkAsSeenBodyRequest' multipart/form-data: schema: $ref: '#/components/schemas/MarkAsSeenBodyRequest' required: true security: - jwtAuth: [] - {} responses: '204': description: notification correctly marked as seen /api/v1/notification/user-unseen-notifications-count/{recipientAddress}/: get: operationId: notificationUserUnseenNotificationsCount parameters: - in: query name: include_testnets schema: type: boolean default: false - in: path name: recipientAddress schema: type: string pattern: ^0x[0-9A-Fa-f]+$ required: true - in: query name: subdomain schema: type: string tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/UnseenNotificationsCount' description: '' /api/v1/web3auth/curator_groups/: get: operationId: web3authCuratorGroupsList parameters: - name: limit required: false in: query description: Number of results to return per page. schema: type: integer - name: offset required: false in: query description: The initial index from which to return the results. schema: type: integer tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/PaginatedCuratorGroupDetailList' description: '' /api/v1/web3auth/curator_groups/{name}/: get: operationId: web3authCuratorGroupsRetrieve parameters: - in: path name: name schema: type: string pattern: ^[\w-]+$ required: true tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/CuratorGroupDetail' description: '' /api/v1/web3auth/message_to_sign/{walletAddress}/: get: operationId: web3authMessageToSignRetrieve description: Returns full message to sign in response body. parameters: - in: path name: walletAddress schema: type: string pattern: ^0x[0-9A-Fa-f]{40}|0x[0-9A-Fa-f]{64}$ required: true tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: type: string description: '' /api/v1/web3auth/notification_settings/{walletAddress}/: get: operationId: web3authNotificationSettingsRetrieve parameters: - in: path name: walletAddress schema: type: string pattern: ^0x[0-9A-Fa-f]{40}|0x[0-9A-Fa-f]{64}$ required: true tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/NotificationSettings' description: '' post: operationId: web3authNotificationSettingsCreate parameters: - in: path name: walletAddress schema: type: string pattern: ^0x[0-9A-Fa-f]{40}|0x[0-9A-Fa-f]{64}$ required: true tags: - include-sdk requestBody: content: application/json: schema: $ref: '#/components/schemas/NotificationSettingsRequest' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/NotificationSettingsRequest' multipart/form-data: schema: $ref: '#/components/schemas/NotificationSettingsRequest' required: true security: - jwtAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/NotificationSettings' description: '' /api/v1/web3auth/user_profile/{walletAddress}/: get: operationId: web3authUserProfileRetrieve parameters: - in: path name: walletAddress schema: type: string pattern: ^0x[0-9A-Fa-f]{40}|0x[0-9A-Fa-f]{64}$ required: true tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/UserProfileResponse' description: '' post: operationId: web3authUserProfileCreate parameters: - in: path name: walletAddress schema: type: string pattern: ^0x[0-9A-Fa-f]{40}|0x[0-9A-Fa-f]{64}$ required: true tags: - include-sdk requestBody: content: application/json: schema: $ref: '#/components/schemas/UserProfileRequestRequest' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/UserProfileRequestRequest' multipart/form-data: schema: $ref: '#/components/schemas/UserProfileRequestRequest' security: - jwtAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/UserProfileResponse' description: '' /api/v1/web3auth/user_profile/stats/{walletAddress}/: get: operationId: web3authUserProfileStatsRetrieve parameters: - in: query name: chain_id schema: type: array items: type: integer - in: query name: refresh schema: type: boolean - in: path name: walletAddress schema: type: string pattern: ^0x[0-9A-Fa-f]{40}|0x[0-9A-Fa-f]{64}$ required: true tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/WalletStats' description: '' /api/v1/web3auth/wallets/{walletAddress}/: get: operationId: web3authWalletsRetrieve parameters: - in: path name: walletAddress schema: type: string pattern: ^0x[0-9A-Fa-f]{40}|0x[0-9A-Fa-f]{64}$ required: true tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/WalletRole' description: '' /api/v2/pwn_contracts/all-proposal-hashes-for-root/{multiproposalMerkleRoot}/: get: operationId: allProposalHashesForRoot parameters: - in: path name: multiproposalMerkleRoot schema: type: string pattern: ^0x[0-9A-Fa-f]{64}$ required: true tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/ProposalHashesListSchema' description: '' /api/v2/pwn_contracts/create-proposal-batch: post: operationId: proposalCreateBatch tags: - include-sdk requestBody: content: application/json: schema: type: array items: $ref: '#/components/schemas/CreateProposalRequestSchemaRequest' required: true security: - jwtAuth: [] - {} responses: '201': content: application/json: schema: type: array items: $ref: '#/components/schemas/ProposalDetailSchema' description: '' /api/v2/pwn_contracts/create-proposal-batch/: post: operationId: proposalCreateBatch2 tags: - include-sdk requestBody: content: application/json: schema: type: array items: $ref: '#/components/schemas/CreateProposalRequestSchemaRequest' required: true security: - jwtAuth: [] - {} responses: '201': content: application/json: schema: type: array items: $ref: '#/components/schemas/ProposalDetailSchema' description: '' /api/v2/pwn_contracts/free-user-nonce/{chainId}/{revokedNonceContractAddress}/{userAddress}/: get: operationId: freeUserNonceRetrieve parameters: - in: path name: chainId schema: type: string pattern: ^\w+$ required: true - in: query name: nonce_count_to_reserve schema: type: number default: 1 - in: path name: revokedNonceContractAddress schema: type: string pattern: ^0x[0-9A-Fa-f]{40}|0x[0-9A-Fa-f]{64}$ required: true - in: path name: userAddress schema: type: string pattern: ^0x[0-9A-Fa-f]{40}|0x[0-9A-Fa-f]{63,64}$ required: true tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/FreeUserNonceSchemaWorkaround' description: '' /api/v2/pwn_contracts/loan/{chainId}/{loanTokenContractAddress}/{onChainId}/: get: operationId: loanDetail parameters: - in: path name: chainId schema: type: string pattern: ^\w+$ required: true - in: path name: loanTokenContractAddress schema: type: string pattern: ^0x[0-9A-Fa-f]{40}|0x[0-9A-Fa-f]{64}$ required: true - in: path name: onChainId schema: type: string pattern: ^\d+$ required: true tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/LoanDetailSchemaWorkaround' description: '' /api/v2/pwn_contracts/proposal/: post: operationId: proposalCreate tags: - include-sdk requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateProposalRequestSchemaRequest' security: - jwtAuth: [] - {} responses: '201': content: application/json: schema: $ref: '#/components/schemas/ProposalDetailSchema' description: '' /api/v2/pwn_contracts/proposal-and-loan/: get: operationId: proposalAndLoanList parameters: - in: query name: apr_max schema: type: string - in: query name: apr_min schema: type: string - in: query name: assetContractAddress schema: type: string - in: query name: assetOwnerAddress schema: type: string - in: query name: borrowerAddress schema: type: string - in: query name: chains schema: type: array items: type: integer enum: - 1 - 10 - 100 - 11155111 - 11155112 - 112211 - 130 - 1301 - 137 - 25 - 42161 - 42220 - 480 - 56 - 57073 - 59144 - 8453 description: |- * `1` - Mainnet * `137` - Polygon * `100` - Gnosis * `25` - Cronos * `8453` - Base * `10` - Optimism * `130` - Unichain * `42161` - Arbitrum One * `56` - Bnb Smart Chain * `11155111` - Sepolia * `1301` - Unichain Sepolia * `112211` - Sn Main * `11155112` - Sn Sepolia * `480` - World * `57073` - Ink * `59144` - Linea * `42220` - Celo explode: true style: form - in: query name: collateralAsset schema: type: array items: type: string description: 'Values passed to this filter should be CSV values with length 2, 3 or 4: ''chain_id,contract_address,amount(optional),token_id(optional)''. If you want to pass token_id but not amount, you should keep the amount empty.' explode: false style: form - in: query name: collateralAssetCategory schema: type: array items: type: string description: Multiple values may be separated by commas. explode: false style: form - in: query name: collateralType schema: type: string enum: - all - erc20 - nft description: |- * `erc20` - Only proposals/loans with ERC20 collateral * `nft` - Only proposals/loans with NFT collateral * `all` - All proposals/loans no matter the collateral type - in: query name: createdFromProposalHash schema: type: string - in: query name: createdFromProposalId schema: type: string - in: query name: creditAsset schema: type: array items: type: string description: 'Values passed to this filter should be CSV values with length 2 or 3: ''chain_id,contract_address,amount(optional)''' explode: false style: form - in: query name: creditAssetCategory schema: type: array items: type: string description: Multiple values may be separated by commas. explode: false style: form - in: query name: durationInSeconds_max schema: type: integer - in: query name: durationInSeconds_min schema: type: integer - in: query name: endTime schema: type: string description: End Time - in: query name: excludeUserAddress schema: type: string - in: query name: includeCollateralWithoutPrice schema: type: boolean - in: query name: includeCreditWithoutPrice schema: type: boolean - in: query name: includeLoans schema: type: boolean - in: query name: includeProposals schema: type: boolean - in: query name: includeUnverifiedCollateral schema: type: boolean - in: query name: includeUnverifiedCredit schema: type: boolean - in: query name: isOffer schema: type: boolean - in: query name: lenderAddress schema: type: string - name: limit required: false in: query description: Number of results to return per page. schema: type: integer - in: query name: ltv_max schema: type: - integer - 'null' maximum: 9223372036854775807 minimum: 0 format: int64 - in: query name: ltv_min schema: type: - integer - 'null' maximum: 9223372036854775807 minimum: 0 format: int64 - name: offset required: false in: query description: The initial index from which to return the results. schema: type: integer - in: query name: onlyWithBuilderScore schema: type: boolean - in: query name: onlyWithReputationScore schema: type: boolean - in: query name: orderBy schema: type: array items: type: string enum: - -apr - -builder_score - -collateral_name - -created_at - -default_date - -duration - -expiration - -ltv - -reputation_score - -usd_credit_value - apr - builder_score - collateral_name - created_at - default_date - duration - expiration - ltv - reputation_score - usd_credit_value description: |- Ordering choices: * `expiration`: Expiration (only proposals) * `-expiration`: Expiration desc (only proposals) * `ltv`: LTV (comma separated) * `-ltv`: LTV desc (comma separated) * `apr`: APR * `-apr`: APR desc * `collateral_name`: Collateral name * `-collateral_name`: Collateral name desc * `duration`: Duration * `-duration`: Duration desc * `created_at`: Created at * `-created_at`: Created at desc * `usd_credit_value`: Credit value in USD * `-usd_credit_value`: Credit value in USD (desc) * `default_date`: Default date (loan) * `-default_date`: Default date (loan) (desc) * `builder_score`: Builder Score * `-builder_score`: Builder Score (desc) * `reputation_score`: Reputation Score * `-reputation_score`: Reputation Score (desc) explode: false style: form - in: query name: q schema: type: string - in: query name: relatedThesisId schema: type: string - in: query name: startTime schema: type: string description: Start Time - in: query name: statuses schema: type: array items: type: integer enum: - -1 - -2 - -3 - -4 - -5 - -6 - 0 - 1 - 2 - 3 - 4 description: |- * `0` - DEAD * `2` - RUNNING * `3` - PAID * `4` - DEFAULTED * `-6` - DEPRECATED * `-5` - UNAVAILABLE_THESIS_TERMS_CHANGED * `-4` - UNACCEPTABLE * `-3` - ACCEPTED * `-2` - EXPIRED * `-1` - REVOKED * `1` - OPEN explode: true style: form - in: query name: userAddress schema: type: string tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/PaginatedProposalAndLoanListSchemaWorkaroundList' description: '' /api/v2/pwn_contracts/proposal/{id}: get: operationId: proposalDetail parameters: - in: path name: id schema: type: integer description: A unique integer value identifying this proposal. required: true tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/ProposalDetailSchema' description: '' /api/v2/pwn_contracts/proposals/: get: operationId: proposalList parameters: - in: query name: apr_max schema: type: string - in: query name: apr_min schema: type: string - in: query name: assetContractAddress schema: type: string - in: query name: assetOwnerAddress schema: type: string - in: query name: borrowerAddress schema: type: string - in: query name: chains schema: type: array items: type: integer enum: - 1 - 10 - 100 - 11155111 - 11155112 - 112211 - 130 - 1301 - 137 - 25 - 42161 - 42220 - 480 - 56 - 57073 - 59144 - 8453 description: |- * `1` - Mainnet * `137` - Polygon * `100` - Gnosis * `25` - Cronos * `8453` - Base * `10` - Optimism * `130` - Unichain * `42161` - Arbitrum One * `56` - Bnb Smart Chain * `11155111` - Sepolia * `1301` - Unichain Sepolia * `112211` - Sn Main * `11155112` - Sn Sepolia * `480` - World * `57073` - Ink * `59144` - Linea * `42220` - Celo explode: true style: form - in: query name: collateralAsset schema: type: array items: type: string description: 'Values passed to this filter should be CSV values with length 2, 3 or 4: ''chain_id,contract_address,amount(optional),token_id(optional)''. If you want to pass token_id but not amount, you should keep the amount empty.' explode: false style: form - in: query name: collateralAssetCategory schema: type: array items: type: string description: Multiple values may be separated by commas. explode: false style: form - in: query name: collateralType schema: type: string enum: - all - erc20 - nft description: |- * `erc20` - Only proposals/loans with ERC20 collateral * `nft` - Only proposals/loans with NFT collateral * `all` - All proposals/loans no matter the collateral type - in: query name: createdFromProposalHash schema: type: string - in: query name: createdFromProposalId schema: type: string - in: query name: creditAsset schema: type: array items: type: string description: 'Values passed to this filter should be CSV values with length 2 or 3: ''chain_id,contract_address,amount(optional)''' explode: false style: form - in: query name: creditAssetCategory schema: type: array items: type: string description: Multiple values may be separated by commas. explode: false style: form - in: query name: durationInSeconds_max schema: type: string - in: query name: durationInSeconds_min schema: type: string - in: query name: endTime schema: type: string description: End Time - in: query name: excludeUserAddress schema: type: string - in: query name: includeCollateralWithoutPrice schema: type: boolean - in: query name: includeCreditWithoutPrice schema: type: boolean - in: query name: includeLoans schema: type: boolean - in: query name: includeProposals schema: type: boolean - in: query name: includeUnverifiedCollateral schema: type: boolean - in: query name: includeUnverifiedCredit schema: type: boolean - in: query name: isOffer schema: type: boolean - in: query name: lenderAddress schema: type: string - name: limit required: false in: query description: Number of results to return per page. schema: type: integer - in: query name: ltv_max schema: type: - integer - 'null' maximum: 9223372036854775807 minimum: 0 format: int64 - in: query name: ltv_min schema: type: - integer - 'null' maximum: 9223372036854775807 minimum: 0 format: int64 - name: offset required: false in: query description: The initial index from which to return the results. schema: type: integer - in: query name: onlyWithBuilderScore schema: type: boolean - in: query name: onlyWithReputationScore schema: type: boolean - in: query name: q schema: type: string - in: query name: relatedThesisId schema: type: string - in: query name: startTime schema: type: string description: Start Time - in: query name: statuses schema: type: array items: type: integer enum: - -1 - -2 - -3 - -4 - -5 - -6 - 0 - 1 - 2 - 3 - 4 description: |- * `0` - DEAD * `2` - RUNNING * `3` - PAID * `4` - DEFAULTED * `-6` - DEPRECATED * `-5` - UNAVAILABLE_THESIS_TERMS_CHANGED * `-4` - UNACCEPTABLE * `-3` - ACCEPTED * `-2` - EXPIRED * `-1` - REVOKED * `1` - OPEN explode: true style: form - in: query name: userAddress schema: type: string tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/PaginatedProposalDetailSchemaList' description: '' /api/v2/pwn_contracts/thesis/: get: operationId: thesisList parameters: - in: query name: chain_id schema: type: integer - in: query name: curator schema: type: string - in: query name: is_featured schema: type: boolean - in: query name: is_featured_chain schema: type: integer - name: limit required: false in: query description: Number of results to return per page. schema: type: integer - name: offset required: false in: query description: The initial index from which to return the results. schema: type: integer - in: query name: thesis_type schema: type: integer - in: query name: user_address schema: type: string tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/PaginatedThesisSchemaWorkaroundList' description: '' post: operationId: createStrategy description: Create a new Strategy tags: - include-sdk requestBody: content: application/json: schema: $ref: '#/components/schemas/ThesisCreateUpdateSchemaRequest' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/ThesisCreateUpdateSchemaRequest' multipart/form-data: schema: $ref: '#/components/schemas/ThesisCreateUpdateSchemaRequest' required: true security: - jwtAuth: [] responses: '201': content: application/json: schema: type: object additionalProperties: {} description: '' '400': content: application/json: schema: type: object additionalProperties: {} description: '' '403': content: application/json: schema: type: object additionalProperties: {} description: '' /api/v2/pwn_contracts/thesis/{id}/: get: operationId: thesisDetail parameters: - in: path name: id schema: type: string pattern: ^\d+$ required: true - in: query name: user_address schema: type: string tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/ThesisSchemaWorkaround' description: '' put: operationId: updateStrategy description: Update an existing Strategy parameters: - in: path name: id schema: type: string pattern: ^\d+$ required: true - in: path name: pk schema: type: integer description: Primary key of the strategy to update required: true tags: - include-sdk requestBody: content: application/json: schema: $ref: '#/components/schemas/ThesisCreateUpdateSchemaRequest' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/ThesisCreateUpdateSchemaRequest' multipart/form-data: schema: $ref: '#/components/schemas/ThesisCreateUpdateSchemaRequest' required: true security: - jwtAuth: [] responses: '200': content: application/json: schema: type: object additionalProperties: {} description: '' '400': content: application/json: schema: type: object additionalProperties: {} description: '' '403': content: application/json: schema: type: object additionalProperties: {} description: '' '404': content: application/json: schema: type: object additionalProperties: {} description: '' /api/v2/pwn_contracts/thesis/{slug}/: get: operationId: thesisDetail2 parameters: - in: path name: slug schema: type: string pattern: ^[^/]+$ required: true - in: query name: user_address schema: type: string tags: - include-sdk security: - jwtAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/ThesisSchemaWorkaround' description: '' put: operationId: updateStrategy2 description: Update an existing Strategy parameters: - in: path name: pk schema: type: integer description: Primary key of the strategy to update required: true - in: path name: slug schema: type: string pattern: ^[^/]+$ required: true tags: - include-sdk requestBody: content: application/json: schema: $ref: '#/components/schemas/ThesisCreateUpdateSchemaRequest' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/ThesisCreateUpdateSchemaRequest' multipart/form-data: schema: $ref: '#/components/schemas/ThesisCreateUpdateSchemaRequest' required: true security: - jwtAuth: [] responses: '200': content: application/json: schema: type: object additionalProperties: {} description: '' '400': content: application/json: schema: type: object additionalProperties: {} description: '' '403': content: application/json: schema: type: object additionalProperties: {} description: '' '404': content: application/json: schema: type: object additionalProperties: {} description: '' components: schemas: ATRTokenMetadata: type: object description: ATRToken Metadata URI Public Endpoint Serializer properties: name: type: string readOnly: true description: type: string readOnly: true token_id: type: string image: type: string readOnly: true tokenized_asset: $ref: '#/components/schemas/Asset' tokenized_amount: type: string asset_token_id: type: string readOnly: true asset_contract_address: type: string readOnly: true tokenized_asset_owner: type: string readOnly: true required: - asset_contract_address - asset_token_id - description - image - name - token_id - tokenized_amount - tokenized_asset - tokenized_asset_owner ActiveAllowancesSchemaWorkaround: properties: totalAllowance: title: Totalallowance type: string creditAllowance: title: Creditallowance type: string collateralAllowance: title: Collateralallowance type: string required: - totalAllowance - creditAllowance - collateralAllowance title: ActiveAllowancesSchemaWorkaround type: object AmountInEthAndUsd: properties: eth_amount: anyOf: - type: string - type: 'null' default: null title: Eth Amount usd_amount: anyOf: - type: string - type: 'null' default: null title: Usd Amount title: AmountInEthAndUsd type: object AmountInTokenAndEthAndUsd: properties: eth_amount: anyOf: - type: string - type: 'null' default: null title: Eth Amount usd_amount: anyOf: - type: string - type: 'null' default: null title: Usd Amount token_amount: anyOf: - type: string - type: 'null' default: null title: Token Amount title: AmountInTokenAndEthAndUsd type: object AprMappingsSchema: additionalProperties: type: number description: 'APR mappings stored as key-value pairs where the key follows the format: {collateralAddress}/{collateralChainId}-{creditAddress}/{creditChainId}' example: 0x98C23E9d8f34FEFb1B7BD6a91B7FF122F4e16F5c/1-0x0bB9aB78aAF7179b7515e6753d89822b91e670C4/1: 8.5 title: AprMappingsSchema type: object Asset: $ref: '#/components/schemas/Erc20OrNftAsset' AssetCategory: enum: - -1 - 0 - 1 - 2 - 3 - 420 - 421 title: AssetCategory type: integer AssetContractWithNameAndImage: type: object properties: id: type: integer readOnly: true name: type: - string - 'null' readOnly: true thumbnail_url: type: - string - 'null' readOnly: true created_at: type: string format: date-time modified_at: type: string format: date-time readOnly: true chain_id: allOf: - $ref: '#/components/schemas/ChainIdEnum' minimum: 0 maximum: 2147483647 address: type: string maxLength: 66 category: allOf: - $ref: '#/components/schemas/AssetCategory' minimum: -32768 maximum: 32767 decimals: type: - integer - 'null' maximum: 32767 minimum: -32768 decimals_source: oneOf: - $ref: '#/components/schemas/DecimalsSourceEnum' - $ref: '#/components/schemas/NullEnum' is_whitelisted_for_pwnsafe: type: boolean is_on_exclusion_list: type: boolean is_on_valuation_exclusion_list: type: boolean is_dynamic_contract: type: boolean is_proxy: type: - boolean - 'null' is_kyc_required: type: boolean is_verified: type: - boolean - 'null' symbol: type: - string - 'null' search_vector: type: - string - 'null' readOnly: true kyc_details: type: - integer - 'null' types: type: array items: type: integer required: - address - category - chain_id - id - modified_at - name - search_vector - thumbnail_url AssetDetail: oneOf: - $ref: '#/components/schemas/ERC20AssetSchema' - $ref: '#/components/schemas/NFTAssetSchema' discriminator: propertyName: type mapping: ERC20AssetSchema: '#/components/schemas/ERC20AssetSchema' NFTAssetSchema: '#/components/schemas/NFTAssetSchema' AssetDetailSchemaWorkaround: properties: id: title: Id type: string category: $ref: '#/components/schemas/AssetCategory' chainId: $ref: '#/components/schemas/ChainIdEnum' address: title: Address type: string decimals: anyOf: - type: integer - type: 'null' title: Decimals thumbnailUrl: title: Thumbnailurl type: string isVerified: anyOf: - type: boolean - type: 'null' title: Isverified name: anyOf: - type: string - type: 'null' title: Name tokenId: anyOf: - type: string - type: 'null' title: Tokenid symbol: anyOf: - type: string - type: 'null' title: Symbol isKycRequired: anyOf: - type: boolean - type: 'null' title: Iskycrequired underlyingTokenAddress: anyOf: - type: string - type: 'null' default: null title: Underlyingtokenaddress required: - id - category - chainId - address - decimals - thumbnailUrl - isVerified - name - tokenId - symbol - isKycRequired title: AssetDetailSchemaWorkaround type: object AssetInListSchemaWorkaround: properties: id: title: Id type: string category: $ref: '#/components/schemas/AssetCategory' chainId: $ref: '#/components/schemas/ChainIdEnum' address: title: Address type: string decimals: anyOf: - type: integer - type: 'null' title: Decimals thumbnailUrl: title: Thumbnailurl type: string isVerified: anyOf: - type: boolean - type: 'null' title: Isverified name: anyOf: - type: string - type: 'null' title: Name tokenId: anyOf: - type: string - type: 'null' title: Tokenid symbol: anyOf: - type: string - type: 'null' title: Symbol is_kyc_required: anyOf: - type: boolean - type: 'null' title: Is Kyc Required underlyingTokenAddress: anyOf: - type: string - type: 'null' default: null title: Underlyingtokenaddress required: - id - category - chainId - address - decimals - thumbnailUrl - isVerified - name - tokenId - symbol - is_kyc_required title: AssetInListSchemaWorkaround type: object AssetKYCDetailsSchema: properties: title: anyOf: - type: string - type: 'null' default: null title: Title logo: anyOf: - type: string - type: 'null' default: null title: Logo description: anyOf: - type: string - type: 'null' default: null title: Description website_url: anyOf: - type: string - type: 'null' default: null title: Website Url title: AssetKYCDetailsSchema type: object AssetMetadata: properties: asset_db_id: anyOf: - type: integer - type: 'null' default: null title: Asset Db Id chain_id: $ref: '#/components/schemas/ChainIdEnum' contract_address: title: Contract Address type: string token_id: anyOf: - type: string - type: 'null' default: null title: Token Id decimals: anyOf: - type: integer - type: 'null' default: null title: Decimals name: anyOf: - type: string - type: 'null' default: null title: Name symbol: anyOf: - type: string - type: 'null' default: null title: Symbol thumbnail_url: anyOf: - type: string - type: 'null' default: null title: Thumbnail Url is_verified: anyOf: - type: boolean - type: 'null' default: null title: Is Verified required: - chain_id - contract_address title: AssetMetadata type: object AssetMetadataList: items: $ref: '#/components/schemas/AssetMetadata' title: AssetMetadataList type: array AssetPriceAndTaskStatusSchema: properties: is_task_scheduled: title: Is Task Scheduled type: boolean task_info: anyOf: - $ref: '#/components/schemas/TaskStatusSchema' - type: 'null' default: null best_price: anyOf: - $ref: '#/components/schemas/AssetPriceSchema' - type: 'null' required: - is_task_scheduled - best_price title: AssetPriceAndTaskStatusSchema type: object AssetPriceHistory: properties: all_time_average: $ref: '#/components/schemas/AmountInEthAndUsd' all_time_low: $ref: '#/components/schemas/AmountInEthAndUsd' all_time_high: $ref: '#/components/schemas/AmountInEthAndUsd' sell_events: items: $ref: '#/components/schemas/NFTEvent' title: Sell Events type: array required: - all_time_average - all_time_low - all_time_high - sell_events title: AssetPriceHistory type: object AssetPriceSchema: properties: price: $ref: '#/components/schemas/AmountInEthAndUsd' unit_price: anyOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' default: null price_percentage_deviation: anyOf: - type: number - type: string - type: 'null' default: null title: Price Percentage Deviation price_source: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null created_at: format: date-time title: Created At type: string date: anyOf: - format: date-time type: string - type: 'null' title: Date price_range_low: anyOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' default: null price_range_high: anyOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' default: null required: - price - created_at - date title: AssetPriceSchema type: object AssetPriceSchemaWithAssetMetadata: type: object properties: price: $ref: '#/components/schemas/AmountInEthAndUsd' unit_price: oneOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' price_percentage_deviation: type: - string - 'null' format: decimal price_source: oneOf: - $ref: '#/components/schemas/PriceSourceEnum' - $ref: '#/components/schemas/NullEnum' created_at: type: string format: date-time date: type: - string - 'null' format: date-time price_range_low: oneOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' price_range_high: oneOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' asset_metadata: $ref: '#/components/schemas/AssetMetadata' required: - asset_metadata - created_at - date - price AssetVolumeOverPeriodSchema: properties: eth_volume: anyOf: - type: string - type: 'null' default: null title: Eth Volume usd_volume: anyOf: - type: string - type: 'null' default: null title: Usd Volume period: allOf: - $ref: '#/components/schemas/PeriodEnum' title: Period start_date: format: date-time title: Start Date type: string end_date: format: date-time title: End Date type: string source: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null required: - period - start_date - end_date title: AssetVolumeOverPeriodSchema type: object AssignReferrerRequestRequest: properties: refereeAddress: title: Refereeaddress type: string referrerAddress: title: Referreraddress type: string required: - refereeAddress - referrerAddress title: AssignReferrerRequest type: object AtrTokenOfAssetSchema: properties: contract_address: title: Contract Address type: string token_id: title: Token Id type: string is_tokenized_asset_in_user_safe: title: Is Tokenized Asset In User Safe type: boolean atr_token_created_by: title: Atr Token Created By type: string tokenized_asset_owner: title: Tokenized Asset Owner type: string tokenized_amount: title: Tokenized Amount type: string required: - contract_address - token_id - is_tokenized_asset_in_user_safe - atr_token_created_by - tokenized_asset_owner - tokenized_amount title: AtrTokenOfAssetSchema type: object AtrTokenOfSafeListSchemaWorkaround: items: $ref: '#/components/schemas/AtrTokenOfSafeSchemaWorkaround' title: AtrTokenOfSafeListSchemaWorkaround type: array AtrTokenOfSafeSchemaWorkaround: properties: chainId: $ref: '#/components/schemas/ChainIdEnum' tokenId: title: Tokenid type: string atrTokenCreatedBy: title: Atrtokencreatedby type: string tokenizedAssetOwner: title: Tokenizedassetowner type: string tokenizedAmount: title: Tokenizedamount type: string tokenizedAsset: $ref: '#/components/schemas/TokenizedAssetSchemaWorkaround' isTokenizedAssetInUserSafe: title: Istokenizedassetinusersafe type: boolean required: - chainId - tokenId - atrTokenCreatedBy - tokenizedAssetOwner - tokenizedAmount - tokenizedAsset - isTokenizedAssetInUserSafe title: AtrTokenOfSafeSchemaWorkaround type: object BaseAssetContractSchema: properties: chain_id: $ref: '#/components/schemas/ChainIdEnum' address: title: Address type: string category: $ref: '#/components/schemas/AssetCategory' decimals: anyOf: - type: integer - type: 'null' default: null title: Decimals is_whitelisted_for_pwnsafe: anyOf: - type: boolean - type: 'null' default: null title: Is Whitelisted For Pwnsafe is_on_exclusion_list: anyOf: - type: boolean - type: 'null' default: null title: Is On Exclusion List is_dynamic_contract: anyOf: - type: boolean - type: 'null' default: null title: Is Dynamic Contract is_kyc_required: default: false title: Is Kyc Required type: boolean kyc_details: anyOf: - $ref: '#/components/schemas/AssetKYCDetailsSchema' - type: 'null' default: null required: - chain_id - address - category title: BaseAssetContractSchema type: object BaseAssetContractSchemaWorkaround: properties: chainId: $ref: '#/components/schemas/ChainIdEnum' address: title: Address type: string category: $ref: '#/components/schemas/AssetCategory' decimals: anyOf: - type: integer - type: 'null' default: null title: Decimals isWhitelistedForPwnsafe: anyOf: - type: boolean - type: 'null' default: null title: Iswhitelistedforpwnsafe isOnExclusionList: anyOf: - type: boolean - type: 'null' default: null title: Isonexclusionlist isDynamicContract: anyOf: - type: boolean - type: 'null' default: null title: Isdynamiccontract isKycRequired: default: false title: Iskycrequired type: boolean kycDetails: anyOf: - $ref: '#/components/schemas/AssetKYCDetailsSchema' - type: 'null' default: null required: - chainId - address - category title: BaseAssetContractSchemaWorkaround type: object BaseNFTAssetSchema: properties: contract: $ref: '#/components/schemas/BaseAssetContractSchema' token_id: anyOf: - type: string - type: 'null' default: null title: Token Id name: anyOf: - type: string - type: 'null' default: null title: Name description: anyOf: - type: string - type: 'null' default: null title: Description type: anyOf: - type: string - type: 'null' default: null title: Type animation_url: anyOf: - type: string - type: 'null' default: null title: Animation Url token_uri: anyOf: - type: string - type: 'null' default: null title: Token Uri required: - contract title: BaseNFTAssetSchema type: object BetaProposalDetailSchemaWorkaround: properties: id: title: Id type: string duration: anyOf: - type: integer - type: 'null' title: Duration loanDefaultDate: anyOf: - type: integer - type: 'null' default: null title: Loandefaultdate expiration: anyOf: - type: integer - type: 'null' default: null title: Expiration status: anyOf: - $ref: '#/components/schemas/ProposalStatus' - $ref: '#/components/schemas/LoanStatus' title: Status collateral: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' collateralAmount: title: Collateralamount type: string minCollateralAmount: anyOf: - type: string - type: 'null' default: null title: Mincollateralamount minCreditAmount: anyOf: - type: string - type: 'null' default: null title: Mincreditamount creditData: $ref: '#/components/schemas/CreditDataSchemaWorkaround' creditAsset: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' chainId: $ref: '#/components/schemas/ChainIdEnum' proposalContractAddress: anyOf: - type: string - type: 'null' default: null title: Proposalcontractaddress proposalId: anyOf: - type: string - type: 'null' default: null title: Proposalid loanContract: title: Loancontract type: string proposer: title: Proposer type: string isOffer: title: Isoffer type: boolean type: anyOf: - enum: - pwn_contracts.betaproposal - pwn_contracts.v1_1simpleloansimpleproposal - pwn_contracts.v1_1simpleloanlistproposal - pwn_contracts.v1_2simpleloansimpleproposal - pwn_contracts.v1_2simpleloanlistproposal - pwn_contracts.v1_2simpleloanfungibleproposal - pwn_contracts.v1_2simpleloandutchauctionproposal - pwn_contracts.v1_3simpleloansimpleproposal - pwn_contracts.v1_3simpleloanlistproposal - pwn_contracts.v1_3simpleloanelasticproposal - pwn_contracts.v1_3simpleloanelasticchainlinkproposal - pwn_contracts.v1_3simpleloandutchauctionproposal type: string - enum: - pwn_contracts.betaloan - pwn_contracts.v1_1simpleloan - pwn_contracts.v1_2simpleloan - pwn_contracts.v1_3simpleloan type: string title: Type sourceOfFunds: anyOf: - type: string - type: 'null' default: null title: Sourceoffunds relatedThesisId: anyOf: - type: string - type: 'null' default: null title: Relatedthesisid createdFromProposalId: anyOf: - type: string - type: 'null' default: null title: Createdfromproposalid proposalSpecificData: anyOf: - $ref: '#/components/schemas/ProposalSpecificData' - type: 'null' default: null checkCollateralStateFingerprint: title: Checkcollateralstatefingerprint type: boolean collateralStateFingerprint: anyOf: - type: string - type: 'null' title: Collateralstatefingerprint availableCreditLimit: title: Availablecreditlimit type: string allowedAcceptor: anyOf: - type: string - type: 'null' title: Allowedacceptor refinancingLoanId: anyOf: - type: string - type: 'null' title: Refinancingloanid nonceSpace: anyOf: - type: string - type: 'null' title: Noncespace nonce: anyOf: - type: string - type: 'null' title: Nonce proposerSpecHash: anyOf: - type: string - type: 'null' title: Proposerspechash signature: anyOf: - type: string - type: 'null' title: Signature multiproposalMerkleRoot: anyOf: - type: string - type: 'null' title: Multiproposalmerkleroot isOnChain: title: Isonchain type: boolean hash: anyOf: - type: string - type: 'null' title: Hash createdAt: title: Createdat type: integer revokedAt: anyOf: - type: integer - type: 'null' title: Revokedat referrer: anyOf: - type: string - type: 'null' title: Referrer required: - id - duration - status - collateral - collateralAmount - creditData - creditAsset - chainId - loanContract - proposer - isOffer - type - checkCollateralStateFingerprint - collateralStateFingerprint - availableCreditLimit - allowedAcceptor - refinancingLoanId - nonceSpace - nonce - proposerSpecHash - signature - multiproposalMerkleRoot - isOnChain - hash - createdAt - revokedAt - referrer title: BetaProposalDetailSchemaWorkaround type: object ChainIdEnum: enum: - 1 - 137 - 100 - 25 - 8453 - 10 - 130 - 42161 - 56 - 11155111 - 1301 - 112211 - 11155112 - 480 - 57073 - 59144 - 42220 title: ChainIdEnum type: integer CollateralAssetInThesisSchemaWorkaround: properties: id: title: Id type: string category: $ref: '#/components/schemas/AssetCategory' chainId: $ref: '#/components/schemas/ChainIdEnum' address: title: Address type: string decimals: anyOf: - type: integer - type: 'null' title: Decimals thumbnailUrl: title: Thumbnailurl type: string isVerified: anyOf: - type: boolean - type: 'null' title: Isverified name: anyOf: - type: string - type: 'null' title: Name tokenId: anyOf: - type: string - type: 'null' title: Tokenid symbol: anyOf: - type: string - type: 'null' title: Symbol is_kyc_required: anyOf: - type: boolean - type: 'null' title: Is Kyc Required underlyingTokenAddress: anyOf: - type: string - type: 'null' default: null title: Underlyingtokenaddress allocationPercentage: title: Allocationpercentage type: integer ltv: anyOf: - type: number - type: 'null' title: Ltv apr: anyOf: - type: number - type: 'null' title: Apr required: - id - category - chainId - address - decimals - thumbnailUrl - isVerified - name - tokenId - symbol - is_kyc_required - allocationPercentage - ltv - apr title: CollateralAssetInThesisSchemaWorkaround type: object CollectionStats: properties: floor_price: anyOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' default: null week_floor_price_change_percentage: anyOf: - type: string - type: 'null' default: null title: Week Floor Price Change Percentage average_appraisal: anyOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' default: null market_cap: anyOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' default: null week_market_cap_change_percentage: anyOf: - type: string - type: 'null' default: null title: Week Market Cap Change Percentage total_volume: anyOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' default: null past_day_volume: anyOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' default: null past_day_average: anyOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' default: null past_week_volume: anyOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' default: null past_week_average: anyOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' default: null past_month_volume: anyOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' default: null past_month_average: anyOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' default: null past_month_sales: anyOf: - type: string - type: 'null' default: null title: Past Month Sales total_sales: anyOf: - type: string - type: 'null' default: null title: Total Sales last_updated: format: date-time title: Last Updated type: string data_sources: items: $ref: '#/components/schemas/MetadataSource' title: Data Sources type: array required: - last_updated - data_sources title: CollectionStats type: object CookieTokenRefresh: type: object properties: refresh: type: string readOnly: true access: type: string readOnly: true access_expiration: type: string format: date-time readOnly: true required: - access - access_expiration - refresh CreateProposalRequestSchemaRequest: oneOf: - $ref: '#/components/schemas/CreateSimpleLoanSimpleProposalRequestSchemaRequest' - $ref: '#/components/schemas/CreateSimpleLoanListProposalRequestSchemaRequest' - $ref: '#/components/schemas/CreateSimpleLoanFungibleProposalRequestSchemaRequest' - $ref: '#/components/schemas/CreateSimpleLoanDutchAuctionProposalRequestSchemaRequest' - $ref: '#/components/schemas/V1_3_CreateSimpleLoanSimpleProposalRequestSchemaRequest' - $ref: '#/components/schemas/V1_3_CreateSimpleLoanListProposalRequestSchemaRequest' - $ref: '#/components/schemas/V1_3_CreateSimpleLoanElasticProposalRequestSchemaRequest' - $ref: '#/components/schemas/V1_3_CreateSimpleLoanChainlinkProposalRequestSchemaRequest' - $ref: '#/components/schemas/V1_3_CreateSimpleLoanDutchAuctionProposalRequestSchemaRequest' discriminator: propertyName: type mapping: pwn_contracts.v1_2simpleloansimpleproposal: '#/components/schemas/CreateSimpleLoanSimpleProposalRequestSchemaRequest' pwn_contracts.v1_2simpleloanlistproposal: '#/components/schemas/CreateSimpleLoanListProposalRequestSchemaRequest' pwn_contracts.v1_2simpleloanfungibleproposal: '#/components/schemas/CreateSimpleLoanFungibleProposalRequestSchemaRequest' pwn_contracts.v1_2simpleloandutchauctionproposal: '#/components/schemas/CreateSimpleLoanDutchAuctionProposalRequestSchemaRequest' pwn_contracts.v1_3simpleloansimpleproposal: '#/components/schemas/V1_3_CreateSimpleLoanSimpleProposalRequestSchemaRequest' pwn_contracts.v1_3simpleloanlistproposal: '#/components/schemas/V1_3_CreateSimpleLoanListProposalRequestSchemaRequest' pwn_contracts.v1_3simpleloanelasticproposal: '#/components/schemas/V1_3_CreateSimpleLoanElasticProposalRequestSchemaRequest' pwn_contracts.v1_3simpleloanelasticchainlinkproposal: '#/components/schemas/V1_3_CreateSimpleLoanChainlinkProposalRequestSchemaRequest' pwn_contracts.v1_3simpleloandutchauctionproposal: '#/components/schemas/V1_3_CreateSimpleLoanDutchAuctionProposalRequestSchemaRequest' CreateSimpleLoanDutchAuctionProposalRequestSchemaRequest: properties: check_collateral_state_fingerprint: title: Check Collateral State Fingerprint type: boolean collateral_state_fingerprint: title: Collateral State Fingerprint type: string credit_address: title: Credit Address type: string available_credit_limit: anyOf: - type: integer - type: string title: Available Credit Limit allowed_acceptor: title: Allowed Acceptor type: string proposer: title: Proposer type: string is_offer: title: Is Offer type: boolean refinancing_loan_id: anyOf: - type: integer - type: string title: Refinancing Loan Id nonce_space: anyOf: - type: integer - type: string title: Nonce Space nonce: anyOf: - type: integer - type: string title: Nonce loan_contract: title: Loan Contract type: string proposer_spec_hash: title: Proposer Spec Hash type: string collateral_category: $ref: '#/components/schemas/AssetCategory' collateral_address: title: Collateral Address type: string collateral_id: anyOf: - type: integer - type: string title: Collateral Id collateral_amount: anyOf: - type: integer - type: string title: Collateral Amount min_credit_amount: anyOf: - type: integer - type: string title: Min Credit Amount max_credit_amount: anyOf: - type: integer - type: string title: Max Credit Amount fixed_interest_amount: anyOf: - type: integer - type: string title: Fixed Interest Amount accruing_interest_apr: title: Accruing Interest Apr type: integer duration: title: Duration type: integer auction_start: title: Auction Start type: integer auction_duration: title: Auction Duration type: integer chain_id: $ref: '#/components/schemas/ChainIdEnum' proposal_contract_address: title: Proposal Contract Address type: string multiproposal_merkle_root: anyOf: - type: string - type: 'null' title: Multiproposal Merkle Root hash: anyOf: - type: string - type: 'null' title: Hash signature: title: Signature type: string type: allOf: - $ref: '#/components/schemas/TypeD80Enum' title: Type is_on_chain: title: Is On Chain type: boolean source_of_funds: anyOf: - type: string - type: 'null' default: null title: Source Of Funds related_thesis_id: anyOf: - type: integer - type: 'null' default: null title: Related Thesis Id referrer: anyOf: - type: string - type: 'null' default: null title: Referrer required: - check_collateral_state_fingerprint - collateral_state_fingerprint - credit_address - available_credit_limit - allowed_acceptor - proposer - is_offer - refinancing_loan_id - nonce_space - nonce - loan_contract - proposer_spec_hash - collateral_category - collateral_address - collateral_id - collateral_amount - min_credit_amount - max_credit_amount - fixed_interest_amount - accruing_interest_apr - duration - auction_start - auction_duration - chain_id - proposal_contract_address - multiproposal_merkle_root - hash - signature - type - is_on_chain title: CreateSimpleLoanDutchAuctionProposalRequestSchema type: object CreateSimpleLoanFungibleProposalRequestSchemaRequest: properties: check_collateral_state_fingerprint: title: Check Collateral State Fingerprint type: boolean collateral_state_fingerprint: title: Collateral State Fingerprint type: string credit_address: title: Credit Address type: string available_credit_limit: anyOf: - type: integer - type: string title: Available Credit Limit allowed_acceptor: title: Allowed Acceptor type: string proposer: title: Proposer type: string is_offer: title: Is Offer type: boolean refinancing_loan_id: anyOf: - type: integer - type: string title: Refinancing Loan Id nonce_space: anyOf: - type: integer - type: string title: Nonce Space nonce: anyOf: - type: integer - type: string title: Nonce loan_contract: title: Loan Contract type: string proposer_spec_hash: title: Proposer Spec Hash type: string collateral_category: $ref: '#/components/schemas/AssetCategory' collateral_address: title: Collateral Address type: string collateral_id: anyOf: - type: integer - type: string title: Collateral Id min_collateral_amount: anyOf: - type: integer - type: string title: Min Collateral Amount credit_per_collateral_unit: anyOf: - type: integer - type: string title: Credit Per Collateral Unit fixed_interest_amount: anyOf: - type: integer - type: string title: Fixed Interest Amount accruing_interest_apr: title: Accruing Interest Apr type: integer duration: title: Duration type: integer expiration: title: Expiration type: integer utilized_credit_id: anyOf: - type: string - type: 'null' default: null title: Utilized Credit Id chain_id: $ref: '#/components/schemas/ChainIdEnum' proposal_contract_address: title: Proposal Contract Address type: string multiproposal_merkle_root: anyOf: - type: string - type: 'null' title: Multiproposal Merkle Root hash: anyOf: - type: string - type: 'null' title: Hash signature: title: Signature type: string type: allOf: - $ref: '#/components/schemas/TypeD80Enum' title: Type is_on_chain: title: Is On Chain type: boolean source_of_funds: anyOf: - type: string - type: 'null' default: null title: Source Of Funds related_thesis_id: anyOf: - type: integer - type: 'null' default: null title: Related Thesis Id referrer: anyOf: - type: string - type: 'null' default: null title: Referrer required: - check_collateral_state_fingerprint - collateral_state_fingerprint - credit_address - available_credit_limit - allowed_acceptor - proposer - is_offer - refinancing_loan_id - nonce_space - nonce - loan_contract - proposer_spec_hash - collateral_category - collateral_address - collateral_id - min_collateral_amount - credit_per_collateral_unit - fixed_interest_amount - accruing_interest_apr - duration - expiration - chain_id - proposal_contract_address - multiproposal_merkle_root - hash - signature - type - is_on_chain title: CreateSimpleLoanFungibleProposalRequestSchema type: object CreateSimpleLoanListProposalRequestSchemaRequest: properties: check_collateral_state_fingerprint: title: Check Collateral State Fingerprint type: boolean collateral_state_fingerprint: title: Collateral State Fingerprint type: string credit_address: title: Credit Address type: string available_credit_limit: anyOf: - type: integer - type: string title: Available Credit Limit allowed_acceptor: title: Allowed Acceptor type: string proposer: title: Proposer type: string is_offer: title: Is Offer type: boolean refinancing_loan_id: anyOf: - type: integer - type: string title: Refinancing Loan Id nonce_space: anyOf: - type: integer - type: string title: Nonce Space nonce: anyOf: - type: integer - type: string title: Nonce loan_contract: title: Loan Contract type: string proposer_spec_hash: title: Proposer Spec Hash type: string collateral_category: $ref: '#/components/schemas/AssetCategory' collateral_address: title: Collateral Address type: string collateral_ids_whitelist_merkle_root: title: Collateral Ids Whitelist Merkle Root type: string collateral_amount: anyOf: - type: integer - type: string title: Collateral Amount credit_amount: anyOf: - type: integer - type: string title: Credit Amount fixed_interest_amount: anyOf: - type: integer - type: string title: Fixed Interest Amount accruing_interest_apr: title: Accruing Interest Apr type: integer duration: title: Duration type: integer expiration: title: Expiration type: integer utilized_credit_id: anyOf: - type: string - type: 'null' default: null title: Utilized Credit Id chain_id: $ref: '#/components/schemas/ChainIdEnum' proposal_contract_address: title: Proposal Contract Address type: string multiproposal_merkle_root: anyOf: - type: string - type: 'null' title: Multiproposal Merkle Root hash: anyOf: - type: string - type: 'null' title: Hash signature: title: Signature type: string type: allOf: - $ref: '#/components/schemas/TypeD80Enum' title: Type is_on_chain: title: Is On Chain type: boolean source_of_funds: anyOf: - type: string - type: 'null' default: null title: Source Of Funds related_thesis_id: anyOf: - type: integer - type: 'null' default: null title: Related Thesis Id referrer: anyOf: - type: string - type: 'null' default: null title: Referrer required: - check_collateral_state_fingerprint - collateral_state_fingerprint - credit_address - available_credit_limit - allowed_acceptor - proposer - is_offer - refinancing_loan_id - nonce_space - nonce - loan_contract - proposer_spec_hash - collateral_category - collateral_address - collateral_ids_whitelist_merkle_root - collateral_amount - credit_amount - fixed_interest_amount - accruing_interest_apr - duration - expiration - chain_id - proposal_contract_address - multiproposal_merkle_root - hash - signature - type - is_on_chain title: CreateSimpleLoanListProposalRequestSchema type: object CreateSimpleLoanSimpleProposalRequestSchemaRequest: properties: check_collateral_state_fingerprint: title: Check Collateral State Fingerprint type: boolean collateral_state_fingerprint: title: Collateral State Fingerprint type: string credit_address: title: Credit Address type: string available_credit_limit: anyOf: - type: integer - type: string title: Available Credit Limit allowed_acceptor: title: Allowed Acceptor type: string proposer: title: Proposer type: string is_offer: title: Is Offer type: boolean refinancing_loan_id: anyOf: - type: integer - type: string title: Refinancing Loan Id nonce_space: anyOf: - type: integer - type: string title: Nonce Space nonce: anyOf: - type: integer - type: string title: Nonce loan_contract: title: Loan Contract type: string proposer_spec_hash: title: Proposer Spec Hash type: string collateral_category: $ref: '#/components/schemas/AssetCategory' collateral_address: title: Collateral Address type: string collateral_id: anyOf: - type: integer - type: string title: Collateral Id collateral_amount: anyOf: - type: integer - type: string title: Collateral Amount credit_amount: anyOf: - type: integer - type: string title: Credit Amount fixed_interest_amount: anyOf: - type: integer - type: string title: Fixed Interest Amount accruing_interest_apr: title: Accruing Interest Apr type: integer duration: title: Duration type: integer expiration: title: Expiration type: integer chain_id: $ref: '#/components/schemas/ChainIdEnum' proposal_contract_address: title: Proposal Contract Address type: string multiproposal_merkle_root: anyOf: - type: string - type: 'null' title: Multiproposal Merkle Root hash: anyOf: - type: string - type: 'null' title: Hash signature: title: Signature type: string type: allOf: - $ref: '#/components/schemas/TypeD80Enum' title: Type is_on_chain: title: Is On Chain type: boolean source_of_funds: anyOf: - type: string - type: 'null' default: null title: Source Of Funds related_thesis_id: anyOf: - type: integer - type: 'null' default: null title: Related Thesis Id referrer: anyOf: - type: string - type: 'null' default: null title: Referrer required: - check_collateral_state_fingerprint - collateral_state_fingerprint - credit_address - available_credit_limit - allowed_acceptor - proposer - is_offer - refinancing_loan_id - nonce_space - nonce - loan_contract - proposer_spec_hash - collateral_category - collateral_address - collateral_id - collateral_amount - credit_amount - fixed_interest_amount - accruing_interest_apr - duration - expiration - chain_id - proposal_contract_address - multiproposal_merkle_root - hash - signature - type - is_on_chain title: CreateSimpleLoanSimpleProposalRequestSchema type: object CreditDataSchemaWorkaround: properties: apr: anyOf: - type: number - type: 'null' title: Apr ltv: anyOf: - type: integer - type: 'null' title: Ltv amount: anyOf: - type: string - type: 'null' title: Amount minAmount: anyOf: - type: string - type: 'null' title: Minamount maxAmount: anyOf: - type: string - type: 'null' title: Maxamount creditPerCollateralUnit: anyOf: - type: string - type: 'null' title: Creditpercollateralunit fixedInterestAmount: anyOf: - type: string - type: 'null' title: Fixedinterestamount totalRepaymentAmount: anyOf: - type: string - type: 'null' title: Totalrepaymentamount accruingInterestApr: anyOf: - type: integer - type: 'null' title: Accruinginterestapr required: - apr - ltv - amount - minAmount - maxAmount - creditPerCollateralUnit - fixedInterestAmount - totalRepaymentAmount - accruingInterestApr title: CreditDataSchemaWorkaround type: object CuratorGroup: type: object properties: name: type: string maxLength: 100 avatar: type: - string - 'null' format: uri description: type: string required: - name CuratorGroupDetail: type: object properties: name: type: string maxLength: 100 avatar: type: - string - 'null' format: uri description: type: string curators: type: array items: $ref: '#/components/schemas/WalletRole' readOnly: true url: type: string format: uri maxLength: 200 required: - curators - name CuratorGroupSchema: properties: id: title: Id type: integer name: title: Name type: string avatar: anyOf: - type: string - type: 'null' title: Avatar description: title: Description type: string url: anyOf: - type: string - type: 'null' title: Url required: - id - name - avatar - description - url title: CuratorGroupSchema type: object DecimalsSourceEnum: enum: - PWN_OVERWRITE - ALCHEMY - CONTRACT - LOOKSRARE - MORALIS - OPENSEA - UPSHOT - UNMARSHAL - NFTBANK - EBISUSBAY - DEXGURU - COINGECKO - COINMARKETCAP - SIMPLE_HASH - DEXSCREENER - INKONCHAIN_EXPLORER - CELOSCAN - CL_ORACLE - VENO_FINANCE - KYBER_SWAP - SOMMELIER - INSTADAPP - YEARN - BACKED - SWAAP - REVEST - BEEFY - PENDLE - SUPERFORM - SUSHI - ETHERFI - HARVEST - MORPHO - KERNEL - MELLOW - RESERVE - SEPOLIA - SPECTRA - RESOLV - TOKEN_LIST_PWN - TOKEN_LIST_UNISWAP - TOKEN_LIST_ZAPPER - TOKEN_LIST_OPTIMISM - TOKEN_LIST_ARBITRUM_ONE - TOKEN_LIST_MATICNETWORK - TOKEN_LIST_CRONASWAP - TOKEN_LIST_BOGGED - TOKEN_LIST_COINGECKO - TOKEN_LIST_BNB_SMART_CHAIN - TOKEN_LIST_STARKNET - TOKEN_LIST_COWSWAP - TOKEN_LIST_CONSENSYS_LINEA - TOKEN_LIST_CELO_ORG type: string description: |- * `PWN_OVERWRITE` - Manually updated metadata by PWN. always highest metadata source quality. * `ALCHEMY` - Alchemy * `CONTRACT` - Contract * `LOOKSRARE` - LooksRare * `MORALIS` - Moralis * `OPENSEA` - OpenSea * `UPSHOT` - Upshot * `UNMARSHAL` - Unmarshal * `NFTBANK` - NFTBank * `EBISUSBAY` - Ebisu's Bay * `DEXGURU` - DexGuru * `COINGECKO` - CoinGecko * `COINMARKETCAP` - CoinMarketCap * `SIMPLE_HASH` - Simple Hash * `DEXSCREENER` - DexScreener * `INKONCHAIN_EXPLORER` - Inkonchain Explorer * `CELOSCAN` - CeloScan * `CL_ORACLE` - ChainLink Oracle * `VENO_FINANCE` - Veno Finance * `KYBER_SWAP` - KyberSwap * `SOMMELIER` - Sommelier * `INSTADAPP` - Instadapp * `YEARN` - Yearn * `BACKED` - Backed * `SWAAP` - Swaap * `REVEST` - Revest * `BEEFY` - Beefy * `PENDLE` - Pendle * `SUPERFORM` - SuperForm * `SUSHI` - Sushi * `ETHERFI` - ether.fi * `HARVEST` - Harvest * `MORPHO` - Morpho * `KERNEL` - Kernel * `MELLOW` - Mellow Finance * `RESERVE` - Reserve * `SEPOLIA` - Sepolia * `SPECTRA` - Spectra * `RESOLV` - Resolv * `TOKEN_LIST_PWN` - PWN Token List * `TOKEN_LIST_UNISWAP` - Uniswap Token List * `TOKEN_LIST_ZAPPER` - Zapper Token List * `TOKEN_LIST_OPTIMISM` - Optimism Token List * `TOKEN_LIST_ARBITRUM_ONE` - Arbitrum One Token List * `TOKEN_LIST_MATICNETWORK` - Maticnetwork Token List * `TOKEN_LIST_CRONASWAP` - CronaSwap Token List * `TOKEN_LIST_BOGGED` - BoggedFinance Token List * `TOKEN_LIST_COINGECKO` - CoinGecko Token List * `TOKEN_LIST_BNB_SMART_CHAIN` - Binance Smart Chain Token List * `TOKEN_LIST_STARKNET` - StarkNet Token List * `TOKEN_LIST_COWSWAP` - CowSwap Token List * `TOKEN_LIST_CONSENSYS_LINEA` - Consensys Linea Token List * `TOKEN_LIST_CELO_ORG` - Celo Token List DisplayTypeEnum: enum: - NUMBER - STRING - DATE - RANKING - OBJECT type: string description: |- * `NUMBER` - NUMBER * `STRING` - STRING * `DATE` - DATE * `RANKING` - RANKING * `OBJECT` - OBJECT ERC20AssetSchema: properties: contract: $ref: '#/components/schemas/BaseAssetContractSchema' token_id: anyOf: - type: string - type: 'null' default: null title: Token Id name: anyOf: - type: string - type: 'null' default: null title: Name description: anyOf: - type: string - type: 'null' default: null title: Description type: anyOf: - type: string - type: 'null' default: null title: Type symbol: anyOf: - type: string - type: 'null' default: null title: Symbol is_verified: anyOf: - type: boolean - type: 'null' default: null title: Is Verified is_verified_source: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null thumbnail_url: anyOf: - type: string - type: 'null' default: null title: Thumbnail Url website_url: anyOf: - type: string - type: 'null' default: null title: Website Url discord_url: anyOf: - type: string - type: 'null' default: null title: Discord Url twitter_url: anyOf: - type: string - type: 'null' default: null title: Twitter Url instagram_url: anyOf: - type: string - type: 'null' default: null title: Instagram Url github_url: anyOf: - type: string - type: 'null' default: null title: Github Url id: anyOf: - type: integer - type: 'null' default: null title: Id atr_tokens_of_user: anyOf: - items: $ref: '#/components/schemas/AtrTokenOfAssetSchema' type: array - type: 'null' default: null title: Atr Tokens Of User latest_price: anyOf: - $ref: '#/components/schemas/AssetPriceSchema' - type: 'null' default: null required: - contract title: ERC20AssetSchema type: object ERC20AssetSchemaWithBalance: properties: contract: $ref: '#/components/schemas/BaseAssetContractSchema' token_id: anyOf: - type: string - type: 'null' default: null title: Token Id name: anyOf: - type: string - type: 'null' default: null title: Name description: anyOf: - type: string - type: 'null' default: null title: Description type: anyOf: - type: string - type: 'null' default: null title: Type symbol: anyOf: - type: string - type: 'null' default: null title: Symbol is_verified: anyOf: - type: boolean - type: 'null' default: null title: Is Verified is_verified_source: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null thumbnail_url: anyOf: - type: string - type: 'null' default: null title: Thumbnail Url website_url: anyOf: - type: string - type: 'null' default: null title: Website Url discord_url: anyOf: - type: string - type: 'null' default: null title: Discord Url twitter_url: anyOf: - type: string - type: 'null' default: null title: Twitter Url instagram_url: anyOf: - type: string - type: 'null' default: null title: Instagram Url github_url: anyOf: - type: string - type: 'null' default: null title: Github Url id: anyOf: - type: integer - type: 'null' default: null title: Id atr_tokens_of_user: anyOf: - items: $ref: '#/components/schemas/AtrTokenOfAssetSchema' type: array - type: 'null' default: null title: Atr Tokens Of User latest_price: anyOf: - $ref: '#/components/schemas/AssetPriceSchema' - type: 'null' default: null balance: title: Balance type: string required: - contract - balance title: ERC20AssetSchemaWithBalance type: object ERC20AssetSchemaWithBalanceAndOwner: properties: contract: $ref: '#/components/schemas/BaseAssetContractSchema' token_id: anyOf: - type: string - type: 'null' default: null title: Token Id name: anyOf: - type: string - type: 'null' default: null title: Name description: anyOf: - type: string - type: 'null' default: null title: Description type: anyOf: - type: string - type: 'null' default: null title: Type symbol: anyOf: - type: string - type: 'null' default: null title: Symbol is_verified: anyOf: - type: boolean - type: 'null' default: null title: Is Verified is_verified_source: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null thumbnail_url: anyOf: - type: string - type: 'null' default: null title: Thumbnail Url website_url: anyOf: - type: string - type: 'null' default: null title: Website Url discord_url: anyOf: - type: string - type: 'null' default: null title: Discord Url twitter_url: anyOf: - type: string - type: 'null' default: null title: Twitter Url instagram_url: anyOf: - type: string - type: 'null' default: null title: Instagram Url github_url: anyOf: - type: string - type: 'null' default: null title: Github Url id: anyOf: - type: integer - type: 'null' default: null title: Id atr_tokens_of_user: anyOf: - items: $ref: '#/components/schemas/AtrTokenOfAssetSchema' type: array - type: 'null' default: null title: Atr Tokens Of User latest_price: anyOf: - $ref: '#/components/schemas/AssetPriceSchema' - type: 'null' default: null balance: title: Balance type: string owner: anyOf: - type: string - type: 'null' default: null title: Owner required: - contract - balance title: ERC20AssetSchemaWithBalanceAndOwner type: object ERC20AssetStatsSchema: properties: volume_24h: anyOf: - $ref: '#/components/schemas/AssetVolumeOverPeriodSchema' - type: 'null' default: null market_cap: anyOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' default: null circulating_supply: anyOf: - type: string - type: 'null' default: null title: Circulating Supply latest_price: anyOf: - $ref: '#/components/schemas/AssetPriceSchema' - type: 'null' default: null title: ERC20AssetStatsSchema type: object ERC20OHLCData: type: object properties: time: type: string open: type: number format: double high: type: number format: double low: type: number format: double close: type: number format: double required: - close - high - low - open - time Erc20OrNftAsset: oneOf: - $ref: '#/components/schemas/ERC20AssetSchema' - $ref: '#/components/schemas/NFTAssetSchema' discriminator: propertyName: type mapping: None: '#/components/schemas/NFTAssetSchema' EventTypeEnum: enum: - mint - sale - transfer title: EventTypeEnum type: string FetchCollectionNFTsResponse: properties: assets: items: $ref: '#/components/schemas/BaseNFTAssetSchema' title: Assets type: array limit: title: Limit type: integer cursor: anyOf: - type: string - type: 'null' default: null title: Cursor required: - assets - limit title: FetchCollectionNFTsResponse type: object FetchNFTEventsResponse: properties: next: anyOf: - type: string - type: 'null' default: null title: Next nft_events: items: $ref: '#/components/schemas/NFTEvent' title: Nft Events type: array required: - nft_events title: FetchNFTEventsResponse type: object FetchNFTOrders: properties: next: anyOf: - type: string - type: 'null' default: null title: Next previous: anyOf: - type: string - type: 'null' default: null title: Previous orders: items: $ref: '#/components/schemas/NFTOrder' title: Orders type: array required: - orders title: FetchNFTOrders type: object FetchTopCollectionsResponse: properties: collections: items: $ref: '#/components/schemas/NFTAssetCollectionDetailWithStatsSchema' title: Collections type: array cursor: anyOf: - type: string - type: 'null' default: null title: Cursor required: - collections title: FetchTopCollectionsResponse type: object FetchUserNFTsResponse: properties: assets: items: $ref: '#/components/schemas/NFTAssetSchemaWithBalance' title: Assets type: array next: anyOf: - type: string - type: 'null' title: Next metadata_source: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' required: - assets - next - metadata_source title: FetchUserNFTsResponse type: object FreeUserNonceSchemaWorkaround: properties: chainId: $ref: '#/components/schemas/ChainIdEnum' revokedNonceContractAddress: title: Revokednoncecontractaddress type: string userAddress: title: Useraddress type: string freeUserNonceSpace: title: Freeusernoncespace type: string freeUserNonces: items: type: string title: Freeusernonces type: array required: - chainId - revokedNonceContractAddress - userAddress - freeUserNonceSpace - freeUserNonces title: FreeUserNonceSchemaWorkaround type: object LLLSchemaResponse: anyOf: - items: $ref: '#/components/schemas/LLLSchemaWorkaround' type: array - type: 'null' default: null title: LLLSchemaResponse LLLSchemaWorkaround: properties: chainId: $ref: '#/components/schemas/ChainIdEnum' baseAsset: anyOf: - $ref: '#/components/schemas/NewERC20AssetSchema' - type: 'null' default: null underlyingAsset: anyOf: - $ref: '#/components/schemas/NewERC20AssetSchema' - type: 'null' default: null provider: title: Provider type: string poolAddress: anyOf: - type: string - type: 'null' default: null title: Pooladdress pwnPoolAdapterAddress: anyOf: - type: string - type: 'null' default: null title: Pwnpooladapteraddress baseSupplyApy: anyOf: - type: number - type: 'null' default: null title: Basesupplyapy rewardsSupplyApy: anyOf: - type: number - type: 'null' default: null title: Rewardssupplyapy netSupplyApy: anyOf: - type: number - type: 'null' default: null title: Netsupplyapy baseBorrowApy: anyOf: - type: number - type: 'null' default: null title: Baseborrowapy rewardsBorrowApy: anyOf: - type: number - type: 'null' default: null title: Rewardsborrowapy netBorrowApy: anyOf: - type: number - type: 'null' default: null title: Netborrowapy apyUpdatedAt: anyOf: - type: integer - type: 'null' default: null title: Apyupdatedat required: - chainId - provider title: LLLSchemaWorkaround type: object LendingProposalAPYSuggestion: properties: day1: title: Day1 type: integer day7: title: Day7 type: integer day30: title: Day30 type: integer required: - day1 - day7 - day30 title: LendingProposalAPYSuggestion type: object LendingProposalAPYsSuggestion: properties: base: anyOf: - $ref: '#/components/schemas/LendingProposalAPYSuggestion' - type: 'null' rewards: anyOf: - $ref: '#/components/schemas/LendingProposalAPYSuggestion' - type: 'null' total: anyOf: - $ref: '#/components/schemas/LendingProposalAPYSuggestion' - type: 'null' required: - base - rewards - total title: LendingProposalAPYsSuggestion type: object LendingProposalTermSuggestion: properties: name: title: Name type: string address: title: Address type: string protocol: title: Protocol type: string tvl: anyOf: - type: string - type: 'null' title: Tvl liquid: anyOf: - type: string - type: 'null' title: Liquid locked: anyOf: - type: string - type: 'null' title: Locked numberOfHolders: anyOf: - type: integer - type: 'null' title: Numberofholders apy: anyOf: - $ref: '#/components/schemas/LendingProposalAPYsSuggestion' - type: 'null' required: - name - address - protocol - tvl - liquid - locked - numberOfHolders - apy title: LendingProposalTermSuggestion type: object LendingProposalTermSuggestionSchema: properties: marketTerms: items: $ref: '#/components/schemas/LendingProposalTermSuggestion' title: Marketterms type: array required: - marketTerms title: LendingProposalTermSuggestionSchema type: object LoanAdmin: type: object properties: id: type: integer readOnly: true chain_id: allOf: - $ref: '#/components/schemas/ChainIdEnum' minimum: 0 maximum: 2147483647 contract_address: type: string maxLength: 66 on_chain_id: type: string format: decimal pattern: ^-?\d{0,78}(?:\.\d{0,0})?$ loan_token_contract_address: type: string maxLength: 66 created_at: type: string format: date-time borrower_address: type: string lender_address: type: string owner_address: type: string collateral_asset_chain_id: type: string readOnly: true collateral_asset_address: type: string readOnly: true collateral_asset_amount: type: string readOnly: true collateral_asset_decimals: type: string readOnly: true collateral_asset_thumbnail_url: type: string readOnly: true collateral_asset_name: type: string readOnly: true collateral_asset_symbol: type: string readOnly: true collateral_asset_is_verified: type: string readOnly: true collateral_asset_token_id: type: string readOnly: true credit_asset_chain_id: type: string readOnly: true credit_asset_address: type: string readOnly: true credit_asset_amount: type: string readOnly: true credit_asset_decimals: type: string readOnly: true credit_asset_thumbnail_url: type: string readOnly: true credit_asset_name: type: string readOnly: true credit_asset_symbol: type: string readOnly: true credit_asset_is_verified: type: string readOnly: true start_date: type: string format: date-time default_date: type: string format: date-time ltv: type: string readOnly: true paid_back_at: type: - string - 'null' format: date-time claimed_at: type: - string - 'null' format: date-time created_from_proposal_id: type: - integer - 'null' readOnly: true status: type: string readOnly: true duration: type: string readOnly: true chain_name: type: string readOnly: true required: - borrower_address - chain_id - chain_name - collateral_asset_address - collateral_asset_amount - collateral_asset_chain_id - collateral_asset_decimals - collateral_asset_is_verified - collateral_asset_name - collateral_asset_symbol - collateral_asset_thumbnail_url - collateral_asset_token_id - contract_address - created_from_proposal_id - credit_asset_address - credit_asset_amount - credit_asset_chain_id - credit_asset_decimals - credit_asset_is_verified - credit_asset_name - credit_asset_symbol - credit_asset_thumbnail_url - default_date - duration - id - lender_address - loan_token_contract_address - ltv - on_chain_id - owner_address - start_date - status LoanDetailSchemaWorkaround: properties: chainId: $ref: '#/components/schemas/ChainIdEnum' contractAddress: title: Contractaddress type: string onChainId: title: Onchainid type: string loanTokenContractAddress: title: Loantokencontractaddress type: string createdAt: title: Createdat type: integer originalSourceOfFunds: title: Originalsourceoffunds type: string borrower: title: Borrower type: string originalLender: title: Originallender type: string loanOwner: anyOf: - type: string - type: 'null' title: Loanowner collateral: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' collateralAmount: title: Collateralamount type: string creditAsset: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' startDate: title: Startdate type: integer defaultDate: title: Defaultdate type: integer paidBackAt: anyOf: - type: integer - type: 'null' title: Paidbackat claimedAt: anyOf: - type: integer - type: 'null' title: Claimedat loanThatWasRefinancedId: anyOf: - type: string - type: 'null' title: Loanthatwasrefinancedid createdFromProposalId: anyOf: - type: string - type: 'null' title: Createdfromproposalid relatedThesisId: anyOf: - type: string - type: 'null' title: Relatedthesisid duration: title: Duration type: integer status: $ref: '#/components/schemas/LoanStatus' creditData: $ref: '#/components/schemas/CreditDataSchemaWorkaround' type: allOf: - $ref: '#/components/schemas/LoanDetailSchemaWorkaroundTypeEnum' title: Type borrowerReferrer: anyOf: - type: string - type: 'null' title: Borrowerreferrer lenderReferrer: anyOf: - type: string - type: 'null' title: Lenderreferrer required: - chainId - contractAddress - onChainId - loanTokenContractAddress - createdAt - originalSourceOfFunds - borrower - originalLender - loanOwner - collateral - collateralAmount - creditAsset - startDate - defaultDate - paidBackAt - claimedAt - loanThatWasRefinancedId - createdFromProposalId - relatedThesisId - duration - status - creditData - type - borrowerReferrer - lenderReferrer title: LoanDetailSchemaWorkaround type: object LoanDetailSchemaWorkaroundTypeEnum: enum: - pwn_contracts.betaloan - pwn_contracts.v1_1simpleloan - pwn_contracts.v1_2simpleloan - pwn_contracts.v1_3simpleloan type: string LoanExtensionCounterProposalSchemaWorkaround: properties: id: title: Id type: integer compensationAsset: anyOf: - $ref: '#/components/schemas/AssetDetailSchemaWorkaround' - type: 'null' compensationAmount: anyOf: - type: integer - type: 'null' title: Compensationamount duration: title: Duration type: integer expiration: title: Expiration type: integer proposer: title: Proposer type: string nonceSpace: anyOf: - type: integer - type: 'null' title: Noncespace nonce: anyOf: - type: integer - type: 'null' title: Nonce messageToLender: anyOf: - type: string - type: 'null' title: Messagetolender messageToBorrower: anyOf: - type: string - type: 'null' title: Messagetoborrower signature: anyOf: - type: string - type: 'null' title: Signature isOnChain: title: Isonchain type: boolean status: $ref: '#/components/schemas/LoanExtensionProposalStatus' loanExtensionCounterProposal: anyOf: - $ref: '#/components/schemas/LoanExtensionCounterProposalSchemaWorkaround' - type: 'null' default: null required: - id - compensationAsset - compensationAmount - duration - expiration - proposer - nonceSpace - nonce - messageToLender - messageToBorrower - signature - isOnChain - status title: LoanExtensionCounterProposalSchemaWorkaround type: object LoanExtensionCreateSchemaRequest: properties: compensation_asset_address: anyOf: - type: string - type: 'null' title: Compensation Asset Address compensation_amount: anyOf: - type: integer - type: 'null' title: Compensation Amount duration: title: Duration type: integer expiration: title: Expiration type: integer proposer: title: Proposer type: string nonce_space: anyOf: - type: integer - type: 'null' title: Nonce Space nonce: anyOf: - type: integer - type: 'null' title: Nonce message: anyOf: - type: string - type: 'null' default: null title: Message signature: title: Signature type: string required: - compensation_asset_address - compensation_amount - duration - expiration - proposer - nonce_space - nonce - signature title: LoanExtensionCreateSchema type: object LoanExtensionProposalStatus: enum: - OPEN - IGNORED - CANCELLED - ACCEPTED - EXPIRED title: LoanExtensionProposalStatus type: string LoanExtensionSchemaWorkaround: properties: id: title: Id type: integer compensationAsset: anyOf: - $ref: '#/components/schemas/AssetDetailSchemaWorkaround' - type: 'null' compensationAmount: anyOf: - type: integer - type: 'null' title: Compensationamount duration: title: Duration type: integer expiration: title: Expiration type: integer proposer: title: Proposer type: string nonceSpace: anyOf: - type: integer - type: 'null' title: Noncespace nonce: anyOf: - type: integer - type: 'null' title: Nonce messageToLender: anyOf: - type: string - type: 'null' title: Messagetolender messageToBorrower: anyOf: - type: string - type: 'null' title: Messagetoborrower signature: anyOf: - type: string - type: 'null' title: Signature isOnChain: title: Isonchain type: boolean status: $ref: '#/components/schemas/LoanExtensionProposalStatus' loanExtensionCounterProposal: anyOf: - $ref: '#/components/schemas/LoanExtensionCounterProposalSchemaWorkaround' - type: 'null' default: null required: - id - compensationAsset - compensationAmount - duration - expiration - proposer - nonceSpace - nonce - messageToLender - messageToBorrower - signature - isOnChain - status title: LoanExtensionSchemaWorkaround type: object LoanExtensionUpdateSchemaRequest: properties: message: anyOf: - type: string - type: 'null' default: null title: Message is_ignored: default: false title: Is Ignored type: boolean title: LoanExtensionUpdateSchema type: object LoanRequestFilterSettings: type: object properties: id: type: integer readOnly: true only_verified_collateral: type: boolean filter_duration: type: boolean min_duration_days: type: - integer - 'null' maximum: 2147483647 minimum: 0 max_duration_days: type: - integer - 'null' maximum: 2147483647 minimum: 0 filter_ltv: type: boolean min_ltv: type: - number - 'null' format: double max_ltv: type: - number - 'null' format: double required: - id LoanRequestFilterSettingsRequest: type: object properties: only_verified_collateral: type: boolean filter_duration: type: boolean min_duration_days: type: - integer - 'null' maximum: 2147483647 minimum: 0 max_duration_days: type: - integer - 'null' maximum: 2147483647 minimum: 0 filter_ltv: type: boolean min_ltv: type: - number - 'null' format: double max_ltv: type: - number - 'null' format: double LoanStatsSchema: properties: totalLoansAmount: anyOf: - type: integer - type: 'null' title: Totalloansamount totalLoansVolumeUsd: anyOf: - type: integer - type: 'null' title: Totalloansvolumeusd outstandingDebt: anyOf: - type: integer - type: 'null' title: Outstandingdebt required: - totalLoansAmount - totalLoansVolumeUsd - outstandingDebt title: LoanStatsSchema type: object LoanStatus: enum: - 0 - 2 - 3 - 4 title: LoanStatus type: integer MarkAsSeenBodyRequest: type: object properties: notifications: type: array items: type: integer required: - notifications MarketplaceEnum: enum: - LOOKSRARE - OPENSEA type: string MetadataSource: enum: - PWN_OVERWRITE - ALCHEMY - CONTRACT - LOOKSRARE - MORALIS - OPENSEA - UPSHOT - UNMARSHAL - NFTBANK - EBISUSBAY - DEXGURU - COINGECKO - COINMARKETCAP - SIMPLE_HASH - DEXSCREENER - INKONCHAIN_EXPLORER - CELOSCAN - CL_ORACLE - VENO_FINANCE - KYBER_SWAP - SOMMELIER - INSTADAPP - YEARN - BACKED - SWAAP - REVEST - BEEFY - PENDLE - SUPERFORM - SUSHI - ETHERFI - HARVEST - MORPHO - KERNEL - MELLOW - RESERVE - SEPOLIA - SPECTRA - RESOLV - TOKEN_LIST_PWN - TOKEN_LIST_UNISWAP - TOKEN_LIST_ZAPPER - TOKEN_LIST_OPTIMISM - TOKEN_LIST_ARBITRUM_ONE - TOKEN_LIST_MATICNETWORK - TOKEN_LIST_CRONASWAP - TOKEN_LIST_BOGGED - TOKEN_LIST_COINGECKO - TOKEN_LIST_BNB_SMART_CHAIN - TOKEN_LIST_STARKNET - TOKEN_LIST_COWSWAP - TOKEN_LIST_CONSENSYS_LINEA - TOKEN_LIST_CELO_ORG title: MetadataSource type: string NFTAssetCollectionDetailSchema: properties: contract: $ref: '#/components/schemas/BaseAssetContractSchema' opensea_slug: anyOf: - type: string - type: 'null' default: null title: Opensea Slug name: anyOf: - type: string - type: 'null' default: null title: Name description: anyOf: - type: string - type: 'null' default: null title: Description thumbnail_url: anyOf: - type: string - type: 'null' default: null title: Thumbnail Url banner_image_url: anyOf: - type: string - type: 'null' default: null title: Banner Image Url is_verified: anyOf: - type: boolean - type: 'null' default: null title: Is Verified is_verified_source: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null symbol: anyOf: - type: string - type: 'null' default: null title: Symbol website_url: anyOf: - type: string - type: 'null' default: null title: Website Url discord_url: anyOf: - type: string - type: 'null' default: null title: Discord Url twitter_url: anyOf: - type: string - type: 'null' default: null title: Twitter Url instagram_url: anyOf: - type: string - type: 'null' default: null title: Instagram Url github_url: anyOf: - type: string - type: 'null' default: null title: Github Url is_top_collection: anyOf: - type: boolean - type: 'null' default: null title: Is Top Collection id: anyOf: - type: integer - type: 'null' default: null title: Id tvl_value_usd: anyOf: - type: number - type: string - type: 'null' default: null title: Tvl Value Usd tvl_value_eth: anyOf: - type: number - type: string - type: 'null' default: null title: Tvl Value Eth tvl_updated_time: anyOf: - format: date-time type: string - type: 'null' default: null title: Tvl Updated Time tlv_value_usd: anyOf: - type: number - type: string - type: 'null' default: null title: Tlv Value Usd tlv_value_eth: anyOf: - type: number - type: string - type: 'null' default: null title: Tlv Value Eth tlv_updated_time: anyOf: - format: date-time type: string - type: 'null' default: null title: Tlv Updated Time total_nfts: anyOf: - type: integer - type: 'null' default: null title: Total Nfts total_nfts_updated_time: anyOf: - format: date-time type: string - type: 'null' default: null title: Total Nfts Updated Time total_owners: anyOf: - type: integer - type: 'null' default: null title: Total Owners total_owners_updated_time: anyOf: - format: date-time type: string - type: 'null' default: null title: Total Owners Updated Time required: - contract title: NFTAssetCollectionDetailSchema type: object NFTAssetCollectionDetailWithStatsSchema: properties: contract: $ref: '#/components/schemas/BaseAssetContractSchema' opensea_slug: anyOf: - type: string - type: 'null' default: null title: Opensea Slug name: anyOf: - type: string - type: 'null' default: null title: Name description: anyOf: - type: string - type: 'null' default: null title: Description thumbnail_url: anyOf: - type: string - type: 'null' default: null title: Thumbnail Url banner_image_url: anyOf: - type: string - type: 'null' default: null title: Banner Image Url is_verified: anyOf: - type: boolean - type: 'null' default: null title: Is Verified is_verified_source: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null symbol: anyOf: - type: string - type: 'null' default: null title: Symbol website_url: anyOf: - type: string - type: 'null' default: null title: Website Url discord_url: anyOf: - type: string - type: 'null' default: null title: Discord Url twitter_url: anyOf: - type: string - type: 'null' default: null title: Twitter Url instagram_url: anyOf: - type: string - type: 'null' default: null title: Instagram Url github_url: anyOf: - type: string - type: 'null' default: null title: Github Url is_top_collection: anyOf: - type: boolean - type: 'null' default: null title: Is Top Collection id: anyOf: - type: integer - type: 'null' default: null title: Id tvl_value_usd: anyOf: - type: number - type: string - type: 'null' default: null title: Tvl Value Usd tvl_value_eth: anyOf: - type: number - type: string - type: 'null' default: null title: Tvl Value Eth tvl_updated_time: anyOf: - format: date-time type: string - type: 'null' default: null title: Tvl Updated Time tlv_value_usd: anyOf: - type: number - type: string - type: 'null' default: null title: Tlv Value Usd tlv_value_eth: anyOf: - type: number - type: string - type: 'null' default: null title: Tlv Value Eth tlv_updated_time: anyOf: - format: date-time type: string - type: 'null' default: null title: Tlv Updated Time total_nfts: anyOf: - type: integer - type: 'null' default: null title: Total Nfts total_nfts_updated_time: anyOf: - format: date-time type: string - type: 'null' default: null title: Total Nfts Updated Time total_owners: anyOf: - type: integer - type: 'null' default: null title: Total Owners total_owners_updated_time: anyOf: - format: date-time type: string - type: 'null' default: null title: Total Owners Updated Time collection_stats: anyOf: - $ref: '#/components/schemas/CollectionStats' - type: 'null' default: null required: - contract title: NFTAssetCollectionDetailWithStatsSchema type: object NFTAssetCollectionSchema: properties: contract: $ref: '#/components/schemas/BaseAssetContractSchema' opensea_slug: anyOf: - type: string - type: 'null' default: null title: Opensea Slug name: anyOf: - type: string - type: 'null' default: null title: Name description: anyOf: - type: string - type: 'null' default: null title: Description thumbnail_url: anyOf: - type: string - type: 'null' default: null title: Thumbnail Url banner_image_url: anyOf: - type: string - type: 'null' default: null title: Banner Image Url is_verified: anyOf: - type: boolean - type: 'null' default: null title: Is Verified is_verified_source: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null symbol: anyOf: - type: string - type: 'null' default: null title: Symbol website_url: anyOf: - type: string - type: 'null' default: null title: Website Url discord_url: anyOf: - type: string - type: 'null' default: null title: Discord Url twitter_url: anyOf: - type: string - type: 'null' default: null title: Twitter Url instagram_url: anyOf: - type: string - type: 'null' default: null title: Instagram Url github_url: anyOf: - type: string - type: 'null' default: null title: Github Url is_top_collection: anyOf: - type: boolean - type: 'null' default: null title: Is Top Collection id: anyOf: - type: integer - type: 'null' default: null title: Id required: - contract title: NFTAssetCollectionSchema type: object NFTAssetCollectionSchemaList: items: $ref: '#/components/schemas/NFTAssetCollectionSchema' title: NFTAssetCollectionSchemaList type: array NFTAssetCollectionSchemaWorkaround: properties: contract: $ref: '#/components/schemas/BaseAssetContractSchemaWorkaround' openseaSlug: anyOf: - type: string - type: 'null' default: null title: Openseaslug name: anyOf: - type: string - type: 'null' default: null title: Name description: anyOf: - type: string - type: 'null' default: null title: Description thumbnailUrl: anyOf: - type: string - type: 'null' default: null title: Thumbnailurl bannerImageUrl: anyOf: - type: string - type: 'null' default: null title: Bannerimageurl isVerified: anyOf: - type: boolean - type: 'null' default: null title: Isverified isVerifiedSource: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null symbol: anyOf: - type: string - type: 'null' default: null title: Symbol websiteUrl: anyOf: - type: string - type: 'null' default: null title: Websiteurl discordUrl: anyOf: - type: string - type: 'null' default: null title: Discordurl twitterUrl: anyOf: - type: string - type: 'null' default: null title: Twitterurl instagramUrl: anyOf: - type: string - type: 'null' default: null title: Instagramurl githubUrl: anyOf: - type: string - type: 'null' default: null title: Githuburl isTopCollection: anyOf: - type: boolean - type: 'null' default: null title: Istopcollection id: anyOf: - type: integer - type: 'null' default: null title: Id required: - contract title: NFTAssetCollectionSchemaWorkaround type: object NFTAssetSchema: properties: contract: $ref: '#/components/schemas/BaseAssetContractSchema' token_id: title: Token Id type: string name: anyOf: - type: string - type: 'null' default: null title: Name description: anyOf: - type: string - type: 'null' default: null title: Description type: anyOf: - type: string - type: 'null' default: null title: Type animation_url: anyOf: - type: string - type: 'null' default: null title: Animation Url token_uri: anyOf: - type: string - type: 'null' default: null title: Token Uri id: anyOf: - type: integer - type: 'null' default: null title: Id collection: $ref: '#/components/schemas/NFTAssetCollectionSchema' bundled_assets: anyOf: - items: anyOf: - $ref: '#/components/schemas/ERC20AssetSchemaWithBalance' - $ref: '#/components/schemas/NFTAssetSchemaWithBalance' type: array - type: 'null' default: null title: Bundled Assets thumbnail_url: anyOf: - type: string - type: 'null' default: null title: Thumbnail Url is_verified: anyOf: - type: boolean - type: 'null' default: null title: Is Verified is_verified_source: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null bundled_assets_verified_count: anyOf: - type: integer - type: 'null' default: null title: Bundled Assets Verified Count bundled_assets_total_count: anyOf: - type: integer - type: 'null' default: null title: Bundled Assets Total Count asset_of_atr_token: anyOf: - $ref: '#/components/schemas/ERC20AssetSchemaWithBalanceAndOwner' - $ref: '#/components/schemas/NFTAssetSchemaWithBalanceAndOwner' - type: 'null' default: null title: Asset Of Atr Token atr_tokens_of_user: anyOf: - items: $ref: '#/components/schemas/AtrTokenOfAssetSchema' type: array - type: 'null' default: null title: Atr Tokens Of User latest_price: anyOf: - $ref: '#/components/schemas/AssetPriceSchema' - type: 'null' default: null required: - contract - token_id - collection title: NFTAssetSchema type: object NFTAssetSchemaWithBalance: properties: contract: $ref: '#/components/schemas/BaseAssetContractSchema' token_id: title: Token Id type: string name: anyOf: - type: string - type: 'null' default: null title: Name description: anyOf: - type: string - type: 'null' default: null title: Description type: anyOf: - type: string - type: 'null' default: null title: Type animation_url: anyOf: - type: string - type: 'null' default: null title: Animation Url token_uri: anyOf: - type: string - type: 'null' default: null title: Token Uri id: anyOf: - type: integer - type: 'null' default: null title: Id collection: $ref: '#/components/schemas/NFTAssetCollectionSchema' bundled_assets: anyOf: - items: anyOf: - $ref: '#/components/schemas/ERC20AssetSchemaWithBalance' - $ref: '#/components/schemas/NFTAssetSchemaWithBalance' type: array - type: 'null' default: null title: Bundled Assets thumbnail_url: anyOf: - type: string - type: 'null' default: null title: Thumbnail Url is_verified: anyOf: - type: boolean - type: 'null' default: null title: Is Verified is_verified_source: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null bundled_assets_verified_count: anyOf: - type: integer - type: 'null' default: null title: Bundled Assets Verified Count bundled_assets_total_count: anyOf: - type: integer - type: 'null' default: null title: Bundled Assets Total Count asset_of_atr_token: anyOf: - $ref: '#/components/schemas/ERC20AssetSchemaWithBalanceAndOwner' - $ref: '#/components/schemas/NFTAssetSchemaWithBalanceAndOwner' - type: 'null' default: null title: Asset Of Atr Token atr_tokens_of_user: anyOf: - items: $ref: '#/components/schemas/AtrTokenOfAssetSchema' type: array - type: 'null' default: null title: Atr Tokens Of User latest_price: anyOf: - $ref: '#/components/schemas/AssetPriceSchema' - type: 'null' default: null balance: title: Balance type: string required: - contract - token_id - collection - balance title: NFTAssetSchemaWithBalance type: object NFTAssetSchemaWithBalanceAndOwner: properties: contract: $ref: '#/components/schemas/BaseAssetContractSchema' token_id: title: Token Id type: string name: anyOf: - type: string - type: 'null' default: null title: Name description: anyOf: - type: string - type: 'null' default: null title: Description type: anyOf: - type: string - type: 'null' default: null title: Type animation_url: anyOf: - type: string - type: 'null' default: null title: Animation Url token_uri: anyOf: - type: string - type: 'null' default: null title: Token Uri id: anyOf: - type: integer - type: 'null' default: null title: Id collection: $ref: '#/components/schemas/NFTAssetCollectionSchema' bundled_assets: anyOf: - items: anyOf: - $ref: '#/components/schemas/ERC20AssetSchemaWithBalance' - $ref: '#/components/schemas/NFTAssetSchemaWithBalance' type: array - type: 'null' default: null title: Bundled Assets thumbnail_url: anyOf: - type: string - type: 'null' default: null title: Thumbnail Url is_verified: anyOf: - type: boolean - type: 'null' default: null title: Is Verified is_verified_source: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null bundled_assets_verified_count: anyOf: - type: integer - type: 'null' default: null title: Bundled Assets Verified Count bundled_assets_total_count: anyOf: - type: integer - type: 'null' default: null title: Bundled Assets Total Count asset_of_atr_token: anyOf: - $ref: '#/components/schemas/ERC20AssetSchemaWithBalanceAndOwner' - $ref: '#/components/schemas/NFTAssetSchemaWithBalanceAndOwner' - type: 'null' default: null title: Asset Of Atr Token atr_tokens_of_user: anyOf: - items: $ref: '#/components/schemas/AtrTokenOfAssetSchema' type: array - type: 'null' default: null title: Atr Tokens Of User latest_price: anyOf: - $ref: '#/components/schemas/AssetPriceSchema' - type: 'null' default: null balance: title: Balance type: string owner: anyOf: - type: string - type: 'null' default: null title: Owner required: - contract - token_id - collection - balance title: NFTAssetSchemaWithBalanceAndOwner type: object NFTEvent: properties: event_type: $ref: '#/components/schemas/EventTypeEnum' from_address: title: From Address type: string to_address: title: To Address type: string date: format: date-time title: Date type: string marketplace: allOf: - $ref: '#/components/schemas/MarketplaceEnum' title: Marketplace quantity: title: Quantity type: integer value: anyOf: - $ref: '#/components/schemas/AmountInTokenAndEthAndUsd' - type: 'null' default: null token_metadata: anyOf: - $ref: '#/components/schemas/AssetMetadata' - type: 'null' default: null required: - event_type - from_address - to_address - date - marketplace - quantity title: NFTEvent type: object NFTOrder: description: Model for both offers & listings. properties: order_type: $ref: '#/components/schemas/NFTOrderTypeEnum' unit_price: $ref: '#/components/schemas/AmountInTokenAndEthAndUsd' token_metadata: $ref: '#/components/schemas/AssetMetadata' quantity: title: Quantity type: integer expiration: format: date-time title: Expiration type: string creator_address: title: Creator Address type: string marketplace: allOf: - $ref: '#/components/schemas/MarketplaceEnum' title: Marketplace floor_price_difference_percentage: anyOf: - type: number - type: 'null' default: null title: Floor Price Difference Percentage required: - order_type - unit_price - token_metadata - quantity - expiration - creator_address - marketplace title: NFTOrder type: object NFTOrderTypeEnum: enum: - listing - offer title: NFTOrderTypeEnum type: string NFTPriceStatsSchema: properties: floor_price: anyOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' default: null floor_price_source: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null appraisal_source: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null appraisal: anyOf: - $ref: '#/components/schemas/AmountInEthAndUsd' - type: 'null' default: null title: NFTPriceStatsSchema type: object NewERC20AssetSchema: properties: contract: $ref: '#/components/schemas/BaseAssetContractSchema' token_id: anyOf: - type: string - type: 'null' default: null title: Token Id name: anyOf: - type: string - type: 'null' default: null title: Name description: anyOf: - type: string - type: 'null' default: null title: Description type: anyOf: - type: string - type: 'null' default: null title: Type symbol: anyOf: - type: string - type: 'null' default: null title: Symbol is_verified: anyOf: - type: boolean - type: 'null' default: null title: Is Verified is_verified_source: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null thumbnail_url: anyOf: - type: string - type: 'null' default: null title: Thumbnail Url website_url: anyOf: - type: string - type: 'null' default: null title: Website Url discord_url: anyOf: - type: string - type: 'null' default: null title: Discord Url twitter_url: anyOf: - type: string - type: 'null' default: null title: Twitter Url instagram_url: anyOf: - type: string - type: 'null' default: null title: Instagram Url github_url: anyOf: - type: string - type: 'null' default: null title: Github Url id: anyOf: - type: integer - type: 'null' default: null title: Id required: - contract title: NewERC20AssetSchema type: object NewERC20AssetSchemaWithBalanceWorkaround: properties: contract: $ref: '#/components/schemas/BaseAssetContractSchema' tokenId: anyOf: - type: string - type: 'null' default: null title: Tokenid name: anyOf: - type: string - type: 'null' default: null title: Name description: anyOf: - type: string - type: 'null' default: null title: Description type: anyOf: - type: string - type: 'null' default: null title: Type symbol: anyOf: - type: string - type: 'null' default: null title: Symbol isVerified: anyOf: - type: boolean - type: 'null' default: null title: Isverified isVerifiedSource: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null thumbnailUrl: anyOf: - type: string - type: 'null' default: null title: Thumbnailurl websiteUrl: anyOf: - type: string - type: 'null' default: null title: Websiteurl discordUrl: anyOf: - type: string - type: 'null' default: null title: Discordurl twitterUrl: anyOf: - type: string - type: 'null' default: null title: Twitterurl instagramUrl: anyOf: - type: string - type: 'null' default: null title: Instagramurl githubUrl: anyOf: - type: string - type: 'null' default: null title: Githuburl id: anyOf: - type: integer - type: 'null' default: null title: Id atrTokensOfUser: anyOf: - items: $ref: '#/components/schemas/AtrTokenOfAssetSchema' type: array - type: 'null' default: null title: Atrtokensofuser latestPrice: anyOf: - $ref: '#/components/schemas/AssetPriceSchema' - type: 'null' default: null balance: title: Balance type: string required: - contract - balance title: NewERC20AssetSchemaWithBalanceWorkaround type: object NewERC20AssetSchemaWorkaround: properties: contract: $ref: '#/components/schemas/BaseAssetContractSchemaWorkaround' tokenId: anyOf: - type: string - type: 'null' default: null title: Tokenid name: anyOf: - type: string - type: 'null' default: null title: Name description: anyOf: - type: string - type: 'null' default: null title: Description type: anyOf: - type: string - type: 'null' default: null title: Type symbol: anyOf: - type: string - type: 'null' default: null title: Symbol isVerified: anyOf: - type: boolean - type: 'null' default: null title: Isverified isVerifiedSource: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null thumbnailUrl: anyOf: - type: string - type: 'null' default: null title: Thumbnailurl websiteUrl: anyOf: - type: string - type: 'null' default: null title: Websiteurl discordUrl: anyOf: - type: string - type: 'null' default: null title: Discordurl twitterUrl: anyOf: - type: string - type: 'null' default: null title: Twitterurl instagramUrl: anyOf: - type: string - type: 'null' default: null title: Instagramurl githubUrl: anyOf: - type: string - type: 'null' default: null title: Githuburl id: anyOf: - type: integer - type: 'null' default: null title: Id required: - contract title: NewERC20AssetSchemaWorkaround type: object NewFeature: type: object properties: id: type: integer readOnly: true title: type: string maxLength: 255 description: type: - string - 'null' image: type: - string - 'null' format: uri version: type: string maxLength: 12 required: - id - title - version NewNFTAssetSchemaWithBalanceWorkaround: properties: contract: $ref: '#/components/schemas/BaseAssetContractSchema' tokenId: title: Tokenid type: string name: anyOf: - type: string - type: 'null' default: null title: Name description: anyOf: - type: string - type: 'null' default: null title: Description type: anyOf: - type: string - type: 'null' default: null title: Type animationUrl: anyOf: - type: string - type: 'null' default: null title: Animationurl tokenUri: anyOf: - type: string - type: 'null' default: null title: Tokenuri id: anyOf: - type: integer - type: 'null' default: null title: Id collection: $ref: '#/components/schemas/NFTAssetCollectionSchema' bundledAssets: anyOf: - items: anyOf: - $ref: '#/components/schemas/ERC20AssetSchemaWithBalance' - $ref: '#/components/schemas/NFTAssetSchemaWithBalance' type: array - type: 'null' default: null title: Bundledassets thumbnailUrl: anyOf: - type: string - type: 'null' default: null title: Thumbnailurl isVerified: anyOf: - type: boolean - type: 'null' default: null title: Isverified isVerifiedSource: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null bundledAssetsVerifiedCount: anyOf: - type: integer - type: 'null' default: null title: Bundledassetsverifiedcount bundledAssetsTotalCount: anyOf: - type: integer - type: 'null' default: null title: Bundledassetstotalcount assetOfAtrToken: anyOf: - $ref: '#/components/schemas/ERC20AssetSchemaWithBalanceAndOwner' - $ref: '#/components/schemas/NFTAssetSchemaWithBalanceAndOwner' - type: 'null' default: null title: Assetofatrtoken atrTokensOfUser: anyOf: - items: $ref: '#/components/schemas/AtrTokenOfAssetSchema' type: array - type: 'null' default: null title: Atrtokensofuser latestPrice: anyOf: - $ref: '#/components/schemas/AssetPriceSchema' - type: 'null' default: null balance: title: Balance type: string required: - contract - tokenId - collection - balance title: NewNFTAssetSchemaWithBalanceWorkaround type: object NewNFTAssetSchemaWorkaround: properties: contract: $ref: '#/components/schemas/BaseAssetContractSchemaWorkaround' tokenId: title: Tokenid type: string name: anyOf: - type: string - type: 'null' default: null title: Name description: anyOf: - type: string - type: 'null' default: null title: Description type: anyOf: - type: string - type: 'null' default: null title: Type animationUrl: anyOf: - type: string - type: 'null' default: null title: Animationurl tokenUri: anyOf: - type: string - type: 'null' default: null title: Tokenuri id: anyOf: - type: integer - type: 'null' default: null title: Id collection: $ref: '#/components/schemas/NFTAssetCollectionSchemaWorkaround' bundledAssets: anyOf: - items: anyOf: - $ref: '#/components/schemas/NewERC20AssetSchemaWithBalanceWorkaround' - $ref: '#/components/schemas/NewNFTAssetSchemaWithBalanceWorkaround' type: array - type: 'null' default: null title: Bundledassets thumbnailUrl: anyOf: - type: string - type: 'null' default: null title: Thumbnailurl isVerified: anyOf: - type: boolean - type: 'null' default: null title: Isverified isVerifiedSource: anyOf: - $ref: '#/components/schemas/MetadataSource' - type: 'null' default: null bundledAssetsVerifiedCount: anyOf: - type: integer - type: 'null' default: null title: Bundledassetsverifiedcount bundledAssetsTotalCount: anyOf: - type: integer - type: 'null' default: null title: Bundledassetstotalcount required: - contract - tokenId - collection title: NewNFTAssetSchemaWorkaround type: object Notification: type: object properties: id: type: integer readOnly: true chain_id: type: - string - 'null' contract_address: type: - string - 'null' recipient_address: type: string maxLength: 66 type: $ref: '#/components/schemas/NotificationTypeEnum' action: $ref: '#/components/schemas/NotificationActionEnum' has_seen: type: boolean first_image: type: - string - 'null' second_image: type: - string - 'null' proposal_id: type: - string - 'null' readOnly: true strategy_id: type: - string - 'null' readOnly: true loan_token_contract_address: type: - string - 'null' readOnly: true loan_on_chain_id: type: - string - 'null' readOnly: true transaction_hash: type: - string - 'null' created_at: type: string format: date-time to_discord: type: - string - 'null' to_push: type: - string - 'null' body_text: type: - string - 'null' body_cta: type: - string - 'null' required: - action - body_cta - body_text - chain_id - contract_address - first_image - id - loan_on_chain_id - loan_token_contract_address - proposal_id - recipient_address - second_image - strategy_id - transaction_hash - type NotificationActionEnum: enum: - PROPOSAL_CREATED - PROPOSAL_REVOKED - PROPOSAL_UNAVAILABLE - PROPOSAL_BACK_AVAILABLE - LENDER_COMMITTED_TO_THESIS - LOAN_CREATED - LOAN_PAID_BACK - LOAN_PAYMENT_CLAIMED - LOAN_COLLATERAL_CLAIMED - LOAN_DEFAULTED - LOAN_EXTENDED - LOAN_EXTENSION_REQUESTED - LOAN_EXTENSION_REQUEST_CANCELLED - LOAN_EXTENSION_REQUEST_IGNORED - NEW_COUNTER_PROPOSAL - THESIS_TERMS_CHANGED - FIRST_BORROWER_CLOSE_TO_DEFAULT - SECOND_BORROWER_CLOSE_TO_DEFAULT - APPROVAL_INSUFFICIENT - INFO - REFERRAL_ASSIGNED - REFERRAL_REWARDED type: string description: |- * `PROPOSAL_CREATED` - Offer created * `PROPOSAL_REVOKED` - Offer revoked * `PROPOSAL_UNAVAILABLE` - Offer become unavailable * `PROPOSAL_BACK_AVAILABLE` - Offer is back available * `LENDER_COMMITTED_TO_THESIS` - Lender committed funds to thesis * `LOAN_CREATED` - Loan created * `LOAN_PAID_BACK` - Loan paid back * `LOAN_PAYMENT_CLAIMED` - Loan payment claimed * `LOAN_COLLATERAL_CLAIMED` - Loan collateral claimed * `LOAN_DEFAULTED` - Loan defaulted * `LOAN_EXTENDED` - Loan extended * `LOAN_EXTENSION_REQUESTED` - Loan extension requested * `LOAN_EXTENSION_REQUEST_CANCELLED` - Loan extension request cancelled * `LOAN_EXTENSION_REQUEST_IGNORED` - Loan extension request ignored * `NEW_COUNTER_PROPOSAL` - New counter offer that you might be interested in * `THESIS_TERMS_CHANGED` - Thesis terms has been changed! you have to revoke your commitment and commit again with new terms * `FIRST_BORROWER_CLOSE_TO_DEFAULT` - Loan is getting close to default * `SECOND_BORROWER_CLOSE_TO_DEFAULT` - Loan is getting close to default * `APPROVAL_INSUFFICIENT` - Approval insufficient * `INFO` - Info * `REFERRAL_ASSIGNED` - Someone used your referral! * `REFERRAL_REWARDED` - You got a rep points for your referral! NotificationRequest: type: object properties: chain_id: type: - string - 'null' minLength: 1 contract_address: type: - string - 'null' minLength: 1 recipient_address: type: string minLength: 1 maxLength: 66 type: $ref: '#/components/schemas/NotificationTypeEnum' action: $ref: '#/components/schemas/NotificationActionEnum' has_seen: type: boolean first_image: type: - string - 'null' minLength: 1 second_image: type: - string - 'null' minLength: 1 transaction_hash: type: - string - 'null' minLength: 1 created_at: type: string format: date-time to_discord: type: - string - 'null' minLength: 1 to_push: type: - string - 'null' minLength: 1 body_text: type: - string - 'null' minLength: 1 body_cta: type: - string - 'null' minLength: 1 required: - action - body_cta - body_text - chain_id - contract_address - first_image - recipient_address - second_image - transaction_hash - type NotificationSettings: type: object properties: id: type: integer readOnly: true offers_on_user_loan_request_filter_settings: $ref: '#/components/schemas/OfferFilterSettings' new_loan_request_filter_settings: type: array items: $ref: '#/components/schemas/LoanRequestFilterSettings' followed_users: type: array items: $ref: '#/components/schemas/Wallet' offers_on_user_loan_request: type: boolean loan_default_warning: type: boolean first_alert_days_before_loan_default: type: integer maximum: 2147483647 minimum: 0 second_alert_days_before_loan_default: type: integer maximum: 2147483647 minimum: 0 offer_accepted: type: boolean offer_not_selected: type: boolean new_loan_request: type: boolean follow_users: type: boolean required: - followed_users - id - new_loan_request_filter_settings - offers_on_user_loan_request_filter_settings NotificationSettingsRequest: type: object properties: offers_on_user_loan_request_filter_settings: $ref: '#/components/schemas/OfferFilterSettingsRequest' new_loan_request_filter_settings: type: array items: $ref: '#/components/schemas/LoanRequestFilterSettingsRequest' followed_users: type: array items: $ref: '#/components/schemas/WalletRequest' offers_on_user_loan_request: type: boolean loan_default_warning: type: boolean first_alert_days_before_loan_default: type: integer maximum: 2147483647 minimum: 0 second_alert_days_before_loan_default: type: integer maximum: 2147483647 minimum: 0 offer_accepted: type: boolean offer_not_selected: type: boolean new_loan_request: type: boolean follow_users: type: boolean required: - followed_users - new_loan_request_filter_settings - offers_on_user_loan_request_filter_settings NotificationTypeEnum: enum: - error - danger - success - info - pending type: string description: |- * `error` - Error * `danger` - Warning * `success` - Success * `info` - Info * `pending` - Pending NullEnum: type: 'null' OfferFilterSettings: type: object properties: id: type: integer readOnly: true only_verified_tokens: type: boolean only_relevant_offers: type: boolean filter_apy: type: boolean min_apy: type: - number - 'null' format: double max_apy: type: - number - 'null' format: double filter_ltv: type: boolean min_ltv: type: - number - 'null' format: double max_ltv: type: - number - 'null' format: double required: - id OfferFilterSettingsRequest: type: object properties: only_verified_tokens: type: boolean only_relevant_offers: type: boolean filter_apy: type: boolean min_apy: type: - number - 'null' format: double max_apy: type: - number - 'null' format: double filter_ltv: type: boolean min_ltv: type: - number - 'null' format: double max_ltv: type: - number - 'null' format: double PaginatedAssetMetadataListList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/AssetMetadataList' PaginatedAtrTokenOfSafeListSchemaWorkaroundList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/AtrTokenOfSafeListSchemaWorkaround' PaginatedCuratorGroupDetailList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/CuratorGroupDetail' PaginatedERC20AssetSchemaList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/ERC20AssetSchema' PaginatedLLLSchemaResponseList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/LLLSchemaResponse' PaginatedNFTAssetCollectionSchemaListList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/NFTAssetCollectionSchemaList' PaginatedNFTAssetCollectionSchemaWorkaroundList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/NFTAssetCollectionSchemaWorkaround' PaginatedNewERC20AssetSchemaWorkaroundList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/NewERC20AssetSchemaWorkaround' PaginatedNewFeatureList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/NewFeature' PaginatedNewNFTAssetSchemaWorkaroundList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/NewNFTAssetSchemaWorkaround' PaginatedNotificationList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/Notification' PaginatedProposalAndLoanListSchemaWorkaroundList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/ProposalAndLoanListSchemaWorkaround' PaginatedProposalDetailSchemaList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/ProposalDetailSchema' PaginatedSafeList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/Safe' PaginatedSubdomainConfigList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/SubdomainConfig' PaginatedThesisSchemaWorkaroundList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/ThesisSchemaWorkaround' PaginatedWaitListList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/WaitList' PaginatedWalletAssetsResponseWorkaroundList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: $ref: '#/components/schemas/WalletAssetsResponseWorkaround' PaginatedWalletRoleList: type: object properties: count: type: integer example: 123 next: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=400&limit=100 previous: anyOf: - type: string format: uri - type: 'null' example: https://api.pwn.xyz/api/v2/proposal/?offset=200&limit=100 results: type: array items: $ref: '#/components/schemas/WalletRole' ParsedLeaderboardPositionResponse: properties: walletAddress: title: Walletaddress type: string reputationScore: title: Reputationscore type: integer position: title: Position type: integer required: - walletAddress - reputationScore - position title: ParsedLeaderboardPositionResponse type: object ParsedLeaderboardPositionResponseList: items: $ref: '#/components/schemas/ParsedLeaderboardPositionResponse' title: ParsedLeaderboardPositionResponseList type: array PassportProfile: properties: bio: anyOf: - type: string - type: 'null' default: null title: Bio dataSources: default: {} title: Datasources type: object displayName: anyOf: - type: string - type: 'null' default: null title: Displayname imageUrl: anyOf: - type: string - type: 'null' default: null title: Imageurl location: anyOf: - type: string - type: 'null' default: null title: Location name: anyOf: - type: string - type: 'null' default: null title: Name tags: default: [] items: type: string title: Tags type: array title: PassportProfile type: object PassportSocial: properties: disconnected: title: Disconnected type: boolean followerCount: anyOf: - type: integer - type: 'null' default: null title: Followercount followingCount: anyOf: - type: integer - type: 'null' default: null title: Followingcount location: anyOf: - type: string - type: 'null' default: null title: Location profileBio: anyOf: - type: string - type: 'null' default: null title: Profilebio profileDisplayName: anyOf: - type: string - type: 'null' default: null title: Profiledisplayname profileImageUrl: anyOf: - type: string - type: 'null' default: null title: Profileimageurl profileName: anyOf: - type: string - type: 'null' default: null title: Profilename profileUrl: anyOf: - type: string - type: 'null' default: null title: Profileurl source: title: Source type: string required: - disconnected - source title: PassportSocial type: object PassportUser: properties: admin: title: Admin type: boolean email: anyOf: - type: string - type: 'null' default: null title: Email id: title: Id type: string name: anyOf: - type: string - type: 'null' default: null title: Name profilePictureUrl: anyOf: - type: string - type: 'null' default: null title: Profilepictureurl required: - admin - id title: PassportUser type: object PeriodEnum: enum: - 24h - 7d - 30d - 1y type: string PriceSourceEnum: enum: - PWN_OVERWRITE - ALCHEMY - CONTRACT - LOOKSRARE - MORALIS - OPENSEA - UPSHOT - UNMARSHAL - NFTBANK - EBISUSBAY - DEXGURU - COINGECKO - COINMARKETCAP - SIMPLE_HASH - DEXSCREENER - INKONCHAIN_EXPLORER - CELOSCAN - CL_ORACLE - VENO_FINANCE - KYBER_SWAP - SOMMELIER - INSTADAPP - YEARN - BACKED - SWAAP - REVEST - BEEFY - PENDLE - SUPERFORM - SUSHI - ETHERFI - HARVEST - MORPHO - KERNEL - MELLOW - RESERVE - SEPOLIA - SPECTRA - RESOLV - TOKEN_LIST_PWN - TOKEN_LIST_UNISWAP - TOKEN_LIST_ZAPPER - TOKEN_LIST_OPTIMISM - TOKEN_LIST_ARBITRUM_ONE - TOKEN_LIST_MATICNETWORK - TOKEN_LIST_CRONASWAP - TOKEN_LIST_BOGGED - TOKEN_LIST_COINGECKO - TOKEN_LIST_BNB_SMART_CHAIN - TOKEN_LIST_STARKNET - TOKEN_LIST_COWSWAP - TOKEN_LIST_CONSENSYS_LINEA - TOKEN_LIST_CELO_ORG type: string description: |- * `PWN_OVERWRITE` - PWN_OVERWRITE * `ALCHEMY` - ALCHEMY * `CONTRACT` - CONTRACT * `LOOKSRARE` - LOOKSRARE * `MORALIS` - MORALIS * `OPENSEA` - OPENSEA * `UPSHOT` - UPSHOT * `UNMARSHAL` - UNMARSHAL * `NFTBANK` - NFTBANK * `EBISUSBAY` - EBISUSBAY * `DEXGURU` - DEXGURU * `COINGECKO` - COINGECKO * `COINMARKETCAP` - COINMARKETCAP * `SIMPLE_HASH` - SIMPLE_HASH * `DEXSCREENER` - DEXSCREENER * `INKONCHAIN_EXPLORER` - INKONCHAIN_EXPLORER * `CELOSCAN` - CELOSCAN * `CL_ORACLE` - CL_ORACLE * `VENO_FINANCE` - VENO_FINANCE * `KYBER_SWAP` - KYBER_SWAP * `SOMMELIER` - SOMMELIER * `INSTADAPP` - INSTADAPP * `YEARN` - YEARN * `BACKED` - BACKED * `SWAAP` - SWAAP * `REVEST` - REVEST * `BEEFY` - BEEFY * `PENDLE` - PENDLE * `SUPERFORM` - SUPERFORM * `SUSHI` - SUSHI * `ETHERFI` - ETHERFI * `HARVEST` - HARVEST * `MORPHO` - MORPHO * `KERNEL` - KERNEL * `MELLOW` - MELLOW * `RESERVE` - RESERVE * `SEPOLIA` - SEPOLIA * `SPECTRA` - SPECTRA * `RESOLV` - RESOLV * `TOKEN_LIST_PWN` - TOKEN_LIST_PWN * `TOKEN_LIST_UNISWAP` - TOKEN_LIST_UNISWAP * `TOKEN_LIST_ZAPPER` - TOKEN_LIST_ZAPPER * `TOKEN_LIST_OPTIMISM` - TOKEN_LIST_OPTIMISM * `TOKEN_LIST_ARBITRUM_ONE` - TOKEN_LIST_ARBITRUM_ONE * `TOKEN_LIST_MATICNETWORK` - TOKEN_LIST_MATICNETWORK * `TOKEN_LIST_CRONASWAP` - TOKEN_LIST_CRONASWAP * `TOKEN_LIST_BOGGED` - TOKEN_LIST_BOGGED * `TOKEN_LIST_COINGECKO` - TOKEN_LIST_COINGECKO * `TOKEN_LIST_BNB_SMART_CHAIN` - TOKEN_LIST_BNB_SMART_CHAIN * `TOKEN_LIST_STARKNET` - TOKEN_LIST_STARKNET * `TOKEN_LIST_COWSWAP` - TOKEN_LIST_COWSWAP * `TOKEN_LIST_CONSENSYS_LINEA` - TOKEN_LIST_CONSENSYS_LINEA * `TOKEN_LIST_CELO_ORG` - TOKEN_LIST_CELO_ORG ProposalAdmin: type: object properties: id: type: integer readOnly: true chain_id: allOf: - $ref: '#/components/schemas/ChainIdEnum' minimum: 0 maximum: 2147483647 proposal_contract_address: type: string maxLength: 66 created_at: type: string format: date-time proposer_address: type: string collateral_asset_chain_id: type: string readOnly: true collateral_asset_address: type: string readOnly: true collateral_asset_amount: type: string readOnly: true collateral_asset_decimals: type: string readOnly: true collateral_asset_thumbnail_url: type: string readOnly: true collateral_asset_name: type: string readOnly: true collateral_asset_symbol: type: string readOnly: true collateral_asset_is_verified: type: string readOnly: true collateral_asset_token_id: type: string readOnly: true credit_asset_chain_id: type: string readOnly: true credit_asset_address: type: string readOnly: true credit_asset_amount: type: string readOnly: true credit_asset_repayment_amount: type: string readOnly: true credit_asset_decimals: type: string readOnly: true credit_asset_thumbnail_url: type: string readOnly: true credit_asset_name: type: string readOnly: true credit_asset_symbol: type: string readOnly: true credit_asset_is_verified: type: string readOnly: true expiration: type: string format: date-time status: type: string readOnly: true ltv: type: string readOnly: true chain_name: type: string readOnly: true duration: type: - integer - 'null' maximum: 9223372036854775807 minimum: 0 format: int64 related_loan_token_contract_address: type: string readOnly: true related_loan_on_chain_id: type: string readOnly: true required: - chain_id - chain_name - collateral_asset_address - collateral_asset_amount - collateral_asset_chain_id - collateral_asset_decimals - collateral_asset_is_verified - collateral_asset_name - collateral_asset_symbol - collateral_asset_thumbnail_url - collateral_asset_token_id - credit_asset_address - credit_asset_amount - credit_asset_chain_id - credit_asset_decimals - credit_asset_is_verified - credit_asset_name - credit_asset_repayment_amount - credit_asset_symbol - credit_asset_thumbnail_url - expiration - id - ltv - proposal_contract_address - proposer_address - related_loan_on_chain_id - related_loan_token_contract_address - status ProposalAndLoanListSchemaWorkaround: properties: id: title: Id type: string duration: anyOf: - type: integer - type: 'null' title: Duration loanDefaultDate: anyOf: - type: integer - type: 'null' default: null title: Loandefaultdate expiration: anyOf: - type: integer - type: 'null' default: null title: Expiration status: anyOf: - $ref: '#/components/schemas/ProposalStatus' - $ref: '#/components/schemas/LoanStatus' title: Status collateral: $ref: '#/components/schemas/AssetInListSchemaWorkaround' collateralAmount: title: Collateralamount type: string minCollateralAmount: anyOf: - type: string - type: 'null' default: null title: Mincollateralamount minCreditAmount: anyOf: - type: string - type: 'null' default: null title: Mincreditamount creditData: $ref: '#/components/schemas/CreditDataSchemaWorkaround' creditAsset: $ref: '#/components/schemas/AssetInListSchemaWorkaround' chainId: $ref: '#/components/schemas/ChainIdEnum' proposalContractAddress: anyOf: - type: string - type: 'null' default: null title: Proposalcontractaddress proposalId: anyOf: - type: string - type: 'null' default: null title: Proposalid loanContract: title: Loancontract type: string proposer: title: Proposer type: string isOffer: title: Isoffer type: boolean type: anyOf: - enum: - pwn_contracts.betaproposal - pwn_contracts.v1_1simpleloansimpleproposal - pwn_contracts.v1_1simpleloanlistproposal - pwn_contracts.v1_2simpleloansimpleproposal - pwn_contracts.v1_2simpleloanlistproposal - pwn_contracts.v1_2simpleloanfungibleproposal - pwn_contracts.v1_2simpleloandutchauctionproposal - pwn_contracts.v1_3simpleloansimpleproposal - pwn_contracts.v1_3simpleloanlistproposal - pwn_contracts.v1_3simpleloanelasticproposal - pwn_contracts.v1_3simpleloanelasticchainlinkproposal - pwn_contracts.v1_3simpleloandutchauctionproposal type: string - enum: - pwn_contracts.betaloan - pwn_contracts.v1_1simpleloan - pwn_contracts.v1_2simpleloan - pwn_contracts.v1_3simpleloan type: string title: Type onChainId: anyOf: - type: string - type: 'null' default: null title: Onchainid sourceOfFunds: anyOf: - type: string - type: 'null' default: null title: Sourceoffunds relatedThesisId: anyOf: - type: string - type: 'null' default: null title: Relatedthesisid createdFromProposalId: anyOf: - type: string - type: 'null' default: null title: Createdfromproposalid proposalSpecificData: $ref: '#/components/schemas/ProposalSpecificDataSchemaWorkaround' required: - id - duration - status - collateral - collateralAmount - creditData - creditAsset - chainId - loanContract - proposer - isOffer - type - proposalSpecificData title: ProposalAndLoanListSchemaWorkaround type: object ProposalDetailSchema: oneOf: - $ref: '#/components/schemas/BetaProposalDetailSchemaWorkaround' - $ref: '#/components/schemas/V1_1_SimpleLoanSimpleProposalDetailSchemaWorkaround' - $ref: '#/components/schemas/V1_1_SimpleLoanListProposalDetailSchemaWorkaround' - $ref: '#/components/schemas/SimpleLoanSimpleProposalDetailSchemaWorkaround' - $ref: '#/components/schemas/SimpleLoanListProposalDetailSchemaWorkaround' - $ref: '#/components/schemas/SimpleLoanFungibleProposalDetailSchemaWorkaround' - $ref: '#/components/schemas/SimpleLoanDutchAuctionProposalDetailSchemaWorkaround' - $ref: '#/components/schemas/V1_3_SimpleLoanSimpleProposalDetailSchemaWorkaround' - $ref: '#/components/schemas/V1_3_SimpleLoanListProposalDetailSchemaWorkaround' - $ref: '#/components/schemas/V1_3_SimpleLoanElasticProposalDetailSchemaWorkaround' - $ref: '#/components/schemas/V1_3_SimpleLoanChainlinkProposalDetailSchemaWorkaround' - $ref: '#/components/schemas/V1_3_SimpleLoanDutchAuctionProposalDetailSchemaWorkaround' discriminator: propertyName: type mapping: pwn_contracts.betaproposal: '#/components/schemas/BetaProposalDetailSchemaWorkaround' pwn_contracts.v1_1simpleloansimpleproposal: '#/components/schemas/V1_1_SimpleLoanSimpleProposalDetailSchemaWorkaround' pwn_contracts.v1_1simpleloanlistproposal: '#/components/schemas/V1_1_SimpleLoanListProposalDetailSchemaWorkaround' pwn_contracts.v1_2simpleloansimpleproposal: '#/components/schemas/SimpleLoanSimpleProposalDetailSchemaWorkaround' pwn_contracts.v1_2simpleloanlistproposal: '#/components/schemas/SimpleLoanListProposalDetailSchemaWorkaround' pwn_contracts.v1_2simpleloanfungibleproposal: '#/components/schemas/SimpleLoanFungibleProposalDetailSchemaWorkaround' pwn_contracts.v1_2simpleloandutchauctionproposal: '#/components/schemas/SimpleLoanDutchAuctionProposalDetailSchemaWorkaround' pwn_contracts.v1_3simpleloansimpleproposal: '#/components/schemas/V1_3_SimpleLoanSimpleProposalDetailSchemaWorkaround' pwn_contracts.v1_3simpleloanlistproposal: '#/components/schemas/V1_3_SimpleLoanListProposalDetailSchemaWorkaround' pwn_contracts.v1_3simpleloanelasticproposal: '#/components/schemas/V1_3_SimpleLoanElasticProposalDetailSchemaWorkaround' pwn_contracts.v1_3simpleloanelasticchainlinkproposal: '#/components/schemas/V1_3_SimpleLoanChainlinkProposalDetailSchemaWorkaround' pwn_contracts.v1_3simpleloandutchauctionproposal: '#/components/schemas/V1_3_SimpleLoanDutchAuctionProposalDetailSchemaWorkaround' ProposalHashesListSchema: properties: multiproposal_merkle_root: maxLength: 66 minLength: 66 pattern: 0x[0-9A-Fa-f]{64,64} title: Multiproposal Merkle Root type: string proposal_hashes: items: maxLength: 66 minLength: 66 pattern: 0x[0-9A-Fa-f]{64,64} type: string title: Proposal Hashes type: array required: - multiproposal_merkle_root - proposal_hashes title: ProposalHashesListSchema type: object ProposalSpecificData: properties: allowed_acceptor: anyOf: - type: string - type: 'null' default: null title: Allowed Acceptor check_collateral_state_fingerprint: anyOf: - type: boolean - type: 'null' default: null title: Check Collateral State Fingerprint collateral_state_fingerprint: anyOf: - type: string - type: 'null' default: null title: Collateral State Fingerprint hash: anyOf: - type: string - type: 'null' default: null title: Hash is_on_chain: anyOf: - type: boolean - type: 'null' default: null title: Is On Chain max_available_credit_amount: anyOf: - type: string - type: 'null' default: null title: Max Available Credit Amount multiproposal_merkle_root: anyOf: - type: string - type: 'null' default: null title: Multiproposal Merkle Root nonce: anyOf: - type: string - type: 'null' default: null title: Nonce nonce_space: anyOf: - type: string - type: 'null' default: null title: Nonce Space proposer_spec_hash: anyOf: - type: string - type: 'null' default: null title: Proposer Spec Hash refinancing_loan_id: anyOf: - type: integer - type: 'null' default: null title: Refinancing Loan Id signature: anyOf: - type: string - type: 'null' default: null title: Signature utilized_credit_id: anyOf: - type: string - type: 'null' default: null title: Utilized Credit Id feed_intermediary_denominations: anyOf: - items: type: string type: array - type: 'null' default: null title: Feed Intermediary Denominations feed_invert_flags: anyOf: - items: type: boolean type: array - type: 'null' default: null title: Feed Invert Flags loan_to_value: anyOf: - type: integer - type: 'null' default: null title: Loan To Value title: ProposalSpecificData type: object ProposalSpecificDataSchemaWorkaround: properties: allowedAcceptor: anyOf: - type: string - type: 'null' default: null title: Allowedacceptor checkCollateralStateFingerprint: anyOf: - type: boolean - type: 'null' default: null title: Checkcollateralstatefingerprint collateralStateFingerprint: anyOf: - type: string - type: 'null' default: null title: Collateralstatefingerprint hash: anyOf: - type: string - type: 'null' default: null title: Hash isOnChain: anyOf: - type: boolean - type: 'null' default: null title: Isonchain maxAvailableCreditAmount: anyOf: - type: string - type: 'null' default: null title: Maxavailablecreditamount multiproposalMerkleRoot: anyOf: - type: string - type: 'null' default: null title: Multiproposalmerkleroot nonce: anyOf: - type: string - type: 'null' default: null title: Nonce nonceSpace: anyOf: - type: string - type: 'null' default: null title: Noncespace proposerSpecHash: anyOf: - type: string - type: 'null' default: null title: Proposerspechash refinancingLoanId: anyOf: - type: integer - type: 'null' default: null title: Refinancingloanid signature: anyOf: - type: string - type: 'null' default: null title: Signature utilizedCreditId: anyOf: - type: string - type: 'null' default: null title: Utilizedcreditid feedIntermediaryDenominations: anyOf: - items: type: string type: array - type: 'null' default: null title: Feedintermediarydenominations feedInvertFlags: anyOf: - items: type: boolean type: array - type: 'null' default: null title: Feedinvertflags loanToValue: anyOf: - type: integer - type: 'null' default: null title: Loantovalue title: ProposalSpecificDataSchemaWorkaround type: object ProposalStatus: enum: - -6 - -5 - -4 - -3 - -2 - -1 - 1 title: ProposalStatus type: integer ProposalTokenApprovalTriggerSchemaRequest: properties: user_address: title: User Address type: string chain_id: anyOf: - type: integer - type: 'null' default: null title: Chain Id asset_contract_address: anyOf: - type: string - type: 'null' default: null title: Asset Contract Address source_of_funds: anyOf: - type: string - type: 'null' default: null title: Source Of Funds required: - user_address title: ProposalTokenApprovalTriggerSchema type: object RefereeListSchema: items: $ref: '#/components/schemas/RefereeSchema' title: RefereeListSchema type: array RefereeSchema: properties: walletAddress: title: Walletaddress type: string totalVolumeFromReferral: title: Totalvolumefromreferral type: string totalScoreFromReferral: title: Totalscorefromreferral type: string required: - walletAddress - totalVolumeFromReferral - totalScoreFromReferral title: RefereeSchema type: object RefereesSchema: properties: referees: $ref: '#/components/schemas/RefereeListSchema' totalScoreFromReferrals: title: Totalscorefromreferrals type: string referralsCount: title: Referralscount type: integer required: - totalScoreFromReferrals - referralsCount title: RefereesSchema type: object ReputationParameterResponse: properties: parameterName: title: Parametername type: string base: anyOf: - type: number - type: string title: Base multiplier: anyOf: - type: number - type: string title: Multiplier linear: anyOf: - type: number - type: string title: Linear required: - parameterName - base - multiplier - linear title: ReputationParameterResponse type: object RoleEnum: enum: - 0 - 1 type: integer description: |- * `0` - USER * `1` - CURATOR Safe: type: object properties: name: type: string maxLength: 40 contract_address: type: string maxLength: 66 owners: type: array items: type: string chain_id: allOf: - $ref: '#/components/schemas/ChainIdEnum' minimum: 0 maximum: 2147483647 required: - chain_id - contract_address - owners SafeOffchainData: type: object properties: name: type: - string - 'null' chain_id: type: integer maximum: 2147483647 minimum: -2147483648 transaction_hash: type: - string - 'null' format: byte wallet_address: type: string maxLength: 66 required: - chain_id - wallet_address SafeOffchainDataRequest: type: object properties: name: type: - string - 'null' minLength: 1 chain_id: type: integer maximum: 2147483647 minimum: -2147483648 transaction_hash: type: - string - 'null' format: byte wallet_address: type: string minLength: 1 maxLength: 66 required: - chain_id - wallet_address SimpleLoanDutchAuctionProposalDetailSchemaWorkaround: properties: id: title: Id type: string duration: anyOf: - type: integer - type: 'null' title: Duration loanDefaultDate: anyOf: - type: integer - type: 'null' default: null title: Loandefaultdate expiration: anyOf: - type: integer - type: 'null' default: null title: Expiration status: anyOf: - $ref: '#/components/schemas/ProposalStatus' - $ref: '#/components/schemas/LoanStatus' title: Status collateral: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' collateralAmount: title: Collateralamount type: string minCollateralAmount: anyOf: - type: string - type: 'null' default: null title: Mincollateralamount minCreditAmount: anyOf: - type: string - type: 'null' default: null title: Mincreditamount creditData: $ref: '#/components/schemas/CreditDataSchemaWorkaround' creditAsset: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' chainId: $ref: '#/components/schemas/ChainIdEnum' proposalContractAddress: anyOf: - type: string - type: 'null' default: null title: Proposalcontractaddress proposalId: anyOf: - type: string - type: 'null' default: null title: Proposalid loanContract: title: Loancontract type: string proposer: title: Proposer type: string isOffer: title: Isoffer type: boolean type: anyOf: - enum: - pwn_contracts.betaproposal - pwn_contracts.v1_1simpleloansimpleproposal - pwn_contracts.v1_1simpleloanlistproposal - pwn_contracts.v1_2simpleloansimpleproposal - pwn_contracts.v1_2simpleloanlistproposal - pwn_contracts.v1_2simpleloanfungibleproposal - pwn_contracts.v1_2simpleloandutchauctionproposal - pwn_contracts.v1_3simpleloansimpleproposal - pwn_contracts.v1_3simpleloanlistproposal - pwn_contracts.v1_3simpleloanelasticproposal - pwn_contracts.v1_3simpleloanelasticchainlinkproposal - pwn_contracts.v1_3simpleloandutchauctionproposal type: string - enum: - pwn_contracts.betaloan - pwn_contracts.v1_1simpleloan - pwn_contracts.v1_2simpleloan - pwn_contracts.v1_3simpleloan type: string title: Type sourceOfFunds: anyOf: - type: string - type: 'null' default: null title: Sourceoffunds relatedThesisId: anyOf: - type: string - type: 'null' default: null title: Relatedthesisid createdFromProposalId: anyOf: - type: string - type: 'null' default: null title: Createdfromproposalid proposalSpecificData: anyOf: - $ref: '#/components/schemas/ProposalSpecificData' - type: 'null' default: null checkCollateralStateFingerprint: title: Checkcollateralstatefingerprint type: boolean collateralStateFingerprint: anyOf: - type: string - type: 'null' title: Collateralstatefingerprint availableCreditLimit: title: Availablecreditlimit type: string allowedAcceptor: anyOf: - type: string - type: 'null' title: Allowedacceptor refinancingLoanId: anyOf: - type: string - type: 'null' title: Refinancingloanid nonceSpace: anyOf: - type: string - type: 'null' title: Noncespace nonce: anyOf: - type: string - type: 'null' title: Nonce proposerSpecHash: anyOf: - type: string - type: 'null' title: Proposerspechash signature: anyOf: - type: string - type: 'null' title: Signature multiproposalMerkleRoot: anyOf: - type: string - type: 'null' title: Multiproposalmerkleroot isOnChain: title: Isonchain type: boolean hash: anyOf: - type: string - type: 'null' title: Hash createdAt: title: Createdat type: integer revokedAt: anyOf: - type: integer - type: 'null' title: Revokedat referrer: anyOf: - type: string - type: 'null' title: Referrer auctionStart: title: Auctionstart type: integer required: - id - duration - status - collateral - collateralAmount - creditData - creditAsset - chainId - loanContract - proposer - isOffer - type - checkCollateralStateFingerprint - collateralStateFingerprint - availableCreditLimit - allowedAcceptor - refinancingLoanId - nonceSpace - nonce - proposerSpecHash - signature - multiproposalMerkleRoot - isOnChain - hash - createdAt - revokedAt - referrer - auctionStart title: SimpleLoanDutchAuctionProposalDetailSchemaWorkaround type: object SimpleLoanFungibleProposalDetailSchemaWorkaround: properties: id: title: Id type: string duration: anyOf: - type: integer - type: 'null' title: Duration loanDefaultDate: anyOf: - type: integer - type: 'null' default: null title: Loandefaultdate expiration: anyOf: - type: integer - type: 'null' default: null title: Expiration status: anyOf: - $ref: '#/components/schemas/ProposalStatus' - $ref: '#/components/schemas/LoanStatus' title: Status collateral: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' collateralAmount: title: Collateralamount type: string minCollateralAmount: title: Mincollateralamount type: string minCreditAmount: anyOf: - type: string - type: 'null' default: null title: Mincreditamount creditData: $ref: '#/components/schemas/CreditDataSchemaWorkaround' creditAsset: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' chainId: $ref: '#/components/schemas/ChainIdEnum' proposalContractAddress: anyOf: - type: string - type: 'null' default: null title: Proposalcontractaddress proposalId: anyOf: - type: string - type: 'null' default: null title: Proposalid loanContract: title: Loancontract type: string proposer: title: Proposer type: string isOffer: title: Isoffer type: boolean type: anyOf: - enum: - pwn_contracts.betaproposal - pwn_contracts.v1_1simpleloansimpleproposal - pwn_contracts.v1_1simpleloanlistproposal - pwn_contracts.v1_2simpleloansimpleproposal - pwn_contracts.v1_2simpleloanlistproposal - pwn_contracts.v1_2simpleloanfungibleproposal - pwn_contracts.v1_2simpleloandutchauctionproposal - pwn_contracts.v1_3simpleloansimpleproposal - pwn_contracts.v1_3simpleloanlistproposal - pwn_contracts.v1_3simpleloanelasticproposal - pwn_contracts.v1_3simpleloanelasticchainlinkproposal - pwn_contracts.v1_3simpleloandutchauctionproposal type: string - enum: - pwn_contracts.betaloan - pwn_contracts.v1_1simpleloan - pwn_contracts.v1_2simpleloan - pwn_contracts.v1_3simpleloan type: string title: Type sourceOfFunds: anyOf: - type: string - type: 'null' default: null title: Sourceoffunds relatedThesisId: anyOf: - type: string - type: 'null' default: null title: Relatedthesisid createdFromProposalId: anyOf: - type: string - type: 'null' default: null title: Createdfromproposalid proposalSpecificData: anyOf: - $ref: '#/components/schemas/ProposalSpecificData' - type: 'null' default: null checkCollateralStateFingerprint: title: Checkcollateralstatefingerprint type: boolean collateralStateFingerprint: anyOf: - type: string - type: 'null' title: Collateralstatefingerprint availableCreditLimit: title: Availablecreditlimit type: string allowedAcceptor: anyOf: - type: string - type: 'null' title: Allowedacceptor refinancingLoanId: anyOf: - type: string - type: 'null' title: Refinancingloanid nonceSpace: anyOf: - type: string - type: 'null' title: Noncespace nonce: anyOf: - type: string - type: 'null' title: Nonce proposerSpecHash: anyOf: - type: string - type: 'null' title: Proposerspechash signature: anyOf: - type: string - type: 'null' title: Signature multiproposalMerkleRoot: anyOf: - type: string - type: 'null' title: Multiproposalmerkleroot isOnChain: title: Isonchain type: boolean hash: anyOf: - type: string - type: 'null' title: Hash createdAt: title: Createdat type: integer revokedAt: anyOf: - type: integer - type: 'null' title: Revokedat referrer: anyOf: - type: string - type: 'null' title: Referrer required: - id - duration - status - collateral - collateralAmount - minCollateralAmount - creditData - creditAsset - chainId - loanContract - proposer - isOffer - type - checkCollateralStateFingerprint - collateralStateFingerprint - availableCreditLimit - allowedAcceptor - refinancingLoanId - nonceSpace - nonce - proposerSpecHash - signature - multiproposalMerkleRoot - isOnChain - hash - createdAt - revokedAt - referrer title: SimpleLoanFungibleProposalDetailSchemaWorkaround type: object SimpleLoanListProposalDetailSchemaWorkaround: properties: id: title: Id type: string duration: anyOf: - type: integer - type: 'null' title: Duration loanDefaultDate: anyOf: - type: integer - type: 'null' default: null title: Loandefaultdate expiration: anyOf: - type: integer - type: 'null' default: null title: Expiration status: anyOf: - $ref: '#/components/schemas/ProposalStatus' - $ref: '#/components/schemas/LoanStatus' title: Status collateral: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' collateralAmount: title: Collateralamount type: string minCollateralAmount: anyOf: - type: string - type: 'null' default: null title: Mincollateralamount minCreditAmount: anyOf: - type: string - type: 'null' default: null title: Mincreditamount creditData: $ref: '#/components/schemas/CreditDataSchemaWorkaround' creditAsset: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' chainId: $ref: '#/components/schemas/ChainIdEnum' proposalContractAddress: anyOf: - type: string - type: 'null' default: null title: Proposalcontractaddress proposalId: anyOf: - type: string - type: 'null' default: null title: Proposalid loanContract: title: Loancontract type: string proposer: title: Proposer type: string isOffer: title: Isoffer type: boolean type: anyOf: - enum: - pwn_contracts.betaproposal - pwn_contracts.v1_1simpleloansimpleproposal - pwn_contracts.v1_1simpleloanlistproposal - pwn_contracts.v1_2simpleloansimpleproposal - pwn_contracts.v1_2simpleloanlistproposal - pwn_contracts.v1_2simpleloanfungibleproposal - pwn_contracts.v1_2simpleloandutchauctionproposal - pwn_contracts.v1_3simpleloansimpleproposal - pwn_contracts.v1_3simpleloanlistproposal - pwn_contracts.v1_3simpleloanelasticproposal - pwn_contracts.v1_3simpleloanelasticchainlinkproposal - pwn_contracts.v1_3simpleloandutchauctionproposal type: string - enum: - pwn_contracts.betaloan - pwn_contracts.v1_1simpleloan - pwn_contracts.v1_2simpleloan - pwn_contracts.v1_3simpleloan type: string title: Type sourceOfFunds: anyOf: - type: string - type: 'null' default: null title: Sourceoffunds relatedThesisId: anyOf: - type: string - type: 'null' default: null title: Relatedthesisid createdFromProposalId: anyOf: - type: string - type: 'null' default: null title: Createdfromproposalid proposalSpecificData: anyOf: - $ref: '#/components/schemas/ProposalSpecificData' - type: 'null' default: null checkCollateralStateFingerprint: title: Checkcollateralstatefingerprint type: boolean collateralStateFingerprint: anyOf: - type: string - type: 'null' title: Collateralstatefingerprint availableCreditLimit: title: Availablecreditlimit type: string allowedAcceptor: anyOf: - type: string - type: 'null' title: Allowedacceptor refinancingLoanId: anyOf: - type: string - type: 'null' title: Refinancingloanid nonceSpace: anyOf: - type: string - type: 'null' title: Noncespace nonce: anyOf: - type: string - type: 'null' title: Nonce proposerSpecHash: anyOf: - type: string - type: 'null' title: Proposerspechash signature: anyOf: - type: string - type: 'null' title: Signature multiproposalMerkleRoot: anyOf: - type: string - type: 'null' title: Multiproposalmerkleroot isOnChain: title: Isonchain type: boolean hash: anyOf: - type: string - type: 'null' title: Hash createdAt: title: Createdat type: integer revokedAt: anyOf: - type: integer - type: 'null' title: Revokedat referrer: anyOf: - type: string - type: 'null' title: Referrer collateralIdsWhitelistMerkleRoot: anyOf: - type: string - type: 'null' title: Collateralidswhitelistmerkleroot required: - id - duration - status - collateral - collateralAmount - creditData - creditAsset - chainId - loanContract - proposer - isOffer - type - checkCollateralStateFingerprint - collateralStateFingerprint - availableCreditLimit - allowedAcceptor - refinancingLoanId - nonceSpace - nonce - proposerSpecHash - signature - multiproposalMerkleRoot - isOnChain - hash - createdAt - revokedAt - referrer - collateralIdsWhitelistMerkleRoot title: SimpleLoanListProposalDetailSchemaWorkaround type: object SimpleLoanSimpleProposalDetailSchemaWorkaround: properties: id: title: Id type: string duration: anyOf: - type: integer - type: 'null' title: Duration loanDefaultDate: anyOf: - type: integer - type: 'null' default: null title: Loandefaultdate expiration: anyOf: - type: integer - type: 'null' default: null title: Expiration status: anyOf: - $ref: '#/components/schemas/ProposalStatus' - $ref: '#/components/schemas/LoanStatus' title: Status collateral: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' collateralAmount: title: Collateralamount type: string minCollateralAmount: anyOf: - type: string - type: 'null' default: null title: Mincollateralamount minCreditAmount: anyOf: - type: string - type: 'null' default: null title: Mincreditamount creditData: $ref: '#/components/schemas/CreditDataSchemaWorkaround' creditAsset: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' chainId: $ref: '#/components/schemas/ChainIdEnum' proposalContractAddress: anyOf: - type: string - type: 'null' default: null title: Proposalcontractaddress proposalId: anyOf: - type: string - type: 'null' default: null title: Proposalid loanContract: title: Loancontract type: string proposer: title: Proposer type: string isOffer: title: Isoffer type: boolean type: anyOf: - enum: - pwn_contracts.betaproposal - pwn_contracts.v1_1simpleloansimpleproposal - pwn_contracts.v1_1simpleloanlistproposal - pwn_contracts.v1_2simpleloansimpleproposal - pwn_contracts.v1_2simpleloanlistproposal - pwn_contracts.v1_2simpleloanfungibleproposal - pwn_contracts.v1_2simpleloandutchauctionproposal - pwn_contracts.v1_3simpleloansimpleproposal - pwn_contracts.v1_3simpleloanlistproposal - pwn_contracts.v1_3simpleloanelasticproposal - pwn_contracts.v1_3simpleloanelasticchainlinkproposal - pwn_contracts.v1_3simpleloandutchauctionproposal type: string - enum: - pwn_contracts.betaloan - pwn_contracts.v1_1simpleloan - pwn_contracts.v1_2simpleloan - pwn_contracts.v1_3simpleloan type: string title: Type sourceOfFunds: anyOf: - type: string - type: 'null' default: null title: Sourceoffunds relatedThesisId: anyOf: - type: string - type: 'null' default: null title: Relatedthesisid createdFromProposalId: anyOf: - type: string - type: 'null' default: null title: Createdfromproposalid proposalSpecificData: anyOf: - $ref: '#/components/schemas/ProposalSpecificData' - type: 'null' default: null checkCollateralStateFingerprint: title: Checkcollateralstatefingerprint type: boolean collateralStateFingerprint: anyOf: - type: string - type: 'null' title: Collateralstatefingerprint availableCreditLimit: title: Availablecreditlimit type: string allowedAcceptor: anyOf: - type: string - type: 'null' title: Allowedacceptor refinancingLoanId: anyOf: - type: string - type: 'null' title: Refinancingloanid nonceSpace: anyOf: - type: string - type: 'null' title: Noncespace nonce: anyOf: - type: string - type: 'null' title: Nonce proposerSpecHash: anyOf: - type: string - type: 'null' title: Proposerspechash signature: anyOf: - type: string - type: 'null' title: Signature multiproposalMerkleRoot: anyOf: - type: string - type: 'null' title: Multiproposalmerkleroot isOnChain: title: Isonchain type: boolean hash: anyOf: - type: string - type: 'null' title: Hash createdAt: title: Createdat type: integer revokedAt: anyOf: - type: integer - type: 'null' title: Revokedat referrer: anyOf: - type: string - type: 'null' title: Referrer required: - id - duration - status - collateral - collateralAmount - creditData - creditAsset - chainId - loanContract - proposer - isOffer - type - checkCollateralStateFingerprint - collateralStateFingerprint - availableCreditLimit - allowedAcceptor - refinancingLoanId - nonceSpace - nonce - proposerSpecHash - signature - multiproposalMerkleRoot - isOnChain - hash - createdAt - revokedAt - referrer title: SimpleLoanSimpleProposalDetailSchemaWorkaround type: object SubdomainConfig: type: object properties: id: type: integer readOnly: true allowed_contracts: type: array items: $ref: '#/components/schemas/AssetContractWithNameAndImage' allowed_category: type: string readOnly: true subdomain_name: type: string maxLength: 32 banner_url: type: string format: uri lend_table_heading: type: string maxLength: 255 background_color: type: string description: 'Color in hex format (e.g. #ABC123).' maxLength: 7 text_color: type: string description: 'Color in hex format (e.g. #ABC123).' maxLength: 7 primary_color: type: string description: 'Color in hex format (e.g. #ABC123).' maxLength: 7 separator_color: type: string description: 'Color in hex format (e.g. #ABC123).' maxLength: 7 dark_separator_color: type: string description: 'Color in hex format (e.g. #ABC123).' maxLength: 7 input_color: type: string description: 'Color in hex format (e.g. #ABC123).' maxLength: 7 supported_chains: type: array items: allOf: - $ref: '#/components/schemas/ChainIdEnum' minimum: 0 maximum: 2147483647 avatar: type: - string - 'null' format: uri title: type: - string - 'null' show_in_spaces_page: type: boolean required: - allowed_category - allowed_contracts - background_color - banner_url - dark_separator_color - id - input_color - primary_color - separator_color - subdomain_name - supported_chains - text_color TalentPassport: description: Schema for OpenAPI documentation properties: activityScore: title: Activityscore type: integer calculatingScore: title: Calculatingscore type: boolean createdAt: format: date-time title: Createdat type: string humanCheckmark: title: Humancheckmark type: boolean identityScore: title: Identityscore type: integer lastCalculatedAt: anyOf: - format: date-time type: string - type: 'null' default: null title: Lastcalculatedat mainWallet: anyOf: - type: string - type: 'null' default: null title: Mainwallet mainWalletChangedAt: anyOf: - format: date-time type: string - type: 'null' default: null title: Mainwalletchangedat merged: title: Merged type: boolean nominationsReceivedCount: title: Nominationsreceivedcount type: integer passportId: anyOf: - type: integer - type: 'null' title: Passportid passportProfile: $ref: '#/components/schemas/PassportProfile' passportSocials: items: $ref: '#/components/schemas/PassportSocial' title: Passportsocials type: array pendingKyc: title: Pendingkyc type: boolean score: title: Score type: integer skillsScore: title: Skillsscore type: integer socialsCalculatedAt: format: date-time title: Socialscalculatedat type: string user: $ref: '#/components/schemas/PassportUser' verified: title: Verified type: boolean verifiedWallets: items: type: string title: Verifiedwallets type: array required: - activityScore - calculatingScore - createdAt - humanCheckmark - identityScore - merged - nominationsReceivedCount - passportId - passportProfile - passportSocials - pendingKyc - score - skillsScore - socialsCalculatedAt - user - verified - verifiedWallets title: TalentPassport type: object TaskInfo: properties: status: anyOf: - $ref: '#/components/schemas/TaskStatus' - type: 'null' default: null info: anyOf: - type: string - type: 'null' default: null title: Info title: TaskInfo type: object TaskStatus: enum: - PENDING - NEW - STARTED - DONE - ERROR - DONE_WITHIN_TTL - MAX_ERRORS_THRESHOLD_REACHED - REFRESH_TOO_SOON - REFRESH title: TaskStatus type: string TaskStatusSchema: properties: scheduled: anyOf: - items: $ref: '#/components/schemas/TaskInfo' type: array - type: 'null' default: null title: Scheduled skipped: anyOf: - items: $ref: '#/components/schemas/TaskInfo' type: array - type: 'null' default: null title: Skipped title: TaskStatusSchema type: object ThesisAmountsStatsWorkaround: properties: totalCommittedAmount: title: Totalcommittedamount type: string totalAskedAmount: title: Totalaskedamount type: string totalUtilizedAmount: title: Totalutilizedamount type: string totalAvailableAmount: title: Totalavailableamount type: string aprs: items: type: integer title: Aprs type: array totalUtilizedPercentage: anyOf: - type: number - type: string - type: 'null' default: null title: Totalutilizedpercentage totalBorrowedAmount: anyOf: - type: string - type: 'null' default: null title: Totalborrowedamount totalRepaidAmount: anyOf: - type: string - type: 'null' default: null title: Totalrepaidamount totalDefaultedAmount: anyOf: - type: string - type: 'null' default: null title: Totaldefaultedamount activeBorrowedAmount: anyOf: - type: string - type: 'null' default: null title: Activeborrowedamount isPoolHook: anyOf: - type: boolean - type: 'null' default: null title: Ispoolhook required: - totalCommittedAmount - totalAskedAmount - totalUtilizedAmount - totalAvailableAmount - aprs title: ThesisAmountsStatsWorkaround type: object ThesisCreateUpdateSchemaRequest: properties: title: title: Title type: string ltv: anyOf: - type: number - type: integer title: Ltv apr_min: anyOf: - type: number - type: integer title: Apr Min apr_max: anyOf: - type: number - type: integer title: Apr Max min_allowed_borrow_percentage: anyOf: - type: number - type: integer title: Min Allowed Borrow Percentage loan_duration_days: title: Loan Duration Days type: integer proposal_expiration_days: title: Proposal Expiration Days type: integer description: anyOf: - type: string - type: 'null' default: null title: Description is_active: anyOf: - type: boolean - type: 'null' default: true title: Is Active is_hidden: anyOf: - type: boolean - type: 'null' default: false title: Is Hidden is_utilized_credit: anyOf: - type: boolean - type: 'null' default: false title: Is Utilized Credit chain_id: anyOf: - $ref: '#/components/schemas/ChainIdEnum' - type: 'null' default: null collateral_chain_ids: items: type: integer title: Collateral Chain Ids type: array collateral_contract_addresses: items: type: string title: Collateral Contract Addresses type: array collateral_allocation_percentages: items: anyOf: - type: number - type: integer title: Collateral Allocation Percentages type: array collateral_ltvs: items: anyOf: - type: number - type: integer title: Collateral Ltvs type: array collateral_aprs: items: anyOf: - type: number - type: integer title: Collateral Aprs type: array credit_chain_ids: items: type: integer title: Credit Chain Ids type: array credit_contract_addresses: items: type: string title: Credit Contract Addresses type: array credit_aprs: items: anyOf: - type: number - type: integer title: Credit Aprs type: array curator_name: anyOf: - type: string - type: 'null' default: null title: Curator Name custom_apr_collateral_chain_ids: anyOf: - items: type: integer type: array - type: 'null' default: null title: Custom Apr Collateral Chain Ids custom_apr_collateral_addresses: anyOf: - items: type: string type: array - type: 'null' default: null title: Custom Apr Collateral Addresses custom_apr_credit_chain_ids: anyOf: - items: type: integer type: array - type: 'null' default: null title: Custom Apr Credit Chain Ids custom_apr_credit_addresses: anyOf: - items: type: string type: array - type: 'null' default: null title: Custom Apr Credit Addresses custom_apr_values: anyOf: - items: anyOf: - type: number - type: integer type: array - type: 'null' default: null title: Custom Apr Values thesis_type: anyOf: - $ref: '#/components/schemas/ThesisType' - type: 'null' default: 1 required: - title - ltv - apr_min - apr_max - min_allowed_borrow_percentage - loan_duration_days - proposal_expiration_days - collateral_chain_ids - collateral_contract_addresses - collateral_allocation_percentages - collateral_ltvs - collateral_aprs - credit_chain_ids - credit_contract_addresses - credit_aprs title: ThesisCreateUpdateSchema type: object ThesisCreditStatsListSchemaWorkaround: items: $ref: '#/components/schemas/ThesisCreditStatsSchemaWorkaround' title: ThesisCreditStatsListSchemaWorkaround type: array ThesisCreditStatsSchemaWorkaround: description: 'loans filled-in once user_address is provided, and stored as string format: {chainId}/{loanTokenContractAddress}/{onChainId}' example: 11155111/0x4440C069272cC34b80C7B11bEE657D0349Ba9C23/1208 properties: creditAssetMetadata: $ref: '#/components/schemas/AssetInListSchemaWorkaround' amountsStats: $ref: '#/components/schemas/ThesisAmountsStatsWorkaround' proposalNonces: anyOf: - items: type: string type: array - type: 'null' default: null title: Proposalnonces borrowingProposalNonces: anyOf: - items: type: string type: array - type: 'null' default: null title: Borrowingproposalnonces proposalsNonceSpace: anyOf: - type: string - type: 'null' default: null title: Proposalsnoncespace proposalIds: anyOf: - items: type: string type: array - type: 'null' default: null title: Proposalids borrowingProposalIds: anyOf: - items: type: string type: array - type: 'null' default: null title: Borrowingproposalids loans: anyOf: - items: type: string type: array - type: 'null' default: null title: Loans closestDefault: anyOf: - type: integer - type: 'null' default: null title: Closestdefault required: - creditAssetMetadata - amountsStats title: ThesisCreditStatsSchemaWorkaround type: object ThesisSchemaWorkaround: properties: id: title: Id type: string title: title: Title type: string slug: title: Slug type: string createdAt: title: Createdat type: integer modifiedAt: title: Modifiedat type: integer ltv: title: Ltv type: number aprMin: title: Aprmin type: number aprMax: title: Aprmax type: number minAllowedBorrowPercentage: title: Minallowedborrowpercentage type: number loanDurationDays: title: Loandurationdays type: integer proposalExpirationDays: title: Proposalexpirationdays type: integer description: anyOf: - type: string - type: 'null' title: Description curator: anyOf: - $ref: '#/components/schemas/CuratorGroupSchema' - type: 'null' default: null isUtilizedCredit: anyOf: - type: boolean - type: 'null' default: null title: Isutilizedcredit isActive: anyOf: - type: boolean - type: 'null' default: null title: Isactive isHidden: anyOf: - type: boolean - type: 'null' default: null title: Ishidden thesisType: $ref: '#/components/schemas/ThesisType' chainId: $ref: '#/components/schemas/ChainIdEnum' creditsStats: $ref: '#/components/schemas/ThesisCreditStatsListSchemaWorkaround' aprMappings: $ref: '#/components/schemas/AprMappingsSchema' collateralAssets: items: $ref: '#/components/schemas/CollateralAssetInThesisSchemaWorkaround' title: Collateralassets type: array required: - id - title - slug - createdAt - modifiedAt - ltv - aprMin - aprMax - minAllowedBorrowPercentage - loanDurationDays - proposalExpirationDays - description - thesisType - chainId - creditsStats title: ThesisSchemaWorkaround type: object ThesisType: enum: - 1 - 2 title: ThesisType type: integer TokenBundlerMetadata: type: object description: Metadata URI Public Endpoint Serializer properties: id: type: integer readOnly: true created_at: type: string format: date-time modified_at: type: string format: date-time readOnly: true chain_id: allOf: - $ref: '#/components/schemas/ChainIdEnum' minimum: 0 maximum: 2147483647 contract_address: type: string maxLength: 66 on_chain_id: type: - string - 'null' format: byte thumbnail_file: type: - string - 'null' format: uri created_by: type: - string - 'null' unwrapped: type: boolean assets: type: array items: type: integer readOnly: true required: - assets - chain_id - contract_address - id - modified_at - on_chain_id TokenizedAssetSchemaWorkaround: properties: chainId: $ref: '#/components/schemas/ChainIdEnum' contractAddress: title: Contractaddress type: string tokenId: anyOf: - type: string - type: 'null' title: Tokenid decimals: anyOf: - type: integer - type: 'null' title: Decimals required: - chainId - contractAddress - tokenId - decimals title: TokenizedAssetSchemaWorkaround type: object TopTokenModel: type: object properties: address: type: string chain_id: type: integer volume_24h: type: - number - 'null' format: double volume_24h_usd: type: - number - 'null' format: double symbol: type: - string - 'null' name: type: - string - 'null' thumbnail_url: type: - string - 'null' format: uri decimals: type: - integer - 'null' market_cap: type: - object - 'null' additionalProperties: {} asset_price: type: - object - 'null' additionalProperties: {} required: - address - asset_price - chain_id - decimals - market_cap - name - symbol - thumbnail_url - volume_24h - volume_24h_usd TraitSchema: type: object properties: trait_type: $ref: '#/components/schemas/TraitTypeSchema' value: type: string rarity_in_percentage: type: - string - 'null' format: decimal required: - trait_type - value TraitTypeSchema: type: object properties: trait_type: type: string display_type: oneOf: - $ref: '#/components/schemas/DisplayTypeEnum' - $ref: '#/components/schemas/NullEnum' max_value: type: - integer - 'null' required: - trait_type TypeD80Enum: enum: - pwn_contracts.betaproposal - pwn_contracts.v1_1simpleloansimpleproposal - pwn_contracts.v1_1simpleloanlistproposal - pwn_contracts.v1_2simpleloansimpleproposal - pwn_contracts.v1_2simpleloanlistproposal - pwn_contracts.v1_2simpleloanfungibleproposal - pwn_contracts.v1_2simpleloandutchauctionproposal - pwn_contracts.v1_3simpleloansimpleproposal - pwn_contracts.v1_3simpleloanlistproposal - pwn_contracts.v1_3simpleloanelasticproposal - pwn_contracts.v1_3simpleloanelasticchainlinkproposal - pwn_contracts.v1_3simpleloandutchauctionproposal type: string UnseenNotificationsCount: type: object properties: unseen_notifications_count: type: integer required: - unseen_notifications_count UpdateSafeNameRequest: type: object properties: name: type: string minLength: 1 maxLength: 40 UserAssetsCacheState: type: object properties: created_at: type: string format: date-time required: - created_at UserPositionSchemaResponse: anyOf: - additionalProperties: items: $ref: '#/components/schemas/UserPositionTokenBalance' type: array type: object - type: 'null' default: null title: UserPositionSchemaResponse UserPositionTokenBalance: properties: aToken_address: title: Atoken Address type: string balance: title: Balance type: integer required: - aToken_address - balance title: UserPositionTokenBalance type: object UserPotentialReputationPerLoanRepayResponse: properties: walletAddress: title: Walletaddress type: string potentialRepsPerLoanRepay: additionalProperties: type: integer title: Potentialrepsperloanrepay type: object timestamp: format: date-time title: Timestamp type: string required: - walletAddress - potentialRepsPerLoanRepay - timestamp title: UserPotentialReputationPerLoanRepayResponse type: object UserPotentialReputationPerProposalFundResponse: properties: walletAddress: title: Walletaddress type: string potentialRepsPerProposalFund: additionalProperties: type: integer title: Potentialrepsperproposalfund type: object timestamp: format: date-time title: Timestamp type: string required: - walletAddress - potentialRepsPerProposalFund - timestamp title: UserPotentialReputationPerProposalFundResponse type: object UserProfile: type: object properties: description: type: string discord_user_id: type: string maxLength: 19 UserProfileRequest: type: object properties: description: type: string discord_user_id: type: string maxLength: 19 UserProfileRequestRequest: oneOf: - $ref: '#/components/schemas/UserProfileRequest' - $ref: '#/components/schemas/UserProfileSerializerAuthenticatedRequest' UserProfileResponse: oneOf: - $ref: '#/components/schemas/UserProfile' - $ref: '#/components/schemas/UserProfileSerializerAuthenticated' UserProfileSerializerAuthenticated: type: object properties: description: type: string discord_user_id: type: string maxLength: 19 email: type: - string - 'null' format: email is_email_verified: type: boolean UserProfileSerializerAuthenticatedRequest: type: object properties: description: type: string discord_user_id: type: string maxLength: 19 email: type: - string - 'null' format: email is_email_verified: type: boolean UserReputationResponse: properties: walletAddress: title: Walletaddress type: string timestamp: format: date-time title: Timestamp type: string reputationScore: title: Reputationscore type: integer position: title: Position type: integer required: - walletAddress - timestamp - reputationScore - position title: UserReputationResponse type: object UserReputationWithParametersResponse: properties: walletAddress: title: Walletaddress type: string timestamp: format: date-time title: Timestamp type: string reputationScore: title: Reputationscore type: integer position: title: Position type: integer parameters: items: $ref: '#/components/schemas/ReputationParameterResponse' title: Parameters type: array potentialReputationScore: title: Potentialreputationscore type: integer totalBase: anyOf: - type: number - type: string title: Totalbase totalMultiplier: anyOf: - type: number - type: string title: Totalmultiplier totalLinear: anyOf: - type: number - type: string title: Totallinear level: title: Level type: integer progressToNextLevelPercentage: anyOf: - type: number - type: string title: Progresstonextlevelpercentage required: - walletAddress - timestamp - reputationScore - position - parameters - potentialReputationScore - totalBase - totalMultiplier - totalLinear - level - progressToNextLevelPercentage title: UserReputationWithParametersResponse type: object V1_1_SimpleLoanListProposalDetailSchemaWorkaround: properties: id: title: Id type: string duration: anyOf: - type: integer - type: 'null' title: Duration loanDefaultDate: anyOf: - type: integer - type: 'null' default: null title: Loandefaultdate expiration: anyOf: - type: integer - type: 'null' default: null title: Expiration status: anyOf: - $ref: '#/components/schemas/ProposalStatus' - $ref: '#/components/schemas/LoanStatus' title: Status collateral: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' collateralAmount: title: Collateralamount type: string minCollateralAmount: anyOf: - type: string - type: 'null' default: null title: Mincollateralamount minCreditAmount: anyOf: - type: string - type: 'null' default: null title: Mincreditamount creditData: $ref: '#/components/schemas/CreditDataSchemaWorkaround' creditAsset: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' chainId: $ref: '#/components/schemas/ChainIdEnum' proposalContractAddress: anyOf: - type: string - type: 'null' default: null title: Proposalcontractaddress proposalId: anyOf: - type: string - type: 'null' default: null title: Proposalid loanContract: title: Loancontract type: string proposer: title: Proposer type: string isOffer: title: Isoffer type: boolean type: anyOf: - enum: - pwn_contracts.betaproposal - pwn_contracts.v1_1simpleloansimpleproposal - pwn_contracts.v1_1simpleloanlistproposal - pwn_contracts.v1_2simpleloansimpleproposal - pwn_contracts.v1_2simpleloanlistproposal - pwn_contracts.v1_2simpleloanfungibleproposal - pwn_contracts.v1_2simpleloandutchauctionproposal - pwn_contracts.v1_3simpleloansimpleproposal - pwn_contracts.v1_3simpleloanlistproposal - pwn_contracts.v1_3simpleloanelasticproposal - pwn_contracts.v1_3simpleloanelasticchainlinkproposal - pwn_contracts.v1_3simpleloandutchauctionproposal type: string - enum: - pwn_contracts.betaloan - pwn_contracts.v1_1simpleloan - pwn_contracts.v1_2simpleloan - pwn_contracts.v1_3simpleloan type: string title: Type sourceOfFunds: anyOf: - type: string - type: 'null' default: null title: Sourceoffunds relatedThesisId: anyOf: - type: string - type: 'null' default: null title: Relatedthesisid createdFromProposalId: anyOf: - type: string - type: 'null' default: null title: Createdfromproposalid proposalSpecificData: anyOf: - $ref: '#/components/schemas/ProposalSpecificData' - type: 'null' default: null checkCollateralStateFingerprint: title: Checkcollateralstatefingerprint type: boolean collateralStateFingerprint: anyOf: - type: string - type: 'null' title: Collateralstatefingerprint availableCreditLimit: title: Availablecreditlimit type: string allowedAcceptor: anyOf: - type: string - type: 'null' title: Allowedacceptor refinancingLoanId: anyOf: - type: string - type: 'null' title: Refinancingloanid nonceSpace: anyOf: - type: string - type: 'null' title: Noncespace nonce: anyOf: - type: string - type: 'null' title: Nonce proposerSpecHash: anyOf: - type: string - type: 'null' title: Proposerspechash signature: anyOf: - type: string - type: 'null' title: Signature multiproposalMerkleRoot: anyOf: - type: string - type: 'null' title: Multiproposalmerkleroot isOnChain: title: Isonchain type: boolean hash: anyOf: - type: string - type: 'null' title: Hash createdAt: title: Createdat type: integer revokedAt: anyOf: - type: integer - type: 'null' title: Revokedat referrer: anyOf: - type: string - type: 'null' title: Referrer collateralIdsWhitelistMerkleRoot: anyOf: - type: string - type: 'null' title: Collateralidswhitelistmerkleroot required: - id - duration - status - collateral - collateralAmount - creditData - creditAsset - chainId - loanContract - proposer - isOffer - type - checkCollateralStateFingerprint - collateralStateFingerprint - availableCreditLimit - allowedAcceptor - refinancingLoanId - nonceSpace - nonce - proposerSpecHash - signature - multiproposalMerkleRoot - isOnChain - hash - createdAt - revokedAt - referrer - collateralIdsWhitelistMerkleRoot title: V1_1_SimpleLoanListProposalDetailSchemaWorkaround type: object V1_1_SimpleLoanSimpleProposalDetailSchemaWorkaround: properties: id: title: Id type: string duration: anyOf: - type: integer - type: 'null' title: Duration loanDefaultDate: anyOf: - type: integer - type: 'null' default: null title: Loandefaultdate expiration: anyOf: - type: integer - type: 'null' default: null title: Expiration status: anyOf: - $ref: '#/components/schemas/ProposalStatus' - $ref: '#/components/schemas/LoanStatus' title: Status collateral: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' collateralAmount: title: Collateralamount type: string minCollateralAmount: anyOf: - type: string - type: 'null' default: null title: Mincollateralamount minCreditAmount: anyOf: - type: string - type: 'null' default: null title: Mincreditamount creditData: $ref: '#/components/schemas/CreditDataSchemaWorkaround' creditAsset: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' chainId: $ref: '#/components/schemas/ChainIdEnum' proposalContractAddress: anyOf: - type: string - type: 'null' default: null title: Proposalcontractaddress proposalId: anyOf: - type: string - type: 'null' default: null title: Proposalid loanContract: title: Loancontract type: string proposer: title: Proposer type: string isOffer: title: Isoffer type: boolean type: anyOf: - enum: - pwn_contracts.betaproposal - pwn_contracts.v1_1simpleloansimpleproposal - pwn_contracts.v1_1simpleloanlistproposal - pwn_contracts.v1_2simpleloansimpleproposal - pwn_contracts.v1_2simpleloanlistproposal - pwn_contracts.v1_2simpleloanfungibleproposal - pwn_contracts.v1_2simpleloandutchauctionproposal - pwn_contracts.v1_3simpleloansimpleproposal - pwn_contracts.v1_3simpleloanlistproposal - pwn_contracts.v1_3simpleloanelasticproposal - pwn_contracts.v1_3simpleloanelasticchainlinkproposal - pwn_contracts.v1_3simpleloandutchauctionproposal type: string - enum: - pwn_contracts.betaloan - pwn_contracts.v1_1simpleloan - pwn_contracts.v1_2simpleloan - pwn_contracts.v1_3simpleloan type: string title: Type sourceOfFunds: anyOf: - type: string - type: 'null' default: null title: Sourceoffunds relatedThesisId: anyOf: - type: string - type: 'null' default: null title: Relatedthesisid createdFromProposalId: anyOf: - type: string - type: 'null' default: null title: Createdfromproposalid proposalSpecificData: anyOf: - $ref: '#/components/schemas/ProposalSpecificData' - type: 'null' default: null checkCollateralStateFingerprint: title: Checkcollateralstatefingerprint type: boolean collateralStateFingerprint: anyOf: - type: string - type: 'null' title: Collateralstatefingerprint availableCreditLimit: title: Availablecreditlimit type: string allowedAcceptor: anyOf: - type: string - type: 'null' title: Allowedacceptor refinancingLoanId: anyOf: - type: string - type: 'null' title: Refinancingloanid nonceSpace: anyOf: - type: string - type: 'null' title: Noncespace nonce: anyOf: - type: string - type: 'null' title: Nonce proposerSpecHash: anyOf: - type: string - type: 'null' title: Proposerspechash signature: anyOf: - type: string - type: 'null' title: Signature multiproposalMerkleRoot: anyOf: - type: string - type: 'null' title: Multiproposalmerkleroot isOnChain: title: Isonchain type: boolean hash: anyOf: - type: string - type: 'null' title: Hash createdAt: title: Createdat type: integer revokedAt: anyOf: - type: integer - type: 'null' title: Revokedat referrer: anyOf: - type: string - type: 'null' title: Referrer required: - id - duration - status - collateral - collateralAmount - creditData - creditAsset - chainId - loanContract - proposer - isOffer - type - checkCollateralStateFingerprint - collateralStateFingerprint - availableCreditLimit - allowedAcceptor - refinancingLoanId - nonceSpace - nonce - proposerSpecHash - signature - multiproposalMerkleRoot - isOnChain - hash - createdAt - revokedAt - referrer title: V1_1_SimpleLoanSimpleProposalDetailSchemaWorkaround type: object V1_3_CreateSimpleLoanChainlinkProposalRequestSchemaRequest: properties: check_collateral_state_fingerprint: title: Check Collateral State Fingerprint type: boolean collateral_state_fingerprint: title: Collateral State Fingerprint type: string credit_address: title: Credit Address type: string available_credit_limit: anyOf: - type: integer - type: string title: Available Credit Limit allowed_acceptor: title: Allowed Acceptor type: string proposer: title: Proposer type: string is_offer: title: Is Offer type: boolean refinancing_loan_id: anyOf: - type: integer - type: string title: Refinancing Loan Id nonce_space: anyOf: - type: integer - type: string title: Nonce Space nonce: anyOf: - type: integer - type: string title: Nonce loan_contract: title: Loan Contract type: string proposer_spec_hash: title: Proposer Spec Hash type: string collateral_category: $ref: '#/components/schemas/AssetCategory' collateral_address: title: Collateral Address type: string collateral_id: anyOf: - type: integer - type: string title: Collateral Id min_credit_amount: anyOf: - type: integer - type: string title: Min Credit Amount fixed_interest_amount: anyOf: - type: integer - type: string title: Fixed Interest Amount accruing_interest_apr: title: Accruing Interest Apr type: integer duration_or_date: title: Duration Or Date type: integer feed_intermediary_denominations: anyOf: - items: type: string type: array - type: 'null' title: Feed Intermediary Denominations feed_invert_flags: anyOf: - items: type: boolean type: array - type: 'null' title: Feed Invert Flags loan_to_value: title: Loan To Value type: integer expiration: title: Expiration type: integer utilized_credit_id: title: Utilized Credit Id type: string chain_id: $ref: '#/components/schemas/ChainIdEnum' proposal_contract_address: title: Proposal Contract Address type: string multiproposal_merkle_root: anyOf: - type: string - type: 'null' title: Multiproposal Merkle Root hash: anyOf: - type: string - type: 'null' title: Hash signature: title: Signature type: string type: allOf: - $ref: '#/components/schemas/TypeD80Enum' title: Type is_on_chain: title: Is On Chain type: boolean source_of_funds: anyOf: - type: string - type: 'null' default: null title: Source Of Funds related_thesis_id: anyOf: - type: integer - type: 'null' default: null title: Related Thesis Id referrer: anyOf: - type: string - type: 'null' default: null title: Referrer required: - check_collateral_state_fingerprint - collateral_state_fingerprint - credit_address - available_credit_limit - allowed_acceptor - proposer - is_offer - refinancing_loan_id - nonce_space - nonce - loan_contract - proposer_spec_hash - collateral_category - collateral_address - collateral_id - min_credit_amount - fixed_interest_amount - accruing_interest_apr - duration_or_date - feed_intermediary_denominations - feed_invert_flags - loan_to_value - expiration - utilized_credit_id - chain_id - proposal_contract_address - multiproposal_merkle_root - hash - signature - type - is_on_chain title: V1_3_CreateSimpleLoanChainlinkProposalRequestSchema type: object V1_3_CreateSimpleLoanDutchAuctionProposalRequestSchemaRequest: properties: check_collateral_state_fingerprint: title: Check Collateral State Fingerprint type: boolean collateral_state_fingerprint: title: Collateral State Fingerprint type: string credit_address: title: Credit Address type: string available_credit_limit: anyOf: - type: integer - type: string title: Available Credit Limit allowed_acceptor: title: Allowed Acceptor type: string proposer: title: Proposer type: string is_offer: title: Is Offer type: boolean refinancing_loan_id: anyOf: - type: integer - type: string title: Refinancing Loan Id nonce_space: anyOf: - type: integer - type: string title: Nonce Space nonce: anyOf: - type: integer - type: string title: Nonce loan_contract: title: Loan Contract type: string proposer_spec_hash: title: Proposer Spec Hash type: string collateral_category: $ref: '#/components/schemas/AssetCategory' collateral_address: title: Collateral Address type: string collateral_id: anyOf: - type: integer - type: string title: Collateral Id collateral_amount: anyOf: - type: integer - type: string title: Collateral Amount min_credit_amount: anyOf: - type: integer - type: string title: Min Credit Amount max_credit_amount: anyOf: - type: integer - type: string title: Max Credit Amount fixed_interest_amount: anyOf: - type: integer - type: string title: Fixed Interest Amount accruing_interest_apr: title: Accruing Interest Apr type: integer duration: title: Duration type: integer auction_start: title: Auction Start type: integer auction_duration: title: Auction Duration type: integer chain_id: $ref: '#/components/schemas/ChainIdEnum' proposal_contract_address: title: Proposal Contract Address type: string multiproposal_merkle_root: anyOf: - type: string - type: 'null' title: Multiproposal Merkle Root hash: anyOf: - type: string - type: 'null' title: Hash signature: title: Signature type: string type: allOf: - $ref: '#/components/schemas/TypeD80Enum' title: Type is_on_chain: title: Is On Chain type: boolean source_of_funds: anyOf: - type: string - type: 'null' default: null title: Source Of Funds related_thesis_id: anyOf: - type: integer - type: 'null' default: null title: Related Thesis Id referrer: anyOf: - type: string - type: 'null' default: null title: Referrer required: - check_collateral_state_fingerprint - collateral_state_fingerprint - credit_address - available_credit_limit - allowed_acceptor - proposer - is_offer - refinancing_loan_id - nonce_space - nonce - loan_contract - proposer_spec_hash - collateral_category - collateral_address - collateral_id - collateral_amount - min_credit_amount - max_credit_amount - fixed_interest_amount - accruing_interest_apr - duration - auction_start - auction_duration - chain_id - proposal_contract_address - multiproposal_merkle_root - hash - signature - type - is_on_chain title: V1_3_CreateSimpleLoanDutchAuctionProposalRequestSchema type: object V1_3_CreateSimpleLoanElasticProposalRequestSchemaRequest: properties: check_collateral_state_fingerprint: title: Check Collateral State Fingerprint type: boolean collateral_state_fingerprint: title: Collateral State Fingerprint type: string credit_address: title: Credit Address type: string available_credit_limit: anyOf: - type: integer - type: string title: Available Credit Limit allowed_acceptor: title: Allowed Acceptor type: string proposer: title: Proposer type: string is_offer: title: Is Offer type: boolean refinancing_loan_id: anyOf: - type: integer - type: string title: Refinancing Loan Id nonce_space: anyOf: - type: integer - type: string title: Nonce Space nonce: anyOf: - type: integer - type: string title: Nonce loan_contract: title: Loan Contract type: string proposer_spec_hash: title: Proposer Spec Hash type: string collateral_category: $ref: '#/components/schemas/AssetCategory' collateral_address: title: Collateral Address type: string collateral_id: anyOf: - type: integer - type: string title: Collateral Id min_credit_amount: anyOf: - type: integer - type: string title: Min Credit Amount credit_per_collateral_unit: anyOf: - type: integer - type: string title: Credit Per Collateral Unit fixed_interest_amount: anyOf: - type: integer - type: string title: Fixed Interest Amount accruing_interest_apr: title: Accruing Interest Apr type: integer duration_or_date: title: Duration Or Date type: integer expiration: title: Expiration type: integer utilized_credit_id: anyOf: - type: string - type: 'null' default: null title: Utilized Credit Id chain_id: $ref: '#/components/schemas/ChainIdEnum' proposal_contract_address: title: Proposal Contract Address type: string multiproposal_merkle_root: anyOf: - type: string - type: 'null' title: Multiproposal Merkle Root hash: anyOf: - type: string - type: 'null' title: Hash signature: title: Signature type: string type: allOf: - $ref: '#/components/schemas/TypeD80Enum' title: Type is_on_chain: title: Is On Chain type: boolean source_of_funds: anyOf: - type: string - type: 'null' default: null title: Source Of Funds related_thesis_id: anyOf: - type: integer - type: 'null' default: null title: Related Thesis Id referrer: anyOf: - type: string - type: 'null' default: null title: Referrer required: - check_collateral_state_fingerprint - collateral_state_fingerprint - credit_address - available_credit_limit - allowed_acceptor - proposer - is_offer - refinancing_loan_id - nonce_space - nonce - loan_contract - proposer_spec_hash - collateral_category - collateral_address - collateral_id - min_credit_amount - credit_per_collateral_unit - fixed_interest_amount - accruing_interest_apr - duration_or_date - expiration - chain_id - proposal_contract_address - multiproposal_merkle_root - hash - signature - type - is_on_chain title: V1_3_CreateSimpleLoanElasticProposalRequestSchema type: object V1_3_CreateSimpleLoanListProposalRequestSchemaRequest: properties: check_collateral_state_fingerprint: title: Check Collateral State Fingerprint type: boolean collateral_state_fingerprint: title: Collateral State Fingerprint type: string credit_address: title: Credit Address type: string available_credit_limit: anyOf: - type: integer - type: string title: Available Credit Limit allowed_acceptor: title: Allowed Acceptor type: string proposer: title: Proposer type: string is_offer: title: Is Offer type: boolean refinancing_loan_id: anyOf: - type: integer - type: string title: Refinancing Loan Id nonce_space: anyOf: - type: integer - type: string title: Nonce Space nonce: anyOf: - type: integer - type: string title: Nonce loan_contract: title: Loan Contract type: string proposer_spec_hash: title: Proposer Spec Hash type: string collateral_category: $ref: '#/components/schemas/AssetCategory' collateral_address: title: Collateral Address type: string collateral_ids_whitelist_merkle_root: title: Collateral Ids Whitelist Merkle Root type: string collateral_amount: anyOf: - type: integer - type: string title: Collateral Amount credit_amount: anyOf: - type: integer - type: string title: Credit Amount fixed_interest_amount: anyOf: - type: integer - type: string title: Fixed Interest Amount accruing_interest_apr: title: Accruing Interest Apr type: integer duration_or_date: title: Duration Or Date type: integer expiration: title: Expiration type: integer utilized_credit_id: anyOf: - type: string - type: 'null' default: null title: Utilized Credit Id chain_id: $ref: '#/components/schemas/ChainIdEnum' proposal_contract_address: title: Proposal Contract Address type: string multiproposal_merkle_root: anyOf: - type: string - type: 'null' title: Multiproposal Merkle Root hash: anyOf: - type: string - type: 'null' title: Hash signature: title: Signature type: string type: allOf: - $ref: '#/components/schemas/TypeD80Enum' title: Type is_on_chain: title: Is On Chain type: boolean source_of_funds: anyOf: - type: string - type: 'null' default: null title: Source Of Funds related_thesis_id: anyOf: - type: integer - type: 'null' default: null title: Related Thesis Id referrer: anyOf: - type: string - type: 'null' default: null title: Referrer required: - check_collateral_state_fingerprint - collateral_state_fingerprint - credit_address - available_credit_limit - allowed_acceptor - proposer - is_offer - refinancing_loan_id - nonce_space - nonce - loan_contract - proposer_spec_hash - collateral_category - collateral_address - collateral_ids_whitelist_merkle_root - collateral_amount - credit_amount - fixed_interest_amount - accruing_interest_apr - duration_or_date - expiration - chain_id - proposal_contract_address - multiproposal_merkle_root - hash - signature - type - is_on_chain title: V1_3_CreateSimpleLoanListProposalRequestSchema type: object V1_3_CreateSimpleLoanSimpleProposalRequestSchemaRequest: properties: check_collateral_state_fingerprint: title: Check Collateral State Fingerprint type: boolean collateral_state_fingerprint: title: Collateral State Fingerprint type: string credit_address: title: Credit Address type: string available_credit_limit: anyOf: - type: integer - type: string title: Available Credit Limit allowed_acceptor: title: Allowed Acceptor type: string proposer: title: Proposer type: string is_offer: title: Is Offer type: boolean refinancing_loan_id: anyOf: - type: integer - type: string title: Refinancing Loan Id nonce_space: anyOf: - type: integer - type: string title: Nonce Space nonce: anyOf: - type: integer - type: string title: Nonce loan_contract: title: Loan Contract type: string proposer_spec_hash: title: Proposer Spec Hash type: string collateral_category: $ref: '#/components/schemas/AssetCategory' collateral_address: title: Collateral Address type: string collateral_id: anyOf: - type: integer - type: string title: Collateral Id collateral_amount: anyOf: - type: integer - type: string title: Collateral Amount credit_amount: anyOf: - type: integer - type: string title: Credit Amount fixed_interest_amount: anyOf: - type: integer - type: string title: Fixed Interest Amount accruing_interest_apr: title: Accruing Interest Apr type: integer duration_or_date: title: Duration Or Date type: integer expiration: title: Expiration type: integer utilized_credit_id: anyOf: - type: string - type: 'null' default: null title: Utilized Credit Id chain_id: $ref: '#/components/schemas/ChainIdEnum' proposal_contract_address: title: Proposal Contract Address type: string multiproposal_merkle_root: anyOf: - type: string - type: 'null' title: Multiproposal Merkle Root hash: anyOf: - type: string - type: 'null' title: Hash signature: title: Signature type: string type: allOf: - $ref: '#/components/schemas/TypeD80Enum' title: Type is_on_chain: title: Is On Chain type: boolean source_of_funds: anyOf: - type: string - type: 'null' default: null title: Source Of Funds related_thesis_id: anyOf: - type: integer - type: 'null' default: null title: Related Thesis Id referrer: anyOf: - type: string - type: 'null' default: null title: Referrer required: - check_collateral_state_fingerprint - collateral_state_fingerprint - credit_address - available_credit_limit - allowed_acceptor - proposer - is_offer - refinancing_loan_id - nonce_space - nonce - loan_contract - proposer_spec_hash - collateral_category - collateral_address - collateral_id - collateral_amount - credit_amount - fixed_interest_amount - accruing_interest_apr - duration_or_date - expiration - chain_id - proposal_contract_address - multiproposal_merkle_root - hash - signature - type - is_on_chain title: V1_3_CreateSimpleLoanSimpleProposalRequestSchema type: object V1_3_SimpleLoanChainlinkProposalDetailSchemaWorkaround: properties: id: title: Id type: string duration: anyOf: - type: integer - type: 'null' title: Duration loanDefaultDate: anyOf: - type: integer - type: 'null' default: null title: Loandefaultdate expiration: anyOf: - type: integer - type: 'null' default: null title: Expiration status: anyOf: - $ref: '#/components/schemas/ProposalStatus' - $ref: '#/components/schemas/LoanStatus' title: Status collateral: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' collateralAmount: title: Collateralamount type: string minCollateralAmount: anyOf: - type: string - type: 'null' default: null title: Mincollateralamount minCreditAmount: anyOf: - type: string - type: 'null' default: null title: Mincreditamount creditData: $ref: '#/components/schemas/CreditDataSchemaWorkaround' creditAsset: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' chainId: $ref: '#/components/schemas/ChainIdEnum' proposalContractAddress: anyOf: - type: string - type: 'null' default: null title: Proposalcontractaddress proposalId: anyOf: - type: string - type: 'null' default: null title: Proposalid loanContract: title: Loancontract type: string proposer: title: Proposer type: string isOffer: title: Isoffer type: boolean type: anyOf: - enum: - pwn_contracts.betaproposal - pwn_contracts.v1_1simpleloansimpleproposal - pwn_contracts.v1_1simpleloanlistproposal - pwn_contracts.v1_2simpleloansimpleproposal - pwn_contracts.v1_2simpleloanlistproposal - pwn_contracts.v1_2simpleloanfungibleproposal - pwn_contracts.v1_2simpleloandutchauctionproposal - pwn_contracts.v1_3simpleloansimpleproposal - pwn_contracts.v1_3simpleloanlistproposal - pwn_contracts.v1_3simpleloanelasticproposal - pwn_contracts.v1_3simpleloanelasticchainlinkproposal - pwn_contracts.v1_3simpleloandutchauctionproposal type: string - enum: - pwn_contracts.betaloan - pwn_contracts.v1_1simpleloan - pwn_contracts.v1_2simpleloan - pwn_contracts.v1_3simpleloan type: string title: Type sourceOfFunds: anyOf: - type: string - type: 'null' default: null title: Sourceoffunds relatedThesisId: anyOf: - type: string - type: 'null' default: null title: Relatedthesisid createdFromProposalId: anyOf: - type: string - type: 'null' default: null title: Createdfromproposalid proposalSpecificData: anyOf: - $ref: '#/components/schemas/ProposalSpecificData' - type: 'null' default: null checkCollateralStateFingerprint: title: Checkcollateralstatefingerprint type: boolean collateralStateFingerprint: anyOf: - type: string - type: 'null' title: Collateralstatefingerprint availableCreditLimit: title: Availablecreditlimit type: string allowedAcceptor: anyOf: - type: string - type: 'null' title: Allowedacceptor refinancingLoanId: anyOf: - type: string - type: 'null' title: Refinancingloanid nonceSpace: anyOf: - type: string - type: 'null' title: Noncespace nonce: anyOf: - type: string - type: 'null' title: Nonce proposerSpecHash: anyOf: - type: string - type: 'null' title: Proposerspechash signature: anyOf: - type: string - type: 'null' title: Signature multiproposalMerkleRoot: anyOf: - type: string - type: 'null' title: Multiproposalmerkleroot isOnChain: title: Isonchain type: boolean hash: anyOf: - type: string - type: 'null' title: Hash createdAt: title: Createdat type: integer revokedAt: anyOf: - type: integer - type: 'null' title: Revokedat referrer: anyOf: - type: string - type: 'null' title: Referrer durationOrDate: title: Durationordate type: integer utilizedCreditId: anyOf: - type: string - type: 'null' title: Utilizedcreditid feedIntermediaryDenominations: anyOf: - items: type: string type: array - type: 'null' title: Feedintermediarydenominations feedInvertFlags: anyOf: - items: type: boolean type: array - type: 'null' title: Feedinvertflags loanToValue: title: Loantovalue type: integer required: - id - duration - status - collateral - collateralAmount - creditData - creditAsset - chainId - loanContract - proposer - isOffer - type - checkCollateralStateFingerprint - collateralStateFingerprint - availableCreditLimit - allowedAcceptor - refinancingLoanId - nonceSpace - nonce - proposerSpecHash - signature - multiproposalMerkleRoot - isOnChain - hash - createdAt - revokedAt - referrer - durationOrDate - utilizedCreditId - feedIntermediaryDenominations - feedInvertFlags - loanToValue title: V1_3_SimpleLoanChainlinkProposalDetailSchemaWorkaround type: object V1_3_SimpleLoanDutchAuctionProposalDetailSchemaWorkaround: properties: id: title: Id type: string duration: anyOf: - type: integer - type: 'null' title: Duration loanDefaultDate: anyOf: - type: integer - type: 'null' default: null title: Loandefaultdate expiration: anyOf: - type: integer - type: 'null' default: null title: Expiration status: anyOf: - $ref: '#/components/schemas/ProposalStatus' - $ref: '#/components/schemas/LoanStatus' title: Status collateral: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' collateralAmount: title: Collateralamount type: string minCollateralAmount: anyOf: - type: string - type: 'null' default: null title: Mincollateralamount minCreditAmount: anyOf: - type: string - type: 'null' default: null title: Mincreditamount creditData: $ref: '#/components/schemas/CreditDataSchemaWorkaround' creditAsset: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' chainId: $ref: '#/components/schemas/ChainIdEnum' proposalContractAddress: anyOf: - type: string - type: 'null' default: null title: Proposalcontractaddress proposalId: anyOf: - type: string - type: 'null' default: null title: Proposalid loanContract: title: Loancontract type: string proposer: title: Proposer type: string isOffer: title: Isoffer type: boolean type: anyOf: - enum: - pwn_contracts.betaproposal - pwn_contracts.v1_1simpleloansimpleproposal - pwn_contracts.v1_1simpleloanlistproposal - pwn_contracts.v1_2simpleloansimpleproposal - pwn_contracts.v1_2simpleloanlistproposal - pwn_contracts.v1_2simpleloanfungibleproposal - pwn_contracts.v1_2simpleloandutchauctionproposal - pwn_contracts.v1_3simpleloansimpleproposal - pwn_contracts.v1_3simpleloanlistproposal - pwn_contracts.v1_3simpleloanelasticproposal - pwn_contracts.v1_3simpleloanelasticchainlinkproposal - pwn_contracts.v1_3simpleloandutchauctionproposal type: string - enum: - pwn_contracts.betaloan - pwn_contracts.v1_1simpleloan - pwn_contracts.v1_2simpleloan - pwn_contracts.v1_3simpleloan type: string title: Type sourceOfFunds: anyOf: - type: string - type: 'null' default: null title: Sourceoffunds relatedThesisId: anyOf: - type: string - type: 'null' default: null title: Relatedthesisid createdFromProposalId: anyOf: - type: string - type: 'null' default: null title: Createdfromproposalid proposalSpecificData: anyOf: - $ref: '#/components/schemas/ProposalSpecificData' - type: 'null' default: null checkCollateralStateFingerprint: title: Checkcollateralstatefingerprint type: boolean collateralStateFingerprint: anyOf: - type: string - type: 'null' title: Collateralstatefingerprint availableCreditLimit: title: Availablecreditlimit type: string allowedAcceptor: anyOf: - type: string - type: 'null' title: Allowedacceptor refinancingLoanId: anyOf: - type: string - type: 'null' title: Refinancingloanid nonceSpace: anyOf: - type: string - type: 'null' title: Noncespace nonce: anyOf: - type: string - type: 'null' title: Nonce proposerSpecHash: anyOf: - type: string - type: 'null' title: Proposerspechash signature: anyOf: - type: string - type: 'null' title: Signature multiproposalMerkleRoot: anyOf: - type: string - type: 'null' title: Multiproposalmerkleroot isOnChain: title: Isonchain type: boolean hash: anyOf: - type: string - type: 'null' title: Hash createdAt: title: Createdat type: integer revokedAt: anyOf: - type: integer - type: 'null' title: Revokedat referrer: anyOf: - type: string - type: 'null' title: Referrer auctionStart: title: Auctionstart type: integer durationOrDate: title: Durationordate type: integer required: - id - duration - status - collateral - collateralAmount - creditData - creditAsset - chainId - loanContract - proposer - isOffer - type - checkCollateralStateFingerprint - collateralStateFingerprint - availableCreditLimit - allowedAcceptor - refinancingLoanId - nonceSpace - nonce - proposerSpecHash - signature - multiproposalMerkleRoot - isOnChain - hash - createdAt - revokedAt - referrer - auctionStart - durationOrDate title: V1_3_SimpleLoanDutchAuctionProposalDetailSchemaWorkaround type: object V1_3_SimpleLoanElasticProposalDetailSchemaWorkaround: properties: id: title: Id type: string duration: anyOf: - type: integer - type: 'null' title: Duration loanDefaultDate: anyOf: - type: integer - type: 'null' default: null title: Loandefaultdate expiration: anyOf: - type: integer - type: 'null' default: null title: Expiration status: anyOf: - $ref: '#/components/schemas/ProposalStatus' - $ref: '#/components/schemas/LoanStatus' title: Status collateral: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' collateralAmount: title: Collateralamount type: string minCollateralAmount: anyOf: - type: string - type: 'null' default: null title: Mincollateralamount minCreditAmount: title: Mincreditamount type: string creditData: $ref: '#/components/schemas/CreditDataSchemaWorkaround' creditAsset: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' chainId: $ref: '#/components/schemas/ChainIdEnum' proposalContractAddress: anyOf: - type: string - type: 'null' default: null title: Proposalcontractaddress proposalId: anyOf: - type: string - type: 'null' default: null title: Proposalid loanContract: title: Loancontract type: string proposer: title: Proposer type: string isOffer: title: Isoffer type: boolean type: anyOf: - enum: - pwn_contracts.betaproposal - pwn_contracts.v1_1simpleloansimpleproposal - pwn_contracts.v1_1simpleloanlistproposal - pwn_contracts.v1_2simpleloansimpleproposal - pwn_contracts.v1_2simpleloanlistproposal - pwn_contracts.v1_2simpleloanfungibleproposal - pwn_contracts.v1_2simpleloandutchauctionproposal - pwn_contracts.v1_3simpleloansimpleproposal - pwn_contracts.v1_3simpleloanlistproposal - pwn_contracts.v1_3simpleloanelasticproposal - pwn_contracts.v1_3simpleloanelasticchainlinkproposal - pwn_contracts.v1_3simpleloandutchauctionproposal type: string - enum: - pwn_contracts.betaloan - pwn_contracts.v1_1simpleloan - pwn_contracts.v1_2simpleloan - pwn_contracts.v1_3simpleloan type: string title: Type sourceOfFunds: anyOf: - type: string - type: 'null' default: null title: Sourceoffunds relatedThesisId: anyOf: - type: string - type: 'null' default: null title: Relatedthesisid createdFromProposalId: anyOf: - type: string - type: 'null' default: null title: Createdfromproposalid proposalSpecificData: anyOf: - $ref: '#/components/schemas/ProposalSpecificData' - type: 'null' default: null checkCollateralStateFingerprint: title: Checkcollateralstatefingerprint type: boolean collateralStateFingerprint: anyOf: - type: string - type: 'null' title: Collateralstatefingerprint availableCreditLimit: title: Availablecreditlimit type: string allowedAcceptor: anyOf: - type: string - type: 'null' title: Allowedacceptor refinancingLoanId: anyOf: - type: string - type: 'null' title: Refinancingloanid nonceSpace: anyOf: - type: string - type: 'null' title: Noncespace nonce: anyOf: - type: string - type: 'null' title: Nonce proposerSpecHash: anyOf: - type: string - type: 'null' title: Proposerspechash signature: anyOf: - type: string - type: 'null' title: Signature multiproposalMerkleRoot: anyOf: - type: string - type: 'null' title: Multiproposalmerkleroot isOnChain: title: Isonchain type: boolean hash: anyOf: - type: string - type: 'null' title: Hash createdAt: title: Createdat type: integer revokedAt: anyOf: - type: integer - type: 'null' title: Revokedat referrer: anyOf: - type: string - type: 'null' title: Referrer durationOrDate: title: Durationordate type: integer maxAvailableCreditAmount: title: Maxavailablecreditamount type: string utilizedCreditId: anyOf: - type: string - type: 'null' title: Utilizedcreditid required: - id - duration - status - collateral - collateralAmount - minCreditAmount - creditData - creditAsset - chainId - loanContract - proposer - isOffer - type - checkCollateralStateFingerprint - collateralStateFingerprint - availableCreditLimit - allowedAcceptor - refinancingLoanId - nonceSpace - nonce - proposerSpecHash - signature - multiproposalMerkleRoot - isOnChain - hash - createdAt - revokedAt - referrer - durationOrDate - maxAvailableCreditAmount - utilizedCreditId title: V1_3_SimpleLoanElasticProposalDetailSchemaWorkaround type: object V1_3_SimpleLoanListProposalDetailSchemaWorkaround: properties: id: title: Id type: string duration: anyOf: - type: integer - type: 'null' title: Duration loanDefaultDate: anyOf: - type: integer - type: 'null' default: null title: Loandefaultdate expiration: anyOf: - type: integer - type: 'null' default: null title: Expiration status: anyOf: - $ref: '#/components/schemas/ProposalStatus' - $ref: '#/components/schemas/LoanStatus' title: Status collateral: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' collateralAmount: title: Collateralamount type: string minCollateralAmount: anyOf: - type: string - type: 'null' default: null title: Mincollateralamount minCreditAmount: anyOf: - type: string - type: 'null' default: null title: Mincreditamount creditData: $ref: '#/components/schemas/CreditDataSchemaWorkaround' creditAsset: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' chainId: $ref: '#/components/schemas/ChainIdEnum' proposalContractAddress: anyOf: - type: string - type: 'null' default: null title: Proposalcontractaddress proposalId: anyOf: - type: string - type: 'null' default: null title: Proposalid loanContract: title: Loancontract type: string proposer: title: Proposer type: string isOffer: title: Isoffer type: boolean type: anyOf: - enum: - pwn_contracts.betaproposal - pwn_contracts.v1_1simpleloansimpleproposal - pwn_contracts.v1_1simpleloanlistproposal - pwn_contracts.v1_2simpleloansimpleproposal - pwn_contracts.v1_2simpleloanlistproposal - pwn_contracts.v1_2simpleloanfungibleproposal - pwn_contracts.v1_2simpleloandutchauctionproposal - pwn_contracts.v1_3simpleloansimpleproposal - pwn_contracts.v1_3simpleloanlistproposal - pwn_contracts.v1_3simpleloanelasticproposal - pwn_contracts.v1_3simpleloanelasticchainlinkproposal - pwn_contracts.v1_3simpleloandutchauctionproposal type: string - enum: - pwn_contracts.betaloan - pwn_contracts.v1_1simpleloan - pwn_contracts.v1_2simpleloan - pwn_contracts.v1_3simpleloan type: string title: Type sourceOfFunds: anyOf: - type: string - type: 'null' default: null title: Sourceoffunds relatedThesisId: anyOf: - type: string - type: 'null' default: null title: Relatedthesisid createdFromProposalId: anyOf: - type: string - type: 'null' default: null title: Createdfromproposalid proposalSpecificData: anyOf: - $ref: '#/components/schemas/ProposalSpecificData' - type: 'null' default: null checkCollateralStateFingerprint: title: Checkcollateralstatefingerprint type: boolean collateralStateFingerprint: anyOf: - type: string - type: 'null' title: Collateralstatefingerprint availableCreditLimit: title: Availablecreditlimit type: string allowedAcceptor: anyOf: - type: string - type: 'null' title: Allowedacceptor refinancingLoanId: anyOf: - type: string - type: 'null' title: Refinancingloanid nonceSpace: anyOf: - type: string - type: 'null' title: Noncespace nonce: anyOf: - type: string - type: 'null' title: Nonce proposerSpecHash: anyOf: - type: string - type: 'null' title: Proposerspechash signature: anyOf: - type: string - type: 'null' title: Signature multiproposalMerkleRoot: anyOf: - type: string - type: 'null' title: Multiproposalmerkleroot isOnChain: title: Isonchain type: boolean hash: anyOf: - type: string - type: 'null' title: Hash createdAt: title: Createdat type: integer revokedAt: anyOf: - type: integer - type: 'null' title: Revokedat referrer: anyOf: - type: string - type: 'null' title: Referrer collateralIdsWhitelistMerkleRoot: anyOf: - type: string - type: 'null' title: Collateralidswhitelistmerkleroot durationOrDate: title: Durationordate type: integer utilizedCreditId: anyOf: - type: string - type: 'null' title: Utilizedcreditid required: - id - duration - status - collateral - collateralAmount - creditData - creditAsset - chainId - loanContract - proposer - isOffer - type - checkCollateralStateFingerprint - collateralStateFingerprint - availableCreditLimit - allowedAcceptor - refinancingLoanId - nonceSpace - nonce - proposerSpecHash - signature - multiproposalMerkleRoot - isOnChain - hash - createdAt - revokedAt - referrer - collateralIdsWhitelistMerkleRoot - durationOrDate - utilizedCreditId title: V1_3_SimpleLoanListProposalDetailSchemaWorkaround type: object V1_3_SimpleLoanSimpleProposalDetailSchemaWorkaround: properties: id: title: Id type: string duration: anyOf: - type: integer - type: 'null' title: Duration loanDefaultDate: anyOf: - type: integer - type: 'null' default: null title: Loandefaultdate expiration: anyOf: - type: integer - type: 'null' default: null title: Expiration status: anyOf: - $ref: '#/components/schemas/ProposalStatus' - $ref: '#/components/schemas/LoanStatus' title: Status collateral: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' collateralAmount: title: Collateralamount type: string minCollateralAmount: anyOf: - type: string - type: 'null' default: null title: Mincollateralamount minCreditAmount: anyOf: - type: string - type: 'null' default: null title: Mincreditamount creditData: $ref: '#/components/schemas/CreditDataSchemaWorkaround' creditAsset: $ref: '#/components/schemas/AssetDetailSchemaWorkaround' chainId: $ref: '#/components/schemas/ChainIdEnum' proposalContractAddress: anyOf: - type: string - type: 'null' default: null title: Proposalcontractaddress proposalId: anyOf: - type: string - type: 'null' default: null title: Proposalid loanContract: title: Loancontract type: string proposer: title: Proposer type: string isOffer: title: Isoffer type: boolean type: anyOf: - enum: - pwn_contracts.betaproposal - pwn_contracts.v1_1simpleloansimpleproposal - pwn_contracts.v1_1simpleloanlistproposal - pwn_contracts.v1_2simpleloansimpleproposal - pwn_contracts.v1_2simpleloanlistproposal - pwn_contracts.v1_2simpleloanfungibleproposal - pwn_contracts.v1_2simpleloandutchauctionproposal - pwn_contracts.v1_3simpleloansimpleproposal - pwn_contracts.v1_3simpleloanlistproposal - pwn_contracts.v1_3simpleloanelasticproposal - pwn_contracts.v1_3simpleloanelasticchainlinkproposal - pwn_contracts.v1_3simpleloandutchauctionproposal type: string - enum: - pwn_contracts.betaloan - pwn_contracts.v1_1simpleloan - pwn_contracts.v1_2simpleloan - pwn_contracts.v1_3simpleloan type: string title: Type sourceOfFunds: anyOf: - type: string - type: 'null' default: null title: Sourceoffunds relatedThesisId: anyOf: - type: string - type: 'null' default: null title: Relatedthesisid createdFromProposalId: anyOf: - type: string - type: 'null' default: null title: Createdfromproposalid proposalSpecificData: anyOf: - $ref: '#/components/schemas/ProposalSpecificData' - type: 'null' default: null checkCollateralStateFingerprint: title: Checkcollateralstatefingerprint type: boolean collateralStateFingerprint: anyOf: - type: string - type: 'null' title: Collateralstatefingerprint availableCreditLimit: title: Availablecreditlimit type: string allowedAcceptor: anyOf: - type: string - type: 'null' title: Allowedacceptor refinancingLoanId: anyOf: - type: string - type: 'null' title: Refinancingloanid nonceSpace: anyOf: - type: string - type: 'null' title: Noncespace nonce: anyOf: - type: string - type: 'null' title: Nonce proposerSpecHash: anyOf: - type: string - type: 'null' title: Proposerspechash signature: anyOf: - type: string - type: 'null' title: Signature multiproposalMerkleRoot: anyOf: - type: string - type: 'null' title: Multiproposalmerkleroot isOnChain: title: Isonchain type: boolean hash: anyOf: - type: string - type: 'null' title: Hash createdAt: title: Createdat type: integer revokedAt: anyOf: - type: integer - type: 'null' title: Revokedat referrer: anyOf: - type: string - type: 'null' title: Referrer durationOrDate: title: Durationordate type: integer utilizedCreditId: anyOf: - type: string - type: 'null' title: Utilizedcreditid required: - id - duration - status - collateral - collateralAmount - creditData - creditAsset - chainId - loanContract - proposer - isOffer - type - checkCollateralStateFingerprint - collateralStateFingerprint - availableCreditLimit - allowedAcceptor - refinancingLoanId - nonceSpace - nonce - proposerSpecHash - signature - multiproposalMerkleRoot - isOnChain - hash - createdAt - revokedAt - referrer - durationOrDate - utilizedCreditId title: V1_3_SimpleLoanSimpleProposalDetailSchemaWorkaround type: object VerifyGithubCodeResponse: properties: hasStarredRepo: title: Hasstarredrepo type: boolean required: - hasStarredRepo title: VerifyGithubCodeResponse type: object WaitList: type: object properties: wallet_address: type: - string - 'null' readOnly: true score: type: number format: double readOnly: true ranking: type: - integer - 'null' description: |- Rank equals to count of all accounts waiting before me that do not have access poap yet. If I already have the access poap, my rank is null. readOnly: true has_access_poap: type: boolean readOnly: true required: - has_access_poap - ranking - score - wallet_address Wallet: type: object properties: wallet_address: type: string ens_name: type: - string - 'null' required: - wallet_address WalletAssetSchemaWorkaround: properties: createdAt: format: date-time title: Createdat type: string userAddress: title: Useraddress type: string asset: anyOf: - $ref: '#/components/schemas/NewERC20AssetSchemaWorkaround' - $ref: '#/components/schemas/NewNFTAssetSchemaWorkaround' title: Asset amount: title: Amount type: string latestPrice: anyOf: - $ref: '#/components/schemas/AssetPriceSchema' - type: 'null' default: null valueInUsd: anyOf: - type: string - type: 'null' default: null title: Valueinusd valueInEth: anyOf: - type: string - type: 'null' default: null title: Valueineth required: - createdAt - userAddress - asset - amount title: WalletAssetSchemaWorkaround type: object WalletAssetsResponseWorkaround: properties: isTaskScheduled: title: Istaskscheduled type: boolean tasksInfo: anyOf: - type: object - type: 'null' title: Tasksinfo totalVerifiedValueUsd: anyOf: - type: string - type: 'null' title: Totalverifiedvalueusd walletAssets: items: $ref: '#/components/schemas/WalletAssetSchemaWorkaround' title: Walletassets type: array required: - isTaskScheduled - tasksInfo - totalVerifiedValueUsd - walletAssets title: WalletAssetsResponseWorkaround type: object WalletRequest: type: object properties: wallet_address: type: string minLength: 1 ens_name: type: - string - 'null' required: - wallet_address WalletRole: type: object properties: wallet_address: type: string maxLength: 66 ens_name: type: - string - 'null' role: allOf: - $ref: '#/components/schemas/RoleEnum' minimum: -32768 maximum: 32767 role_display: type: string readOnly: true curator_groups: type: array items: $ref: '#/components/schemas/CuratorGroup' readOnly: true required: - curator_groups - role_display - wallet_address WalletStats: properties: total_lent: title: Total Lent type: integer total_lent_value_usd: title: Total Lent Value Usd type: string total_lent_value_eth: title: Total Lent Value Eth type: string total_borrowed: title: Total Borrowed type: integer total_borrowed_value_usd: title: Total Borrowed Value Usd type: string total_borrowed_value_eth: title: Total Borrowed Value Eth type: string total_earned: title: Total Earned type: integer total_earned_value_usd: title: Total Earned Value Usd type: string total_earned_value_eth: title: Total Earned Value Eth type: string active_lent_loans: title: Active Lent Loans type: integer active_lent_loans_value_usd: title: Active Lent Loans Value Usd type: string active_lent_loans_value_eth: title: Active Lent Loans Value Eth type: string active_borrowed_loans: title: Active Borrowed Loans type: integer active_borrowed_loans_value_usd: title: Active Borrowed Loans Value Usd type: string active_borrowed_loans_value_eth: title: Active Borrowed Loans Value Eth type: string defaulted_lent_loans: title: Defaulted Lent Loans type: integer defaulted_lent_loans_value_usd: title: Defaulted Lent Loans Value Usd type: string defaulted_lent_loans_value_eth: title: Defaulted Lent Loans Value Eth type: string defaulted_borrowed_loans: title: Defaulted Borrowed Loans type: integer defaulted_borrowed_loans_value_usd: title: Defaulted Borrowed Loans Value Usd type: string defaulted_borrowed_loans_value_eth: title: Defaulted Borrowed Loans Value Eth type: string paid_back_lent_loans: title: Paid Back Lent Loans type: integer paid_back_lent_loans_value_usd: title: Paid Back Lent Loans Value Usd type: string paid_back_lent_loans_value_eth: title: Paid Back Lent Loans Value Eth type: string paid_back_borrowed_loans: title: Paid Back Borrowed Loans type: integer paid_back_borrowed_loans_value_usd: title: Paid Back Borrowed Loans Value Usd type: string paid_back_borrowed_loans_value_eth: title: Paid Back Borrowed Loans Value Eth type: string total_requests: title: Total Requests type: integer total_requests_value_usd: title: Total Requests Value Usd type: string total_requests_value_eth: title: Total Requests Value Eth type: string next_lent_loan_default: anyOf: - type: string - type: 'null' default: null title: Next Lent Loan Default next_borrowed_loan_default: anyOf: - type: string - type: 'null' default: null title: Next Borrowed Loan Default loans: anyOf: - $ref: '#/components/schemas/WalletStatsDetail' - type: 'null' default: null offers: anyOf: - $ref: '#/components/schemas/WalletStatsDetail' - type: 'null' default: null required: - total_lent - total_lent_value_usd - total_lent_value_eth - total_borrowed - total_borrowed_value_usd - total_borrowed_value_eth - total_earned - total_earned_value_usd - total_earned_value_eth - active_lent_loans - active_lent_loans_value_usd - active_lent_loans_value_eth - active_borrowed_loans - active_borrowed_loans_value_usd - active_borrowed_loans_value_eth - defaulted_lent_loans - defaulted_lent_loans_value_usd - defaulted_lent_loans_value_eth - defaulted_borrowed_loans - defaulted_borrowed_loans_value_usd - defaulted_borrowed_loans_value_eth - paid_back_lent_loans - paid_back_lent_loans_value_usd - paid_back_lent_loans_value_eth - paid_back_borrowed_loans - paid_back_borrowed_loans_value_usd - paid_back_borrowed_loans_value_eth - total_requests - total_requests_value_usd - total_requests_value_eth title: WalletStats type: object WalletStatsBreakdown: properties: total: anyOf: - $ref: '#/components/schemas/WalletStatsSeparatedBreakdown' - type: 'null' default: null active: anyOf: - $ref: '#/components/schemas/WalletStatsSeparatedBreakdown' - type: 'null' default: null defaulted: anyOf: - $ref: '#/components/schemas/WalletStatsSeparatedBreakdown' - type: 'null' default: null paid: anyOf: - $ref: '#/components/schemas/WalletStatsSeparatedBreakdown' - type: 'null' default: null expired: anyOf: - $ref: '#/components/schemas/WalletStatsSeparatedBreakdown' - type: 'null' default: null nextDefaultOrExpiration: anyOf: - type: integer - type: 'null' default: null title: Nextdefaultorexpiration closestDefaultChainId: anyOf: - type: integer - type: 'null' default: null title: Closestdefaultchainid closestDefaultOnChainId: anyOf: - type: integer - type: 'null' default: null title: Closestdefaultonchainid closestDefaultLoanTokenContractAddress: anyOf: - type: string - type: 'null' default: null title: Closestdefaultloantokencontractaddress title: WalletStatsBreakdown type: object WalletStatsDetail: properties: lend: anyOf: - $ref: '#/components/schemas/WalletStatsBreakdown' - type: 'null' default: null borrow: anyOf: - $ref: '#/components/schemas/WalletStatsBreakdown' - type: 'null' default: null title: WalletStatsDetail type: object WalletStatsSeparatedBreakdown: properties: count: anyOf: - type: integer - type: 'null' default: null title: Count value: anyOf: - $ref: '#/components/schemas/WalletStatsValueBreakdown' - type: 'null' default: null title: WalletStatsSeparatedBreakdown type: object WalletStatsValueBreakdown: properties: credit: anyOf: - $ref: '#/components/schemas/WalletStatsValueBreakdownAmounts' - type: 'null' default: null interest: anyOf: - $ref: '#/components/schemas/WalletStatsValueBreakdownAmounts' - type: 'null' default: null total: anyOf: - $ref: '#/components/schemas/WalletStatsValueBreakdownAmounts' - type: 'null' default: null collateral: anyOf: - $ref: '#/components/schemas/WalletStatsValueBreakdownAmounts' - type: 'null' default: null title: WalletStatsValueBreakdown type: object WalletStatsValueBreakdownAmounts: properties: usd: anyOf: - type: string - type: 'null' default: null title: Usd eth: anyOf: - type: string - type: 'null' default: null title: Eth title: WalletStatsValueBreakdownAmounts type: object Web3TokenObtainPair: type: object properties: refresh: type: string readOnly: true access: type: string readOnly: true access_expiration: type: string format: date-time readOnly: true required: - access - access_expiration - refresh Web3TokenObtainPairRequest: type: object properties: signature: type: string writeOnly: true chain_id: allOf: - $ref: '#/components/schemas/ChainIdEnum' writeOnly: true required: - chain_id - signature securitySchemes: jwtAuth: type: http scheme: bearer bearerFormat: JWT