@xyo-network/xl1-rpc 1.7.11 → 1.7.12
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 +539 -261
- package/dist/neutral/engine/rpcMethodHandlersFromSigner.d.ts.map +1 -1
- package/dist/neutral/index.mjs +206 -91
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/provider/host/Abstract.d.ts +13 -0
- package/dist/neutral/provider/host/Abstract.d.ts.map +1 -0
- package/dist/neutral/provider/host/JsonRpcXyoGateway.d.ts +2 -11
- package/dist/neutral/provider/host/JsonRpcXyoGateway.d.ts.map +1 -1
- package/dist/neutral/provider/host/MemoryXyoGateway.d.ts +22 -0
- package/dist/neutral/provider/host/MemoryXyoGateway.d.ts.map +1 -0
- package/dist/neutral/provider/host/PermissionsStore.d.ts +8 -0
- package/dist/neutral/provider/host/PermissionsStore.d.ts.map +1 -0
- package/dist/neutral/provider/host/getPermissionsStoreFromTransport.d.ts +5 -0
- package/dist/neutral/provider/host/getPermissionsStoreFromTransport.d.ts.map +1 -0
- package/dist/neutral/provider/host/index.d.ts +3 -0
- package/dist/neutral/provider/host/index.d.ts.map +1 -1
- package/dist/neutral/provider/provider/XyoConnection.d.ts +6 -9
- package/dist/neutral/provider/provider/XyoConnection.d.ts.map +1 -1
- package/dist/neutral/provider/signer/JsonRpcXyoSigner.d.ts +9 -2
- package/dist/neutral/provider/signer/JsonRpcXyoSigner.d.ts.map +1 -1
- package/dist/neutral/provider/signer/MemoryXyoSigner.d.ts +3 -1
- package/dist/neutral/provider/signer/MemoryXyoSigner.d.ts.map +1 -1
- package/dist/neutral/transport/HttpRpcTransport.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoSignerRpcSchemas.d.ts.map +1 -1
- package/dist/node/engine/rpcMethodHandlersFromSigner.d.ts.map +1 -1
- package/dist/node/index-node.mjs +208 -93
- package/dist/node/index-node.mjs.map +1 -1
- package/dist/node/provider/host/Abstract.d.ts +13 -0
- package/dist/node/provider/host/Abstract.d.ts.map +1 -0
- package/dist/node/provider/host/JsonRpcXyoGateway.d.ts +2 -11
- package/dist/node/provider/host/JsonRpcXyoGateway.d.ts.map +1 -1
- package/dist/node/provider/host/MemoryXyoGateway.d.ts +22 -0
- package/dist/node/provider/host/MemoryXyoGateway.d.ts.map +1 -0
- package/dist/node/provider/host/PermissionsStore.d.ts +8 -0
- package/dist/node/provider/host/PermissionsStore.d.ts.map +1 -0
- package/dist/node/provider/host/getPermissionsStoreFromTransport.d.ts +5 -0
- package/dist/node/provider/host/getPermissionsStoreFromTransport.d.ts.map +1 -0
- package/dist/node/provider/host/index.d.ts +3 -0
- package/dist/node/provider/host/index.d.ts.map +1 -1
- package/dist/node/provider/provider/XyoConnection.d.ts +6 -9
- package/dist/node/provider/provider/XyoConnection.d.ts.map +1 -1
- package/dist/node/provider/signer/JsonRpcXyoSigner.d.ts +9 -2
- package/dist/node/provider/signer/JsonRpcXyoSigner.d.ts.map +1 -1
- package/dist/node/provider/signer/MemoryXyoSigner.d.ts +3 -1
- package/dist/node/provider/signer/MemoryXyoSigner.d.ts.map +1 -1
- package/dist/node/transport/HttpRpcTransport.d.ts.map +1 -1
- package/dist/node/types/schema/XyoSignerRpcSchemas.d.ts.map +1 -1
- package/package.json +26 -25
- package/src/engine/rpcMethodHandlersFromSigner.ts +1 -0
- package/src/provider/host/Abstract.ts +30 -0
- package/src/provider/host/JsonRpcXyoGateway.ts +2 -28
- package/src/provider/host/MemoryXyoGateway.ts +84 -0
- package/src/provider/host/PermissionsStore.ts +8 -0
- package/src/provider/host/getPermissionsStoreFromTransport.ts +13 -0
- package/src/provider/host/index.ts +3 -0
- package/src/provider/provider/XyoConnection.ts +20 -10
- package/src/provider/signer/JsonRpcXyoSigner.ts +13 -2
- package/src/provider/signer/MemoryXyoSigner.ts +6 -1
- package/src/provider/signer/spec/RpcEngineXyoSigner.spec.ts +2 -2
- package/src/transport/HttpRpcTransport.ts +25 -16
- package/src/types/schema/XyoSignerRpcSchemas.ts +14 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
XYO Layer One API
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
|
|
15
15
|
## Reference
|
|
16
16
|
|
|
@@ -29,6 +29,186 @@ XYO Layer One API
|
|
|
29
29
|
|
|
30
30
|
### classes
|
|
31
31
|
|
|
32
|
+
### <a id="AbstractXyoGateway"></a>AbstractXyoGateway
|
|
33
|
+
|
|
34
|
+
[**@xyo-network/xl1-rpc**](#../../README)
|
|
35
|
+
|
|
36
|
+
***
|
|
37
|
+
|
|
38
|
+
## Extended by
|
|
39
|
+
|
|
40
|
+
- [`JsonRpcXyoGateway`](#JsonRpcXyoGateway)
|
|
41
|
+
|
|
42
|
+
## Implements
|
|
43
|
+
|
|
44
|
+
- `XyoGatewayProvider`
|
|
45
|
+
|
|
46
|
+
## Constructors
|
|
47
|
+
|
|
48
|
+
### Constructor
|
|
49
|
+
|
|
50
|
+
```ts
|
|
51
|
+
new AbstractXyoGateway(): AbstractXyoGateway;
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Returns
|
|
55
|
+
|
|
56
|
+
`AbstractXyoGateway`
|
|
57
|
+
|
|
58
|
+
## Methods
|
|
59
|
+
|
|
60
|
+
### submitTransaction()
|
|
61
|
+
|
|
62
|
+
```ts
|
|
63
|
+
submitTransaction(elevatedPayloads, additionalPayloads): Promise<HydratedTransaction>;
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Parameters
|
|
67
|
+
|
|
68
|
+
#### elevatedPayloads
|
|
69
|
+
|
|
70
|
+
`AllowedBlockPayload`[]
|
|
71
|
+
|
|
72
|
+
#### additionalPayloads
|
|
73
|
+
|
|
74
|
+
`Payload`[]
|
|
75
|
+
|
|
76
|
+
### Returns
|
|
77
|
+
|
|
78
|
+
`Promise`\<`HydratedTransaction`\>
|
|
79
|
+
|
|
80
|
+
### Implementation of
|
|
81
|
+
|
|
82
|
+
```ts
|
|
83
|
+
XyoGatewayProvider.submitTransaction
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
***
|
|
87
|
+
|
|
88
|
+
### activeConnection()
|
|
89
|
+
|
|
90
|
+
```ts
|
|
91
|
+
abstract activeConnection(): Promisable<undefined | XyoConnectionProvider>;
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Returns
|
|
95
|
+
|
|
96
|
+
`Promisable`\<`undefined` \| `XyoConnectionProvider`\>
|
|
97
|
+
|
|
98
|
+
### Implementation of
|
|
99
|
+
|
|
100
|
+
```ts
|
|
101
|
+
XyoGatewayProvider.activeConnection
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
***
|
|
105
|
+
|
|
106
|
+
### addConnection()
|
|
107
|
+
|
|
108
|
+
```ts
|
|
109
|
+
abstract addConnection(config): Promisable<XyoConnectionProvider>;
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Parameters
|
|
113
|
+
|
|
114
|
+
#### config
|
|
115
|
+
|
|
116
|
+
`XyoRpcConnectionConfig`
|
|
117
|
+
|
|
118
|
+
### Returns
|
|
119
|
+
|
|
120
|
+
`Promisable`\<`XyoConnectionProvider`\>
|
|
121
|
+
|
|
122
|
+
### Implementation of
|
|
123
|
+
|
|
124
|
+
```ts
|
|
125
|
+
XyoGatewayProvider.addConnection
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
***
|
|
129
|
+
|
|
130
|
+
### connections()
|
|
131
|
+
|
|
132
|
+
```ts
|
|
133
|
+
abstract connections(): Promisable<Record<string, XyoConnectionProvider>>;
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Returns
|
|
137
|
+
|
|
138
|
+
`Promisable`\<`Record`\<`string`, `XyoConnectionProvider`\>\>
|
|
139
|
+
|
|
140
|
+
### Implementation of
|
|
141
|
+
|
|
142
|
+
```ts
|
|
143
|
+
XyoGatewayProvider.connections
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
***
|
|
147
|
+
|
|
148
|
+
### getPermissions()
|
|
149
|
+
|
|
150
|
+
```ts
|
|
151
|
+
abstract getPermissions(): Promisable<InvokerPermission[]>;
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Returns
|
|
155
|
+
|
|
156
|
+
`Promisable`\<`InvokerPermission`[]\>
|
|
157
|
+
|
|
158
|
+
### Implementation of
|
|
159
|
+
|
|
160
|
+
```ts
|
|
161
|
+
XyoGatewayProvider.getPermissions
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
***
|
|
165
|
+
|
|
166
|
+
### requestPermissions()
|
|
167
|
+
|
|
168
|
+
```ts
|
|
169
|
+
abstract requestPermissions(permissions): Promisable<boolean>;
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### Parameters
|
|
173
|
+
|
|
174
|
+
#### permissions
|
|
175
|
+
|
|
176
|
+
`Permission`[]
|
|
177
|
+
|
|
178
|
+
### Returns
|
|
179
|
+
|
|
180
|
+
`Promisable`\<`boolean`\>
|
|
181
|
+
|
|
182
|
+
### Implementation of
|
|
183
|
+
|
|
184
|
+
```ts
|
|
185
|
+
XyoGatewayProvider.requestPermissions
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
***
|
|
189
|
+
|
|
190
|
+
### revokePermissions()
|
|
191
|
+
|
|
192
|
+
```ts
|
|
193
|
+
abstract revokePermissions(permissions): Promisable<boolean>;
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Parameters
|
|
197
|
+
|
|
198
|
+
#### permissions
|
|
199
|
+
|
|
200
|
+
`Permission`[]
|
|
201
|
+
|
|
202
|
+
### Returns
|
|
203
|
+
|
|
204
|
+
`Promisable`\<`boolean`\>
|
|
205
|
+
|
|
206
|
+
### Implementation of
|
|
207
|
+
|
|
208
|
+
```ts
|
|
209
|
+
XyoGatewayProvider.revokePermissions
|
|
210
|
+
```
|
|
211
|
+
|
|
32
212
|
### <a id="HttpRpcTransport"></a>HttpRpcTransport
|
|
33
213
|
|
|
34
214
|
[**@xyo-network/xl1-rpc**](#../../README)
|
|
@@ -121,9 +301,9 @@ sendRequest<TMethod>(method, params?): Promise<TypeOf<T[TMethod]["result"]["from
|
|
|
121
301
|
|
|
122
302
|
***
|
|
123
303
|
|
|
124
|
-
##
|
|
304
|
+
## Extends
|
|
125
305
|
|
|
126
|
-
- `
|
|
306
|
+
- [`AbstractXyoGateway`](#AbstractXyoGateway)
|
|
127
307
|
|
|
128
308
|
## Constructors
|
|
129
309
|
|
|
@@ -150,8 +330,38 @@ new JsonRpcXyoGateway(transport): JsonRpcXyoGateway;
|
|
|
150
330
|
|
|
151
331
|
`JsonRpcXyoGateway`
|
|
152
332
|
|
|
333
|
+
### Overrides
|
|
334
|
+
|
|
335
|
+
[`AbstractXyoGateway`](#AbstractXyoGateway).[`constructor`](AbstractXyoGateway.md#constructor)
|
|
336
|
+
|
|
153
337
|
## Methods
|
|
154
338
|
|
|
339
|
+
### submitTransaction()
|
|
340
|
+
|
|
341
|
+
```ts
|
|
342
|
+
submitTransaction(elevatedPayloads, additionalPayloads): Promise<HydratedTransaction>;
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
### Parameters
|
|
346
|
+
|
|
347
|
+
#### elevatedPayloads
|
|
348
|
+
|
|
349
|
+
`AllowedBlockPayload`[]
|
|
350
|
+
|
|
351
|
+
#### additionalPayloads
|
|
352
|
+
|
|
353
|
+
`Payload`[]
|
|
354
|
+
|
|
355
|
+
### Returns
|
|
356
|
+
|
|
357
|
+
`Promise`\<`HydratedTransaction`\>
|
|
358
|
+
|
|
359
|
+
### Inherited from
|
|
360
|
+
|
|
361
|
+
[`AbstractXyoGateway`](#AbstractXyoGateway).[`submitTransaction`](AbstractXyoGateway.md#submittransaction)
|
|
362
|
+
|
|
363
|
+
***
|
|
364
|
+
|
|
155
365
|
### activeConnection()
|
|
156
366
|
|
|
157
367
|
```ts
|
|
@@ -162,11 +372,9 @@ activeConnection(): Promisable<undefined | XyoConnectionProvider>;
|
|
|
162
372
|
|
|
163
373
|
`Promisable`\<`undefined` \| `XyoConnectionProvider`\>
|
|
164
374
|
|
|
165
|
-
###
|
|
375
|
+
### Overrides
|
|
166
376
|
|
|
167
|
-
|
|
168
|
-
XyoGatewayProvider.activeConnection
|
|
169
|
-
```
|
|
377
|
+
[`AbstractXyoGateway`](#AbstractXyoGateway).[`activeConnection`](AbstractXyoGateway.md#activeconnection)
|
|
170
378
|
|
|
171
379
|
***
|
|
172
380
|
|
|
@@ -186,11 +394,9 @@ addConnection(_config): Promisable<XyoConnectionProvider>;
|
|
|
186
394
|
|
|
187
395
|
`Promisable`\<`XyoConnectionProvider`\>
|
|
188
396
|
|
|
189
|
-
###
|
|
397
|
+
### Overrides
|
|
190
398
|
|
|
191
|
-
|
|
192
|
-
XyoGatewayProvider.addConnection
|
|
193
|
-
```
|
|
399
|
+
[`AbstractXyoGateway`](#AbstractXyoGateway).[`addConnection`](AbstractXyoGateway.md#addconnection)
|
|
194
400
|
|
|
195
401
|
***
|
|
196
402
|
|
|
@@ -204,11 +410,9 @@ connections(): Promisable<Record<string, XyoConnectionProvider>>;
|
|
|
204
410
|
|
|
205
411
|
`Promisable`\<`Record`\<`string`, `XyoConnectionProvider`\>\>
|
|
206
412
|
|
|
207
|
-
###
|
|
413
|
+
### Overrides
|
|
208
414
|
|
|
209
|
-
|
|
210
|
-
XyoGatewayProvider.connections
|
|
211
|
-
```
|
|
415
|
+
[`AbstractXyoGateway`](#AbstractXyoGateway).[`connections`](AbstractXyoGateway.md#connections)
|
|
212
416
|
|
|
213
417
|
***
|
|
214
418
|
|
|
@@ -222,11 +426,9 @@ getPermissions(): Promisable<InvokerPermission[]>;
|
|
|
222
426
|
|
|
223
427
|
`Promisable`\<`InvokerPermission`[]\>
|
|
224
428
|
|
|
225
|
-
###
|
|
429
|
+
### Overrides
|
|
226
430
|
|
|
227
|
-
|
|
228
|
-
XyoGatewayProvider.getPermissions
|
|
229
|
-
```
|
|
431
|
+
[`AbstractXyoGateway`](#AbstractXyoGateway).[`getPermissions`](AbstractXyoGateway.md#getpermissions)
|
|
230
432
|
|
|
231
433
|
***
|
|
232
434
|
|
|
@@ -246,11 +448,9 @@ requestPermissions(permissions): Promisable<boolean>;
|
|
|
246
448
|
|
|
247
449
|
`Promisable`\<`boolean`\>
|
|
248
450
|
|
|
249
|
-
###
|
|
451
|
+
### Overrides
|
|
250
452
|
|
|
251
|
-
|
|
252
|
-
XyoGatewayProvider.requestPermissions
|
|
253
|
-
```
|
|
453
|
+
[`AbstractXyoGateway`](#AbstractXyoGateway).[`requestPermissions`](AbstractXyoGateway.md#requestpermissions)
|
|
254
454
|
|
|
255
455
|
***
|
|
256
456
|
|
|
@@ -270,35 +470,9 @@ revokePermissions(permissions): Promisable<boolean>;
|
|
|
270
470
|
|
|
271
471
|
`Promisable`\<`boolean`\>
|
|
272
472
|
|
|
273
|
-
###
|
|
274
|
-
|
|
275
|
-
```ts
|
|
276
|
-
XyoGatewayProvider.revokePermissions
|
|
277
|
-
```
|
|
278
|
-
|
|
279
|
-
***
|
|
280
|
-
|
|
281
|
-
### submitTransaction()
|
|
282
|
-
|
|
283
|
-
```ts
|
|
284
|
-
submitTransaction(tx): Promise<Lowercase<string>>;
|
|
285
|
-
```
|
|
286
|
-
|
|
287
|
-
### Parameters
|
|
288
|
-
|
|
289
|
-
#### tx
|
|
290
|
-
|
|
291
|
-
`HydratedTransaction`
|
|
292
|
-
|
|
293
|
-
### Returns
|
|
294
|
-
|
|
295
|
-
`Promise`\<`Lowercase`\<`string`\>\>
|
|
296
|
-
|
|
297
|
-
### Implementation of
|
|
473
|
+
### Overrides
|
|
298
474
|
|
|
299
|
-
|
|
300
|
-
XyoGatewayProvider.submitTransaction
|
|
301
|
-
```
|
|
475
|
+
[`AbstractXyoGateway`](#AbstractXyoGateway).[`revokePermissions`](AbstractXyoGateway.md#revokepermissions)
|
|
302
476
|
|
|
303
477
|
### <a id="JsonRpcXyoRunner"></a>JsonRpcXyoRunner
|
|
304
478
|
|
|
@@ -961,200 +1135,15 @@ status(): Promise<NetworkStatus>;
|
|
|
961
1135
|
XyoNetwork.status
|
|
962
1136
|
```
|
|
963
1137
|
|
|
964
|
-
### <a id="
|
|
1138
|
+
### <a id="MemoryXyoRunner"></a>MemoryXyoRunner
|
|
965
1139
|
|
|
966
1140
|
[**@xyo-network/xl1-rpc**](#../../README)
|
|
967
1141
|
|
|
968
1142
|
***
|
|
969
1143
|
|
|
970
|
-
## Extended by
|
|
971
|
-
|
|
972
|
-
- [`RpcXyoProvider`](#RpcXyoProvider)
|
|
973
|
-
|
|
974
1144
|
## Implements
|
|
975
1145
|
|
|
976
|
-
- `
|
|
977
|
-
|
|
978
|
-
## Constructors
|
|
979
|
-
|
|
980
|
-
### Constructor
|
|
981
|
-
|
|
982
|
-
```ts
|
|
983
|
-
new MemoryXyoProvider(params?): MemoryXyoProvider;
|
|
984
|
-
```
|
|
985
|
-
|
|
986
|
-
### Parameters
|
|
987
|
-
|
|
988
|
-
#### params?
|
|
989
|
-
|
|
990
|
-
##### network?
|
|
991
|
-
|
|
992
|
-
`XyoNetwork`
|
|
993
|
-
|
|
994
|
-
##### runner?
|
|
995
|
-
|
|
996
|
-
`XyoRunner`
|
|
997
|
-
|
|
998
|
-
##### signer?
|
|
999
|
-
|
|
1000
|
-
`XyoSigner`
|
|
1001
|
-
|
|
1002
|
-
##### viewer?
|
|
1003
|
-
|
|
1004
|
-
`XyoViewer`
|
|
1005
|
-
|
|
1006
|
-
### Returns
|
|
1007
|
-
|
|
1008
|
-
`MemoryXyoProvider`
|
|
1009
|
-
|
|
1010
|
-
## Accessors
|
|
1011
|
-
|
|
1012
|
-
### network
|
|
1013
|
-
|
|
1014
|
-
### Get Signature
|
|
1015
|
-
|
|
1016
|
-
```ts
|
|
1017
|
-
get network(): undefined | XyoNetwork;
|
|
1018
|
-
```
|
|
1019
|
-
|
|
1020
|
-
#### Returns
|
|
1021
|
-
|
|
1022
|
-
`undefined` \| `XyoNetwork`
|
|
1023
|
-
|
|
1024
|
-
### Implementation of
|
|
1025
|
-
|
|
1026
|
-
```ts
|
|
1027
|
-
XyoConnectionProvider.network
|
|
1028
|
-
```
|
|
1029
|
-
|
|
1030
|
-
***
|
|
1031
|
-
|
|
1032
|
-
### runner
|
|
1033
|
-
|
|
1034
|
-
### Get Signature
|
|
1035
|
-
|
|
1036
|
-
```ts
|
|
1037
|
-
get runner(): undefined | XyoRunner;
|
|
1038
|
-
```
|
|
1039
|
-
|
|
1040
|
-
#### Returns
|
|
1041
|
-
|
|
1042
|
-
`undefined` \| `XyoRunner`
|
|
1043
|
-
|
|
1044
|
-
### Implementation of
|
|
1045
|
-
|
|
1046
|
-
```ts
|
|
1047
|
-
XyoConnectionProvider.runner
|
|
1048
|
-
```
|
|
1049
|
-
|
|
1050
|
-
***
|
|
1051
|
-
|
|
1052
|
-
### signer
|
|
1053
|
-
|
|
1054
|
-
### Get Signature
|
|
1055
|
-
|
|
1056
|
-
```ts
|
|
1057
|
-
get signer(): undefined | XyoSigner;
|
|
1058
|
-
```
|
|
1059
|
-
|
|
1060
|
-
#### Returns
|
|
1061
|
-
|
|
1062
|
-
`undefined` \| `XyoSigner`
|
|
1063
|
-
|
|
1064
|
-
### Implementation of
|
|
1065
|
-
|
|
1066
|
-
```ts
|
|
1067
|
-
XyoConnectionProvider.signer
|
|
1068
|
-
```
|
|
1069
|
-
|
|
1070
|
-
***
|
|
1071
|
-
|
|
1072
|
-
### viewer
|
|
1073
|
-
|
|
1074
|
-
### Get Signature
|
|
1075
|
-
|
|
1076
|
-
```ts
|
|
1077
|
-
get viewer(): undefined | XyoViewer;
|
|
1078
|
-
```
|
|
1079
|
-
|
|
1080
|
-
#### Returns
|
|
1081
|
-
|
|
1082
|
-
`undefined` \| `XyoViewer`
|
|
1083
|
-
|
|
1084
|
-
### Implementation of
|
|
1085
|
-
|
|
1086
|
-
```ts
|
|
1087
|
-
XyoConnectionProvider.viewer
|
|
1088
|
-
```
|
|
1089
|
-
|
|
1090
|
-
## Methods
|
|
1091
|
-
|
|
1092
|
-
### ~~send()~~
|
|
1093
|
-
|
|
1094
|
-
```ts
|
|
1095
|
-
send(
|
|
1096
|
-
elevatedPayloads,
|
|
1097
|
-
additionalPayloads,
|
|
1098
|
-
chain?,
|
|
1099
|
-
nbf?,
|
|
1100
|
-
exp?,
|
|
1101
|
-
from?,
|
|
1102
|
-
fees?): Promise<Signed<TransactionBoundWitness>>;
|
|
1103
|
-
```
|
|
1104
|
-
|
|
1105
|
-
### Parameters
|
|
1106
|
-
|
|
1107
|
-
#### elevatedPayloads
|
|
1108
|
-
|
|
1109
|
-
`AllowedBlockPayload`[]
|
|
1110
|
-
|
|
1111
|
-
#### additionalPayloads
|
|
1112
|
-
|
|
1113
|
-
`Payload`[]
|
|
1114
|
-
|
|
1115
|
-
#### chain?
|
|
1116
|
-
|
|
1117
|
-
`Lowercase`\<`string`\>
|
|
1118
|
-
|
|
1119
|
-
#### nbf?
|
|
1120
|
-
|
|
1121
|
-
`number`
|
|
1122
|
-
|
|
1123
|
-
#### exp?
|
|
1124
|
-
|
|
1125
|
-
`number`
|
|
1126
|
-
|
|
1127
|
-
#### from?
|
|
1128
|
-
|
|
1129
|
-
`Lowercase`\<`string`\>
|
|
1130
|
-
|
|
1131
|
-
#### fees?
|
|
1132
|
-
|
|
1133
|
-
`TransactionFeesBigInt`
|
|
1134
|
-
|
|
1135
|
-
### Returns
|
|
1136
|
-
|
|
1137
|
-
`Promise`\<`Signed`\<`TransactionBoundWitness`\>\>
|
|
1138
|
-
|
|
1139
|
-
### Deprecated
|
|
1140
|
-
|
|
1141
|
-
- use host.submit instead
|
|
1142
|
-
|
|
1143
|
-
### Implementation of
|
|
1144
|
-
|
|
1145
|
-
```ts
|
|
1146
|
-
XyoConnectionProvider.send
|
|
1147
|
-
```
|
|
1148
|
-
|
|
1149
|
-
### <a id="MemoryXyoRunner"></a>MemoryXyoRunner
|
|
1150
|
-
|
|
1151
|
-
[**@xyo-network/xl1-rpc**](#../../README)
|
|
1152
|
-
|
|
1153
|
-
***
|
|
1154
|
-
|
|
1155
|
-
## Implements
|
|
1156
|
-
|
|
1157
|
-
- `XyoRunner`
|
|
1146
|
+
- `XyoRunner`
|
|
1158
1147
|
|
|
1159
1148
|
## Constructors
|
|
1160
1149
|
|
|
@@ -1507,7 +1496,7 @@ sendRequest<TMethod>(method, params?): Promise<TypeOf<T[TMethod]["result"]["from
|
|
|
1507
1496
|
|
|
1508
1497
|
[`RpcTransport`](#../interfaces/RpcTransport).[`sendRequest`](../interfaces/RpcTransport.md#sendrequest)
|
|
1509
1498
|
|
|
1510
|
-
### <a id="
|
|
1499
|
+
### <a id="RpcXyoConnection"></a>RpcXyoConnection
|
|
1511
1500
|
|
|
1512
1501
|
[**@xyo-network/xl1-rpc**](#../../README)
|
|
1513
1502
|
|
|
@@ -1515,14 +1504,14 @@ sendRequest<TMethod>(method, params?): Promise<TypeOf<T[TMethod]["result"]["from
|
|
|
1515
1504
|
|
|
1516
1505
|
## Extends
|
|
1517
1506
|
|
|
1518
|
-
- [`
|
|
1507
|
+
- [`XyoConnection`](#XyoConnection)
|
|
1519
1508
|
|
|
1520
1509
|
## Constructors
|
|
1521
1510
|
|
|
1522
1511
|
### Constructor
|
|
1523
1512
|
|
|
1524
1513
|
```ts
|
|
1525
|
-
new
|
|
1514
|
+
new RpcXyoConnection(params): RpcXyoConnection;
|
|
1526
1515
|
```
|
|
1527
1516
|
|
|
1528
1517
|
### Parameters
|
|
@@ -1533,11 +1522,11 @@ new RpcXyoProvider(params): RpcXyoProvider;
|
|
|
1533
1522
|
|
|
1534
1523
|
### Returns
|
|
1535
1524
|
|
|
1536
|
-
`
|
|
1525
|
+
`RpcXyoConnection`
|
|
1537
1526
|
|
|
1538
1527
|
### Overrides
|
|
1539
1528
|
|
|
1540
|
-
[`
|
|
1529
|
+
[`XyoConnection`](#XyoConnection).[`constructor`](XyoConnection.md#constructor)
|
|
1541
1530
|
|
|
1542
1531
|
## Accessors
|
|
1543
1532
|
|
|
@@ -1555,7 +1544,7 @@ get network(): undefined | XyoNetwork;
|
|
|
1555
1544
|
|
|
1556
1545
|
### Inherited from
|
|
1557
1546
|
|
|
1558
|
-
[`
|
|
1547
|
+
[`XyoConnection`](#XyoConnection).[`network`](XyoConnection.md#network)
|
|
1559
1548
|
|
|
1560
1549
|
***
|
|
1561
1550
|
|
|
@@ -1573,7 +1562,7 @@ get runner(): undefined | XyoRunner;
|
|
|
1573
1562
|
|
|
1574
1563
|
### Inherited from
|
|
1575
1564
|
|
|
1576
|
-
[`
|
|
1565
|
+
[`XyoConnection`](#XyoConnection).[`runner`](XyoConnection.md#runner)
|
|
1577
1566
|
|
|
1578
1567
|
***
|
|
1579
1568
|
|
|
@@ -1591,7 +1580,7 @@ get signer(): undefined | XyoSigner;
|
|
|
1591
1580
|
|
|
1592
1581
|
### Inherited from
|
|
1593
1582
|
|
|
1594
|
-
[`
|
|
1583
|
+
[`XyoConnection`](#XyoConnection).[`signer`](XyoConnection.md#signer)
|
|
1595
1584
|
|
|
1596
1585
|
***
|
|
1597
1586
|
|
|
@@ -1609,10 +1598,39 @@ get viewer(): undefined | XyoViewer;
|
|
|
1609
1598
|
|
|
1610
1599
|
### Inherited from
|
|
1611
1600
|
|
|
1612
|
-
[`
|
|
1601
|
+
[`XyoConnection`](#XyoConnection).[`viewer`](XyoConnection.md#viewer)
|
|
1613
1602
|
|
|
1614
1603
|
## Methods
|
|
1615
1604
|
|
|
1605
|
+
### confirm()
|
|
1606
|
+
|
|
1607
|
+
```ts
|
|
1608
|
+
confirm(
|
|
1609
|
+
tx,
|
|
1610
|
+
onConfirm?,
|
|
1611
|
+
onTimeout?): Promise<void>;
|
|
1612
|
+
```
|
|
1613
|
+
|
|
1614
|
+
### Parameters
|
|
1615
|
+
|
|
1616
|
+
#### tx
|
|
1617
|
+
|
|
1618
|
+
`Signed`\<`TransactionBoundWitness`\>
|
|
1619
|
+
|
|
1620
|
+
#### onConfirm?
|
|
1621
|
+
|
|
1622
|
+
(`txBWHash`) => `void`
|
|
1623
|
+
|
|
1624
|
+
#### onTimeout?
|
|
1625
|
+
|
|
1626
|
+
() => `void`
|
|
1627
|
+
|
|
1628
|
+
### Returns
|
|
1629
|
+
|
|
1630
|
+
`Promise`\<`void`\>
|
|
1631
|
+
|
|
1632
|
+
***
|
|
1633
|
+
|
|
1616
1634
|
### ~~send()~~
|
|
1617
1635
|
|
|
1618
1636
|
```ts
|
|
@@ -1662,40 +1680,300 @@ fees?): Promise<Signed<TransactionBoundWitness>>;
|
|
|
1662
1680
|
|
|
1663
1681
|
### Deprecated
|
|
1664
1682
|
|
|
1665
|
-
|
|
1683
|
+
use submitTransaction instead
|
|
1666
1684
|
|
|
1667
1685
|
### Inherited from
|
|
1668
1686
|
|
|
1669
|
-
[`
|
|
1687
|
+
[`XyoConnection`](#XyoConnection).[`send`](XyoConnection.md#send)
|
|
1670
1688
|
|
|
1671
1689
|
***
|
|
1672
1690
|
|
|
1673
|
-
###
|
|
1691
|
+
### submitTransaction()
|
|
1674
1692
|
|
|
1675
1693
|
```ts
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1694
|
+
submitTransaction(
|
|
1695
|
+
elevatedPayloads,
|
|
1696
|
+
additionalPayloads,
|
|
1697
|
+
__namedParameters): Promise<HydratedTransaction>;
|
|
1680
1698
|
```
|
|
1681
1699
|
|
|
1682
1700
|
### Parameters
|
|
1683
1701
|
|
|
1684
|
-
####
|
|
1702
|
+
#### elevatedPayloads
|
|
1685
1703
|
|
|
1686
|
-
`
|
|
1704
|
+
`AllowedBlockPayload`[]
|
|
1687
1705
|
|
|
1688
|
-
####
|
|
1706
|
+
#### additionalPayloads
|
|
1689
1707
|
|
|
1690
|
-
|
|
1708
|
+
`Payload`[]
|
|
1691
1709
|
|
|
1692
|
-
####
|
|
1710
|
+
#### \_\_namedParameters
|
|
1693
1711
|
|
|
1694
|
-
|
|
1712
|
+
##### chain?
|
|
1713
|
+
|
|
1714
|
+
`Lowercase`\<`string`\>
|
|
1715
|
+
|
|
1716
|
+
##### exp?
|
|
1717
|
+
|
|
1718
|
+
`number`
|
|
1719
|
+
|
|
1720
|
+
##### fees?
|
|
1721
|
+
|
|
1722
|
+
`TransactionFeesBigInt`
|
|
1723
|
+
|
|
1724
|
+
##### from?
|
|
1725
|
+
|
|
1726
|
+
`Lowercase`\<`string`\>
|
|
1727
|
+
|
|
1728
|
+
##### nbf?
|
|
1729
|
+
|
|
1730
|
+
`number`
|
|
1695
1731
|
|
|
1696
1732
|
### Returns
|
|
1697
1733
|
|
|
1698
|
-
`Promise`\<`
|
|
1734
|
+
`Promise`\<`HydratedTransaction`\>
|
|
1735
|
+
|
|
1736
|
+
### Inherited from
|
|
1737
|
+
|
|
1738
|
+
[`XyoConnection`](#XyoConnection).[`submitTransaction`](XyoConnection.md#submittransaction)
|
|
1739
|
+
|
|
1740
|
+
### <a id="XyoConnection"></a>XyoConnection
|
|
1741
|
+
|
|
1742
|
+
[**@xyo-network/xl1-rpc**](#../../README)
|
|
1743
|
+
|
|
1744
|
+
***
|
|
1745
|
+
|
|
1746
|
+
## Extended by
|
|
1747
|
+
|
|
1748
|
+
- [`RpcXyoConnection`](#RpcXyoConnection)
|
|
1749
|
+
|
|
1750
|
+
## Implements
|
|
1751
|
+
|
|
1752
|
+
- `XyoConnectionProvider`
|
|
1753
|
+
|
|
1754
|
+
## Constructors
|
|
1755
|
+
|
|
1756
|
+
### Constructor
|
|
1757
|
+
|
|
1758
|
+
```ts
|
|
1759
|
+
new XyoConnection(params?): XyoConnection;
|
|
1760
|
+
```
|
|
1761
|
+
|
|
1762
|
+
### Parameters
|
|
1763
|
+
|
|
1764
|
+
#### params?
|
|
1765
|
+
|
|
1766
|
+
##### network?
|
|
1767
|
+
|
|
1768
|
+
`XyoNetwork`
|
|
1769
|
+
|
|
1770
|
+
##### runner?
|
|
1771
|
+
|
|
1772
|
+
`XyoRunner`
|
|
1773
|
+
|
|
1774
|
+
##### signer?
|
|
1775
|
+
|
|
1776
|
+
`XyoSigner`
|
|
1777
|
+
|
|
1778
|
+
##### viewer?
|
|
1779
|
+
|
|
1780
|
+
`XyoViewer`
|
|
1781
|
+
|
|
1782
|
+
### Returns
|
|
1783
|
+
|
|
1784
|
+
`XyoConnection`
|
|
1785
|
+
|
|
1786
|
+
## Accessors
|
|
1787
|
+
|
|
1788
|
+
### network
|
|
1789
|
+
|
|
1790
|
+
### Get Signature
|
|
1791
|
+
|
|
1792
|
+
```ts
|
|
1793
|
+
get network(): undefined | XyoNetwork;
|
|
1794
|
+
```
|
|
1795
|
+
|
|
1796
|
+
#### Returns
|
|
1797
|
+
|
|
1798
|
+
`undefined` \| `XyoNetwork`
|
|
1799
|
+
|
|
1800
|
+
### Implementation of
|
|
1801
|
+
|
|
1802
|
+
```ts
|
|
1803
|
+
XyoConnectionProvider.network
|
|
1804
|
+
```
|
|
1805
|
+
|
|
1806
|
+
***
|
|
1807
|
+
|
|
1808
|
+
### runner
|
|
1809
|
+
|
|
1810
|
+
### Get Signature
|
|
1811
|
+
|
|
1812
|
+
```ts
|
|
1813
|
+
get runner(): undefined | XyoRunner;
|
|
1814
|
+
```
|
|
1815
|
+
|
|
1816
|
+
#### Returns
|
|
1817
|
+
|
|
1818
|
+
`undefined` \| `XyoRunner`
|
|
1819
|
+
|
|
1820
|
+
### Implementation of
|
|
1821
|
+
|
|
1822
|
+
```ts
|
|
1823
|
+
XyoConnectionProvider.runner
|
|
1824
|
+
```
|
|
1825
|
+
|
|
1826
|
+
***
|
|
1827
|
+
|
|
1828
|
+
### signer
|
|
1829
|
+
|
|
1830
|
+
### Get Signature
|
|
1831
|
+
|
|
1832
|
+
```ts
|
|
1833
|
+
get signer(): undefined | XyoSigner;
|
|
1834
|
+
```
|
|
1835
|
+
|
|
1836
|
+
#### Returns
|
|
1837
|
+
|
|
1838
|
+
`undefined` \| `XyoSigner`
|
|
1839
|
+
|
|
1840
|
+
### Implementation of
|
|
1841
|
+
|
|
1842
|
+
```ts
|
|
1843
|
+
XyoConnectionProvider.signer
|
|
1844
|
+
```
|
|
1845
|
+
|
|
1846
|
+
***
|
|
1847
|
+
|
|
1848
|
+
### viewer
|
|
1849
|
+
|
|
1850
|
+
### Get Signature
|
|
1851
|
+
|
|
1852
|
+
```ts
|
|
1853
|
+
get viewer(): undefined | XyoViewer;
|
|
1854
|
+
```
|
|
1855
|
+
|
|
1856
|
+
#### Returns
|
|
1857
|
+
|
|
1858
|
+
`undefined` \| `XyoViewer`
|
|
1859
|
+
|
|
1860
|
+
### Implementation of
|
|
1861
|
+
|
|
1862
|
+
```ts
|
|
1863
|
+
XyoConnectionProvider.viewer
|
|
1864
|
+
```
|
|
1865
|
+
|
|
1866
|
+
## Methods
|
|
1867
|
+
|
|
1868
|
+
### ~~send()~~
|
|
1869
|
+
|
|
1870
|
+
```ts
|
|
1871
|
+
send(
|
|
1872
|
+
elevatedPayloads,
|
|
1873
|
+
additionalPayloads,
|
|
1874
|
+
chain?,
|
|
1875
|
+
nbf?,
|
|
1876
|
+
exp?,
|
|
1877
|
+
from?,
|
|
1878
|
+
fees?): Promise<Signed<TransactionBoundWitness>>;
|
|
1879
|
+
```
|
|
1880
|
+
|
|
1881
|
+
### Parameters
|
|
1882
|
+
|
|
1883
|
+
#### elevatedPayloads
|
|
1884
|
+
|
|
1885
|
+
`AllowedBlockPayload`[]
|
|
1886
|
+
|
|
1887
|
+
#### additionalPayloads
|
|
1888
|
+
|
|
1889
|
+
`Payload`[]
|
|
1890
|
+
|
|
1891
|
+
#### chain?
|
|
1892
|
+
|
|
1893
|
+
`Lowercase`\<`string`\>
|
|
1894
|
+
|
|
1895
|
+
#### nbf?
|
|
1896
|
+
|
|
1897
|
+
`number`
|
|
1898
|
+
|
|
1899
|
+
#### exp?
|
|
1900
|
+
|
|
1901
|
+
`number`
|
|
1902
|
+
|
|
1903
|
+
#### from?
|
|
1904
|
+
|
|
1905
|
+
`Lowercase`\<`string`\>
|
|
1906
|
+
|
|
1907
|
+
#### fees?
|
|
1908
|
+
|
|
1909
|
+
`TransactionFeesBigInt`
|
|
1910
|
+
|
|
1911
|
+
### Returns
|
|
1912
|
+
|
|
1913
|
+
`Promise`\<`Signed`\<`TransactionBoundWitness`\>\>
|
|
1914
|
+
|
|
1915
|
+
### Deprecated
|
|
1916
|
+
|
|
1917
|
+
use submitTransaction instead
|
|
1918
|
+
|
|
1919
|
+
### Implementation of
|
|
1920
|
+
|
|
1921
|
+
```ts
|
|
1922
|
+
XyoConnectionProvider.send
|
|
1923
|
+
```
|
|
1924
|
+
|
|
1925
|
+
***
|
|
1926
|
+
|
|
1927
|
+
### submitTransaction()
|
|
1928
|
+
|
|
1929
|
+
```ts
|
|
1930
|
+
submitTransaction(
|
|
1931
|
+
elevatedPayloads,
|
|
1932
|
+
additionalPayloads,
|
|
1933
|
+
__namedParameters): Promise<HydratedTransaction>;
|
|
1934
|
+
```
|
|
1935
|
+
|
|
1936
|
+
### Parameters
|
|
1937
|
+
|
|
1938
|
+
#### elevatedPayloads
|
|
1939
|
+
|
|
1940
|
+
`AllowedBlockPayload`[]
|
|
1941
|
+
|
|
1942
|
+
#### additionalPayloads
|
|
1943
|
+
|
|
1944
|
+
`Payload`[]
|
|
1945
|
+
|
|
1946
|
+
#### \_\_namedParameters
|
|
1947
|
+
|
|
1948
|
+
##### chain?
|
|
1949
|
+
|
|
1950
|
+
`Lowercase`\<`string`\>
|
|
1951
|
+
|
|
1952
|
+
##### exp?
|
|
1953
|
+
|
|
1954
|
+
`number`
|
|
1955
|
+
|
|
1956
|
+
##### fees?
|
|
1957
|
+
|
|
1958
|
+
`TransactionFeesBigInt`
|
|
1959
|
+
|
|
1960
|
+
##### from?
|
|
1961
|
+
|
|
1962
|
+
`Lowercase`\<`string`\>
|
|
1963
|
+
|
|
1964
|
+
##### nbf?
|
|
1965
|
+
|
|
1966
|
+
`number`
|
|
1967
|
+
|
|
1968
|
+
### Returns
|
|
1969
|
+
|
|
1970
|
+
`Promise`\<`HydratedTransaction`\>
|
|
1971
|
+
|
|
1972
|
+
### Implementation of
|
|
1973
|
+
|
|
1974
|
+
```ts
|
|
1975
|
+
XyoConnectionProvider.submitTransaction
|
|
1976
|
+
```
|
|
1699
1977
|
|
|
1700
1978
|
### functions
|
|
1701
1979
|
|