@githolon/dsl 0.108.0 → 0.108.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/dart/CHANGELOG.md +5 -0
- package/dart/lib/src/application_framework_calls.dart +299 -0
- package/dart/lib/src/generated_call.dart +96 -0
- package/dart/lib/src/nms_generated_runtime.dart +29 -0
- package/dart/lib/src/node_runner_transport.dart +77 -1
- package/dart/lib/src/result_usda.dart +487 -0
- package/dart/lib/src/runner/node-entry.mjs +6401 -2102
- package/dart/lib/src/runner/offline-install.mjs +1538 -163
- package/dart/lib/src/runtime_v2_gateway.dart +54 -0
- package/dart/lib/src/runtime_v2_transport.dart +117 -0
- package/dart/lib/src/session_bound.dart +7 -2
- package/dart/lib/src/test_harness.dart +193 -112
- package/dart/lib/src/webview_bridge.dart +2120 -569
- package/dart/pubspec.yaml +2 -2
- package/dart/test/acquire_session_credentials_test.dart +1 -1
- package/dart/test/acquire_session_test.dart +68 -14
- package/dart/test/adv_realm_interference_test.dart +6 -4
- package/dart/test/cluster_births_test.dart +11 -8
- package/dart/test/cluster_local_autosync_test.dart +1 -1
- package/dart/test/cluster_scale_test.dart +3 -2
- package/dart/test/dlq_session_surface_test.dart +52 -35
- package/dart/test/first_app_gauntlet_test.dart +1 -1
- package/dart/test/local_sync_inert_test.dart +23 -26
- package/dart/test/offer_authentication_proof_test.dart +193 -0
- package/dart/test/result_usda_test.dart +49 -0
- package/dart/test/session_bound_test.dart +8 -11
- package/dart/test/stale_bundle_test.dart +18 -3
- package/dart/test/test_harness_test.dart +14 -27
- package/dart/test/webview_bridge_test.dart +504 -83
- package/dart_types/CHANGELOG.md +7 -0
- package/dart_types/lib/nomos_kernel_protocol.dart +3 -2
- package/dart_types/lib/src/custody.dart +64 -19
- package/dart_types/lib/src/local_work_rejected.dart +30 -45
- package/dart_types/lib/src/proto/nomos/custody/v1/snapshot.pb.dart +169 -0
- package/dart_types/lib/src/proto/nomos/custody/v1/snapshot.pbenum.dart +11 -0
- package/dart_types/lib/src/proto/nomos/kernel/v1/kernel.pb.dart +2021 -234
- package/dart_types/lib/src/proto/nomos/kernel/v1/kernel.pbenum.dart +175 -8
- package/dart_types/lib/src/proto/nomos/runtime/v2/runtime.pb.dart +8664 -0
- package/dart_types/lib/src/proto/nomos/runtime/v2/runtime.pbenum.dart +369 -0
- package/dart_types/lib/src/surfaced.dart +30 -25
- package/dart_types/pubspec.yaml +1 -1
- package/dart_types/test/surfaced_test.dart +2 -1
- package/package.json +1 -1
- package/runtime/generated-application-host.js +5736 -2047
- package/src/authoring.ts +3 -2
- package/src/births.ts +21 -0
- package/src/build_package.ts +30 -0
- package/src/business_birth.ts +39 -35
- package/src/codegen_call_usda.ts +1111 -0
- package/src/codegen_dart.ts +207 -282
- package/src/codegen_dart_application.ts +195 -252
- package/src/codegen_dart_client.ts +1978 -593
- package/src/codegen_dart_framework_calls.ts +291 -0
- package/src/codegen_dart_scenario.ts +7 -0
- package/src/codegen_proof.ts +3 -4
- package/src/codegen_provider_dart.ts +21 -7
- package/src/codegen_query_usda.ts +214 -0
- package/src/codegen_result_usda.ts +685 -0
- package/src/codegen_ts.ts +3945 -1111
- package/src/compile_package_main.ts +360 -32
- package/src/directive.ts +19 -4
- package/src/engine_entry.ts +45 -4
- package/src/framework/application_home.ts +2 -0
- package/src/framework/auth_provider_law.ts +262 -20
- package/src/framework/home.ts +32 -28
- package/src/framework/owned_custody.ts +19 -11
- package/src/framework/owned_custody_value.ts +51 -0
- package/src/framework/relations.ts +47 -21
- package/src/framework/signing_identity.ts +34 -0
- package/src/framework/workspaces.ts +31 -9
- package/src/framework_call_definitions.ts +53 -0
- package/src/framework_read_definitions.ts +45 -0
- package/src/identity_frontier.ts +58 -0
- package/src/index.ts +20 -1
- package/src/intent.ts +216 -16
- package/src/law_check.ts +19 -1
- package/src/law_graph.ts +57 -8
- package/src/law_graph_usda.ts +73 -5
- package/src/law_value_type.ts +106 -19
- package/src/read.ts +47 -0
- package/src/read_projection_namespace.ts +7 -0
- package/src/shape_compat.ts +38 -39
- package/src/stable_ids.ts +37 -2
- package/src/test_call_usda.ts +83 -0
- package/src/wire.ts +36 -2
- package/src/wire_encode.ts +45 -1
- package/src/workspace_sharing.ts +27 -10
- package/dart_types/lib/src/proto/nomos/kernel/v1/kernel.pbjson.dart +0 -6096
- package/dart_types/lib/src/proto/nomos/kernel/v1/kernel.pbserver.dart +0 -50
- package/dart_types/lib/src/proto/nomos/kernel/v1/progress.pbjson.dart +0 -178
- package/dart_types/lib/src/proto/nomos/runtime/v1/runtime.pb.dart +0 -828
- package/dart_types/lib/src/proto/nomos/runtime/v1/runtime.pbenum.dart +0 -465
- package/dart_types/lib/src/proto/nomos/runtime/v1/runtime.pbjson.dart +0 -573
- package/dart_types/lib/src/proto/nomos/runtime/v1/runtime.pbserver.dart +0 -50
package/dart_types/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## 0.10.0
|
|
2
|
+
|
|
3
|
+
- Replace the retired Runtime v1 command model with the generated Runtime v2 and custody snapshot
|
|
4
|
+
Protobuf types used by every Dart and Flutter host.
|
|
5
|
+
- Carry typed workspace summaries, sync results, custody changes, and kernel calls without generic map or
|
|
6
|
+
JSON command surfaces.
|
|
7
|
+
|
|
1
8
|
## 0.9.0
|
|
2
9
|
|
|
3
10
|
- Replace the opaque admitted-offer result with generated typed kernel messages, so Rust, TypeScript,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// Generated protocol types shared by every Dart and Flutter Nomos host.
|
|
2
2
|
//
|
|
3
|
-
// The source of truth is proto/nomos/
|
|
3
|
+
// The source of truth is proto/nomos/kernel/v1 plus proto/nomos/runtime/v2. This package owns the
|
|
4
4
|
// generated Dart projection so nomos_client and nomos_flutter cannot drift into
|
|
5
5
|
// handwritten copies of the kernel/runtime ABI.
|
|
6
6
|
library;
|
|
7
7
|
|
|
8
8
|
export 'src/proto/nomos/kernel/v1/kernel.pb.dart';
|
|
9
9
|
export 'src/proto/nomos/kernel/v1/progress.pb.dart';
|
|
10
|
-
export 'src/proto/nomos/
|
|
10
|
+
export 'src/proto/nomos/custody/v1/snapshot.pb.dart';
|
|
11
|
+
export 'src/proto/nomos/runtime/v2/runtime.pb.dart';
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
// resolve them. The bridge decodes these from the runner's `custody` events + `custodyStatus` reply.
|
|
8
8
|
library;
|
|
9
9
|
|
|
10
|
+
import 'proto/nomos/runtime/v2/runtime.pb.dart' as runtime;
|
|
11
|
+
|
|
10
12
|
/// WHY a chain was superseded — the lineage annotation lifted from the workspace status onto a break.
|
|
11
13
|
class NomosCustodySupersession {
|
|
12
14
|
final String? reason;
|
|
@@ -31,9 +33,11 @@ enum NomosCustodyBreakKind {
|
|
|
31
33
|
superseded,
|
|
32
34
|
diverged;
|
|
33
35
|
|
|
34
|
-
static NomosCustodyBreakKind fromWire(String? s) =>
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
static NomosCustodyBreakKind fromWire(String? s) => s == 'diverged'
|
|
37
|
+
? NomosCustodyBreakKind.diverged
|
|
38
|
+
: NomosCustodyBreakKind.superseded;
|
|
39
|
+
String get wire =>
|
|
40
|
+
this == NomosCustodyBreakKind.diverged ? 'diverged' : 'superseded';
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
/// A CUSTODY BREAK — the remote incarnation is incompatible with this client's local chain. Carries
|
|
@@ -67,11 +71,14 @@ class NomosCustodyBreak {
|
|
|
67
71
|
this.lastSyncedAt,
|
|
68
72
|
});
|
|
69
73
|
|
|
70
|
-
factory NomosCustodyBreak.fromJson(Map<String, dynamic> j) =>
|
|
74
|
+
factory NomosCustodyBreak.fromJson(Map<String, dynamic> j) =>
|
|
75
|
+
NomosCustodyBreak(
|
|
71
76
|
kind: NomosCustodyBreakKind.fromWire(j['kind'] as String?),
|
|
72
77
|
localGenesis: (j['localGenesis'] ?? '') as String,
|
|
73
|
-
remoteGenesis:
|
|
74
|
-
|
|
78
|
+
remoteGenesis:
|
|
79
|
+
(j['remoteGenesis'] ?? j['remoteIncarnation'] ?? '') as String,
|
|
80
|
+
remoteIncarnation:
|
|
81
|
+
(j['remoteIncarnation'] ?? j['remoteGenesis'] ?? '') as String,
|
|
75
82
|
supersession: (j['supersession'] is Map)
|
|
76
83
|
? NomosCustodySupersession.fromJson(
|
|
77
84
|
(j['supersession'] as Map).cast<String, dynamic>())
|
|
@@ -113,7 +120,8 @@ class NomosSupersededChain {
|
|
|
113
120
|
|
|
114
121
|
const NomosSupersededChain({this.ref, this.supersededAt, this.reason});
|
|
115
122
|
|
|
116
|
-
factory NomosSupersededChain.fromJson(Map<String, dynamic> j) =>
|
|
123
|
+
factory NomosSupersededChain.fromJson(Map<String, dynamic> j) =>
|
|
124
|
+
NomosSupersededChain(
|
|
117
125
|
ref: j['ref'] as String?,
|
|
118
126
|
supersededAt: j['supersededAt'] as String?,
|
|
119
127
|
reason: j['reason'] as String?,
|
|
@@ -142,16 +150,50 @@ class NomosCustodyEvent {
|
|
|
142
150
|
/// True when this event is an interactive prompt awaiting a decision.
|
|
143
151
|
bool get isAsk => kind == 'ask';
|
|
144
152
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
153
|
+
factory NomosCustodyEvent.fromRuntime(
|
|
154
|
+
runtime.CustodyChanged event, {
|
|
155
|
+
String? session,
|
|
156
|
+
}) {
|
|
157
|
+
final custodyBreak = event.hasCustodyBreak() ? event.custodyBreak : null;
|
|
149
158
|
return NomosCustodyEvent(
|
|
150
|
-
kind: (
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
159
|
+
kind: switch (event.kind) {
|
|
160
|
+
runtime.CustodyChangeKind.CUSTODY_CHANGE_KIND_DETECTED => 'detected',
|
|
161
|
+
runtime.CustodyChangeKind.CUSTODY_CHANGE_KIND_REJECTED => 'rejected',
|
|
162
|
+
runtime.CustodyChangeKind.CUSTODY_CHANGE_KIND_ADOPTING => 'adopting',
|
|
163
|
+
runtime.CustodyChangeKind.CUSTODY_CHANGE_KIND_ADOPT_REFUSED =>
|
|
164
|
+
'adopt-refused',
|
|
165
|
+
runtime.CustodyChangeKind.CUSTODY_CHANGE_KIND_ASK => 'ask',
|
|
166
|
+
_ => 'unspecified',
|
|
167
|
+
},
|
|
168
|
+
session: session,
|
|
169
|
+
break_: custodyBreak == null
|
|
170
|
+
? null
|
|
171
|
+
: NomosCustodyBreak(
|
|
172
|
+
kind: custodyBreak.kind ==
|
|
173
|
+
runtime.CustodyBreakKind.CUSTODY_BREAK_KIND_DIVERGED
|
|
174
|
+
? NomosCustodyBreakKind.diverged
|
|
175
|
+
: NomosCustodyBreakKind.superseded,
|
|
176
|
+
localGenesis: custodyBreak.localGenesis,
|
|
177
|
+
remoteGenesis: custodyBreak.remoteGenesis,
|
|
178
|
+
remoteIncarnation: custodyBreak.remoteIncarnation,
|
|
179
|
+
supersession: custodyBreak.hasSupersession()
|
|
180
|
+
? NomosCustodySupersession(
|
|
181
|
+
reason: custodyBreak.supersession.hasReason()
|
|
182
|
+
? custodyBreak.supersession.reason
|
|
183
|
+
: null,
|
|
184
|
+
supersededAt: custodyBreak.supersession.hasSupersededAt()
|
|
185
|
+
? custodyBreak.supersession.supersededAt
|
|
186
|
+
: null,
|
|
187
|
+
)
|
|
188
|
+
: null,
|
|
189
|
+
localOnlyIntents: custodyBreak.localOnlyIntents.toInt(),
|
|
190
|
+
lastSyncedAt: custodyBreak.hasLastSyncedAtMillis()
|
|
191
|
+
? custodyBreak.lastSyncedAtMillis.toInt()
|
|
192
|
+
: null,
|
|
193
|
+
),
|
|
194
|
+
recloned: event.hasRecloned() ? event.recloned : null,
|
|
195
|
+
parkedIntents:
|
|
196
|
+
event.hasParkedIntents() ? event.parkedIntents.toInt() : null,
|
|
155
197
|
);
|
|
156
198
|
}
|
|
157
199
|
}
|
|
@@ -185,7 +227,8 @@ class NomosCustodyStatus {
|
|
|
185
227
|
this.pendingBreak,
|
|
186
228
|
});
|
|
187
229
|
|
|
188
|
-
factory NomosCustodyStatus.fromJson(Map<String, dynamic> j) =>
|
|
230
|
+
factory NomosCustodyStatus.fromJson(Map<String, dynamic> j) =>
|
|
231
|
+
NomosCustodyStatus(
|
|
189
232
|
incarnation: j['incarnation'] as String?,
|
|
190
233
|
localGenesis: j['localGenesis'] as String?,
|
|
191
234
|
remoteIncarnation: j['remoteIncarnation'] as String?,
|
|
@@ -194,10 +237,12 @@ class NomosCustodyStatus {
|
|
|
194
237
|
salvagedIntents: (j['salvagedIntents'] as num?)?.toInt() ?? 0,
|
|
195
238
|
supersessionHistory: ((j['supersessionHistory'] as List?) ?? const [])
|
|
196
239
|
.whereType<Map>()
|
|
197
|
-
.map(
|
|
240
|
+
.map(
|
|
241
|
+
(m) => NomosSupersededChain.fromJson(m.cast<String, dynamic>()))
|
|
198
242
|
.toList(),
|
|
199
243
|
pendingBreak: (j['pendingBreak'] is Map)
|
|
200
|
-
? NomosCustodyBreak.fromJson(
|
|
244
|
+
? NomosCustodyBreak.fromJson(
|
|
245
|
+
(j['pendingBreak'] as Map).cast<String, dynamic>())
|
|
201
246
|
: null,
|
|
202
247
|
);
|
|
203
248
|
}
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
// this device's signer enrollment hadn't landed on the chain yet)
|
|
17
17
|
// false ⇒ "Your changes couldn't be accepted and have been preserved for review — contact support."
|
|
18
18
|
// Never show [NomosRejectedIntent.error] raw to an end user — it is the gate's diagnostic text.
|
|
19
|
+
import 'proto/nomos/runtime/v2/runtime.pb.dart' as runtime;
|
|
20
|
+
|
|
19
21
|
class NomosRejectedIntent {
|
|
20
22
|
final String? intentId;
|
|
21
23
|
final String? oid;
|
|
@@ -36,25 +38,6 @@ class NomosRejectedIntent {
|
|
|
36
38
|
required this.error,
|
|
37
39
|
required this.retryable,
|
|
38
40
|
});
|
|
39
|
-
|
|
40
|
-
factory NomosRejectedIntent.fromJson(Map<String, dynamic> j) =>
|
|
41
|
-
NomosRejectedIntent(
|
|
42
|
-
intentId: j['intentId'] as String?,
|
|
43
|
-
oid: j['oid'] as String?,
|
|
44
|
-
domain: j['domain'] as String?,
|
|
45
|
-
directiveId: j['directiveId'] as String?,
|
|
46
|
-
error: (j['error'] ?? '') as String,
|
|
47
|
-
retryable: j['retryable'] == true,
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
Map<String, dynamic> toJson() => {
|
|
51
|
-
'intentId': intentId,
|
|
52
|
-
'oid': oid,
|
|
53
|
-
'domain': domain,
|
|
54
|
-
'directiveId': directiveId,
|
|
55
|
-
'error': error,
|
|
56
|
-
'retryable': retryable,
|
|
57
|
-
};
|
|
58
41
|
}
|
|
59
42
|
|
|
60
43
|
/// The typed "the cloud refused work your device had accepted" event. See library docs above —
|
|
@@ -88,30 +71,32 @@ class NomosLocalWorkRejectedEvent {
|
|
|
88
71
|
required this.source,
|
|
89
72
|
});
|
|
90
73
|
|
|
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
|
-
|
|
74
|
+
factory NomosLocalWorkRejectedEvent.fromRuntime(
|
|
75
|
+
runtime.LocalWorkRejected event, {
|
|
76
|
+
String? session,
|
|
77
|
+
}) =>
|
|
78
|
+
NomosLocalWorkRejectedEvent(
|
|
79
|
+
workspace: event.workspace,
|
|
80
|
+
session: session,
|
|
81
|
+
refused: event.refused
|
|
82
|
+
.map(
|
|
83
|
+
(item) => NomosRejectedIntent(
|
|
84
|
+
intentId: item.hasIntentId() ? item.intentId : null,
|
|
85
|
+
oid: item.hasCommitOid() ? item.commitOid : null,
|
|
86
|
+
domain: item.hasDomain() ? item.domain : null,
|
|
87
|
+
directiveId: item.hasDirective() ? item.directive : null,
|
|
88
|
+
error: item.message,
|
|
89
|
+
retryable: item.retryable,
|
|
90
|
+
),
|
|
91
|
+
)
|
|
92
|
+
.toList(growable: false),
|
|
93
|
+
parked: event.parked,
|
|
94
|
+
resetTo: event.hasResetTo() ? event.resetTo : null,
|
|
95
|
+
retryable: event.retryable,
|
|
96
|
+
source: event.source ==
|
|
97
|
+
runtime.LocalWorkRejectionSource
|
|
98
|
+
.LOCAL_WORK_REJECTION_SOURCE_ADMISSION
|
|
99
|
+
? 'admission'
|
|
100
|
+
: 'sync',
|
|
101
|
+
);
|
|
117
102
|
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
// This is a generated file - do not edit.
|
|
2
|
+
//
|
|
3
|
+
// Generated from nomos/custody/v1/snapshot.proto.
|
|
4
|
+
|
|
5
|
+
// @dart = 3.3
|
|
6
|
+
|
|
7
|
+
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
|
8
|
+
// ignore_for_file: constant_identifier_names
|
|
9
|
+
// ignore_for_file: curly_braces_in_flow_control_structures
|
|
10
|
+
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
|
11
|
+
// ignore_for_file: non_constant_identifier_names
|
|
12
|
+
|
|
13
|
+
import 'dart:core' as $core;
|
|
14
|
+
|
|
15
|
+
import 'package:protobuf/protobuf.dart' as $pb;
|
|
16
|
+
|
|
17
|
+
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
|
18
|
+
|
|
19
|
+
/// Opaque local custody cache. Git tree and checkpoint bytes remain kernel-owned;
|
|
20
|
+
/// the host records only enough typed metadata to offer them back on next open.
|
|
21
|
+
/// Field numbers deliberately match the historical runtime-v1 message so stored
|
|
22
|
+
/// PB3 snapshots remain wire-compatible across this ownership correction.
|
|
23
|
+
class LocalCustodySnapshot extends $pb.GeneratedMessage {
|
|
24
|
+
factory LocalCustodySnapshot({
|
|
25
|
+
$core.int? formatVersion,
|
|
26
|
+
$core.String? workspace,
|
|
27
|
+
$core.List<$core.int>? tree,
|
|
28
|
+
$core.List<$core.int>? checkpoint,
|
|
29
|
+
$core.List<$core.int>? frontier,
|
|
30
|
+
$core.String? cursor,
|
|
31
|
+
$core.String? stateRoot,
|
|
32
|
+
$core.String? syncedBase,
|
|
33
|
+
}) {
|
|
34
|
+
final result = create();
|
|
35
|
+
if (formatVersion != null) result.formatVersion = formatVersion;
|
|
36
|
+
if (workspace != null) result.workspace = workspace;
|
|
37
|
+
if (tree != null) result.tree = tree;
|
|
38
|
+
if (checkpoint != null) result.checkpoint = checkpoint;
|
|
39
|
+
if (frontier != null) result.frontier = frontier;
|
|
40
|
+
if (cursor != null) result.cursor = cursor;
|
|
41
|
+
if (stateRoot != null) result.stateRoot = stateRoot;
|
|
42
|
+
if (syncedBase != null) result.syncedBase = syncedBase;
|
|
43
|
+
return result;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
LocalCustodySnapshot._();
|
|
47
|
+
|
|
48
|
+
factory LocalCustodySnapshot.fromBuffer($core.List<$core.int> data,
|
|
49
|
+
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
50
|
+
create()..mergeFromBuffer(data, registry);
|
|
51
|
+
factory LocalCustodySnapshot.fromJson($core.String json,
|
|
52
|
+
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
53
|
+
create()..mergeFromJson(json, registry);
|
|
54
|
+
|
|
55
|
+
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
|
56
|
+
_omitMessageNames ? '' : 'LocalCustodySnapshot',
|
|
57
|
+
package:
|
|
58
|
+
const $pb.PackageName(_omitMessageNames ? '' : 'nomos.custody.v1'),
|
|
59
|
+
createEmptyInstance: create)
|
|
60
|
+
..aI(1, _omitFieldNames ? '' : 'formatVersion',
|
|
61
|
+
fieldType: $pb.PbFieldType.OU3)
|
|
62
|
+
..aOS(2, _omitFieldNames ? '' : 'workspace')
|
|
63
|
+
..a<$core.List<$core.int>>(
|
|
64
|
+
3, _omitFieldNames ? '' : 'tree', $pb.PbFieldType.OY)
|
|
65
|
+
..a<$core.List<$core.int>>(
|
|
66
|
+
4, _omitFieldNames ? '' : 'checkpoint', $pb.PbFieldType.OY)
|
|
67
|
+
..a<$core.List<$core.int>>(
|
|
68
|
+
5, _omitFieldNames ? '' : 'frontier', $pb.PbFieldType.OY)
|
|
69
|
+
..aOS(6, _omitFieldNames ? '' : 'cursor')
|
|
70
|
+
..aOS(7, _omitFieldNames ? '' : 'stateRoot')
|
|
71
|
+
..aOS(8, _omitFieldNames ? '' : 'syncedBase')
|
|
72
|
+
..hasRequiredFields = false;
|
|
73
|
+
|
|
74
|
+
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
75
|
+
LocalCustodySnapshot clone() => deepCopy();
|
|
76
|
+
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
77
|
+
LocalCustodySnapshot copyWith(void Function(LocalCustodySnapshot) updates) =>
|
|
78
|
+
super.copyWith((message) => updates(message as LocalCustodySnapshot))
|
|
79
|
+
as LocalCustodySnapshot;
|
|
80
|
+
|
|
81
|
+
@$core.override
|
|
82
|
+
$pb.BuilderInfo get info_ => _i;
|
|
83
|
+
|
|
84
|
+
@$core.pragma('dart2js:noInline')
|
|
85
|
+
static LocalCustodySnapshot create() => LocalCustodySnapshot._();
|
|
86
|
+
@$core.override
|
|
87
|
+
LocalCustodySnapshot createEmptyInstance() => create();
|
|
88
|
+
@$core.pragma('dart2js:noInline')
|
|
89
|
+
static LocalCustodySnapshot getDefault() => _defaultInstance ??=
|
|
90
|
+
$pb.GeneratedMessage.$_defaultFor<LocalCustodySnapshot>(create);
|
|
91
|
+
static LocalCustodySnapshot? _defaultInstance;
|
|
92
|
+
|
|
93
|
+
@$pb.TagNumber(1)
|
|
94
|
+
$core.int get formatVersion => $_getIZ(0);
|
|
95
|
+
@$pb.TagNumber(1)
|
|
96
|
+
set formatVersion($core.int value) => $_setUnsignedInt32(0, value);
|
|
97
|
+
@$pb.TagNumber(1)
|
|
98
|
+
$core.bool hasFormatVersion() => $_has(0);
|
|
99
|
+
@$pb.TagNumber(1)
|
|
100
|
+
void clearFormatVersion() => $_clearField(1);
|
|
101
|
+
|
|
102
|
+
@$pb.TagNumber(2)
|
|
103
|
+
$core.String get workspace => $_getSZ(1);
|
|
104
|
+
@$pb.TagNumber(2)
|
|
105
|
+
set workspace($core.String value) => $_setString(1, value);
|
|
106
|
+
@$pb.TagNumber(2)
|
|
107
|
+
$core.bool hasWorkspace() => $_has(1);
|
|
108
|
+
@$pb.TagNumber(2)
|
|
109
|
+
void clearWorkspace() => $_clearField(2);
|
|
110
|
+
|
|
111
|
+
@$pb.TagNumber(3)
|
|
112
|
+
$core.List<$core.int> get tree => $_getN(2);
|
|
113
|
+
@$pb.TagNumber(3)
|
|
114
|
+
set tree($core.List<$core.int> value) => $_setBytes(2, value);
|
|
115
|
+
@$pb.TagNumber(3)
|
|
116
|
+
$core.bool hasTree() => $_has(2);
|
|
117
|
+
@$pb.TagNumber(3)
|
|
118
|
+
void clearTree() => $_clearField(3);
|
|
119
|
+
|
|
120
|
+
@$pb.TagNumber(4)
|
|
121
|
+
$core.List<$core.int> get checkpoint => $_getN(3);
|
|
122
|
+
@$pb.TagNumber(4)
|
|
123
|
+
set checkpoint($core.List<$core.int> value) => $_setBytes(3, value);
|
|
124
|
+
@$pb.TagNumber(4)
|
|
125
|
+
$core.bool hasCheckpoint() => $_has(3);
|
|
126
|
+
@$pb.TagNumber(4)
|
|
127
|
+
void clearCheckpoint() => $_clearField(4);
|
|
128
|
+
|
|
129
|
+
@$pb.TagNumber(5)
|
|
130
|
+
$core.List<$core.int> get frontier => $_getN(4);
|
|
131
|
+
@$pb.TagNumber(5)
|
|
132
|
+
set frontier($core.List<$core.int> value) => $_setBytes(4, value);
|
|
133
|
+
@$pb.TagNumber(5)
|
|
134
|
+
$core.bool hasFrontier() => $_has(4);
|
|
135
|
+
@$pb.TagNumber(5)
|
|
136
|
+
void clearFrontier() => $_clearField(5);
|
|
137
|
+
|
|
138
|
+
@$pb.TagNumber(6)
|
|
139
|
+
$core.String get cursor => $_getSZ(5);
|
|
140
|
+
@$pb.TagNumber(6)
|
|
141
|
+
set cursor($core.String value) => $_setString(5, value);
|
|
142
|
+
@$pb.TagNumber(6)
|
|
143
|
+
$core.bool hasCursor() => $_has(5);
|
|
144
|
+
@$pb.TagNumber(6)
|
|
145
|
+
void clearCursor() => $_clearField(6);
|
|
146
|
+
|
|
147
|
+
@$pb.TagNumber(7)
|
|
148
|
+
$core.String get stateRoot => $_getSZ(6);
|
|
149
|
+
@$pb.TagNumber(7)
|
|
150
|
+
set stateRoot($core.String value) => $_setString(6, value);
|
|
151
|
+
@$pb.TagNumber(7)
|
|
152
|
+
$core.bool hasStateRoot() => $_has(6);
|
|
153
|
+
@$pb.TagNumber(7)
|
|
154
|
+
void clearStateRoot() => $_clearField(7);
|
|
155
|
+
|
|
156
|
+
@$pb.TagNumber(8)
|
|
157
|
+
$core.String get syncedBase => $_getSZ(7);
|
|
158
|
+
@$pb.TagNumber(8)
|
|
159
|
+
set syncedBase($core.String value) => $_setString(7, value);
|
|
160
|
+
@$pb.TagNumber(8)
|
|
161
|
+
$core.bool hasSyncedBase() => $_has(7);
|
|
162
|
+
@$pb.TagNumber(8)
|
|
163
|
+
void clearSyncedBase() => $_clearField(8);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
const $core.bool _omitFieldNames =
|
|
167
|
+
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
|
168
|
+
const $core.bool _omitMessageNames =
|
|
169
|
+
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This is a generated file - do not edit.
|
|
2
|
+
//
|
|
3
|
+
// Generated from nomos/custody/v1/snapshot.proto.
|
|
4
|
+
|
|
5
|
+
// @dart = 3.3
|
|
6
|
+
|
|
7
|
+
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
|
8
|
+
// ignore_for_file: constant_identifier_names
|
|
9
|
+
// ignore_for_file: curly_braces_in_flow_control_structures
|
|
10
|
+
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
|
11
|
+
// ignore_for_file: non_constant_identifier_names
|