@xyo-network/xl1-blockies 4.0.12 → 4.0.14
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 +54 -39
- package/package.json +9 -38
package/README.md
CHANGED
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
[![npm-badge][]][npm-link]
|
|
6
6
|
[![license-badge][]][license-link]
|
|
7
7
|
|
|
8
|
-
> React
|
|
8
|
+
> React identicons for XL1 addresses and accounts.
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## Description
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
XL1 is the XYO Layer One blockchain protocol. This package provides deterministic
|
|
13
|
+
React identicons for XL1 addresses. It is used by the XL1 React client SDK, but
|
|
14
|
+
can be installed directly when an app only needs address avatars.
|
|
13
15
|
|
|
14
16
|
## Install
|
|
15
17
|
|
|
@@ -37,53 +39,66 @@ Using bun:
|
|
|
37
39
|
bun add @xyo-network/xl1-blockies
|
|
38
40
|
```
|
|
39
41
|
|
|
40
|
-
|
|
42
|
+
Install peer dependencies from this package's `peerDependencies` in
|
|
43
|
+
`package.json`, especially `react`, `react-dom`, and `@mui/material`.
|
|
41
44
|
|
|
42
|
-
|
|
43
|
-
- Designed to drop into MUI 7 + React 19 dApps
|
|
45
|
+
## Usage
|
|
44
46
|
|
|
45
|
-
|
|
47
|
+
Render a deterministic avatar from an address or seed:
|
|
46
48
|
|
|
47
|
-
|
|
49
|
+
```tsx
|
|
50
|
+
import { BlockiesAvatarAddress, RingsAvatarAddress } from '@xyo-network/xl1-blockies'
|
|
48
51
|
|
|
49
|
-
|
|
52
|
+
export const AccountAvatar = ({ address }: { address: string }) => (
|
|
53
|
+
<>
|
|
54
|
+
<BlockiesAvatarAddress address={address} size={32} />
|
|
55
|
+
<RingsAvatarAddress seed={address} size={32} />
|
|
56
|
+
</>
|
|
57
|
+
)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Documentation
|
|
61
|
+
|
|
62
|
+
Exports include:
|
|
63
|
+
|
|
64
|
+
- `BlockiesAvatar`, `BlockiesAvatarAddress`, and `BlockiesAvatarAddressApproved`.
|
|
65
|
+
- `RingsAvatar` and `RingsAvatarAddress`.
|
|
66
|
+
- Low-level `createIcon` and ring rendering helpers for custom avatar components.
|
|
67
|
+
|
|
68
|
+
Use `@xyo-network/xl1-react-client-sdk` when you also need wallet providers,
|
|
69
|
+
gateway hooks, and connected-account UI.
|
|
70
|
+
|
|
71
|
+
## AI Agent Skills
|
|
72
|
+
|
|
73
|
+
Install the recommended XL1/XYO skills with [Skills.sh](https://skills.sh):
|
|
50
74
|
|
|
51
75
|
```sh
|
|
52
|
-
|
|
53
|
-
xy test @xyo-network/xl1-blockies
|
|
54
|
-
xy lint @xyo-network/xl1-blockies
|
|
76
|
+
npx skills add XYOracleNetwork/xyo-skills --all
|
|
55
77
|
```
|
|
56
78
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
<td align="center" valign="top" width="120">
|
|
76
|
-
<a href="https://github.com/JoelBCarter">
|
|
77
|
-
<img src="https://github.com/JoelBCarter.png" width="80" height="80" alt="Joel Carter" /><br />
|
|
78
|
-
<sub><b>Joel Carter</b></sub>
|
|
79
|
-
</a>
|
|
80
|
-
</td>
|
|
81
|
-
</tr>
|
|
82
|
-
</table>
|
|
79
|
+
In XY toolchain repos, the equivalent convenience command is:
|
|
80
|
+
|
|
81
|
+
```sh
|
|
82
|
+
pnpm xy skills defaults
|
|
83
|
+
pnpm xy skills lint --fix
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
For XL1 work, ask your agent to use `xyo-knowledge`, `xl1-knowledge`, and
|
|
87
|
+
`xl1-patterns`. These skills cover XYO primitives, XL1 chain and gateway APIs,
|
|
88
|
+
and application patterns for XL1 dApps.
|
|
89
|
+
|
|
90
|
+
## Building Locally
|
|
91
|
+
|
|
92
|
+
```sh
|
|
93
|
+
pnpm xy build @xyo-network/xl1-blockies
|
|
94
|
+
pnpm xy test @xyo-network/xl1-blockies
|
|
95
|
+
pnpm xy lint @xyo-network/xl1-blockies
|
|
96
|
+
```
|
|
83
97
|
|
|
84
98
|
## License
|
|
85
99
|
|
|
86
|
-
See the [LICENSE](./LICENSE) file
|
|
100
|
+
See the [LICENSE](./LICENSE) file for license rights and limitations
|
|
101
|
+
(LGPL-3.0-only).
|
|
87
102
|
|
|
88
103
|
## Credits
|
|
89
104
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@xyo-network/xl1-blockies",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.14",
|
|
5
5
|
"description": "XL1 React SDK Blockies",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -39,65 +39,36 @@
|
|
|
39
39
|
"README.md"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@ariestools/sdk-react": "~11.0.
|
|
42
|
+
"@ariestools/sdk-react": "~11.0.2",
|
|
43
|
+
"@mui/icons-material": "~9.2.0"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
|
-
"@ariestools/eth-address": "~8.0.3",
|
|
46
|
-
"@ariestools/pixel": "~8.0.3",
|
|
47
46
|
"@ariestools/sdk": "~8.0.3",
|
|
48
|
-
"@
|
|
47
|
+
"@ariestools/toolchain": "~8.6.12",
|
|
48
|
+
"@ariestools/tsconfig": "~8.6.12",
|
|
49
|
+
"@ariestools/tsconfig-dom": "~8.6.12",
|
|
50
|
+
"@ariestools/tsconfig-react": "~8.6.12",
|
|
49
51
|
"@mui/material": "~9.2.0",
|
|
50
52
|
"@opentelemetry/api": "~1.9.1",
|
|
51
53
|
"@opentelemetry/sdk-trace-base": "~2.9.0",
|
|
52
|
-
"@react-spring/web": "~10.1.2",
|
|
53
54
|
"@storybook/react-vite": "~10.4.6",
|
|
54
55
|
"@types/react": "~19.2.17",
|
|
55
|
-
"@xylabs/toolchain": "~8.6.10",
|
|
56
|
-
"@xylabs/tsconfig": "~8.6.10",
|
|
57
|
-
"@xylabs/tsconfig-dom": "~8.6.10",
|
|
58
|
-
"@xylabs/tsconfig-react": "~8.6.10",
|
|
59
|
-
"async-mutex": "~0.5.0",
|
|
60
|
-
"clsx": "~2.1.1",
|
|
61
56
|
"eslint": "~10.6.0",
|
|
62
|
-
"ethers": "~6.17.0",
|
|
63
|
-
"lru-cache": "~11.5.1",
|
|
64
|
-
"md5": "~2.3.0",
|
|
65
|
-
"numeral": "~2.0.6",
|
|
66
|
-
"query-string": "~9.4.1",
|
|
67
57
|
"react": "~19.2.7",
|
|
68
58
|
"react-dom": "~19.2.7",
|
|
69
|
-
"react-router-dom": "~7.18.1",
|
|
70
|
-
"rollbar": "~3.1.0",
|
|
71
59
|
"storybook": "~10.4.6",
|
|
72
60
|
"typescript": "~6.0.3",
|
|
73
|
-
"viem": "~2.54.6",
|
|
74
61
|
"vite": "~8.1.3",
|
|
75
|
-
"zod": "~4.4.3"
|
|
76
|
-
"zustand": "~5.0.14"
|
|
62
|
+
"zod": "~4.4.3"
|
|
77
63
|
},
|
|
78
64
|
"peerDependencies": {
|
|
79
|
-
"@ariestools/eth-address": "^8.0.3",
|
|
80
|
-
"@ariestools/pixel": "^8.0.3",
|
|
81
65
|
"@ariestools/sdk": "^8.0.3",
|
|
82
|
-
"@mui/icons-material": "^9.2.0",
|
|
83
66
|
"@mui/material": "^9.2.0",
|
|
84
67
|
"@opentelemetry/api": "^1.9.1",
|
|
85
68
|
"@opentelemetry/sdk-trace-base": "^2.9.0",
|
|
86
|
-
"@react-spring/web": "^10.1.2",
|
|
87
|
-
"async-mutex": "^0.5.0",
|
|
88
|
-
"clsx": "^2.1.1",
|
|
89
|
-
"ethers": "^6.17.0",
|
|
90
|
-
"lru-cache": "^11.5.1",
|
|
91
|
-
"md5": "^2.3.0",
|
|
92
|
-
"numeral": "^2.0.6",
|
|
93
|
-
"query-string": "^9.4.1",
|
|
94
69
|
"react": "^19.2.7",
|
|
95
70
|
"react-dom": "^19.2.7",
|
|
96
|
-
"
|
|
97
|
-
"rollbar": "^3.1.0",
|
|
98
|
-
"viem": "^2.54.6",
|
|
99
|
-
"zod": "^4.4.3",
|
|
100
|
-
"zustand": "^5.0.14"
|
|
71
|
+
"zod": "^4.4.3"
|
|
101
72
|
},
|
|
102
73
|
"engines": {
|
|
103
74
|
"node": ">=22.3"
|