diff --git a/README.md b/README.md index d0337aba..9d344d49 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,9 @@ yarn build ## Publishing ```bash +git clone git@github.com:vechainfoundation/vechain-dapp-kit.git +cd vechain-dapp-kit +git checkout X.Y.Z yarn install:all yarn build yarn changeset publish diff --git a/packages/dapp-kit-react/README.md b/packages/dapp-kit-react/README.md index bd306a1d..ef5fd9c1 100644 --- a/packages/dapp-kit-react/README.md +++ b/packages/dapp-kit-react/README.md @@ -91,7 +91,7 @@ const { vendor, thor } = useConnex(); - Use the `ConnectWalletButton` component to display a modal with the available wallets ```typescript jsx -import { ConnectWalletButton } from '@vechain/dapp-kit-react'; +import { ConnectButtonWithModal } from '@vechain/dapp-kit-react'; import { useWallet } from '@vechain/dapp-kit-react'; const MyComponent = (): JSX.Element => { @@ -105,7 +105,7 @@ const MyComponent = (): JSX.Element => { return ( <> - + ); }; @@ -116,11 +116,7 @@ const MyComponent = (): JSX.Element => { - Use the `ConnectWalletModal` component to display a modal with the available wallets ```typescript jsx -import { - ConnectWalletModal, - useWallet, - useWalletModal, -} from '@vechain/dapp-kit-react'; +import { useWallet, useWalletModal } from '@vechain/dapp-kit-react'; export const MyComponent = (): JSX.Element => { const { account } = useWallet(); @@ -135,7 +131,6 @@ export const MyComponent = (): JSX.Element => { return ( <> - ); }; diff --git a/packages/dapp-kit-react/package.json b/packages/dapp-kit-react/package.json index a719b0b8..7048a9ad 100644 --- a/packages/dapp-kit-react/package.json +++ b/packages/dapp-kit-react/package.json @@ -2,7 +2,6 @@ "name": "@vechain/dapp-kit-react", "version": "0.0.1", "private": false, - "repository": "https://github.com/vechainfoundation/vechain-dapp-kit", "license": "MIT", "sideEffects": false, "type": "module", diff --git a/packages/dapp-kit-ui/README.md b/packages/dapp-kit-ui/README.md index 99d000fc..b7763555 100644 --- a/packages/dapp-kit-ui/README.md +++ b/packages/dapp-kit-ui/README.md @@ -27,9 +27,7 @@ yarn add @vechain/dapp-kit-ui - In your root `main.ts` ```typescript -import type { WalletConnectOptions } from '@vechain/dapp-kit'; -import type { Options } from '@vechain/connex'; -import { configureThorModal } from '@vechain/dapp-kit-ui'; +import type { WalletConnectOptions, DAppKitOptions } from '@vechain/dapp-kit'; import { DAppKitUI } from '@vechain/dapp-kit-ui'; const walletConnectOptions: WalletConnectOptions = { diff --git a/packages/dapp-kit-ui/package.json b/packages/dapp-kit-ui/package.json index d29d82fb..69b16132 100644 --- a/packages/dapp-kit-ui/package.json +++ b/packages/dapp-kit-ui/package.json @@ -9,7 +9,6 @@ "typescript", "lit" ], - "repository": "https://github.com/vechainfoundation/vechain-dapp-kit", "license": "MIT", "author": "Davide Carpini", "type": "module", diff --git a/packages/dapp-kit/README.md b/packages/dapp-kit/README.md index 3fd41953..a9b1fc9b 100644 --- a/packages/dapp-kit/README.md +++ b/packages/dapp-kit/README.md @@ -9,6 +9,7 @@ ## Installation +- See the full doc - See the parent [README](../../README.md) for installation instructions. ### Build @@ -44,6 +45,8 @@ const walletConnectOptions: WalletConnectOptions = { error. See the next step to finalise the setup. ```typescript +import { DAppKit } from '@vechain/dapp-kit'; + const { thor, vendor, wallet } = new DAppKit({ nodeUrl: 'https://sync-testnet.vechain.org/', //Required genesis: 'main', //Optional - "main" | "test" | Connex.Thor.Block @@ -70,6 +73,12 @@ wallet.setSource('veworld'); ```typescript const {account, verified} = await wallet.connect(); -const tx = await thor.account("0x...123").method(...).transact().signer(account).request(); -const certRes = await vendor.sign("cert", {...}).requset(); +const tx = await thor.account("0x...123") + .method(...) + .transact() + .signer(account) + .request(); + +const certRes = await vendor.sign("cert", {...}) + .requset(); ``` diff --git a/packages/dapp-kit/package.json b/packages/dapp-kit/package.json index 852ff9a3..c2330f40 100644 --- a/packages/dapp-kit/package.json +++ b/packages/dapp-kit/package.json @@ -2,7 +2,6 @@ "name": "@vechain/dapp-kit", "version": "0.0.1", "private": false, - "repository": "https://github.com/vechainfoundation/vechain-dapp-kit", "type": "module", "main": "./dist/index.js", "types": "./dist/index.d.ts",