From eb1076a720c06878e775726e735638ce8326e4c1 Mon Sep 17 00:00:00 2001
From: alidevjimmy
Date: Sat, 19 Oct 2024 19:47:29 +0330
Subject: [PATCH] revert GetRawTransfer method
---
www/grpc/buf/grpc-gateway.config.yaml | 13 +-
www/grpc/gen/dart/transaction.pb.dart | 162 --
www/grpc/gen/dart/transaction.pbjson.dart | 25 +-
www/grpc/gen/dart/transaction.pbserver.dart | 3 -
www/grpc/gen/docs/grpc.md | 102 +-
www/grpc/gen/docs/json-rpc.md | 102 +-
www/grpc/gen/go/transaction.cobra.pb.go | 87 +-
www/grpc/gen/go/transaction.pb.go | 705 +++---
www/grpc/gen/go/transaction.pb.gw.go | 299 ++-
www/grpc/gen/go/transaction_grpc.pb.go | 64 +-
www/grpc/gen/go/transaction_jgw.pb.go | 17 -
.../pactus/transaction/TransactionGrpc.java | 142 +-
.../transaction/TransactionOuterClass.java | 1948 +----------------
www/grpc/gen/js/transaction_grpc_pb.js | 35 +-
www/grpc/gen/js/transaction_pb.js | 445 ----
www/grpc/gen/python/transaction_pb2.py | 60 +-
www/grpc/gen/python/transaction_pb2.pyi | 18 -
www/grpc/gen/python/transaction_pb2_grpc.py | 46 +-
www/grpc/gen/rust/pactus.rs | 39 +-
www/grpc/gen/rust/pactus.serde.rs | 191 --
www/grpc/gen/rust/pactus.tonic.rs | 78 -
www/grpc/proto/transaction.proto | 40 +-
www/grpc/swagger-ui/pactus.swagger.json | 192 +-
www/grpc/transaction.go | 131 --
www/grpc/transaction_test.go | 62 +-
25 files changed, 917 insertions(+), 4089 deletions(-)
diff --git a/www/grpc/buf/grpc-gateway.config.yaml b/www/grpc/buf/grpc-gateway.config.yaml
index 1dbf711e1..fee227b62 100644
--- a/www/grpc/buf/grpc-gateway.config.yaml
+++ b/www/grpc/buf/grpc-gateway.config.yaml
@@ -44,8 +44,17 @@ http:
- selector: pactus.Transaction.CalculateFee
get: "/pactus/transaction/calculate_fee"
- - selector: pactus.Transaction.GetRawTransaction
- get: "/pactus/transaction/get_raw_transaction"
+ - selector: pactus.Transaction.GetRawTransferTransaction
+ get: "/pactus/transaction/get_raw_transfer_transaction"
+
+ - selector: pactus.Transaction.GetRawBondTransaction
+ get: "/pactus/transaction/get_raw_bond_transaction"
+
+ - selector: pactus.Transaction.GetRawUnbondTransaction
+ get: "/pactus/transaction/get_raw_unbond_transaction"
+
+ - selector: pactus.Transaction.GetRawWithdrawTransaction
+ get: "/pactus/transaction/get_raw_withdraw_transaction"
# Network APIs
- selector: pactus.Network.GetNetworkInfo
diff --git a/www/grpc/gen/dart/transaction.pb.dart b/www/grpc/gen/dart/transaction.pb.dart
index 18ee320da..64190097e 100644
--- a/www/grpc/gen/dart/transaction.pb.dart
+++ b/www/grpc/gen/dart/transaction.pb.dart
@@ -383,164 +383,6 @@ class BroadcastTransactionResponse extends $pb.GeneratedMessage {
void clearId() => clearField(1);
}
-enum GetRawTransactionRequest_Payload {
- transfer,
- bond,
- unbond,
- withdraw,
- notSet
-}
-
-class GetRawTransactionRequest extends $pb.GeneratedMessage {
- static const $core.Map<$core.int, GetRawTransactionRequest_Payload> _GetRawTransactionRequest_PayloadByTag = {
- 4 : GetRawTransactionRequest_Payload.transfer,
- 5 : GetRawTransactionRequest_Payload.bond,
- 6 : GetRawTransactionRequest_Payload.unbond,
- 7 : GetRawTransactionRequest_Payload.withdraw,
- 0 : GetRawTransactionRequest_Payload.notSet
- };
- static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'GetRawTransactionRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'pactus'), createEmptyInstance: create)
- ..oo(0, [4, 5, 6, 7])
- ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'lockTime', $pb.PbFieldType.OU3)
- ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'memo')
- ..aInt64(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fee')
- ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'transfer', subBuilder: PayloadTransfer.create)
- ..aOM(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'bond', subBuilder: PayloadBond.create)
- ..aOM(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unbond', subBuilder: PayloadUnbond.create)
- ..aOM(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'withdraw', subBuilder: PayloadWithdraw.create)
- ..hasRequiredFields = false
- ;
-
- GetRawTransactionRequest._() : super();
- factory GetRawTransactionRequest({
- $core.int? lockTime,
- $core.String? memo,
- $fixnum.Int64? fee,
- PayloadTransfer? transfer,
- PayloadBond? bond,
- PayloadUnbond? unbond,
- PayloadWithdraw? withdraw,
- }) {
- final _result = create();
- if (lockTime != null) {
- _result.lockTime = lockTime;
- }
- if (memo != null) {
- _result.memo = memo;
- }
- if (fee != null) {
- _result.fee = fee;
- }
- if (transfer != null) {
- _result.transfer = transfer;
- }
- if (bond != null) {
- _result.bond = bond;
- }
- if (unbond != null) {
- _result.unbond = unbond;
- }
- if (withdraw != null) {
- _result.withdraw = withdraw;
- }
- return _result;
- }
- factory GetRawTransactionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
- factory GetRawTransactionRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
- @$core.Deprecated(
- 'Using this can add significant overhead to your binary. '
- 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
- 'Will be removed in next major version')
- GetRawTransactionRequest clone() => GetRawTransactionRequest()..mergeFromMessage(this);
- @$core.Deprecated(
- 'Using this can add significant overhead to your binary. '
- 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
- 'Will be removed in next major version')
- GetRawTransactionRequest copyWith(void Function(GetRawTransactionRequest) updates) => super.copyWith((message) => updates(message as GetRawTransactionRequest)) as GetRawTransactionRequest; // ignore: deprecated_member_use
- $pb.BuilderInfo get info_ => _i;
- @$core.pragma('dart2js:noInline')
- static GetRawTransactionRequest create() => GetRawTransactionRequest._();
- GetRawTransactionRequest createEmptyInstance() => create();
- static $pb.PbList createRepeated() => $pb.PbList();
- @$core.pragma('dart2js:noInline')
- static GetRawTransactionRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
- static GetRawTransactionRequest? _defaultInstance;
-
- GetRawTransactionRequest_Payload whichPayload() => _GetRawTransactionRequest_PayloadByTag[$_whichOneof(0)]!;
- void clearPayload() => clearField($_whichOneof(0));
-
- @$pb.TagNumber(1)
- $core.int get lockTime => $_getIZ(0);
- @$pb.TagNumber(1)
- set lockTime($core.int v) { $_setUnsignedInt32(0, v); }
- @$pb.TagNumber(1)
- $core.bool hasLockTime() => $_has(0);
- @$pb.TagNumber(1)
- void clearLockTime() => clearField(1);
-
- @$pb.TagNumber(2)
- $core.String get memo => $_getSZ(1);
- @$pb.TagNumber(2)
- set memo($core.String v) { $_setString(1, v); }
- @$pb.TagNumber(2)
- $core.bool hasMemo() => $_has(1);
- @$pb.TagNumber(2)
- void clearMemo() => clearField(2);
-
- @$pb.TagNumber(3)
- $fixnum.Int64 get fee => $_getI64(2);
- @$pb.TagNumber(3)
- set fee($fixnum.Int64 v) { $_setInt64(2, v); }
- @$pb.TagNumber(3)
- $core.bool hasFee() => $_has(2);
- @$pb.TagNumber(3)
- void clearFee() => clearField(3);
-
- @$pb.TagNumber(4)
- PayloadTransfer get transfer => $_getN(3);
- @$pb.TagNumber(4)
- set transfer(PayloadTransfer v) { setField(4, v); }
- @$pb.TagNumber(4)
- $core.bool hasTransfer() => $_has(3);
- @$pb.TagNumber(4)
- void clearTransfer() => clearField(4);
- @$pb.TagNumber(4)
- PayloadTransfer ensureTransfer() => $_ensure(3);
-
- @$pb.TagNumber(5)
- PayloadBond get bond => $_getN(4);
- @$pb.TagNumber(5)
- set bond(PayloadBond v) { setField(5, v); }
- @$pb.TagNumber(5)
- $core.bool hasBond() => $_has(4);
- @$pb.TagNumber(5)
- void clearBond() => clearField(5);
- @$pb.TagNumber(5)
- PayloadBond ensureBond() => $_ensure(4);
-
- @$pb.TagNumber(6)
- PayloadUnbond get unbond => $_getN(5);
- @$pb.TagNumber(6)
- set unbond(PayloadUnbond v) { setField(6, v); }
- @$pb.TagNumber(6)
- $core.bool hasUnbond() => $_has(5);
- @$pb.TagNumber(6)
- void clearUnbond() => clearField(6);
- @$pb.TagNumber(6)
- PayloadUnbond ensureUnbond() => $_ensure(5);
-
- @$pb.TagNumber(7)
- PayloadWithdraw get withdraw => $_getN(6);
- @$pb.TagNumber(7)
- set withdraw(PayloadWithdraw v) { setField(7, v); }
- @$pb.TagNumber(7)
- $core.bool hasWithdraw() => $_has(6);
- @$pb.TagNumber(7)
- void clearWithdraw() => clearField(7);
- @$pb.TagNumber(7)
- PayloadWithdraw ensureWithdraw() => $_ensure(6);
-}
-
class GetRawTransferTransactionRequest extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'GetRawTransferTransactionRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'pactus'), createEmptyInstance: create)
..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'lockTime', $pb.PbFieldType.OU3)
@@ -1679,10 +1521,6 @@ class TransactionApi {
var emptyResponse = BroadcastTransactionResponse();
return _client.invoke(ctx, 'Transaction', 'BroadcastTransaction', request, emptyResponse);
}
- $async.Future getRawTransaction($pb.ClientContext? ctx, GetRawTransactionRequest request) {
- var emptyResponse = GetRawTransactionResponse();
- return _client.invoke(ctx, 'Transaction', 'GetRawTransaction', request, emptyResponse);
- }
$async.Future getRawTransferTransaction($pb.ClientContext? ctx, GetRawTransferTransactionRequest request) {
var emptyResponse = GetRawTransactionResponse();
return _client.invoke(ctx, 'Transaction', 'GetRawTransferTransaction', request, emptyResponse);
diff --git a/www/grpc/gen/dart/transaction.pbjson.dart b/www/grpc/gen/dart/transaction.pbjson.dart
index a733bf608..7d7f40f5b 100644
--- a/www/grpc/gen/dart/transaction.pbjson.dart
+++ b/www/grpc/gen/dart/transaction.pbjson.dart
@@ -100,25 +100,6 @@ const BroadcastTransactionResponse$json = const {
/// Descriptor for `BroadcastTransactionResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List broadcastTransactionResponseDescriptor = $convert.base64Decode('ChxCcm9hZGNhc3RUcmFuc2FjdGlvblJlc3BvbnNlEg4KAmlkGAEgASgJUgJpZA==');
-@$core.Deprecated('Use getRawTransactionRequestDescriptor instead')
-const GetRawTransactionRequest$json = const {
- '1': 'GetRawTransactionRequest',
- '2': const [
- const {'1': 'lock_time', '3': 1, '4': 1, '5': 13, '10': 'lockTime'},
- const {'1': 'memo', '3': 2, '4': 1, '5': 9, '10': 'memo'},
- const {'1': 'fee', '3': 3, '4': 1, '5': 3, '10': 'fee'},
- const {'1': 'transfer', '3': 4, '4': 1, '5': 11, '6': '.pactus.PayloadTransfer', '9': 0, '10': 'transfer'},
- const {'1': 'bond', '3': 5, '4': 1, '5': 11, '6': '.pactus.PayloadBond', '9': 0, '10': 'bond'},
- const {'1': 'unbond', '3': 6, '4': 1, '5': 11, '6': '.pactus.PayloadUnbond', '9': 0, '10': 'unbond'},
- const {'1': 'withdraw', '3': 7, '4': 1, '5': 11, '6': '.pactus.PayloadWithdraw', '9': 0, '10': 'withdraw'},
- ],
- '8': const [
- const {'1': 'payload'},
- ],
-};
-
-/// Descriptor for `GetRawTransactionRequest`. Decode as a `google.protobuf.DescriptorProto`.
-final $typed_data.Uint8List getRawTransactionRequestDescriptor = $convert.base64Decode('ChhHZXRSYXdUcmFuc2FjdGlvblJlcXVlc3QSGwoJbG9ja190aW1lGAEgASgNUghsb2NrVGltZRISCgRtZW1vGAIgASgJUgRtZW1vEhAKA2ZlZRgDIAEoA1IDZmVlEjUKCHRyYW5zZmVyGAQgASgLMhcucGFjdHVzLlBheWxvYWRUcmFuc2ZlckgAUgh0cmFuc2ZlchIpCgRib25kGAUgASgLMhMucGFjdHVzLlBheWxvYWRCb25kSABSBGJvbmQSLwoGdW5ib25kGAYgASgLMhUucGFjdHVzLlBheWxvYWRVbmJvbmRIAFIGdW5ib25kEjUKCHdpdGhkcmF3GAcgASgLMhcucGFjdHVzLlBheWxvYWRXaXRoZHJhd0gAUgh3aXRoZHJhd0IJCgdwYXlsb2Fk');
@$core.Deprecated('Use getRawTransferTransactionRequestDescriptor instead')
const GetRawTransferTransactionRequest$json = const {
'1': 'GetRawTransferTransactionRequest',
@@ -279,7 +260,6 @@ const $core.Map<$core.String, $core.dynamic> TransactionServiceBase$json = const
const {'1': 'GetTransaction', '2': '.pactus.GetTransactionRequest', '3': '.pactus.GetTransactionResponse'},
const {'1': 'CalculateFee', '2': '.pactus.CalculateFeeRequest', '3': '.pactus.CalculateFeeResponse'},
const {'1': 'BroadcastTransaction', '2': '.pactus.BroadcastTransactionRequest', '3': '.pactus.BroadcastTransactionResponse'},
- const {'1': 'GetRawTransaction', '2': '.pactus.GetRawTransactionRequest', '3': '.pactus.GetRawTransactionResponse'},
const {'1': 'GetRawTransferTransaction', '2': '.pactus.GetRawTransferTransactionRequest', '3': '.pactus.GetRawTransactionResponse'},
const {'1': 'GetRawBondTransaction', '2': '.pactus.GetRawBondTransactionRequest', '3': '.pactus.GetRawTransactionResponse'},
const {'1': 'GetRawUnbondTransaction', '2': '.pactus.GetRawUnbondTransactionRequest', '3': '.pactus.GetRawTransactionResponse'},
@@ -301,13 +281,12 @@ const $core.Map<$core.String, $core.Map<$core.String, $core.dynamic>> Transactio
'.pactus.CalculateFeeResponse': CalculateFeeResponse$json,
'.pactus.BroadcastTransactionRequest': BroadcastTransactionRequest$json,
'.pactus.BroadcastTransactionResponse': BroadcastTransactionResponse$json,
- '.pactus.GetRawTransactionRequest': GetRawTransactionRequest$json,
- '.pactus.GetRawTransactionResponse': GetRawTransactionResponse$json,
'.pactus.GetRawTransferTransactionRequest': GetRawTransferTransactionRequest$json,
+ '.pactus.GetRawTransactionResponse': GetRawTransactionResponse$json,
'.pactus.GetRawBondTransactionRequest': GetRawBondTransactionRequest$json,
'.pactus.GetRawUnbondTransactionRequest': GetRawUnbondTransactionRequest$json,
'.pactus.GetRawWithdrawTransactionRequest': GetRawWithdrawTransactionRequest$json,
};
/// Descriptor for `Transaction`. Decode as a `google.protobuf.ServiceDescriptorProto`.
-final $typed_data.Uint8List transactionServiceDescriptor = $convert.base64Decode('CgtUcmFuc2FjdGlvbhJPCg5HZXRUcmFuc2FjdGlvbhIdLnBhY3R1cy5HZXRUcmFuc2FjdGlvblJlcXVlc3QaHi5wYWN0dXMuR2V0VHJhbnNhY3Rpb25SZXNwb25zZRJJCgxDYWxjdWxhdGVGZWUSGy5wYWN0dXMuQ2FsY3VsYXRlRmVlUmVxdWVzdBocLnBhY3R1cy5DYWxjdWxhdGVGZWVSZXNwb25zZRJhChRCcm9hZGNhc3RUcmFuc2FjdGlvbhIjLnBhY3R1cy5Ccm9hZGNhc3RUcmFuc2FjdGlvblJlcXVlc3QaJC5wYWN0dXMuQnJvYWRjYXN0VHJhbnNhY3Rpb25SZXNwb25zZRJYChFHZXRSYXdUcmFuc2FjdGlvbhIgLnBhY3R1cy5HZXRSYXdUcmFuc2FjdGlvblJlcXVlc3QaIS5wYWN0dXMuR2V0UmF3VHJhbnNhY3Rpb25SZXNwb25zZRJoChlHZXRSYXdUcmFuc2ZlclRyYW5zYWN0aW9uEigucGFjdHVzLkdldFJhd1RyYW5zZmVyVHJhbnNhY3Rpb25SZXF1ZXN0GiEucGFjdHVzLkdldFJhd1RyYW5zYWN0aW9uUmVzcG9uc2USYAoVR2V0UmF3Qm9uZFRyYW5zYWN0aW9uEiQucGFjdHVzLkdldFJhd0JvbmRUcmFuc2FjdGlvblJlcXVlc3QaIS5wYWN0dXMuR2V0UmF3VHJhbnNhY3Rpb25SZXNwb25zZRJkChdHZXRSYXdVbmJvbmRUcmFuc2FjdGlvbhImLnBhY3R1cy5HZXRSYXdVbmJvbmRUcmFuc2FjdGlvblJlcXVlc3QaIS5wYWN0dXMuR2V0UmF3VHJhbnNhY3Rpb25SZXNwb25zZRJoChlHZXRSYXdXaXRoZHJhd1RyYW5zYWN0aW9uEigucGFjdHVzLkdldFJhd1dpdGhkcmF3VHJhbnNhY3Rpb25SZXF1ZXN0GiEucGFjdHVzLkdldFJhd1RyYW5zYWN0aW9uUmVzcG9uc2U=');
+final $typed_data.Uint8List transactionServiceDescriptor = $convert.base64Decode('CgtUcmFuc2FjdGlvbhJPCg5HZXRUcmFuc2FjdGlvbhIdLnBhY3R1cy5HZXRUcmFuc2FjdGlvblJlcXVlc3QaHi5wYWN0dXMuR2V0VHJhbnNhY3Rpb25SZXNwb25zZRJJCgxDYWxjdWxhdGVGZWUSGy5wYWN0dXMuQ2FsY3VsYXRlRmVlUmVxdWVzdBocLnBhY3R1cy5DYWxjdWxhdGVGZWVSZXNwb25zZRJhChRCcm9hZGNhc3RUcmFuc2FjdGlvbhIjLnBhY3R1cy5Ccm9hZGNhc3RUcmFuc2FjdGlvblJlcXVlc3QaJC5wYWN0dXMuQnJvYWRjYXN0VHJhbnNhY3Rpb25SZXNwb25zZRJoChlHZXRSYXdUcmFuc2ZlclRyYW5zYWN0aW9uEigucGFjdHVzLkdldFJhd1RyYW5zZmVyVHJhbnNhY3Rpb25SZXF1ZXN0GiEucGFjdHVzLkdldFJhd1RyYW5zYWN0aW9uUmVzcG9uc2USYAoVR2V0UmF3Qm9uZFRyYW5zYWN0aW9uEiQucGFjdHVzLkdldFJhd0JvbmRUcmFuc2FjdGlvblJlcXVlc3QaIS5wYWN0dXMuR2V0UmF3VHJhbnNhY3Rpb25SZXNwb25zZRJkChdHZXRSYXdVbmJvbmRUcmFuc2FjdGlvbhImLnBhY3R1cy5HZXRSYXdVbmJvbmRUcmFuc2FjdGlvblJlcXVlc3QaIS5wYWN0dXMuR2V0UmF3VHJhbnNhY3Rpb25SZXNwb25zZRJoChlHZXRSYXdXaXRoZHJhd1RyYW5zYWN0aW9uEigucGFjdHVzLkdldFJhd1dpdGhkcmF3VHJhbnNhY3Rpb25SZXF1ZXN0GiEucGFjdHVzLkdldFJhd1RyYW5zYWN0aW9uUmVzcG9uc2U=');
diff --git a/www/grpc/gen/dart/transaction.pbserver.dart b/www/grpc/gen/dart/transaction.pbserver.dart
index 4ad99133e..35b1a75cb 100644
--- a/www/grpc/gen/dart/transaction.pbserver.dart
+++ b/www/grpc/gen/dart/transaction.pbserver.dart
@@ -19,7 +19,6 @@ abstract class TransactionServiceBase extends $pb.GeneratedService {
$async.Future<$0.GetTransactionResponse> getTransaction($pb.ServerContext ctx, $0.GetTransactionRequest request);
$async.Future<$0.CalculateFeeResponse> calculateFee($pb.ServerContext ctx, $0.CalculateFeeRequest request);
$async.Future<$0.BroadcastTransactionResponse> broadcastTransaction($pb.ServerContext ctx, $0.BroadcastTransactionRequest request);
- $async.Future<$0.GetRawTransactionResponse> getRawTransaction($pb.ServerContext ctx, $0.GetRawTransactionRequest request);
$async.Future<$0.GetRawTransactionResponse> getRawTransferTransaction($pb.ServerContext ctx, $0.GetRawTransferTransactionRequest request);
$async.Future<$0.GetRawTransactionResponse> getRawBondTransaction($pb.ServerContext ctx, $0.GetRawBondTransactionRequest request);
$async.Future<$0.GetRawTransactionResponse> getRawUnbondTransaction($pb.ServerContext ctx, $0.GetRawUnbondTransactionRequest request);
@@ -30,7 +29,6 @@ abstract class TransactionServiceBase extends $pb.GeneratedService {
case 'GetTransaction': return $0.GetTransactionRequest();
case 'CalculateFee': return $0.CalculateFeeRequest();
case 'BroadcastTransaction': return $0.BroadcastTransactionRequest();
- case 'GetRawTransaction': return $0.GetRawTransactionRequest();
case 'GetRawTransferTransaction': return $0.GetRawTransferTransactionRequest();
case 'GetRawBondTransaction': return $0.GetRawBondTransactionRequest();
case 'GetRawUnbondTransaction': return $0.GetRawUnbondTransactionRequest();
@@ -44,7 +42,6 @@ abstract class TransactionServiceBase extends $pb.GeneratedService {
case 'GetTransaction': return this.getTransaction(ctx, request as $0.GetTransactionRequest);
case 'CalculateFee': return this.calculateFee(ctx, request as $0.CalculateFeeRequest);
case 'BroadcastTransaction': return this.broadcastTransaction(ctx, request as $0.BroadcastTransactionRequest);
- case 'GetRawTransaction': return this.getRawTransaction(ctx, request as $0.GetRawTransactionRequest);
case 'GetRawTransferTransaction': return this.getRawTransferTransaction(ctx, request as $0.GetRawTransferTransactionRequest);
case 'GetRawBondTransaction': return this.getRawBondTransaction(ctx, request as $0.GetRawBondTransactionRequest);
case 'GetRawUnbondTransaction': return this.getRawUnbondTransaction(ctx, request as $0.GetRawUnbondTransactionRequest);
diff --git a/www/grpc/gen/docs/grpc.md b/www/grpc/gen/docs/grpc.md
index a3568cb1c..c4a8e7842 100644
--- a/www/grpc/gen/docs/grpc.md
+++ b/www/grpc/gen/docs/grpc.md
@@ -27,10 +27,6 @@ Each PAC is equivalent to 1,000,000,000 or 109 NanoPACs.
BroadcastTransaction
-
-
- GetRawTransaction
-
GetRawTransferTransaction
@@ -570,96 +566,9 @@ and payload type.
-### GetRawTransaction
-
-GetRawTransaction retrieves raw details of transfer, bond, unbond or withdraw transaction.
-
-GetRawTransactionRequest Request
-
-
-
- Field | Type | Description |
-
-
-
- lock_time |
- uint32 |
-
- The lock time for the transaction. If not set, defaults to the last block height.
- |
-
-
- memo |
- string |
-
- A memo string for the transaction.
- |
-
-
- fee |
- int64 |
-
- The fee for the transaction in NanoPAC.
- |
-
-
- transfer |
- PayloadTransfer |
-
- (OneOf)
- |
-
-
- bond |
- PayloadBond |
-
- (OneOf)
- |
-
-
- unbond |
- PayloadUnbond |
-
- (OneOf)
- |
-
-
- withdraw |
- PayloadWithdraw |
-
- (OneOf)
- |
-
-
-
- GetRawTransactionResponse Response
-
-
-
- Field | Type | Description |
-
-
-
- raw_transaction |
- string |
-
- The raw transaction data.
- |
-
-
- id |
- string |
-
- The unique ID of the transaction.
- |
-
-
-
-
### GetRawTransferTransaction
-Deprecated: GetRawTransferTransaction retrieves raw details of a transfer transaction.
-Use GetRawTransaction instead.
+GetRawTransferTransaction retrieves raw details of a transfer transaction.
GetRawTransferTransactionRequest Request
@@ -739,8 +648,7 @@ height.
### GetRawBondTransaction
-Deprecated: GetRawBondTransaction retrieves raw details of a bond transaction.
-Use GetRawTransaction instead.
+GetRawBondTransaction retrieves raw details of a bond transaction.
GetRawBondTransactionRequest Request
@@ -827,8 +735,7 @@ height.
### GetRawUnbondTransaction
-Deprecated: GetRawUnbondTransaction retrieves raw details of an unbond transaction.
-Use GetRawTransaction instead.
+GetRawUnbondTransaction retrieves raw details of an unbond transaction.
GetRawUnbondTransactionRequest Request
@@ -887,8 +794,7 @@ height.
### GetRawWithdrawTransaction
-Deprecated: GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
-Use GetRawTransaction instead.
+GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
GetRawWithdrawTransactionRequest Request
diff --git a/www/grpc/gen/docs/json-rpc.md b/www/grpc/gen/docs/json-rpc.md
index 7438fadec..52a23f73a 100644
--- a/www/grpc/gen/docs/json-rpc.md
+++ b/www/grpc/gen/docs/json-rpc.md
@@ -78,10 +78,6 @@ curl --location 'http://localhost:8545/' \
pactus.transaction.broadcast_transaction
-
-
- pactus.transaction.get_raw_transaction
-
pactus.transaction.get_raw_transfer_transaction
@@ -621,96 +617,9 @@ and payload type.
-### pactus.transaction.get_raw_transaction
-
-GetRawTransaction retrieves raw details of transfer, bond, unbond or withdraw transaction.
-
-Parameters
-
-
-
- Field | Type | Description |
-
-
-
- lock_time |
- numeric |
-
- The lock time for the transaction. If not set, defaults to the last block height.
- |
-
-
- memo |
- string |
-
- A memo string for the transaction.
- |
-
-
- fee |
- numeric |
-
- The fee for the transaction in NanoPAC.
- |
-
-
- transfer |
- object |
-
- (OneOf)
- |
-
-
- bond |
- object |
-
- (OneOf)
- |
-
-
- unbond |
- object |
-
- (OneOf)
- |
-
-
- withdraw |
- object |
-
- (OneOf)
- |
-
-
-
- Result
-
-
-
- Field | Type | Description |
-
-
-
- raw_transaction |
- string |
-
- The raw transaction data.
- |
-
-
- id |
- string |
-
- The unique ID of the transaction.
- |
-
-
-
-
### pactus.transaction.get_raw_transfer_transaction
-Deprecated: GetRawTransferTransaction retrieves raw details of a transfer transaction.
-Use GetRawTransaction instead.
+GetRawTransferTransaction retrieves raw details of a transfer transaction.
Parameters
@@ -790,8 +699,7 @@ height.
### pactus.transaction.get_raw_bond_transaction
-Deprecated: GetRawBondTransaction retrieves raw details of a bond transaction.
-Use GetRawTransaction instead.
+GetRawBondTransaction retrieves raw details of a bond transaction.
Parameters
@@ -878,8 +786,7 @@ height.
### pactus.transaction.get_raw_unbond_transaction
-Deprecated: GetRawUnbondTransaction retrieves raw details of an unbond transaction.
-Use GetRawTransaction instead.
+GetRawUnbondTransaction retrieves raw details of an unbond transaction.
Parameters
@@ -938,8 +845,7 @@ height.
### pactus.transaction.get_raw_withdraw_transaction
-Deprecated: GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
-Use GetRawTransaction instead.
+GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
Parameters
diff --git a/www/grpc/gen/go/transaction.cobra.pb.go b/www/grpc/gen/go/transaction.cobra.pb.go
index 6bb2cd731..899952b21 100644
--- a/www/grpc/gen/go/transaction.cobra.pb.go
+++ b/www/grpc/gen/go/transaction.cobra.pb.go
@@ -23,7 +23,6 @@ func TransactionClientCommand(options ...client.Option) *cobra.Command {
_TransactionGetTransactionCommand(cfg),
_TransactionCalculateFeeCommand(cfg),
_TransactionBroadcastTransactionCommand(cfg),
- _TransactionGetRawTransactionCommand(cfg),
_TransactionGetRawTransferTransactionCommand(cfg),
_TransactionGetRawBondTransactionCommand(cfg),
_TransactionGetRawUnbondTransactionCommand(cfg),
@@ -161,91 +160,13 @@ func _TransactionBroadcastTransactionCommand(cfg *client.Config) *cobra.Command
return cmd
}
-func _TransactionGetRawTransactionCommand(cfg *client.Config) *cobra.Command {
- req := &GetRawTransactionRequest{}
-
- cmd := &cobra.Command{
- Use: cfg.CommandNamer("GetRawTransaction"),
- Short: "GetRawTransaction RPC client",
- Long: "GetRawTransaction retrieves raw details of transfer, bond, unbond or withdraw transaction.",
- RunE: func(cmd *cobra.Command, args []string) error {
- if cfg.UseEnvVars {
- if err := flag.SetFlagsFromEnv(cmd.Parent().PersistentFlags(), true, cfg.EnvVarNamer, cfg.EnvVarPrefix, "Transaction"); err != nil {
- return err
- }
- if err := flag.SetFlagsFromEnv(cmd.PersistentFlags(), false, cfg.EnvVarNamer, cfg.EnvVarPrefix, "Transaction", "GetRawTransaction"); err != nil {
- return err
- }
- }
- return client.RoundTrip(cmd.Context(), cfg, func(cc grpc.ClientConnInterface, in iocodec.Decoder, out iocodec.Encoder) error {
- cli := NewTransactionClient(cc)
- v := &GetRawTransactionRequest{}
-
- if err := in(v); err != nil {
- return err
- }
- proto.Merge(v, req)
-
- res, err := cli.GetRawTransaction(cmd.Context(), v)
-
- if err != nil {
- return err
- }
-
- return out(res)
-
- })
- },
- }
-
- cmd.PersistentFlags().Uint32Var(&req.LockTime, cfg.FlagNamer("LockTime"), 0, "The lock time for the transaction. If not set, defaults to the last block height.")
- cmd.PersistentFlags().StringVar(&req.Memo, cfg.FlagNamer("Memo"), "", "A memo string for the transaction.")
- cmd.PersistentFlags().Int64Var(&req.Fee, cfg.FlagNamer("Fee"), 0, "The fee for the transaction in NanoPAC.")
- _Transfer := &PayloadTransfer{}
- cmd.PersistentFlags().Bool(cfg.FlagNamer("Transfer"), false, "")
- flag.WithPostSetHook(cmd.PersistentFlags(), cfg.FlagNamer("Transfer"), func() { req.Payload = &GetRawTransactionRequest_Transfer{Transfer: _Transfer} })
- cmd.PersistentFlags().StringVar(&_Transfer.Sender, cfg.FlagNamer("Transfer Sender"), "", "The sender's address.")
- flag.WithPostSetHook(cmd.PersistentFlags(), cfg.FlagNamer("Transfer Sender"), func() { req.Payload = &GetRawTransactionRequest_Transfer{Transfer: _Transfer} })
- cmd.PersistentFlags().StringVar(&_Transfer.Receiver, cfg.FlagNamer("Transfer Receiver"), "", "The receiver's address.")
- flag.WithPostSetHook(cmd.PersistentFlags(), cfg.FlagNamer("Transfer Receiver"), func() { req.Payload = &GetRawTransactionRequest_Transfer{Transfer: _Transfer} })
- cmd.PersistentFlags().Int64Var(&_Transfer.Amount, cfg.FlagNamer("Transfer Amount"), 0, "The amount to be transferred in NanoPAC.")
- flag.WithPostSetHook(cmd.PersistentFlags(), cfg.FlagNamer("Transfer Amount"), func() { req.Payload = &GetRawTransactionRequest_Transfer{Transfer: _Transfer} })
- _Bond := &PayloadBond{}
- cmd.PersistentFlags().Bool(cfg.FlagNamer("Bond"), false, "")
- flag.WithPostSetHook(cmd.PersistentFlags(), cfg.FlagNamer("Bond"), func() { req.Payload = &GetRawTransactionRequest_Bond{Bond: _Bond} })
- cmd.PersistentFlags().StringVar(&_Bond.Sender, cfg.FlagNamer("Bond Sender"), "", "The sender's address.")
- flag.WithPostSetHook(cmd.PersistentFlags(), cfg.FlagNamer("Bond Sender"), func() { req.Payload = &GetRawTransactionRequest_Bond{Bond: _Bond} })
- cmd.PersistentFlags().StringVar(&_Bond.Receiver, cfg.FlagNamer("Bond Receiver"), "", "The receiver's address.")
- flag.WithPostSetHook(cmd.PersistentFlags(), cfg.FlagNamer("Bond Receiver"), func() { req.Payload = &GetRawTransactionRequest_Bond{Bond: _Bond} })
- cmd.PersistentFlags().Int64Var(&_Bond.Stake, cfg.FlagNamer("Bond Stake"), 0, "The stake amount in NanoPAC.")
- flag.WithPostSetHook(cmd.PersistentFlags(), cfg.FlagNamer("Bond Stake"), func() { req.Payload = &GetRawTransactionRequest_Bond{Bond: _Bond} })
- cmd.PersistentFlags().StringVar(&_Bond.PublicKey, cfg.FlagNamer("Bond PublicKey"), "", "The public key of the validator.")
- flag.WithPostSetHook(cmd.PersistentFlags(), cfg.FlagNamer("Bond PublicKey"), func() { req.Payload = &GetRawTransactionRequest_Bond{Bond: _Bond} })
- _Unbond := &PayloadUnbond{}
- cmd.PersistentFlags().Bool(cfg.FlagNamer("Unbond"), false, "")
- flag.WithPostSetHook(cmd.PersistentFlags(), cfg.FlagNamer("Unbond"), func() { req.Payload = &GetRawTransactionRequest_Unbond{Unbond: _Unbond} })
- cmd.PersistentFlags().StringVar(&_Unbond.Validator, cfg.FlagNamer("Unbond Validator"), "", "The address of the validator to unbond from.")
- flag.WithPostSetHook(cmd.PersistentFlags(), cfg.FlagNamer("Unbond Validator"), func() { req.Payload = &GetRawTransactionRequest_Unbond{Unbond: _Unbond} })
- _Withdraw := &PayloadWithdraw{}
- cmd.PersistentFlags().Bool(cfg.FlagNamer("Withdraw"), false, "")
- flag.WithPostSetHook(cmd.PersistentFlags(), cfg.FlagNamer("Withdraw"), func() { req.Payload = &GetRawTransactionRequest_Withdraw{Withdraw: _Withdraw} })
- cmd.PersistentFlags().StringVar(&_Withdraw.ValidatorAddress, cfg.FlagNamer("Withdraw ValidatorAddress"), "", "The address of the validator to withdraw from.")
- flag.WithPostSetHook(cmd.PersistentFlags(), cfg.FlagNamer("Withdraw ValidatorAddress"), func() { req.Payload = &GetRawTransactionRequest_Withdraw{Withdraw: _Withdraw} })
- cmd.PersistentFlags().StringVar(&_Withdraw.AccountAddress, cfg.FlagNamer("Withdraw AccountAddress"), "", "The address of the account to withdraw to.")
- flag.WithPostSetHook(cmd.PersistentFlags(), cfg.FlagNamer("Withdraw AccountAddress"), func() { req.Payload = &GetRawTransactionRequest_Withdraw{Withdraw: _Withdraw} })
- cmd.PersistentFlags().Int64Var(&_Withdraw.Amount, cfg.FlagNamer("Withdraw Amount"), 0, "The withdrawal amount in NanoPAC.")
- flag.WithPostSetHook(cmd.PersistentFlags(), cfg.FlagNamer("Withdraw Amount"), func() { req.Payload = &GetRawTransactionRequest_Withdraw{Withdraw: _Withdraw} })
-
- return cmd
-}
-
func _TransactionGetRawTransferTransactionCommand(cfg *client.Config) *cobra.Command {
req := &GetRawTransferTransactionRequest{}
cmd := &cobra.Command{
Use: cfg.CommandNamer("GetRawTransferTransaction"),
Short: "GetRawTransferTransaction RPC client",
- Long: "Deprecated: GetRawTransferTransaction retrieves raw details of a transfer transaction.\n Use GetRawTransaction instead.",
+ Long: "GetRawTransferTransaction retrieves raw details of a transfer transaction.",
RunE: func(cmd *cobra.Command, args []string) error {
if cfg.UseEnvVars {
if err := flag.SetFlagsFromEnv(cmd.Parent().PersistentFlags(), true, cfg.EnvVarNamer, cfg.EnvVarPrefix, "Transaction"); err != nil {
@@ -292,7 +213,7 @@ func _TransactionGetRawBondTransactionCommand(cfg *client.Config) *cobra.Command
cmd := &cobra.Command{
Use: cfg.CommandNamer("GetRawBondTransaction"),
Short: "GetRawBondTransaction RPC client",
- Long: "Deprecated: GetRawBondTransaction retrieves raw details of a bond transaction.\n Use GetRawTransaction instead.",
+ Long: "GetRawBondTransaction retrieves raw details of a bond transaction.",
RunE: func(cmd *cobra.Command, args []string) error {
if cfg.UseEnvVars {
if err := flag.SetFlagsFromEnv(cmd.Parent().PersistentFlags(), true, cfg.EnvVarNamer, cfg.EnvVarPrefix, "Transaction"); err != nil {
@@ -340,7 +261,7 @@ func _TransactionGetRawUnbondTransactionCommand(cfg *client.Config) *cobra.Comma
cmd := &cobra.Command{
Use: cfg.CommandNamer("GetRawUnbondTransaction"),
Short: "GetRawUnbondTransaction RPC client",
- Long: "Deprecated: GetRawUnbondTransaction retrieves raw details of an unbond transaction.\n Use GetRawTransaction instead.",
+ Long: "GetRawUnbondTransaction retrieves raw details of an unbond transaction.",
RunE: func(cmd *cobra.Command, args []string) error {
if cfg.UseEnvVars {
if err := flag.SetFlagsFromEnv(cmd.Parent().PersistentFlags(), true, cfg.EnvVarNamer, cfg.EnvVarPrefix, "Transaction"); err != nil {
@@ -384,7 +305,7 @@ func _TransactionGetRawWithdrawTransactionCommand(cfg *client.Config) *cobra.Com
cmd := &cobra.Command{
Use: cfg.CommandNamer("GetRawWithdrawTransaction"),
Short: "GetRawWithdrawTransaction RPC client",
- Long: "Deprecated: GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.\n Use GetRawTransaction instead.",
+ Long: "GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.",
RunE: func(cmd *cobra.Command, args []string) error {
if cfg.UseEnvVars {
if err := flag.SetFlagsFromEnv(cmd.Parent().PersistentFlags(), true, cfg.EnvVarNamer, cfg.EnvVarPrefix, "Transaction"); err != nil {
diff --git a/www/grpc/gen/go/transaction.pb.go b/www/grpc/gen/go/transaction.pb.go
index d6ba91849..34e0717c3 100644
--- a/www/grpc/gen/go/transaction.pb.go
+++ b/www/grpc/gen/go/transaction.pb.go
@@ -482,144 +482,7 @@ func (x *BroadcastTransactionResponse) GetId() string {
return ""
}
-// Request message for retrieving raw details of transaction.
-type GetRawTransactionRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- // The lock time for the transaction. If not set, defaults to the last block height.
- LockTime uint32 `protobuf:"varint,1,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"`
- // A memo string for the transaction.
- Memo string `protobuf:"bytes,2,opt,name=memo,proto3" json:"memo,omitempty"`
- // The fee for the transaction in NanoPAC.
- Fee int64 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"`
- // Types that are assignable to Payload:
- //
- // *GetRawTransactionRequest_Transfer
- // *GetRawTransactionRequest_Bond
- // *GetRawTransactionRequest_Unbond
- // *GetRawTransactionRequest_Withdraw
- Payload isGetRawTransactionRequest_Payload `protobuf_oneof:"payload"`
-}
-
-func (x *GetRawTransactionRequest) Reset() {
- *x = GetRawTransactionRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_transaction_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *GetRawTransactionRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*GetRawTransactionRequest) ProtoMessage() {}
-
-func (x *GetRawTransactionRequest) ProtoReflect() protoreflect.Message {
- mi := &file_transaction_proto_msgTypes[6]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use GetRawTransactionRequest.ProtoReflect.Descriptor instead.
-func (*GetRawTransactionRequest) Descriptor() ([]byte, []int) {
- return file_transaction_proto_rawDescGZIP(), []int{6}
-}
-
-func (x *GetRawTransactionRequest) GetLockTime() uint32 {
- if x != nil {
- return x.LockTime
- }
- return 0
-}
-
-func (x *GetRawTransactionRequest) GetMemo() string {
- if x != nil {
- return x.Memo
- }
- return ""
-}
-
-func (x *GetRawTransactionRequest) GetFee() int64 {
- if x != nil {
- return x.Fee
- }
- return 0
-}
-
-func (m *GetRawTransactionRequest) GetPayload() isGetRawTransactionRequest_Payload {
- if m != nil {
- return m.Payload
- }
- return nil
-}
-
-func (x *GetRawTransactionRequest) GetTransfer() *PayloadTransfer {
- if x, ok := x.GetPayload().(*GetRawTransactionRequest_Transfer); ok {
- return x.Transfer
- }
- return nil
-}
-
-func (x *GetRawTransactionRequest) GetBond() *PayloadBond {
- if x, ok := x.GetPayload().(*GetRawTransactionRequest_Bond); ok {
- return x.Bond
- }
- return nil
-}
-
-func (x *GetRawTransactionRequest) GetUnbond() *PayloadUnbond {
- if x, ok := x.GetPayload().(*GetRawTransactionRequest_Unbond); ok {
- return x.Unbond
- }
- return nil
-}
-
-func (x *GetRawTransactionRequest) GetWithdraw() *PayloadWithdraw {
- if x, ok := x.GetPayload().(*GetRawTransactionRequest_Withdraw); ok {
- return x.Withdraw
- }
- return nil
-}
-
-type isGetRawTransactionRequest_Payload interface {
- isGetRawTransactionRequest_Payload()
-}
-
-type GetRawTransactionRequest_Transfer struct {
- Transfer *PayloadTransfer `protobuf:"bytes,4,opt,name=transfer,proto3,oneof"`
-}
-
-type GetRawTransactionRequest_Bond struct {
- Bond *PayloadBond `protobuf:"bytes,5,opt,name=bond,proto3,oneof"`
-}
-
-type GetRawTransactionRequest_Unbond struct {
- Unbond *PayloadUnbond `protobuf:"bytes,6,opt,name=unbond,proto3,oneof"`
-}
-
-type GetRawTransactionRequest_Withdraw struct {
- Withdraw *PayloadWithdraw `protobuf:"bytes,7,opt,name=withdraw,proto3,oneof"`
-}
-
-func (*GetRawTransactionRequest_Transfer) isGetRawTransactionRequest_Payload() {}
-
-func (*GetRawTransactionRequest_Bond) isGetRawTransactionRequest_Payload() {}
-
-func (*GetRawTransactionRequest_Unbond) isGetRawTransactionRequest_Payload() {}
-
-func (*GetRawTransactionRequest_Withdraw) isGetRawTransactionRequest_Payload() {}
-
-// Deprecated: Request message for retrieving raw details of a transfer transaction.
+// Request message for retrieving raw details of a transfer transaction.
type GetRawTransferTransactionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -643,7 +506,7 @@ type GetRawTransferTransactionRequest struct {
func (x *GetRawTransferTransactionRequest) Reset() {
*x = GetRawTransferTransactionRequest{}
if protoimpl.UnsafeEnabled {
- mi := &file_transaction_proto_msgTypes[7]
+ mi := &file_transaction_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -656,7 +519,7 @@ func (x *GetRawTransferTransactionRequest) String() string {
func (*GetRawTransferTransactionRequest) ProtoMessage() {}
func (x *GetRawTransferTransactionRequest) ProtoReflect() protoreflect.Message {
- mi := &file_transaction_proto_msgTypes[7]
+ mi := &file_transaction_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -669,7 +532,7 @@ func (x *GetRawTransferTransactionRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetRawTransferTransactionRequest.ProtoReflect.Descriptor instead.
func (*GetRawTransferTransactionRequest) Descriptor() ([]byte, []int) {
- return file_transaction_proto_rawDescGZIP(), []int{7}
+ return file_transaction_proto_rawDescGZIP(), []int{6}
}
func (x *GetRawTransferTransactionRequest) GetLockTime() uint32 {
@@ -714,7 +577,7 @@ func (x *GetRawTransferTransactionRequest) GetMemo() string {
return ""
}
-// Deprecated: Request message for retrieving raw details of a bond transaction.
+// Request message for retrieving raw details of a bond transaction.
type GetRawBondTransactionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -740,7 +603,7 @@ type GetRawBondTransactionRequest struct {
func (x *GetRawBondTransactionRequest) Reset() {
*x = GetRawBondTransactionRequest{}
if protoimpl.UnsafeEnabled {
- mi := &file_transaction_proto_msgTypes[8]
+ mi := &file_transaction_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -753,7 +616,7 @@ func (x *GetRawBondTransactionRequest) String() string {
func (*GetRawBondTransactionRequest) ProtoMessage() {}
func (x *GetRawBondTransactionRequest) ProtoReflect() protoreflect.Message {
- mi := &file_transaction_proto_msgTypes[8]
+ mi := &file_transaction_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -766,7 +629,7 @@ func (x *GetRawBondTransactionRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetRawBondTransactionRequest.ProtoReflect.Descriptor instead.
func (*GetRawBondTransactionRequest) Descriptor() ([]byte, []int) {
- return file_transaction_proto_rawDescGZIP(), []int{8}
+ return file_transaction_proto_rawDescGZIP(), []int{7}
}
func (x *GetRawBondTransactionRequest) GetLockTime() uint32 {
@@ -818,7 +681,7 @@ func (x *GetRawBondTransactionRequest) GetMemo() string {
return ""
}
-// Deprecated: Request message for retrieving raw details of an unbond transaction.
+// Request message for retrieving raw details of an unbond transaction.
type GetRawUnbondTransactionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -836,7 +699,7 @@ type GetRawUnbondTransactionRequest struct {
func (x *GetRawUnbondTransactionRequest) Reset() {
*x = GetRawUnbondTransactionRequest{}
if protoimpl.UnsafeEnabled {
- mi := &file_transaction_proto_msgTypes[9]
+ mi := &file_transaction_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -849,7 +712,7 @@ func (x *GetRawUnbondTransactionRequest) String() string {
func (*GetRawUnbondTransactionRequest) ProtoMessage() {}
func (x *GetRawUnbondTransactionRequest) ProtoReflect() protoreflect.Message {
- mi := &file_transaction_proto_msgTypes[9]
+ mi := &file_transaction_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -862,7 +725,7 @@ func (x *GetRawUnbondTransactionRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetRawUnbondTransactionRequest.ProtoReflect.Descriptor instead.
func (*GetRawUnbondTransactionRequest) Descriptor() ([]byte, []int) {
- return file_transaction_proto_rawDescGZIP(), []int{9}
+ return file_transaction_proto_rawDescGZIP(), []int{8}
}
func (x *GetRawUnbondTransactionRequest) GetLockTime() uint32 {
@@ -886,7 +749,7 @@ func (x *GetRawUnbondTransactionRequest) GetMemo() string {
return ""
}
-// Deprecated: Request message for retrieving raw details of a withdraw transaction.
+// Request message for retrieving raw details of a withdraw transaction.
type GetRawWithdrawTransactionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -910,7 +773,7 @@ type GetRawWithdrawTransactionRequest struct {
func (x *GetRawWithdrawTransactionRequest) Reset() {
*x = GetRawWithdrawTransactionRequest{}
if protoimpl.UnsafeEnabled {
- mi := &file_transaction_proto_msgTypes[10]
+ mi := &file_transaction_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -923,7 +786,7 @@ func (x *GetRawWithdrawTransactionRequest) String() string {
func (*GetRawWithdrawTransactionRequest) ProtoMessage() {}
func (x *GetRawWithdrawTransactionRequest) ProtoReflect() protoreflect.Message {
- mi := &file_transaction_proto_msgTypes[10]
+ mi := &file_transaction_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -936,7 +799,7 @@ func (x *GetRawWithdrawTransactionRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetRawWithdrawTransactionRequest.ProtoReflect.Descriptor instead.
func (*GetRawWithdrawTransactionRequest) Descriptor() ([]byte, []int) {
- return file_transaction_proto_rawDescGZIP(), []int{10}
+ return file_transaction_proto_rawDescGZIP(), []int{9}
}
func (x *GetRawWithdrawTransactionRequest) GetLockTime() uint32 {
@@ -996,7 +859,7 @@ type GetRawTransactionResponse struct {
func (x *GetRawTransactionResponse) Reset() {
*x = GetRawTransactionResponse{}
if protoimpl.UnsafeEnabled {
- mi := &file_transaction_proto_msgTypes[11]
+ mi := &file_transaction_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1009,7 +872,7 @@ func (x *GetRawTransactionResponse) String() string {
func (*GetRawTransactionResponse) ProtoMessage() {}
func (x *GetRawTransactionResponse) ProtoReflect() protoreflect.Message {
- mi := &file_transaction_proto_msgTypes[11]
+ mi := &file_transaction_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1022,7 +885,7 @@ func (x *GetRawTransactionResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetRawTransactionResponse.ProtoReflect.Descriptor instead.
func (*GetRawTransactionResponse) Descriptor() ([]byte, []int) {
- return file_transaction_proto_rawDescGZIP(), []int{11}
+ return file_transaction_proto_rawDescGZIP(), []int{10}
}
func (x *GetRawTransactionResponse) GetRawTransaction() string {
@@ -1056,7 +919,7 @@ type PayloadTransfer struct {
func (x *PayloadTransfer) Reset() {
*x = PayloadTransfer{}
if protoimpl.UnsafeEnabled {
- mi := &file_transaction_proto_msgTypes[12]
+ mi := &file_transaction_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1069,7 +932,7 @@ func (x *PayloadTransfer) String() string {
func (*PayloadTransfer) ProtoMessage() {}
func (x *PayloadTransfer) ProtoReflect() protoreflect.Message {
- mi := &file_transaction_proto_msgTypes[12]
+ mi := &file_transaction_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1082,7 +945,7 @@ func (x *PayloadTransfer) ProtoReflect() protoreflect.Message {
// Deprecated: Use PayloadTransfer.ProtoReflect.Descriptor instead.
func (*PayloadTransfer) Descriptor() ([]byte, []int) {
- return file_transaction_proto_rawDescGZIP(), []int{12}
+ return file_transaction_proto_rawDescGZIP(), []int{11}
}
func (x *PayloadTransfer) GetSender() string {
@@ -1125,7 +988,7 @@ type PayloadBond struct {
func (x *PayloadBond) Reset() {
*x = PayloadBond{}
if protoimpl.UnsafeEnabled {
- mi := &file_transaction_proto_msgTypes[13]
+ mi := &file_transaction_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1138,7 +1001,7 @@ func (x *PayloadBond) String() string {
func (*PayloadBond) ProtoMessage() {}
func (x *PayloadBond) ProtoReflect() protoreflect.Message {
- mi := &file_transaction_proto_msgTypes[13]
+ mi := &file_transaction_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1151,7 +1014,7 @@ func (x *PayloadBond) ProtoReflect() protoreflect.Message {
// Deprecated: Use PayloadBond.ProtoReflect.Descriptor instead.
func (*PayloadBond) Descriptor() ([]byte, []int) {
- return file_transaction_proto_rawDescGZIP(), []int{13}
+ return file_transaction_proto_rawDescGZIP(), []int{12}
}
func (x *PayloadBond) GetSender() string {
@@ -1197,7 +1060,7 @@ type PayloadSortition struct {
func (x *PayloadSortition) Reset() {
*x = PayloadSortition{}
if protoimpl.UnsafeEnabled {
- mi := &file_transaction_proto_msgTypes[14]
+ mi := &file_transaction_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1210,7 +1073,7 @@ func (x *PayloadSortition) String() string {
func (*PayloadSortition) ProtoMessage() {}
func (x *PayloadSortition) ProtoReflect() protoreflect.Message {
- mi := &file_transaction_proto_msgTypes[14]
+ mi := &file_transaction_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1223,7 +1086,7 @@ func (x *PayloadSortition) ProtoReflect() protoreflect.Message {
// Deprecated: Use PayloadSortition.ProtoReflect.Descriptor instead.
func (*PayloadSortition) Descriptor() ([]byte, []int) {
- return file_transaction_proto_rawDescGZIP(), []int{14}
+ return file_transaction_proto_rawDescGZIP(), []int{13}
}
func (x *PayloadSortition) GetAddress() string {
@@ -1253,7 +1116,7 @@ type PayloadUnbond struct {
func (x *PayloadUnbond) Reset() {
*x = PayloadUnbond{}
if protoimpl.UnsafeEnabled {
- mi := &file_transaction_proto_msgTypes[15]
+ mi := &file_transaction_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1266,7 +1129,7 @@ func (x *PayloadUnbond) String() string {
func (*PayloadUnbond) ProtoMessage() {}
func (x *PayloadUnbond) ProtoReflect() protoreflect.Message {
- mi := &file_transaction_proto_msgTypes[15]
+ mi := &file_transaction_proto_msgTypes[14]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1279,7 +1142,7 @@ func (x *PayloadUnbond) ProtoReflect() protoreflect.Message {
// Deprecated: Use PayloadUnbond.ProtoReflect.Descriptor instead.
func (*PayloadUnbond) Descriptor() ([]byte, []int) {
- return file_transaction_proto_rawDescGZIP(), []int{15}
+ return file_transaction_proto_rawDescGZIP(), []int{14}
}
func (x *PayloadUnbond) GetValidator() string {
@@ -1306,7 +1169,7 @@ type PayloadWithdraw struct {
func (x *PayloadWithdraw) Reset() {
*x = PayloadWithdraw{}
if protoimpl.UnsafeEnabled {
- mi := &file_transaction_proto_msgTypes[16]
+ mi := &file_transaction_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1319,7 +1182,7 @@ func (x *PayloadWithdraw) String() string {
func (*PayloadWithdraw) ProtoMessage() {}
func (x *PayloadWithdraw) ProtoReflect() protoreflect.Message {
- mi := &file_transaction_proto_msgTypes[16]
+ mi := &file_transaction_proto_msgTypes[15]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1332,7 +1195,7 @@ func (x *PayloadWithdraw) ProtoReflect() protoreflect.Message {
// Deprecated: Use PayloadWithdraw.ProtoReflect.Descriptor instead.
func (*PayloadWithdraw) Descriptor() ([]byte, []int) {
- return file_transaction_proto_rawDescGZIP(), []int{16}
+ return file_transaction_proto_rawDescGZIP(), []int{15}
}
func (x *PayloadWithdraw) GetValidatorAddress() string {
@@ -1395,7 +1258,7 @@ type TransactionInfo struct {
func (x *TransactionInfo) Reset() {
*x = TransactionInfo{}
if protoimpl.UnsafeEnabled {
- mi := &file_transaction_proto_msgTypes[17]
+ mi := &file_transaction_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1408,7 +1271,7 @@ func (x *TransactionInfo) String() string {
func (*TransactionInfo) ProtoMessage() {}
func (x *TransactionInfo) ProtoReflect() protoreflect.Message {
- mi := &file_transaction_proto_msgTypes[17]
+ mi := &file_transaction_proto_msgTypes[16]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1421,7 +1284,7 @@ func (x *TransactionInfo) ProtoReflect() protoreflect.Message {
// Deprecated: Use TransactionInfo.ProtoReflect.Descriptor instead.
func (*TransactionInfo) Descriptor() ([]byte, []int) {
- return file_transaction_proto_rawDescGZIP(), []int{17}
+ return file_transaction_proto_rawDescGZIP(), []int{16}
}
func (x *TransactionInfo) GetId() string {
@@ -1616,207 +1479,182 @@ var file_transaction_proto_rawDesc = []byte{
0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2e, 0x0a, 0x1c, 0x42, 0x72,
0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69,
0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xb2, 0x02, 0x0a, 0x18, 0x47,
- 0x65, 0x74, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f,
- 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b,
- 0x54, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18,
- 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x74, 0x72,
- 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70,
- 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x54, 0x72, 0x61,
- 0x6e, 0x73, 0x66, 0x65, 0x72, 0x48, 0x00, 0x52, 0x08, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65,
- 0x72, 0x12, 0x29, 0x0a, 0x04, 0x62, 0x6f, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x13, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,
- 0x42, 0x6f, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x6e, 0x64, 0x12, 0x2f, 0x0a, 0x06,
- 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70,
- 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x6e, 0x62,
- 0x6f, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x06, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x12, 0x35, 0x0a,
- 0x08, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x17, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,
- 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x48, 0x00, 0x52, 0x08, 0x77, 0x69, 0x74, 0x68,
- 0x64, 0x72, 0x61, 0x77, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22,
- 0xb1, 0x01, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66,
- 0x65, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d,
- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d,
- 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63,
- 0x65, 0x69, 0x76, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x63,
- 0x65, 0x69, 0x76, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18,
- 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a,
- 0x03, 0x66, 0x65, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12,
- 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d,
- 0x65, 0x6d, 0x6f, 0x22, 0xca, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x42, 0x6f,
- 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d,
- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d,
- 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63,
- 0x65, 0x69, 0x76, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x63,
- 0x65, 0x69, 0x76, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x04,
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70,
- 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65,
- 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x12, 0x0a, 0x04,
- 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f,
- 0x22, 0x7e, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x55, 0x6e, 0x62, 0x6f, 0x6e, 0x64,
- 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12,
- 0x2b, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64,
- 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69,
- 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04,
- 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f,
- 0x22, 0xd3, 0x01, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x57, 0x69, 0x74, 0x68, 0x64,
- 0x72, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69,
- 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69,
- 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f,
- 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x76,
- 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12,
- 0x27, 0x0a, 0x0f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65,
- 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
- 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75,
- 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74,
- 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x66,
- 0x65, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x22, 0x54, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77,
- 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x61, 0x77, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73,
- 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x61,
- 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02,
- 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x5d, 0x0a, 0x0f,
- 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12,
- 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69,
- 0x76, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69,
- 0x76, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20,
- 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x76, 0x0a, 0x0b, 0x50,
- 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x6f, 0x6e, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xb1, 0x01, 0x0a, 0x20, 0x47,
+ 0x65, 0x74, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x72, 0x61,
+ 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
+ 0x1b, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x0d, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06,
+ 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65,
+ 0x6e, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72,
+ 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03,
+ 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18,
+ 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65,
+ 0x6d, 0x6f, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x22, 0xca,
+ 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x42, 0x6f, 0x6e, 0x64, 0x54, 0x72, 0x61,
+ 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
+ 0x1b, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x0d, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06,
+ 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65,
+ 0x6e, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72,
+ 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52,
+ 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
+ 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c,
+ 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x06, 0x20, 0x01,
+ 0x28, 0x03, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18,
+ 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x22, 0x7e, 0x0a, 0x1e, 0x47,
+ 0x65, 0x74, 0x52, 0x61, 0x77, 0x55, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73,
+ 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a,
+ 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
+ 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x61,
+ 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18,
+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72,
+ 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18,
+ 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x22, 0xd3, 0x01, 0x0a, 0x20,
+ 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x54, 0x72,
+ 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2b, 0x0a,
+ 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65,
+ 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,
+ 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x63,
+ 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72,
+ 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20,
+ 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x66,
+ 0x65, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x12, 0x0a,
+ 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d,
+ 0x6f, 0x22, 0x54, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73,
+ 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27,
+ 0x0a, 0x0f, 0x72, 0x61, 0x77, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e,
+ 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x5d, 0x0a, 0x0f, 0x50, 0x61, 0x79, 0x6c, 0x6f,
+ 0x61, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65,
0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64,
0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x12, 0x14,
- 0x0a, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73,
- 0x74, 0x61, 0x6b, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b,
- 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
- 0x4b, 0x65, 0x79, 0x22, 0x42, 0x0a, 0x10, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x6f,
- 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65,
- 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
- 0x73, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x22, 0x2d, 0x0a, 0x0d, 0x50, 0x61, 0x79, 0x6c, 0x6f,
- 0x61, 0x64, 0x55, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69,
- 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c,
- 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x7f, 0x0a, 0x0f, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61,
- 0x64, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x61, 0x6c,
- 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41,
- 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
- 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12,
- 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
- 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xac, 0x04, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e,
- 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69,
- 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64,
- 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12,
- 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
- 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x6f, 0x63,
- 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6c, 0x6f,
- 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
- 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03,
- 0x66, 0x65, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x36,
- 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07,
- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x50, 0x61,
- 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6c, 0x6f,
- 0x61, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66,
- 0x65, 0x72, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75,
- 0x73, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65,
- 0x72, 0x48, 0x00, 0x52, 0x08, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x29, 0x0a,
- 0x04, 0x62, 0x6f, 0x6e, 0x64, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x61,
- 0x63, 0x74, 0x75, 0x73, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x6f, 0x6e, 0x64,
- 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x6e, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x73, 0x6f, 0x72, 0x74,
- 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x20, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61,
- 0x63, 0x74, 0x75, 0x73, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x6f, 0x72, 0x74,
- 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x09, 0x73, 0x6f, 0x72, 0x74, 0x69, 0x74, 0x69,
- 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x06, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x18, 0x21, 0x20, 0x01,
- 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x50, 0x61, 0x79, 0x6c,
- 0x6f, 0x61, 0x64, 0x55, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x06, 0x75, 0x6e, 0x62,
- 0x6f, 0x6e, 0x64, 0x12, 0x35, 0x0a, 0x08, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x18,
- 0x22, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x50,
- 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x48, 0x00,
- 0x52, 0x08, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65,
- 0x6d, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, 0x1d,
- 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x09, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a,
- 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x70,
- 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, 0x83, 0x01, 0x0a, 0x0b, 0x50, 0x61, 0x79, 0x6c, 0x6f,
- 0x61, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57,
- 0x4e, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f,
- 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x42, 0x4f, 0x4e,
- 0x44, 0x5f, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x53,
- 0x4f, 0x52, 0x54, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44,
- 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x55, 0x4e, 0x42, 0x4f, 0x4e, 0x44, 0x5f, 0x50, 0x41, 0x59,
- 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52,
- 0x41, 0x57, 0x5f, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x05, 0x2a, 0x42, 0x0a, 0x14,
- 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x65, 0x72, 0x62, 0x6f,
- 0x73, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54,
- 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x52,
- 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x01,
- 0x32, 0x82, 0x06, 0x0a, 0x0b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
- 0x12, 0x4f, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69,
- 0x6f, 0x6e, 0x12, 0x1d, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x54,
- 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x72,
- 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 0x12, 0x49, 0x0a, 0x0c, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x46, 0x65,
- 0x65, 0x12, 0x1b, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x43, 0x61, 0x6c, 0x63, 0x75,
- 0x6c, 0x61, 0x74, 0x65, 0x46, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c,
- 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74,
- 0x65, 0x46, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x14,
- 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63,
- 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x42, 0x72,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x12, 0x16,
+ 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
+ 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x76, 0x0a, 0x0b, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61,
+ 0x64, 0x42, 0x6f, 0x6e, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a,
+ 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61,
+ 0x6b, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x12,
+ 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x42,
+ 0x0a, 0x10, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x6f, 0x72, 0x74, 0x69, 0x74, 0x69,
+ 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05,
+ 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x72, 0x6f,
+ 0x6f, 0x66, 0x22, 0x2d, 0x0a, 0x0d, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x6e, 0x62,
+ 0x6f, 0x6e, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f,
+ 0x72, 0x22, 0x7f, 0x0a, 0x0f, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x57, 0x69, 0x74, 0x68,
+ 0x64, 0x72, 0x61, 0x77, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f,
+ 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
+ 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64,
+ 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x63, 0x63, 0x6f,
+ 0x75, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d,
+ 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75,
+ 0x6e, 0x74, 0x22, 0xac, 0x04, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65,
+ 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72,
+ 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d,
+ 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d,
+ 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
+ 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x06,
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x36, 0x0a, 0x0c, 0x70, 0x61, 0x79,
+ 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32,
+ 0x13, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,
+ 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x54, 0x79, 0x70,
+ 0x65, 0x12, 0x35, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x18, 0x1e, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x50, 0x61, 0x79,
+ 0x6c, 0x6f, 0x61, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x48, 0x00, 0x52, 0x08,
+ 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x04, 0x62, 0x6f, 0x6e, 0x64,
+ 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e,
+ 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x6f, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x04, 0x62,
+ 0x6f, 0x6e, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x73, 0x6f, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e,
+ 0x18, 0x20, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e,
+ 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x6f, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e,
+ 0x48, 0x00, 0x52, 0x09, 0x73, 0x6f, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a,
+ 0x06, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x18, 0x21, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e,
+ 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x6e,
+ 0x62, 0x6f, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x06, 0x75, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x12, 0x35,
+ 0x0a, 0x08, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x18, 0x22, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x17, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61,
+ 0x64, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x48, 0x00, 0x52, 0x08, 0x77, 0x69, 0x74,
+ 0x68, 0x64, 0x72, 0x61, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x08, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62,
+ 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70,
+ 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e,
+ 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x69, 0x67,
+ 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61,
+ 0x64, 0x2a, 0x83, 0x01, 0x0a, 0x0b, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x54, 0x79, 0x70,
+ 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x14,
+ 0x0a, 0x10, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x50, 0x41, 0x59, 0x4c, 0x4f,
+ 0x41, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x42, 0x4f, 0x4e, 0x44, 0x5f, 0x50, 0x41, 0x59,
+ 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x4f, 0x52, 0x54, 0x49, 0x54,
+ 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x03, 0x12, 0x12, 0x0a,
+ 0x0e, 0x55, 0x4e, 0x42, 0x4f, 0x4e, 0x44, 0x5f, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x10,
+ 0x04, 0x12, 0x14, 0x0a, 0x10, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x5f, 0x50, 0x41,
+ 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x05, 0x2a, 0x42, 0x0a, 0x14, 0x54, 0x72, 0x61, 0x6e, 0x73,
+ 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x65, 0x72, 0x62, 0x6f, 0x73, 0x69, 0x74, 0x79, 0x12,
+ 0x14, 0x0a, 0x10, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44,
+ 0x41, 0x54, 0x41, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43,
+ 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x01, 0x32, 0xa8, 0x05, 0x0a, 0x0b,
+ 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x0e, 0x47,
+ 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x2e,
+ 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61,
+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70,
+ 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0c,
+ 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x46, 0x65, 0x65, 0x12, 0x1b, 0x2e, 0x70,
+ 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x46,
+ 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x61, 0x63, 0x74,
+ 0x75, 0x73, 0x2e, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x46, 0x65, 0x65, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x14, 0x42, 0x72, 0x6f, 0x61, 0x64,
+ 0x63, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12,
+ 0x23, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61,
+ 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x42, 0x72,
0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69,
- 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x61, 0x63, 0x74,
- 0x75, 0x73, 0x2e, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e,
- 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
- 0x58, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63,
- 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x47, 0x65,
- 0x74, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e,
- 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f,
- 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x47, 0x65, 0x74,
- 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73,
- 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e,
- 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x72,
- 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x1a, 0x21, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77,
- 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x42, 0x6f, 0x6e,
- 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70,
- 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x42, 0x6f, 0x6e, 0x64,
- 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x52,
- 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x55,
- 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
- 0x12, 0x26, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77,
+ 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x47, 0x65,
+ 0x74, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x72, 0x61, 0x6e,
+ 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73,
+ 0x2e, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54,
+ 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x61,
+ 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70,
+ 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x42, 0x6f,
+ 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e,
+ 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x42, 0x6f, 0x6e,
+ 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x47, 0x65, 0x74,
+ 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77,
0x55, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f,
- 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75,
- 0x73, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74,
- 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x47,
- 0x65, 0x74, 0x52, 0x61, 0x77, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x54, 0x72, 0x61,
- 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75,
- 0x73, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77,
- 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x52,
- 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x46, 0x0a, 0x12, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e,
- 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5a, 0x30, 0x67, 0x69, 0x74,
- 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2d, 0x70,
- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2f, 0x77, 0x77,
- 0x77, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x62, 0x06, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x6e, 0x12, 0x26, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x61,
+ 0x77, 0x55, 0x6e, 0x62, 0x6f, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69,
+ 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x61, 0x63, 0x74,
+ 0x75, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63,
+ 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19,
+ 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x54, 0x72,
+ 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x2e, 0x70, 0x61, 0x63, 0x74,
+ 0x75, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x61, 0x77, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61,
+ 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x47, 0x65, 0x74,
+ 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x46, 0x0a, 0x12, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73,
+ 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5a, 0x30, 0x67, 0x69,
+ 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2d,
+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2f, 0x77,
+ 0x77, 0x77, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x62, 0x06,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -1832,7 +1670,7 @@ func file_transaction_proto_rawDescGZIP() []byte {
}
var file_transaction_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
-var file_transaction_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
+var file_transaction_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
var file_transaction_proto_goTypes = []any{
(PayloadType)(0), // 0: pactus.PayloadType
(TransactionVerbosity)(0), // 1: pactus.TransactionVerbosity
@@ -1842,54 +1680,47 @@ var file_transaction_proto_goTypes = []any{
(*CalculateFeeResponse)(nil), // 5: pactus.CalculateFeeResponse
(*BroadcastTransactionRequest)(nil), // 6: pactus.BroadcastTransactionRequest
(*BroadcastTransactionResponse)(nil), // 7: pactus.BroadcastTransactionResponse
- (*GetRawTransactionRequest)(nil), // 8: pactus.GetRawTransactionRequest
- (*GetRawTransferTransactionRequest)(nil), // 9: pactus.GetRawTransferTransactionRequest
- (*GetRawBondTransactionRequest)(nil), // 10: pactus.GetRawBondTransactionRequest
- (*GetRawUnbondTransactionRequest)(nil), // 11: pactus.GetRawUnbondTransactionRequest
- (*GetRawWithdrawTransactionRequest)(nil), // 12: pactus.GetRawWithdrawTransactionRequest
- (*GetRawTransactionResponse)(nil), // 13: pactus.GetRawTransactionResponse
- (*PayloadTransfer)(nil), // 14: pactus.PayloadTransfer
- (*PayloadBond)(nil), // 15: pactus.PayloadBond
- (*PayloadSortition)(nil), // 16: pactus.PayloadSortition
- (*PayloadUnbond)(nil), // 17: pactus.PayloadUnbond
- (*PayloadWithdraw)(nil), // 18: pactus.PayloadWithdraw
- (*TransactionInfo)(nil), // 19: pactus.TransactionInfo
+ (*GetRawTransferTransactionRequest)(nil), // 8: pactus.GetRawTransferTransactionRequest
+ (*GetRawBondTransactionRequest)(nil), // 9: pactus.GetRawBondTransactionRequest
+ (*GetRawUnbondTransactionRequest)(nil), // 10: pactus.GetRawUnbondTransactionRequest
+ (*GetRawWithdrawTransactionRequest)(nil), // 11: pactus.GetRawWithdrawTransactionRequest
+ (*GetRawTransactionResponse)(nil), // 12: pactus.GetRawTransactionResponse
+ (*PayloadTransfer)(nil), // 13: pactus.PayloadTransfer
+ (*PayloadBond)(nil), // 14: pactus.PayloadBond
+ (*PayloadSortition)(nil), // 15: pactus.PayloadSortition
+ (*PayloadUnbond)(nil), // 16: pactus.PayloadUnbond
+ (*PayloadWithdraw)(nil), // 17: pactus.PayloadWithdraw
+ (*TransactionInfo)(nil), // 18: pactus.TransactionInfo
}
var file_transaction_proto_depIdxs = []int32{
1, // 0: pactus.GetTransactionRequest.verbosity:type_name -> pactus.TransactionVerbosity
- 19, // 1: pactus.GetTransactionResponse.transaction:type_name -> pactus.TransactionInfo
+ 18, // 1: pactus.GetTransactionResponse.transaction:type_name -> pactus.TransactionInfo
0, // 2: pactus.CalculateFeeRequest.payload_type:type_name -> pactus.PayloadType
- 14, // 3: pactus.GetRawTransactionRequest.transfer:type_name -> pactus.PayloadTransfer
- 15, // 4: pactus.GetRawTransactionRequest.bond:type_name -> pactus.PayloadBond
- 17, // 5: pactus.GetRawTransactionRequest.unbond:type_name -> pactus.PayloadUnbond
- 18, // 6: pactus.GetRawTransactionRequest.withdraw:type_name -> pactus.PayloadWithdraw
- 0, // 7: pactus.TransactionInfo.payload_type:type_name -> pactus.PayloadType
- 14, // 8: pactus.TransactionInfo.transfer:type_name -> pactus.PayloadTransfer
- 15, // 9: pactus.TransactionInfo.bond:type_name -> pactus.PayloadBond
- 16, // 10: pactus.TransactionInfo.sortition:type_name -> pactus.PayloadSortition
- 17, // 11: pactus.TransactionInfo.unbond:type_name -> pactus.PayloadUnbond
- 18, // 12: pactus.TransactionInfo.withdraw:type_name -> pactus.PayloadWithdraw
- 2, // 13: pactus.Transaction.GetTransaction:input_type -> pactus.GetTransactionRequest
- 4, // 14: pactus.Transaction.CalculateFee:input_type -> pactus.CalculateFeeRequest
- 6, // 15: pactus.Transaction.BroadcastTransaction:input_type -> pactus.BroadcastTransactionRequest
- 8, // 16: pactus.Transaction.GetRawTransaction:input_type -> pactus.GetRawTransactionRequest
- 9, // 17: pactus.Transaction.GetRawTransferTransaction:input_type -> pactus.GetRawTransferTransactionRequest
- 10, // 18: pactus.Transaction.GetRawBondTransaction:input_type -> pactus.GetRawBondTransactionRequest
- 11, // 19: pactus.Transaction.GetRawUnbondTransaction:input_type -> pactus.GetRawUnbondTransactionRequest
- 12, // 20: pactus.Transaction.GetRawWithdrawTransaction:input_type -> pactus.GetRawWithdrawTransactionRequest
- 3, // 21: pactus.Transaction.GetTransaction:output_type -> pactus.GetTransactionResponse
- 5, // 22: pactus.Transaction.CalculateFee:output_type -> pactus.CalculateFeeResponse
- 7, // 23: pactus.Transaction.BroadcastTransaction:output_type -> pactus.BroadcastTransactionResponse
- 13, // 24: pactus.Transaction.GetRawTransaction:output_type -> pactus.GetRawTransactionResponse
- 13, // 25: pactus.Transaction.GetRawTransferTransaction:output_type -> pactus.GetRawTransactionResponse
- 13, // 26: pactus.Transaction.GetRawBondTransaction:output_type -> pactus.GetRawTransactionResponse
- 13, // 27: pactus.Transaction.GetRawUnbondTransaction:output_type -> pactus.GetRawTransactionResponse
- 13, // 28: pactus.Transaction.GetRawWithdrawTransaction:output_type -> pactus.GetRawTransactionResponse
- 21, // [21:29] is the sub-list for method output_type
- 13, // [13:21] is the sub-list for method input_type
- 13, // [13:13] is the sub-list for extension type_name
- 13, // [13:13] is the sub-list for extension extendee
- 0, // [0:13] is the sub-list for field type_name
+ 0, // 3: pactus.TransactionInfo.payload_type:type_name -> pactus.PayloadType
+ 13, // 4: pactus.TransactionInfo.transfer:type_name -> pactus.PayloadTransfer
+ 14, // 5: pactus.TransactionInfo.bond:type_name -> pactus.PayloadBond
+ 15, // 6: pactus.TransactionInfo.sortition:type_name -> pactus.PayloadSortition
+ 16, // 7: pactus.TransactionInfo.unbond:type_name -> pactus.PayloadUnbond
+ 17, // 8: pactus.TransactionInfo.withdraw:type_name -> pactus.PayloadWithdraw
+ 2, // 9: pactus.Transaction.GetTransaction:input_type -> pactus.GetTransactionRequest
+ 4, // 10: pactus.Transaction.CalculateFee:input_type -> pactus.CalculateFeeRequest
+ 6, // 11: pactus.Transaction.BroadcastTransaction:input_type -> pactus.BroadcastTransactionRequest
+ 8, // 12: pactus.Transaction.GetRawTransferTransaction:input_type -> pactus.GetRawTransferTransactionRequest
+ 9, // 13: pactus.Transaction.GetRawBondTransaction:input_type -> pactus.GetRawBondTransactionRequest
+ 10, // 14: pactus.Transaction.GetRawUnbondTransaction:input_type -> pactus.GetRawUnbondTransactionRequest
+ 11, // 15: pactus.Transaction.GetRawWithdrawTransaction:input_type -> pactus.GetRawWithdrawTransactionRequest
+ 3, // 16: pactus.Transaction.GetTransaction:output_type -> pactus.GetTransactionResponse
+ 5, // 17: pactus.Transaction.CalculateFee:output_type -> pactus.CalculateFeeResponse
+ 7, // 18: pactus.Transaction.BroadcastTransaction:output_type -> pactus.BroadcastTransactionResponse
+ 12, // 19: pactus.Transaction.GetRawTransferTransaction:output_type -> pactus.GetRawTransactionResponse
+ 12, // 20: pactus.Transaction.GetRawBondTransaction:output_type -> pactus.GetRawTransactionResponse
+ 12, // 21: pactus.Transaction.GetRawUnbondTransaction:output_type -> pactus.GetRawTransactionResponse
+ 12, // 22: pactus.Transaction.GetRawWithdrawTransaction:output_type -> pactus.GetRawTransactionResponse
+ 16, // [16:23] is the sub-list for method output_type
+ 9, // [9:16] is the sub-list for method input_type
+ 9, // [9:9] is the sub-list for extension type_name
+ 9, // [9:9] is the sub-list for extension extendee
+ 0, // [0:9] is the sub-list for field type_name
}
func init() { file_transaction_proto_init() }
@@ -1971,18 +1802,6 @@ func file_transaction_proto_init() {
}
}
file_transaction_proto_msgTypes[6].Exporter = func(v any, i int) any {
- switch v := v.(*GetRawTransactionRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_transaction_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*GetRawTransferTransactionRequest); i {
case 0:
return &v.state
@@ -1994,7 +1813,7 @@ func file_transaction_proto_init() {
return nil
}
}
- file_transaction_proto_msgTypes[8].Exporter = func(v any, i int) any {
+ file_transaction_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*GetRawBondTransactionRequest); i {
case 0:
return &v.state
@@ -2006,7 +1825,7 @@ func file_transaction_proto_init() {
return nil
}
}
- file_transaction_proto_msgTypes[9].Exporter = func(v any, i int) any {
+ file_transaction_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*GetRawUnbondTransactionRequest); i {
case 0:
return &v.state
@@ -2018,7 +1837,7 @@ func file_transaction_proto_init() {
return nil
}
}
- file_transaction_proto_msgTypes[10].Exporter = func(v any, i int) any {
+ file_transaction_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*GetRawWithdrawTransactionRequest); i {
case 0:
return &v.state
@@ -2030,7 +1849,7 @@ func file_transaction_proto_init() {
return nil
}
}
- file_transaction_proto_msgTypes[11].Exporter = func(v any, i int) any {
+ file_transaction_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*GetRawTransactionResponse); i {
case 0:
return &v.state
@@ -2042,7 +1861,7 @@ func file_transaction_proto_init() {
return nil
}
}
- file_transaction_proto_msgTypes[12].Exporter = func(v any, i int) any {
+ file_transaction_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*PayloadTransfer); i {
case 0:
return &v.state
@@ -2054,7 +1873,7 @@ func file_transaction_proto_init() {
return nil
}
}
- file_transaction_proto_msgTypes[13].Exporter = func(v any, i int) any {
+ file_transaction_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*PayloadBond); i {
case 0:
return &v.state
@@ -2066,7 +1885,7 @@ func file_transaction_proto_init() {
return nil
}
}
- file_transaction_proto_msgTypes[14].Exporter = func(v any, i int) any {
+ file_transaction_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*PayloadSortition); i {
case 0:
return &v.state
@@ -2078,7 +1897,7 @@ func file_transaction_proto_init() {
return nil
}
}
- file_transaction_proto_msgTypes[15].Exporter = func(v any, i int) any {
+ file_transaction_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*PayloadUnbond); i {
case 0:
return &v.state
@@ -2090,7 +1909,7 @@ func file_transaction_proto_init() {
return nil
}
}
- file_transaction_proto_msgTypes[16].Exporter = func(v any, i int) any {
+ file_transaction_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*PayloadWithdraw); i {
case 0:
return &v.state
@@ -2102,7 +1921,7 @@ func file_transaction_proto_init() {
return nil
}
}
- file_transaction_proto_msgTypes[17].Exporter = func(v any, i int) any {
+ file_transaction_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*TransactionInfo); i {
case 0:
return &v.state
@@ -2115,13 +1934,7 @@ func file_transaction_proto_init() {
}
}
}
- file_transaction_proto_msgTypes[6].OneofWrappers = []any{
- (*GetRawTransactionRequest_Transfer)(nil),
- (*GetRawTransactionRequest_Bond)(nil),
- (*GetRawTransactionRequest_Unbond)(nil),
- (*GetRawTransactionRequest_Withdraw)(nil),
- }
- file_transaction_proto_msgTypes[17].OneofWrappers = []any{
+ file_transaction_proto_msgTypes[16].OneofWrappers = []any{
(*TransactionInfo_Transfer)(nil),
(*TransactionInfo_Bond)(nil),
(*TransactionInfo_Sortition)(nil),
@@ -2134,7 +1947,7 @@ func file_transaction_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_transaction_proto_rawDesc,
NumEnums: 2,
- NumMessages: 18,
+ NumMessages: 17,
NumExtensions: 0,
NumServices: 1,
},
diff --git a/www/grpc/gen/go/transaction.pb.gw.go b/www/grpc/gen/go/transaction.pb.gw.go
index c076cff29..83467c5b1 100644
--- a/www/grpc/gen/go/transaction.pb.gw.go
+++ b/www/grpc/gen/go/transaction.pb.gw.go
@@ -140,37 +140,145 @@ func local_request_Transaction_BroadcastTransaction_0(ctx context.Context, marsh
}
var (
- filter_Transaction_GetRawTransaction_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
+ filter_Transaction_GetRawTransferTransaction_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
)
-func request_Transaction_GetRawTransaction_0(ctx context.Context, marshaler runtime.Marshaler, client TransactionClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq GetRawTransactionRequest
+func request_Transaction_GetRawTransferTransaction_0(ctx context.Context, marshaler runtime.Marshaler, client TransactionClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq GetRawTransferTransactionRequest
var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Transaction_GetRawTransaction_0); err != nil {
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Transaction_GetRawTransferTransaction_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
- msg, err := client.GetRawTransaction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ msg, err := client.GetRawTransferTransaction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
-func local_request_Transaction_GetRawTransaction_0(ctx context.Context, marshaler runtime.Marshaler, server TransactionServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq GetRawTransactionRequest
+func local_request_Transaction_GetRawTransferTransaction_0(ctx context.Context, marshaler runtime.Marshaler, server TransactionServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq GetRawTransferTransactionRequest
var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Transaction_GetRawTransaction_0); err != nil {
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Transaction_GetRawTransferTransaction_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
- msg, err := server.GetRawTransaction(ctx, &protoReq)
+ msg, err := server.GetRawTransferTransaction(ctx, &protoReq)
+ return msg, metadata, err
+
+}
+
+var (
+ filter_Transaction_GetRawBondTransaction_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
+)
+
+func request_Transaction_GetRawBondTransaction_0(ctx context.Context, marshaler runtime.Marshaler, client TransactionClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq GetRawBondTransactionRequest
+ var metadata runtime.ServerMetadata
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Transaction_GetRawBondTransaction_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := client.GetRawBondTransaction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ return msg, metadata, err
+
+}
+
+func local_request_Transaction_GetRawBondTransaction_0(ctx context.Context, marshaler runtime.Marshaler, server TransactionServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq GetRawBondTransactionRequest
+ var metadata runtime.ServerMetadata
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Transaction_GetRawBondTransaction_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := server.GetRawBondTransaction(ctx, &protoReq)
+ return msg, metadata, err
+
+}
+
+var (
+ filter_Transaction_GetRawUnbondTransaction_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
+)
+
+func request_Transaction_GetRawUnbondTransaction_0(ctx context.Context, marshaler runtime.Marshaler, client TransactionClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq GetRawUnbondTransactionRequest
+ var metadata runtime.ServerMetadata
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Transaction_GetRawUnbondTransaction_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := client.GetRawUnbondTransaction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ return msg, metadata, err
+
+}
+
+func local_request_Transaction_GetRawUnbondTransaction_0(ctx context.Context, marshaler runtime.Marshaler, server TransactionServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq GetRawUnbondTransactionRequest
+ var metadata runtime.ServerMetadata
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Transaction_GetRawUnbondTransaction_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := server.GetRawUnbondTransaction(ctx, &protoReq)
+ return msg, metadata, err
+
+}
+
+var (
+ filter_Transaction_GetRawWithdrawTransaction_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
+)
+
+func request_Transaction_GetRawWithdrawTransaction_0(ctx context.Context, marshaler runtime.Marshaler, client TransactionClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq GetRawWithdrawTransactionRequest
+ var metadata runtime.ServerMetadata
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Transaction_GetRawWithdrawTransaction_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := client.GetRawWithdrawTransaction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ return msg, metadata, err
+
+}
+
+func local_request_Transaction_GetRawWithdrawTransaction_0(ctx context.Context, marshaler runtime.Marshaler, server TransactionServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq GetRawWithdrawTransactionRequest
+ var metadata runtime.ServerMetadata
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Transaction_GetRawWithdrawTransaction_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := server.GetRawWithdrawTransaction(ctx, &protoReq)
return msg, metadata, err
}
@@ -257,7 +365,32 @@ func RegisterTransactionHandlerServer(ctx context.Context, mux *runtime.ServeMux
})
- mux.Handle("GET", pattern_Transaction_GetRawTransaction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("GET", pattern_Transaction_GetRawTransferTransaction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ var stream runtime.ServerTransportStream
+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pactus.Transaction/GetRawTransferTransaction", runtime.WithHTTPPathPattern("/pactus/transaction/get_raw_transfer_transaction"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := local_request_Transaction_GetRawTransferTransaction_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_Transaction_GetRawTransferTransaction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
+ mux.Handle("GET", pattern_Transaction_GetRawBondTransaction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
@@ -265,12 +398,12 @@ func RegisterTransactionHandlerServer(ctx context.Context, mux *runtime.ServeMux
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pactus.Transaction/GetRawTransaction", runtime.WithHTTPPathPattern("/pactus/transaction/get_raw_transaction"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pactus.Transaction/GetRawBondTransaction", runtime.WithHTTPPathPattern("/pactus/transaction/get_raw_bond_transaction"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
- resp, md, err := local_request_Transaction_GetRawTransaction_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ resp, md, err := local_request_Transaction_GetRawBondTransaction_0(annotatedContext, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
if err != nil {
@@ -278,7 +411,57 @@ func RegisterTransactionHandlerServer(ctx context.Context, mux *runtime.ServeMux
return
}
- forward_Transaction_GetRawTransaction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ forward_Transaction_GetRawBondTransaction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
+ mux.Handle("GET", pattern_Transaction_GetRawUnbondTransaction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ var stream runtime.ServerTransportStream
+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pactus.Transaction/GetRawUnbondTransaction", runtime.WithHTTPPathPattern("/pactus/transaction/get_raw_unbond_transaction"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := local_request_Transaction_GetRawUnbondTransaction_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_Transaction_GetRawUnbondTransaction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
+ mux.Handle("GET", pattern_Transaction_GetRawWithdrawTransaction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ var stream runtime.ServerTransportStream
+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pactus.Transaction/GetRawWithdrawTransaction", runtime.WithHTTPPathPattern("/pactus/transaction/get_raw_withdraw_transaction"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := local_request_Transaction_GetRawWithdrawTransaction_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_Transaction_GetRawWithdrawTransaction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
@@ -389,25 +572,91 @@ func RegisterTransactionHandlerClient(ctx context.Context, mux *runtime.ServeMux
})
- mux.Handle("GET", pattern_Transaction_GetRawTransaction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("GET", pattern_Transaction_GetRawTransferTransaction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/pactus.Transaction/GetRawTransferTransaction", runtime.WithHTTPPathPattern("/pactus/transaction/get_raw_transfer_transaction"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := request_Transaction_GetRawTransferTransaction_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_Transaction_GetRawTransferTransaction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
+ mux.Handle("GET", pattern_Transaction_GetRawBondTransaction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/pactus.Transaction/GetRawTransaction", runtime.WithHTTPPathPattern("/pactus/transaction/get_raw_transaction"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/pactus.Transaction/GetRawBondTransaction", runtime.WithHTTPPathPattern("/pactus/transaction/get_raw_bond_transaction"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
- resp, md, err := request_Transaction_GetRawTransaction_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ resp, md, err := request_Transaction_GetRawBondTransaction_0(annotatedContext, inboundMarshaler, client, req, pathParams)
annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
if err != nil {
runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
return
}
- forward_Transaction_GetRawTransaction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ forward_Transaction_GetRawBondTransaction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
+ mux.Handle("GET", pattern_Transaction_GetRawUnbondTransaction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/pactus.Transaction/GetRawUnbondTransaction", runtime.WithHTTPPathPattern("/pactus/transaction/get_raw_unbond_transaction"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := request_Transaction_GetRawUnbondTransaction_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_Transaction_GetRawUnbondTransaction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
+ mux.Handle("GET", pattern_Transaction_GetRawWithdrawTransaction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/pactus.Transaction/GetRawWithdrawTransaction", runtime.WithHTTPPathPattern("/pactus/transaction/get_raw_withdraw_transaction"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := request_Transaction_GetRawWithdrawTransaction_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_Transaction_GetRawWithdrawTransaction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
@@ -421,7 +670,13 @@ var (
pattern_Transaction_BroadcastTransaction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"pactus", "transaction", "broadcast_transaction"}, ""))
- pattern_Transaction_GetRawTransaction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"pactus", "transaction", "get_raw_transaction"}, ""))
+ pattern_Transaction_GetRawTransferTransaction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"pactus", "transaction", "get_raw_transfer_transaction"}, ""))
+
+ pattern_Transaction_GetRawBondTransaction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"pactus", "transaction", "get_raw_bond_transaction"}, ""))
+
+ pattern_Transaction_GetRawUnbondTransaction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"pactus", "transaction", "get_raw_unbond_transaction"}, ""))
+
+ pattern_Transaction_GetRawWithdrawTransaction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"pactus", "transaction", "get_raw_withdraw_transaction"}, ""))
)
var (
@@ -431,5 +686,11 @@ var (
forward_Transaction_BroadcastTransaction_0 = runtime.ForwardResponseMessage
- forward_Transaction_GetRawTransaction_0 = runtime.ForwardResponseMessage
+ forward_Transaction_GetRawTransferTransaction_0 = runtime.ForwardResponseMessage
+
+ forward_Transaction_GetRawBondTransaction_0 = runtime.ForwardResponseMessage
+
+ forward_Transaction_GetRawUnbondTransaction_0 = runtime.ForwardResponseMessage
+
+ forward_Transaction_GetRawWithdrawTransaction_0 = runtime.ForwardResponseMessage
)
diff --git a/www/grpc/gen/go/transaction_grpc.pb.go b/www/grpc/gen/go/transaction_grpc.pb.go
index e72010e33..a561a93da 100644
--- a/www/grpc/gen/go/transaction_grpc.pb.go
+++ b/www/grpc/gen/go/transaction_grpc.pb.go
@@ -22,7 +22,6 @@ const (
Transaction_GetTransaction_FullMethodName = "/pactus.Transaction/GetTransaction"
Transaction_CalculateFee_FullMethodName = "/pactus.Transaction/CalculateFee"
Transaction_BroadcastTransaction_FullMethodName = "/pactus.Transaction/BroadcastTransaction"
- Transaction_GetRawTransaction_FullMethodName = "/pactus.Transaction/GetRawTransaction"
Transaction_GetRawTransferTransaction_FullMethodName = "/pactus.Transaction/GetRawTransferTransaction"
Transaction_GetRawBondTransaction_FullMethodName = "/pactus.Transaction/GetRawBondTransaction"
Transaction_GetRawUnbondTransaction_FullMethodName = "/pactus.Transaction/GetRawUnbondTransaction"
@@ -44,19 +43,13 @@ type TransactionClient interface {
CalculateFee(ctx context.Context, in *CalculateFeeRequest, opts ...grpc.CallOption) (*CalculateFeeResponse, error)
// BroadcastTransaction broadcasts a signed transaction to the network.
BroadcastTransaction(ctx context.Context, in *BroadcastTransactionRequest, opts ...grpc.CallOption) (*BroadcastTransactionResponse, error)
- // GetRawTransaction retrieves raw details of transfer, bond, unbond or withdraw transaction.
- GetRawTransaction(ctx context.Context, in *GetRawTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error)
- // Deprecated: GetRawTransferTransaction retrieves raw details of a transfer transaction.
- // Use GetRawTransaction instead.
+ // GetRawTransferTransaction retrieves raw details of a transfer transaction.
GetRawTransferTransaction(ctx context.Context, in *GetRawTransferTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error)
- // Deprecated: GetRawBondTransaction retrieves raw details of a bond transaction.
- // Use GetRawTransaction instead.
+ // GetRawBondTransaction retrieves raw details of a bond transaction.
GetRawBondTransaction(ctx context.Context, in *GetRawBondTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error)
- // Deprecated: GetRawUnbondTransaction retrieves raw details of an unbond transaction.
- // Use GetRawTransaction instead.
+ // GetRawUnbondTransaction retrieves raw details of an unbond transaction.
GetRawUnbondTransaction(ctx context.Context, in *GetRawUnbondTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error)
- // Deprecated: GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
- // Use GetRawTransaction instead.
+ // GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
GetRawWithdrawTransaction(ctx context.Context, in *GetRawWithdrawTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error)
}
@@ -98,16 +91,6 @@ func (c *transactionClient) BroadcastTransaction(ctx context.Context, in *Broadc
return out, nil
}
-func (c *transactionClient) GetRawTransaction(ctx context.Context, in *GetRawTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(GetRawTransactionResponse)
- err := c.cc.Invoke(ctx, Transaction_GetRawTransaction_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
func (c *transactionClient) GetRawTransferTransaction(ctx context.Context, in *GetRawTransferTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(GetRawTransactionResponse)
@@ -163,19 +146,13 @@ type TransactionServer interface {
CalculateFee(context.Context, *CalculateFeeRequest) (*CalculateFeeResponse, error)
// BroadcastTransaction broadcasts a signed transaction to the network.
BroadcastTransaction(context.Context, *BroadcastTransactionRequest) (*BroadcastTransactionResponse, error)
- // GetRawTransaction retrieves raw details of transfer, bond, unbond or withdraw transaction.
- GetRawTransaction(context.Context, *GetRawTransactionRequest) (*GetRawTransactionResponse, error)
- // Deprecated: GetRawTransferTransaction retrieves raw details of a transfer transaction.
- // Use GetRawTransaction instead.
+ // GetRawTransferTransaction retrieves raw details of a transfer transaction.
GetRawTransferTransaction(context.Context, *GetRawTransferTransactionRequest) (*GetRawTransactionResponse, error)
- // Deprecated: GetRawBondTransaction retrieves raw details of a bond transaction.
- // Use GetRawTransaction instead.
+ // GetRawBondTransaction retrieves raw details of a bond transaction.
GetRawBondTransaction(context.Context, *GetRawBondTransactionRequest) (*GetRawTransactionResponse, error)
- // Deprecated: GetRawUnbondTransaction retrieves raw details of an unbond transaction.
- // Use GetRawTransaction instead.
+ // GetRawUnbondTransaction retrieves raw details of an unbond transaction.
GetRawUnbondTransaction(context.Context, *GetRawUnbondTransactionRequest) (*GetRawTransactionResponse, error)
- // Deprecated: GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
- // Use GetRawTransaction instead.
+ // GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
GetRawWithdrawTransaction(context.Context, *GetRawWithdrawTransactionRequest) (*GetRawTransactionResponse, error)
}
@@ -192,9 +169,6 @@ func (UnimplementedTransactionServer) CalculateFee(context.Context, *CalculateFe
func (UnimplementedTransactionServer) BroadcastTransaction(context.Context, *BroadcastTransactionRequest) (*BroadcastTransactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BroadcastTransaction not implemented")
}
-func (UnimplementedTransactionServer) GetRawTransaction(context.Context, *GetRawTransactionRequest) (*GetRawTransactionResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetRawTransaction not implemented")
-}
func (UnimplementedTransactionServer) GetRawTransferTransaction(context.Context, *GetRawTransferTransactionRequest) (*GetRawTransactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetRawTransferTransaction not implemented")
}
@@ -273,24 +247,6 @@ func _Transaction_BroadcastTransaction_Handler(srv interface{}, ctx context.Cont
return interceptor(ctx, in, info, handler)
}
-func _Transaction_GetRawTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetRawTransactionRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(TransactionServer).GetRawTransaction(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Transaction_GetRawTransaction_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(TransactionServer).GetRawTransaction(ctx, req.(*GetRawTransactionRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
func _Transaction_GetRawTransferTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetRawTransferTransactionRequest)
if err := dec(in); err != nil {
@@ -382,10 +338,6 @@ var Transaction_ServiceDesc = grpc.ServiceDesc{
MethodName: "BroadcastTransaction",
Handler: _Transaction_BroadcastTransaction_Handler,
},
- {
- MethodName: "GetRawTransaction",
- Handler: _Transaction_GetRawTransaction_Handler,
- },
{
MethodName: "GetRawTransferTransaction",
Handler: _Transaction_GetRawTransferTransaction_Handler,
diff --git a/www/grpc/gen/go/transaction_jgw.pb.go b/www/grpc/gen/go/transaction_jgw.pb.go
index 9982429ab..d4eb72a48 100644
--- a/www/grpc/gen/go/transaction_jgw.pb.go
+++ b/www/grpc/gen/go/transaction_jgw.pb.go
@@ -88,23 +88,6 @@ func (s *TransactionJsonRPC) Methods() map[string]func(ctx context.Context, mess
return s.client.BroadcastTransaction(metadata.NewOutgoingContext(ctx, jrpcData.Headers), req)
},
- "pactus.transaction.get_raw_transaction": func(ctx context.Context, data json.RawMessage) (any, error) {
- req := new(GetRawTransactionRequest)
-
- var jrpcData paramsAndHeadersTransaction
-
- if err := json.Unmarshal(data, &jrpcData); err != nil {
- return nil, err
- }
-
- err := protojson.Unmarshal(jrpcData.Params, req)
- if err != nil {
- return nil, err
- }
-
- return s.client.GetRawTransaction(metadata.NewOutgoingContext(ctx, jrpcData.Headers), req)
- },
-
"pactus.transaction.get_raw_transfer_transaction": func(ctx context.Context, data json.RawMessage) (any, error) {
req := new(GetRawTransferTransactionRequest)
diff --git a/www/grpc/gen/java/pactus/transaction/TransactionGrpc.java b/www/grpc/gen/java/pactus/transaction/TransactionGrpc.java
index f7b2aba1a..159e34a58 100644
--- a/www/grpc/gen/java/pactus/transaction/TransactionGrpc.java
+++ b/www/grpc/gen/java/pactus/transaction/TransactionGrpc.java
@@ -112,37 +112,6 @@ pactus.transaction.TransactionOuterClass.BroadcastTransactionResponse> getBroadc
return getBroadcastTransactionMethod;
}
- private static volatile io.grpc.MethodDescriptor getGetRawTransactionMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "GetRawTransaction",
- requestType = pactus.transaction.TransactionOuterClass.GetRawTransactionRequest.class,
- responseType = pactus.transaction.TransactionOuterClass.GetRawTransactionResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getGetRawTransactionMethod() {
- io.grpc.MethodDescriptor getGetRawTransactionMethod;
- if ((getGetRawTransactionMethod = TransactionGrpc.getGetRawTransactionMethod) == null) {
- synchronized (TransactionGrpc.class) {
- if ((getGetRawTransactionMethod = TransactionGrpc.getGetRawTransactionMethod) == null) {
- TransactionGrpc.getGetRawTransactionMethod = getGetRawTransactionMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRawTransaction"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- pactus.transaction.TransactionOuterClass.GetRawTransactionRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- pactus.transaction.TransactionOuterClass.GetRawTransactionResponse.getDefaultInstance()))
- .setSchemaDescriptor(new TransactionMethodDescriptorSupplier("GetRawTransaction"))
- .build();
- }
- }
- }
- return getGetRawTransactionMethod;
- }
-
private static volatile io.grpc.MethodDescriptor getGetRawTransferTransactionMethod;
@@ -353,18 +322,7 @@ public void broadcastTransaction(pactus.transaction.TransactionOuterClass.Broadc
/**
*
- * GetRawTransaction retrieves raw details of transfer, bond, unbond or withdraw transaction.
- *
- */
- public void getRawTransaction(pactus.transaction.TransactionOuterClass.GetRawTransactionRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRawTransactionMethod(), responseObserver);
- }
-
- /**
- *
- * Deprecated: GetRawTransferTransaction retrieves raw details of a transfer transaction.
- * Use GetRawTransaction instead.
+ * GetRawTransferTransaction retrieves raw details of a transfer transaction.
*
*/
public void getRawTransferTransaction(pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest request,
@@ -374,8 +332,7 @@ public void getRawTransferTransaction(pactus.transaction.TransactionOuterClass.G
/**
*
- * Deprecated: GetRawBondTransaction retrieves raw details of a bond transaction.
- * Use GetRawTransaction instead.
+ * GetRawBondTransaction retrieves raw details of a bond transaction.
*
*/
public void getRawBondTransaction(pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest request,
@@ -385,8 +342,7 @@ public void getRawBondTransaction(pactus.transaction.TransactionOuterClass.GetRa
/**
*
- * Deprecated: GetRawUnbondTransaction retrieves raw details of an unbond transaction.
- * Use GetRawTransaction instead.
+ * GetRawUnbondTransaction retrieves raw details of an unbond transaction.
*
*/
public void getRawUnbondTransaction(pactus.transaction.TransactionOuterClass.GetRawUnbondTransactionRequest request,
@@ -396,8 +352,7 @@ public void getRawUnbondTransaction(pactus.transaction.TransactionOuterClass.Get
/**
*
- * Deprecated: GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
- * Use GetRawTransaction instead.
+ * GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
*
*/
public void getRawWithdrawTransaction(pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest request,
@@ -428,13 +383,6 @@ public void getRawWithdrawTransaction(pactus.transaction.TransactionOuterClass.G
pactus.transaction.TransactionOuterClass.BroadcastTransactionRequest,
pactus.transaction.TransactionOuterClass.BroadcastTransactionResponse>(
this, METHODID_BROADCAST_TRANSACTION)))
- .addMethod(
- getGetRawTransactionMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- pactus.transaction.TransactionOuterClass.GetRawTransactionRequest,
- pactus.transaction.TransactionOuterClass.GetRawTransactionResponse>(
- this, METHODID_GET_RAW_TRANSACTION)))
.addMethod(
getGetRawTransferTransactionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
@@ -522,19 +470,7 @@ public void broadcastTransaction(pactus.transaction.TransactionOuterClass.Broadc
/**
*
- * GetRawTransaction retrieves raw details of transfer, bond, unbond or withdraw transaction.
- *
- */
- public void getRawTransaction(pactus.transaction.TransactionOuterClass.GetRawTransactionRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getGetRawTransactionMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- * Deprecated: GetRawTransferTransaction retrieves raw details of a transfer transaction.
- * Use GetRawTransaction instead.
+ * GetRawTransferTransaction retrieves raw details of a transfer transaction.
*
*/
public void getRawTransferTransaction(pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest request,
@@ -545,8 +481,7 @@ public void getRawTransferTransaction(pactus.transaction.TransactionOuterClass.G
/**
*
- * Deprecated: GetRawBondTransaction retrieves raw details of a bond transaction.
- * Use GetRawTransaction instead.
+ * GetRawBondTransaction retrieves raw details of a bond transaction.
*
*/
public void getRawBondTransaction(pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest request,
@@ -557,8 +492,7 @@ public void getRawBondTransaction(pactus.transaction.TransactionOuterClass.GetRa
/**
*
- * Deprecated: GetRawUnbondTransaction retrieves raw details of an unbond transaction.
- * Use GetRawTransaction instead.
+ * GetRawUnbondTransaction retrieves raw details of an unbond transaction.
*
*/
public void getRawUnbondTransaction(pactus.transaction.TransactionOuterClass.GetRawUnbondTransactionRequest request,
@@ -569,8 +503,7 @@ public void getRawUnbondTransaction(pactus.transaction.TransactionOuterClass.Get
/**
*
- * Deprecated: GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
- * Use GetRawTransaction instead.
+ * GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
*
*/
public void getRawWithdrawTransaction(pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest request,
@@ -632,18 +565,7 @@ public pactus.transaction.TransactionOuterClass.BroadcastTransactionResponse bro
/**
*
- * GetRawTransaction retrieves raw details of transfer, bond, unbond or withdraw transaction.
- *
- */
- public pactus.transaction.TransactionOuterClass.GetRawTransactionResponse getRawTransaction(pactus.transaction.TransactionOuterClass.GetRawTransactionRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getGetRawTransactionMethod(), getCallOptions(), request);
- }
-
- /**
- *
- * Deprecated: GetRawTransferTransaction retrieves raw details of a transfer transaction.
- * Use GetRawTransaction instead.
+ * GetRawTransferTransaction retrieves raw details of a transfer transaction.
*
*/
public pactus.transaction.TransactionOuterClass.GetRawTransactionResponse getRawTransferTransaction(pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest request) {
@@ -653,8 +575,7 @@ public pactus.transaction.TransactionOuterClass.GetRawTransactionResponse getRaw
/**
*
- * Deprecated: GetRawBondTransaction retrieves raw details of a bond transaction.
- * Use GetRawTransaction instead.
+ * GetRawBondTransaction retrieves raw details of a bond transaction.
*
*/
public pactus.transaction.TransactionOuterClass.GetRawTransactionResponse getRawBondTransaction(pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest request) {
@@ -664,8 +585,7 @@ public pactus.transaction.TransactionOuterClass.GetRawTransactionResponse getRaw
/**
*
- * Deprecated: GetRawUnbondTransaction retrieves raw details of an unbond transaction.
- * Use GetRawTransaction instead.
+ * GetRawUnbondTransaction retrieves raw details of an unbond transaction.
*
*/
public pactus.transaction.TransactionOuterClass.GetRawTransactionResponse getRawUnbondTransaction(pactus.transaction.TransactionOuterClass.GetRawUnbondTransactionRequest request) {
@@ -675,8 +595,7 @@ public pactus.transaction.TransactionOuterClass.GetRawTransactionResponse getRaw
/**
*
- * Deprecated: GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
- * Use GetRawTransaction instead.
+ * GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
*
*/
public pactus.transaction.TransactionOuterClass.GetRawTransactionResponse getRawWithdrawTransaction(pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest request) {
@@ -740,19 +659,7 @@ public com.google.common.util.concurrent.ListenableFuture
- * GetRawTransaction retrieves raw details of transfer, bond, unbond or withdraw transaction.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture getRawTransaction(
- pactus.transaction.TransactionOuterClass.GetRawTransactionRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getGetRawTransactionMethod(), getCallOptions()), request);
- }
-
- /**
- *
- * Deprecated: GetRawTransferTransaction retrieves raw details of a transfer transaction.
- * Use GetRawTransaction instead.
+ * GetRawTransferTransaction retrieves raw details of a transfer transaction.
*
*/
public com.google.common.util.concurrent.ListenableFuture getRawTransferTransaction(
@@ -763,8 +670,7 @@ public com.google.common.util.concurrent.ListenableFuture
- * Deprecated: GetRawBondTransaction retrieves raw details of a bond transaction.
- * Use GetRawTransaction instead.
+ * GetRawBondTransaction retrieves raw details of a bond transaction.
*
*/
public com.google.common.util.concurrent.ListenableFuture getRawBondTransaction(
@@ -775,8 +681,7 @@ public com.google.common.util.concurrent.ListenableFuture
- * Deprecated: GetRawUnbondTransaction retrieves raw details of an unbond transaction.
- * Use GetRawTransaction instead.
+ * GetRawUnbondTransaction retrieves raw details of an unbond transaction.
*
*/
public com.google.common.util.concurrent.ListenableFuture getRawUnbondTransaction(
@@ -787,8 +692,7 @@ public com.google.common.util.concurrent.ListenableFuture
- * Deprecated: GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
- * Use GetRawTransaction instead.
+ * GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
*
*/
public com.google.common.util.concurrent.ListenableFuture getRawWithdrawTransaction(
@@ -801,11 +705,10 @@ public com.google.common.util.concurrent.ListenableFuture implements
io.grpc.stub.ServerCalls.UnaryMethod,
@@ -836,10 +739,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv
serviceImpl.broadcastTransaction((pactus.transaction.TransactionOuterClass.BroadcastTransactionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
- case METHODID_GET_RAW_TRANSACTION:
- serviceImpl.getRawTransaction((pactus.transaction.TransactionOuterClass.GetRawTransactionRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
case METHODID_GET_RAW_TRANSFER_TRANSACTION:
serviceImpl.getRawTransferTransaction((pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
@@ -920,7 +819,6 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
.addMethod(getGetTransactionMethod())
.addMethod(getCalculateFeeMethod())
.addMethod(getBroadcastTransactionMethod())
- .addMethod(getGetRawTransactionMethod())
.addMethod(getGetRawTransferTransactionMethod())
.addMethod(getGetRawBondTransactionMethod())
.addMethod(getGetRawUnbondTransactionMethod())
diff --git a/www/grpc/gen/java/pactus/transaction/TransactionOuterClass.java b/www/grpc/gen/java/pactus/transaction/TransactionOuterClass.java
index 41f86be26..0fb418922 100644
--- a/www/grpc/gen/java/pactus/transaction/TransactionOuterClass.java
+++ b/www/grpc/gen/java/pactus/transaction/TransactionOuterClass.java
@@ -4426,1755 +4426,6 @@ public pactus.transaction.TransactionOuterClass.BroadcastTransactionResponse get
}
- public interface GetRawTransactionRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:pactus.GetRawTransactionRequest)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- * The lock time for the transaction. If not set, defaults to the last block height.
- *
- *
- * uint32 lock_time = 1 [json_name = "lockTime"];
- * @return The lockTime.
- */
- int getLockTime();
-
- /**
- *
- * A memo string for the transaction.
- *
- *
- * string memo = 2 [json_name = "memo"];
- * @return The memo.
- */
- java.lang.String getMemo();
- /**
- *
- * A memo string for the transaction.
- *
- *
- * string memo = 2 [json_name = "memo"];
- * @return The bytes for memo.
- */
- com.google.protobuf.ByteString
- getMemoBytes();
-
- /**
- *
- * The fee for the transaction in NanoPAC.
- *
- *
- * int64 fee = 3 [json_name = "fee"];
- * @return The fee.
- */
- long getFee();
-
- /**
- * .pactus.PayloadTransfer transfer = 4 [json_name = "transfer"];
- * @return Whether the transfer field is set.
- */
- boolean hasTransfer();
- /**
- * .pactus.PayloadTransfer transfer = 4 [json_name = "transfer"];
- * @return The transfer.
- */
- pactus.transaction.TransactionOuterClass.PayloadTransfer getTransfer();
- /**
- * .pactus.PayloadTransfer transfer = 4 [json_name = "transfer"];
- */
- pactus.transaction.TransactionOuterClass.PayloadTransferOrBuilder getTransferOrBuilder();
-
- /**
- * .pactus.PayloadBond bond = 5 [json_name = "bond"];
- * @return Whether the bond field is set.
- */
- boolean hasBond();
- /**
- * .pactus.PayloadBond bond = 5 [json_name = "bond"];
- * @return The bond.
- */
- pactus.transaction.TransactionOuterClass.PayloadBond getBond();
- /**
- * .pactus.PayloadBond bond = 5 [json_name = "bond"];
- */
- pactus.transaction.TransactionOuterClass.PayloadBondOrBuilder getBondOrBuilder();
-
- /**
- * .pactus.PayloadUnbond unbond = 6 [json_name = "unbond"];
- * @return Whether the unbond field is set.
- */
- boolean hasUnbond();
- /**
- * .pactus.PayloadUnbond unbond = 6 [json_name = "unbond"];
- * @return The unbond.
- */
- pactus.transaction.TransactionOuterClass.PayloadUnbond getUnbond();
- /**
- * .pactus.PayloadUnbond unbond = 6 [json_name = "unbond"];
- */
- pactus.transaction.TransactionOuterClass.PayloadUnbondOrBuilder getUnbondOrBuilder();
-
- /**
- * .pactus.PayloadWithdraw withdraw = 7 [json_name = "withdraw"];
- * @return Whether the withdraw field is set.
- */
- boolean hasWithdraw();
- /**
- * .pactus.PayloadWithdraw withdraw = 7 [json_name = "withdraw"];
- * @return The withdraw.
- */
- pactus.transaction.TransactionOuterClass.PayloadWithdraw getWithdraw();
- /**
- * .pactus.PayloadWithdraw withdraw = 7 [json_name = "withdraw"];
- */
- pactus.transaction.TransactionOuterClass.PayloadWithdrawOrBuilder getWithdrawOrBuilder();
-
- public pactus.transaction.TransactionOuterClass.GetRawTransactionRequest.PayloadCase getPayloadCase();
- }
- /**
- *
- * Request message for retrieving raw details of transaction.
- *
- *
- * Protobuf type {@code pactus.GetRawTransactionRequest}
- */
- public static final class GetRawTransactionRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:pactus.GetRawTransactionRequest)
- GetRawTransactionRequestOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use GetRawTransactionRequest.newBuilder() to construct.
- private GetRawTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private GetRawTransactionRequest() {
- memo_ = "";
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new GetRawTransactionRequest();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawTransactionRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawTransactionRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- pactus.transaction.TransactionOuterClass.GetRawTransactionRequest.class, pactus.transaction.TransactionOuterClass.GetRawTransactionRequest.Builder.class);
- }
-
- private int payloadCase_ = 0;
- private java.lang.Object payload_;
- public enum PayloadCase
- implements com.google.protobuf.Internal.EnumLite,
- com.google.protobuf.AbstractMessage.InternalOneOfEnum {
- TRANSFER(4),
- BOND(5),
- UNBOND(6),
- WITHDRAW(7),
- PAYLOAD_NOT_SET(0);
- private final int value;
- private PayloadCase(int value) {
- this.value = value;
- }
- /**
- * @param value The number of the enum to look for.
- * @return The enum associated with the given number.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static PayloadCase valueOf(int value) {
- return forNumber(value);
- }
-
- public static PayloadCase forNumber(int value) {
- switch (value) {
- case 4: return TRANSFER;
- case 5: return BOND;
- case 6: return UNBOND;
- case 7: return WITHDRAW;
- case 0: return PAYLOAD_NOT_SET;
- default: return null;
- }
- }
- public int getNumber() {
- return this.value;
- }
- };
-
- public PayloadCase
- getPayloadCase() {
- return PayloadCase.forNumber(
- payloadCase_);
- }
-
- public static final int LOCK_TIME_FIELD_NUMBER = 1;
- private int lockTime_;
- /**
- *
- * The lock time for the transaction. If not set, defaults to the last block height.
- *
- *
- * uint32 lock_time = 1 [json_name = "lockTime"];
- * @return The lockTime.
- */
- @java.lang.Override
- public int getLockTime() {
- return lockTime_;
- }
-
- public static final int MEMO_FIELD_NUMBER = 2;
- private volatile java.lang.Object memo_;
- /**
- *
- * A memo string for the transaction.
- *
- *
- * string memo = 2 [json_name = "memo"];
- * @return The memo.
- */
- @java.lang.Override
- public java.lang.String getMemo() {
- java.lang.Object ref = memo_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- memo_ = s;
- return s;
- }
- }
- /**
- *
- * A memo string for the transaction.
- *
- *
- * string memo = 2 [json_name = "memo"];
- * @return The bytes for memo.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getMemoBytes() {
- java.lang.Object ref = memo_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- memo_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int FEE_FIELD_NUMBER = 3;
- private long fee_;
- /**
- *
- * The fee for the transaction in NanoPAC.
- *
- *
- * int64 fee = 3 [json_name = "fee"];
- * @return The fee.
- */
- @java.lang.Override
- public long getFee() {
- return fee_;
- }
-
- public static final int TRANSFER_FIELD_NUMBER = 4;
- /**
- * .pactus.PayloadTransfer transfer = 4 [json_name = "transfer"];
- * @return Whether the transfer field is set.
- */
- @java.lang.Override
- public boolean hasTransfer() {
- return payloadCase_ == 4;
- }
- /**
- * .pactus.PayloadTransfer transfer = 4 [json_name = "transfer"];
- * @return The transfer.
- */
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.PayloadTransfer getTransfer() {
- if (payloadCase_ == 4) {
- return (pactus.transaction.TransactionOuterClass.PayloadTransfer) payload_;
- }
- return pactus.transaction.TransactionOuterClass.PayloadTransfer.getDefaultInstance();
- }
- /**
- * .pactus.PayloadTransfer transfer = 4 [json_name = "transfer"];
- */
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.PayloadTransferOrBuilder getTransferOrBuilder() {
- if (payloadCase_ == 4) {
- return (pactus.transaction.TransactionOuterClass.PayloadTransfer) payload_;
- }
- return pactus.transaction.TransactionOuterClass.PayloadTransfer.getDefaultInstance();
- }
-
- public static final int BOND_FIELD_NUMBER = 5;
- /**
- * .pactus.PayloadBond bond = 5 [json_name = "bond"];
- * @return Whether the bond field is set.
- */
- @java.lang.Override
- public boolean hasBond() {
- return payloadCase_ == 5;
- }
- /**
- * .pactus.PayloadBond bond = 5 [json_name = "bond"];
- * @return The bond.
- */
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.PayloadBond getBond() {
- if (payloadCase_ == 5) {
- return (pactus.transaction.TransactionOuterClass.PayloadBond) payload_;
- }
- return pactus.transaction.TransactionOuterClass.PayloadBond.getDefaultInstance();
- }
- /**
- * .pactus.PayloadBond bond = 5 [json_name = "bond"];
- */
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.PayloadBondOrBuilder getBondOrBuilder() {
- if (payloadCase_ == 5) {
- return (pactus.transaction.TransactionOuterClass.PayloadBond) payload_;
- }
- return pactus.transaction.TransactionOuterClass.PayloadBond.getDefaultInstance();
- }
-
- public static final int UNBOND_FIELD_NUMBER = 6;
- /**
- * .pactus.PayloadUnbond unbond = 6 [json_name = "unbond"];
- * @return Whether the unbond field is set.
- */
- @java.lang.Override
- public boolean hasUnbond() {
- return payloadCase_ == 6;
- }
- /**
- * .pactus.PayloadUnbond unbond = 6 [json_name = "unbond"];
- * @return The unbond.
- */
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.PayloadUnbond getUnbond() {
- if (payloadCase_ == 6) {
- return (pactus.transaction.TransactionOuterClass.PayloadUnbond) payload_;
- }
- return pactus.transaction.TransactionOuterClass.PayloadUnbond.getDefaultInstance();
- }
- /**
- * .pactus.PayloadUnbond unbond = 6 [json_name = "unbond"];
- */
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.PayloadUnbondOrBuilder getUnbondOrBuilder() {
- if (payloadCase_ == 6) {
- return (pactus.transaction.TransactionOuterClass.PayloadUnbond) payload_;
- }
- return pactus.transaction.TransactionOuterClass.PayloadUnbond.getDefaultInstance();
- }
-
- public static final int WITHDRAW_FIELD_NUMBER = 7;
- /**
- * .pactus.PayloadWithdraw withdraw = 7 [json_name = "withdraw"];
- * @return Whether the withdraw field is set.
- */
- @java.lang.Override
- public boolean hasWithdraw() {
- return payloadCase_ == 7;
- }
- /**
- * .pactus.PayloadWithdraw withdraw = 7 [json_name = "withdraw"];
- * @return The withdraw.
- */
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.PayloadWithdraw getWithdraw() {
- if (payloadCase_ == 7) {
- return (pactus.transaction.TransactionOuterClass.PayloadWithdraw) payload_;
- }
- return pactus.transaction.TransactionOuterClass.PayloadWithdraw.getDefaultInstance();
- }
- /**
- * .pactus.PayloadWithdraw withdraw = 7 [json_name = "withdraw"];
- */
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.PayloadWithdrawOrBuilder getWithdrawOrBuilder() {
- if (payloadCase_ == 7) {
- return (pactus.transaction.TransactionOuterClass.PayloadWithdraw) payload_;
- }
- return pactus.transaction.TransactionOuterClass.PayloadWithdraw.getDefaultInstance();
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (lockTime_ != 0) {
- output.writeUInt32(1, lockTime_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, memo_);
- }
- if (fee_ != 0L) {
- output.writeInt64(3, fee_);
- }
- if (payloadCase_ == 4) {
- output.writeMessage(4, (pactus.transaction.TransactionOuterClass.PayloadTransfer) payload_);
- }
- if (payloadCase_ == 5) {
- output.writeMessage(5, (pactus.transaction.TransactionOuterClass.PayloadBond) payload_);
- }
- if (payloadCase_ == 6) {
- output.writeMessage(6, (pactus.transaction.TransactionOuterClass.PayloadUnbond) payload_);
- }
- if (payloadCase_ == 7) {
- output.writeMessage(7, (pactus.transaction.TransactionOuterClass.PayloadWithdraw) payload_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (lockTime_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(1, lockTime_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, memo_);
- }
- if (fee_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(3, fee_);
- }
- if (payloadCase_ == 4) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, (pactus.transaction.TransactionOuterClass.PayloadTransfer) payload_);
- }
- if (payloadCase_ == 5) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(5, (pactus.transaction.TransactionOuterClass.PayloadBond) payload_);
- }
- if (payloadCase_ == 6) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(6, (pactus.transaction.TransactionOuterClass.PayloadUnbond) payload_);
- }
- if (payloadCase_ == 7) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(7, (pactus.transaction.TransactionOuterClass.PayloadWithdraw) payload_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof pactus.transaction.TransactionOuterClass.GetRawTransactionRequest)) {
- return super.equals(obj);
- }
- pactus.transaction.TransactionOuterClass.GetRawTransactionRequest other = (pactus.transaction.TransactionOuterClass.GetRawTransactionRequest) obj;
-
- if (getLockTime()
- != other.getLockTime()) return false;
- if (!getMemo()
- .equals(other.getMemo())) return false;
- if (getFee()
- != other.getFee()) return false;
- if (!getPayloadCase().equals(other.getPayloadCase())) return false;
- switch (payloadCase_) {
- case 4:
- if (!getTransfer()
- .equals(other.getTransfer())) return false;
- break;
- case 5:
- if (!getBond()
- .equals(other.getBond())) return false;
- break;
- case 6:
- if (!getUnbond()
- .equals(other.getUnbond())) return false;
- break;
- case 7:
- if (!getWithdraw()
- .equals(other.getWithdraw())) return false;
- break;
- case 0:
- default:
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + LOCK_TIME_FIELD_NUMBER;
- hash = (53 * hash) + getLockTime();
- hash = (37 * hash) + MEMO_FIELD_NUMBER;
- hash = (53 * hash) + getMemo().hashCode();
- hash = (37 * hash) + FEE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getFee());
- switch (payloadCase_) {
- case 4:
- hash = (37 * hash) + TRANSFER_FIELD_NUMBER;
- hash = (53 * hash) + getTransfer().hashCode();
- break;
- case 5:
- hash = (37 * hash) + BOND_FIELD_NUMBER;
- hash = (53 * hash) + getBond().hashCode();
- break;
- case 6:
- hash = (37 * hash) + UNBOND_FIELD_NUMBER;
- hash = (53 * hash) + getUnbond().hashCode();
- break;
- case 7:
- hash = (37 * hash) + WITHDRAW_FIELD_NUMBER;
- hash = (53 * hash) + getWithdraw().hashCode();
- break;
- case 0:
- default:
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static pactus.transaction.TransactionOuterClass.GetRawTransactionRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static pactus.transaction.TransactionOuterClass.GetRawTransactionRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static pactus.transaction.TransactionOuterClass.GetRawTransactionRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static pactus.transaction.TransactionOuterClass.GetRawTransactionRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static pactus.transaction.TransactionOuterClass.GetRawTransactionRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static pactus.transaction.TransactionOuterClass.GetRawTransactionRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static pactus.transaction.TransactionOuterClass.GetRawTransactionRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static pactus.transaction.TransactionOuterClass.GetRawTransactionRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static pactus.transaction.TransactionOuterClass.GetRawTransactionRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static pactus.transaction.TransactionOuterClass.GetRawTransactionRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static pactus.transaction.TransactionOuterClass.GetRawTransactionRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static pactus.transaction.TransactionOuterClass.GetRawTransactionRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(pactus.transaction.TransactionOuterClass.GetRawTransactionRequest prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- *
- * Request message for retrieving raw details of transaction.
- *
- *
- * Protobuf type {@code pactus.GetRawTransactionRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:pactus.GetRawTransactionRequest)
- pactus.transaction.TransactionOuterClass.GetRawTransactionRequestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawTransactionRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawTransactionRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- pactus.transaction.TransactionOuterClass.GetRawTransactionRequest.class, pactus.transaction.TransactionOuterClass.GetRawTransactionRequest.Builder.class);
- }
-
- // Construct using pactus.transaction.TransactionOuterClass.GetRawTransactionRequest.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- lockTime_ = 0;
-
- memo_ = "";
-
- fee_ = 0L;
-
- if (transferBuilder_ != null) {
- transferBuilder_.clear();
- }
- if (bondBuilder_ != null) {
- bondBuilder_.clear();
- }
- if (unbondBuilder_ != null) {
- unbondBuilder_.clear();
- }
- if (withdrawBuilder_ != null) {
- withdrawBuilder_.clear();
- }
- payloadCase_ = 0;
- payload_ = null;
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawTransactionRequest_descriptor;
- }
-
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.GetRawTransactionRequest getDefaultInstanceForType() {
- return pactus.transaction.TransactionOuterClass.GetRawTransactionRequest.getDefaultInstance();
- }
-
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.GetRawTransactionRequest build() {
- pactus.transaction.TransactionOuterClass.GetRawTransactionRequest result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.GetRawTransactionRequest buildPartial() {
- pactus.transaction.TransactionOuterClass.GetRawTransactionRequest result = new pactus.transaction.TransactionOuterClass.GetRawTransactionRequest(this);
- result.lockTime_ = lockTime_;
- result.memo_ = memo_;
- result.fee_ = fee_;
- if (payloadCase_ == 4) {
- if (transferBuilder_ == null) {
- result.payload_ = payload_;
- } else {
- result.payload_ = transferBuilder_.build();
- }
- }
- if (payloadCase_ == 5) {
- if (bondBuilder_ == null) {
- result.payload_ = payload_;
- } else {
- result.payload_ = bondBuilder_.build();
- }
- }
- if (payloadCase_ == 6) {
- if (unbondBuilder_ == null) {
- result.payload_ = payload_;
- } else {
- result.payload_ = unbondBuilder_.build();
- }
- }
- if (payloadCase_ == 7) {
- if (withdrawBuilder_ == null) {
- result.payload_ = payload_;
- } else {
- result.payload_ = withdrawBuilder_.build();
- }
- }
- result.payloadCase_ = payloadCase_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof pactus.transaction.TransactionOuterClass.GetRawTransactionRequest) {
- return mergeFrom((pactus.transaction.TransactionOuterClass.GetRawTransactionRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(pactus.transaction.TransactionOuterClass.GetRawTransactionRequest other) {
- if (other == pactus.transaction.TransactionOuterClass.GetRawTransactionRequest.getDefaultInstance()) return this;
- if (other.getLockTime() != 0) {
- setLockTime(other.getLockTime());
- }
- if (!other.getMemo().isEmpty()) {
- memo_ = other.memo_;
- onChanged();
- }
- if (other.getFee() != 0L) {
- setFee(other.getFee());
- }
- switch (other.getPayloadCase()) {
- case TRANSFER: {
- mergeTransfer(other.getTransfer());
- break;
- }
- case BOND: {
- mergeBond(other.getBond());
- break;
- }
- case UNBOND: {
- mergeUnbond(other.getUnbond());
- break;
- }
- case WITHDRAW: {
- mergeWithdraw(other.getWithdraw());
- break;
- }
- case PAYLOAD_NOT_SET: {
- break;
- }
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- lockTime_ = input.readUInt32();
-
- break;
- } // case 8
- case 18: {
- memo_ = input.readStringRequireUtf8();
-
- break;
- } // case 18
- case 24: {
- fee_ = input.readInt64();
-
- break;
- } // case 24
- case 34: {
- input.readMessage(
- getTransferFieldBuilder().getBuilder(),
- extensionRegistry);
- payloadCase_ = 4;
- break;
- } // case 34
- case 42: {
- input.readMessage(
- getBondFieldBuilder().getBuilder(),
- extensionRegistry);
- payloadCase_ = 5;
- break;
- } // case 42
- case 50: {
- input.readMessage(
- getUnbondFieldBuilder().getBuilder(),
- extensionRegistry);
- payloadCase_ = 6;
- break;
- } // case 50
- case 58: {
- input.readMessage(
- getWithdrawFieldBuilder().getBuilder(),
- extensionRegistry);
- payloadCase_ = 7;
- break;
- } // case 58
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
- private int payloadCase_ = 0;
- private java.lang.Object payload_;
- public PayloadCase
- getPayloadCase() {
- return PayloadCase.forNumber(
- payloadCase_);
- }
-
- public Builder clearPayload() {
- payloadCase_ = 0;
- payload_ = null;
- onChanged();
- return this;
- }
-
-
- private int lockTime_ ;
- /**
- *
- * The lock time for the transaction. If not set, defaults to the last block height.
- *
- *
- * uint32 lock_time = 1 [json_name = "lockTime"];
- * @return The lockTime.
- */
- @java.lang.Override
- public int getLockTime() {
- return lockTime_;
- }
- /**
- *
- * The lock time for the transaction. If not set, defaults to the last block height.
- *
- *
- * uint32 lock_time = 1 [json_name = "lockTime"];
- * @param value The lockTime to set.
- * @return This builder for chaining.
- */
- public Builder setLockTime(int value) {
-
- lockTime_ = value;
- onChanged();
- return this;
- }
- /**
- *
- * The lock time for the transaction. If not set, defaults to the last block height.
- *
- *
- * uint32 lock_time = 1 [json_name = "lockTime"];
- * @return This builder for chaining.
- */
- public Builder clearLockTime() {
-
- lockTime_ = 0;
- onChanged();
- return this;
- }
-
- private java.lang.Object memo_ = "";
- /**
- *
- * A memo string for the transaction.
- *
- *
- * string memo = 2 [json_name = "memo"];
- * @return The memo.
- */
- public java.lang.String getMemo() {
- java.lang.Object ref = memo_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- memo_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- * A memo string for the transaction.
- *
- *
- * string memo = 2 [json_name = "memo"];
- * @return The bytes for memo.
- */
- public com.google.protobuf.ByteString
- getMemoBytes() {
- java.lang.Object ref = memo_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- memo_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- * A memo string for the transaction.
- *
- *
- * string memo = 2 [json_name = "memo"];
- * @param value The memo to set.
- * @return This builder for chaining.
- */
- public Builder setMemo(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- memo_ = value;
- onChanged();
- return this;
- }
- /**
- *
- * A memo string for the transaction.
- *
- *
- * string memo = 2 [json_name = "memo"];
- * @return This builder for chaining.
- */
- public Builder clearMemo() {
-
- memo_ = getDefaultInstance().getMemo();
- onChanged();
- return this;
- }
- /**
- *
- * A memo string for the transaction.
- *
- *
- * string memo = 2 [json_name = "memo"];
- * @param value The bytes for memo to set.
- * @return This builder for chaining.
- */
- public Builder setMemoBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- memo_ = value;
- onChanged();
- return this;
- }
-
- private long fee_ ;
- /**
- *
- * The fee for the transaction in NanoPAC.
- *
- *
- * int64 fee = 3 [json_name = "fee"];
- * @return The fee.
- */
- @java.lang.Override
- public long getFee() {
- return fee_;
- }
- /**
- *
- * The fee for the transaction in NanoPAC.
- *
- *
- * int64 fee = 3 [json_name = "fee"];
- * @param value The fee to set.
- * @return This builder for chaining.
- */
- public Builder setFee(long value) {
-
- fee_ = value;
- onChanged();
- return this;
- }
- /**
- *
- * The fee for the transaction in NanoPAC.
- *
- *
- * int64 fee = 3 [json_name = "fee"];
- * @return This builder for chaining.
- */
- public Builder clearFee() {
-
- fee_ = 0L;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.SingleFieldBuilderV3<
- pactus.transaction.TransactionOuterClass.PayloadTransfer, pactus.transaction.TransactionOuterClass.PayloadTransfer.Builder, pactus.transaction.TransactionOuterClass.PayloadTransferOrBuilder> transferBuilder_;
- /**
- * .pactus.PayloadTransfer transfer = 4 [json_name = "transfer"];
- * @return Whether the transfer field is set.
- */
- @java.lang.Override
- public boolean hasTransfer() {
- return payloadCase_ == 4;
- }
- /**
- * .pactus.PayloadTransfer transfer = 4 [json_name = "transfer"];
- * @return The transfer.
- */
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.PayloadTransfer getTransfer() {
- if (transferBuilder_ == null) {
- if (payloadCase_ == 4) {
- return (pactus.transaction.TransactionOuterClass.PayloadTransfer) payload_;
- }
- return pactus.transaction.TransactionOuterClass.PayloadTransfer.getDefaultInstance();
- } else {
- if (payloadCase_ == 4) {
- return transferBuilder_.getMessage();
- }
- return pactus.transaction.TransactionOuterClass.PayloadTransfer.getDefaultInstance();
- }
- }
- /**
- * .pactus.PayloadTransfer transfer = 4 [json_name = "transfer"];
- */
- public Builder setTransfer(pactus.transaction.TransactionOuterClass.PayloadTransfer value) {
- if (transferBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- payload_ = value;
- onChanged();
- } else {
- transferBuilder_.setMessage(value);
- }
- payloadCase_ = 4;
- return this;
- }
- /**
- * .pactus.PayloadTransfer transfer = 4 [json_name = "transfer"];
- */
- public Builder setTransfer(
- pactus.transaction.TransactionOuterClass.PayloadTransfer.Builder builderForValue) {
- if (transferBuilder_ == null) {
- payload_ = builderForValue.build();
- onChanged();
- } else {
- transferBuilder_.setMessage(builderForValue.build());
- }
- payloadCase_ = 4;
- return this;
- }
- /**
- * .pactus.PayloadTransfer transfer = 4 [json_name = "transfer"];
- */
- public Builder mergeTransfer(pactus.transaction.TransactionOuterClass.PayloadTransfer value) {
- if (transferBuilder_ == null) {
- if (payloadCase_ == 4 &&
- payload_ != pactus.transaction.TransactionOuterClass.PayloadTransfer.getDefaultInstance()) {
- payload_ = pactus.transaction.TransactionOuterClass.PayloadTransfer.newBuilder((pactus.transaction.TransactionOuterClass.PayloadTransfer) payload_)
- .mergeFrom(value).buildPartial();
- } else {
- payload_ = value;
- }
- onChanged();
- } else {
- if (payloadCase_ == 4) {
- transferBuilder_.mergeFrom(value);
- } else {
- transferBuilder_.setMessage(value);
- }
- }
- payloadCase_ = 4;
- return this;
- }
- /**
- * .pactus.PayloadTransfer transfer = 4 [json_name = "transfer"];
- */
- public Builder clearTransfer() {
- if (transferBuilder_ == null) {
- if (payloadCase_ == 4) {
- payloadCase_ = 0;
- payload_ = null;
- onChanged();
- }
- } else {
- if (payloadCase_ == 4) {
- payloadCase_ = 0;
- payload_ = null;
- }
- transferBuilder_.clear();
- }
- return this;
- }
- /**
- * .pactus.PayloadTransfer transfer = 4 [json_name = "transfer"];
- */
- public pactus.transaction.TransactionOuterClass.PayloadTransfer.Builder getTransferBuilder() {
- return getTransferFieldBuilder().getBuilder();
- }
- /**
- * .pactus.PayloadTransfer transfer = 4 [json_name = "transfer"];
- */
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.PayloadTransferOrBuilder getTransferOrBuilder() {
- if ((payloadCase_ == 4) && (transferBuilder_ != null)) {
- return transferBuilder_.getMessageOrBuilder();
- } else {
- if (payloadCase_ == 4) {
- return (pactus.transaction.TransactionOuterClass.PayloadTransfer) payload_;
- }
- return pactus.transaction.TransactionOuterClass.PayloadTransfer.getDefaultInstance();
- }
- }
- /**
- * .pactus.PayloadTransfer transfer = 4 [json_name = "transfer"];
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- pactus.transaction.TransactionOuterClass.PayloadTransfer, pactus.transaction.TransactionOuterClass.PayloadTransfer.Builder, pactus.transaction.TransactionOuterClass.PayloadTransferOrBuilder>
- getTransferFieldBuilder() {
- if (transferBuilder_ == null) {
- if (!(payloadCase_ == 4)) {
- payload_ = pactus.transaction.TransactionOuterClass.PayloadTransfer.getDefaultInstance();
- }
- transferBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- pactus.transaction.TransactionOuterClass.PayloadTransfer, pactus.transaction.TransactionOuterClass.PayloadTransfer.Builder, pactus.transaction.TransactionOuterClass.PayloadTransferOrBuilder>(
- (pactus.transaction.TransactionOuterClass.PayloadTransfer) payload_,
- getParentForChildren(),
- isClean());
- payload_ = null;
- }
- payloadCase_ = 4;
- onChanged();;
- return transferBuilder_;
- }
-
- private com.google.protobuf.SingleFieldBuilderV3<
- pactus.transaction.TransactionOuterClass.PayloadBond, pactus.transaction.TransactionOuterClass.PayloadBond.Builder, pactus.transaction.TransactionOuterClass.PayloadBondOrBuilder> bondBuilder_;
- /**
- * .pactus.PayloadBond bond = 5 [json_name = "bond"];
- * @return Whether the bond field is set.
- */
- @java.lang.Override
- public boolean hasBond() {
- return payloadCase_ == 5;
- }
- /**
- * .pactus.PayloadBond bond = 5 [json_name = "bond"];
- * @return The bond.
- */
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.PayloadBond getBond() {
- if (bondBuilder_ == null) {
- if (payloadCase_ == 5) {
- return (pactus.transaction.TransactionOuterClass.PayloadBond) payload_;
- }
- return pactus.transaction.TransactionOuterClass.PayloadBond.getDefaultInstance();
- } else {
- if (payloadCase_ == 5) {
- return bondBuilder_.getMessage();
- }
- return pactus.transaction.TransactionOuterClass.PayloadBond.getDefaultInstance();
- }
- }
- /**
- * .pactus.PayloadBond bond = 5 [json_name = "bond"];
- */
- public Builder setBond(pactus.transaction.TransactionOuterClass.PayloadBond value) {
- if (bondBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- payload_ = value;
- onChanged();
- } else {
- bondBuilder_.setMessage(value);
- }
- payloadCase_ = 5;
- return this;
- }
- /**
- * .pactus.PayloadBond bond = 5 [json_name = "bond"];
- */
- public Builder setBond(
- pactus.transaction.TransactionOuterClass.PayloadBond.Builder builderForValue) {
- if (bondBuilder_ == null) {
- payload_ = builderForValue.build();
- onChanged();
- } else {
- bondBuilder_.setMessage(builderForValue.build());
- }
- payloadCase_ = 5;
- return this;
- }
- /**
- * .pactus.PayloadBond bond = 5 [json_name = "bond"];
- */
- public Builder mergeBond(pactus.transaction.TransactionOuterClass.PayloadBond value) {
- if (bondBuilder_ == null) {
- if (payloadCase_ == 5 &&
- payload_ != pactus.transaction.TransactionOuterClass.PayloadBond.getDefaultInstance()) {
- payload_ = pactus.transaction.TransactionOuterClass.PayloadBond.newBuilder((pactus.transaction.TransactionOuterClass.PayloadBond) payload_)
- .mergeFrom(value).buildPartial();
- } else {
- payload_ = value;
- }
- onChanged();
- } else {
- if (payloadCase_ == 5) {
- bondBuilder_.mergeFrom(value);
- } else {
- bondBuilder_.setMessage(value);
- }
- }
- payloadCase_ = 5;
- return this;
- }
- /**
- * .pactus.PayloadBond bond = 5 [json_name = "bond"];
- */
- public Builder clearBond() {
- if (bondBuilder_ == null) {
- if (payloadCase_ == 5) {
- payloadCase_ = 0;
- payload_ = null;
- onChanged();
- }
- } else {
- if (payloadCase_ == 5) {
- payloadCase_ = 0;
- payload_ = null;
- }
- bondBuilder_.clear();
- }
- return this;
- }
- /**
- * .pactus.PayloadBond bond = 5 [json_name = "bond"];
- */
- public pactus.transaction.TransactionOuterClass.PayloadBond.Builder getBondBuilder() {
- return getBondFieldBuilder().getBuilder();
- }
- /**
- * .pactus.PayloadBond bond = 5 [json_name = "bond"];
- */
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.PayloadBondOrBuilder getBondOrBuilder() {
- if ((payloadCase_ == 5) && (bondBuilder_ != null)) {
- return bondBuilder_.getMessageOrBuilder();
- } else {
- if (payloadCase_ == 5) {
- return (pactus.transaction.TransactionOuterClass.PayloadBond) payload_;
- }
- return pactus.transaction.TransactionOuterClass.PayloadBond.getDefaultInstance();
- }
- }
- /**
- * .pactus.PayloadBond bond = 5 [json_name = "bond"];
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- pactus.transaction.TransactionOuterClass.PayloadBond, pactus.transaction.TransactionOuterClass.PayloadBond.Builder, pactus.transaction.TransactionOuterClass.PayloadBondOrBuilder>
- getBondFieldBuilder() {
- if (bondBuilder_ == null) {
- if (!(payloadCase_ == 5)) {
- payload_ = pactus.transaction.TransactionOuterClass.PayloadBond.getDefaultInstance();
- }
- bondBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- pactus.transaction.TransactionOuterClass.PayloadBond, pactus.transaction.TransactionOuterClass.PayloadBond.Builder, pactus.transaction.TransactionOuterClass.PayloadBondOrBuilder>(
- (pactus.transaction.TransactionOuterClass.PayloadBond) payload_,
- getParentForChildren(),
- isClean());
- payload_ = null;
- }
- payloadCase_ = 5;
- onChanged();;
- return bondBuilder_;
- }
-
- private com.google.protobuf.SingleFieldBuilderV3<
- pactus.transaction.TransactionOuterClass.PayloadUnbond, pactus.transaction.TransactionOuterClass.PayloadUnbond.Builder, pactus.transaction.TransactionOuterClass.PayloadUnbondOrBuilder> unbondBuilder_;
- /**
- * .pactus.PayloadUnbond unbond = 6 [json_name = "unbond"];
- * @return Whether the unbond field is set.
- */
- @java.lang.Override
- public boolean hasUnbond() {
- return payloadCase_ == 6;
- }
- /**
- * .pactus.PayloadUnbond unbond = 6 [json_name = "unbond"];
- * @return The unbond.
- */
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.PayloadUnbond getUnbond() {
- if (unbondBuilder_ == null) {
- if (payloadCase_ == 6) {
- return (pactus.transaction.TransactionOuterClass.PayloadUnbond) payload_;
- }
- return pactus.transaction.TransactionOuterClass.PayloadUnbond.getDefaultInstance();
- } else {
- if (payloadCase_ == 6) {
- return unbondBuilder_.getMessage();
- }
- return pactus.transaction.TransactionOuterClass.PayloadUnbond.getDefaultInstance();
- }
- }
- /**
- * .pactus.PayloadUnbond unbond = 6 [json_name = "unbond"];
- */
- public Builder setUnbond(pactus.transaction.TransactionOuterClass.PayloadUnbond value) {
- if (unbondBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- payload_ = value;
- onChanged();
- } else {
- unbondBuilder_.setMessage(value);
- }
- payloadCase_ = 6;
- return this;
- }
- /**
- * .pactus.PayloadUnbond unbond = 6 [json_name = "unbond"];
- */
- public Builder setUnbond(
- pactus.transaction.TransactionOuterClass.PayloadUnbond.Builder builderForValue) {
- if (unbondBuilder_ == null) {
- payload_ = builderForValue.build();
- onChanged();
- } else {
- unbondBuilder_.setMessage(builderForValue.build());
- }
- payloadCase_ = 6;
- return this;
- }
- /**
- * .pactus.PayloadUnbond unbond = 6 [json_name = "unbond"];
- */
- public Builder mergeUnbond(pactus.transaction.TransactionOuterClass.PayloadUnbond value) {
- if (unbondBuilder_ == null) {
- if (payloadCase_ == 6 &&
- payload_ != pactus.transaction.TransactionOuterClass.PayloadUnbond.getDefaultInstance()) {
- payload_ = pactus.transaction.TransactionOuterClass.PayloadUnbond.newBuilder((pactus.transaction.TransactionOuterClass.PayloadUnbond) payload_)
- .mergeFrom(value).buildPartial();
- } else {
- payload_ = value;
- }
- onChanged();
- } else {
- if (payloadCase_ == 6) {
- unbondBuilder_.mergeFrom(value);
- } else {
- unbondBuilder_.setMessage(value);
- }
- }
- payloadCase_ = 6;
- return this;
- }
- /**
- * .pactus.PayloadUnbond unbond = 6 [json_name = "unbond"];
- */
- public Builder clearUnbond() {
- if (unbondBuilder_ == null) {
- if (payloadCase_ == 6) {
- payloadCase_ = 0;
- payload_ = null;
- onChanged();
- }
- } else {
- if (payloadCase_ == 6) {
- payloadCase_ = 0;
- payload_ = null;
- }
- unbondBuilder_.clear();
- }
- return this;
- }
- /**
- * .pactus.PayloadUnbond unbond = 6 [json_name = "unbond"];
- */
- public pactus.transaction.TransactionOuterClass.PayloadUnbond.Builder getUnbondBuilder() {
- return getUnbondFieldBuilder().getBuilder();
- }
- /**
- * .pactus.PayloadUnbond unbond = 6 [json_name = "unbond"];
- */
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.PayloadUnbondOrBuilder getUnbondOrBuilder() {
- if ((payloadCase_ == 6) && (unbondBuilder_ != null)) {
- return unbondBuilder_.getMessageOrBuilder();
- } else {
- if (payloadCase_ == 6) {
- return (pactus.transaction.TransactionOuterClass.PayloadUnbond) payload_;
- }
- return pactus.transaction.TransactionOuterClass.PayloadUnbond.getDefaultInstance();
- }
- }
- /**
- * .pactus.PayloadUnbond unbond = 6 [json_name = "unbond"];
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- pactus.transaction.TransactionOuterClass.PayloadUnbond, pactus.transaction.TransactionOuterClass.PayloadUnbond.Builder, pactus.transaction.TransactionOuterClass.PayloadUnbondOrBuilder>
- getUnbondFieldBuilder() {
- if (unbondBuilder_ == null) {
- if (!(payloadCase_ == 6)) {
- payload_ = pactus.transaction.TransactionOuterClass.PayloadUnbond.getDefaultInstance();
- }
- unbondBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- pactus.transaction.TransactionOuterClass.PayloadUnbond, pactus.transaction.TransactionOuterClass.PayloadUnbond.Builder, pactus.transaction.TransactionOuterClass.PayloadUnbondOrBuilder>(
- (pactus.transaction.TransactionOuterClass.PayloadUnbond) payload_,
- getParentForChildren(),
- isClean());
- payload_ = null;
- }
- payloadCase_ = 6;
- onChanged();;
- return unbondBuilder_;
- }
-
- private com.google.protobuf.SingleFieldBuilderV3<
- pactus.transaction.TransactionOuterClass.PayloadWithdraw, pactus.transaction.TransactionOuterClass.PayloadWithdraw.Builder, pactus.transaction.TransactionOuterClass.PayloadWithdrawOrBuilder> withdrawBuilder_;
- /**
- * .pactus.PayloadWithdraw withdraw = 7 [json_name = "withdraw"];
- * @return Whether the withdraw field is set.
- */
- @java.lang.Override
- public boolean hasWithdraw() {
- return payloadCase_ == 7;
- }
- /**
- * .pactus.PayloadWithdraw withdraw = 7 [json_name = "withdraw"];
- * @return The withdraw.
- */
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.PayloadWithdraw getWithdraw() {
- if (withdrawBuilder_ == null) {
- if (payloadCase_ == 7) {
- return (pactus.transaction.TransactionOuterClass.PayloadWithdraw) payload_;
- }
- return pactus.transaction.TransactionOuterClass.PayloadWithdraw.getDefaultInstance();
- } else {
- if (payloadCase_ == 7) {
- return withdrawBuilder_.getMessage();
- }
- return pactus.transaction.TransactionOuterClass.PayloadWithdraw.getDefaultInstance();
- }
- }
- /**
- * .pactus.PayloadWithdraw withdraw = 7 [json_name = "withdraw"];
- */
- public Builder setWithdraw(pactus.transaction.TransactionOuterClass.PayloadWithdraw value) {
- if (withdrawBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- payload_ = value;
- onChanged();
- } else {
- withdrawBuilder_.setMessage(value);
- }
- payloadCase_ = 7;
- return this;
- }
- /**
- * .pactus.PayloadWithdraw withdraw = 7 [json_name = "withdraw"];
- */
- public Builder setWithdraw(
- pactus.transaction.TransactionOuterClass.PayloadWithdraw.Builder builderForValue) {
- if (withdrawBuilder_ == null) {
- payload_ = builderForValue.build();
- onChanged();
- } else {
- withdrawBuilder_.setMessage(builderForValue.build());
- }
- payloadCase_ = 7;
- return this;
- }
- /**
- * .pactus.PayloadWithdraw withdraw = 7 [json_name = "withdraw"];
- */
- public Builder mergeWithdraw(pactus.transaction.TransactionOuterClass.PayloadWithdraw value) {
- if (withdrawBuilder_ == null) {
- if (payloadCase_ == 7 &&
- payload_ != pactus.transaction.TransactionOuterClass.PayloadWithdraw.getDefaultInstance()) {
- payload_ = pactus.transaction.TransactionOuterClass.PayloadWithdraw.newBuilder((pactus.transaction.TransactionOuterClass.PayloadWithdraw) payload_)
- .mergeFrom(value).buildPartial();
- } else {
- payload_ = value;
- }
- onChanged();
- } else {
- if (payloadCase_ == 7) {
- withdrawBuilder_.mergeFrom(value);
- } else {
- withdrawBuilder_.setMessage(value);
- }
- }
- payloadCase_ = 7;
- return this;
- }
- /**
- * .pactus.PayloadWithdraw withdraw = 7 [json_name = "withdraw"];
- */
- public Builder clearWithdraw() {
- if (withdrawBuilder_ == null) {
- if (payloadCase_ == 7) {
- payloadCase_ = 0;
- payload_ = null;
- onChanged();
- }
- } else {
- if (payloadCase_ == 7) {
- payloadCase_ = 0;
- payload_ = null;
- }
- withdrawBuilder_.clear();
- }
- return this;
- }
- /**
- * .pactus.PayloadWithdraw withdraw = 7 [json_name = "withdraw"];
- */
- public pactus.transaction.TransactionOuterClass.PayloadWithdraw.Builder getWithdrawBuilder() {
- return getWithdrawFieldBuilder().getBuilder();
- }
- /**
- * .pactus.PayloadWithdraw withdraw = 7 [json_name = "withdraw"];
- */
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.PayloadWithdrawOrBuilder getWithdrawOrBuilder() {
- if ((payloadCase_ == 7) && (withdrawBuilder_ != null)) {
- return withdrawBuilder_.getMessageOrBuilder();
- } else {
- if (payloadCase_ == 7) {
- return (pactus.transaction.TransactionOuterClass.PayloadWithdraw) payload_;
- }
- return pactus.transaction.TransactionOuterClass.PayloadWithdraw.getDefaultInstance();
- }
- }
- /**
- * .pactus.PayloadWithdraw withdraw = 7 [json_name = "withdraw"];
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- pactus.transaction.TransactionOuterClass.PayloadWithdraw, pactus.transaction.TransactionOuterClass.PayloadWithdraw.Builder, pactus.transaction.TransactionOuterClass.PayloadWithdrawOrBuilder>
- getWithdrawFieldBuilder() {
- if (withdrawBuilder_ == null) {
- if (!(payloadCase_ == 7)) {
- payload_ = pactus.transaction.TransactionOuterClass.PayloadWithdraw.getDefaultInstance();
- }
- withdrawBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- pactus.transaction.TransactionOuterClass.PayloadWithdraw, pactus.transaction.TransactionOuterClass.PayloadWithdraw.Builder, pactus.transaction.TransactionOuterClass.PayloadWithdrawOrBuilder>(
- (pactus.transaction.TransactionOuterClass.PayloadWithdraw) payload_,
- getParentForChildren(),
- isClean());
- payload_ = null;
- }
- payloadCase_ = 7;
- onChanged();;
- return withdrawBuilder_;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:pactus.GetRawTransactionRequest)
- }
-
- // @@protoc_insertion_point(class_scope:pactus.GetRawTransactionRequest)
- private static final pactus.transaction.TransactionOuterClass.GetRawTransactionRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new pactus.transaction.TransactionOuterClass.GetRawTransactionRequest();
- }
-
- public static pactus.transaction.TransactionOuterClass.GetRawTransactionRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public GetRawTransactionRequest parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public pactus.transaction.TransactionOuterClass.GetRawTransactionRequest getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
public interface GetRawTransferTransactionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:pactus.GetRawTransferTransactionRequest)
com.google.protobuf.MessageOrBuilder {
@@ -6272,7 +4523,7 @@ public interface GetRawTransferTransactionRequestOrBuilder extends
}
/**
*
- * Deprecated: Request message for retrieving raw details of a transfer transaction.
+ * Request message for retrieving raw details of a transfer transaction.
*
*
* Protobuf type {@code pactus.GetRawTransferTransactionRequest}
@@ -6712,7 +4963,7 @@ protected Builder newBuilderForType(
}
/**
*
- * Deprecated: Request message for retrieving raw details of a transfer transaction.
+ * Request message for retrieving raw details of a transfer transaction.
*
*
* Protobuf type {@code pactus.GetRawTransferTransactionRequest}
@@ -7532,7 +5783,7 @@ public interface GetRawBondTransactionRequestOrBuilder extends
}
/**
*
- * Deprecated: Request message for retrieving raw details of a bond transaction.
+ * Request message for retrieving raw details of a bond transaction.
*
*
* Protobuf type {@code pactus.GetRawBondTransactionRequest}
@@ -8029,7 +6280,7 @@ protected Builder newBuilderForType(
}
/**
*
- * Deprecated: Request message for retrieving raw details of a bond transaction.
+ * Request message for retrieving raw details of a bond transaction.
*
*
* Protobuf type {@code pactus.GetRawBondTransactionRequest}
@@ -8897,7 +7148,7 @@ public interface GetRawUnbondTransactionRequestOrBuilder extends
}
/**
*
- * Deprecated: Request message for retrieving raw details of an unbond transaction.
+ * Request message for retrieving raw details of an unbond transaction.
*
*
* Protobuf type {@code pactus.GetRawUnbondTransactionRequest}
@@ -9226,7 +7477,7 @@ protected Builder newBuilderForType(
}
/**
*
- * Deprecated: Request message for retrieving raw details of an unbond transaction.
+ * Request message for retrieving raw details of an unbond transaction.
*
*
* Protobuf type {@code pactus.GetRawUnbondTransactionRequest}
@@ -9810,7 +8061,7 @@ public interface GetRawWithdrawTransactionRequestOrBuilder extends
}
/**
*
- * Deprecated: Request message for retrieving raw details of a withdraw transaction.
+ * Request message for retrieving raw details of a withdraw transaction.
*
*
* Protobuf type {@code pactus.GetRawWithdrawTransactionRequest}
@@ -10250,7 +8501,7 @@ protected Builder newBuilderForType(
}
/**
*
- * Deprecated: Request message for retrieving raw details of a withdraw transaction.
+ * Request message for retrieving raw details of a withdraw transaction.
*
*
* Protobuf type {@code pactus.GetRawWithdrawTransactionRequest}
@@ -19262,11 +17513,6 @@ public pactus.transaction.TransactionOuterClass.TransactionInfo getDefaultInstan
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_pactus_BroadcastTransactionResponse_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_pactus_GetRawTransactionRequest_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_pactus_GetRawTransactionRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_pactus_GetRawTransferTransactionRequest_descriptor;
private static final
@@ -19346,87 +17592,77 @@ public pactus.transaction.TransactionOuterClass.TransactionInfo getDefaultInstan
"R\003fee\"S\n\033BroadcastTransactionRequest\0224\n\026" +
"signed_raw_transaction\030\001 \001(\tR\024signedRawT" +
"ransaction\".\n\034BroadcastTransactionRespon" +
- "se\022\016\n\002id\030\001 \001(\tR\002id\"\262\002\n\030GetRawTransaction" +
- "Request\022\033\n\tlock_time\030\001 \001(\rR\010lockTime\022\022\n\004" +
- "memo\030\002 \001(\tR\004memo\022\020\n\003fee\030\003 \001(\003R\003fee\0225\n\010tr" +
- "ansfer\030\004 \001(\0132\027.pactus.PayloadTransferH\000R" +
- "\010transfer\022)\n\004bond\030\005 \001(\0132\023.pactus.Payload" +
- "BondH\000R\004bond\022/\n\006unbond\030\006 \001(\0132\025.pactus.Pa" +
- "yloadUnbondH\000R\006unbond\0225\n\010withdraw\030\007 \001(\0132" +
- "\027.pactus.PayloadWithdrawH\000R\010withdrawB\t\n\007" +
- "payload\"\261\001\n GetRawTransferTransactionReq" +
- "uest\022\033\n\tlock_time\030\001 \001(\rR\010lockTime\022\026\n\006sen" +
- "der\030\002 \001(\tR\006sender\022\032\n\010receiver\030\003 \001(\tR\010rec" +
- "eiver\022\026\n\006amount\030\004 \001(\003R\006amount\022\020\n\003fee\030\005 \001" +
- "(\003R\003fee\022\022\n\004memo\030\006 \001(\tR\004memo\"\312\001\n\034GetRawBo" +
- "ndTransactionRequest\022\033\n\tlock_time\030\001 \001(\rR" +
- "\010lockTime\022\026\n\006sender\030\002 \001(\tR\006sender\022\032\n\010rec" +
- "eiver\030\003 \001(\tR\010receiver\022\024\n\005stake\030\004 \001(\003R\005st" +
- "ake\022\035\n\npublic_key\030\005 \001(\tR\tpublicKey\022\020\n\003fe" +
- "e\030\006 \001(\003R\003fee\022\022\n\004memo\030\007 \001(\tR\004memo\"~\n\036GetR" +
- "awUnbondTransactionRequest\022\033\n\tlock_time\030" +
- "\001 \001(\rR\010lockTime\022+\n\021validator_address\030\003 \001" +
- "(\tR\020validatorAddress\022\022\n\004memo\030\004 \001(\tR\004memo" +
- "\"\323\001\n GetRawWithdrawTransactionRequest\022\033\n" +
+ "se\022\016\n\002id\030\001 \001(\tR\002id\"\261\001\n GetRawTransferTra" +
+ "nsactionRequest\022\033\n\tlock_time\030\001 \001(\rR\010lock" +
+ "Time\022\026\n\006sender\030\002 \001(\tR\006sender\022\032\n\010receiver" +
+ "\030\003 \001(\tR\010receiver\022\026\n\006amount\030\004 \001(\003R\006amount" +
+ "\022\020\n\003fee\030\005 \001(\003R\003fee\022\022\n\004memo\030\006 \001(\tR\004memo\"\312" +
+ "\001\n\034GetRawBondTransactionRequest\022\033\n\tlock_" +
+ "time\030\001 \001(\rR\010lockTime\022\026\n\006sender\030\002 \001(\tR\006se" +
+ "nder\022\032\n\010receiver\030\003 \001(\tR\010receiver\022\024\n\005stak" +
+ "e\030\004 \001(\003R\005stake\022\035\n\npublic_key\030\005 \001(\tR\tpubl" +
+ "icKey\022\020\n\003fee\030\006 \001(\003R\003fee\022\022\n\004memo\030\007 \001(\tR\004m" +
+ "emo\"~\n\036GetRawUnbondTransactionRequest\022\033\n" +
"\tlock_time\030\001 \001(\rR\010lockTime\022+\n\021validator_" +
- "address\030\002 \001(\tR\020validatorAddress\022\'\n\017accou" +
- "nt_address\030\003 \001(\tR\016accountAddress\022\026\n\006amou" +
- "nt\030\004 \001(\003R\006amount\022\020\n\003fee\030\005 \001(\003R\003fee\022\022\n\004me" +
- "mo\030\006 \001(\tR\004memo\"T\n\031GetRawTransactionRespo" +
- "nse\022\'\n\017raw_transaction\030\001 \001(\tR\016rawTransac" +
- "tion\022\016\n\002id\030\002 \001(\tR\002id\"]\n\017PayloadTransfer\022" +
- "\026\n\006sender\030\001 \001(\tR\006sender\022\032\n\010receiver\030\002 \001(" +
- "\tR\010receiver\022\026\n\006amount\030\003 \001(\003R\006amount\"v\n\013P" +
- "ayloadBond\022\026\n\006sender\030\001 \001(\tR\006sender\022\032\n\010re" +
- "ceiver\030\002 \001(\tR\010receiver\022\024\n\005stake\030\003 \001(\003R\005s" +
- "take\022\035\n\npublic_key\030\004 \001(\tR\tpublicKey\"B\n\020P" +
- "ayloadSortition\022\030\n\007address\030\001 \001(\tR\007addres" +
- "s\022\024\n\005proof\030\002 \001(\tR\005proof\"-\n\rPayloadUnbond" +
- "\022\034\n\tvalidator\030\001 \001(\tR\tvalidator\"\177\n\017Payloa" +
- "dWithdraw\022+\n\021validator_address\030\001 \001(\tR\020va" +
- "lidatorAddress\022\'\n\017account_address\030\002 \001(\tR" +
- "\016accountAddress\022\026\n\006amount\030\003 \001(\003R\006amount\"" +
- "\254\004\n\017TransactionInfo\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004d" +
- "ata\030\002 \001(\tR\004data\022\030\n\007version\030\003 \001(\005R\007versio" +
- "n\022\033\n\tlock_time\030\004 \001(\rR\010lockTime\022\024\n\005value\030" +
- "\005 \001(\003R\005value\022\020\n\003fee\030\006 \001(\003R\003fee\0226\n\014payloa" +
- "d_type\030\007 \001(\0162\023.pactus.PayloadTypeR\013paylo" +
- "adType\0225\n\010transfer\030\036 \001(\0132\027.pactus.Payloa" +
- "dTransferH\000R\010transfer\022)\n\004bond\030\037 \001(\0132\023.pa" +
- "ctus.PayloadBondH\000R\004bond\0228\n\tsortition\030 " +
- "\001(\0132\030.pactus.PayloadSortitionH\000R\tsortiti" +
- "on\022/\n\006unbond\030! \001(\0132\025.pactus.PayloadUnbon" +
- "dH\000R\006unbond\0225\n\010withdraw\030\" \001(\0132\027.pactus.P" +
- "ayloadWithdrawH\000R\010withdraw\022\022\n\004memo\030\010 \001(\t" +
- "R\004memo\022\035\n\npublic_key\030\t \001(\tR\tpublicKey\022\034\n" +
- "\tsignature\030\n \001(\tR\tsignatureB\t\n\007payload*\203" +
- "\001\n\013PayloadType\022\013\n\007UNKNOWN\020\000\022\024\n\020TRANSFER_" +
- "PAYLOAD\020\001\022\020\n\014BOND_PAYLOAD\020\002\022\025\n\021SORTITION" +
- "_PAYLOAD\020\003\022\022\n\016UNBOND_PAYLOAD\020\004\022\024\n\020WITHDR" +
- "AW_PAYLOAD\020\005*B\n\024TransactionVerbosity\022\024\n\020" +
- "TRANSACTION_DATA\020\000\022\024\n\020TRANSACTION_INFO\020\001" +
- "2\202\006\n\013Transaction\022O\n\016GetTransaction\022\035.pac" +
- "tus.GetTransactionRequest\032\036.pactus.GetTr" +
- "ansactionResponse\022I\n\014CalculateFee\022\033.pact" +
- "us.CalculateFeeRequest\032\034.pactus.Calculat" +
- "eFeeResponse\022a\n\024BroadcastTransaction\022#.p" +
- "actus.BroadcastTransactionRequest\032$.pact" +
- "us.BroadcastTransactionResponse\022X\n\021GetRa" +
- "wTransaction\022 .pactus.GetRawTransactionR" +
- "equest\032!.pactus.GetRawTransactionRespons" +
- "e\022h\n\031GetRawTransferTransaction\022(.pactus." +
- "GetRawTransferTransactionRequest\032!.pactu" +
- "s.GetRawTransactionResponse\022`\n\025GetRawBon" +
- "dTransaction\022$.pactus.GetRawBondTransact" +
- "ionRequest\032!.pactus.GetRawTransactionRes" +
- "ponse\022d\n\027GetRawUnbondTransaction\022&.pactu" +
- "s.GetRawUnbondTransactionRequest\032!.pactu" +
- "s.GetRawTransactionResponse\022h\n\031GetRawWit" +
- "hdrawTransaction\022(.pactus.GetRawWithdraw" +
- "TransactionRequest\032!.pactus.GetRawTransa" +
- "ctionResponseBF\n\022pactus.transactionZ0git" +
- "hub.com/pactus-project/pactus/www/grpc/p" +
- "actusb\006proto3"
+ "address\030\003 \001(\tR\020validatorAddress\022\022\n\004memo\030" +
+ "\004 \001(\tR\004memo\"\323\001\n GetRawWithdrawTransactio" +
+ "nRequest\022\033\n\tlock_time\030\001 \001(\rR\010lockTime\022+\n" +
+ "\021validator_address\030\002 \001(\tR\020validatorAddre" +
+ "ss\022\'\n\017account_address\030\003 \001(\tR\016accountAddr" +
+ "ess\022\026\n\006amount\030\004 \001(\003R\006amount\022\020\n\003fee\030\005 \001(\003" +
+ "R\003fee\022\022\n\004memo\030\006 \001(\tR\004memo\"T\n\031GetRawTrans" +
+ "actionResponse\022\'\n\017raw_transaction\030\001 \001(\tR" +
+ "\016rawTransaction\022\016\n\002id\030\002 \001(\tR\002id\"]\n\017Paylo" +
+ "adTransfer\022\026\n\006sender\030\001 \001(\tR\006sender\022\032\n\010re" +
+ "ceiver\030\002 \001(\tR\010receiver\022\026\n\006amount\030\003 \001(\003R\006" +
+ "amount\"v\n\013PayloadBond\022\026\n\006sender\030\001 \001(\tR\006s" +
+ "ender\022\032\n\010receiver\030\002 \001(\tR\010receiver\022\024\n\005sta" +
+ "ke\030\003 \001(\003R\005stake\022\035\n\npublic_key\030\004 \001(\tR\tpub" +
+ "licKey\"B\n\020PayloadSortition\022\030\n\007address\030\001 " +
+ "\001(\tR\007address\022\024\n\005proof\030\002 \001(\tR\005proof\"-\n\rPa" +
+ "yloadUnbond\022\034\n\tvalidator\030\001 \001(\tR\tvalidato" +
+ "r\"\177\n\017PayloadWithdraw\022+\n\021validator_addres" +
+ "s\030\001 \001(\tR\020validatorAddress\022\'\n\017account_add" +
+ "ress\030\002 \001(\tR\016accountAddress\022\026\n\006amount\030\003 \001" +
+ "(\003R\006amount\"\254\004\n\017TransactionInfo\022\016\n\002id\030\001 \001" +
+ "(\tR\002id\022\022\n\004data\030\002 \001(\tR\004data\022\030\n\007version\030\003 " +
+ "\001(\005R\007version\022\033\n\tlock_time\030\004 \001(\rR\010lockTim" +
+ "e\022\024\n\005value\030\005 \001(\003R\005value\022\020\n\003fee\030\006 \001(\003R\003fe" +
+ "e\0226\n\014payload_type\030\007 \001(\0162\023.pactus.Payload" +
+ "TypeR\013payloadType\0225\n\010transfer\030\036 \001(\0132\027.pa" +
+ "ctus.PayloadTransferH\000R\010transfer\022)\n\004bond" +
+ "\030\037 \001(\0132\023.pactus.PayloadBondH\000R\004bond\0228\n\ts" +
+ "ortition\030 \001(\0132\030.pactus.PayloadSortition" +
+ "H\000R\tsortition\022/\n\006unbond\030! \001(\0132\025.pactus.P" +
+ "ayloadUnbondH\000R\006unbond\0225\n\010withdraw\030\" \001(\013" +
+ "2\027.pactus.PayloadWithdrawH\000R\010withdraw\022\022\n" +
+ "\004memo\030\010 \001(\tR\004memo\022\035\n\npublic_key\030\t \001(\tR\tp" +
+ "ublicKey\022\034\n\tsignature\030\n \001(\tR\tsignatureB\t" +
+ "\n\007payload*\203\001\n\013PayloadType\022\013\n\007UNKNOWN\020\000\022\024" +
+ "\n\020TRANSFER_PAYLOAD\020\001\022\020\n\014BOND_PAYLOAD\020\002\022\025" +
+ "\n\021SORTITION_PAYLOAD\020\003\022\022\n\016UNBOND_PAYLOAD\020" +
+ "\004\022\024\n\020WITHDRAW_PAYLOAD\020\005*B\n\024TransactionVe" +
+ "rbosity\022\024\n\020TRANSACTION_DATA\020\000\022\024\n\020TRANSAC" +
+ "TION_INFO\020\0012\250\005\n\013Transaction\022O\n\016GetTransa" +
+ "ction\022\035.pactus.GetTransactionRequest\032\036.p" +
+ "actus.GetTransactionResponse\022I\n\014Calculat" +
+ "eFee\022\033.pactus.CalculateFeeRequest\032\034.pact" +
+ "us.CalculateFeeResponse\022a\n\024BroadcastTran" +
+ "saction\022#.pactus.BroadcastTransactionReq" +
+ "uest\032$.pactus.BroadcastTransactionRespon" +
+ "se\022h\n\031GetRawTransferTransaction\022(.pactus" +
+ ".GetRawTransferTransactionRequest\032!.pact" +
+ "us.GetRawTransactionResponse\022`\n\025GetRawBo" +
+ "ndTransaction\022$.pactus.GetRawBondTransac" +
+ "tionRequest\032!.pactus.GetRawTransactionRe" +
+ "sponse\022d\n\027GetRawUnbondTransaction\022&.pact" +
+ "us.GetRawUnbondTransactionRequest\032!.pact" +
+ "us.GetRawTransactionResponse\022h\n\031GetRawWi" +
+ "thdrawTransaction\022(.pactus.GetRawWithdra" +
+ "wTransactionRequest\032!.pactus.GetRawTrans" +
+ "actionResponseBF\n\022pactus.transactionZ0gi" +
+ "thub.com/pactus-project/pactus/www/grpc/" +
+ "pactusb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -19468,74 +17704,68 @@ public pactus.transaction.TransactionOuterClass.TransactionInfo getDefaultInstan
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_pactus_BroadcastTransactionResponse_descriptor,
new java.lang.String[] { "Id", });
- internal_static_pactus_GetRawTransactionRequest_descriptor =
- getDescriptor().getMessageTypes().get(6);
- internal_static_pactus_GetRawTransactionRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_pactus_GetRawTransactionRequest_descriptor,
- new java.lang.String[] { "LockTime", "Memo", "Fee", "Transfer", "Bond", "Unbond", "Withdraw", "Payload", });
internal_static_pactus_GetRawTransferTransactionRequest_descriptor =
- getDescriptor().getMessageTypes().get(7);
+ getDescriptor().getMessageTypes().get(6);
internal_static_pactus_GetRawTransferTransactionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_pactus_GetRawTransferTransactionRequest_descriptor,
new java.lang.String[] { "LockTime", "Sender", "Receiver", "Amount", "Fee", "Memo", });
internal_static_pactus_GetRawBondTransactionRequest_descriptor =
- getDescriptor().getMessageTypes().get(8);
+ getDescriptor().getMessageTypes().get(7);
internal_static_pactus_GetRawBondTransactionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_pactus_GetRawBondTransactionRequest_descriptor,
new java.lang.String[] { "LockTime", "Sender", "Receiver", "Stake", "PublicKey", "Fee", "Memo", });
internal_static_pactus_GetRawUnbondTransactionRequest_descriptor =
- getDescriptor().getMessageTypes().get(9);
+ getDescriptor().getMessageTypes().get(8);
internal_static_pactus_GetRawUnbondTransactionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_pactus_GetRawUnbondTransactionRequest_descriptor,
new java.lang.String[] { "LockTime", "ValidatorAddress", "Memo", });
internal_static_pactus_GetRawWithdrawTransactionRequest_descriptor =
- getDescriptor().getMessageTypes().get(10);
+ getDescriptor().getMessageTypes().get(9);
internal_static_pactus_GetRawWithdrawTransactionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_pactus_GetRawWithdrawTransactionRequest_descriptor,
new java.lang.String[] { "LockTime", "ValidatorAddress", "AccountAddress", "Amount", "Fee", "Memo", });
internal_static_pactus_GetRawTransactionResponse_descriptor =
- getDescriptor().getMessageTypes().get(11);
+ getDescriptor().getMessageTypes().get(10);
internal_static_pactus_GetRawTransactionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_pactus_GetRawTransactionResponse_descriptor,
new java.lang.String[] { "RawTransaction", "Id", });
internal_static_pactus_PayloadTransfer_descriptor =
- getDescriptor().getMessageTypes().get(12);
+ getDescriptor().getMessageTypes().get(11);
internal_static_pactus_PayloadTransfer_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_pactus_PayloadTransfer_descriptor,
new java.lang.String[] { "Sender", "Receiver", "Amount", });
internal_static_pactus_PayloadBond_descriptor =
- getDescriptor().getMessageTypes().get(13);
+ getDescriptor().getMessageTypes().get(12);
internal_static_pactus_PayloadBond_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_pactus_PayloadBond_descriptor,
new java.lang.String[] { "Sender", "Receiver", "Stake", "PublicKey", });
internal_static_pactus_PayloadSortition_descriptor =
- getDescriptor().getMessageTypes().get(14);
+ getDescriptor().getMessageTypes().get(13);
internal_static_pactus_PayloadSortition_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_pactus_PayloadSortition_descriptor,
new java.lang.String[] { "Address", "Proof", });
internal_static_pactus_PayloadUnbond_descriptor =
- getDescriptor().getMessageTypes().get(15);
+ getDescriptor().getMessageTypes().get(14);
internal_static_pactus_PayloadUnbond_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_pactus_PayloadUnbond_descriptor,
new java.lang.String[] { "Validator", });
internal_static_pactus_PayloadWithdraw_descriptor =
- getDescriptor().getMessageTypes().get(16);
+ getDescriptor().getMessageTypes().get(15);
internal_static_pactus_PayloadWithdraw_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_pactus_PayloadWithdraw_descriptor,
new java.lang.String[] { "ValidatorAddress", "AccountAddress", "Amount", });
internal_static_pactus_TransactionInfo_descriptor =
- getDescriptor().getMessageTypes().get(17);
+ getDescriptor().getMessageTypes().get(16);
internal_static_pactus_TransactionInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_pactus_TransactionInfo_descriptor,
diff --git a/www/grpc/gen/js/transaction_grpc_pb.js b/www/grpc/gen/js/transaction_grpc_pb.js
index 8a71f0964..b77ed0899 100644
--- a/www/grpc/gen/js/transaction_grpc_pb.js
+++ b/www/grpc/gen/js/transaction_grpc_pb.js
@@ -59,17 +59,6 @@ function deserialize_pactus_GetRawBondTransactionRequest(buffer_arg) {
return transaction_pb.GetRawBondTransactionRequest.deserializeBinary(new Uint8Array(buffer_arg));
}
-function serialize_pactus_GetRawTransactionRequest(arg) {
- if (!(arg instanceof transaction_pb.GetRawTransactionRequest)) {
- throw new Error('Expected argument of type pactus.GetRawTransactionRequest');
- }
- return Buffer.from(arg.serializeBinary());
-}
-
-function deserialize_pactus_GetRawTransactionRequest(buffer_arg) {
- return transaction_pb.GetRawTransactionRequest.deserializeBinary(new Uint8Array(buffer_arg));
-}
-
function serialize_pactus_GetRawTransactionResponse(arg) {
if (!(arg instanceof transaction_pb.GetRawTransactionResponse)) {
throw new Error('Expected argument of type pactus.GetRawTransactionResponse');
@@ -178,20 +167,7 @@ broadcastTransaction: {
responseSerialize: serialize_pactus_BroadcastTransactionResponse,
responseDeserialize: deserialize_pactus_BroadcastTransactionResponse,
},
- // GetRawTransaction retrieves raw details of transfer, bond, unbond or withdraw transaction.
-getRawTransaction: {
- path: '/pactus.Transaction/GetRawTransaction',
- requestStream: false,
- responseStream: false,
- requestType: transaction_pb.GetRawTransactionRequest,
- responseType: transaction_pb.GetRawTransactionResponse,
- requestSerialize: serialize_pactus_GetRawTransactionRequest,
- requestDeserialize: deserialize_pactus_GetRawTransactionRequest,
- responseSerialize: serialize_pactus_GetRawTransactionResponse,
- responseDeserialize: deserialize_pactus_GetRawTransactionResponse,
- },
- // Deprecated: GetRawTransferTransaction retrieves raw details of a transfer transaction.
-// Use GetRawTransaction instead.
+ // GetRawTransferTransaction retrieves raw details of a transfer transaction.
getRawTransferTransaction: {
path: '/pactus.Transaction/GetRawTransferTransaction',
requestStream: false,
@@ -203,8 +179,7 @@ getRawTransferTransaction: {
responseSerialize: serialize_pactus_GetRawTransactionResponse,
responseDeserialize: deserialize_pactus_GetRawTransactionResponse,
},
- // Deprecated: GetRawBondTransaction retrieves raw details of a bond transaction.
-// Use GetRawTransaction instead.
+ // GetRawBondTransaction retrieves raw details of a bond transaction.
getRawBondTransaction: {
path: '/pactus.Transaction/GetRawBondTransaction',
requestStream: false,
@@ -216,8 +191,7 @@ getRawBondTransaction: {
responseSerialize: serialize_pactus_GetRawTransactionResponse,
responseDeserialize: deserialize_pactus_GetRawTransactionResponse,
},
- // Deprecated: GetRawUnbondTransaction retrieves raw details of an unbond transaction.
-// Use GetRawTransaction instead.
+ // GetRawUnbondTransaction retrieves raw details of an unbond transaction.
getRawUnbondTransaction: {
path: '/pactus.Transaction/GetRawUnbondTransaction',
requestStream: false,
@@ -229,8 +203,7 @@ getRawUnbondTransaction: {
responseSerialize: serialize_pactus_GetRawTransactionResponse,
responseDeserialize: deserialize_pactus_GetRawTransactionResponse,
},
- // Deprecated: GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
-// Use GetRawTransaction instead.
+ // GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
getRawWithdrawTransaction: {
path: '/pactus.Transaction/GetRawWithdrawTransaction',
requestStream: false,
diff --git a/www/grpc/gen/js/transaction_pb.js b/www/grpc/gen/js/transaction_pb.js
index e1df38aea..832edc74a 100644
--- a/www/grpc/gen/js/transaction_pb.js
+++ b/www/grpc/gen/js/transaction_pb.js
@@ -26,8 +26,6 @@ goog.exportSymbol('proto.pactus.BroadcastTransactionResponse', null, global);
goog.exportSymbol('proto.pactus.CalculateFeeRequest', null, global);
goog.exportSymbol('proto.pactus.CalculateFeeResponse', null, global);
goog.exportSymbol('proto.pactus.GetRawBondTransactionRequest', null, global);
-goog.exportSymbol('proto.pactus.GetRawTransactionRequest', null, global);
-goog.exportSymbol('proto.pactus.GetRawTransactionRequest.PayloadCase', null, global);
goog.exportSymbol('proto.pactus.GetRawTransactionResponse', null, global);
goog.exportSymbol('proto.pactus.GetRawTransferTransactionRequest', null, global);
goog.exportSymbol('proto.pactus.GetRawUnbondTransactionRequest', null, global);
@@ -169,27 +167,6 @@ if (goog.DEBUG && !COMPILED) {
*/
proto.pactus.BroadcastTransactionResponse.displayName = 'proto.pactus.BroadcastTransactionResponse';
}
-/**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
-proto.pactus.GetRawTransactionRequest = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, proto.pactus.GetRawTransactionRequest.oneofGroups_);
-};
-goog.inherits(proto.pactus.GetRawTransactionRequest, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.pactus.GetRawTransactionRequest.displayName = 'proto.pactus.GetRawTransactionRequest';
-}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
@@ -1403,428 +1380,6 @@ proto.pactus.BroadcastTransactionResponse.prototype.setId = function(value) {
-/**
- * Oneof group definitions for this message. Each group defines the field
- * numbers belonging to that group. When of these fields' value is set, all
- * other fields in the group are cleared. During deserialization, if multiple
- * fields are encountered for a group, only the last value seen will be kept.
- * @private {!Array>}
- * @const
- */
-proto.pactus.GetRawTransactionRequest.oneofGroups_ = [[4,5,6,7]];
-
-/**
- * @enum {number}
- */
-proto.pactus.GetRawTransactionRequest.PayloadCase = {
- PAYLOAD_NOT_SET: 0,
- TRANSFER: 4,
- BOND: 5,
- UNBOND: 6,
- WITHDRAW: 7
-};
-
-/**
- * @return {proto.pactus.GetRawTransactionRequest.PayloadCase}
- */
-proto.pactus.GetRawTransactionRequest.prototype.getPayloadCase = function() {
- return /** @type {proto.pactus.GetRawTransactionRequest.PayloadCase} */(jspb.Message.computeOneofCase(this, proto.pactus.GetRawTransactionRequest.oneofGroups_[0]));
-};
-
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
-proto.pactus.GetRawTransactionRequest.prototype.toObject = function(opt_includeInstance) {
- return proto.pactus.GetRawTransactionRequest.toObject(opt_includeInstance, this);
-};
-
-
-/**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.pactus.GetRawTransactionRequest} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.pactus.GetRawTransactionRequest.toObject = function(includeInstance, msg) {
- var f, obj = {
- lockTime: jspb.Message.getFieldWithDefault(msg, 1, 0),
- memo: jspb.Message.getFieldWithDefault(msg, 2, ""),
- fee: jspb.Message.getFieldWithDefault(msg, 3, 0),
- transfer: (f = msg.getTransfer()) && proto.pactus.PayloadTransfer.toObject(includeInstance, f),
- bond: (f = msg.getBond()) && proto.pactus.PayloadBond.toObject(includeInstance, f),
- unbond: (f = msg.getUnbond()) && proto.pactus.PayloadUnbond.toObject(includeInstance, f),
- withdraw: (f = msg.getWithdraw()) && proto.pactus.PayloadWithdraw.toObject(includeInstance, f)
- };
-
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
-};
-}
-
-
-/**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.pactus.GetRawTransactionRequest}
- */
-proto.pactus.GetRawTransactionRequest.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.pactus.GetRawTransactionRequest;
- return proto.pactus.GetRawTransactionRequest.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.pactus.GetRawTransactionRequest} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.pactus.GetRawTransactionRequest}
- */
-proto.pactus.GetRawTransactionRequest.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {number} */ (reader.readUint32());
- msg.setLockTime(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.setMemo(value);
- break;
- case 3:
- var value = /** @type {number} */ (reader.readInt64());
- msg.setFee(value);
- break;
- case 4:
- var value = new proto.pactus.PayloadTransfer;
- reader.readMessage(value,proto.pactus.PayloadTransfer.deserializeBinaryFromReader);
- msg.setTransfer(value);
- break;
- case 5:
- var value = new proto.pactus.PayloadBond;
- reader.readMessage(value,proto.pactus.PayloadBond.deserializeBinaryFromReader);
- msg.setBond(value);
- break;
- case 6:
- var value = new proto.pactus.PayloadUnbond;
- reader.readMessage(value,proto.pactus.PayloadUnbond.deserializeBinaryFromReader);
- msg.setUnbond(value);
- break;
- case 7:
- var value = new proto.pactus.PayloadWithdraw;
- reader.readMessage(value,proto.pactus.PayloadWithdraw.deserializeBinaryFromReader);
- msg.setWithdraw(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.pactus.GetRawTransactionRequest.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.pactus.GetRawTransactionRequest.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.pactus.GetRawTransactionRequest} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.pactus.GetRawTransactionRequest.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getLockTime();
- if (f !== 0) {
- writer.writeUint32(
- 1,
- f
- );
- }
- f = message.getMemo();
- if (f.length > 0) {
- writer.writeString(
- 2,
- f
- );
- }
- f = message.getFee();
- if (f !== 0) {
- writer.writeInt64(
- 3,
- f
- );
- }
- f = message.getTransfer();
- if (f != null) {
- writer.writeMessage(
- 4,
- f,
- proto.pactus.PayloadTransfer.serializeBinaryToWriter
- );
- }
- f = message.getBond();
- if (f != null) {
- writer.writeMessage(
- 5,
- f,
- proto.pactus.PayloadBond.serializeBinaryToWriter
- );
- }
- f = message.getUnbond();
- if (f != null) {
- writer.writeMessage(
- 6,
- f,
- proto.pactus.PayloadUnbond.serializeBinaryToWriter
- );
- }
- f = message.getWithdraw();
- if (f != null) {
- writer.writeMessage(
- 7,
- f,
- proto.pactus.PayloadWithdraw.serializeBinaryToWriter
- );
- }
-};
-
-
-/**
- * optional uint32 lock_time = 1;
- * @return {number}
- */
-proto.pactus.GetRawTransactionRequest.prototype.getLockTime = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.pactus.GetRawTransactionRequest} returns this
- */
-proto.pactus.GetRawTransactionRequest.prototype.setLockTime = function(value) {
- return jspb.Message.setProto3IntField(this, 1, value);
-};
-
-
-/**
- * optional string memo = 2;
- * @return {string}
- */
-proto.pactus.GetRawTransactionRequest.prototype.getMemo = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.pactus.GetRawTransactionRequest} returns this
- */
-proto.pactus.GetRawTransactionRequest.prototype.setMemo = function(value) {
- return jspb.Message.setProto3StringField(this, 2, value);
-};
-
-
-/**
- * optional int64 fee = 3;
- * @return {number}
- */
-proto.pactus.GetRawTransactionRequest.prototype.getFee = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.pactus.GetRawTransactionRequest} returns this
- */
-proto.pactus.GetRawTransactionRequest.prototype.setFee = function(value) {
- return jspb.Message.setProto3IntField(this, 3, value);
-};
-
-
-/**
- * optional PayloadTransfer transfer = 4;
- * @return {?proto.pactus.PayloadTransfer}
- */
-proto.pactus.GetRawTransactionRequest.prototype.getTransfer = function() {
- return /** @type{?proto.pactus.PayloadTransfer} */ (
- jspb.Message.getWrapperField(this, proto.pactus.PayloadTransfer, 4));
-};
-
-
-/**
- * @param {?proto.pactus.PayloadTransfer|undefined} value
- * @return {!proto.pactus.GetRawTransactionRequest} returns this
-*/
-proto.pactus.GetRawTransactionRequest.prototype.setTransfer = function(value) {
- return jspb.Message.setOneofWrapperField(this, 4, proto.pactus.GetRawTransactionRequest.oneofGroups_[0], value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.pactus.GetRawTransactionRequest} returns this
- */
-proto.pactus.GetRawTransactionRequest.prototype.clearTransfer = function() {
- return this.setTransfer(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.pactus.GetRawTransactionRequest.prototype.hasTransfer = function() {
- return jspb.Message.getField(this, 4) != null;
-};
-
-
-/**
- * optional PayloadBond bond = 5;
- * @return {?proto.pactus.PayloadBond}
- */
-proto.pactus.GetRawTransactionRequest.prototype.getBond = function() {
- return /** @type{?proto.pactus.PayloadBond} */ (
- jspb.Message.getWrapperField(this, proto.pactus.PayloadBond, 5));
-};
-
-
-/**
- * @param {?proto.pactus.PayloadBond|undefined} value
- * @return {!proto.pactus.GetRawTransactionRequest} returns this
-*/
-proto.pactus.GetRawTransactionRequest.prototype.setBond = function(value) {
- return jspb.Message.setOneofWrapperField(this, 5, proto.pactus.GetRawTransactionRequest.oneofGroups_[0], value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.pactus.GetRawTransactionRequest} returns this
- */
-proto.pactus.GetRawTransactionRequest.prototype.clearBond = function() {
- return this.setBond(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.pactus.GetRawTransactionRequest.prototype.hasBond = function() {
- return jspb.Message.getField(this, 5) != null;
-};
-
-
-/**
- * optional PayloadUnbond unbond = 6;
- * @return {?proto.pactus.PayloadUnbond}
- */
-proto.pactus.GetRawTransactionRequest.prototype.getUnbond = function() {
- return /** @type{?proto.pactus.PayloadUnbond} */ (
- jspb.Message.getWrapperField(this, proto.pactus.PayloadUnbond, 6));
-};
-
-
-/**
- * @param {?proto.pactus.PayloadUnbond|undefined} value
- * @return {!proto.pactus.GetRawTransactionRequest} returns this
-*/
-proto.pactus.GetRawTransactionRequest.prototype.setUnbond = function(value) {
- return jspb.Message.setOneofWrapperField(this, 6, proto.pactus.GetRawTransactionRequest.oneofGroups_[0], value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.pactus.GetRawTransactionRequest} returns this
- */
-proto.pactus.GetRawTransactionRequest.prototype.clearUnbond = function() {
- return this.setUnbond(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.pactus.GetRawTransactionRequest.prototype.hasUnbond = function() {
- return jspb.Message.getField(this, 6) != null;
-};
-
-
-/**
- * optional PayloadWithdraw withdraw = 7;
- * @return {?proto.pactus.PayloadWithdraw}
- */
-proto.pactus.GetRawTransactionRequest.prototype.getWithdraw = function() {
- return /** @type{?proto.pactus.PayloadWithdraw} */ (
- jspb.Message.getWrapperField(this, proto.pactus.PayloadWithdraw, 7));
-};
-
-
-/**
- * @param {?proto.pactus.PayloadWithdraw|undefined} value
- * @return {!proto.pactus.GetRawTransactionRequest} returns this
-*/
-proto.pactus.GetRawTransactionRequest.prototype.setWithdraw = function(value) {
- return jspb.Message.setOneofWrapperField(this, 7, proto.pactus.GetRawTransactionRequest.oneofGroups_[0], value);
-};
-
-
-/**
- * Clears the message field making it undefined.
- * @return {!proto.pactus.GetRawTransactionRequest} returns this
- */
-proto.pactus.GetRawTransactionRequest.prototype.clearWithdraw = function() {
- return this.setWithdraw(undefined);
-};
-
-
-/**
- * Returns whether this field is set.
- * @return {boolean}
- */
-proto.pactus.GetRawTransactionRequest.prototype.hasWithdraw = function() {
- return jspb.Message.getField(this, 7) != null;
-};
-
-
-
if (jspb.Message.GENERATE_TO_OBJECT) {
diff --git a/www/grpc/gen/python/transaction_pb2.py b/www/grpc/gen/python/transaction_pb2.py
index a6e91d71a..ec6a9016a 100644
--- a/www/grpc/gen/python/transaction_pb2.py
+++ b/www/grpc/gen/python/transaction_pb2.py
@@ -13,7 +13,7 @@
-DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11transaction.proto\x12\x06pactus\"c\n\x15GetTransactionRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12:\n\tverbosity\x18\x02 \x01(\x0e\x32\x1c.pactus.TransactionVerbosityR\tverbosity\"\x95\x01\n\x16GetTransactionResponse\x12!\n\x0c\x62lock_height\x18\x01 \x01(\rR\x0b\x62lockHeight\x12\x1d\n\nblock_time\x18\x02 \x01(\rR\tblockTime\x12\x39\n\x0btransaction\x18\x03 \x01(\x0b\x32\x17.pactus.TransactionInfoR\x0btransaction\"\x88\x01\n\x13\x43\x61lculateFeeRequest\x12\x16\n\x06\x61mount\x18\x01 \x01(\x03R\x06\x61mount\x12\x36\n\x0cpayload_type\x18\x02 \x01(\x0e\x32\x13.pactus.PayloadTypeR\x0bpayloadType\x12!\n\x0c\x66ixed_amount\x18\x03 \x01(\x08R\x0b\x66ixedAmount\"@\n\x14\x43\x61lculateFeeResponse\x12\x16\n\x06\x61mount\x18\x01 \x01(\x03R\x06\x61mount\x12\x10\n\x03\x66\x65\x65\x18\x02 \x01(\x03R\x03\x66\x65\x65\"S\n\x1b\x42roadcastTransactionRequest\x12\x34\n\x16signed_raw_transaction\x18\x01 \x01(\tR\x14signedRawTransaction\".\n\x1c\x42roadcastTransactionResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"\xb2\x02\n\x18GetRawTransactionRequest\x12\x1b\n\tlock_time\x18\x01 \x01(\rR\x08lockTime\x12\x12\n\x04memo\x18\x02 \x01(\tR\x04memo\x12\x10\n\x03\x66\x65\x65\x18\x03 \x01(\x03R\x03\x66\x65\x65\x12\x35\n\x08transfer\x18\x04 \x01(\x0b\x32\x17.pactus.PayloadTransferH\x00R\x08transfer\x12)\n\x04\x62ond\x18\x05 \x01(\x0b\x32\x13.pactus.PayloadBondH\x00R\x04\x62ond\x12/\n\x06unbond\x18\x06 \x01(\x0b\x32\x15.pactus.PayloadUnbondH\x00R\x06unbond\x12\x35\n\x08withdraw\x18\x07 \x01(\x0b\x32\x17.pactus.PayloadWithdrawH\x00R\x08withdrawB\t\n\x07payload\"\xb1\x01\n GetRawTransferTransactionRequest\x12\x1b\n\tlock_time\x18\x01 \x01(\rR\x08lockTime\x12\x16\n\x06sender\x18\x02 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x03 \x01(\tR\x08receiver\x12\x16\n\x06\x61mount\x18\x04 \x01(\x03R\x06\x61mount\x12\x10\n\x03\x66\x65\x65\x18\x05 \x01(\x03R\x03\x66\x65\x65\x12\x12\n\x04memo\x18\x06 \x01(\tR\x04memo\"\xca\x01\n\x1cGetRawBondTransactionRequest\x12\x1b\n\tlock_time\x18\x01 \x01(\rR\x08lockTime\x12\x16\n\x06sender\x18\x02 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x03 \x01(\tR\x08receiver\x12\x14\n\x05stake\x18\x04 \x01(\x03R\x05stake\x12\x1d\n\npublic_key\x18\x05 \x01(\tR\tpublicKey\x12\x10\n\x03\x66\x65\x65\x18\x06 \x01(\x03R\x03\x66\x65\x65\x12\x12\n\x04memo\x18\x07 \x01(\tR\x04memo\"~\n\x1eGetRawUnbondTransactionRequest\x12\x1b\n\tlock_time\x18\x01 \x01(\rR\x08lockTime\x12+\n\x11validator_address\x18\x03 \x01(\tR\x10validatorAddress\x12\x12\n\x04memo\x18\x04 \x01(\tR\x04memo\"\xd3\x01\n GetRawWithdrawTransactionRequest\x12\x1b\n\tlock_time\x18\x01 \x01(\rR\x08lockTime\x12+\n\x11validator_address\x18\x02 \x01(\tR\x10validatorAddress\x12\'\n\x0f\x61\x63\x63ount_address\x18\x03 \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x16\n\x06\x61mount\x18\x04 \x01(\x03R\x06\x61mount\x12\x10\n\x03\x66\x65\x65\x18\x05 \x01(\x03R\x03\x66\x65\x65\x12\x12\n\x04memo\x18\x06 \x01(\tR\x04memo\"T\n\x19GetRawTransactionResponse\x12\'\n\x0fraw_transaction\x18\x01 \x01(\tR\x0erawTransaction\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\"]\n\x0fPayloadTransfer\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x02 \x01(\tR\x08receiver\x12\x16\n\x06\x61mount\x18\x03 \x01(\x03R\x06\x61mount\"v\n\x0bPayloadBond\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x02 \x01(\tR\x08receiver\x12\x14\n\x05stake\x18\x03 \x01(\x03R\x05stake\x12\x1d\n\npublic_key\x18\x04 \x01(\tR\tpublicKey\"B\n\x10PayloadSortition\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12\x14\n\x05proof\x18\x02 \x01(\tR\x05proof\"-\n\rPayloadUnbond\x12\x1c\n\tvalidator\x18\x01 \x01(\tR\tvalidator\"\x7f\n\x0fPayloadWithdraw\x12+\n\x11validator_address\x18\x01 \x01(\tR\x10validatorAddress\x12\'\n\x0f\x61\x63\x63ount_address\x18\x02 \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x16\n\x06\x61mount\x18\x03 \x01(\x03R\x06\x61mount\"\xac\x04\n\x0fTransactionInfo\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04\x64\x61ta\x18\x02 \x01(\tR\x04\x64\x61ta\x12\x18\n\x07version\x18\x03 \x01(\x05R\x07version\x12\x1b\n\tlock_time\x18\x04 \x01(\rR\x08lockTime\x12\x14\n\x05value\x18\x05 \x01(\x03R\x05value\x12\x10\n\x03\x66\x65\x65\x18\x06 \x01(\x03R\x03\x66\x65\x65\x12\x36\n\x0cpayload_type\x18\x07 \x01(\x0e\x32\x13.pactus.PayloadTypeR\x0bpayloadType\x12\x35\n\x08transfer\x18\x1e \x01(\x0b\x32\x17.pactus.PayloadTransferH\x00R\x08transfer\x12)\n\x04\x62ond\x18\x1f \x01(\x0b\x32\x13.pactus.PayloadBondH\x00R\x04\x62ond\x12\x38\n\tsortition\x18 \x01(\x0b\x32\x18.pactus.PayloadSortitionH\x00R\tsortition\x12/\n\x06unbond\x18! \x01(\x0b\x32\x15.pactus.PayloadUnbondH\x00R\x06unbond\x12\x35\n\x08withdraw\x18\" \x01(\x0b\x32\x17.pactus.PayloadWithdrawH\x00R\x08withdraw\x12\x12\n\x04memo\x18\x08 \x01(\tR\x04memo\x12\x1d\n\npublic_key\x18\t \x01(\tR\tpublicKey\x12\x1c\n\tsignature\x18\n \x01(\tR\tsignatureB\t\n\x07payload*\x83\x01\n\x0bPayloadType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x14\n\x10TRANSFER_PAYLOAD\x10\x01\x12\x10\n\x0c\x42OND_PAYLOAD\x10\x02\x12\x15\n\x11SORTITION_PAYLOAD\x10\x03\x12\x12\n\x0eUNBOND_PAYLOAD\x10\x04\x12\x14\n\x10WITHDRAW_PAYLOAD\x10\x05*B\n\x14TransactionVerbosity\x12\x14\n\x10TRANSACTION_DATA\x10\x00\x12\x14\n\x10TRANSACTION_INFO\x10\x01\x32\x82\x06\n\x0bTransaction\x12O\n\x0eGetTransaction\x12\x1d.pactus.GetTransactionRequest\x1a\x1e.pactus.GetTransactionResponse\x12I\n\x0c\x43\x61lculateFee\x12\x1b.pactus.CalculateFeeRequest\x1a\x1c.pactus.CalculateFeeResponse\x12\x61\n\x14\x42roadcastTransaction\x12#.pactus.BroadcastTransactionRequest\x1a$.pactus.BroadcastTransactionResponse\x12X\n\x11GetRawTransaction\x12 .pactus.GetRawTransactionRequest\x1a!.pactus.GetRawTransactionResponse\x12h\n\x19GetRawTransferTransaction\x12(.pactus.GetRawTransferTransactionRequest\x1a!.pactus.GetRawTransactionResponse\x12`\n\x15GetRawBondTransaction\x12$.pactus.GetRawBondTransactionRequest\x1a!.pactus.GetRawTransactionResponse\x12\x64\n\x17GetRawUnbondTransaction\x12&.pactus.GetRawUnbondTransactionRequest\x1a!.pactus.GetRawTransactionResponse\x12h\n\x19GetRawWithdrawTransaction\x12(.pactus.GetRawWithdrawTransactionRequest\x1a!.pactus.GetRawTransactionResponseBF\n\x12pactus.transactionZ0github.com/pactus-project/pactus/www/grpc/pactusb\x06proto3')
+DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11transaction.proto\x12\x06pactus\"c\n\x15GetTransactionRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12:\n\tverbosity\x18\x02 \x01(\x0e\x32\x1c.pactus.TransactionVerbosityR\tverbosity\"\x95\x01\n\x16GetTransactionResponse\x12!\n\x0c\x62lock_height\x18\x01 \x01(\rR\x0b\x62lockHeight\x12\x1d\n\nblock_time\x18\x02 \x01(\rR\tblockTime\x12\x39\n\x0btransaction\x18\x03 \x01(\x0b\x32\x17.pactus.TransactionInfoR\x0btransaction\"\x88\x01\n\x13\x43\x61lculateFeeRequest\x12\x16\n\x06\x61mount\x18\x01 \x01(\x03R\x06\x61mount\x12\x36\n\x0cpayload_type\x18\x02 \x01(\x0e\x32\x13.pactus.PayloadTypeR\x0bpayloadType\x12!\n\x0c\x66ixed_amount\x18\x03 \x01(\x08R\x0b\x66ixedAmount\"@\n\x14\x43\x61lculateFeeResponse\x12\x16\n\x06\x61mount\x18\x01 \x01(\x03R\x06\x61mount\x12\x10\n\x03\x66\x65\x65\x18\x02 \x01(\x03R\x03\x66\x65\x65\"S\n\x1b\x42roadcastTransactionRequest\x12\x34\n\x16signed_raw_transaction\x18\x01 \x01(\tR\x14signedRawTransaction\".\n\x1c\x42roadcastTransactionResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"\xb1\x01\n GetRawTransferTransactionRequest\x12\x1b\n\tlock_time\x18\x01 \x01(\rR\x08lockTime\x12\x16\n\x06sender\x18\x02 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x03 \x01(\tR\x08receiver\x12\x16\n\x06\x61mount\x18\x04 \x01(\x03R\x06\x61mount\x12\x10\n\x03\x66\x65\x65\x18\x05 \x01(\x03R\x03\x66\x65\x65\x12\x12\n\x04memo\x18\x06 \x01(\tR\x04memo\"\xca\x01\n\x1cGetRawBondTransactionRequest\x12\x1b\n\tlock_time\x18\x01 \x01(\rR\x08lockTime\x12\x16\n\x06sender\x18\x02 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x03 \x01(\tR\x08receiver\x12\x14\n\x05stake\x18\x04 \x01(\x03R\x05stake\x12\x1d\n\npublic_key\x18\x05 \x01(\tR\tpublicKey\x12\x10\n\x03\x66\x65\x65\x18\x06 \x01(\x03R\x03\x66\x65\x65\x12\x12\n\x04memo\x18\x07 \x01(\tR\x04memo\"~\n\x1eGetRawUnbondTransactionRequest\x12\x1b\n\tlock_time\x18\x01 \x01(\rR\x08lockTime\x12+\n\x11validator_address\x18\x03 \x01(\tR\x10validatorAddress\x12\x12\n\x04memo\x18\x04 \x01(\tR\x04memo\"\xd3\x01\n GetRawWithdrawTransactionRequest\x12\x1b\n\tlock_time\x18\x01 \x01(\rR\x08lockTime\x12+\n\x11validator_address\x18\x02 \x01(\tR\x10validatorAddress\x12\'\n\x0f\x61\x63\x63ount_address\x18\x03 \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x16\n\x06\x61mount\x18\x04 \x01(\x03R\x06\x61mount\x12\x10\n\x03\x66\x65\x65\x18\x05 \x01(\x03R\x03\x66\x65\x65\x12\x12\n\x04memo\x18\x06 \x01(\tR\x04memo\"T\n\x19GetRawTransactionResponse\x12\'\n\x0fraw_transaction\x18\x01 \x01(\tR\x0erawTransaction\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\"]\n\x0fPayloadTransfer\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x02 \x01(\tR\x08receiver\x12\x16\n\x06\x61mount\x18\x03 \x01(\x03R\x06\x61mount\"v\n\x0bPayloadBond\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x02 \x01(\tR\x08receiver\x12\x14\n\x05stake\x18\x03 \x01(\x03R\x05stake\x12\x1d\n\npublic_key\x18\x04 \x01(\tR\tpublicKey\"B\n\x10PayloadSortition\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12\x14\n\x05proof\x18\x02 \x01(\tR\x05proof\"-\n\rPayloadUnbond\x12\x1c\n\tvalidator\x18\x01 \x01(\tR\tvalidator\"\x7f\n\x0fPayloadWithdraw\x12+\n\x11validator_address\x18\x01 \x01(\tR\x10validatorAddress\x12\'\n\x0f\x61\x63\x63ount_address\x18\x02 \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x16\n\x06\x61mount\x18\x03 \x01(\x03R\x06\x61mount\"\xac\x04\n\x0fTransactionInfo\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04\x64\x61ta\x18\x02 \x01(\tR\x04\x64\x61ta\x12\x18\n\x07version\x18\x03 \x01(\x05R\x07version\x12\x1b\n\tlock_time\x18\x04 \x01(\rR\x08lockTime\x12\x14\n\x05value\x18\x05 \x01(\x03R\x05value\x12\x10\n\x03\x66\x65\x65\x18\x06 \x01(\x03R\x03\x66\x65\x65\x12\x36\n\x0cpayload_type\x18\x07 \x01(\x0e\x32\x13.pactus.PayloadTypeR\x0bpayloadType\x12\x35\n\x08transfer\x18\x1e \x01(\x0b\x32\x17.pactus.PayloadTransferH\x00R\x08transfer\x12)\n\x04\x62ond\x18\x1f \x01(\x0b\x32\x13.pactus.PayloadBondH\x00R\x04\x62ond\x12\x38\n\tsortition\x18 \x01(\x0b\x32\x18.pactus.PayloadSortitionH\x00R\tsortition\x12/\n\x06unbond\x18! \x01(\x0b\x32\x15.pactus.PayloadUnbondH\x00R\x06unbond\x12\x35\n\x08withdraw\x18\" \x01(\x0b\x32\x17.pactus.PayloadWithdrawH\x00R\x08withdraw\x12\x12\n\x04memo\x18\x08 \x01(\tR\x04memo\x12\x1d\n\npublic_key\x18\t \x01(\tR\tpublicKey\x12\x1c\n\tsignature\x18\n \x01(\tR\tsignatureB\t\n\x07payload*\x83\x01\n\x0bPayloadType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x14\n\x10TRANSFER_PAYLOAD\x10\x01\x12\x10\n\x0c\x42OND_PAYLOAD\x10\x02\x12\x15\n\x11SORTITION_PAYLOAD\x10\x03\x12\x12\n\x0eUNBOND_PAYLOAD\x10\x04\x12\x14\n\x10WITHDRAW_PAYLOAD\x10\x05*B\n\x14TransactionVerbosity\x12\x14\n\x10TRANSACTION_DATA\x10\x00\x12\x14\n\x10TRANSACTION_INFO\x10\x01\x32\xa8\x05\n\x0bTransaction\x12O\n\x0eGetTransaction\x12\x1d.pactus.GetTransactionRequest\x1a\x1e.pactus.GetTransactionResponse\x12I\n\x0c\x43\x61lculateFee\x12\x1b.pactus.CalculateFeeRequest\x1a\x1c.pactus.CalculateFeeResponse\x12\x61\n\x14\x42roadcastTransaction\x12#.pactus.BroadcastTransactionRequest\x1a$.pactus.BroadcastTransactionResponse\x12h\n\x19GetRawTransferTransaction\x12(.pactus.GetRawTransferTransactionRequest\x1a!.pactus.GetRawTransactionResponse\x12`\n\x15GetRawBondTransaction\x12$.pactus.GetRawBondTransactionRequest\x1a!.pactus.GetRawTransactionResponse\x12\x64\n\x17GetRawUnbondTransaction\x12&.pactus.GetRawUnbondTransactionRequest\x1a!.pactus.GetRawTransactionResponse\x12h\n\x19GetRawWithdrawTransaction\x12(.pactus.GetRawWithdrawTransactionRequest\x1a!.pactus.GetRawTransactionResponseBF\n\x12pactus.transactionZ0github.com/pactus-project/pactus/www/grpc/pactusb\x06proto3')
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'transaction_pb2', globals())
@@ -21,10 +21,10 @@
DESCRIPTOR._options = None
DESCRIPTOR._serialized_options = b'\n\022pactus.transactionZ0github.com/pactus-project/pactus/www/grpc/pactus'
- _PAYLOADTYPE._serialized_start=2761
- _PAYLOADTYPE._serialized_end=2892
- _TRANSACTIONVERBOSITY._serialized_start=2894
- _TRANSACTIONVERBOSITY._serialized_end=2960
+ _PAYLOADTYPE._serialized_start=2452
+ _PAYLOADTYPE._serialized_end=2583
+ _TRANSACTIONVERBOSITY._serialized_start=2585
+ _TRANSACTIONVERBOSITY._serialized_end=2651
_GETTRANSACTIONREQUEST._serialized_start=29
_GETTRANSACTIONREQUEST._serialized_end=128
_GETTRANSACTIONRESPONSE._serialized_start=131
@@ -37,30 +37,28 @@
_BROADCASTTRANSACTIONREQUEST._serialized_end=570
_BROADCASTTRANSACTIONRESPONSE._serialized_start=572
_BROADCASTTRANSACTIONRESPONSE._serialized_end=618
- _GETRAWTRANSACTIONREQUEST._serialized_start=621
- _GETRAWTRANSACTIONREQUEST._serialized_end=927
- _GETRAWTRANSFERTRANSACTIONREQUEST._serialized_start=930
- _GETRAWTRANSFERTRANSACTIONREQUEST._serialized_end=1107
- _GETRAWBONDTRANSACTIONREQUEST._serialized_start=1110
- _GETRAWBONDTRANSACTIONREQUEST._serialized_end=1312
- _GETRAWUNBONDTRANSACTIONREQUEST._serialized_start=1314
- _GETRAWUNBONDTRANSACTIONREQUEST._serialized_end=1440
- _GETRAWWITHDRAWTRANSACTIONREQUEST._serialized_start=1443
- _GETRAWWITHDRAWTRANSACTIONREQUEST._serialized_end=1654
- _GETRAWTRANSACTIONRESPONSE._serialized_start=1656
- _GETRAWTRANSACTIONRESPONSE._serialized_end=1740
- _PAYLOADTRANSFER._serialized_start=1742
- _PAYLOADTRANSFER._serialized_end=1835
- _PAYLOADBOND._serialized_start=1837
- _PAYLOADBOND._serialized_end=1955
- _PAYLOADSORTITION._serialized_start=1957
- _PAYLOADSORTITION._serialized_end=2023
- _PAYLOADUNBOND._serialized_start=2025
- _PAYLOADUNBOND._serialized_end=2070
- _PAYLOADWITHDRAW._serialized_start=2072
- _PAYLOADWITHDRAW._serialized_end=2199
- _TRANSACTIONINFO._serialized_start=2202
- _TRANSACTIONINFO._serialized_end=2758
- _TRANSACTION._serialized_start=2963
- _TRANSACTION._serialized_end=3733
+ _GETRAWTRANSFERTRANSACTIONREQUEST._serialized_start=621
+ _GETRAWTRANSFERTRANSACTIONREQUEST._serialized_end=798
+ _GETRAWBONDTRANSACTIONREQUEST._serialized_start=801
+ _GETRAWBONDTRANSACTIONREQUEST._serialized_end=1003
+ _GETRAWUNBONDTRANSACTIONREQUEST._serialized_start=1005
+ _GETRAWUNBONDTRANSACTIONREQUEST._serialized_end=1131
+ _GETRAWWITHDRAWTRANSACTIONREQUEST._serialized_start=1134
+ _GETRAWWITHDRAWTRANSACTIONREQUEST._serialized_end=1345
+ _GETRAWTRANSACTIONRESPONSE._serialized_start=1347
+ _GETRAWTRANSACTIONRESPONSE._serialized_end=1431
+ _PAYLOADTRANSFER._serialized_start=1433
+ _PAYLOADTRANSFER._serialized_end=1526
+ _PAYLOADBOND._serialized_start=1528
+ _PAYLOADBOND._serialized_end=1646
+ _PAYLOADSORTITION._serialized_start=1648
+ _PAYLOADSORTITION._serialized_end=1714
+ _PAYLOADUNBOND._serialized_start=1716
+ _PAYLOADUNBOND._serialized_end=1761
+ _PAYLOADWITHDRAW._serialized_start=1763
+ _PAYLOADWITHDRAW._serialized_end=1890
+ _TRANSACTIONINFO._serialized_start=1893
+ _TRANSACTIONINFO._serialized_end=2449
+ _TRANSACTION._serialized_start=2654
+ _TRANSACTION._serialized_end=3334
# @@protoc_insertion_point(module_scope)
diff --git a/www/grpc/gen/python/transaction_pb2.pyi b/www/grpc/gen/python/transaction_pb2.pyi
index be86e4f53..45e6fc47c 100644
--- a/www/grpc/gen/python/transaction_pb2.pyi
+++ b/www/grpc/gen/python/transaction_pb2.pyi
@@ -75,24 +75,6 @@ class BroadcastTransactionResponse(_message.Message):
id: str
def __init__(self, id: _Optional[str] = ...) -> None: ...
-class GetRawTransactionRequest(_message.Message):
- __slots__ = ("lock_time", "memo", "fee", "transfer", "bond", "unbond", "withdraw")
- LOCK_TIME_FIELD_NUMBER: _ClassVar[int]
- MEMO_FIELD_NUMBER: _ClassVar[int]
- FEE_FIELD_NUMBER: _ClassVar[int]
- TRANSFER_FIELD_NUMBER: _ClassVar[int]
- BOND_FIELD_NUMBER: _ClassVar[int]
- UNBOND_FIELD_NUMBER: _ClassVar[int]
- WITHDRAW_FIELD_NUMBER: _ClassVar[int]
- lock_time: int
- memo: str
- fee: int
- transfer: PayloadTransfer
- bond: PayloadBond
- unbond: PayloadUnbond
- withdraw: PayloadWithdraw
- def __init__(self, lock_time: _Optional[int] = ..., memo: _Optional[str] = ..., fee: _Optional[int] = ..., transfer: _Optional[_Union[PayloadTransfer, _Mapping]] = ..., bond: _Optional[_Union[PayloadBond, _Mapping]] = ..., unbond: _Optional[_Union[PayloadUnbond, _Mapping]] = ..., withdraw: _Optional[_Union[PayloadWithdraw, _Mapping]] = ...) -> None: ...
-
class GetRawTransferTransactionRequest(_message.Message):
__slots__ = ("lock_time", "sender", "receiver", "amount", "fee", "memo")
LOCK_TIME_FIELD_NUMBER: _ClassVar[int]
diff --git a/www/grpc/gen/python/transaction_pb2_grpc.py b/www/grpc/gen/python/transaction_pb2_grpc.py
index 053281be3..a1d6e68ca 100644
--- a/www/grpc/gen/python/transaction_pb2_grpc.py
+++ b/www/grpc/gen/python/transaction_pb2_grpc.py
@@ -31,11 +31,6 @@ def __init__(self, channel):
request_serializer=transaction__pb2.BroadcastTransactionRequest.SerializeToString,
response_deserializer=transaction__pb2.BroadcastTransactionResponse.FromString,
)
- self.GetRawTransaction = channel.unary_unary(
- '/pactus.Transaction/GetRawTransaction',
- request_serializer=transaction__pb2.GetRawTransactionRequest.SerializeToString,
- response_deserializer=transaction__pb2.GetRawTransactionResponse.FromString,
- )
self.GetRawTransferTransaction = channel.unary_unary(
'/pactus.Transaction/GetRawTransferTransaction',
request_serializer=transaction__pb2.GetRawTransferTransactionRequest.SerializeToString,
@@ -86,40 +81,29 @@ def BroadcastTransaction(self, request, context):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
- def GetRawTransaction(self, request, context):
- """GetRawTransaction retrieves raw details of transfer, bond, unbond or withdraw transaction.
- """
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
- context.set_details('Method not implemented!')
- raise NotImplementedError('Method not implemented!')
-
def GetRawTransferTransaction(self, request, context):
- """Deprecated: GetRawTransferTransaction retrieves raw details of a transfer transaction.
- Use GetRawTransaction instead.
+ """GetRawTransferTransaction retrieves raw details of a transfer transaction.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetRawBondTransaction(self, request, context):
- """Deprecated: GetRawBondTransaction retrieves raw details of a bond transaction.
- Use GetRawTransaction instead.
+ """GetRawBondTransaction retrieves raw details of a bond transaction.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetRawUnbondTransaction(self, request, context):
- """Deprecated: GetRawUnbondTransaction retrieves raw details of an unbond transaction.
- Use GetRawTransaction instead.
+ """GetRawUnbondTransaction retrieves raw details of an unbond transaction.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetRawWithdrawTransaction(self, request, context):
- """Deprecated: GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
- Use GetRawTransaction instead.
+ """GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
@@ -143,11 +127,6 @@ def add_TransactionServicer_to_server(servicer, server):
request_deserializer=transaction__pb2.BroadcastTransactionRequest.FromString,
response_serializer=transaction__pb2.BroadcastTransactionResponse.SerializeToString,
),
- 'GetRawTransaction': grpc.unary_unary_rpc_method_handler(
- servicer.GetRawTransaction,
- request_deserializer=transaction__pb2.GetRawTransactionRequest.FromString,
- response_serializer=transaction__pb2.GetRawTransactionResponse.SerializeToString,
- ),
'GetRawTransferTransaction': grpc.unary_unary_rpc_method_handler(
servicer.GetRawTransferTransaction,
request_deserializer=transaction__pb2.GetRawTransferTransactionRequest.FromString,
@@ -231,23 +210,6 @@ def BroadcastTransaction(request,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
- @staticmethod
- def GetRawTransaction(request,
- target,
- options=(),
- channel_credentials=None,
- call_credentials=None,
- insecure=False,
- compression=None,
- wait_for_ready=None,
- timeout=None,
- metadata=None):
- return grpc.experimental.unary_unary(request, target, '/pactus.Transaction/GetRawTransaction',
- transaction__pb2.GetRawTransactionRequest.SerializeToString,
- transaction__pb2.GetRawTransactionResponse.FromString,
- options, channel_credentials,
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
-
@staticmethod
def GetRawTransferTransaction(request,
target,
diff --git a/www/grpc/gen/rust/pactus.rs b/www/grpc/gen/rust/pactus.rs
index 4f7195fc7..3f1b8a6d1 100644
--- a/www/grpc/gen/rust/pactus.rs
+++ b/www/grpc/gen/rust/pactus.rs
@@ -65,38 +65,7 @@ pub struct BroadcastTransactionResponse {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
}
-/// Request message for retrieving raw details of transaction.
-#[allow(clippy::derive_partial_eq_without_eq)]
-#[derive(Clone, PartialEq, ::prost::Message)]
-pub struct GetRawTransactionRequest {
- /// The lock time for the transaction. If not set, defaults to the last block height.
- #[prost(uint32, tag="1")]
- pub lock_time: u32,
- /// A memo string for the transaction.
- #[prost(string, tag="2")]
- pub memo: ::prost::alloc::string::String,
- /// The fee for the transaction in NanoPAC.
- #[prost(int64, tag="3")]
- pub fee: i64,
- #[prost(oneof="get_raw_transaction_request::Payload", tags="4, 5, 6, 7")]
- pub payload: ::core::option::Option,
-}
-/// Nested message and enum types in `GetRawTransactionRequest`.
-pub mod get_raw_transaction_request {
- #[allow(clippy::derive_partial_eq_without_eq)]
-#[derive(Clone, PartialEq, ::prost::Oneof)]
- pub enum Payload {
- #[prost(message, tag="4")]
- Transfer(super::PayloadTransfer),
- #[prost(message, tag="5")]
- Bond(super::PayloadBond),
- #[prost(message, tag="6")]
- Unbond(super::PayloadUnbond),
- #[prost(message, tag="7")]
- Withdraw(super::PayloadWithdraw),
- }
-}
-/// Deprecated: Request message for retrieving raw details of a transfer transaction.
+/// Request message for retrieving raw details of a transfer transaction.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRawTransferTransactionRequest {
@@ -120,7 +89,7 @@ pub struct GetRawTransferTransactionRequest {
#[prost(string, tag="6")]
pub memo: ::prost::alloc::string::String,
}
-/// Deprecated: Request message for retrieving raw details of a bond transaction.
+/// Request message for retrieving raw details of a bond transaction.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRawBondTransactionRequest {
@@ -147,7 +116,7 @@ pub struct GetRawBondTransactionRequest {
#[prost(string, tag="7")]
pub memo: ::prost::alloc::string::String,
}
-/// Deprecated: Request message for retrieving raw details of an unbond transaction.
+/// Request message for retrieving raw details of an unbond transaction.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRawUnbondTransactionRequest {
@@ -162,7 +131,7 @@ pub struct GetRawUnbondTransactionRequest {
#[prost(string, tag="4")]
pub memo: ::prost::alloc::string::String,
}
-/// Deprecated: Request message for retrieving raw details of a withdraw transaction.
+/// Request message for retrieving raw details of a withdraw transaction.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRawWithdrawTransactionRequest {
diff --git a/www/grpc/gen/rust/pactus.serde.rs b/www/grpc/gen/rust/pactus.serde.rs
index 3a97f191b..6eff8a44e 100644
--- a/www/grpc/gen/rust/pactus.serde.rs
+++ b/www/grpc/gen/rust/pactus.serde.rs
@@ -4900,197 +4900,6 @@ impl<'de> serde::Deserialize<'de> for GetRawBondTransactionRequest {
deserializer.deserialize_struct("pactus.GetRawBondTransactionRequest", FIELDS, GeneratedVisitor)
}
}
-impl serde::Serialize for GetRawTransactionRequest {
- #[allow(deprecated)]
- fn serialize(&self, serializer: S) -> std::result::Result
- where
- S: serde::Serializer,
- {
- use serde::ser::SerializeStruct;
- let mut len = 0;
- if self.lock_time != 0 {
- len += 1;
- }
- if !self.memo.is_empty() {
- len += 1;
- }
- if self.fee != 0 {
- len += 1;
- }
- if self.payload.is_some() {
- len += 1;
- }
- let mut struct_ser = serializer.serialize_struct("pactus.GetRawTransactionRequest", len)?;
- if self.lock_time != 0 {
- struct_ser.serialize_field("lockTime", &self.lock_time)?;
- }
- if !self.memo.is_empty() {
- struct_ser.serialize_field("memo", &self.memo)?;
- }
- if self.fee != 0 {
- struct_ser.serialize_field("fee", ToString::to_string(&self.fee).as_str())?;
- }
- if let Some(v) = self.payload.as_ref() {
- match v {
- get_raw_transaction_request::Payload::Transfer(v) => {
- struct_ser.serialize_field("transfer", v)?;
- }
- get_raw_transaction_request::Payload::Bond(v) => {
- struct_ser.serialize_field("bond", v)?;
- }
- get_raw_transaction_request::Payload::Unbond(v) => {
- struct_ser.serialize_field("unbond", v)?;
- }
- get_raw_transaction_request::Payload::Withdraw(v) => {
- struct_ser.serialize_field("withdraw", v)?;
- }
- }
- }
- struct_ser.end()
- }
-}
-impl<'de> serde::Deserialize<'de> for GetRawTransactionRequest {
- #[allow(deprecated)]
- fn deserialize(deserializer: D) -> std::result::Result
- where
- D: serde::Deserializer<'de>,
- {
- const FIELDS: &[&str] = &[
- "lock_time",
- "lockTime",
- "memo",
- "fee",
- "transfer",
- "bond",
- "unbond",
- "withdraw",
- ];
-
- #[allow(clippy::enum_variant_names)]
- enum GeneratedField {
- LockTime,
- Memo,
- Fee,
- Transfer,
- Bond,
- Unbond,
- Withdraw,
- }
- impl<'de> serde::Deserialize<'de> for GeneratedField {
- fn deserialize(deserializer: D) -> std::result::Result
- where
- D: serde::Deserializer<'de>,
- {
- struct GeneratedVisitor;
-
- impl<'de> serde::de::Visitor<'de> for GeneratedVisitor {
- type Value = GeneratedField;
-
- fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
- write!(formatter, "expected one of: {:?}", &FIELDS)
- }
-
- #[allow(unused_variables)]
- fn visit_str(self, value: &str) -> std::result::Result
- where
- E: serde::de::Error,
- {
- match value {
- "lockTime" | "lock_time" => Ok(GeneratedField::LockTime),
- "memo" => Ok(GeneratedField::Memo),
- "fee" => Ok(GeneratedField::Fee),
- "transfer" => Ok(GeneratedField::Transfer),
- "bond" => Ok(GeneratedField::Bond),
- "unbond" => Ok(GeneratedField::Unbond),
- "withdraw" => Ok(GeneratedField::Withdraw),
- _ => Err(serde::de::Error::unknown_field(value, FIELDS)),
- }
- }
- }
- deserializer.deserialize_identifier(GeneratedVisitor)
- }
- }
- struct GeneratedVisitor;
- impl<'de> serde::de::Visitor<'de> for GeneratedVisitor {
- type Value = GetRawTransactionRequest;
-
- fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
- formatter.write_str("struct pactus.GetRawTransactionRequest")
- }
-
- fn visit_map(self, mut map: V) -> std::result::Result
- where
- V: serde::de::MapAccess<'de>,
- {
- let mut lock_time__ = None;
- let mut memo__ = None;
- let mut fee__ = None;
- let mut payload__ = None;
- while let Some(k) = map.next_key()? {
- match k {
- GeneratedField::LockTime => {
- if lock_time__.is_some() {
- return Err(serde::de::Error::duplicate_field("lockTime"));
- }
- lock_time__ =
- Some(map.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0)
- ;
- }
- GeneratedField::Memo => {
- if memo__.is_some() {
- return Err(serde::de::Error::duplicate_field("memo"));
- }
- memo__ = Some(map.next_value()?);
- }
- GeneratedField::Fee => {
- if fee__.is_some() {
- return Err(serde::de::Error::duplicate_field("fee"));
- }
- fee__ =
- Some(map.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0)
- ;
- }
- GeneratedField::Transfer => {
- if payload__.is_some() {
- return Err(serde::de::Error::duplicate_field("transfer"));
- }
- payload__ = map.next_value::<::std::option::Option<_>>()?.map(get_raw_transaction_request::Payload::Transfer)
-;
- }
- GeneratedField::Bond => {
- if payload__.is_some() {
- return Err(serde::de::Error::duplicate_field("bond"));
- }
- payload__ = map.next_value::<::std::option::Option<_>>()?.map(get_raw_transaction_request::Payload::Bond)
-;
- }
- GeneratedField::Unbond => {
- if payload__.is_some() {
- return Err(serde::de::Error::duplicate_field("unbond"));
- }
- payload__ = map.next_value::<::std::option::Option<_>>()?.map(get_raw_transaction_request::Payload::Unbond)
-;
- }
- GeneratedField::Withdraw => {
- if payload__.is_some() {
- return Err(serde::de::Error::duplicate_field("withdraw"));
- }
- payload__ = map.next_value::<::std::option::Option<_>>()?.map(get_raw_transaction_request::Payload::Withdraw)
-;
- }
- }
- }
- Ok(GetRawTransactionRequest {
- lock_time: lock_time__.unwrap_or_default(),
- memo: memo__.unwrap_or_default(),
- fee: fee__.unwrap_or_default(),
- payload: payload__,
- })
- }
- }
- deserializer.deserialize_struct("pactus.GetRawTransactionRequest", FIELDS, GeneratedVisitor)
- }
-}
impl serde::Serialize for GetRawTransactionResponse {
#[allow(deprecated)]
fn serialize(&self, serializer: S) -> std::result::Result
diff --git a/www/grpc/gen/rust/pactus.tonic.rs b/www/grpc/gen/rust/pactus.tonic.rs
index 2194ce2b8..8b5d1b9e3 100644
--- a/www/grpc/gen/rust/pactus.tonic.rs
+++ b/www/grpc/gen/rust/pactus.tonic.rs
@@ -159,31 +159,6 @@ pub mod transaction_client {
.insert(GrpcMethod::new("pactus.Transaction", "BroadcastTransaction"));
self.inner.unary(req, path, codec).await
}
- pub async fn get_raw_transaction(
- &mut self,
- request: impl tonic::IntoRequest,
- ) -> std::result::Result<
- tonic::Response,
- tonic::Status,
- > {
- self.inner
- .ready()
- .await
- .map_err(|e| {
- tonic::Status::new(
- tonic::Code::Unknown,
- format!("Service was not ready: {}", e.into()),
- )
- })?;
- let codec = tonic::codec::ProstCodec::default();
- let path = http::uri::PathAndQuery::from_static(
- "/pactus.Transaction/GetRawTransaction",
- );
- let mut req = request.into_request();
- req.extensions_mut()
- .insert(GrpcMethod::new("pactus.Transaction", "GetRawTransaction"));
- self.inner.unary(req, path, codec).await
- }
pub async fn get_raw_transfer_transaction(
&mut self,
request: impl tonic::IntoRequest,
@@ -320,13 +295,6 @@ pub mod transaction_server {
tonic::Response,
tonic::Status,
>;
- async fn get_raw_transaction(
- &self,
- request: tonic::Request,
- ) -> std::result::Result<
- tonic::Response,
- tonic::Status,
- >;
async fn get_raw_transfer_transaction(
&self,
request: tonic::Request,
@@ -573,52 +541,6 @@ pub mod transaction_server {
};
Box::pin(fut)
}
- "/pactus.Transaction/GetRawTransaction" => {
- #[allow(non_camel_case_types)]
- struct GetRawTransactionSvc(pub Arc);
- impl<
- T: Transaction,
- > tonic::server::UnaryService
- for GetRawTransactionSvc {
- type Response = super::GetRawTransactionResponse;
- type Future = BoxFuture<
- tonic::Response,
- tonic::Status,
- >;
- fn call(
- &mut self,
- request: tonic::Request,
- ) -> Self::Future {
- let inner = Arc::clone(&self.0);
- let fut = async move {
- (*inner).get_raw_transaction(request).await
- };
- Box::pin(fut)
- }
- }
- let accept_compression_encodings = self.accept_compression_encodings;
- let send_compression_encodings = self.send_compression_encodings;
- let max_decoding_message_size = self.max_decoding_message_size;
- let max_encoding_message_size = self.max_encoding_message_size;
- let inner = self.inner.clone();
- let fut = async move {
- let inner = inner.0;
- let method = GetRawTransactionSvc(inner);
- let codec = tonic::codec::ProstCodec::default();
- let mut grpc = tonic::server::Grpc::new(codec)
- .apply_compression_config(
- accept_compression_encodings,
- send_compression_encodings,
- )
- .apply_max_message_size_config(
- max_decoding_message_size,
- max_encoding_message_size,
- );
- let res = grpc.unary(method, req).await;
- Ok(res)
- };
- Box::pin(fut)
- }
"/pactus.Transaction/GetRawTransferTransaction" => {
#[allow(non_camel_case_types)]
struct GetRawTransferTransactionSvc(pub Arc);
diff --git a/www/grpc/proto/transaction.proto b/www/grpc/proto/transaction.proto
index db14290b9..02aa202f2 100644
--- a/www/grpc/proto/transaction.proto
+++ b/www/grpc/proto/transaction.proto
@@ -19,26 +19,19 @@ service Transaction {
rpc BroadcastTransaction(BroadcastTransactionRequest)
returns (BroadcastTransactionResponse);
- // GetRawTransaction retrieves raw details of transfer, bond, unbond or withdraw transaction.
- rpc GetRawTransaction(GetRawTransactionRequest) returns (GetRawTransactionResponse);
-
- // Deprecated: GetRawTransferTransaction retrieves raw details of a transfer transaction.
- // Use GetRawTransaction instead.
+ // GetRawTransferTransaction retrieves raw details of a transfer transaction.
rpc GetRawTransferTransaction(GetRawTransferTransactionRequest)
returns (GetRawTransactionResponse);
- // Deprecated: GetRawBondTransaction retrieves raw details of a bond transaction.
- // Use GetRawTransaction instead.
+ // GetRawBondTransaction retrieves raw details of a bond transaction.
rpc GetRawBondTransaction(GetRawBondTransactionRequest)
returns (GetRawTransactionResponse);
- // Deprecated: GetRawUnbondTransaction retrieves raw details of an unbond transaction.
- // Use GetRawTransaction instead.
+ // GetRawUnbondTransaction retrieves raw details of an unbond transaction.
rpc GetRawUnbondTransaction(GetRawUnbondTransactionRequest)
returns (GetRawTransactionResponse);
- // Deprecated: GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
- // Use GetRawTransaction instead.
+ // GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.
rpc GetRawWithdrawTransaction(GetRawWithdrawTransactionRequest)
returns (GetRawTransactionResponse);
}
@@ -91,24 +84,7 @@ message BroadcastTransactionResponse {
string id = 1;
}
-// Request message for retrieving raw details of transaction.
-message GetRawTransactionRequest {
- // The lock time for the transaction. If not set, defaults to the last block height.
- uint32 lock_time = 1;
- // A memo string for the transaction.
- string memo = 2;
- // The fee for the transaction in NanoPAC.
- int64 fee = 3;
-
- oneof payload {
- PayloadTransfer transfer = 4;
- PayloadBond bond = 5;
- PayloadUnbond unbond = 6;
- PayloadWithdraw withdraw = 7;
- }
-}
-
-// Deprecated: Request message for retrieving raw details of a transfer transaction.
+// Request message for retrieving raw details of a transfer transaction.
message GetRawTransferTransactionRequest {
// The lock time for the transaction. If not set, defaults to the last block
// height.
@@ -125,7 +101,7 @@ message GetRawTransferTransactionRequest {
string memo = 6;
}
-// Deprecated: Request message for retrieving raw details of a bond transaction.
+// Request message for retrieving raw details of a bond transaction.
message GetRawBondTransactionRequest {
// The lock time for the transaction. If not set, defaults to the last block
// height.
@@ -144,7 +120,7 @@ message GetRawBondTransactionRequest {
string memo = 7;
}
-// Deprecated: Request message for retrieving raw details of an unbond transaction.
+// Request message for retrieving raw details of an unbond transaction.
message GetRawUnbondTransactionRequest {
// The lock time for the transaction. If not set, defaults to the last block
// height.
@@ -155,7 +131,7 @@ message GetRawUnbondTransactionRequest {
string memo = 4;
}
-// Deprecated: Request message for retrieving raw details of a withdraw transaction.
+// Request message for retrieving raw details of a withdraw transaction.
message GetRawWithdrawTransactionRequest {
// The lock time for the transaction. If not set, defaults to the last block
// height.
diff --git a/www/grpc/swagger-ui/pactus.swagger.json b/www/grpc/swagger-ui/pactus.swagger.json
index 27776f3a4..799ca5f2c 100644
--- a/www/grpc/swagger-ui/pactus.swagger.json
+++ b/www/grpc/swagger-ui/pactus.swagger.json
@@ -596,10 +596,10 @@
]
}
},
- "/pactus/transaction/get_raw_transaction": {
+ "/pactus/transaction/get_raw_bond_transaction": {
"get": {
- "summary": "GetRawTransaction retrieves raw details of transfer, bond, unbond or withdraw transaction.",
- "operationId": "Transaction_GetRawTransaction",
+ "summary": "GetRawBondTransaction retrieves raw details of a bond transaction.",
+ "operationId": "Transaction_GetRawBondTransaction",
"responses": {
"200": {
"description": "A successful response.",
@@ -617,106 +617,242 @@
"parameters": [
{
"name": "lockTime",
- "description": "The lock time for the transaction. If not set, defaults to the last block height.",
+ "description": "The lock time for the transaction. If not set, defaults to the last block\nheight.",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
},
{
- "name": "memo",
- "description": "A memo string for the transaction.",
+ "name": "sender",
+ "description": "The sender's account address.",
"in": "query",
"required": false,
"type": "string"
},
{
- "name": "fee",
- "description": "The fee for the transaction in NanoPAC.",
+ "name": "receiver",
+ "description": "The receiver's validator address.",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "stake",
+ "description": "The stake amount in NanoPAC. Must be greater than 0.",
"in": "query",
"required": false,
"type": "string",
"format": "int64"
},
{
- "name": "transfer.sender",
- "description": "The sender's address.",
+ "name": "publicKey",
+ "description": "The public key of the validator.",
"in": "query",
"required": false,
"type": "string"
},
{
- "name": "transfer.receiver",
- "description": "The receiver's address.",
+ "name": "fee",
+ "description": "The transaction fee in NanoPAC. If not set, it is set to the estimated fee.",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "format": "int64"
+ },
+ {
+ "name": "memo",
+ "description": "A memo string for the transaction.",
"in": "query",
"required": false,
"type": "string"
+ }
+ ],
+ "tags": [
+ "Transaction"
+ ]
+ }
+ },
+ "/pactus/transaction/get_raw_transfer_transaction": {
+ "get": {
+ "summary": "GetRawTransferTransaction retrieves raw details of a transfer transaction.",
+ "operationId": "Transaction_GetRawTransferTransaction",
+ "responses": {
+ "200": {
+ "description": "A successful response.",
+ "schema": {
+ "$ref": "#/definitions/pactusGetRawTransactionResponse"
+ }
},
+ "default": {
+ "description": "An unexpected error response.",
+ "schema": {
+ "$ref": "#/definitions/rpcStatus"
+ }
+ }
+ },
+ "parameters": [
{
- "name": "transfer.amount",
- "description": "The amount to be transferred in NanoPAC.",
+ "name": "lockTime",
+ "description": "The lock time for the transaction. If not set, defaults to the last block\nheight.",
"in": "query",
"required": false,
- "type": "string",
+ "type": "integer",
"format": "int64"
},
{
- "name": "bond.sender",
- "description": "The sender's address.",
+ "name": "sender",
+ "description": "The sender's account address.",
"in": "query",
"required": false,
"type": "string"
},
{
- "name": "bond.receiver",
- "description": "The receiver's address.",
+ "name": "receiver",
+ "description": "The receiver's account address.",
"in": "query",
"required": false,
"type": "string"
},
{
- "name": "bond.stake",
- "description": "The stake amount in NanoPAC.",
+ "name": "amount",
+ "description": "The amount to be transferred, specified in NanoPAC. Must be greater than 0.",
"in": "query",
"required": false,
"type": "string",
"format": "int64"
},
{
- "name": "bond.publicKey",
- "description": "The public key of the validator.",
+ "name": "fee",
+ "description": "The transaction fee in NanoPAC. If not set, it is set to the estimated fee.",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "format": "int64"
+ },
+ {
+ "name": "memo",
+ "description": "A memo string for the transaction.",
"in": "query",
"required": false,
"type": "string"
+ }
+ ],
+ "tags": [
+ "Transaction"
+ ]
+ }
+ },
+ "/pactus/transaction/get_raw_unbond_transaction": {
+ "get": {
+ "summary": "GetRawUnbondTransaction retrieves raw details of an unbond transaction.",
+ "operationId": "Transaction_GetRawUnbondTransaction",
+ "responses": {
+ "200": {
+ "description": "A successful response.",
+ "schema": {
+ "$ref": "#/definitions/pactusGetRawTransactionResponse"
+ }
},
+ "default": {
+ "description": "An unexpected error response.",
+ "schema": {
+ "$ref": "#/definitions/rpcStatus"
+ }
+ }
+ },
+ "parameters": [
{
- "name": "unbond.validator",
+ "name": "lockTime",
+ "description": "The lock time for the transaction. If not set, defaults to the last block\nheight.",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int64"
+ },
+ {
+ "name": "validatorAddress",
"description": "The address of the validator to unbond from.",
"in": "query",
"required": false,
"type": "string"
},
{
- "name": "withdraw.validatorAddress",
+ "name": "memo",
+ "description": "A memo string for the transaction.",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "Transaction"
+ ]
+ }
+ },
+ "/pactus/transaction/get_raw_withdraw_transaction": {
+ "get": {
+ "summary": "GetRawWithdrawTransaction retrieves raw details of a withdraw transaction.",
+ "operationId": "Transaction_GetRawWithdrawTransaction",
+ "responses": {
+ "200": {
+ "description": "A successful response.",
+ "schema": {
+ "$ref": "#/definitions/pactusGetRawTransactionResponse"
+ }
+ },
+ "default": {
+ "description": "An unexpected error response.",
+ "schema": {
+ "$ref": "#/definitions/rpcStatus"
+ }
+ }
+ },
+ "parameters": [
+ {
+ "name": "lockTime",
+ "description": "The lock time for the transaction. If not set, defaults to the last block\nheight.",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int64"
+ },
+ {
+ "name": "validatorAddress",
"description": "The address of the validator to withdraw from.",
"in": "query",
"required": false,
"type": "string"
},
{
- "name": "withdraw.accountAddress",
+ "name": "accountAddress",
"description": "The address of the account to withdraw to.",
"in": "query",
"required": false,
"type": "string"
},
{
- "name": "withdraw.amount",
- "description": "The withdrawal amount in NanoPAC.",
+ "name": "amount",
+ "description": "The withdrawal amount in NanoPAC. Must be greater than 0.",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "format": "int64"
+ },
+ {
+ "name": "fee",
+ "description": "The transaction fee in NanoPAC. If not set, it is set to the estimated fee.",
"in": "query",
"required": false,
"type": "string",
"format": "int64"
+ },
+ {
+ "name": "memo",
+ "description": "A memo string for the transaction.",
+ "in": "query",
+ "required": false,
+ "type": "string"
}
],
"tags": [
diff --git a/www/grpc/transaction.go b/www/grpc/transaction.go
index ee5d0575b..1d5b1e423 100644
--- a/www/grpc/transaction.go
+++ b/www/grpc/transaction.go
@@ -104,47 +104,6 @@ func (s *transactionServer) CalculateFee(_ context.Context,
}, nil
}
-func (s *transactionServer) GetRawTransaction(_ context.Context,
- req *pactus.GetRawTransactionRequest,
-) (*pactus.GetRawTransactionResponse, error) {
- lockTime := s.getLockTime(req.LockTime)
-
- var trx *tx.Tx
- var err error
- switch pld := req.Payload.(type) {
- case *pactus.GetRawTransactionRequest_Transfer:
- trx, err = s.handleRawTransfer(lockTime, req.Memo, req.Fee, pld.Transfer)
-
- case *pactus.GetRawTransactionRequest_Bond:
- trx, err = s.handleRawBond(lockTime, req.Memo, req.Fee, pld.Bond)
-
- case *pactus.GetRawTransactionRequest_Unbond:
- trx, err = s.handleRawUnbond(lockTime, req.Memo, pld.Unbond)
-
- case *pactus.GetRawTransactionRequest_Withdraw:
- trx, err = s.handleRawWithdraw(lockTime, req.Memo, req.Fee, pld.Withdraw)
-
- default:
- return nil, status.Errorf(codes.InvalidArgument, "invalid transaction type")
- }
-
- if err != nil {
- return nil, status.Errorf(codes.Internal, "%s", err.Error())
- }
-
- data, err := trx.Bytes()
- if err != nil {
- return nil, status.Errorf(codes.Internal, "%s", err.Error())
- }
-
- return &pactus.GetRawTransactionResponse{
- RawTransaction: hex.EncodeToString(data),
- Id: trx.ID().String(),
- }, err
-}
-
-// Deprecated: GetRawTransferTransaction is deprecated.
-// Use GetRawTransaction API instead.
func (s *transactionServer) GetRawTransferTransaction(_ context.Context,
req *pactus.GetRawTransferTransactionRequest,
) (*pactus.GetRawTransactionResponse, error) {
@@ -173,8 +132,6 @@ func (s *transactionServer) GetRawTransferTransaction(_ context.Context,
}, nil
}
-// Deprecated: GetRawBondTransaction is deprecated.
-// Use GetRawTransaction API instead.
func (s *transactionServer) GetRawBondTransaction(_ context.Context,
req *pactus.GetRawBondTransactionRequest,
) (*pactus.GetRawTransactionResponse, error) {
@@ -213,8 +170,6 @@ func (s *transactionServer) GetRawBondTransaction(_ context.Context,
}, nil
}
-// Deprecated: GetRawUnbondTransaction is deprecated.
-// Use GetRawTransaction API instead.
func (s *transactionServer) GetRawUnbondTransaction(_ context.Context,
req *pactus.GetRawUnbondTransactionRequest,
) (*pactus.GetRawTransactionResponse, error) {
@@ -236,8 +191,6 @@ func (s *transactionServer) GetRawUnbondTransaction(_ context.Context,
}, nil
}
-// Deprecated: GetRawWithdrawTransaction is deprecated.
-// Use GetRawTransaction API instead.
func (s *transactionServer) GetRawWithdrawTransaction(_ context.Context,
req *pactus.GetRawWithdrawTransactionRequest,
) (*pactus.GetRawTransactionResponse, error) {
@@ -266,90 +219,6 @@ func (s *transactionServer) GetRawWithdrawTransaction(_ context.Context,
}, nil
}
-func (s *transactionServer) handleRawTransfer(lockTime uint32, memo string, feeInt int64,
- pld *pactus.PayloadTransfer,
-) (*tx.Tx, error) {
- sender, err := crypto.AddressFromString(pld.Sender)
- if err != nil {
- return nil, err
- }
-
- receiver, err := crypto.AddressFromString(pld.Receiver)
- if err != nil {
- return nil, err
- }
-
- amt := amount.Amount(pld.Amount)
- fee := s.getFee(feeInt, amt)
-
- transferTx := tx.NewTransferTx(lockTime, sender, receiver, amt, fee, tx.WithMemo(memo))
-
- return transferTx, nil
-}
-
-func (s *transactionServer) handleRawBond(lockTime uint32, memo string, feeInt int64,
- pld *pactus.PayloadBond,
-) (*tx.Tx, error) {
- sender, err := crypto.AddressFromString(pld.Sender)
- if err != nil {
- return nil, err
- }
-
- receiver, err := crypto.AddressFromString(pld.Receiver)
- if err != nil {
- return nil, err
- }
-
- var publicKey *bls.PublicKey
- if pld.PublicKey != "" {
- publicKey, err = bls.PublicKeyFromString(pld.PublicKey)
- if err != nil {
- return nil, err
- }
- } else {
- publicKey = nil
- }
-
- amt := amount.Amount(pld.Stake)
- fee := s.getFee(feeInt, amt)
-
- bondTx := tx.NewBondTx(lockTime, sender, receiver, publicKey, amt, fee, tx.WithMemo(memo))
-
- return bondTx, nil
-}
-
-func (*transactionServer) handleRawUnbond(lockTime uint32, memo string, pld *pactus.PayloadUnbond) (*tx.Tx, error) {
- validatorAddr, err := crypto.AddressFromString(pld.Validator)
- if err != nil {
- return nil, err
- }
-
- unbondTx := tx.NewUnbondTx(lockTime, validatorAddr, tx.WithMemo(memo))
-
- return unbondTx, nil
-}
-
-func (s *transactionServer) handleRawWithdraw(lockTime uint32, memo string, feeInt int64,
- pld *pactus.PayloadWithdraw,
-) (*tx.Tx, error) {
- validatorAddr, err := crypto.AddressFromString(pld.ValidatorAddress)
- if err != nil {
- return nil, err
- }
-
- accountAddr, err := crypto.AddressFromString(pld.AccountAddress)
- if err != nil {
- return nil, err
- }
-
- amt := amount.Amount(pld.Amount)
- fee := s.getFee(feeInt, amt)
-
- withdrawTx := tx.NewWithdrawTx(lockTime, validatorAddr, accountAddr, amt, fee, tx.WithMemo(memo))
-
- return withdrawTx, nil
-}
-
func (s *transactionServer) getFee(f int64, amt amount.Amount) amount.Amount {
fee := amount.Amount(f)
if fee == 0 {
diff --git a/www/grpc/transaction_test.go b/www/grpc/transaction_test.go
index f756a5435..7cf827f35 100644
--- a/www/grpc/transaction_test.go
+++ b/www/grpc/transaction_test.go
@@ -130,16 +130,12 @@ func TestGetRawTransaction(t *testing.T) {
t.Run("Transfer", func(t *testing.T) {
amt := td.RandAmount()
- res, err := client.GetRawTransaction(context.Background(),
- &pactus.GetRawTransactionRequest{
- Payload: &pactus.GetRawTransactionRequest_Transfer{
- Transfer: &pactus.PayloadTransfer{
- Sender: td.RandAccAddress().String(),
- Receiver: td.RandAccAddress().String(),
- Amount: amt.ToNanoPAC(),
- },
- },
- Memo: td.RandString(32),
+ res, err := client.GetRawTransferTransaction(context.Background(),
+ &pactus.GetRawTransferTransactionRequest{
+ Sender: td.RandAccAddress().String(),
+ Receiver: td.RandAccAddress().String(),
+ Amount: amt.ToNanoPAC(),
+ Memo: td.RandString(32),
})
assert.NoError(t, err)
assert.NotEmpty(t, res.RawTransaction)
@@ -158,17 +154,13 @@ func TestGetRawTransaction(t *testing.T) {
amt := td.RandAmount()
pub, _ := td.RandBLSKeyPair()
- res, err := client.GetRawTransaction(context.Background(),
- &pactus.GetRawTransactionRequest{
- Payload: &pactus.GetRawTransactionRequest_Bond{
- Bond: &pactus.PayloadBond{
- Sender: td.RandAccAddress().String(),
- Receiver: td.RandValAddress().String(),
- Stake: amt.ToNanoPAC(),
- PublicKey: pub.String(),
- },
- },
- Memo: td.RandString(32),
+ res, err := client.GetRawBondTransaction(context.Background(),
+ &pactus.GetRawBondTransactionRequest{
+ Sender: td.RandAccAddress().String(),
+ Receiver: td.RandValAddress().String(),
+ Stake: amt.ToNanoPAC(),
+ PublicKey: pub.String(),
+ Memo: td.RandString(32),
})
assert.NoError(t, err)
assert.NotEmpty(t, res.RawTransaction)
@@ -184,14 +176,10 @@ func TestGetRawTransaction(t *testing.T) {
})
t.Run("Unbond", func(t *testing.T) {
- res, err := client.GetRawTransaction(context.Background(),
- &pactus.GetRawTransactionRequest{
- Payload: &pactus.GetRawTransactionRequest_Unbond{
- Unbond: &pactus.PayloadUnbond{
- Validator: td.RandValAddress().String(),
- },
- },
- Memo: td.RandString(32),
+ res, err := client.GetRawUnbondTransaction(context.Background(),
+ &pactus.GetRawUnbondTransactionRequest{
+ ValidatorAddress: td.RandValAddress().String(),
+ Memo: td.RandString(32),
})
assert.NoError(t, err)
assert.NotEmpty(t, res.RawTransaction)
@@ -207,16 +195,12 @@ func TestGetRawTransaction(t *testing.T) {
t.Run("Withdraw", func(t *testing.T) {
amt := td.RandAmount()
- res, err := client.GetRawTransaction(context.Background(),
- &pactus.GetRawTransactionRequest{
- Payload: &pactus.GetRawTransactionRequest_Withdraw{
- Withdraw: &pactus.PayloadWithdraw{
- ValidatorAddress: td.RandValAddress().String(),
- AccountAddress: td.RandAccAddress().String(),
- Amount: amt.ToNanoPAC(),
- },
- },
- Memo: td.RandString(32),
+ res, err := client.GetRawWithdrawTransaction(context.Background(),
+ &pactus.GetRawWithdrawTransactionRequest{
+ ValidatorAddress: td.RandValAddress().String(),
+ AccountAddress: td.RandAccAddress().String(),
+ Amount: amt.ToNanoPAC(),
+ Memo: td.RandString(32),
})
assert.NoError(t, err)