@echoxyz/sonar-react 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +0 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -124,7 +124,6 @@ const ExampleEntityPanel = () => {
|
|
|
124
124
|
import { useEffect } from "react";
|
|
125
125
|
import { useSonarEntity } from "./hooks/useSonarEntity";
|
|
126
126
|
import { useAccount } from "wagmi";
|
|
127
|
-
import { EntityType } from "@echoxyz/sonar-core";
|
|
128
127
|
|
|
129
128
|
export function Example() {
|
|
130
129
|
const { address, isConnected } = useAccount();
|
|
@@ -144,7 +143,6 @@ export function Example() {
|
|
|
144
143
|
const pre = await client.prePurchaseCheck({
|
|
145
144
|
saleUUID: "<your-sale-uuid>",
|
|
146
145
|
entityUUID: entity.EntityUUID,
|
|
147
|
-
entityType: EntityType.USER,
|
|
148
146
|
walletAddress: "0x1234...abcd" as `0x${string}`,
|
|
149
147
|
});
|
|
150
148
|
|
|
@@ -152,7 +150,6 @@ export function Example() {
|
|
|
152
150
|
const permit = await client.generatePurchasePermit({
|
|
153
151
|
saleUUID: "<your-sale-uuid>",
|
|
154
152
|
entityUUID: entity.EntityUUID,
|
|
155
|
-
entityType: EntityType.USER,
|
|
156
153
|
walletAddress: "0x1234...abcd" as `0x${string}`,
|
|
157
154
|
});
|
|
158
155
|
console.log(permit.Signature, permit.Permit);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@echoxyz/sonar-react",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"react": ">=18"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@echoxyz/sonar-core": "0.
|
|
19
|
+
"@echoxyz/sonar-core": "0.3.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@testing-library/react": "^16.0.0",
|