/
Dynamics2.sol
633 lines (512 loc) · 20.6 KB
/
Dynamics2.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
/* Autogenerated file. Do not edit manually. */
// Import schema type
import { SchemaType } from "@latticexyz/schema-type/src/solidity/SchemaType.sol";
// Import store internals
import { IStore } from "@latticexyz/store/src/IStore.sol";
import { StoreSwitch } from "@latticexyz/store/src/StoreSwitch.sol";
import { StoreCore } from "@latticexyz/store/src/StoreCore.sol";
import { Bytes } from "@latticexyz/store/src/Bytes.sol";
import { Memory } from "@latticexyz/store/src/Memory.sol";
import { SliceLib } from "@latticexyz/store/src/Slice.sol";
import { EncodeArray } from "@latticexyz/store/src/tightcoder/EncodeArray.sol";
import { Schema, SchemaLib } from "@latticexyz/store/src/Schema.sol";
import { PackedCounter, PackedCounterLib } from "@latticexyz/store/src/PackedCounter.sol";
bytes32 constant _tableId = bytes32(abi.encodePacked(bytes16(""), bytes16("Dynamics2")));
bytes32 constant Dynamics2TableId = _tableId;
struct Dynamics2Data {
uint64[] u64;
string str;
bytes b;
}
library Dynamics2 {
/** Get the table's key schema */
function getKeySchema() internal pure returns (Schema) {
SchemaType[] memory _schema = new SchemaType[](1);
_schema[0] = SchemaType.BYTES32;
return SchemaLib.encode(_schema);
}
/** Get the table's value schema */
function getValueSchema() internal pure returns (Schema) {
SchemaType[] memory _schema = new SchemaType[](3);
_schema[0] = SchemaType.UINT64_ARRAY;
_schema[1] = SchemaType.STRING;
_schema[2] = SchemaType.BYTES;
return SchemaLib.encode(_schema);
}
/** Get the table's key names */
function getKeyNames() internal pure returns (string[] memory keyNames) {
keyNames = new string[](1);
keyNames[0] = "key";
}
/** Get the table's field names */
function getFieldNames() internal pure returns (string[] memory fieldNames) {
fieldNames = new string[](3);
fieldNames[0] = "u64";
fieldNames[1] = "str";
fieldNames[2] = "b";
}
/** Register the table's key schema, value schema, key names and value names */
function register() internal {
StoreSwitch.registerTable(_tableId, getKeySchema(), getValueSchema(), getKeyNames(), getFieldNames());
}
/** Register the table's key schema, value schema, key names and value names (using the specified store) */
function register(IStore _store) internal {
_store.registerTable(_tableId, getKeySchema(), getValueSchema(), getKeyNames(), getFieldNames());
}
/** Get u64 */
function getU64(bytes32 key) internal view returns (uint64[] memory u64) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
bytes memory _blob = StoreSwitch.getField(_tableId, _keyTuple, 0, getValueSchema());
return (SliceLib.getSubslice(_blob, 0, _blob.length).decodeArray_uint64());
}
/** Get u64 (using the specified store) */
function getU64(IStore _store, bytes32 key) internal view returns (uint64[] memory u64) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
bytes memory _blob = _store.getField(_tableId, _keyTuple, 0, getValueSchema());
return (SliceLib.getSubslice(_blob, 0, _blob.length).decodeArray_uint64());
}
/** Set u64 */
function setU64(bytes32 key, uint64[] memory u64) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
StoreSwitch.setField(_tableId, _keyTuple, 0, EncodeArray.encode((u64)), getValueSchema());
}
/** Set u64 (using the specified store) */
function setU64(IStore _store, bytes32 key, uint64[] memory u64) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
_store.setField(_tableId, _keyTuple, 0, EncodeArray.encode((u64)), getValueSchema());
}
/** Get the length of u64 */
function lengthU64(bytes32 key) internal view returns (uint256) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
uint256 _byteLength = StoreSwitch.getFieldLength(_tableId, _keyTuple, 0, getValueSchema());
unchecked {
return _byteLength / 8;
}
}
/** Get the length of u64 (using the specified store) */
function lengthU64(IStore _store, bytes32 key) internal view returns (uint256) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
uint256 _byteLength = _store.getFieldLength(_tableId, _keyTuple, 0, getValueSchema());
unchecked {
return _byteLength / 8;
}
}
/**
* Get an item of u64
* (unchecked, returns invalid data if index overflows)
*/
function getItemU64(bytes32 key, uint256 _index) internal view returns (uint64) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
unchecked {
bytes memory _blob = StoreSwitch.getFieldSlice(
_tableId,
_keyTuple,
0,
getValueSchema(),
_index * 8,
(_index + 1) * 8
);
return (uint64(Bytes.slice8(_blob, 0)));
}
}
/**
* Get an item of u64 (using the specified store)
* (unchecked, returns invalid data if index overflows)
*/
function getItemU64(IStore _store, bytes32 key, uint256 _index) internal view returns (uint64) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
unchecked {
bytes memory _blob = _store.getFieldSlice(_tableId, _keyTuple, 0, getValueSchema(), _index * 8, (_index + 1) * 8);
return (uint64(Bytes.slice8(_blob, 0)));
}
}
/** Push an element to u64 */
function pushU64(bytes32 key, uint64 _element) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
StoreSwitch.pushToField(_tableId, _keyTuple, 0, abi.encodePacked((_element)), getValueSchema());
}
/** Push an element to u64 (using the specified store) */
function pushU64(IStore _store, bytes32 key, uint64 _element) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
_store.pushToField(_tableId, _keyTuple, 0, abi.encodePacked((_element)), getValueSchema());
}
/** Pop an element from u64 */
function popU64(bytes32 key) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
StoreSwitch.popFromField(_tableId, _keyTuple, 0, 8, getValueSchema());
}
/** Pop an element from u64 (using the specified store) */
function popU64(IStore _store, bytes32 key) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
_store.popFromField(_tableId, _keyTuple, 0, 8, getValueSchema());
}
/**
* Update an element of u64 at `_index`
* (checked only to prevent modifying other tables; can corrupt own data if index overflows)
*/
function updateU64(bytes32 key, uint256 _index, uint64 _element) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
unchecked {
StoreSwitch.updateInField(_tableId, _keyTuple, 0, _index * 8, abi.encodePacked((_element)), getValueSchema());
}
}
/**
* Update an element of u64 (using the specified store) at `_index`
* (checked only to prevent modifying other tables; can corrupt own data if index overflows)
*/
function updateU64(IStore _store, bytes32 key, uint256 _index, uint64 _element) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
unchecked {
_store.updateInField(_tableId, _keyTuple, 0, _index * 8, abi.encodePacked((_element)), getValueSchema());
}
}
/** Get str */
function getStr(bytes32 key) internal view returns (string memory str) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
bytes memory _blob = StoreSwitch.getField(_tableId, _keyTuple, 1, getValueSchema());
return (string(_blob));
}
/** Get str (using the specified store) */
function getStr(IStore _store, bytes32 key) internal view returns (string memory str) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
bytes memory _blob = _store.getField(_tableId, _keyTuple, 1, getValueSchema());
return (string(_blob));
}
/** Set str */
function setStr(bytes32 key, string memory str) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
StoreSwitch.setField(_tableId, _keyTuple, 1, bytes((str)), getValueSchema());
}
/** Set str (using the specified store) */
function setStr(IStore _store, bytes32 key, string memory str) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
_store.setField(_tableId, _keyTuple, 1, bytes((str)), getValueSchema());
}
/** Get the length of str */
function lengthStr(bytes32 key) internal view returns (uint256) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
uint256 _byteLength = StoreSwitch.getFieldLength(_tableId, _keyTuple, 1, getValueSchema());
unchecked {
return _byteLength / 1;
}
}
/** Get the length of str (using the specified store) */
function lengthStr(IStore _store, bytes32 key) internal view returns (uint256) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
uint256 _byteLength = _store.getFieldLength(_tableId, _keyTuple, 1, getValueSchema());
unchecked {
return _byteLength / 1;
}
}
/**
* Get an item of str
* (unchecked, returns invalid data if index overflows)
*/
function getItemStr(bytes32 key, uint256 _index) internal view returns (string memory) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
unchecked {
bytes memory _blob = StoreSwitch.getFieldSlice(
_tableId,
_keyTuple,
1,
getValueSchema(),
_index * 1,
(_index + 1) * 1
);
return (string(_blob));
}
}
/**
* Get an item of str (using the specified store)
* (unchecked, returns invalid data if index overflows)
*/
function getItemStr(IStore _store, bytes32 key, uint256 _index) internal view returns (string memory) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
unchecked {
bytes memory _blob = _store.getFieldSlice(_tableId, _keyTuple, 1, getValueSchema(), _index * 1, (_index + 1) * 1);
return (string(_blob));
}
}
/** Push a slice to str */
function pushStr(bytes32 key, string memory _slice) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
StoreSwitch.pushToField(_tableId, _keyTuple, 1, bytes((_slice)), getValueSchema());
}
/** Push a slice to str (using the specified store) */
function pushStr(IStore _store, bytes32 key, string memory _slice) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
_store.pushToField(_tableId, _keyTuple, 1, bytes((_slice)), getValueSchema());
}
/** Pop a slice from str */
function popStr(bytes32 key) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
StoreSwitch.popFromField(_tableId, _keyTuple, 1, 1, getValueSchema());
}
/** Pop a slice from str (using the specified store) */
function popStr(IStore _store, bytes32 key) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
_store.popFromField(_tableId, _keyTuple, 1, 1, getValueSchema());
}
/**
* Update a slice of str at `_index`
* (checked only to prevent modifying other tables; can corrupt own data if index overflows)
*/
function updateStr(bytes32 key, uint256 _index, string memory _slice) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
unchecked {
StoreSwitch.updateInField(_tableId, _keyTuple, 1, _index * 1, bytes((_slice)), getValueSchema());
}
}
/**
* Update a slice of str (using the specified store) at `_index`
* (checked only to prevent modifying other tables; can corrupt own data if index overflows)
*/
function updateStr(IStore _store, bytes32 key, uint256 _index, string memory _slice) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
unchecked {
_store.updateInField(_tableId, _keyTuple, 1, _index * 1, bytes((_slice)), getValueSchema());
}
}
/** Get b */
function getB(bytes32 key) internal view returns (bytes memory b) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
bytes memory _blob = StoreSwitch.getField(_tableId, _keyTuple, 2, getValueSchema());
return (bytes(_blob));
}
/** Get b (using the specified store) */
function getB(IStore _store, bytes32 key) internal view returns (bytes memory b) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
bytes memory _blob = _store.getField(_tableId, _keyTuple, 2, getValueSchema());
return (bytes(_blob));
}
/** Set b */
function setB(bytes32 key, bytes memory b) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
StoreSwitch.setField(_tableId, _keyTuple, 2, bytes((b)), getValueSchema());
}
/** Set b (using the specified store) */
function setB(IStore _store, bytes32 key, bytes memory b) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
_store.setField(_tableId, _keyTuple, 2, bytes((b)), getValueSchema());
}
/** Get the length of b */
function lengthB(bytes32 key) internal view returns (uint256) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
uint256 _byteLength = StoreSwitch.getFieldLength(_tableId, _keyTuple, 2, getValueSchema());
unchecked {
return _byteLength / 1;
}
}
/** Get the length of b (using the specified store) */
function lengthB(IStore _store, bytes32 key) internal view returns (uint256) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
uint256 _byteLength = _store.getFieldLength(_tableId, _keyTuple, 2, getValueSchema());
unchecked {
return _byteLength / 1;
}
}
/**
* Get an item of b
* (unchecked, returns invalid data if index overflows)
*/
function getItemB(bytes32 key, uint256 _index) internal view returns (bytes memory) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
unchecked {
bytes memory _blob = StoreSwitch.getFieldSlice(
_tableId,
_keyTuple,
2,
getValueSchema(),
_index * 1,
(_index + 1) * 1
);
return (bytes(_blob));
}
}
/**
* Get an item of b (using the specified store)
* (unchecked, returns invalid data if index overflows)
*/
function getItemB(IStore _store, bytes32 key, uint256 _index) internal view returns (bytes memory) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
unchecked {
bytes memory _blob = _store.getFieldSlice(_tableId, _keyTuple, 2, getValueSchema(), _index * 1, (_index + 1) * 1);
return (bytes(_blob));
}
}
/** Push a slice to b */
function pushB(bytes32 key, bytes memory _slice) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
StoreSwitch.pushToField(_tableId, _keyTuple, 2, bytes((_slice)), getValueSchema());
}
/** Push a slice to b (using the specified store) */
function pushB(IStore _store, bytes32 key, bytes memory _slice) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
_store.pushToField(_tableId, _keyTuple, 2, bytes((_slice)), getValueSchema());
}
/** Pop a slice from b */
function popB(bytes32 key) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
StoreSwitch.popFromField(_tableId, _keyTuple, 2, 1, getValueSchema());
}
/** Pop a slice from b (using the specified store) */
function popB(IStore _store, bytes32 key) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
_store.popFromField(_tableId, _keyTuple, 2, 1, getValueSchema());
}
/**
* Update a slice of b at `_index`
* (checked only to prevent modifying other tables; can corrupt own data if index overflows)
*/
function updateB(bytes32 key, uint256 _index, bytes memory _slice) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
unchecked {
StoreSwitch.updateInField(_tableId, _keyTuple, 2, _index * 1, bytes((_slice)), getValueSchema());
}
}
/**
* Update a slice of b (using the specified store) at `_index`
* (checked only to prevent modifying other tables; can corrupt own data if index overflows)
*/
function updateB(IStore _store, bytes32 key, uint256 _index, bytes memory _slice) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
unchecked {
_store.updateInField(_tableId, _keyTuple, 2, _index * 1, bytes((_slice)), getValueSchema());
}
}
/** Get the full data */
function get(bytes32 key) internal view returns (Dynamics2Data memory _table) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
bytes memory _blob = StoreSwitch.getRecord(_tableId, _keyTuple, getValueSchema());
return decode(_blob);
}
/** Get the full data (using the specified store) */
function get(IStore _store, bytes32 key) internal view returns (Dynamics2Data memory _table) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
bytes memory _blob = _store.getRecord(_tableId, _keyTuple, getValueSchema());
return decode(_blob);
}
/** Set the full data using individual values */
function set(bytes32 key, uint64[] memory u64, string memory str, bytes memory b) internal {
bytes memory _data = encode(u64, str, b);
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
StoreSwitch.setRecord(_tableId, _keyTuple, _data, getValueSchema());
}
/** Set the full data using individual values (using the specified store) */
function set(IStore _store, bytes32 key, uint64[] memory u64, string memory str, bytes memory b) internal {
bytes memory _data = encode(u64, str, b);
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
_store.setRecord(_tableId, _keyTuple, _data, getValueSchema());
}
/** Set the full data using the data struct */
function set(bytes32 key, Dynamics2Data memory _table) internal {
set(key, _table.u64, _table.str, _table.b);
}
/** Set the full data using the data struct (using the specified store) */
function set(IStore _store, bytes32 key, Dynamics2Data memory _table) internal {
set(_store, key, _table.u64, _table.str, _table.b);
}
/**
* Decode the tightly packed blob using this table's schema.
* Undefined behaviour for invalid blobs.
*/
function decode(bytes memory _blob) internal pure returns (Dynamics2Data memory _table) {
// 0 is the total byte length of static data
PackedCounter _encodedLengths = PackedCounter.wrap(Bytes.slice32(_blob, 0));
// Store trims the blob if dynamic fields are all empty
if (_blob.length > 0) {
// skip static data length + dynamic lengths word
uint256 _start = 32;
uint256 _end;
unchecked {
_end = 32 + _encodedLengths.atIndex(0);
}
_table.u64 = (SliceLib.getSubslice(_blob, _start, _end).decodeArray_uint64());
_start = _end;
unchecked {
_end += _encodedLengths.atIndex(1);
}
_table.str = (string(SliceLib.getSubslice(_blob, _start, _end).toBytes()));
_start = _end;
unchecked {
_end += _encodedLengths.atIndex(2);
}
_table.b = (bytes(SliceLib.getSubslice(_blob, _start, _end).toBytes()));
}
}
/** Tightly pack full data using this table's schema */
function encode(uint64[] memory u64, string memory str, bytes memory b) internal pure returns (bytes memory) {
PackedCounter _encodedLengths;
// Lengths are effectively checked during copy by 2**40 bytes exceeding gas limits
unchecked {
_encodedLengths = PackedCounterLib.pack(u64.length * 8, bytes(str).length, bytes(b).length);
}
return abi.encodePacked(_encodedLengths.unwrap(), EncodeArray.encode((u64)), bytes((str)), bytes((b)));
}
/** Encode keys as a bytes32 array using this table's schema */
function encodeKeyTuple(bytes32 key) internal pure returns (bytes32[] memory) {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
return _keyTuple;
}
/* Delete all data for given keys */
function deleteRecord(bytes32 key) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
StoreSwitch.deleteRecord(_tableId, _keyTuple, getValueSchema());
}
/* Delete all data for given keys (using the specified store) */
function deleteRecord(IStore _store, bytes32 key) internal {
bytes32[] memory _keyTuple = new bytes32[](1);
_keyTuple[0] = key;
_store.deleteRecord(_tableId, _keyTuple, getValueSchema());
}
}