Skip to content

Commit

Permalink
fix(grpc): define address for the aggregated public key (#1608)
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy authored Nov 25, 2024
1 parent ee155cb commit 6cdf20c
Show file tree
Hide file tree
Showing 28 changed files with 549 additions and 331 deletions.
14 changes: 14 additions & 0 deletions www/grpc/gen/dart/utils.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -284,17 +284,22 @@ class BLSPublicKeyAggregationRequest extends $pb.GeneratedMessage {
class BLSPublicKeyAggregationResponse extends $pb.GeneratedMessage {
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)
..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'publicKey')
..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'address')
..hasRequiredFields = false
;

BLSPublicKeyAggregationResponse._() : super();
factory BLSPublicKeyAggregationResponse({
$core.String? publicKey,
$core.String? address,
}) {
final _result = create();
if (publicKey != null) {
_result.publicKey = publicKey;
}
if (address != null) {
_result.address = address;
}
return _result;
}
factory BLSPublicKeyAggregationResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
Expand Down Expand Up @@ -326,6 +331,15 @@ class BLSPublicKeyAggregationResponse extends $pb.GeneratedMessage {
$core.bool hasPublicKey() => $_has(0);
@$pb.TagNumber(1)
void clearPublicKey() => clearField(1);

@$pb.TagNumber(2)
$core.String get address => $_getSZ(1);
@$pb.TagNumber(2)
set address($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasAddress() => $_has(1);
@$pb.TagNumber(2)
void clearAddress() => clearField(2);
}

class BLSSignatureAggregationRequest extends $pb.GeneratedMessage {
Expand Down
3 changes: 2 additions & 1 deletion www/grpc/gen/dart/utils.pbjson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ const BLSPublicKeyAggregationResponse$json = const {
'1': 'BLSPublicKeyAggregationResponse',
'2': const [
const {'1': 'public_key', '3': 1, '4': 1, '5': 9, '10': 'publicKey'},
const {'1': 'address', '3': 2, '4': 1, '5': 9, '10': 'address'},
],
};

/// Descriptor for `BLSPublicKeyAggregationResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List bLSPublicKeyAggregationResponseDescriptor = $convert.base64Decode('Ch9CTFNQdWJsaWNLZXlBZ2dyZWdhdGlvblJlc3BvbnNlEh0KCnB1YmxpY19rZXkYASABKAlSCXB1YmxpY0tleQ==');
final $typed_data.Uint8List bLSPublicKeyAggregationResponseDescriptor = $convert.base64Decode('Ch9CTFNQdWJsaWNLZXlBZ2dyZWdhdGlvblJlc3BvbnNlEh0KCnB1YmxpY19rZXkYASABKAlSCXB1YmxpY0tleRIYCgdhZGRyZXNzGAIgASgJUgdhZGRyZXNz');
@$core.Deprecated('Use bLSSignatureAggregationRequestDescriptor instead')
const BLSSignatureAggregationRequest$json = const {
'1': 'BLSSignatureAggregationRequest',
Expand Down
7 changes: 7 additions & 0 deletions www/grpc/gen/docs/grpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -2767,6 +2767,13 @@ signing and verification.</p>
<td>
The aggregated public key.
</td>
</tr>
<tr>
<td class="fw-bold">address</td>
<td> string</td>
<td>
The aggregated public key account address.
</td>
</tr>
</tbody>
</table>
Expand Down
25 changes: 16 additions & 9 deletions www/grpc/gen/docs/json-rpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ parameters.</p>
</tr>
<tr>
<td class="fw-bold">verbosity</td>
<td> numeric</td>
<td> string</td>
<td>
(Enum)The verbosity level for transaction details.
<br>Available values:<ul>
Expand Down Expand Up @@ -358,7 +358,7 @@ parameters.</p>
</tr>
<tr>
<td class="fw-bold">transaction.payload_type</td>
<td> numeric</td>
<td> string</td>
<td>
(Enum)The type of transaction payload.
<br>Available values:<ul>
Expand Down Expand Up @@ -542,7 +542,7 @@ and payload type.</p>
</tr>
<tr>
<td class="fw-bold">payload_type</td>
<td> numeric</td>
<td> string</td>
<td>
(Enum)The type of transaction payload.
<br>Available values:<ul>
Expand Down Expand Up @@ -956,7 +956,7 @@ parameters.</p>
</tr>
<tr>
<td class="fw-bold">verbosity</td>
<td> numeric</td>
<td> string</td>
<td>
(Enum)The verbosity level for block information.
<br>Available values:<ul>
Expand Down Expand Up @@ -1139,7 +1139,7 @@ BLOCK_TRANSACTIONS.
</tr>
<tr>
<td class="fw-bold">txs[].payload_type</td>
<td> numeric</td>
<td> string</td>
<td>
(Enum)The type of transaction payload.
<br>Available values:<ul>
Expand Down Expand Up @@ -1627,7 +1627,7 @@ committee.
</tr>
<tr>
<td class="fw-bold">instances[].votes[].type</td>
<td> numeric</td>
<td> string</td>
<td>
(Enum)The type of the vote.
<br>Available values:<ul>
Expand Down Expand Up @@ -2040,7 +2040,7 @@ address.</p>
<tbody class="table-group-divider">
<tr>
<td class="fw-bold">payload_type</td>
<td> numeric</td>
<td> string</td>
<td>
(Enum)The type of transactions to retrieve from the transaction pool. 0 means all
types.
Expand Down Expand Up @@ -2114,7 +2114,7 @@ types.
</tr>
<tr>
<td class="fw-bold">txs[].payload_type</td>
<td> numeric</td>
<td> string</td>
<td>
(Enum)The type of transaction payload.
<br>Available values:<ul>
Expand Down Expand Up @@ -2818,6 +2818,13 @@ signing and verification.</p>
<td>
The aggregated public key.
</td>
</tr>
<tr>
<td class="fw-bold">address</td>
<td> string</td>
<td>
The aggregated public key account address.
</td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -3192,7 +3199,7 @@ public key.</p>
</tr>
<tr>
<td class="fw-bold">address_type</td>
<td> numeric</td>
<td> string</td>
<td>
(Enum)The type of address to generate.
<br>Available values:<ul>
Expand Down
Loading

0 comments on commit 6cdf20c

Please sign in to comment.