Skip to content

Commit 6cdf20c

Browse files
authored
fix(grpc): define address for the aggregated public key (#1608)
1 parent ee155cb commit 6cdf20c

28 files changed

+549
-331
lines changed

www/grpc/gen/dart/utils.pb.dart

+14
Original file line numberDiff line numberDiff line change
@@ -284,17 +284,22 @@ class BLSPublicKeyAggregationRequest extends $pb.GeneratedMessage {
284284
class BLSPublicKeyAggregationResponse extends $pb.GeneratedMessage {
285285
static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BLSPublicKeyAggregationResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'pactus'), createEmptyInstance: create)
286286
..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'publicKey')
287+
..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'address')
287288
..hasRequiredFields = false
288289
;
289290

290291
BLSPublicKeyAggregationResponse._() : super();
291292
factory BLSPublicKeyAggregationResponse({
292293
$core.String? publicKey,
294+
$core.String? address,
293295
}) {
294296
final _result = create();
295297
if (publicKey != null) {
296298
_result.publicKey = publicKey;
297299
}
300+
if (address != null) {
301+
_result.address = address;
302+
}
298303
return _result;
299304
}
300305
factory BLSPublicKeyAggregationResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
@@ -326,6 +331,15 @@ class BLSPublicKeyAggregationResponse extends $pb.GeneratedMessage {
326331
$core.bool hasPublicKey() => $_has(0);
327332
@$pb.TagNumber(1)
328333
void clearPublicKey() => clearField(1);
334+
335+
@$pb.TagNumber(2)
336+
$core.String get address => $_getSZ(1);
337+
@$pb.TagNumber(2)
338+
set address($core.String v) { $_setString(1, v); }
339+
@$pb.TagNumber(2)
340+
$core.bool hasAddress() => $_has(1);
341+
@$pb.TagNumber(2)
342+
void clearAddress() => clearField(2);
329343
}
330344

331345
class BLSSignatureAggregationRequest extends $pb.GeneratedMessage {

www/grpc/gen/dart/utils.pbjson.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ const BLSPublicKeyAggregationResponse$json = const {
6666
'1': 'BLSPublicKeyAggregationResponse',
6767
'2': const [
6868
const {'1': 'public_key', '3': 1, '4': 1, '5': 9, '10': 'publicKey'},
69+
const {'1': 'address', '3': 2, '4': 1, '5': 9, '10': 'address'},
6970
],
7071
};
7172

7273
/// Descriptor for `BLSPublicKeyAggregationResponse`. Decode as a `google.protobuf.DescriptorProto`.
73-
final $typed_data.Uint8List bLSPublicKeyAggregationResponseDescriptor = $convert.base64Decode('Ch9CTFNQdWJsaWNLZXlBZ2dyZWdhdGlvblJlc3BvbnNlEh0KCnB1YmxpY19rZXkYASABKAlSCXB1YmxpY0tleQ==');
74+
final $typed_data.Uint8List bLSPublicKeyAggregationResponseDescriptor = $convert.base64Decode('Ch9CTFNQdWJsaWNLZXlBZ2dyZWdhdGlvblJlc3BvbnNlEh0KCnB1YmxpY19rZXkYASABKAlSCXB1YmxpY0tleRIYCgdhZGRyZXNzGAIgASgJUgdhZGRyZXNz');
7475
@$core.Deprecated('Use bLSSignatureAggregationRequestDescriptor instead')
7576
const BLSSignatureAggregationRequest$json = const {
7677
'1': 'BLSSignatureAggregationRequest',

www/grpc/gen/docs/grpc.md

+7
Original file line numberDiff line numberDiff line change
@@ -2767,6 +2767,13 @@ signing and verification.</p>
27672767
<td>
27682768
The aggregated public key.
27692769
</td>
2770+
</tr>
2771+
<tr>
2772+
<td class="fw-bold">address</td>
2773+
<td> string</td>
2774+
<td>
2775+
The aggregated public key account address.
2776+
</td>
27702777
</tr>
27712778
</tbody>
27722779
</table>

www/grpc/gen/docs/json-rpc.md

+16-9
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ parameters.</p>
275275
</tr>
276276
<tr>
277277
<td class="fw-bold">verbosity</td>
278-
<td> numeric</td>
278+
<td> string</td>
279279
<td>
280280
(Enum)The verbosity level for transaction details.
281281
<br>Available values:<ul>
@@ -358,7 +358,7 @@ parameters.</p>
358358
</tr>
359359
<tr>
360360
<td class="fw-bold">transaction.payload_type</td>
361-
<td> numeric</td>
361+
<td> string</td>
362362
<td>
363363
(Enum)The type of transaction payload.
364364
<br>Available values:<ul>
@@ -542,7 +542,7 @@ and payload type.</p>
542542
</tr>
543543
<tr>
544544
<td class="fw-bold">payload_type</td>
545-
<td> numeric</td>
545+
<td> string</td>
546546
<td>
547547
(Enum)The type of transaction payload.
548548
<br>Available values:<ul>
@@ -956,7 +956,7 @@ parameters.</p>
956956
</tr>
957957
<tr>
958958
<td class="fw-bold">verbosity</td>
959-
<td> numeric</td>
959+
<td> string</td>
960960
<td>
961961
(Enum)The verbosity level for block information.
962962
<br>Available values:<ul>
@@ -1139,7 +1139,7 @@ BLOCK_TRANSACTIONS.
11391139
</tr>
11401140
<tr>
11411141
<td class="fw-bold">txs[].payload_type</td>
1142-
<td> numeric</td>
1142+
<td> string</td>
11431143
<td>
11441144
(Enum)The type of transaction payload.
11451145
<br>Available values:<ul>
@@ -1627,7 +1627,7 @@ committee.
16271627
</tr>
16281628
<tr>
16291629
<td class="fw-bold">instances[].votes[].type</td>
1630-
<td> numeric</td>
1630+
<td> string</td>
16311631
<td>
16321632
(Enum)The type of the vote.
16331633
<br>Available values:<ul>
@@ -2040,7 +2040,7 @@ address.</p>
20402040
<tbody class="table-group-divider">
20412041
<tr>
20422042
<td class="fw-bold">payload_type</td>
2043-
<td> numeric</td>
2043+
<td> string</td>
20442044
<td>
20452045
(Enum)The type of transactions to retrieve from the transaction pool. 0 means all
20462046
types.
@@ -2114,7 +2114,7 @@ types.
21142114
</tr>
21152115
<tr>
21162116
<td class="fw-bold">txs[].payload_type</td>
2117-
<td> numeric</td>
2117+
<td> string</td>
21182118
<td>
21192119
(Enum)The type of transaction payload.
21202120
<br>Available values:<ul>
@@ -2818,6 +2818,13 @@ signing and verification.</p>
28182818
<td>
28192819
The aggregated public key.
28202820
</td>
2821+
</tr>
2822+
<tr>
2823+
<td class="fw-bold">address</td>
2824+
<td> string</td>
2825+
<td>
2826+
The aggregated public key account address.
2827+
</td>
28212828
</tr>
28222829
</tbody>
28232830
</table>
@@ -3192,7 +3199,7 @@ public key.</p>
31923199
</tr>
31933200
<tr>
31943201
<td class="fw-bold">address_type</td>
3195-
<td> numeric</td>
3202+
<td> string</td>
31963203
<td>
31973204
(Enum)The type of address to generate.
31983205
<br>Available values:<ul>

0 commit comments

Comments
 (0)