Skip to content

Commit

Permalink
feat: add coupon docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jinglescode committed May 5, 2024
1 parent 3c1a88e commit b4bcdd2
Show file tree
Hide file tree
Showing 7 changed files with 1,119 additions and 1,071 deletions.
68 changes: 54 additions & 14 deletions packages/demo/components/pages/about/catalyst.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function ListOfProposals() {
return (
<>
<CardLink
title="Mesh x Defy x Yaci: Private Blockchain Networks for enabling real world financial services and Cardano Adoption (F12)"
title="Mesh x Defy x Yaci: Private Blockchain Networks for enabling real world financial services and Cardano Adoption"
desc="?"
url=""
completed={[]}
Expand All @@ -37,20 +37,29 @@ function ListOfProposals() {
`An identity solution, smart contracts that define regulators requirements to support users' identity and KYC records.`,
`A KYC solution, smart contracts that define regulators requirements to support KYC processes.`,
`A KYC verification solution, smart contracts that define how users' records are verified which results in reputation scores and incentivization mechanism.`,
`Whitepaper about private network and KYC use case`,
`Whitepaper for private network and KYC use case`,
]}
fund={'Fund12'}
status={'Voting'}
/>

<CardLink
title="zkFold x Defy: Derisking cross-border payments with Zero-Knowledge Proofs (F12)"
title="zkFold x Defy: Derisking cross-border payments with Zero-Knowledge Proofs"
desc="?"
url=""
completed={[]}
tobecompleted={['?', '?', '?', '?']}
tobecompleted={[
'?',
'?',
'?',
'Whitepaper for derisking cross-border payments with zero-knowledge proofs',
]}
fund={'Fund12'}
status={'Voting'}
/>

<CardLink
title="Mesh New Features to Improve Developer experience and Cardano Adoption (F12)"
title="Mesh New Features to Improve Developer experience and Cardano Adoption"
desc="?"
url=""
completed={[]}
Expand All @@ -61,10 +70,12 @@ function ListOfProposals() {
'Improve error messages',
'Wallet support for private blockchain networks (Yaci)',
]}
fund={'Fund12'}
status={'Voting'}
/>

<CardLink
title="Mesh Software as a Service (F12)"
title="Mesh Software as a Service"
desc="?"
url=""
completed={[]}
Expand All @@ -75,18 +86,22 @@ function ListOfProposals() {
'User-defined transaction building',
'JSON schema for transaction',
]}
fund={'Fund12'}
status={'Voting'}
/>

<CardLink
title="Mesh - Advance Cardano SDK in Rust (F12)"
title="Mesh - Advance Cardano SDK in Rust"
desc="?"
url=""
completed={[]}
tobecompleted={['?', '?', '?', '?']}
fund={'Fund12'}
status={'Voting'}
/>

<CardLink
title="Aiken Open-Source Smart Contract Library (F11)"
title="Aiken Open-Source Smart Contract Library"
desc="We create a collection of open-source smart contracts with Aiken (including Workspace, Mesh TX builder components) and integrate them into the Mesh SDK library on Github - open and accessible to all. "
url="https://projectcatalyst.io/funds/11/cardano-open-developers/aiken-open-source-smart-contract-library-by-meshjs-and-trustlevel"
completed={[
Expand All @@ -102,46 +117,71 @@ function ListOfProposals() {
'Advanced contract #3',
'Bad examples',
]}
fund={'Fund11'}
status={'In Progress'}
/>

<CardLink
title="Sustain & Maintain MeshJS (F11)"
title="Sustain & Maintain MeshJS"
desc="This proposal enables implementations not limited to Voltaire features, Hydra & Aiken integration, and data providers integrations. Including bounties for issues, features, and learning materials."
url="https://projectcatalyst.io/funds/11/cardano-open-developers/sustain-and-maintain-meshjs"
completed={[
'Lower-level APIs completed',
'Technical documentation released',
'Resolved numerous reported GitHub issues',
'Active Discord and social to help developers',
'Active Discord engagement to help developers',
'Transaction building support for Hydra apps',
]}
tobecompleted={[
'Plutus version 3 integration',
'Revamped/refactored transaction and utilities class',
'Conway features',
]}
fund={'Fund11'}
status={'In Progress'}
/>

<CardLink
title="Supporting Open-Source Library Development, Developer Resources & Builder Community (F10)"
title="Supporting Open-Source Library Development, Developer Resources & Builder Community"
desc="To guarantee and ensure sustainability of a team dedicated to maintaining and developing one of the best open-source libraries on Cardano, providing devs with something easy-to-use, fun and productive."
url="https://projectcatalyst.io/funds/10/f10-osde-open-source-dev-ecosystem/meshjs-sdk-operations-supporting-open-source-library-development-developer-resources-and-builder-community"
completed={[
'Lower-level APIs core functionality',
'Mesh PBL course content',
'Workshops and live coding',
'Community Q&A support',
'Demos and tutorials repository',
]}
tobecompleted={['Mesh PBL Season #1']}
tobecompleted={['Mesh PBL Season #1', 'Student projects']}
fund={'Fund10'}
status={'In Progress'}
/>
</>
);
}

