From 8d711b42f75f89b055992f84e227bdc1f6e44111 Mon Sep 17 00:00:00 2001 From: "Hong Jing (Jingles)" Date: Sat, 30 Nov 2024 23:17:08 +0800 Subject: [PATCH] init roll back and bump version --- 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 +- .../mesh-react/src/cardano-wallet/index.tsx | 158 +++++++++--------- packages/mesh-svelte/package.json | 6 +- packages/mesh-transaction/package.json | 8 +- packages/mesh-wallet/package.json | 10 +- scripts/mesh-cli/package.json | 2 +- 12 files changed, 117 insertions(+), 117 deletions(-) diff --git a/packages/mesh-common/package.json b/packages/mesh-common/package.json index 1b6d6f9ce..9d335828e 100644 --- a/packages/mesh-common/package.json +++ b/packages/mesh-common/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/common", - "version": "1.7.21", + "version": "1.7.22", "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 8c1801d1f..cd93d5fea 100644 --- a/packages/mesh-contract/package.json +++ b/packages/mesh-contract/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/contract", - "version": "1.7.21", + "version": "1.7.22", "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.7.21", - "@meshsdk/core": "1.7.21", - "@meshsdk/core-csl": "1.7.21" + "@meshsdk/common": "1.7.22", + "@meshsdk/core": "1.7.22", + "@meshsdk/core-csl": "1.7.22" }, "prettier": "@meshsdk/configs/prettier", "publishConfig": { diff --git a/packages/mesh-core-csl/package.json b/packages/mesh-core-csl/package.json index 95868ae8b..0de375d89 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.7.21", + "version": "1.7.22", "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.7.21", + "@meshsdk/provider": "1.7.22", "@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.7.21", + "@meshsdk/common": "1.7.22", "@sidan-lab/sidan-csl-rs-browser": "0.9.6", "@sidan-lab/sidan-csl-rs-nodejs": "0.9.6", "@types/base32-encoding": "^1.0.2", diff --git a/packages/mesh-core-cst/package.json b/packages/mesh-core-cst/package.json index fca66b99d..9cc455a33 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.7.21", + "version": "1.7.22", "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.7.21", + "@meshsdk/common": "1.7.22", "@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 62c42e384..fd2b80990 100644 --- a/packages/mesh-core/package.json +++ b/packages/mesh-core/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/core", - "version": "1.7.21", + "version": "1.7.22", "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.7.21", - "@meshsdk/core-csl": "1.7.21", - "@meshsdk/core-cst": "1.7.21", - "@meshsdk/provider": "1.7.21", - "@meshsdk/react": "1.7.21", - "@meshsdk/transaction": "1.7.21", - "@meshsdk/wallet": "1.7.21" + "@meshsdk/common": "1.7.22", + "@meshsdk/core-csl": "1.7.22", + "@meshsdk/core-cst": "1.7.22", + "@meshsdk/provider": "1.7.22", + "@meshsdk/react": "1.7.22", + "@meshsdk/transaction": "1.7.22", + "@meshsdk/wallet": "1.7.22" }, "prettier": "@meshsdk/configs/prettier", "publishConfig": { diff --git a/packages/mesh-provider/package.json b/packages/mesh-provider/package.json index fd49be416..218811472 100644 --- a/packages/mesh-provider/package.json +++ b/packages/mesh-provider/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/provider", - "version": "1.7.21", + "version": "1.7.22", "description": "Blockchain data providers - https://meshjs.dev/providers", "main": "./dist/index.cjs", "browser": "./dist/index.js", @@ -34,8 +34,8 @@ "typescript": "^5.3.3" }, "dependencies": { - "@meshsdk/common": "1.7.21", - "@meshsdk/core-cst": "1.7.21", + "@meshsdk/common": "1.7.22", + "@meshsdk/core-cst": "1.7.22", "@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 94884bef1..bbd143ddc 100644 --- a/packages/mesh-react/package.json +++ b/packages/mesh-react/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/react", - "version": "1.7.21", + "version": "1.7.22", "description": "React component library - https://meshjs.dev/react", "main": "./dist/index.cjs", "browser": "./dist/index.js", @@ -29,9 +29,9 @@ }, "dependencies": { "@fabianbormann/cardano-peer-connect": "^1.2.18", - "@meshsdk/common": "1.7.21", - "@meshsdk/transaction": "1.7.21", - "@meshsdk/wallet": "1.7.21", + "@meshsdk/common": "1.7.22", + "@meshsdk/transaction": "1.7.22", + "@meshsdk/wallet": "1.7.22", "@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-react/src/cardano-wallet/index.tsx b/packages/mesh-react/src/cardano-wallet/index.tsx index c0e90e8bd..2991c25ec 100644 --- a/packages/mesh-react/src/cardano-wallet/index.tsx +++ b/packages/mesh-react/src/cardano-wallet/index.tsx @@ -3,8 +3,8 @@ * - handle show when no wallet in device */ import { useEffect, useRef, useState } from "react"; -import { DAppPeerConnect } from "@fabianbormann/cardano-peer-connect"; -import { IWalletInfo } from "@fabianbormann/cardano-peer-connect/dist/src/types"; +// import { DAppPeerConnect } from "@fabianbormann/cardano-peer-connect"; +// import { IWalletInfo } from "@fabianbormann/cardano-peer-connect/dist/src/types"; import { Button } from "../common/button"; import { @@ -108,9 +108,9 @@ export const CardanoWallet = ({ setScreen={setScreen} /> )} - {screen == "p2p" && ( + {/* {screen == "p2p" && ( - )} + )} */} - { @@ -225,84 +225,84 @@ function MainScreen({ "_blank", ); }} - /> + /> */} ); } -function P2PScreen({ - cardanoPeerConnect, -}: { - cardanoPeerConnect?: { - dAppInfo: { - name: string; - url: string; - }; - announce: string[]; - }; -}) { - const dAppConnect = useRef(null); - const qrCodeField = useRef(null); - const [address, setAddress] = useState(""); - const [copied, setCopied] = useState(false); - const [connected, setConnected] = useState(false); - console.log("address", address); +// function P2PScreen({ +// cardanoPeerConnect, +// }: { +// cardanoPeerConnect?: { +// dAppInfo: { +// name: string; +// url: string; +// }; +// announce: string[]; +// }; +// }) { +// const dAppConnect = useRef(null); +// const qrCodeField = useRef(null); +// const [address, setAddress] = useState(""); +// const [copied, setCopied] = useState(false); +// const [connected, setConnected] = useState(false); +// console.log("address", address); - useEffect(() => { - if (cardanoPeerConnect) { - if (dAppConnect.current === null) { - dAppConnect.current = new DAppPeerConnect({ - dAppInfo: { - name: cardanoPeerConnect.dAppInfo.name, - url: cardanoPeerConnect.dAppInfo.url, - }, - announce: cardanoPeerConnect.announce, - onApiInject: (name: string, address: string) => { - console.log("onApiInject", name, address); - }, - onApiEject: (name: string, address: string) => { - console.log("onApiEject", name, address); - }, - onConnect: (address: string, walletInfo?: IWalletInfo) => { - console.log("Connected to wallet", address, walletInfo); - }, - onDisconnect: () => { - console.log("Disconnected from wallet"); - }, - verifyConnection: ( - walletInfo: IWalletInfo, - callback: (granted: boolean, autoconnect: boolean) => void, - ) => { - console.log("verifyConnection", walletInfo); - callback(true, true); - }, - useWalletDiscovery: true, - }); - console.log(1, dAppConnect.current); - if (dAppConnect.current) { - setAddress(dAppConnect.current.getAddress()); +// useEffect(() => { +// if (cardanoPeerConnect) { +// if (dAppConnect.current === null) { +// dAppConnect.current = new DAppPeerConnect({ +// dAppInfo: { +// name: cardanoPeerConnect.dAppInfo.name, +// url: cardanoPeerConnect.dAppInfo.url, +// }, +// announce: cardanoPeerConnect.announce, +// onApiInject: (name: string, address: string) => { +// console.log("onApiInject", name, address); +// }, +// onApiEject: (name: string, address: string) => { +// console.log("onApiEject", name, address); +// }, +// onConnect: (address: string, walletInfo?: IWalletInfo) => { +// console.log("Connected to wallet", address, walletInfo); +// }, +// onDisconnect: () => { +// console.log("Disconnected from wallet"); +// }, +// verifyConnection: ( +// walletInfo: IWalletInfo, +// callback: (granted: boolean, autoconnect: boolean) => void, +// ) => { +// console.log("verifyConnection", walletInfo); +// callback(true, true); +// }, +// useWalletDiscovery: true, +// }); +// console.log(1, dAppConnect.current); +// if (dAppConnect.current) { +// setAddress(dAppConnect.current.getAddress()); - if (qrCodeField.current !== null) { - dAppConnect.current.generateQRCode(qrCodeField.current); - } - } - } - } - }, []); +// if (qrCodeField.current !== null) { +// dAppConnect.current.generateQRCode(qrCodeField.current); +// } +// } +// } +// } +// }, []); - return ( -
-
- -
- ); -} +// return ( +//
+//
+// +//
+// ); +// } diff --git a/packages/mesh-svelte/package.json b/packages/mesh-svelte/package.json index bc93ba891..877c8c919 100644 --- a/packages/mesh-svelte/package.json +++ b/packages/mesh-svelte/package.json @@ -25,9 +25,9 @@ "dev": "vite dev" }, "dependencies": { - "@meshsdk/common": "1.7.21", - "@meshsdk/transaction": "1.7.21", - "@meshsdk/wallet": "1.7.21" + "@meshsdk/common": "1.7.22", + "@meshsdk/transaction": "1.7.22", + "@meshsdk/wallet": "1.7.22" }, "devDependencies": { "@meshsdk/configs": "*", diff --git a/packages/mesh-transaction/package.json b/packages/mesh-transaction/package.json index c880f4a5b..64991caee 100644 --- a/packages/mesh-transaction/package.json +++ b/packages/mesh-transaction/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/transaction", - "version": "1.7.21", + "version": "1.7.22", "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.7.21", - "@meshsdk/core-csl": "1.7.21", - "@meshsdk/core-cst": "1.7.21", + "@meshsdk/common": "1.7.22", + "@meshsdk/core-csl": "1.7.22", + "@meshsdk/core-cst": "1.7.22", "json-bigint": "^1.0.0" }, "prettier": "@meshsdk/configs/prettier", diff --git a/packages/mesh-wallet/package.json b/packages/mesh-wallet/package.json index a659b4acf..9d2a0082f 100644 --- a/packages/mesh-wallet/package.json +++ b/packages/mesh-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/wallet", - "version": "1.7.21", + "version": "1.7.22", "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.7.21", - "@meshsdk/core-csl": "1.7.21", - "@meshsdk/core-cst": "1.7.21", - "@meshsdk/transaction": "1.7.21", + "@meshsdk/common": "1.7.22", + "@meshsdk/core-csl": "1.7.22", + "@meshsdk/core-cst": "1.7.22", + "@meshsdk/transaction": "1.7.22", "@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 96f726101..282d52ed0 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.7.21", + "version": "1.7.22", "license": "Apache-2.0", "type": "module", "main": "./dist/index.cjs",