diff --git a/.changeset/friendly-bobcats-repeat.md b/.changeset/friendly-bobcats-repeat.md
new file mode 100644
index 0000000..91d574d
--- /dev/null
+++ b/.changeset/friendly-bobcats-repeat.md
@@ -0,0 +1,6 @@
+---
+"@wallet01/react": patch
+"@wallet01/core": patch
+---
+
+adding isAutoConnecting variable
diff --git a/.changeset/gold-icons-tap.md b/.changeset/gold-icons-tap.md
new file mode 100644
index 0000000..409843e
--- /dev/null
+++ b/.changeset/gold-icons-tap.md
@@ -0,0 +1,5 @@
+---
+"@wallet01/react": patch
+---
+
+add onsuccessful connect option
diff --git a/.changeset/happy-gifts-tap.md b/.changeset/happy-gifts-tap.md
new file mode 100644
index 0000000..667223d
--- /dev/null
+++ b/.changeset/happy-gifts-tap.md
@@ -0,0 +1,5 @@
+---
+"@wallet01/react": patch
+---
+
+build then publish
diff --git a/.changeset/happy-schools-add.md b/.changeset/happy-schools-add.md
new file mode 100644
index 0000000..e8b4719
--- /dev/null
+++ b/.changeset/happy-schools-add.md
@@ -0,0 +1,10 @@
+---
+"@wallet01/react": major
+"@wallet01/core": major
+"@wallet01/cosmos": minor
+"@wallet01/solana": minor
+"@wallet01/tezos": minor
+"@wallet01/evm": minor
+---
+
+New events based architecture Wallet01; updated connectors and react package
diff --git a/.changeset/long-yaks-rescue.md b/.changeset/long-yaks-rescue.md
new file mode 100644
index 0000000..6d10657
--- /dev/null
+++ b/.changeset/long-yaks-rescue.md
@@ -0,0 +1,5 @@
+---
+"@wallet01/react": patch
+---
+
+removing listeners in useEffect
diff --git a/.changeset/pink-lions-cry.md b/.changeset/pink-lions-cry.md
new file mode 100644
index 0000000..096c26d
--- /dev/null
+++ b/.changeset/pink-lions-cry.md
@@ -0,0 +1,5 @@
+---
+"@wallet01/react": patch
+---
+
+Adding alternative way of handling event listeners
diff --git a/.changeset/pre.json b/.changeset/pre.json
new file mode 100644
index 0000000..96a0cee
--- /dev/null
+++ b/.changeset/pre.json
@@ -0,0 +1,28 @@
+{
+ "mode": "pre",
+ "tag": "beta",
+ "initialVersions": {
+ "eslint-config-custom": "0.0.0",
+ "tsconfig": "0.0.0",
+ "example-nextjs": "0.1.40-beta.4",
+ "exmaple-vite-react": "0.0.41",
+ "@wallet01/core": "0.6.5",
+ "@wallet01/cosmos": "0.7.5",
+ "@wallet01/evm": "0.11.1",
+ "@wallet01/react": "0.8.7",
+ "@wallet01/solana": "0.6.6",
+ "@wallet01/tezos": "0.2.1"
+ },
+ "changesets": [
+ "friendly-bobcats-repeat",
+ "gold-icons-tap",
+ "happy-gifts-tap",
+ "happy-schools-add",
+ "long-yaks-rescue",
+ "pink-lions-cry",
+ "real-seals-stare",
+ "shy-turtles-flash",
+ "six-bees-whisper",
+ "smart-cups-judge"
+ ]
+}
diff --git a/.changeset/real-seals-stare.md b/.changeset/real-seals-stare.md
new file mode 100644
index 0000000..d34c041
--- /dev/null
+++ b/.changeset/real-seals-stare.md
@@ -0,0 +1,5 @@
+---
+"@wallet01/evm": patch
+---
+
+Adding metamask connector
diff --git a/.changeset/shy-turtles-flash.md b/.changeset/shy-turtles-flash.md
new file mode 100644
index 0000000..069d3c4
--- /dev/null
+++ b/.changeset/shy-turtles-flash.md
@@ -0,0 +1,5 @@
+---
+"@wallet01/react": patch
+---
+
+updating client error with hook name
diff --git a/.changeset/six-bees-whisper.md b/.changeset/six-bees-whisper.md
new file mode 100644
index 0000000..bf8cd02
--- /dev/null
+++ b/.changeset/six-bees-whisper.md
@@ -0,0 +1,5 @@
+---
+"@wallet01/react": patch
+---
+
+adding succes handlers to all the hooks
diff --git a/.changeset/smart-cups-judge.md b/.changeset/smart-cups-judge.md
new file mode 100644
index 0000000..3ad0f96
--- /dev/null
+++ b/.changeset/smart-cups-judge.md
@@ -0,0 +1,5 @@
+---
+"@wallet01/react": patch
+---
+
+removing unnecesary errors
diff --git a/.eslintrc.js b/.eslintrc.js
index a2845bf..7d48c6d 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,10 +1,10 @@
module.exports = {
root: true,
// This tells ESLint to load the config from the package `eslint-config-custom`
- extends: ['custom'],
+ extends: ["custom"],
settings: {
next: {
- rootDir: ['apps/*/'],
+ rootDir: ["examples/*/", "packages/*/"],
},
},
};
diff --git a/examples/nextjs/components/ConnectButtons.tsx b/examples/nextjs/components/ConnectButtons.tsx
index 0de0197..c3c3247 100644
--- a/examples/nextjs/components/ConnectButtons.tsx
+++ b/examples/nextjs/components/ConnectButtons.tsx
@@ -3,18 +3,14 @@ import { toast } from "react-hot-toast";
import WalletIcons from "./assets/WalletIcons";
const ConnectButtons = () => {
- const { connectors, isAutoConnecting } = useClient();
- const { activeConnector, isConnected, did, address } = useWallet();
+ const { connectors } = useClient();
+ const { activeConnector, isConnected } = useWallet();
const { connect, isError, error } = useConnect();
if (isError && error) {
toast.error(error.message);
}
- if (isAutoConnecting) {
- console.log("isAutoConnecting");
- }
-
return (
diff --git a/examples/nextjs/components/ConnectedModal.tsx b/examples/nextjs/components/ConnectedModal.tsx
index 5485aca..c590723 100644
--- a/examples/nextjs/components/ConnectedModal.tsx
+++ b/examples/nextjs/components/ConnectedModal.tsx
@@ -1,15 +1,21 @@
-import { useClient, useMessage, useSwitch, useWallet } from "@wallet01/react";
+import {
+ useClient,
+ useDisconnect,
+ useMessage,
+ useSwitch,
+ useWallet,
+} from "@wallet01/react";
import React, { useState } from "react";
import WalletIcons from "./assets/WalletIcons";
-import { BeaconConnector } from "@wallet01/tezos";
const ConnectedModal = () => {
const [message, setMessage] = useState("");
const [chainId, setChainId] = useState("");
- const { did, activeConnector, address, disconnect } = useWallet();
+ const { activeConnector, address, chainId: cId } = useWallet();
const { signMessage, hash } = useMessage();
+ const { disconnect } = useDisconnect();
const { switchChain } = useSwitch();
- const { activeChain } = useClient();
+ const { ecosystem } = useClient();
return (
@@ -19,18 +25,9 @@ const ConnectedModal = () => {
- {activeChain ? (
-
- Connected to {activeChain}
-
+ {ecosystem ? (
+
Connected to {ecosystem}
) : null}
- {did ? (
-
- Hello, {did}
-
- ) : (
- ""
- )}
{address ? (
Address:
@@ -39,9 +36,15 @@ const ConnectedModal = () => {
) : (
""
)}
- {activeConnector?.name === "beacon" ? (
+ {
+
+ ChainId:
+ {cId}
+
+ }
+ {/* {activeConnector?.name === "beacon" ? (
{BeaconConnector.publicKey}
- ) : null}
+ ) : null} */}