function CardLink({ title, desc, url, completed, tobecompleted }) {
function CardLink({
title,
desc,
url,
completed,
tobecompleted,
fund,
status,
}) {
return (
<div className="block max-w-sm p-6 bg-white border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700">
<h5 className="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">
{title}
</h5>
<div className="flex gap-2 mb-2">
<span className="bg-green-100 text-green-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-green-900 dark:text-green-300">
{status}
</span>
<span className="bg-blue-100 text-blue-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300">
{fund}
</span>
</div>
<p className="font-normal text-gray-700 dark:text-gray-400">{desc}</p>
<ul className="mt-4 text-sm text-gray-500 dark:text-gray-300">
{completed.map((item, index) => (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ArrowsRightLeftIcon } from '@heroicons/react/24/solid';
import { DocumentTextIcon } from '@heroicons/react/24/solid';

export default function Hero() {
return (
Expand All @@ -7,17 +7,25 @@ export default function Hero() {
<h2 className="mb-4 text-4xl tracking-tight font-extrabold text-gray-900 dark:text-white">
<div className="flex items-center">
<div className="p-2 mr-4">
<ArrowsRightLeftIcon className="w-16 h-16" />
<DocumentTextIcon className="w-16 h-16" />
</div>
<span>Coupon Bond Guaranteed</span>
</div>
</h2>
<p className="mb-8 font-light text-gray-500 sm:text-xl dark:text-gray-400">
contract
Debt agreement between Lender and Borrower.
</p>
</header>
<div className="grid grid-cols-1 px-4 lg:grid-cols-3 lg:gap-4 pb-16">
<div className="col-span-2">
<p>
Debt agreement between Lender and Borrower. Lender will advance the
Principal amount at the beginning of the contract, and the Borrower
will pay back Interest instalment every 30 slots and the Principal
amount by the end of 3 instalments. The debt is backed by a
collateral provided by the Guarantor which will be refunded as long
as the Borrower pays back on time.
</p>
<p>
There are 2 actions (or endpoints) available to interact with this
smart contract:
Expand Down
16 changes: 8 additions & 8 deletions packages/demo/components/site/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,32 +251,32 @@ function SubMenuSmartContracts() {
<SubMenuLinks
href={`/smart-contracts/marketplace`}
title="Marketplace"
desc="Build a NFT marketplace effortlessly."
desc="Build a NFT marketplace effortlessly"
icon={<ShoppingCartIcon className="w-5 h-5" />}
/>
<SubMenuLinks
href={`/smart-contracts/vesting`}
title="Vesting"
desc="Lock assets for a period of time."
desc="Lock assets for a period of time"
icon={<LockClosedIcon className="w-5 h-5" />}
/>
<SubMenuLinks
href={`/smart-contracts/escrow`}
title="Escrow"
desc="Facilitate secure peer to peer transactions."
desc="Facilitate secure peer to peer transactions"
icon={<ArrowsRightLeftIcon className="w-5 h-5" />}
/>
<SubMenuLinks
href={`/smart-contracts/giftcard`}
title="Giftcard"
desc="Send and redeem a gift card."
desc="Send and redeem a gift card"
icon={<GiftIcon className="w-5 h-5" />}
/>
<SubMenuLinks
href={`/smart-contracts/swap`}
title="Swap"
desc="?"
icon={<ArrowsRightLeftIcon className="w-5 h-5" />}
href={`/smart-contracts/coupon-bond-guaranteed`}
title="Coupon Bond Guaranteed"
desc="Debt agreement between Lender and Borrower"
icon={<DocumentTextIcon className="w-5 h-5" />}
/>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/demo/pages/about/catalyst.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Catalyst from '../../components/pages/about/catalyst';
const MediaPage: NextPage = () => {
return (
<>
<Metatags title="Catalyst" />
<Metatags title="Catalyst" description={`Mesh Catalyst proposals and its progress`} />
<Catalyst />
</>
);
Expand Down
17 changes: 17 additions & 0 deletions packages/demo/pages/smart-contracts/coupon-bond-guaranteed.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import type { NextPage } from 'next';
import Metatags from '../../components/site/metatags';
import ContractsCouponBondGuaranteed from '../../components/pages/contracts/coupon-bond-guaranteed';

const SmartContractsCouponBondGuaranteed: NextPage = () => {
return (
<>
<Metatags
title="Coupon Bond Guaranteed Contract"
description="Debt agreement between Lender and Borrower"
/>
<ContractsCouponBondGuaranteed />
</>
);
};

export default SmartContractsCouponBondGuaranteed;
17 changes: 0 additions & 17 deletions packages/demo/pages/smart-contracts/swap.tsx

This file was deleted.

0 comments on commit b4bcdd2

Please sign in to comment.