From 3a93286b4ecbbdab1196e657b311864b1db05f1e Mon Sep 17 00:00:00 2001 From: "Hong Jing (Jingles)" Date: Mon, 16 Dec 2024 16:49:39 +0800 Subject: [PATCH] bump version and update playground --- .../sections/hero-logo-two-sections-links.tsx | 61 ++++++++++++++ apps/playground/src/data/links-aiken.ts | 6 +- apps/playground/src/pages/aiken/index.tsx | 74 +++-------------- .../src/pages/providers/blockfrost.tsx | 1 + apps/playground/src/pages/providers/koios.tsx | 1 + .../src/pages/providers/maestro.tsx | 1 + apps/playground/src/pages/providers/yaci.tsx | 1 + apps/playground/src/pages/yaci/index.tsx | 83 +++---------------- apps/playground/src/types/menu-item.ts | 2 +- packages/mesh-common/package.json | 2 +- packages/mesh-contract/package.json | 8 +- packages/mesh-core-csl/package.json | 6 +- packages/mesh-core-cst/package.json | 4 +- packages/mesh-core/package.json | 16 ++-- packages/mesh-provider/package.json | 6 +- packages/mesh-react/package.json | 8 +- packages/mesh-svelte/package.json | 4 +- packages/mesh-transaction/package.json | 8 +- packages/mesh-wallet/package.json | 10 +-- scripts/mesh-cli/package.json | 2 +- 20 files changed, 126 insertions(+), 178 deletions(-) create mode 100644 apps/playground/src/components/sections/hero-logo-two-sections-links.tsx diff --git a/apps/playground/src/components/sections/hero-logo-two-sections-links.tsx b/apps/playground/src/components/sections/hero-logo-two-sections-links.tsx new file mode 100644 index 000000000..3bcc73655 --- /dev/null +++ b/apps/playground/src/components/sections/hero-logo-two-sections-links.tsx @@ -0,0 +1,61 @@ +import { ArrowRightIcon } from "@heroicons/react/24/solid"; + +import { MenuItem } from "~/types/menu-item"; +import Link from "../link"; + +export default function HeroLogoTwoSectionsLinks({ + logo, + title, + description, + links, +}: { + logo: React.ReactNode; + title: string; + description: string; + links: MenuItem[]; +}) { + return ( +
+
+
{logo}
+ +
+
+
+

+ {title} +

+

+ {description} +

+
+
+ {links.map((link) => ( + + ))} +
+
+
+
+
+ ); +} + +function Item({ item }: { item: MenuItem }) { + return ( + +
+ + {item.desc} + + + {item.title} + +
+ + + ); +} diff --git a/apps/playground/src/data/links-aiken.ts b/apps/playground/src/data/links-aiken.ts index 8c79799a3..d4af2f435 100644 --- a/apps/playground/src/data/links-aiken.ts +++ b/apps/playground/src/data/links-aiken.ts @@ -2,7 +2,7 @@ import { MenuItem } from "~/types/menu-item"; export const metaAikenGettingStarted = { title: "Getting Started", - desc: "We will walk you through the process of setting up your system to compile Aiken smart contracts", + desc: "Setting up your system to compile Aiken smart contracts", link: "/aiken/getting-started", }; export const metaAikenFirstScript = { @@ -21,8 +21,8 @@ export const metaAikenContractsLib = { link: "/smart-contracts", }; export const metaAikenCourse = { - title: "Aiken Smart Contract course by STOIC Pool", - desc: "You'll learn the core concepts of Aiken while enjoying live coding examples", + title: "Smart Contract course by STOIC Pool", + desc: "Learn the concepts of Aiken while enjoying live coding examples", link: "https://www.youtube.com/playlist?list=PLCuyQuWCJVQ1Zz9ySRMH_J6EymxhnZ0Hu", }; diff --git a/apps/playground/src/pages/aiken/index.tsx b/apps/playground/src/pages/aiken/index.tsx index eb7db5bb4..62e8fb798 100644 --- a/apps/playground/src/pages/aiken/index.tsx +++ b/apps/playground/src/pages/aiken/index.tsx @@ -1,7 +1,6 @@ import type { NextPage } from "next"; -import Link from "~/components/link"; -import { ChevronRightIcon } from "@heroicons/react/24/solid"; +import HeroLogoTwoSectionsLinks from "~/components/sections/hero-logo-two-sections-links"; import Metatags from "~/components/site/metatags"; import { linksAiken, metaAiken } from "~/data/links-aiken"; @@ -9,9 +8,9 @@ const ReactPage: NextPage = () => { return ( <> -
-
-
+ { src="/images/aiken/logo-light.png" alt="Aiken logo dark" /> -
- -
-
-
-

- Overview -

-

- Aiken is a functional programming language created for Cardano - smart contract development. It prioritizes on-chain execution - and offers a user-friendly approach for building secure and - efficient smart contracts, making it a valuable choice for - developers aiming to create robust on-chain applications. -

-
- -
    - {linksAiken.map((link) => ( -
  • - - - - {link.title} - - -
  • - ))} -
-
- -
- {/*
-

- Something -

-

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Optio - iste nam cupiditate, eveniet ab possimus quisquam accusantium, - porro, vel temporibus molestiae rerum eaque vitae modi hic! - Commodi ad quis ducimus? -

-
- -
-

- Something -

-

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Optio - iste nam cupiditate, eveniet ab possimus quisquam accusantium, - porro, vel temporibus molestiae rerum eaque vitae modi hic! - Commodi ad quis ducimus? -

-
*/} -
-
-
-
+ + } + title="A programming language and toolkit for developing smart contracts" + description="Aiken is a functional programming language created for Cardano smart contract development. It prioritizes on-chain execution and offers a user-friendly approach for building secure and efficient smart contracts, making it a valuable choice for developers aiming to create robust on-chain applications." + links={linksAiken} + /> ); }; diff --git a/apps/playground/src/pages/providers/blockfrost.tsx b/apps/playground/src/pages/providers/blockfrost.tsx index 2b3a4d5dd..fbdc9c899 100644 --- a/apps/playground/src/pages/providers/blockfrost.tsx +++ b/apps/playground/src/pages/providers/blockfrost.tsx @@ -30,6 +30,7 @@ const ReactPage: NextPage = () => { { label: "Fetch Protocol Parameters", to: "fetchProtocolParameters" }, { label: "Fetch Transaction Info", to: "fetchTxInfo" }, { label: "Fetch UTxOs", to: "fetchUtxos" }, + { label: "Fetch Proposal Info", to: "fetchProposalInfo" }, { label: "Evaluate Tx", to: "evaluateTx" }, { label: "Submit Tx", to: "submitTx" }, { label: "On Transaction Confirmed", to: "onTxConfirmed" }, diff --git a/apps/playground/src/pages/providers/koios.tsx b/apps/playground/src/pages/providers/koios.tsx index d6e631a47..bc02ef7ca 100644 --- a/apps/playground/src/pages/providers/koios.tsx +++ b/apps/playground/src/pages/providers/koios.tsx @@ -29,6 +29,7 @@ const ReactPage: NextPage = () => { { label: "Fetch Protocol Parameters", to: "fetchProtocolParameters" }, { label: "Fetch Transaction Info", to: "fetchTxInfo" }, { label: "Fetch UTxOs", to: "fetchUtxos" }, + { label: "Fetch Proposal Info", to: "fetchProposalInfo" }, { label: "Submit Tx", to: "submitTx" }, { label: "On Transaction Confirmed", to: "onTxConfirmed" }, ]; diff --git a/apps/playground/src/pages/providers/maestro.tsx b/apps/playground/src/pages/providers/maestro.tsx index 277025c24..ead33850e 100644 --- a/apps/playground/src/pages/providers/maestro.tsx +++ b/apps/playground/src/pages/providers/maestro.tsx @@ -30,6 +30,7 @@ const ReactPage: NextPage = () => { { label: "Fetch Protocol Parameters", to: "fetchProtocolParameters" }, { label: "Fetch Transaction Info", to: "fetchTxInfo" }, { label: "Fetch UTxOs", to: "fetchUtxos" }, + { label: "Fetch Proposal Info", to: "fetchProposalInfo" }, { label: "Evaluate Tx", to: "evaluateTx" }, { label: "Submit Tx", to: "submitTx" }, { label: "On Transaction Confirmed", to: "onTxConfirmed" }, diff --git a/apps/playground/src/pages/providers/yaci.tsx b/apps/playground/src/pages/providers/yaci.tsx index 4283cdc86..1fd0eb74b 100644 --- a/apps/playground/src/pages/providers/yaci.tsx +++ b/apps/playground/src/pages/providers/yaci.tsx @@ -31,6 +31,7 @@ const ReactPage: NextPage = () => { { label: "Fetch Protocol Parameters", to: "fetchProtocolParameters" }, { label: "Fetch Transaction Info", to: "fetchTxInfo" }, { label: "Fetch UTxOs", to: "fetchUtxos" }, + { label: "Fetch Proposal Info", to: "fetchProposalInfo" }, { label: "Evaluate Tx", to: "evaluateTx" }, { label: "Submit Tx", to: "submitTx" }, { label: "On Transaction Confirmed", to: "onTxConfirmed" }, diff --git a/apps/playground/src/pages/yaci/index.tsx b/apps/playground/src/pages/yaci/index.tsx index 4508b1766..8462ccaf5 100644 --- a/apps/playground/src/pages/yaci/index.tsx +++ b/apps/playground/src/pages/yaci/index.tsx @@ -1,7 +1,6 @@ import type { NextPage } from "next"; -import Link from "~/components/link"; -import { ChevronRightIcon } from "@heroicons/react/24/solid"; +import HeroLogoTwoSectionsLinks from "~/components/sections/hero-logo-two-sections-links"; import Metatags from "~/components/site/metatags"; import { linksYaci, metaYaci } from "~/data/links-yaci"; @@ -9,82 +8,20 @@ const ReactPage: NextPage = () => { return ( <> -
-
-
+ Yaci logo -
- -
-
-
-

- Overview -

-

- Yaci DevKit revolutionizes the development process with a - custom Cardano devnet that can be created and reset in seconds - using the user-friendly Yaci CLI. This allows for rapid - iteration and experimentation, tailored to specific needs - through flexible configuration options. The default devnet is - optimized for speed, with customizable parameters for various - testing scenarios. Integrated tools like the lightweight chain - indexer "Yaci Store" and the browser-based "Yaci Viewer" - enhance transaction building and submission. Optional - components Ogmios and Kupo can be enabled to support client - SDKs, and the Docker Compose package simplifies deployment and - management. Yaci DevKit's compatibility with Blockfrost API - endpoints ensures seamless integration with client SDKs, - offering boundless development possibilities. -

-
- -
    - {linksYaci.map((link) => ( -
  • - - - - {link.title} - - -
  • - ))} -
-
- - {/*
-
-

- Something -

-

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Optio - iste nam cupiditate, eveniet ab possimus quisquam accusantium, - porro, vel temporibus molestiae rerum eaque vitae modi hic! - Commodi ad quis ducimus? -

-
- -
-

- Something -

-

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Optio - iste nam cupiditate, eveniet ab possimus quisquam accusantium, - porro, vel temporibus molestiae rerum eaque vitae modi hic! - Commodi ad quis ducimus? -

-
-
*/} -
-
-
+ + } + title="Customizable Cardano devnet for enabling faster iterations" + description="Custom Cardano devnet that can be created and reset in seconds using the user-friendly Yaci CLI. This allows for rapid iteration and experimentation, tailored to specific needs through flexible configuration options. The default devnet is optimized for speed, with customizable parameters for various testing scenarios. Integrated tools like the lightweight chain indexer Yaci Store and the browser-based Yaci Viewer enhance transaction building and submission. Yaci DevKit's compatibility with Blockfrost API endpoints ensures seamless integration with client SDKs." + links={linksYaci} + /> ); }; diff --git a/apps/playground/src/types/menu-item.ts b/apps/playground/src/types/menu-item.ts index 08569e79e..fc9ced703 100644 --- a/apps/playground/src/types/menu-item.ts +++ b/apps/playground/src/types/menu-item.ts @@ -1,6 +1,6 @@ export type MenuItem = { title: string; - desc?: string; + desc: string; link: string; icon?: any; items?: MenuItem[]; diff --git a/packages/mesh-common/package.json b/packages/mesh-common/package.json index 0abfc7717..403f5e3bf 100644 --- a/packages/mesh-common/package.json +++ b/packages/mesh-common/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/common", - "version": "1.8.1", + "version": "1.8.2", "description": "Contains constants, types and interfaces used across the SDK and different serialization libraries", "main": "./dist/index.cjs", "browser": "./dist/index.js", diff --git a/packages/mesh-contract/package.json b/packages/mesh-contract/package.json index c4bfc41a7..03f5e19da 100644 --- a/packages/mesh-contract/package.json +++ b/packages/mesh-contract/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/contract", - "version": "1.8.1", + "version": "1.8.2", "description": "List of open-source smart contracts, complete with documentation, live demos, and end-to-end source code. https://meshjs.dev/smart-contracts", "main": "./dist/index.cjs", "browser": "./dist/index.js", @@ -34,9 +34,9 @@ "typescript": "^5.3.3" }, "dependencies": { - "@meshsdk/common": "1.8.1", - "@meshsdk/core": "1.8.1", - "@meshsdk/core-csl": "1.8.1" + "@meshsdk/common": "1.8.2", + "@meshsdk/core": "1.8.2", + "@meshsdk/core-csl": "1.8.2" }, "prettier": "@meshsdk/configs/prettier", "publishConfig": { diff --git a/packages/mesh-core-csl/package.json b/packages/mesh-core-csl/package.json index a6a39d0ef..3159da4a4 100644 --- a/packages/mesh-core-csl/package.json +++ b/packages/mesh-core-csl/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/core-csl", - "version": "1.8.1", + "version": "1.8.2", "description": "Types and utilities functions between Mesh and cardano-serialization-lib", "main": "./dist/index.cjs", "module": "./dist/index.js", @@ -31,7 +31,7 @@ }, "devDependencies": { "@meshsdk/configs": "*", - "@meshsdk/provider": "1.8.1", + "@meshsdk/provider": "1.8.2", "@types/json-bigint": "^1.0.4", "eslint": "^8.57.0", "ts-jest": "^29.1.4", @@ -39,7 +39,7 @@ "typescript": "^5.3.3" }, "dependencies": { - "@meshsdk/common": "1.8.1", + "@meshsdk/common": "1.8.2", "@sidan-lab/sidan-csl-rs-browser": "0.9.12", "@sidan-lab/sidan-csl-rs-nodejs": "0.9.12", "@types/base32-encoding": "^1.0.2", diff --git a/packages/mesh-core-cst/package.json b/packages/mesh-core-cst/package.json index 1b9eb94f2..53304fbe5 100644 --- a/packages/mesh-core-cst/package.json +++ b/packages/mesh-core-cst/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/core-cst", - "version": "1.8.1", + "version": "1.8.2", "description": "Types and utilities functions between Mesh and cardano-js-sdk", "main": "./dist/index.cjs", "browser": "./dist/index.js", @@ -42,7 +42,7 @@ "@harmoniclabs/cbor": "1.3.0", "@harmoniclabs/plutus-data": "1.2.4", "@harmoniclabs/uplc": "1.2.4", - "@meshsdk/common": "1.8.1", + "@meshsdk/common": "1.8.2", "@stricahq/bip32ed25519": "^1.1.0", "@stricahq/cbors": "^1.0.3", "pbkdf2": "^3.1.2" diff --git a/packages/mesh-core/package.json b/packages/mesh-core/package.json index 526876d7a..22f017ddd 100644 --- a/packages/mesh-core/package.json +++ b/packages/mesh-core/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/core", - "version": "1.8.1", + "version": "1.8.2", "description": "Mesh SDK Core - https://meshjs.dev/", "main": "./dist/index.cjs", "browser": "./dist/index.js", @@ -33,13 +33,13 @@ "typescript": "^5.3.3" }, "dependencies": { - "@meshsdk/common": "1.8.1", - "@meshsdk/core-csl": "1.8.1", - "@meshsdk/core-cst": "1.8.1", - "@meshsdk/provider": "1.8.1", - "@meshsdk/react": "1.8.1", - "@meshsdk/transaction": "1.8.1", - "@meshsdk/wallet": "1.8.1" + "@meshsdk/common": "1.8.2", + "@meshsdk/core-csl": "1.8.2", + "@meshsdk/core-cst": "1.8.2", + "@meshsdk/provider": "1.8.2", + "@meshsdk/react": "1.8.2", + "@meshsdk/transaction": "1.8.2", + "@meshsdk/wallet": "1.8.2" }, "prettier": "@meshsdk/configs/prettier", "publishConfig": { diff --git a/packages/mesh-provider/package.json b/packages/mesh-provider/package.json index 2bcb19a58..153c8179b 100644 --- a/packages/mesh-provider/package.json +++ b/packages/mesh-provider/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/provider", - "version": "1.8.1", + "version": "1.8.2", "description": "Blockchain data providers - https://meshjs.dev/providers", "main": "./dist/index.cjs", "browser": "./dist/index.js", @@ -35,8 +35,8 @@ "typescript": "^5.3.3" }, "dependencies": { - "@meshsdk/common": "1.8.1", - "@meshsdk/core-cst": "1.8.1", + "@meshsdk/common": "1.8.2", + "@meshsdk/core-cst": "1.8.2", "@utxorpc/sdk": "0.6.2", "@utxorpc/spec": "0.10.1", "axios": "^1.7.2" diff --git a/packages/mesh-react/package.json b/packages/mesh-react/package.json index 145661ff4..7f8937cbd 100644 --- a/packages/mesh-react/package.json +++ b/packages/mesh-react/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/react", - "version": "1.8.1", + "version": "1.8.2", "description": "React component library - https://meshjs.dev/react", "main": "./dist/index.cjs", "browser": "./dist/index.js", @@ -30,9 +30,9 @@ }, "dependencies": { "@fabianbormann/cardano-peer-connect": "^1.2.18", - "@meshsdk/common": "1.8.1", - "@meshsdk/transaction": "1.8.1", - "@meshsdk/wallet": "1.8.1", + "@meshsdk/common": "1.8.2", + "@meshsdk/transaction": "1.8.2", + "@meshsdk/wallet": "1.8.2", "@radix-ui/react-dialog": "^1.1.2", "@radix-ui/react-dropdown-menu": "^2.1.2", "@radix-ui/react-icons": "^1.3.2", diff --git a/packages/mesh-svelte/package.json b/packages/mesh-svelte/package.json index cd4cbf0ad..ae74bf3dc 100644 --- a/packages/mesh-svelte/package.json +++ b/packages/mesh-svelte/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/svelte", - "version": "1.8.1", + "version": "1.8.2", "description": "Svelte component library - https://meshjs.dev/svelte", "type": "module", "exports": { @@ -26,7 +26,7 @@ "dev": "vite dev" }, "dependencies": { - "@meshsdk/core": "1.8.1", + "@meshsdk/core": "1.8.2", "bits-ui": "1.0.0-next.65" }, "devDependencies": { diff --git a/packages/mesh-transaction/package.json b/packages/mesh-transaction/package.json index 7cad820f1..af99245c0 100644 --- a/packages/mesh-transaction/package.json +++ b/packages/mesh-transaction/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/transaction", - "version": "1.8.1", + "version": "1.8.2", "description": "Transactions - https://meshjs.dev/apis/transaction", "main": "./dist/index.cjs", "browser": "./dist/index.js", @@ -35,9 +35,9 @@ "typescript": "^5.3.3" }, "dependencies": { - "@meshsdk/common": "1.8.1", - "@meshsdk/core-csl": "1.8.1", - "@meshsdk/core-cst": "1.8.1", + "@meshsdk/common": "1.8.2", + "@meshsdk/core-csl": "1.8.2", + "@meshsdk/core-cst": "1.8.2", "json-bigint": "^1.0.0" }, "prettier": "@meshsdk/configs/prettier", diff --git a/packages/mesh-wallet/package.json b/packages/mesh-wallet/package.json index 31308f819..41dfbb885 100644 --- a/packages/mesh-wallet/package.json +++ b/packages/mesh-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/wallet", - "version": "1.8.1", + "version": "1.8.2", "description": "Wallets - https://meshjs.dev/apis/wallets", "main": "./dist/index.cjs", "browser": "./dist/index.js", @@ -35,10 +35,10 @@ "typescript": "^5.3.3" }, "dependencies": { - "@meshsdk/common": "1.8.1", - "@meshsdk/core-csl": "1.8.1", - "@meshsdk/core-cst": "1.8.1", - "@meshsdk/transaction": "1.8.1", + "@meshsdk/common": "1.8.2", + "@meshsdk/core-csl": "1.8.2", + "@meshsdk/core-cst": "1.8.2", + "@meshsdk/transaction": "1.8.2", "@nufi/dapp-client-cardano": "0.3.5", "@nufi/dapp-client-core": "0.3.5" }, diff --git a/scripts/mesh-cli/package.json b/scripts/mesh-cli/package.json index fa5ee2c2f..5e4752432 100644 --- a/scripts/mesh-cli/package.json +++ b/scripts/mesh-cli/package.json @@ -3,7 +3,7 @@ "description": "A quick and easy way to bootstrap your dApps on Cardano using Mesh.", "homepage": "https://meshjs.dev", "author": "MeshJS", - "version": "1.8.1", + "version": "1.8.2", "license": "Apache-2.0", "type": "module", "main": "./dist/index.cjs",