@xyo-network/diviner-address-chain-model 5.3.25 → 5.3.26
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 +230 -10
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -1,23 +1,243 @@
|
|
|
1
|
+
[![logo][]](https://xyo.network)
|
|
2
|
+
|
|
1
3
|
# @xyo-network/diviner-address-chain-model
|
|
2
4
|
|
|
3
|
-
[![
|
|
5
|
+
[![npm][npm-badge]][npm-link]
|
|
6
|
+
[![license][license-badge]][license-link]
|
|
7
|
+
|
|
8
|
+
> Primary SDK for using XYO Protocol 2.0
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
Using npm:
|
|
4
13
|
|
|
5
|
-
|
|
14
|
+
```sh
|
|
15
|
+
npm install {{name}}
|
|
16
|
+
```
|
|
6
17
|
|
|
7
|
-
|
|
18
|
+
Using yarn:
|
|
8
19
|
|
|
9
|
-
|
|
20
|
+
```sh
|
|
21
|
+
yarn add {{name}}
|
|
22
|
+
```
|
|
10
23
|
|
|
11
|
-
|
|
24
|
+
Using pnpm:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
pnpm add {{name}}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Using bun:
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
bun add {{name}}
|
|
34
|
+
```
|
|
12
35
|
|
|
13
|
-
Part of [sdk-xyo-client-js](https://www.npmjs.com/package/@xyo-network/sdk-xyo-client-js)
|
|
14
36
|
|
|
15
37
|
## License
|
|
16
38
|
|
|
17
|
-
|
|
39
|
+
See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
|
|
40
|
+
|
|
41
|
+
## Reference
|
|
42
|
+
|
|
43
|
+
### packages
|
|
44
|
+
|
|
45
|
+
### modules
|
|
46
|
+
|
|
47
|
+
### packages
|
|
48
|
+
|
|
49
|
+
### diviner
|
|
50
|
+
|
|
51
|
+
### packages
|
|
52
|
+
|
|
53
|
+
### addresschain
|
|
54
|
+
|
|
55
|
+
### packages
|
|
56
|
+
|
|
57
|
+
### model
|
|
58
|
+
|
|
59
|
+
### .temp-typedoc
|
|
60
|
+
|
|
61
|
+
### functions
|
|
62
|
+
|
|
63
|
+
### <a id="isAddressChainPayload"></a>isAddressChainPayload
|
|
64
|
+
|
|
65
|
+
[**@xyo-network/diviner-address-chain-model**](#../README)
|
|
66
|
+
|
|
67
|
+
***
|
|
68
|
+
|
|
69
|
+
```ts
|
|
70
|
+
function isAddressChainPayload(x?): x is AddressChainPayload;
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Parameters
|
|
74
|
+
|
|
75
|
+
### x?
|
|
76
|
+
|
|
77
|
+
`Payload` \| `null`
|
|
78
|
+
|
|
79
|
+
## Returns
|
|
80
|
+
|
|
81
|
+
`x is AddressChainPayload`
|
|
82
|
+
|
|
83
|
+
### type-aliases
|
|
84
|
+
|
|
85
|
+
### <a id="AddressChainDivinerConfig"></a>AddressChainDivinerConfig
|
|
86
|
+
|
|
87
|
+
[**@xyo-network/diviner-address-chain-model**](#../README)
|
|
88
|
+
|
|
89
|
+
***
|
|
90
|
+
|
|
91
|
+
```ts
|
|
92
|
+
type AddressChainDivinerConfig = DivinerConfig<{
|
|
93
|
+
address?: Address;
|
|
94
|
+
maxResults?: number;
|
|
95
|
+
schema: AddressChainDivinerConfigSchema;
|
|
96
|
+
startHash?: Hash;
|
|
97
|
+
}>;
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### <a id="AddressChainDivinerConfigSchema"></a>AddressChainDivinerConfigSchema
|
|
101
|
+
|
|
102
|
+
[**@xyo-network/diviner-address-chain-model**](#../README)
|
|
103
|
+
|
|
104
|
+
***
|
|
105
|
+
|
|
106
|
+
```ts
|
|
107
|
+
type AddressChainDivinerConfigSchema = typeof AddressChainDivinerConfigSchema;
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### <a id="AddressChainDivinerParams"></a>AddressChainDivinerParams
|
|
111
|
+
|
|
112
|
+
[**@xyo-network/diviner-address-chain-model**](#../README)
|
|
113
|
+
|
|
114
|
+
***
|
|
115
|
+
|
|
116
|
+
```ts
|
|
117
|
+
type AddressChainDivinerParams = DivinerParams<AnyConfigSchema<AddressChainDivinerConfig>>;
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### <a id="AddressChainPayload"></a>AddressChainPayload
|
|
121
|
+
|
|
122
|
+
[**@xyo-network/diviner-address-chain-model**](#../README)
|
|
123
|
+
|
|
124
|
+
***
|
|
125
|
+
|
|
126
|
+
```ts
|
|
127
|
+
type AddressChainPayload = Payload<{
|
|
128
|
+
schema: AddressChainSchema;
|
|
129
|
+
}>;
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### <a id="AddressChainQueryPayload"></a>AddressChainQueryPayload
|
|
133
|
+
|
|
134
|
+
[**@xyo-network/diviner-address-chain-model**](#../README)
|
|
135
|
+
|
|
136
|
+
***
|
|
137
|
+
|
|
138
|
+
```ts
|
|
139
|
+
type AddressChainQueryPayload = Query<object & Omit<PayloadFindFilter, "schema">>;
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### <a id="AddressChainQuerySchema"></a>AddressChainQuerySchema
|
|
143
|
+
|
|
144
|
+
[**@xyo-network/diviner-address-chain-model**](#../README)
|
|
145
|
+
|
|
146
|
+
***
|
|
147
|
+
|
|
148
|
+
```ts
|
|
149
|
+
type AddressChainQuerySchema = typeof AddressChainQuerySchema;
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### <a id="AddressChainSchema"></a>AddressChainSchema
|
|
153
|
+
|
|
154
|
+
[**@xyo-network/diviner-address-chain-model**](#../README)
|
|
155
|
+
|
|
156
|
+
***
|
|
157
|
+
|
|
158
|
+
```ts
|
|
159
|
+
type AddressChainSchema = typeof AddressChainSchema;
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### variables
|
|
163
|
+
|
|
164
|
+
### <a id="AddressChainDivinerConfigSchema"></a>AddressChainDivinerConfigSchema
|
|
165
|
+
|
|
166
|
+
[**@xyo-network/diviner-address-chain-model**](#../README)
|
|
167
|
+
|
|
168
|
+
***
|
|
169
|
+
|
|
170
|
+
```ts
|
|
171
|
+
const AddressChainDivinerConfigSchema: string & object;
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
## Type Declaration
|
|
175
|
+
|
|
176
|
+
### \_\_schema
|
|
177
|
+
|
|
178
|
+
```ts
|
|
179
|
+
readonly __schema: true;
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### <a id="AddressChainQuerySchema"></a>AddressChainQuerySchema
|
|
183
|
+
|
|
184
|
+
[**@xyo-network/diviner-address-chain-model**](#../README)
|
|
185
|
+
|
|
186
|
+
***
|
|
187
|
+
|
|
188
|
+
```ts
|
|
189
|
+
const AddressChainQuerySchema: string & object;
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## Type Declaration
|
|
193
|
+
|
|
194
|
+
### \_\_schema
|
|
195
|
+
|
|
196
|
+
```ts
|
|
197
|
+
readonly __schema: true;
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### <a id="AddressChainSchema"></a>AddressChainSchema
|
|
201
|
+
|
|
202
|
+
[**@xyo-network/diviner-address-chain-model**](#../README)
|
|
203
|
+
|
|
204
|
+
***
|
|
205
|
+
|
|
206
|
+
```ts
|
|
207
|
+
const AddressChainSchema: "network.xyo.diviner.address.chain" & object;
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
## Type Declaration
|
|
211
|
+
|
|
212
|
+
### \_\_schema
|
|
213
|
+
|
|
214
|
+
```ts
|
|
215
|
+
readonly __schema: true;
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### <a id="isAddressChainQueryPayload"></a>isAddressChainQueryPayload
|
|
219
|
+
|
|
220
|
+
[**@xyo-network/diviner-address-chain-model**](#../README)
|
|
221
|
+
|
|
222
|
+
***
|
|
223
|
+
|
|
224
|
+
```ts
|
|
225
|
+
const isAddressChainQueryPayload: (x?) => x is AddressChainQueryPayload;
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
## Parameters
|
|
229
|
+
|
|
230
|
+
### x?
|
|
231
|
+
|
|
232
|
+
`unknown`
|
|
233
|
+
|
|
234
|
+
## Returns
|
|
18
235
|
|
|
19
|
-
|
|
236
|
+
`x is AddressChainQueryPayload`
|
|
20
237
|
|
|
21
|
-
[Made with 🔥 and ❄️ by XYO](https://xyo.network)
|
|
22
238
|
|
|
23
|
-
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
239
|
+
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
240
|
+
[npm-badge]: https://img.shields.io/npm/v/@xyo-network/diviner-address-chain-model.svg
|
|
241
|
+
[npm-link]: https://www.npmjs.com/package/@xyo-network/diviner-address-chain-model
|
|
242
|
+
[license-badge]: https://img.shields.io/npm/l/@xyo-network/diviner-address-chain-model.svg
|
|
243
|
+
[license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-address-chain-model",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.26",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
24
|
"types": "./dist/neutral/index.d.ts",
|
|
25
|
+
"import": "./dist/neutral/index.mjs",
|
|
25
26
|
"default": "./dist/neutral/index.mjs"
|
|
26
27
|
},
|
|
27
28
|
"./package.json": "./package.json"
|
|
28
29
|
},
|
|
29
|
-
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"files": [
|
|
32
32
|
"dist",
|
|
@@ -36,25 +36,25 @@
|
|
|
36
36
|
"README.md"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@xyo-network/diviner-model": "~5.3.
|
|
40
|
-
"@xyo-network/
|
|
41
|
-
"@xyo-network/
|
|
39
|
+
"@xyo-network/diviner-model": "~5.3.26",
|
|
40
|
+
"@xyo-network/module-model": "~5.3.26",
|
|
41
|
+
"@xyo-network/payload-model": "~5.3.26"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@opentelemetry/api": "^1.9.1",
|
|
45
|
-
"@types/node": "^25.5.
|
|
46
|
-
"@xylabs/sdk-js": "^5.0.
|
|
47
|
-
"@xylabs/ts-scripts-common": "~7.
|
|
48
|
-
"@xylabs/ts-scripts-pnpm": "~7.
|
|
49
|
-
"@xylabs/tsconfig": "~7.
|
|
45
|
+
"@types/node": "^25.5.2",
|
|
46
|
+
"@xylabs/sdk-js": "^5.0.94",
|
|
47
|
+
"@xylabs/ts-scripts-common": "~7.7.5",
|
|
48
|
+
"@xylabs/ts-scripts-pnpm": "~7.7.5",
|
|
49
|
+
"@xylabs/tsconfig": "~7.7.5",
|
|
50
50
|
"acorn": "^8.16.0",
|
|
51
51
|
"axios": "^1.14.0",
|
|
52
52
|
"esbuild": "^0.28.0",
|
|
53
53
|
"typescript": "~5.9.3",
|
|
54
54
|
"zod": "^4.3.6",
|
|
55
|
-
"@xyo-network/
|
|
56
|
-
"@xyo-network/
|
|
57
|
-
"@xyo-network/
|
|
55
|
+
"@xyo-network/module-model": "~5.3.26",
|
|
56
|
+
"@xyo-network/payload-model": "~5.3.26",
|
|
57
|
+
"@xyo-network/diviner-model": "~5.3.26"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@xylabs/sdk-js": "^5"
|