Skip to content

Commit

Permalink
feat: add sellOrderPrice to project doc (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
blushi authored Sep 25, 2024
1 parent b839c31 commit ee4327e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions schemas/documents/shared/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ export default {
},
],
},
{
title: 'Sell orders available for fiat purchases',
name: 'fiatSellOrders',
type: 'array',
of: [
{
type: 'sellOrderPrice',
},
],
},
{
title: 'Project name',
name: 'projectName',
Expand Down
20 changes: 20 additions & 0 deletions schemas/objects/sellOrderPrice.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export default {
title: 'Sell Order Price',
name: 'sellOrderPrice',
type: 'object',
fields: [
{
title: 'Sell order id',
name: 'sellOrderId',
type: 'string',
validation: Rule => Rule.required(),
},
{
title: 'Sell order price',
description: 'price per credit in USD',
name: 'usdPrice',
type: 'number',
validation: Rule => Rule.required(),
},
],
};
2 changes: 2 additions & 0 deletions schemas/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ import classPrefinanceTimelineItem from './objects/classPrefinanceTimelineItem';
import prefinanceTimelineItem from './objects/prefinanceTimelineItem';
import prefinanceProjects from './objects/prefinanceProjects';
import createProjectPagePopup from './objects/createProjectPagePopup';
import sellOrderPrice from './objects/sellOrderPrice';

export const objectSchemas = [
heroSection,
Expand Down Expand Up @@ -404,6 +405,7 @@ export const objectSchemas = [
prefinanceTimelineItem,
prefinanceProjects,
createProjectPagePopup,
sellOrderPrice,
];

export default [
Expand Down

0 comments on commit ee4327e

Please sign in to comment.