@hivemindhq/snap 1.3.0 → 1.3.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/README.md +19 -15
- package/package.json +1 -1
- package/snap.manifest.json +2 -2
package/README.md
CHANGED
|
@@ -9,9 +9,9 @@ When you're about to send a transaction to an address, the Hive Mind Snap shows
|
|
|
9
9
|
- **Trust Signals** — How many people have staked that the address is trustworthy (or not)
|
|
10
10
|
- **Aliases** — Community-assigned labels for the address
|
|
11
11
|
- **Stake Amounts** — The economic weight behind each trust signal
|
|
12
|
-
- **Your Position** —
|
|
12
|
+
- **Your Position** — Your own trust/distrust stake displayed prominently as the strongest signal
|
|
13
13
|
- **dApp Origin Trust** — Trust data for the dApp you're interacting with
|
|
14
|
-
- **
|
|
14
|
+
- **Your Trust Circle** — See which of your trusted contacts have staked on this address (sorted by stake)
|
|
15
15
|
|
|
16
16
|
This helps you make informed decisions before interacting with unknown addresses or dApps.
|
|
17
17
|
|
|
@@ -20,23 +20,24 @@ This helps you make informed decisions before interacting with unknown addresses
|
|
|
20
20
|
| Feature | Description |
|
|
21
21
|
|---------|-------------|
|
|
22
22
|
| **Transaction Insights** | `onTransaction` hook displays trust data before you sign |
|
|
23
|
+
| **Your Position** | Prominently displays your own trust/distrust stake as the strongest signal |
|
|
23
24
|
| **Trust Triple Display** | Shows support/oppose positions on `[address] has tag trustworthy` |
|
|
24
25
|
| **dApp Origin Trust** | Shows trust data for the dApp origin (transaction source) |
|
|
25
|
-
| **
|
|
26
|
+
| **Your Trust Circle** | Highlights when your trusted contacts have staked on an address (sorted by stake) |
|
|
26
27
|
| **Distribution Analysis** | Analyzes stake distribution health (concentrated vs. distributed) |
|
|
27
28
|
| **Alias Display** | Shows community-assigned aliases for addresses |
|
|
28
29
|
| **Multi-chain Support** | Works on Intuition Testnet (chain ID: 13579) and Mainnet (chain ID: 1155) |
|
|
29
30
|
| **Interactive UI** | Links to create trust signals or view more data on the web |
|
|
30
|
-
| **Persistent Cache** |
|
|
31
|
+
| **Persistent Cache** | Trust circle cached for 1 hour for optimal performance |
|
|
31
32
|
|
|
32
33
|
## Installation
|
|
33
34
|
|
|
34
|
-
### From npm
|
|
35
|
+
### From npm
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
The Snap is published to npm and can be installed directly through MetaMask:
|
|
38
|
+
|
|
39
|
+
- **Package name**: `@hivemindhq/snap`
|
|
40
|
+
- **npm**: https://www.npmjs.com/package/@hivemindhq/snap
|
|
40
41
|
|
|
41
42
|
### For Development
|
|
42
43
|
|
|
@@ -141,7 +142,8 @@ src/
|
|
|
141
142
|
├── components/ # JSX UI components
|
|
142
143
|
│ ├── Account.tsx # Destination address display
|
|
143
144
|
│ ├── Origin.tsx # dApp origin display
|
|
144
|
-
│ ├── TrustedCircle.tsx #
|
|
145
|
+
│ ├── TrustedCircle.tsx # Trust circle display
|
|
146
|
+
│ ├── UserPosition.tsx # User's own position display
|
|
145
147
|
│ ├── UnifiedFooter.tsx # Combined footer CTAs
|
|
146
148
|
│ ├── Footer/ # Account footer actions
|
|
147
149
|
│ └── OriginFooter/ # Origin footer actions
|
|
@@ -166,11 +168,13 @@ Chain settings are defined in `src/config.ts`:
|
|
|
166
168
|
|
|
167
169
|
The Snap queries the Intuition knowledge graph using these predefined atoms:
|
|
168
170
|
|
|
169
|
-
| Atom | Purpose |
|
|
170
|
-
|
|
171
|
-
| `hasTag` | Predicate for trust triples |
|
|
172
|
-
| `trustworthy` | The "trustworthy" characteristic |
|
|
173
|
-
| `hasAlias` | Predicate for alias relationships |
|
|
171
|
+
| Atom Name | Atom ID (term_id) | Purpose |
|
|
172
|
+
|-----------|-------------------|---------|
|
|
173
|
+
| `hasTag` | `0x6de69cc0ae3efe4000279b1bf365065096c8715d8180bc2a98046ee07d3356fd` | Predicate for trust triples |
|
|
174
|
+
| `trustworthy` | `0xe9c0e287737685382bd34d51090148935bdb671c98d20180b2fec15bd263f73a` | The "trustworthy" characteristic |
|
|
175
|
+
| `hasAlias` | `0xf8cfb4e3f1db08f72f255cf7afaceb4b32684a64dac0f423cdca04dd15cf4fd6` | Predicate for alias relationships |
|
|
176
|
+
|
|
177
|
+
**Note**: These atom IDs are the same on both Intuition Testnet and Mainnet, as atoms are chain-agnostic identifiers in the Intuition protocol.
|
|
174
178
|
|
|
175
179
|
## Building
|
|
176
180
|
|
package/package.json
CHANGED
package/snap.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.3.
|
|
2
|
+
"version": "1.3.1",
|
|
3
3
|
"description": "Community trust signals for every transaction, powered by Intuition.",
|
|
4
4
|
"proposedName": "Hive Mind",
|
|
5
5
|
"repository": {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "https://github.com/hivemindhq-io/snap"
|
|
8
8
|
},
|
|
9
9
|
"source": {
|
|
10
|
-
"shasum": "
|
|
10
|
+
"shasum": "SU005Ag236ZhGi7A98hvfLt2540oJ/vSN8p+06BWrl4=",
|
|
11
11
|
"location": {
|
|
12
12
|
"npm": {
|
|
13
13
|
"filePath": "dist/bundle.js",
|