diff --git a/wallet/client_test.go b/wallet/client_test.go index f29c7e37a..7fc516388 100644 --- a/wallet/client_test.go +++ b/wallet/client_test.go @@ -104,3 +104,35 @@ func (s *transactionServer) SendRawTransaction(_ context.Context, Id: trx.ID().Bytes(), }, nil } + +func (s *transactionServer) GetRawBondTransaction(_ context.Context, + _ *pactus.GetRawBondTransactionRequest, +) (*pactus.GetRawTransactionResponse, error) { + return &pactus.GetRawTransactionResponse{ + RawTransaction: make([]byte, 0), + }, nil +} + +func (s *transactionServer) GetRawTransferTransaction(_ context.Context, + _ *pactus.GetRawTransferTransactionRequest, +) (*pactus.GetRawTransactionResponse, error) { + return &pactus.GetRawTransactionResponse{ + RawTransaction: make([]byte, 0), + }, nil +} + +func (s *transactionServer) GetRawUnBondTransaction(_ context.Context, + _ *pactus.GetRawUnBondTransactionRequest, +) (*pactus.GetRawTransactionResponse, error) { + return &pactus.GetRawTransactionResponse{ + RawTransaction: make([]byte, 0), + }, nil +} + +func (s *transactionServer) GetRawWithdrawTransaction(_ context.Context, + _ *pactus.GetRawWithdrawTransactionRequest, +) (*pactus.GetRawTransactionResponse, error) { + return &pactus.GetRawTransactionResponse{ + RawTransaction: make([]byte, 0), + }, nil +} diff --git a/www/grpc/gen/dart/transaction.pb.dart b/www/grpc/gen/dart/transaction.pb.dart index 176383407..8b0379aff 100644 --- a/www/grpc/gen/dart/transaction.pb.dart +++ b/www/grpc/gen/dart/transaction.pb.dart @@ -355,6 +355,493 @@ class SendRawTransactionResponse extends $pb.GeneratedMessage { void clearId() => clearField(2); } +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) + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sender') + ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'receiver') + ..aInt64(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'amount') + ..aInt64(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fee') + ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'memo') + ..hasRequiredFields = false + ; + + GetRawTransferTransactionRequest._() : super(); + factory GetRawTransferTransactionRequest({ + $core.int? lockTime, + $core.String? sender, + $core.String? receiver, + $fixnum.Int64? amount, + $fixnum.Int64? fee, + $core.String? memo, + }) { + final _result = create(); + if (lockTime != null) { + _result.lockTime = lockTime; + } + if (sender != null) { + _result.sender = sender; + } + if (receiver != null) { + _result.receiver = receiver; + } + if (amount != null) { + _result.amount = amount; + } + if (fee != null) { + _result.fee = fee; + } + if (memo != null) { + _result.memo = memo; + } + return _result; + } + factory GetRawTransferTransactionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory GetRawTransferTransactionRequest.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') + GetRawTransferTransactionRequest clone() => GetRawTransferTransactionRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetRawTransferTransactionRequest copyWith(void Function(GetRawTransferTransactionRequest) updates) => super.copyWith((message) => updates(message as GetRawTransferTransactionRequest)) as GetRawTransferTransactionRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static GetRawTransferTransactionRequest create() => GetRawTransferTransactionRequest._(); + GetRawTransferTransactionRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetRawTransferTransactionRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetRawTransferTransactionRequest? _defaultInstance; + + @$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 sender => $_getSZ(1); + @$pb.TagNumber(2) + set sender($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasSender() => $_has(1); + @$pb.TagNumber(2) + void clearSender() => clearField(2); + + @$pb.TagNumber(3) + $core.String get receiver => $_getSZ(2); + @$pb.TagNumber(3) + set receiver($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasReceiver() => $_has(2); + @$pb.TagNumber(3) + void clearReceiver() => clearField(3); + + @$pb.TagNumber(4) + $fixnum.Int64 get amount => $_getI64(3); + @$pb.TagNumber(4) + set amount($fixnum.Int64 v) { $_setInt64(3, v); } + @$pb.TagNumber(4) + $core.bool hasAmount() => $_has(3); + @$pb.TagNumber(4) + void clearAmount() => clearField(4); + + @$pb.TagNumber(5) + $fixnum.Int64 get fee => $_getI64(4); + @$pb.TagNumber(5) + set fee($fixnum.Int64 v) { $_setInt64(4, v); } + @$pb.TagNumber(5) + $core.bool hasFee() => $_has(4); + @$pb.TagNumber(5) + void clearFee() => clearField(5); + + @$pb.TagNumber(6) + $core.String get memo => $_getSZ(5); + @$pb.TagNumber(6) + set memo($core.String v) { $_setString(5, v); } + @$pb.TagNumber(6) + $core.bool hasMemo() => $_has(5); + @$pb.TagNumber(6) + void clearMemo() => clearField(6); +} + +class GetRawBondTransactionRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'GetRawBondTransactionRequest', 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) + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sender') + ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'receiver') + ..aInt64(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'stake') + ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'publicKey') + ..aInt64(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fee') + ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'memo') + ..hasRequiredFields = false + ; + + GetRawBondTransactionRequest._() : super(); + factory GetRawBondTransactionRequest({ + $core.int? lockTime, + $core.String? sender, + $core.String? receiver, + $fixnum.Int64? stake, + $core.String? publicKey, + $fixnum.Int64? fee, + $core.String? memo, + }) { + final _result = create(); + if (lockTime != null) { + _result.lockTime = lockTime; + } + if (sender != null) { + _result.sender = sender; + } + if (receiver != null) { + _result.receiver = receiver; + } + if (stake != null) { + _result.stake = stake; + } + if (publicKey != null) { + _result.publicKey = publicKey; + } + if (fee != null) { + _result.fee = fee; + } + if (memo != null) { + _result.memo = memo; + } + return _result; + } + factory GetRawBondTransactionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory GetRawBondTransactionRequest.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') + GetRawBondTransactionRequest clone() => GetRawBondTransactionRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetRawBondTransactionRequest copyWith(void Function(GetRawBondTransactionRequest) updates) => super.copyWith((message) => updates(message as GetRawBondTransactionRequest)) as GetRawBondTransactionRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static GetRawBondTransactionRequest create() => GetRawBondTransactionRequest._(); + GetRawBondTransactionRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetRawBondTransactionRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetRawBondTransactionRequest? _defaultInstance; + + @$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 sender => $_getSZ(1); + @$pb.TagNumber(2) + set sender($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasSender() => $_has(1); + @$pb.TagNumber(2) + void clearSender() => clearField(2); + + @$pb.TagNumber(3) + $core.String get receiver => $_getSZ(2); + @$pb.TagNumber(3) + set receiver($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasReceiver() => $_has(2); + @$pb.TagNumber(3) + void clearReceiver() => clearField(3); + + @$pb.TagNumber(4) + $fixnum.Int64 get stake => $_getI64(3); + @$pb.TagNumber(4) + set stake($fixnum.Int64 v) { $_setInt64(3, v); } + @$pb.TagNumber(4) + $core.bool hasStake() => $_has(3); + @$pb.TagNumber(4) + void clearStake() => clearField(4); + + @$pb.TagNumber(5) + $core.String get publicKey => $_getSZ(4); + @$pb.TagNumber(5) + set publicKey($core.String v) { $_setString(4, v); } + @$pb.TagNumber(5) + $core.bool hasPublicKey() => $_has(4); + @$pb.TagNumber(5) + void clearPublicKey() => clearField(5); + + @$pb.TagNumber(6) + $fixnum.Int64 get fee => $_getI64(5); + @$pb.TagNumber(6) + set fee($fixnum.Int64 v) { $_setInt64(5, v); } + @$pb.TagNumber(6) + $core.bool hasFee() => $_has(5); + @$pb.TagNumber(6) + void clearFee() => clearField(6); + + @$pb.TagNumber(7) + $core.String get memo => $_getSZ(6); + @$pb.TagNumber(7) + set memo($core.String v) { $_setString(6, v); } + @$pb.TagNumber(7) + $core.bool hasMemo() => $_has(6); + @$pb.TagNumber(7) + void clearMemo() => clearField(7); +} + +class GetRawUnBondTransactionRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'GetRawUnBondTransactionRequest', 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) + ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'validatorAddress') + ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'memo') + ..hasRequiredFields = false + ; + + GetRawUnBondTransactionRequest._() : super(); + factory GetRawUnBondTransactionRequest({ + $core.int? lockTime, + $core.String? validatorAddress, + $core.String? memo, + }) { + final _result = create(); + if (lockTime != null) { + _result.lockTime = lockTime; + } + if (validatorAddress != null) { + _result.validatorAddress = validatorAddress; + } + if (memo != null) { + _result.memo = memo; + } + return _result; + } + factory GetRawUnBondTransactionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory GetRawUnBondTransactionRequest.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') + GetRawUnBondTransactionRequest clone() => GetRawUnBondTransactionRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetRawUnBondTransactionRequest copyWith(void Function(GetRawUnBondTransactionRequest) updates) => super.copyWith((message) => updates(message as GetRawUnBondTransactionRequest)) as GetRawUnBondTransactionRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static GetRawUnBondTransactionRequest create() => GetRawUnBondTransactionRequest._(); + GetRawUnBondTransactionRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetRawUnBondTransactionRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetRawUnBondTransactionRequest? _defaultInstance; + + @$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(3) + $core.String get validatorAddress => $_getSZ(1); + @$pb.TagNumber(3) + set validatorAddress($core.String v) { $_setString(1, v); } + @$pb.TagNumber(3) + $core.bool hasValidatorAddress() => $_has(1); + @$pb.TagNumber(3) + void clearValidatorAddress() => clearField(3); + + @$pb.TagNumber(4) + $core.String get memo => $_getSZ(2); + @$pb.TagNumber(4) + set memo($core.String v) { $_setString(2, v); } + @$pb.TagNumber(4) + $core.bool hasMemo() => $_has(2); + @$pb.TagNumber(4) + void clearMemo() => clearField(4); +} + +class GetRawWithdrawTransactionRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'GetRawWithdrawTransactionRequest', 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) + ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'validatorAddress') + ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'accountAddress') + ..aInt64(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fee') + ..aInt64(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'amount') + ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'memo') + ..hasRequiredFields = false + ; + + GetRawWithdrawTransactionRequest._() : super(); + factory GetRawWithdrawTransactionRequest({ + $core.int? lockTime, + $core.String? validatorAddress, + $core.String? accountAddress, + $fixnum.Int64? fee, + $fixnum.Int64? amount, + $core.String? memo, + }) { + final _result = create(); + if (lockTime != null) { + _result.lockTime = lockTime; + } + if (validatorAddress != null) { + _result.validatorAddress = validatorAddress; + } + if (accountAddress != null) { + _result.accountAddress = accountAddress; + } + if (fee != null) { + _result.fee = fee; + } + if (amount != null) { + _result.amount = amount; + } + if (memo != null) { + _result.memo = memo; + } + return _result; + } + factory GetRawWithdrawTransactionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory GetRawWithdrawTransactionRequest.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') + GetRawWithdrawTransactionRequest clone() => GetRawWithdrawTransactionRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetRawWithdrawTransactionRequest copyWith(void Function(GetRawWithdrawTransactionRequest) updates) => super.copyWith((message) => updates(message as GetRawWithdrawTransactionRequest)) as GetRawWithdrawTransactionRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static GetRawWithdrawTransactionRequest create() => GetRawWithdrawTransactionRequest._(); + GetRawWithdrawTransactionRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetRawWithdrawTransactionRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetRawWithdrawTransactionRequest? _defaultInstance; + + @$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(3) + $core.String get validatorAddress => $_getSZ(1); + @$pb.TagNumber(3) + set validatorAddress($core.String v) { $_setString(1, v); } + @$pb.TagNumber(3) + $core.bool hasValidatorAddress() => $_has(1); + @$pb.TagNumber(3) + void clearValidatorAddress() => clearField(3); + + @$pb.TagNumber(4) + $core.String get accountAddress => $_getSZ(2); + @$pb.TagNumber(4) + set accountAddress($core.String v) { $_setString(2, v); } + @$pb.TagNumber(4) + $core.bool hasAccountAddress() => $_has(2); + @$pb.TagNumber(4) + void clearAccountAddress() => clearField(4); + + @$pb.TagNumber(5) + $fixnum.Int64 get fee => $_getI64(3); + @$pb.TagNumber(5) + set fee($fixnum.Int64 v) { $_setInt64(3, v); } + @$pb.TagNumber(5) + $core.bool hasFee() => $_has(3); + @$pb.TagNumber(5) + void clearFee() => clearField(5); + + @$pb.TagNumber(6) + $fixnum.Int64 get amount => $_getI64(4); + @$pb.TagNumber(6) + set amount($fixnum.Int64 v) { $_setInt64(4, v); } + @$pb.TagNumber(6) + $core.bool hasAmount() => $_has(4); + @$pb.TagNumber(6) + void clearAmount() => clearField(6); + + @$pb.TagNumber(7) + $core.String get memo => $_getSZ(5); + @$pb.TagNumber(7) + set memo($core.String v) { $_setString(5, v); } + @$pb.TagNumber(7) + $core.bool hasMemo() => $_has(5); + @$pb.TagNumber(7) + void clearMemo() => clearField(7); +} + +class GetRawTransactionResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'GetRawTransactionResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'pactus'), createEmptyInstance: create) + ..a<$core.List<$core.int>>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rawTransaction', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; + + GetRawTransactionResponse._() : super(); + factory GetRawTransactionResponse({ + $core.List<$core.int>? rawTransaction, + }) { + final _result = create(); + if (rawTransaction != null) { + _result.rawTransaction = rawTransaction; + } + return _result; + } + factory GetRawTransactionResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory GetRawTransactionResponse.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') + GetRawTransactionResponse clone() => GetRawTransactionResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetRawTransactionResponse copyWith(void Function(GetRawTransactionResponse) updates) => super.copyWith((message) => updates(message as GetRawTransactionResponse)) as GetRawTransactionResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static GetRawTransactionResponse create() => GetRawTransactionResponse._(); + GetRawTransactionResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetRawTransactionResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetRawTransactionResponse? _defaultInstance; + + @$pb.TagNumber(1) + $core.List<$core.int> get rawTransaction => $_getN(0); + @$pb.TagNumber(1) + set rawTransaction($core.List<$core.int> v) { $_setBytes(0, v); } + @$pb.TagNumber(1) + $core.bool hasRawTransaction() => $_has(0); + @$pb.TagNumber(1) + void clearRawTransaction() => clearField(1); +} + class PayloadTransfer extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PayloadTransfer', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'pactus'), createEmptyInstance: create) ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sender') @@ -978,5 +1465,21 @@ class TransactionApi { var emptyResponse = SendRawTransactionResponse(); return _client.invoke(ctx, 'Transaction', 'SendRawTransaction', request, emptyResponse); } + $async.Future getRawTransferTransaction($pb.ClientContext? ctx, GetRawTransferTransactionRequest request) { + var emptyResponse = GetRawTransactionResponse(); + return _client.invoke(ctx, 'Transaction', 'GetRawTransferTransaction', request, emptyResponse); + } + $async.Future getRawBondTransaction($pb.ClientContext? ctx, GetRawBondTransactionRequest request) { + var emptyResponse = GetRawTransactionResponse(); + return _client.invoke(ctx, 'Transaction', 'GetRawBondTransaction', request, emptyResponse); + } + $async.Future getRawUnBondTransaction($pb.ClientContext? ctx, GetRawUnBondTransactionRequest request) { + var emptyResponse = GetRawTransactionResponse(); + return _client.invoke(ctx, 'Transaction', 'GetRawUnBondTransaction', request, emptyResponse); + } + $async.Future getRawWithdrawTransaction($pb.ClientContext? ctx, GetRawWithdrawTransactionRequest request) { + var emptyResponse = GetRawTransactionResponse(); + return _client.invoke(ctx, 'Transaction', 'GetRawWithdrawTransaction', request, emptyResponse); + } } diff --git a/www/grpc/gen/dart/transaction.pbjson.dart b/www/grpc/gen/dart/transaction.pbjson.dart index 39c0f1cf9..e4007d424 100644 --- a/www/grpc/gen/dart/transaction.pbjson.dart +++ b/www/grpc/gen/dart/transaction.pbjson.dart @@ -98,6 +98,74 @@ const SendRawTransactionResponse$json = const { /// Descriptor for `SendRawTransactionResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List sendRawTransactionResponseDescriptor = $convert.base64Decode('ChpTZW5kUmF3VHJhbnNhY3Rpb25SZXNwb25zZRIOCgJpZBgCIAEoDFICaWQ='); +@$core.Deprecated('Use getRawTransferTransactionRequestDescriptor instead') +const GetRawTransferTransactionRequest$json = const { + '1': 'GetRawTransferTransactionRequest', + '2': const [ + const {'1': 'lock_time', '3': 1, '4': 1, '5': 13, '10': 'lockTime'}, + const {'1': 'sender', '3': 2, '4': 1, '5': 9, '10': 'sender'}, + const {'1': 'receiver', '3': 3, '4': 1, '5': 9, '10': 'receiver'}, + const {'1': 'amount', '3': 4, '4': 1, '5': 3, '10': 'amount'}, + const {'1': 'fee', '3': 5, '4': 1, '5': 3, '10': 'fee'}, + const {'1': 'memo', '3': 6, '4': 1, '5': 9, '10': 'memo'}, + ], +}; + +/// Descriptor for `GetRawTransferTransactionRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getRawTransferTransactionRequestDescriptor = $convert.base64Decode('CiBHZXRSYXdUcmFuc2ZlclRyYW5zYWN0aW9uUmVxdWVzdBIbCglsb2NrX3RpbWUYASABKA1SCGxvY2tUaW1lEhYKBnNlbmRlchgCIAEoCVIGc2VuZGVyEhoKCHJlY2VpdmVyGAMgASgJUghyZWNlaXZlchIWCgZhbW91bnQYBCABKANSBmFtb3VudBIQCgNmZWUYBSABKANSA2ZlZRISCgRtZW1vGAYgASgJUgRtZW1v'); +@$core.Deprecated('Use getRawBondTransactionRequestDescriptor instead') +const GetRawBondTransactionRequest$json = const { + '1': 'GetRawBondTransactionRequest', + '2': const [ + const {'1': 'lock_time', '3': 1, '4': 1, '5': 13, '10': 'lockTime'}, + const {'1': 'sender', '3': 2, '4': 1, '5': 9, '10': 'sender'}, + const {'1': 'receiver', '3': 3, '4': 1, '5': 9, '10': 'receiver'}, + const {'1': 'stake', '3': 4, '4': 1, '5': 3, '10': 'stake'}, + const {'1': 'public_key', '3': 5, '4': 1, '5': 9, '10': 'publicKey'}, + const {'1': 'fee', '3': 6, '4': 1, '5': 3, '10': 'fee'}, + const {'1': 'memo', '3': 7, '4': 1, '5': 9, '10': 'memo'}, + ], +}; + +/// Descriptor for `GetRawBondTransactionRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getRawBondTransactionRequestDescriptor = $convert.base64Decode('ChxHZXRSYXdCb25kVHJhbnNhY3Rpb25SZXF1ZXN0EhsKCWxvY2tfdGltZRgBIAEoDVIIbG9ja1RpbWUSFgoGc2VuZGVyGAIgASgJUgZzZW5kZXISGgoIcmVjZWl2ZXIYAyABKAlSCHJlY2VpdmVyEhQKBXN0YWtlGAQgASgDUgVzdGFrZRIdCgpwdWJsaWNfa2V5GAUgASgJUglwdWJsaWNLZXkSEAoDZmVlGAYgASgDUgNmZWUSEgoEbWVtbxgHIAEoCVIEbWVtbw=='); +@$core.Deprecated('Use getRawUnBondTransactionRequestDescriptor instead') +const GetRawUnBondTransactionRequest$json = const { + '1': 'GetRawUnBondTransactionRequest', + '2': const [ + const {'1': 'lock_time', '3': 1, '4': 1, '5': 13, '10': 'lockTime'}, + const {'1': 'validator_address', '3': 3, '4': 1, '5': 9, '10': 'validatorAddress'}, + const {'1': 'memo', '3': 4, '4': 1, '5': 9, '10': 'memo'}, + ], +}; + +/// Descriptor for `GetRawUnBondTransactionRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getRawUnBondTransactionRequestDescriptor = $convert.base64Decode('Ch5HZXRSYXdVbkJvbmRUcmFuc2FjdGlvblJlcXVlc3QSGwoJbG9ja190aW1lGAEgASgNUghsb2NrVGltZRIrChF2YWxpZGF0b3JfYWRkcmVzcxgDIAEoCVIQdmFsaWRhdG9yQWRkcmVzcxISCgRtZW1vGAQgASgJUgRtZW1v'); +@$core.Deprecated('Use getRawWithdrawTransactionRequestDescriptor instead') +const GetRawWithdrawTransactionRequest$json = const { + '1': 'GetRawWithdrawTransactionRequest', + '2': const [ + const {'1': 'lock_time', '3': 1, '4': 1, '5': 13, '10': 'lockTime'}, + const {'1': 'validator_address', '3': 3, '4': 1, '5': 9, '10': 'validatorAddress'}, + const {'1': 'account_address', '3': 4, '4': 1, '5': 9, '10': 'accountAddress'}, + const {'1': 'fee', '3': 5, '4': 1, '5': 3, '10': 'fee'}, + const {'1': 'amount', '3': 6, '4': 1, '5': 3, '10': 'amount'}, + const {'1': 'memo', '3': 7, '4': 1, '5': 9, '10': 'memo'}, + ], +}; + +/// Descriptor for `GetRawWithdrawTransactionRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getRawWithdrawTransactionRequestDescriptor = $convert.base64Decode('CiBHZXRSYXdXaXRoZHJhd1RyYW5zYWN0aW9uUmVxdWVzdBIbCglsb2NrX3RpbWUYASABKA1SCGxvY2tUaW1lEisKEXZhbGlkYXRvcl9hZGRyZXNzGAMgASgJUhB2YWxpZGF0b3JBZGRyZXNzEicKD2FjY291bnRfYWRkcmVzcxgEIAEoCVIOYWNjb3VudEFkZHJlc3MSEAoDZmVlGAUgASgDUgNmZWUSFgoGYW1vdW50GAYgASgDUgZhbW91bnQSEgoEbWVtbxgHIAEoCVIEbWVtbw=='); +@$core.Deprecated('Use getRawTransactionResponseDescriptor instead') +const GetRawTransactionResponse$json = const { + '1': 'GetRawTransactionResponse', + '2': const [ + const {'1': 'raw_transaction', '3': 1, '4': 1, '5': 12, '10': 'rawTransaction'}, + ], +}; + +/// Descriptor for `GetRawTransactionResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getRawTransactionResponseDescriptor = $convert.base64Decode('ChlHZXRSYXdUcmFuc2FjdGlvblJlc3BvbnNlEicKD3Jhd190cmFuc2FjdGlvbhgBIAEoDFIOcmF3VHJhbnNhY3Rpb24='); @$core.Deprecated('Use payloadTransferDescriptor instead') const PayloadTransfer$json = const { '1': 'PayloadTransfer', @@ -188,6 +256,10 @@ 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': 'SendRawTransaction', '2': '.pactus.SendRawTransactionRequest', '3': '.pactus.SendRawTransactionResponse'}, + 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'}, + const {'1': 'GetRawWithdrawTransaction', '2': '.pactus.GetRawWithdrawTransactionRequest', '3': '.pactus.GetRawTransactionResponse'}, ], }; @@ -205,7 +277,12 @@ const $core.Map<$core.String, $core.Map<$core.String, $core.dynamic>> Transactio '.pactus.CalculateFeeResponse': CalculateFeeResponse$json, '.pactus.SendRawTransactionRequest': SendRawTransactionRequest$json, '.pactus.SendRawTransactionResponse': SendRawTransactionResponse$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('CgtUcmFuc2FjdGlvbhJPCg5HZXRUcmFuc2FjdGlvbhIdLnBhY3R1cy5HZXRUcmFuc2FjdGlvblJlcXVlc3QaHi5wYWN0dXMuR2V0VHJhbnNhY3Rpb25SZXNwb25zZRJJCgxDYWxjdWxhdGVGZWUSGy5wYWN0dXMuQ2FsY3VsYXRlRmVlUmVxdWVzdBocLnBhY3R1cy5DYWxjdWxhdGVGZWVSZXNwb25zZRJbChJTZW5kUmF3VHJhbnNhY3Rpb24SIS5wYWN0dXMuU2VuZFJhd1RyYW5zYWN0aW9uUmVxdWVzdBoiLnBhY3R1cy5TZW5kUmF3VHJhbnNhY3Rpb25SZXNwb25zZQ=='); +final $typed_data.Uint8List transactionServiceDescriptor = $convert.base64Decode('CgtUcmFuc2FjdGlvbhJPCg5HZXRUcmFuc2FjdGlvbhIdLnBhY3R1cy5HZXRUcmFuc2FjdGlvblJlcXVlc3QaHi5wYWN0dXMuR2V0VHJhbnNhY3Rpb25SZXNwb25zZRJJCgxDYWxjdWxhdGVGZWUSGy5wYWN0dXMuQ2FsY3VsYXRlRmVlUmVxdWVzdBocLnBhY3R1cy5DYWxjdWxhdGVGZWVSZXNwb25zZRJbChJTZW5kUmF3VHJhbnNhY3Rpb24SIS5wYWN0dXMuU2VuZFJhd1RyYW5zYWN0aW9uUmVxdWVzdBoiLnBhY3R1cy5TZW5kUmF3VHJhbnNhY3Rpb25SZXNwb25zZRJoChlHZXRSYXdUcmFuc2ZlclRyYW5zYWN0aW9uEigucGFjdHVzLkdldFJhd1RyYW5zZmVyVHJhbnNhY3Rpb25SZXF1ZXN0GiEucGFjdHVzLkdldFJhd1RyYW5zYWN0aW9uUmVzcG9uc2USYAoVR2V0UmF3Qm9uZFRyYW5zYWN0aW9uEiQucGFjdHVzLkdldFJhd0JvbmRUcmFuc2FjdGlvblJlcXVlc3QaIS5wYWN0dXMuR2V0UmF3VHJhbnNhY3Rpb25SZXNwb25zZRJkChdHZXRSYXdVbkJvbmRUcmFuc2FjdGlvbhImLnBhY3R1cy5HZXRSYXdVbkJvbmRUcmFuc2FjdGlvblJlcXVlc3QaIS5wYWN0dXMuR2V0UmF3VHJhbnNhY3Rpb25SZXNwb25zZRJoChlHZXRSYXdXaXRoZHJhd1RyYW5zYWN0aW9uEigucGFjdHVzLkdldFJhd1dpdGhkcmF3VHJhbnNhY3Rpb25SZXF1ZXN0GiEucGFjdHVzLkdldFJhd1RyYW5zYWN0aW9uUmVzcG9uc2U='); diff --git a/www/grpc/gen/dart/transaction.pbserver.dart b/www/grpc/gen/dart/transaction.pbserver.dart index f5b474081..9dff92344 100644 --- a/www/grpc/gen/dart/transaction.pbserver.dart +++ b/www/grpc/gen/dart/transaction.pbserver.dart @@ -19,12 +19,20 @@ 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.SendRawTransactionResponse> sendRawTransaction($pb.ServerContext ctx, $0.SendRawTransactionRequest 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); + $async.Future<$0.GetRawTransactionResponse> getRawWithdrawTransaction($pb.ServerContext ctx, $0.GetRawWithdrawTransactionRequest request); $pb.GeneratedMessage createRequest($core.String method) { switch (method) { case 'GetTransaction': return $0.GetTransactionRequest(); case 'CalculateFee': return $0.CalculateFeeRequest(); case 'SendRawTransaction': return $0.SendRawTransactionRequest(); + case 'GetRawTransferTransaction': return $0.GetRawTransferTransactionRequest(); + case 'GetRawBondTransaction': return $0.GetRawBondTransactionRequest(); + case 'GetRawUnBondTransaction': return $0.GetRawUnBondTransactionRequest(); + case 'GetRawWithdrawTransaction': return $0.GetRawWithdrawTransactionRequest(); default: throw $core.ArgumentError('Unknown method: $method'); } } @@ -34,6 +42,10 @@ 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 'SendRawTransaction': return this.sendRawTransaction(ctx, request as $0.SendRawTransactionRequest); + 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); + case 'GetRawWithdrawTransaction': return this.getRawWithdrawTransaction(ctx, request as $0.GetRawWithdrawTransactionRequest); default: throw $core.ArgumentError('Unknown method: $method'); } } diff --git a/www/grpc/gen/go/transaction.pb.go b/www/grpc/gen/go/transaction.pb.go index 6acd08306..b7d99a8f4 100644 --- a/www/grpc/gen/go/transaction.pb.go +++ b/www/grpc/gen/go/transaction.pb.go @@ -438,6 +438,385 @@ func (x *SendRawTransactionResponse) GetId() []byte { return nil } +type GetRawTransferTransactionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LockTime uint32 `protobuf:"varint,1,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` + Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` + Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` + Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` + Fee int64 `protobuf:"varint,5,opt,name=fee,proto3" json:"fee,omitempty"` + Memo string `protobuf:"bytes,6,opt,name=memo,proto3" json:"memo,omitempty"` +} + +func (x *GetRawTransferTransactionRequest) Reset() { + *x = GetRawTransferTransactionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_transaction_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetRawTransferTransactionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRawTransferTransactionRequest) ProtoMessage() {} + +func (x *GetRawTransferTransactionRequest) 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 GetRawTransferTransactionRequest.ProtoReflect.Descriptor instead. +func (*GetRawTransferTransactionRequest) Descriptor() ([]byte, []int) { + return file_transaction_proto_rawDescGZIP(), []int{6} +} + +func (x *GetRawTransferTransactionRequest) GetLockTime() uint32 { + if x != nil { + return x.LockTime + } + return 0 +} + +func (x *GetRawTransferTransactionRequest) GetSender() string { + if x != nil { + return x.Sender + } + return "" +} + +func (x *GetRawTransferTransactionRequest) GetReceiver() string { + if x != nil { + return x.Receiver + } + return "" +} + +func (x *GetRawTransferTransactionRequest) GetAmount() int64 { + if x != nil { + return x.Amount + } + return 0 +} + +func (x *GetRawTransferTransactionRequest) GetFee() int64 { + if x != nil { + return x.Fee + } + return 0 +} + +func (x *GetRawTransferTransactionRequest) GetMemo() string { + if x != nil { + return x.Memo + } + return "" +} + +type GetRawBondTransactionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LockTime uint32 `protobuf:"varint,1,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` + Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` + Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` + Stake int64 `protobuf:"varint,4,opt,name=stake,proto3" json:"stake,omitempty"` + PublicKey string `protobuf:"bytes,5,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + Fee int64 `protobuf:"varint,6,opt,name=fee,proto3" json:"fee,omitempty"` + Memo string `protobuf:"bytes,7,opt,name=memo,proto3" json:"memo,omitempty"` +} + +func (x *GetRawBondTransactionRequest) Reset() { + *x = GetRawBondTransactionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_transaction_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetRawBondTransactionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRawBondTransactionRequest) ProtoMessage() {} + +func (x *GetRawBondTransactionRequest) ProtoReflect() protoreflect.Message { + mi := &file_transaction_proto_msgTypes[7] + 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 GetRawBondTransactionRequest.ProtoReflect.Descriptor instead. +func (*GetRawBondTransactionRequest) Descriptor() ([]byte, []int) { + return file_transaction_proto_rawDescGZIP(), []int{7} +} + +func (x *GetRawBondTransactionRequest) GetLockTime() uint32 { + if x != nil { + return x.LockTime + } + return 0 +} + +func (x *GetRawBondTransactionRequest) GetSender() string { + if x != nil { + return x.Sender + } + return "" +} + +func (x *GetRawBondTransactionRequest) GetReceiver() string { + if x != nil { + return x.Receiver + } + return "" +} + +func (x *GetRawBondTransactionRequest) GetStake() int64 { + if x != nil { + return x.Stake + } + return 0 +} + +func (x *GetRawBondTransactionRequest) GetPublicKey() string { + if x != nil { + return x.PublicKey + } + return "" +} + +func (x *GetRawBondTransactionRequest) GetFee() int64 { + if x != nil { + return x.Fee + } + return 0 +} + +func (x *GetRawBondTransactionRequest) GetMemo() string { + if x != nil { + return x.Memo + } + return "" +} + +type GetRawUnBondTransactionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LockTime uint32 `protobuf:"varint,1,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` + ValidatorAddress string `protobuf:"bytes,3,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` + Memo string `protobuf:"bytes,4,opt,name=memo,proto3" json:"memo,omitempty"` +} + +func (x *GetRawUnBondTransactionRequest) Reset() { + *x = GetRawUnBondTransactionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_transaction_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetRawUnBondTransactionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRawUnBondTransactionRequest) ProtoMessage() {} + +func (x *GetRawUnBondTransactionRequest) ProtoReflect() protoreflect.Message { + mi := &file_transaction_proto_msgTypes[8] + 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 GetRawUnBondTransactionRequest.ProtoReflect.Descriptor instead. +func (*GetRawUnBondTransactionRequest) Descriptor() ([]byte, []int) { + return file_transaction_proto_rawDescGZIP(), []int{8} +} + +func (x *GetRawUnBondTransactionRequest) GetLockTime() uint32 { + if x != nil { + return x.LockTime + } + return 0 +} + +func (x *GetRawUnBondTransactionRequest) GetValidatorAddress() string { + if x != nil { + return x.ValidatorAddress + } + return "" +} + +func (x *GetRawUnBondTransactionRequest) GetMemo() string { + if x != nil { + return x.Memo + } + return "" +} + +type GetRawWithdrawTransactionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LockTime uint32 `protobuf:"varint,1,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` + ValidatorAddress string `protobuf:"bytes,3,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` + AccountAddress string `protobuf:"bytes,4,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` + Fee int64 `protobuf:"varint,5,opt,name=fee,proto3" json:"fee,omitempty"` + Amount int64 `protobuf:"varint,6,opt,name=amount,proto3" json:"amount,omitempty"` + Memo string `protobuf:"bytes,7,opt,name=memo,proto3" json:"memo,omitempty"` +} + +func (x *GetRawWithdrawTransactionRequest) Reset() { + *x = GetRawWithdrawTransactionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_transaction_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetRawWithdrawTransactionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRawWithdrawTransactionRequest) ProtoMessage() {} + +func (x *GetRawWithdrawTransactionRequest) ProtoReflect() protoreflect.Message { + mi := &file_transaction_proto_msgTypes[9] + 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 GetRawWithdrawTransactionRequest.ProtoReflect.Descriptor instead. +func (*GetRawWithdrawTransactionRequest) Descriptor() ([]byte, []int) { + return file_transaction_proto_rawDescGZIP(), []int{9} +} + +func (x *GetRawWithdrawTransactionRequest) GetLockTime() uint32 { + if x != nil { + return x.LockTime + } + return 0 +} + +func (x *GetRawWithdrawTransactionRequest) GetValidatorAddress() string { + if x != nil { + return x.ValidatorAddress + } + return "" +} + +func (x *GetRawWithdrawTransactionRequest) GetAccountAddress() string { + if x != nil { + return x.AccountAddress + } + return "" +} + +func (x *GetRawWithdrawTransactionRequest) GetFee() int64 { + if x != nil { + return x.Fee + } + return 0 +} + +func (x *GetRawWithdrawTransactionRequest) GetAmount() int64 { + if x != nil { + return x.Amount + } + return 0 +} + +func (x *GetRawWithdrawTransactionRequest) GetMemo() string { + if x != nil { + return x.Memo + } + return "" +} + +type GetRawTransactionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RawTransaction []byte `protobuf:"bytes,1,opt,name=raw_transaction,json=rawTransaction,proto3" json:"raw_transaction,omitempty"` +} + +func (x *GetRawTransactionResponse) Reset() { + *x = GetRawTransactionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_transaction_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetRawTransactionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRawTransactionResponse) ProtoMessage() {} + +func (x *GetRawTransactionResponse) ProtoReflect() protoreflect.Message { + mi := &file_transaction_proto_msgTypes[10] + 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 GetRawTransactionResponse.ProtoReflect.Descriptor instead. +func (*GetRawTransactionResponse) Descriptor() ([]byte, []int) { + return file_transaction_proto_rawDescGZIP(), []int{10} +} + +func (x *GetRawTransactionResponse) GetRawTransaction() []byte { + if x != nil { + return x.RawTransaction + } + return nil +} + type PayloadTransfer struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -451,7 +830,7 @@ type PayloadTransfer struct { func (x *PayloadTransfer) Reset() { *x = PayloadTransfer{} if protoimpl.UnsafeEnabled { - mi := &file_transaction_proto_msgTypes[6] + mi := &file_transaction_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -464,7 +843,7 @@ func (x *PayloadTransfer) String() string { func (*PayloadTransfer) ProtoMessage() {} func (x *PayloadTransfer) ProtoReflect() protoreflect.Message { - mi := &file_transaction_proto_msgTypes[6] + mi := &file_transaction_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -477,7 +856,7 @@ func (x *PayloadTransfer) ProtoReflect() protoreflect.Message { // Deprecated: Use PayloadTransfer.ProtoReflect.Descriptor instead. func (*PayloadTransfer) Descriptor() ([]byte, []int) { - return file_transaction_proto_rawDescGZIP(), []int{6} + return file_transaction_proto_rawDescGZIP(), []int{11} } func (x *PayloadTransfer) GetSender() string { @@ -514,7 +893,7 @@ type PayloadBond struct { func (x *PayloadBond) Reset() { *x = PayloadBond{} if protoimpl.UnsafeEnabled { - mi := &file_transaction_proto_msgTypes[7] + mi := &file_transaction_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -527,7 +906,7 @@ func (x *PayloadBond) String() string { func (*PayloadBond) ProtoMessage() {} func (x *PayloadBond) ProtoReflect() protoreflect.Message { - mi := &file_transaction_proto_msgTypes[7] + mi := &file_transaction_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -540,7 +919,7 @@ func (x *PayloadBond) ProtoReflect() protoreflect.Message { // Deprecated: Use PayloadBond.ProtoReflect.Descriptor instead. func (*PayloadBond) Descriptor() ([]byte, []int) { - return file_transaction_proto_rawDescGZIP(), []int{7} + return file_transaction_proto_rawDescGZIP(), []int{12} } func (x *PayloadBond) GetSender() string { @@ -576,7 +955,7 @@ type PayloadSortition struct { func (x *PayloadSortition) Reset() { *x = PayloadSortition{} if protoimpl.UnsafeEnabled { - mi := &file_transaction_proto_msgTypes[8] + mi := &file_transaction_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -589,7 +968,7 @@ func (x *PayloadSortition) String() string { func (*PayloadSortition) ProtoMessage() {} func (x *PayloadSortition) ProtoReflect() protoreflect.Message { - mi := &file_transaction_proto_msgTypes[8] + mi := &file_transaction_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -602,7 +981,7 @@ func (x *PayloadSortition) ProtoReflect() protoreflect.Message { // Deprecated: Use PayloadSortition.ProtoReflect.Descriptor instead. func (*PayloadSortition) Descriptor() ([]byte, []int) { - return file_transaction_proto_rawDescGZIP(), []int{8} + return file_transaction_proto_rawDescGZIP(), []int{13} } func (x *PayloadSortition) GetAddress() string { @@ -630,7 +1009,7 @@ type PayloadUnbond struct { func (x *PayloadUnbond) Reset() { *x = PayloadUnbond{} if protoimpl.UnsafeEnabled { - mi := &file_transaction_proto_msgTypes[9] + mi := &file_transaction_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -643,7 +1022,7 @@ func (x *PayloadUnbond) String() string { func (*PayloadUnbond) ProtoMessage() {} func (x *PayloadUnbond) ProtoReflect() protoreflect.Message { - mi := &file_transaction_proto_msgTypes[9] + mi := &file_transaction_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -656,7 +1035,7 @@ func (x *PayloadUnbond) ProtoReflect() protoreflect.Message { // Deprecated: Use PayloadUnbond.ProtoReflect.Descriptor instead. func (*PayloadUnbond) Descriptor() ([]byte, []int) { - return file_transaction_proto_rawDescGZIP(), []int{9} + return file_transaction_proto_rawDescGZIP(), []int{14} } func (x *PayloadUnbond) GetValidator() string { @@ -679,7 +1058,7 @@ type PayloadWithdraw struct { func (x *PayloadWithdraw) Reset() { *x = PayloadWithdraw{} if protoimpl.UnsafeEnabled { - mi := &file_transaction_proto_msgTypes[10] + mi := &file_transaction_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -692,7 +1071,7 @@ func (x *PayloadWithdraw) String() string { func (*PayloadWithdraw) ProtoMessage() {} func (x *PayloadWithdraw) ProtoReflect() protoreflect.Message { - mi := &file_transaction_proto_msgTypes[10] + mi := &file_transaction_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -705,7 +1084,7 @@ func (x *PayloadWithdraw) ProtoReflect() protoreflect.Message { // Deprecated: Use PayloadWithdraw.ProtoReflect.Descriptor instead. func (*PayloadWithdraw) Descriptor() ([]byte, []int) { - return file_transaction_proto_rawDescGZIP(), []int{10} + return file_transaction_proto_rawDescGZIP(), []int{15} } func (x *PayloadWithdraw) GetFrom() string { @@ -757,7 +1136,7 @@ type TransactionInfo struct { func (x *TransactionInfo) Reset() { *x = TransactionInfo{} if protoimpl.UnsafeEnabled { - mi := &file_transaction_proto_msgTypes[11] + mi := &file_transaction_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -770,7 +1149,7 @@ func (x *TransactionInfo) String() string { func (*TransactionInfo) ProtoMessage() {} func (x *TransactionInfo) ProtoReflect() protoreflect.Message { - mi := &file_transaction_proto_msgTypes[11] + mi := &file_transaction_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -783,7 +1162,7 @@ func (x *TransactionInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use TransactionInfo.ProtoReflect.Descriptor instead. func (*TransactionInfo) Descriptor() ([]byte, []int) { - return file_transaction_proto_rawDescGZIP(), []int{11} + return file_transaction_proto_rawDescGZIP(), []int{16} } func (x *TransactionInfo) GetId() []byte { @@ -967,100 +1346,175 @@ var file_transaction_proto_rawDesc = []byte{ 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2c, 0x0a, 0x1a, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, 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, 0x02, 0x20, - 0x01, 0x28, 0x0c, 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, 0x57, 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, 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, 0x0c, 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, 0x4d, 0x0a, 0x0f, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x57, 0x69, 0x74, - 0x68, 0x64, 0x72, 0x61, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 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, 0xab, 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, - 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0c, 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, 0x35, 0x0a, 0x0b, 0x70, 0x61, 0x79, 0x6c, - 0x6f, 0x61, 0x64, 0x54, 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, 0x0c, 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, 0x86, 0x02, 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, 0x5b, 0x0a, 0x12, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x70, 0x61, + 0x01, 0x28, 0x0c, 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, 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, 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, + 0x03, 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, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x66, + 0x65, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, + 0x6d, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x22, 0x44, + 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, 0x0c, 0x52, 0x0e, 0x72, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 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, 0x57, 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, 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, 0x0c, 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, + 0x4d, 0x0a, 0x0f, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, + 0x61, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 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, 0xab, + 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, 0x0c, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 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, 0x35, 0x0a, 0x0b, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x54, 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, 0x0c, 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, 0xa2, 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, 0x5b, 0x0a, 0x12, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, + 0x73, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x77, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, - 0x2e, 0x70, 0x61, 0x63, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x65, 0x6e, 0x64, 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, + 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, 0x42, 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, 0x55, 0x6e, 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, 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 ( @@ -1076,41 +1530,54 @@ func file_transaction_proto_rawDescGZIP() []byte { } var file_transaction_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_transaction_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_transaction_proto_msgTypes = make([]protoimpl.MessageInfo, 17) var file_transaction_proto_goTypes = []interface{}{ - (PayloadType)(0), // 0: pactus.PayloadType - (TransactionVerbosity)(0), // 1: pactus.TransactionVerbosity - (*GetTransactionRequest)(nil), // 2: pactus.GetTransactionRequest - (*GetTransactionResponse)(nil), // 3: pactus.GetTransactionResponse - (*CalculateFeeRequest)(nil), // 4: pactus.CalculateFeeRequest - (*CalculateFeeResponse)(nil), // 5: pactus.CalculateFeeResponse - (*SendRawTransactionRequest)(nil), // 6: pactus.SendRawTransactionRequest - (*SendRawTransactionResponse)(nil), // 7: pactus.SendRawTransactionResponse - (*PayloadTransfer)(nil), // 8: pactus.PayloadTransfer - (*PayloadBond)(nil), // 9: pactus.PayloadBond - (*PayloadSortition)(nil), // 10: pactus.PayloadSortition - (*PayloadUnbond)(nil), // 11: pactus.PayloadUnbond - (*PayloadWithdraw)(nil), // 12: pactus.PayloadWithdraw - (*TransactionInfo)(nil), // 13: pactus.TransactionInfo + (PayloadType)(0), // 0: pactus.PayloadType + (TransactionVerbosity)(0), // 1: pactus.TransactionVerbosity + (*GetTransactionRequest)(nil), // 2: pactus.GetTransactionRequest + (*GetTransactionResponse)(nil), // 3: pactus.GetTransactionResponse + (*CalculateFeeRequest)(nil), // 4: pactus.CalculateFeeRequest + (*CalculateFeeResponse)(nil), // 5: pactus.CalculateFeeResponse + (*SendRawTransactionRequest)(nil), // 6: pactus.SendRawTransactionRequest + (*SendRawTransactionResponse)(nil), // 7: pactus.SendRawTransactionResponse + (*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 - 13, // 1: pactus.GetTransactionResponse.transaction:type_name -> pactus.TransactionInfo + 18, // 1: pactus.GetTransactionResponse.transaction:type_name -> pactus.TransactionInfo 0, // 2: pactus.CalculateFeeRequest.payloadType:type_name -> pactus.PayloadType 0, // 3: pactus.TransactionInfo.payloadType:type_name -> pactus.PayloadType - 8, // 4: pactus.TransactionInfo.transfer:type_name -> pactus.PayloadTransfer - 9, // 5: pactus.TransactionInfo.bond:type_name -> pactus.PayloadBond - 10, // 6: pactus.TransactionInfo.sortition:type_name -> pactus.PayloadSortition - 11, // 7: pactus.TransactionInfo.unbond:type_name -> pactus.PayloadUnbond - 12, // 8: pactus.TransactionInfo.withdraw:type_name -> pactus.PayloadWithdraw + 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.SendRawTransaction:input_type -> pactus.SendRawTransactionRequest - 3, // 12: pactus.Transaction.GetTransaction:output_type -> pactus.GetTransactionResponse - 5, // 13: pactus.Transaction.CalculateFee:output_type -> pactus.CalculateFeeResponse - 7, // 14: pactus.Transaction.SendRawTransaction:output_type -> pactus.SendRawTransactionResponse - 12, // [12:15] is the sub-list for method output_type - 9, // [9:12] is the sub-list for method input_type + 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.SendRawTransaction:output_type -> pactus.SendRawTransactionResponse + 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 @@ -1195,7 +1662,7 @@ func file_transaction_proto_init() { } } file_transaction_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PayloadTransfer); i { + switch v := v.(*GetRawTransferTransactionRequest); i { case 0: return &v.state case 1: @@ -1207,7 +1674,7 @@ func file_transaction_proto_init() { } } file_transaction_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PayloadBond); i { + switch v := v.(*GetRawBondTransactionRequest); i { case 0: return &v.state case 1: @@ -1219,7 +1686,7 @@ func file_transaction_proto_init() { } } file_transaction_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PayloadSortition); i { + switch v := v.(*GetRawUnBondTransactionRequest); i { case 0: return &v.state case 1: @@ -1231,7 +1698,7 @@ func file_transaction_proto_init() { } } file_transaction_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PayloadUnbond); i { + switch v := v.(*GetRawWithdrawTransactionRequest); i { case 0: return &v.state case 1: @@ -1243,7 +1710,7 @@ func file_transaction_proto_init() { } } file_transaction_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PayloadWithdraw); i { + switch v := v.(*GetRawTransactionResponse); i { case 0: return &v.state case 1: @@ -1255,6 +1722,66 @@ func file_transaction_proto_init() { } } file_transaction_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PayloadTransfer); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transaction_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PayloadBond); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transaction_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PayloadSortition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transaction_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PayloadUnbond); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transaction_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PayloadWithdraw); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transaction_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TransactionInfo); i { case 0: return &v.state @@ -1267,7 +1794,7 @@ func file_transaction_proto_init() { } } } - file_transaction_proto_msgTypes[11].OneofWrappers = []interface{}{ + file_transaction_proto_msgTypes[16].OneofWrappers = []interface{}{ (*TransactionInfo_Transfer)(nil), (*TransactionInfo_Bond)(nil), (*TransactionInfo_Sortition)(nil), @@ -1280,7 +1807,7 @@ func file_transaction_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_transaction_proto_rawDesc, NumEnums: 2, - NumMessages: 12, + NumMessages: 17, NumExtensions: 0, NumServices: 1, }, diff --git a/www/grpc/gen/go/transaction_grpc.pb.go b/www/grpc/gen/go/transaction_grpc.pb.go index 2003c179c..9fceaa2f4 100644 --- a/www/grpc/gen/go/transaction_grpc.pb.go +++ b/www/grpc/gen/go/transaction_grpc.pb.go @@ -25,6 +25,10 @@ type TransactionClient interface { GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*GetTransactionResponse, error) CalculateFee(ctx context.Context, in *CalculateFeeRequest, opts ...grpc.CallOption) (*CalculateFeeResponse, error) SendRawTransaction(ctx context.Context, in *SendRawTransactionRequest, opts ...grpc.CallOption) (*SendRawTransactionResponse, error) + GetRawTransferTransaction(ctx context.Context, in *GetRawTransferTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error) + GetRawBondTransaction(ctx context.Context, in *GetRawBondTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error) + GetRawUnBondTransaction(ctx context.Context, in *GetRawUnBondTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error) + GetRawWithdrawTransaction(ctx context.Context, in *GetRawWithdrawTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error) } type transactionClient struct { @@ -62,6 +66,42 @@ func (c *transactionClient) SendRawTransaction(ctx context.Context, in *SendRawT return out, nil } +func (c *transactionClient) GetRawTransferTransaction(ctx context.Context, in *GetRawTransferTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error) { + out := new(GetRawTransactionResponse) + err := c.cc.Invoke(ctx, "/pactus.Transaction/GetRawTransferTransaction", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *transactionClient) GetRawBondTransaction(ctx context.Context, in *GetRawBondTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error) { + out := new(GetRawTransactionResponse) + err := c.cc.Invoke(ctx, "/pactus.Transaction/GetRawBondTransaction", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *transactionClient) GetRawUnBondTransaction(ctx context.Context, in *GetRawUnBondTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error) { + out := new(GetRawTransactionResponse) + err := c.cc.Invoke(ctx, "/pactus.Transaction/GetRawUnBondTransaction", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *transactionClient) GetRawWithdrawTransaction(ctx context.Context, in *GetRawWithdrawTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error) { + out := new(GetRawTransactionResponse) + err := c.cc.Invoke(ctx, "/pactus.Transaction/GetRawWithdrawTransaction", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // TransactionServer is the server API for Transaction service. // All implementations should embed UnimplementedTransactionServer // for forward compatibility @@ -69,6 +109,10 @@ type TransactionServer interface { GetTransaction(context.Context, *GetTransactionRequest) (*GetTransactionResponse, error) CalculateFee(context.Context, *CalculateFeeRequest) (*CalculateFeeResponse, error) SendRawTransaction(context.Context, *SendRawTransactionRequest) (*SendRawTransactionResponse, error) + GetRawTransferTransaction(context.Context, *GetRawTransferTransactionRequest) (*GetRawTransactionResponse, error) + GetRawBondTransaction(context.Context, *GetRawBondTransactionRequest) (*GetRawTransactionResponse, error) + GetRawUnBondTransaction(context.Context, *GetRawUnBondTransactionRequest) (*GetRawTransactionResponse, error) + GetRawWithdrawTransaction(context.Context, *GetRawWithdrawTransactionRequest) (*GetRawTransactionResponse, error) } // UnimplementedTransactionServer should be embedded to have forward compatible implementations. @@ -84,6 +128,18 @@ func (UnimplementedTransactionServer) CalculateFee(context.Context, *CalculateFe func (UnimplementedTransactionServer) SendRawTransaction(context.Context, *SendRawTransactionRequest) (*SendRawTransactionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SendRawTransaction not implemented") } +func (UnimplementedTransactionServer) GetRawTransferTransaction(context.Context, *GetRawTransferTransactionRequest) (*GetRawTransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetRawTransferTransaction not implemented") +} +func (UnimplementedTransactionServer) GetRawBondTransaction(context.Context, *GetRawBondTransactionRequest) (*GetRawTransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetRawBondTransaction not implemented") +} +func (UnimplementedTransactionServer) GetRawUnBondTransaction(context.Context, *GetRawUnBondTransactionRequest) (*GetRawTransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetRawUnBondTransaction not implemented") +} +func (UnimplementedTransactionServer) GetRawWithdrawTransaction(context.Context, *GetRawWithdrawTransactionRequest) (*GetRawTransactionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetRawWithdrawTransaction not implemented") +} // UnsafeTransactionServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TransactionServer will @@ -150,6 +206,78 @@ func _Transaction_SendRawTransaction_Handler(srv interface{}, ctx context.Contex 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 { + return nil, err + } + if interceptor == nil { + return srv.(TransactionServer).GetRawTransferTransaction(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pactus.Transaction/GetRawTransferTransaction", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TransactionServer).GetRawTransferTransaction(ctx, req.(*GetRawTransferTransactionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Transaction_GetRawBondTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetRawBondTransactionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TransactionServer).GetRawBondTransaction(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pactus.Transaction/GetRawBondTransaction", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TransactionServer).GetRawBondTransaction(ctx, req.(*GetRawBondTransactionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Transaction_GetRawUnBondTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetRawUnBondTransactionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TransactionServer).GetRawUnBondTransaction(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pactus.Transaction/GetRawUnBondTransaction", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TransactionServer).GetRawUnBondTransaction(ctx, req.(*GetRawUnBondTransactionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Transaction_GetRawWithdrawTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetRawWithdrawTransactionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TransactionServer).GetRawWithdrawTransaction(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pactus.Transaction/GetRawWithdrawTransaction", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TransactionServer).GetRawWithdrawTransaction(ctx, req.(*GetRawWithdrawTransactionRequest)) + } + return interceptor(ctx, in, info, handler) +} + // Transaction_ServiceDesc is the grpc.ServiceDesc for Transaction service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -169,6 +297,22 @@ var Transaction_ServiceDesc = grpc.ServiceDesc{ MethodName: "SendRawTransaction", Handler: _Transaction_SendRawTransaction_Handler, }, + { + MethodName: "GetRawTransferTransaction", + Handler: _Transaction_GetRawTransferTransaction_Handler, + }, + { + MethodName: "GetRawBondTransaction", + Handler: _Transaction_GetRawBondTransaction_Handler, + }, + { + MethodName: "GetRawUnBondTransaction", + Handler: _Transaction_GetRawUnBondTransaction_Handler, + }, + { + MethodName: "GetRawWithdrawTransaction", + Handler: _Transaction_GetRawWithdrawTransaction_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "transaction.proto", diff --git a/www/grpc/gen/java/pactus/transaction/TransactionGrpc.java b/www/grpc/gen/java/pactus/transaction/TransactionGrpc.java index f039f4b79..493520fa7 100644 --- a/www/grpc/gen/java/pactus/transaction/TransactionGrpc.java +++ b/www/grpc/gen/java/pactus/transaction/TransactionGrpc.java @@ -108,6 +108,130 @@ pactus.transaction.TransactionOuterClass.SendRawTransactionResponse> getSendRawT return getSendRawTransactionMethod; } + private static volatile io.grpc.MethodDescriptor getGetRawTransferTransactionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRawTransferTransaction", + requestType = pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest.class, + responseType = pactus.transaction.TransactionOuterClass.GetRawTransactionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetRawTransferTransactionMethod() { + io.grpc.MethodDescriptor getGetRawTransferTransactionMethod; + if ((getGetRawTransferTransactionMethod = TransactionGrpc.getGetRawTransferTransactionMethod) == null) { + synchronized (TransactionGrpc.class) { + if ((getGetRawTransferTransactionMethod = TransactionGrpc.getGetRawTransferTransactionMethod) == null) { + TransactionGrpc.getGetRawTransferTransactionMethod = getGetRawTransferTransactionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRawTransferTransaction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + pactus.transaction.TransactionOuterClass.GetRawTransactionResponse.getDefaultInstance())) + .setSchemaDescriptor(new TransactionMethodDescriptorSupplier("GetRawTransferTransaction")) + .build(); + } + } + } + return getGetRawTransferTransactionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetRawBondTransactionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRawBondTransaction", + requestType = pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest.class, + responseType = pactus.transaction.TransactionOuterClass.GetRawTransactionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetRawBondTransactionMethod() { + io.grpc.MethodDescriptor getGetRawBondTransactionMethod; + if ((getGetRawBondTransactionMethod = TransactionGrpc.getGetRawBondTransactionMethod) == null) { + synchronized (TransactionGrpc.class) { + if ((getGetRawBondTransactionMethod = TransactionGrpc.getGetRawBondTransactionMethod) == null) { + TransactionGrpc.getGetRawBondTransactionMethod = getGetRawBondTransactionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRawBondTransaction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + pactus.transaction.TransactionOuterClass.GetRawTransactionResponse.getDefaultInstance())) + .setSchemaDescriptor(new TransactionMethodDescriptorSupplier("GetRawBondTransaction")) + .build(); + } + } + } + return getGetRawBondTransactionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetRawUnBondTransactionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRawUnBondTransaction", + requestType = pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest.class, + responseType = pactus.transaction.TransactionOuterClass.GetRawTransactionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetRawUnBondTransactionMethod() { + io.grpc.MethodDescriptor getGetRawUnBondTransactionMethod; + if ((getGetRawUnBondTransactionMethod = TransactionGrpc.getGetRawUnBondTransactionMethod) == null) { + synchronized (TransactionGrpc.class) { + if ((getGetRawUnBondTransactionMethod = TransactionGrpc.getGetRawUnBondTransactionMethod) == null) { + TransactionGrpc.getGetRawUnBondTransactionMethod = getGetRawUnBondTransactionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRawUnBondTransaction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + pactus.transaction.TransactionOuterClass.GetRawTransactionResponse.getDefaultInstance())) + .setSchemaDescriptor(new TransactionMethodDescriptorSupplier("GetRawUnBondTransaction")) + .build(); + } + } + } + return getGetRawUnBondTransactionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetRawWithdrawTransactionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRawWithdrawTransaction", + requestType = pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest.class, + responseType = pactus.transaction.TransactionOuterClass.GetRawTransactionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetRawWithdrawTransactionMethod() { + io.grpc.MethodDescriptor getGetRawWithdrawTransactionMethod; + if ((getGetRawWithdrawTransactionMethod = TransactionGrpc.getGetRawWithdrawTransactionMethod) == null) { + synchronized (TransactionGrpc.class) { + if ((getGetRawWithdrawTransactionMethod = TransactionGrpc.getGetRawWithdrawTransactionMethod) == null) { + TransactionGrpc.getGetRawWithdrawTransactionMethod = getGetRawWithdrawTransactionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRawWithdrawTransaction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + pactus.transaction.TransactionOuterClass.GetRawTransactionResponse.getDefaultInstance())) + .setSchemaDescriptor(new TransactionMethodDescriptorSupplier("GetRawWithdrawTransaction")) + .build(); + } + } + } + return getGetRawWithdrawTransactionMethod; + } + /** * Creates a new async stub that supports all call types for the service */ @@ -177,6 +301,34 @@ public void sendRawTransaction(pactus.transaction.TransactionOuterClass.SendRawT io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSendRawTransactionMethod(), responseObserver); } + /** + */ + public void getRawTransferTransaction(pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRawTransferTransactionMethod(), responseObserver); + } + + /** + */ + public void getRawBondTransaction(pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRawBondTransactionMethod(), responseObserver); + } + + /** + */ + public void getRawUnBondTransaction(pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRawUnBondTransactionMethod(), responseObserver); + } + + /** + */ + public void getRawWithdrawTransaction(pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRawWithdrawTransactionMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( @@ -200,6 +352,34 @@ public void sendRawTransaction(pactus.transaction.TransactionOuterClass.SendRawT pactus.transaction.TransactionOuterClass.SendRawTransactionRequest, pactus.transaction.TransactionOuterClass.SendRawTransactionResponse>( this, METHODID_SEND_RAW_TRANSACTION))) + .addMethod( + getGetRawTransferTransactionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest, + pactus.transaction.TransactionOuterClass.GetRawTransactionResponse>( + this, METHODID_GET_RAW_TRANSFER_TRANSACTION))) + .addMethod( + getGetRawBondTransactionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest, + pactus.transaction.TransactionOuterClass.GetRawTransactionResponse>( + this, METHODID_GET_RAW_BOND_TRANSACTION))) + .addMethod( + getGetRawUnBondTransactionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest, + pactus.transaction.TransactionOuterClass.GetRawTransactionResponse>( + this, METHODID_GET_RAW_UN_BOND_TRANSACTION))) + .addMethod( + getGetRawWithdrawTransactionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest, + pactus.transaction.TransactionOuterClass.GetRawTransactionResponse>( + this, METHODID_GET_RAW_WITHDRAW_TRANSACTION))) .build(); } } @@ -241,6 +421,38 @@ public void sendRawTransaction(pactus.transaction.TransactionOuterClass.SendRawT io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSendRawTransactionMethod(), getCallOptions()), request, responseObserver); } + + /** + */ + public void getRawTransferTransaction(pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRawTransferTransactionMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void getRawBondTransaction(pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRawBondTransactionMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void getRawUnBondTransaction(pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRawUnBondTransactionMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void getRawWithdrawTransaction(pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRawWithdrawTransactionMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -277,6 +489,34 @@ public pactus.transaction.TransactionOuterClass.SendRawTransactionResponse sendR return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSendRawTransactionMethod(), getCallOptions(), request); } + + /** + */ + public pactus.transaction.TransactionOuterClass.GetRawTransactionResponse getRawTransferTransaction(pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRawTransferTransactionMethod(), getCallOptions(), request); + } + + /** + */ + public pactus.transaction.TransactionOuterClass.GetRawTransactionResponse getRawBondTransaction(pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRawBondTransactionMethod(), getCallOptions(), request); + } + + /** + */ + public pactus.transaction.TransactionOuterClass.GetRawTransactionResponse getRawUnBondTransaction(pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRawUnBondTransactionMethod(), getCallOptions(), request); + } + + /** + */ + public pactus.transaction.TransactionOuterClass.GetRawTransactionResponse getRawWithdrawTransaction(pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRawWithdrawTransactionMethod(), getCallOptions(), request); + } } /** @@ -316,11 +556,47 @@ public com.google.common.util.concurrent.ListenableFuture getRawTransferTransaction( + pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRawTransferTransactionMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getRawBondTransaction( + pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRawBondTransactionMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getRawUnBondTransaction( + pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRawUnBondTransactionMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getRawWithdrawTransaction( + pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRawWithdrawTransactionMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_TRANSACTION = 0; private static final int METHODID_CALCULATE_FEE = 1; private static final int METHODID_SEND_RAW_TRANSACTION = 2; + private static final int METHODID_GET_RAW_TRANSFER_TRANSACTION = 3; + private static final int METHODID_GET_RAW_BOND_TRANSACTION = 4; + private static final int METHODID_GET_RAW_UN_BOND_TRANSACTION = 5; + private static final int METHODID_GET_RAW_WITHDRAW_TRANSACTION = 6; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -351,6 +627,22 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.sendRawTransaction((pactus.transaction.TransactionOuterClass.SendRawTransactionRequest) 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); + break; + case METHODID_GET_RAW_BOND_TRANSACTION: + serviceImpl.getRawBondTransaction((pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_RAW_UN_BOND_TRANSACTION: + serviceImpl.getRawUnBondTransaction((pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_RAW_WITHDRAW_TRANSACTION: + serviceImpl.getRawWithdrawTransaction((pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -415,6 +707,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetTransactionMethod()) .addMethod(getCalculateFeeMethod()) .addMethod(getSendRawTransactionMethod()) + .addMethod(getGetRawTransferTransactionMethod()) + .addMethod(getGetRawBondTransactionMethod()) + .addMethod(getGetRawUnBondTransactionMethod()) + .addMethod(getGetRawWithdrawTransactionMethod()) .build(); } } diff --git a/www/grpc/gen/java/pactus/transaction/TransactionOuterClass.java b/www/grpc/gen/java/pactus/transaction/TransactionOuterClass.java index fbd7d8c31..bc89b5820 100644 --- a/www/grpc/gen/java/pactus/transaction/TransactionOuterClass.java +++ b/www/grpc/gen/java/pactus/transaction/TransactionOuterClass.java @@ -3579,6 +3579,4574 @@ public pactus.transaction.TransactionOuterClass.SendRawTransactionResponse getDe } + public interface GetRawTransferTransactionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:pactus.GetRawTransferTransactionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 lock_time = 1 [json_name = "lockTime"]; + * @return The lockTime. + */ + int getLockTime(); + + /** + * string sender = 2 [json_name = "sender"]; + * @return The sender. + */ + java.lang.String getSender(); + /** + * string sender = 2 [json_name = "sender"]; + * @return The bytes for sender. + */ + com.google.protobuf.ByteString + getSenderBytes(); + + /** + * string receiver = 3 [json_name = "receiver"]; + * @return The receiver. + */ + java.lang.String getReceiver(); + /** + * string receiver = 3 [json_name = "receiver"]; + * @return The bytes for receiver. + */ + com.google.protobuf.ByteString + getReceiverBytes(); + + /** + * int64 amount = 4 [json_name = "amount"]; + * @return The amount. + */ + long getAmount(); + + /** + * int64 fee = 5 [json_name = "fee"]; + * @return The fee. + */ + long getFee(); + + /** + * string memo = 6 [json_name = "memo"]; + * @return The memo. + */ + java.lang.String getMemo(); + /** + * string memo = 6 [json_name = "memo"]; + * @return The bytes for memo. + */ + com.google.protobuf.ByteString + getMemoBytes(); + } + /** + * Protobuf type {@code pactus.GetRawTransferTransactionRequest} + */ + public static final class GetRawTransferTransactionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pactus.GetRawTransferTransactionRequest) + GetRawTransferTransactionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetRawTransferTransactionRequest.newBuilder() to construct. + private GetRawTransferTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetRawTransferTransactionRequest() { + sender_ = ""; + receiver_ = ""; + memo_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetRawTransferTransactionRequest(); + } + + @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_GetRawTransferTransactionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawTransferTransactionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest.class, pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest.Builder.class); + } + + public static final int LOCK_TIME_FIELD_NUMBER = 1; + private int lockTime_; + /** + * uint32 lock_time = 1 [json_name = "lockTime"]; + * @return The lockTime. + */ + @java.lang.Override + public int getLockTime() { + return lockTime_; + } + + public static final int SENDER_FIELD_NUMBER = 2; + private volatile java.lang.Object sender_; + /** + * string sender = 2 [json_name = "sender"]; + * @return The sender. + */ + @java.lang.Override + public java.lang.String getSender() { + java.lang.Object ref = sender_; + 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(); + sender_ = s; + return s; + } + } + /** + * string sender = 2 [json_name = "sender"]; + * @return The bytes for sender. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSenderBytes() { + java.lang.Object ref = sender_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sender_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RECEIVER_FIELD_NUMBER = 3; + private volatile java.lang.Object receiver_; + /** + * string receiver = 3 [json_name = "receiver"]; + * @return The receiver. + */ + @java.lang.Override + public java.lang.String getReceiver() { + java.lang.Object ref = receiver_; + 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(); + receiver_ = s; + return s; + } + } + /** + * string receiver = 3 [json_name = "receiver"]; + * @return The bytes for receiver. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getReceiverBytes() { + java.lang.Object ref = receiver_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + receiver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AMOUNT_FIELD_NUMBER = 4; + private long amount_; + /** + * int64 amount = 4 [json_name = "amount"]; + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + public static final int FEE_FIELD_NUMBER = 5; + private long fee_; + /** + * int64 fee = 5 [json_name = "fee"]; + * @return The fee. + */ + @java.lang.Override + public long getFee() { + return fee_; + } + + public static final int MEMO_FIELD_NUMBER = 6; + private volatile java.lang.Object memo_; + /** + * string memo = 6 [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; + } + } + /** + * string memo = 6 [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; + } + } + + 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(sender_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sender_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(receiver_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, receiver_); + } + if (amount_ != 0L) { + output.writeInt64(4, amount_); + } + if (fee_ != 0L) { + output.writeInt64(5, fee_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, memo_); + } + 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(sender_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sender_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(receiver_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, receiver_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, amount_); + } + if (fee_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, fee_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, memo_); + } + 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.GetRawTransferTransactionRequest)) { + return super.equals(obj); + } + pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest other = (pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest) obj; + + if (getLockTime() + != other.getLockTime()) return false; + if (!getSender() + .equals(other.getSender())) return false; + if (!getReceiver() + .equals(other.getReceiver())) return false; + if (getAmount() + != other.getAmount()) return false; + if (getFee() + != other.getFee()) return false; + if (!getMemo() + .equals(other.getMemo())) return false; + 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) + SENDER_FIELD_NUMBER; + hash = (53 * hash) + getSender().hashCode(); + hash = (37 * hash) + RECEIVER_FIELD_NUMBER; + hash = (53 * hash) + getReceiver().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + FEE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFee()); + hash = (37 * hash) + MEMO_FIELD_NUMBER; + hash = (53 * hash) + getMemo().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest 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.GetRawTransferTransactionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest 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.GetRawTransferTransactionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest 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.GetRawTransferTransactionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest 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.GetRawTransferTransactionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest 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.GetRawTransferTransactionRequest 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; + } + /** + * Protobuf type {@code pactus.GetRawTransferTransactionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pactus.GetRawTransferTransactionRequest) + pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawTransferTransactionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawTransferTransactionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest.class, pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest.Builder.class); + } + + // Construct using pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + lockTime_ = 0; + + sender_ = ""; + + receiver_ = ""; + + amount_ = 0L; + + fee_ = 0L; + + memo_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawTransferTransactionRequest_descriptor; + } + + @java.lang.Override + public pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest getDefaultInstanceForType() { + return pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest.getDefaultInstance(); + } + + @java.lang.Override + public pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest build() { + pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest buildPartial() { + pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest result = new pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest(this); + result.lockTime_ = lockTime_; + result.sender_ = sender_; + result.receiver_ = receiver_; + result.amount_ = amount_; + result.fee_ = fee_; + result.memo_ = memo_; + 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.GetRawTransferTransactionRequest) { + return mergeFrom((pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest other) { + if (other == pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest.getDefaultInstance()) return this; + if (other.getLockTime() != 0) { + setLockTime(other.getLockTime()); + } + if (!other.getSender().isEmpty()) { + sender_ = other.sender_; + onChanged(); + } + if (!other.getReceiver().isEmpty()) { + receiver_ = other.receiver_; + onChanged(); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (other.getFee() != 0L) { + setFee(other.getFee()); + } + if (!other.getMemo().isEmpty()) { + memo_ = other.memo_; + onChanged(); + } + 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: { + sender_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + receiver_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + amount_ = input.readInt64(); + + break; + } // case 32 + case 40: { + fee_ = input.readInt64(); + + break; + } // case 40 + case 50: { + memo_ = input.readStringRequireUtf8(); + + break; + } // case 50 + 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 lockTime_ ; + /** + * uint32 lock_time = 1 [json_name = "lockTime"]; + * @return The lockTime. + */ + @java.lang.Override + public int getLockTime() { + return lockTime_; + } + /** + * 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; + } + /** + * uint32 lock_time = 1 [json_name = "lockTime"]; + * @return This builder for chaining. + */ + public Builder clearLockTime() { + + lockTime_ = 0; + onChanged(); + return this; + } + + private java.lang.Object sender_ = ""; + /** + * string sender = 2 [json_name = "sender"]; + * @return The sender. + */ + public java.lang.String getSender() { + java.lang.Object ref = sender_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sender_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string sender = 2 [json_name = "sender"]; + * @return The bytes for sender. + */ + public com.google.protobuf.ByteString + getSenderBytes() { + java.lang.Object ref = sender_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sender_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string sender = 2 [json_name = "sender"]; + * @param value The sender to set. + * @return This builder for chaining. + */ + public Builder setSender( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sender_ = value; + onChanged(); + return this; + } + /** + * string sender = 2 [json_name = "sender"]; + * @return This builder for chaining. + */ + public Builder clearSender() { + + sender_ = getDefaultInstance().getSender(); + onChanged(); + return this; + } + /** + * string sender = 2 [json_name = "sender"]; + * @param value The bytes for sender to set. + * @return This builder for chaining. + */ + public Builder setSenderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sender_ = value; + onChanged(); + return this; + } + + private java.lang.Object receiver_ = ""; + /** + * string receiver = 3 [json_name = "receiver"]; + * @return The receiver. + */ + public java.lang.String getReceiver() { + java.lang.Object ref = receiver_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + receiver_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string receiver = 3 [json_name = "receiver"]; + * @return The bytes for receiver. + */ + public com.google.protobuf.ByteString + getReceiverBytes() { + java.lang.Object ref = receiver_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + receiver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string receiver = 3 [json_name = "receiver"]; + * @param value The receiver to set. + * @return This builder for chaining. + */ + public Builder setReceiver( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + receiver_ = value; + onChanged(); + return this; + } + /** + * string receiver = 3 [json_name = "receiver"]; + * @return This builder for chaining. + */ + public Builder clearReceiver() { + + receiver_ = getDefaultInstance().getReceiver(); + onChanged(); + return this; + } + /** + * string receiver = 3 [json_name = "receiver"]; + * @param value The bytes for receiver to set. + * @return This builder for chaining. + */ + public Builder setReceiverBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + receiver_ = value; + onChanged(); + return this; + } + + private long amount_ ; + /** + * int64 amount = 4 [json_name = "amount"]; + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + /** + * int64 amount = 4 [json_name = "amount"]; + * @param value The amount to set. + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } + /** + * int64 amount = 4 [json_name = "amount"]; + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; + } + + private long fee_ ; + /** + * int64 fee = 5 [json_name = "fee"]; + * @return The fee. + */ + @java.lang.Override + public long getFee() { + return fee_; + } + /** + * int64 fee = 5 [json_name = "fee"]; + * @param value The fee to set. + * @return This builder for chaining. + */ + public Builder setFee(long value) { + + fee_ = value; + onChanged(); + return this; + } + /** + * int64 fee = 5 [json_name = "fee"]; + * @return This builder for chaining. + */ + public Builder clearFee() { + + fee_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object memo_ = ""; + /** + * string memo = 6 [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; + } + } + /** + * string memo = 6 [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; + } + } + /** + * string memo = 6 [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; + } + /** + * string memo = 6 [json_name = "memo"]; + * @return This builder for chaining. + */ + public Builder clearMemo() { + + memo_ = getDefaultInstance().getMemo(); + onChanged(); + return this; + } + /** + * string memo = 6 [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; + } + @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.GetRawTransferTransactionRequest) + } + + // @@protoc_insertion_point(class_scope:pactus.GetRawTransferTransactionRequest) + private static final pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest(); + } + + public static pactus.transaction.TransactionOuterClass.GetRawTransferTransactionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRawTransferTransactionRequest 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.GetRawTransferTransactionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetRawBondTransactionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:pactus.GetRawBondTransactionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 lock_time = 1 [json_name = "lockTime"]; + * @return The lockTime. + */ + int getLockTime(); + + /** + * string sender = 2 [json_name = "sender"]; + * @return The sender. + */ + java.lang.String getSender(); + /** + * string sender = 2 [json_name = "sender"]; + * @return The bytes for sender. + */ + com.google.protobuf.ByteString + getSenderBytes(); + + /** + * string receiver = 3 [json_name = "receiver"]; + * @return The receiver. + */ + java.lang.String getReceiver(); + /** + * string receiver = 3 [json_name = "receiver"]; + * @return The bytes for receiver. + */ + com.google.protobuf.ByteString + getReceiverBytes(); + + /** + * int64 stake = 4 [json_name = "stake"]; + * @return The stake. + */ + long getStake(); + + /** + * string public_key = 5 [json_name = "publicKey"]; + * @return The publicKey. + */ + java.lang.String getPublicKey(); + /** + * string public_key = 5 [json_name = "publicKey"]; + * @return The bytes for publicKey. + */ + com.google.protobuf.ByteString + getPublicKeyBytes(); + + /** + * int64 fee = 6 [json_name = "fee"]; + * @return The fee. + */ + long getFee(); + + /** + * string memo = 7 [json_name = "memo"]; + * @return The memo. + */ + java.lang.String getMemo(); + /** + * string memo = 7 [json_name = "memo"]; + * @return The bytes for memo. + */ + com.google.protobuf.ByteString + getMemoBytes(); + } + /** + * Protobuf type {@code pactus.GetRawBondTransactionRequest} + */ + public static final class GetRawBondTransactionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pactus.GetRawBondTransactionRequest) + GetRawBondTransactionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetRawBondTransactionRequest.newBuilder() to construct. + private GetRawBondTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetRawBondTransactionRequest() { + sender_ = ""; + receiver_ = ""; + publicKey_ = ""; + memo_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetRawBondTransactionRequest(); + } + + @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_GetRawBondTransactionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawBondTransactionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest.class, pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest.Builder.class); + } + + public static final int LOCK_TIME_FIELD_NUMBER = 1; + private int lockTime_; + /** + * uint32 lock_time = 1 [json_name = "lockTime"]; + * @return The lockTime. + */ + @java.lang.Override + public int getLockTime() { + return lockTime_; + } + + public static final int SENDER_FIELD_NUMBER = 2; + private volatile java.lang.Object sender_; + /** + * string sender = 2 [json_name = "sender"]; + * @return The sender. + */ + @java.lang.Override + public java.lang.String getSender() { + java.lang.Object ref = sender_; + 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(); + sender_ = s; + return s; + } + } + /** + * string sender = 2 [json_name = "sender"]; + * @return The bytes for sender. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSenderBytes() { + java.lang.Object ref = sender_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sender_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RECEIVER_FIELD_NUMBER = 3; + private volatile java.lang.Object receiver_; + /** + * string receiver = 3 [json_name = "receiver"]; + * @return The receiver. + */ + @java.lang.Override + public java.lang.String getReceiver() { + java.lang.Object ref = receiver_; + 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(); + receiver_ = s; + return s; + } + } + /** + * string receiver = 3 [json_name = "receiver"]; + * @return The bytes for receiver. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getReceiverBytes() { + java.lang.Object ref = receiver_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + receiver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STAKE_FIELD_NUMBER = 4; + private long stake_; + /** + * int64 stake = 4 [json_name = "stake"]; + * @return The stake. + */ + @java.lang.Override + public long getStake() { + return stake_; + } + + public static final int PUBLIC_KEY_FIELD_NUMBER = 5; + private volatile java.lang.Object publicKey_; + /** + * string public_key = 5 [json_name = "publicKey"]; + * @return The publicKey. + */ + @java.lang.Override + public java.lang.String getPublicKey() { + java.lang.Object ref = publicKey_; + 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(); + publicKey_ = s; + return s; + } + } + /** + * string public_key = 5 [json_name = "publicKey"]; + * @return The bytes for publicKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPublicKeyBytes() { + java.lang.Object ref = publicKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + publicKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEE_FIELD_NUMBER = 6; + private long fee_; + /** + * int64 fee = 6 [json_name = "fee"]; + * @return The fee. + */ + @java.lang.Override + public long getFee() { + return fee_; + } + + public static final int MEMO_FIELD_NUMBER = 7; + private volatile java.lang.Object memo_; + /** + * string memo = 7 [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; + } + } + /** + * string memo = 7 [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; + } + } + + 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(sender_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sender_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(receiver_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, receiver_); + } + if (stake_ != 0L) { + output.writeInt64(4, stake_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, publicKey_); + } + if (fee_ != 0L) { + output.writeInt64(6, fee_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, memo_); + } + 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(sender_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sender_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(receiver_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, receiver_); + } + if (stake_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, stake_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, publicKey_); + } + if (fee_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, fee_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, memo_); + } + 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.GetRawBondTransactionRequest)) { + return super.equals(obj); + } + pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest other = (pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest) obj; + + if (getLockTime() + != other.getLockTime()) return false; + if (!getSender() + .equals(other.getSender())) return false; + if (!getReceiver() + .equals(other.getReceiver())) return false; + if (getStake() + != other.getStake()) return false; + if (!getPublicKey() + .equals(other.getPublicKey())) return false; + if (getFee() + != other.getFee()) return false; + if (!getMemo() + .equals(other.getMemo())) return false; + 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) + SENDER_FIELD_NUMBER; + hash = (53 * hash) + getSender().hashCode(); + hash = (37 * hash) + RECEIVER_FIELD_NUMBER; + hash = (53 * hash) + getReceiver().hashCode(); + hash = (37 * hash) + STAKE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStake()); + hash = (37 * hash) + PUBLIC_KEY_FIELD_NUMBER; + hash = (53 * hash) + getPublicKey().hashCode(); + hash = (37 * hash) + FEE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFee()); + hash = (37 * hash) + MEMO_FIELD_NUMBER; + hash = (53 * hash) + getMemo().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest 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.GetRawBondTransactionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest 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.GetRawBondTransactionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest 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.GetRawBondTransactionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest 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.GetRawBondTransactionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest 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.GetRawBondTransactionRequest 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; + } + /** + * Protobuf type {@code pactus.GetRawBondTransactionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pactus.GetRawBondTransactionRequest) + pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawBondTransactionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawBondTransactionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest.class, pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest.Builder.class); + } + + // Construct using pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + lockTime_ = 0; + + sender_ = ""; + + receiver_ = ""; + + stake_ = 0L; + + publicKey_ = ""; + + fee_ = 0L; + + memo_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawBondTransactionRequest_descriptor; + } + + @java.lang.Override + public pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest getDefaultInstanceForType() { + return pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest.getDefaultInstance(); + } + + @java.lang.Override + public pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest build() { + pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest buildPartial() { + pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest result = new pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest(this); + result.lockTime_ = lockTime_; + result.sender_ = sender_; + result.receiver_ = receiver_; + result.stake_ = stake_; + result.publicKey_ = publicKey_; + result.fee_ = fee_; + result.memo_ = memo_; + 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.GetRawBondTransactionRequest) { + return mergeFrom((pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest other) { + if (other == pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest.getDefaultInstance()) return this; + if (other.getLockTime() != 0) { + setLockTime(other.getLockTime()); + } + if (!other.getSender().isEmpty()) { + sender_ = other.sender_; + onChanged(); + } + if (!other.getReceiver().isEmpty()) { + receiver_ = other.receiver_; + onChanged(); + } + if (other.getStake() != 0L) { + setStake(other.getStake()); + } + if (!other.getPublicKey().isEmpty()) { + publicKey_ = other.publicKey_; + onChanged(); + } + if (other.getFee() != 0L) { + setFee(other.getFee()); + } + if (!other.getMemo().isEmpty()) { + memo_ = other.memo_; + onChanged(); + } + 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: { + sender_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + receiver_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + stake_ = input.readInt64(); + + break; + } // case 32 + case 42: { + publicKey_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: { + fee_ = input.readInt64(); + + break; + } // case 48 + case 58: { + memo_ = input.readStringRequireUtf8(); + + 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 lockTime_ ; + /** + * uint32 lock_time = 1 [json_name = "lockTime"]; + * @return The lockTime. + */ + @java.lang.Override + public int getLockTime() { + return lockTime_; + } + /** + * 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; + } + /** + * uint32 lock_time = 1 [json_name = "lockTime"]; + * @return This builder for chaining. + */ + public Builder clearLockTime() { + + lockTime_ = 0; + onChanged(); + return this; + } + + private java.lang.Object sender_ = ""; + /** + * string sender = 2 [json_name = "sender"]; + * @return The sender. + */ + public java.lang.String getSender() { + java.lang.Object ref = sender_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sender_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string sender = 2 [json_name = "sender"]; + * @return The bytes for sender. + */ + public com.google.protobuf.ByteString + getSenderBytes() { + java.lang.Object ref = sender_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sender_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string sender = 2 [json_name = "sender"]; + * @param value The sender to set. + * @return This builder for chaining. + */ + public Builder setSender( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sender_ = value; + onChanged(); + return this; + } + /** + * string sender = 2 [json_name = "sender"]; + * @return This builder for chaining. + */ + public Builder clearSender() { + + sender_ = getDefaultInstance().getSender(); + onChanged(); + return this; + } + /** + * string sender = 2 [json_name = "sender"]; + * @param value The bytes for sender to set. + * @return This builder for chaining. + */ + public Builder setSenderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sender_ = value; + onChanged(); + return this; + } + + private java.lang.Object receiver_ = ""; + /** + * string receiver = 3 [json_name = "receiver"]; + * @return The receiver. + */ + public java.lang.String getReceiver() { + java.lang.Object ref = receiver_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + receiver_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string receiver = 3 [json_name = "receiver"]; + * @return The bytes for receiver. + */ + public com.google.protobuf.ByteString + getReceiverBytes() { + java.lang.Object ref = receiver_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + receiver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string receiver = 3 [json_name = "receiver"]; + * @param value The receiver to set. + * @return This builder for chaining. + */ + public Builder setReceiver( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + receiver_ = value; + onChanged(); + return this; + } + /** + * string receiver = 3 [json_name = "receiver"]; + * @return This builder for chaining. + */ + public Builder clearReceiver() { + + receiver_ = getDefaultInstance().getReceiver(); + onChanged(); + return this; + } + /** + * string receiver = 3 [json_name = "receiver"]; + * @param value The bytes for receiver to set. + * @return This builder for chaining. + */ + public Builder setReceiverBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + receiver_ = value; + onChanged(); + return this; + } + + private long stake_ ; + /** + * int64 stake = 4 [json_name = "stake"]; + * @return The stake. + */ + @java.lang.Override + public long getStake() { + return stake_; + } + /** + * int64 stake = 4 [json_name = "stake"]; + * @param value The stake to set. + * @return This builder for chaining. + */ + public Builder setStake(long value) { + + stake_ = value; + onChanged(); + return this; + } + /** + * int64 stake = 4 [json_name = "stake"]; + * @return This builder for chaining. + */ + public Builder clearStake() { + + stake_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object publicKey_ = ""; + /** + * string public_key = 5 [json_name = "publicKey"]; + * @return The publicKey. + */ + public java.lang.String getPublicKey() { + java.lang.Object ref = publicKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string public_key = 5 [json_name = "publicKey"]; + * @return The bytes for publicKey. + */ + public com.google.protobuf.ByteString + getPublicKeyBytes() { + java.lang.Object ref = publicKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + publicKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string public_key = 5 [json_name = "publicKey"]; + * @param value The publicKey to set. + * @return This builder for chaining. + */ + public Builder setPublicKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + publicKey_ = value; + onChanged(); + return this; + } + /** + * string public_key = 5 [json_name = "publicKey"]; + * @return This builder for chaining. + */ + public Builder clearPublicKey() { + + publicKey_ = getDefaultInstance().getPublicKey(); + onChanged(); + return this; + } + /** + * string public_key = 5 [json_name = "publicKey"]; + * @param value The bytes for publicKey to set. + * @return This builder for chaining. + */ + public Builder setPublicKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publicKey_ = value; + onChanged(); + return this; + } + + private long fee_ ; + /** + * int64 fee = 6 [json_name = "fee"]; + * @return The fee. + */ + @java.lang.Override + public long getFee() { + return fee_; + } + /** + * int64 fee = 6 [json_name = "fee"]; + * @param value The fee to set. + * @return This builder for chaining. + */ + public Builder setFee(long value) { + + fee_ = value; + onChanged(); + return this; + } + /** + * int64 fee = 6 [json_name = "fee"]; + * @return This builder for chaining. + */ + public Builder clearFee() { + + fee_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object memo_ = ""; + /** + * string memo = 7 [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; + } + } + /** + * string memo = 7 [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; + } + } + /** + * string memo = 7 [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; + } + /** + * string memo = 7 [json_name = "memo"]; + * @return This builder for chaining. + */ + public Builder clearMemo() { + + memo_ = getDefaultInstance().getMemo(); + onChanged(); + return this; + } + /** + * string memo = 7 [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; + } + @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.GetRawBondTransactionRequest) + } + + // @@protoc_insertion_point(class_scope:pactus.GetRawBondTransactionRequest) + private static final pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest(); + } + + public static pactus.transaction.TransactionOuterClass.GetRawBondTransactionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRawBondTransactionRequest 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.GetRawBondTransactionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetRawUnBondTransactionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:pactus.GetRawUnBondTransactionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 lock_time = 1 [json_name = "lockTime"]; + * @return The lockTime. + */ + int getLockTime(); + + /** + * string validator_address = 3 [json_name = "validatorAddress"]; + * @return The validatorAddress. + */ + java.lang.String getValidatorAddress(); + /** + * string validator_address = 3 [json_name = "validatorAddress"]; + * @return The bytes for validatorAddress. + */ + com.google.protobuf.ByteString + getValidatorAddressBytes(); + + /** + * string memo = 4 [json_name = "memo"]; + * @return The memo. + */ + java.lang.String getMemo(); + /** + * string memo = 4 [json_name = "memo"]; + * @return The bytes for memo. + */ + com.google.protobuf.ByteString + getMemoBytes(); + } + /** + * Protobuf type {@code pactus.GetRawUnBondTransactionRequest} + */ + public static final class GetRawUnBondTransactionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pactus.GetRawUnBondTransactionRequest) + GetRawUnBondTransactionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetRawUnBondTransactionRequest.newBuilder() to construct. + private GetRawUnBondTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetRawUnBondTransactionRequest() { + validatorAddress_ = ""; + memo_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetRawUnBondTransactionRequest(); + } + + @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_GetRawUnBondTransactionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawUnBondTransactionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest.class, pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest.Builder.class); + } + + public static final int LOCK_TIME_FIELD_NUMBER = 1; + private int lockTime_; + /** + * uint32 lock_time = 1 [json_name = "lockTime"]; + * @return The lockTime. + */ + @java.lang.Override + public int getLockTime() { + return lockTime_; + } + + public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 3; + private volatile java.lang.Object validatorAddress_; + /** + * string validator_address = 3 [json_name = "validatorAddress"]; + * @return The validatorAddress. + */ + @java.lang.Override + public java.lang.String getValidatorAddress() { + java.lang.Object ref = validatorAddress_; + 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(); + validatorAddress_ = s; + return s; + } + } + /** + * string validator_address = 3 [json_name = "validatorAddress"]; + * @return The bytes for validatorAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValidatorAddressBytes() { + java.lang.Object ref = validatorAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + validatorAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEMO_FIELD_NUMBER = 4; + private volatile java.lang.Object memo_; + /** + * string memo = 4 [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; + } + } + /** + * string memo = 4 [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; + } + } + + 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(validatorAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, validatorAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, memo_); + } + 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(validatorAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, validatorAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, memo_); + } + 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.GetRawUnBondTransactionRequest)) { + return super.equals(obj); + } + pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest other = (pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest) obj; + + if (getLockTime() + != other.getLockTime()) return false; + if (!getValidatorAddress() + .equals(other.getValidatorAddress())) return false; + if (!getMemo() + .equals(other.getMemo())) return false; + 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) + VALIDATOR_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getValidatorAddress().hashCode(); + hash = (37 * hash) + MEMO_FIELD_NUMBER; + hash = (53 * hash) + getMemo().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest 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.GetRawUnBondTransactionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest 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.GetRawUnBondTransactionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest 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.GetRawUnBondTransactionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest 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.GetRawUnBondTransactionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest 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.GetRawUnBondTransactionRequest 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; + } + /** + * Protobuf type {@code pactus.GetRawUnBondTransactionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pactus.GetRawUnBondTransactionRequest) + pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawUnBondTransactionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawUnBondTransactionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest.class, pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest.Builder.class); + } + + // Construct using pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + lockTime_ = 0; + + validatorAddress_ = ""; + + memo_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawUnBondTransactionRequest_descriptor; + } + + @java.lang.Override + public pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest getDefaultInstanceForType() { + return pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest.getDefaultInstance(); + } + + @java.lang.Override + public pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest build() { + pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest buildPartial() { + pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest result = new pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest(this); + result.lockTime_ = lockTime_; + result.validatorAddress_ = validatorAddress_; + result.memo_ = memo_; + 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.GetRawUnBondTransactionRequest) { + return mergeFrom((pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest other) { + if (other == pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest.getDefaultInstance()) return this; + if (other.getLockTime() != 0) { + setLockTime(other.getLockTime()); + } + if (!other.getValidatorAddress().isEmpty()) { + validatorAddress_ = other.validatorAddress_; + onChanged(); + } + if (!other.getMemo().isEmpty()) { + memo_ = other.memo_; + onChanged(); + } + 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 26: { + validatorAddress_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + memo_ = input.readStringRequireUtf8(); + + break; + } // case 34 + 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 lockTime_ ; + /** + * uint32 lock_time = 1 [json_name = "lockTime"]; + * @return The lockTime. + */ + @java.lang.Override + public int getLockTime() { + return lockTime_; + } + /** + * 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; + } + /** + * uint32 lock_time = 1 [json_name = "lockTime"]; + * @return This builder for chaining. + */ + public Builder clearLockTime() { + + lockTime_ = 0; + onChanged(); + return this; + } + + private java.lang.Object validatorAddress_ = ""; + /** + * string validator_address = 3 [json_name = "validatorAddress"]; + * @return The validatorAddress. + */ + public java.lang.String getValidatorAddress() { + java.lang.Object ref = validatorAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + validatorAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string validator_address = 3 [json_name = "validatorAddress"]; + * @return The bytes for validatorAddress. + */ + public com.google.protobuf.ByteString + getValidatorAddressBytes() { + java.lang.Object ref = validatorAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + validatorAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string validator_address = 3 [json_name = "validatorAddress"]; + * @param value The validatorAddress to set. + * @return This builder for chaining. + */ + public Builder setValidatorAddress( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + validatorAddress_ = value; + onChanged(); + return this; + } + /** + * string validator_address = 3 [json_name = "validatorAddress"]; + * @return This builder for chaining. + */ + public Builder clearValidatorAddress() { + + validatorAddress_ = getDefaultInstance().getValidatorAddress(); + onChanged(); + return this; + } + /** + * string validator_address = 3 [json_name = "validatorAddress"]; + * @param value The bytes for validatorAddress to set. + * @return This builder for chaining. + */ + public Builder setValidatorAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + validatorAddress_ = value; + onChanged(); + return this; + } + + private java.lang.Object memo_ = ""; + /** + * string memo = 4 [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; + } + } + /** + * string memo = 4 [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; + } + } + /** + * string memo = 4 [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; + } + /** + * string memo = 4 [json_name = "memo"]; + * @return This builder for chaining. + */ + public Builder clearMemo() { + + memo_ = getDefaultInstance().getMemo(); + onChanged(); + return this; + } + /** + * string memo = 4 [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; + } + @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.GetRawUnBondTransactionRequest) + } + + // @@protoc_insertion_point(class_scope:pactus.GetRawUnBondTransactionRequest) + private static final pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest(); + } + + public static pactus.transaction.TransactionOuterClass.GetRawUnBondTransactionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRawUnBondTransactionRequest 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.GetRawUnBondTransactionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetRawWithdrawTransactionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:pactus.GetRawWithdrawTransactionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 lock_time = 1 [json_name = "lockTime"]; + * @return The lockTime. + */ + int getLockTime(); + + /** + * string validator_address = 3 [json_name = "validatorAddress"]; + * @return The validatorAddress. + */ + java.lang.String getValidatorAddress(); + /** + * string validator_address = 3 [json_name = "validatorAddress"]; + * @return The bytes for validatorAddress. + */ + com.google.protobuf.ByteString + getValidatorAddressBytes(); + + /** + * string account_address = 4 [json_name = "accountAddress"]; + * @return The accountAddress. + */ + java.lang.String getAccountAddress(); + /** + * string account_address = 4 [json_name = "accountAddress"]; + * @return The bytes for accountAddress. + */ + com.google.protobuf.ByteString + getAccountAddressBytes(); + + /** + * int64 fee = 5 [json_name = "fee"]; + * @return The fee. + */ + long getFee(); + + /** + * int64 amount = 6 [json_name = "amount"]; + * @return The amount. + */ + long getAmount(); + + /** + * string memo = 7 [json_name = "memo"]; + * @return The memo. + */ + java.lang.String getMemo(); + /** + * string memo = 7 [json_name = "memo"]; + * @return The bytes for memo. + */ + com.google.protobuf.ByteString + getMemoBytes(); + } + /** + * Protobuf type {@code pactus.GetRawWithdrawTransactionRequest} + */ + public static final class GetRawWithdrawTransactionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pactus.GetRawWithdrawTransactionRequest) + GetRawWithdrawTransactionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetRawWithdrawTransactionRequest.newBuilder() to construct. + private GetRawWithdrawTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetRawWithdrawTransactionRequest() { + validatorAddress_ = ""; + accountAddress_ = ""; + memo_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetRawWithdrawTransactionRequest(); + } + + @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_GetRawWithdrawTransactionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawWithdrawTransactionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest.class, pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest.Builder.class); + } + + public static final int LOCK_TIME_FIELD_NUMBER = 1; + private int lockTime_; + /** + * uint32 lock_time = 1 [json_name = "lockTime"]; + * @return The lockTime. + */ + @java.lang.Override + public int getLockTime() { + return lockTime_; + } + + public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 3; + private volatile java.lang.Object validatorAddress_; + /** + * string validator_address = 3 [json_name = "validatorAddress"]; + * @return The validatorAddress. + */ + @java.lang.Override + public java.lang.String getValidatorAddress() { + java.lang.Object ref = validatorAddress_; + 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(); + validatorAddress_ = s; + return s; + } + } + /** + * string validator_address = 3 [json_name = "validatorAddress"]; + * @return The bytes for validatorAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValidatorAddressBytes() { + java.lang.Object ref = validatorAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + validatorAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCOUNT_ADDRESS_FIELD_NUMBER = 4; + private volatile java.lang.Object accountAddress_; + /** + * string account_address = 4 [json_name = "accountAddress"]; + * @return The accountAddress. + */ + @java.lang.Override + public java.lang.String getAccountAddress() { + java.lang.Object ref = accountAddress_; + 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(); + accountAddress_ = s; + return s; + } + } + /** + * string account_address = 4 [json_name = "accountAddress"]; + * @return The bytes for accountAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAccountAddressBytes() { + java.lang.Object ref = accountAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + accountAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEE_FIELD_NUMBER = 5; + private long fee_; + /** + * int64 fee = 5 [json_name = "fee"]; + * @return The fee. + */ + @java.lang.Override + public long getFee() { + return fee_; + } + + public static final int AMOUNT_FIELD_NUMBER = 6; + private long amount_; + /** + * int64 amount = 6 [json_name = "amount"]; + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + + public static final int MEMO_FIELD_NUMBER = 7; + private volatile java.lang.Object memo_; + /** + * string memo = 7 [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; + } + } + /** + * string memo = 7 [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; + } + } + + 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(validatorAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, validatorAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, accountAddress_); + } + if (fee_ != 0L) { + output.writeInt64(5, fee_); + } + if (amount_ != 0L) { + output.writeInt64(6, amount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, memo_); + } + 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(validatorAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, validatorAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, accountAddress_); + } + if (fee_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, fee_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, amount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, memo_); + } + 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.GetRawWithdrawTransactionRequest)) { + return super.equals(obj); + } + pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest other = (pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest) obj; + + if (getLockTime() + != other.getLockTime()) return false; + if (!getValidatorAddress() + .equals(other.getValidatorAddress())) return false; + if (!getAccountAddress() + .equals(other.getAccountAddress())) return false; + if (getFee() + != other.getFee()) return false; + if (getAmount() + != other.getAmount()) return false; + if (!getMemo() + .equals(other.getMemo())) return false; + 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) + VALIDATOR_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getValidatorAddress().hashCode(); + hash = (37 * hash) + ACCOUNT_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAccountAddress().hashCode(); + hash = (37 * hash) + FEE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFee()); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + MEMO_FIELD_NUMBER; + hash = (53 * hash) + getMemo().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest 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.GetRawWithdrawTransactionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest 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.GetRawWithdrawTransactionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest 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.GetRawWithdrawTransactionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest 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.GetRawWithdrawTransactionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest 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.GetRawWithdrawTransactionRequest 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; + } + /** + * Protobuf type {@code pactus.GetRawWithdrawTransactionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pactus.GetRawWithdrawTransactionRequest) + pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawWithdrawTransactionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawWithdrawTransactionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest.class, pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest.Builder.class); + } + + // Construct using pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + lockTime_ = 0; + + validatorAddress_ = ""; + + accountAddress_ = ""; + + fee_ = 0L; + + amount_ = 0L; + + memo_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawWithdrawTransactionRequest_descriptor; + } + + @java.lang.Override + public pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest getDefaultInstanceForType() { + return pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest.getDefaultInstance(); + } + + @java.lang.Override + public pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest build() { + pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest buildPartial() { + pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest result = new pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest(this); + result.lockTime_ = lockTime_; + result.validatorAddress_ = validatorAddress_; + result.accountAddress_ = accountAddress_; + result.fee_ = fee_; + result.amount_ = amount_; + result.memo_ = memo_; + 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.GetRawWithdrawTransactionRequest) { + return mergeFrom((pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest other) { + if (other == pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest.getDefaultInstance()) return this; + if (other.getLockTime() != 0) { + setLockTime(other.getLockTime()); + } + if (!other.getValidatorAddress().isEmpty()) { + validatorAddress_ = other.validatorAddress_; + onChanged(); + } + if (!other.getAccountAddress().isEmpty()) { + accountAddress_ = other.accountAddress_; + onChanged(); + } + if (other.getFee() != 0L) { + setFee(other.getFee()); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getMemo().isEmpty()) { + memo_ = other.memo_; + onChanged(); + } + 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 26: { + validatorAddress_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + accountAddress_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: { + fee_ = input.readInt64(); + + break; + } // case 40 + case 48: { + amount_ = input.readInt64(); + + break; + } // case 48 + case 58: { + memo_ = input.readStringRequireUtf8(); + + 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 lockTime_ ; + /** + * uint32 lock_time = 1 [json_name = "lockTime"]; + * @return The lockTime. + */ + @java.lang.Override + public int getLockTime() { + return lockTime_; + } + /** + * 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; + } + /** + * uint32 lock_time = 1 [json_name = "lockTime"]; + * @return This builder for chaining. + */ + public Builder clearLockTime() { + + lockTime_ = 0; + onChanged(); + return this; + } + + private java.lang.Object validatorAddress_ = ""; + /** + * string validator_address = 3 [json_name = "validatorAddress"]; + * @return The validatorAddress. + */ + public java.lang.String getValidatorAddress() { + java.lang.Object ref = validatorAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + validatorAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string validator_address = 3 [json_name = "validatorAddress"]; + * @return The bytes for validatorAddress. + */ + public com.google.protobuf.ByteString + getValidatorAddressBytes() { + java.lang.Object ref = validatorAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + validatorAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string validator_address = 3 [json_name = "validatorAddress"]; + * @param value The validatorAddress to set. + * @return This builder for chaining. + */ + public Builder setValidatorAddress( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + validatorAddress_ = value; + onChanged(); + return this; + } + /** + * string validator_address = 3 [json_name = "validatorAddress"]; + * @return This builder for chaining. + */ + public Builder clearValidatorAddress() { + + validatorAddress_ = getDefaultInstance().getValidatorAddress(); + onChanged(); + return this; + } + /** + * string validator_address = 3 [json_name = "validatorAddress"]; + * @param value The bytes for validatorAddress to set. + * @return This builder for chaining. + */ + public Builder setValidatorAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + validatorAddress_ = value; + onChanged(); + return this; + } + + private java.lang.Object accountAddress_ = ""; + /** + * string account_address = 4 [json_name = "accountAddress"]; + * @return The accountAddress. + */ + public java.lang.String getAccountAddress() { + java.lang.Object ref = accountAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accountAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string account_address = 4 [json_name = "accountAddress"]; + * @return The bytes for accountAddress. + */ + public com.google.protobuf.ByteString + getAccountAddressBytes() { + java.lang.Object ref = accountAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + accountAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string account_address = 4 [json_name = "accountAddress"]; + * @param value The accountAddress to set. + * @return This builder for chaining. + */ + public Builder setAccountAddress( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + accountAddress_ = value; + onChanged(); + return this; + } + /** + * string account_address = 4 [json_name = "accountAddress"]; + * @return This builder for chaining. + */ + public Builder clearAccountAddress() { + + accountAddress_ = getDefaultInstance().getAccountAddress(); + onChanged(); + return this; + } + /** + * string account_address = 4 [json_name = "accountAddress"]; + * @param value The bytes for accountAddress to set. + * @return This builder for chaining. + */ + public Builder setAccountAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + accountAddress_ = value; + onChanged(); + return this; + } + + private long fee_ ; + /** + * int64 fee = 5 [json_name = "fee"]; + * @return The fee. + */ + @java.lang.Override + public long getFee() { + return fee_; + } + /** + * int64 fee = 5 [json_name = "fee"]; + * @param value The fee to set. + * @return This builder for chaining. + */ + public Builder setFee(long value) { + + fee_ = value; + onChanged(); + return this; + } + /** + * int64 fee = 5 [json_name = "fee"]; + * @return This builder for chaining. + */ + public Builder clearFee() { + + fee_ = 0L; + onChanged(); + return this; + } + + private long amount_ ; + /** + * int64 amount = 6 [json_name = "amount"]; + * @return The amount. + */ + @java.lang.Override + public long getAmount() { + return amount_; + } + /** + * int64 amount = 6 [json_name = "amount"]; + * @param value The amount to set. + * @return This builder for chaining. + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } + /** + * int64 amount = 6 [json_name = "amount"]; + * @return This builder for chaining. + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object memo_ = ""; + /** + * string memo = 7 [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; + } + } + /** + * string memo = 7 [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; + } + } + /** + * string memo = 7 [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; + } + /** + * string memo = 7 [json_name = "memo"]; + * @return This builder for chaining. + */ + public Builder clearMemo() { + + memo_ = getDefaultInstance().getMemo(); + onChanged(); + return this; + } + /** + * string memo = 7 [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; + } + @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.GetRawWithdrawTransactionRequest) + } + + // @@protoc_insertion_point(class_scope:pactus.GetRawWithdrawTransactionRequest) + private static final pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest(); + } + + public static pactus.transaction.TransactionOuterClass.GetRawWithdrawTransactionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRawWithdrawTransactionRequest 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.GetRawWithdrawTransactionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetRawTransactionResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:pactus.GetRawTransactionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes raw_transaction = 1 [json_name = "rawTransaction"]; + * @return The rawTransaction. + */ + com.google.protobuf.ByteString getRawTransaction(); + } + /** + * Protobuf type {@code pactus.GetRawTransactionResponse} + */ + public static final class GetRawTransactionResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:pactus.GetRawTransactionResponse) + GetRawTransactionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetRawTransactionResponse.newBuilder() to construct. + private GetRawTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetRawTransactionResponse() { + rawTransaction_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetRawTransactionResponse(); + } + + @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_GetRawTransactionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawTransactionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pactus.transaction.TransactionOuterClass.GetRawTransactionResponse.class, pactus.transaction.TransactionOuterClass.GetRawTransactionResponse.Builder.class); + } + + public static final int RAW_TRANSACTION_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString rawTransaction_; + /** + * bytes raw_transaction = 1 [json_name = "rawTransaction"]; + * @return The rawTransaction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRawTransaction() { + return rawTransaction_; + } + + 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 (!rawTransaction_.isEmpty()) { + output.writeBytes(1, rawTransaction_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!rawTransaction_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, rawTransaction_); + } + 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.GetRawTransactionResponse)) { + return super.equals(obj); + } + pactus.transaction.TransactionOuterClass.GetRawTransactionResponse other = (pactus.transaction.TransactionOuterClass.GetRawTransactionResponse) obj; + + if (!getRawTransaction() + .equals(other.getRawTransaction())) return false; + 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) + RAW_TRANSACTION_FIELD_NUMBER; + hash = (53 * hash) + getRawTransaction().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static pactus.transaction.TransactionOuterClass.GetRawTransactionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pactus.transaction.TransactionOuterClass.GetRawTransactionResponse 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.GetRawTransactionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pactus.transaction.TransactionOuterClass.GetRawTransactionResponse 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.GetRawTransactionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static pactus.transaction.TransactionOuterClass.GetRawTransactionResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static pactus.transaction.TransactionOuterClass.GetRawTransactionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pactus.transaction.TransactionOuterClass.GetRawTransactionResponse 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.GetRawTransactionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static pactus.transaction.TransactionOuterClass.GetRawTransactionResponse 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.GetRawTransactionResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static pactus.transaction.TransactionOuterClass.GetRawTransactionResponse 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.GetRawTransactionResponse 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; + } + /** + * Protobuf type {@code pactus.GetRawTransactionResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:pactus.GetRawTransactionResponse) + pactus.transaction.TransactionOuterClass.GetRawTransactionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawTransactionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawTransactionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + pactus.transaction.TransactionOuterClass.GetRawTransactionResponse.class, pactus.transaction.TransactionOuterClass.GetRawTransactionResponse.Builder.class); + } + + // Construct using pactus.transaction.TransactionOuterClass.GetRawTransactionResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + rawTransaction_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return pactus.transaction.TransactionOuterClass.internal_static_pactus_GetRawTransactionResponse_descriptor; + } + + @java.lang.Override + public pactus.transaction.TransactionOuterClass.GetRawTransactionResponse getDefaultInstanceForType() { + return pactus.transaction.TransactionOuterClass.GetRawTransactionResponse.getDefaultInstance(); + } + + @java.lang.Override + public pactus.transaction.TransactionOuterClass.GetRawTransactionResponse build() { + pactus.transaction.TransactionOuterClass.GetRawTransactionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public pactus.transaction.TransactionOuterClass.GetRawTransactionResponse buildPartial() { + pactus.transaction.TransactionOuterClass.GetRawTransactionResponse result = new pactus.transaction.TransactionOuterClass.GetRawTransactionResponse(this); + result.rawTransaction_ = rawTransaction_; + 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.GetRawTransactionResponse) { + return mergeFrom((pactus.transaction.TransactionOuterClass.GetRawTransactionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(pactus.transaction.TransactionOuterClass.GetRawTransactionResponse other) { + if (other == pactus.transaction.TransactionOuterClass.GetRawTransactionResponse.getDefaultInstance()) return this; + if (other.getRawTransaction() != com.google.protobuf.ByteString.EMPTY) { + setRawTransaction(other.getRawTransaction()); + } + 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 10: { + rawTransaction_ = input.readBytes(); + + break; + } // case 10 + 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 com.google.protobuf.ByteString rawTransaction_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes raw_transaction = 1 [json_name = "rawTransaction"]; + * @return The rawTransaction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRawTransaction() { + return rawTransaction_; + } + /** + * bytes raw_transaction = 1 [json_name = "rawTransaction"]; + * @param value The rawTransaction to set. + * @return This builder for chaining. + */ + public Builder setRawTransaction(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + rawTransaction_ = value; + onChanged(); + return this; + } + /** + * bytes raw_transaction = 1 [json_name = "rawTransaction"]; + * @return This builder for chaining. + */ + public Builder clearRawTransaction() { + + rawTransaction_ = getDefaultInstance().getRawTransaction(); + onChanged(); + return this; + } + @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.GetRawTransactionResponse) + } + + // @@protoc_insertion_point(class_scope:pactus.GetRawTransactionResponse) + private static final pactus.transaction.TransactionOuterClass.GetRawTransactionResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new pactus.transaction.TransactionOuterClass.GetRawTransactionResponse(); + } + + public static pactus.transaction.TransactionOuterClass.GetRawTransactionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRawTransactionResponse 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.GetRawTransactionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface PayloadTransferOrBuilder extends // @@protoc_insertion_point(interface_extends:pactus.PayloadTransfer) com.google.protobuf.MessageOrBuilder { @@ -9597,6 +14165,31 @@ public pactus.transaction.TransactionOuterClass.TransactionInfo getDefaultInstan private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pactus_SendRawTransactionResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pactus_GetRawTransferTransactionRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pactus_GetRawTransferTransactionRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pactus_GetRawBondTransactionRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pactus_GetRawBondTransactionRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pactus_GetRawUnBondTransactionRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pactus_GetRawUnBondTransactionRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pactus_GetRawWithdrawTransactionRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pactus_GetRawWithdrawTransactionRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_pactus_GetRawTransactionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_pactus_GetRawTransactionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pactus_PayloadTransfer_descriptor; private static final @@ -9649,44 +14242,74 @@ public pactus.transaction.TransactionOuterClass.TransactionInfo getDefaultInstan "sponse\022\020\n\003fee\030\001 \001(\003R\003fee\"/\n\031SendRawTrans" + "actionRequest\022\022\n\004data\030\001 \001(\014R\004data\",\n\032Sen" + "dRawTransactionResponse\022\016\n\002id\030\002 \001(\014R\002id\"" + - "]\n\017PayloadTransfer\022\026\n\006sender\030\001 \001(\tR\006send" + - "er\022\032\n\010receiver\030\002 \001(\tR\010receiver\022\026\n\006amount" + - "\030\003 \001(\003R\006amount\"W\n\013PayloadBond\022\026\n\006sender\030" + - "\001 \001(\tR\006sender\022\032\n\010receiver\030\002 \001(\tR\010receive" + - "r\022\024\n\005stake\030\003 \001(\003R\005stake\"B\n\020PayloadSortit" + - "ion\022\030\n\007address\030\001 \001(\tR\007address\022\024\n\005proof\030\002" + - " \001(\014R\005proof\"-\n\rPayloadUnbond\022\034\n\tvalidato" + - "r\030\001 \001(\tR\tvalidator\"M\n\017PayloadWithdraw\022\022\n" + - "\004from\030\001 \001(\tR\004from\022\016\n\002to\030\002 \001(\tR\002to\022\026\n\006amo" + - "unt\030\003 \001(\003R\006amount\"\253\004\n\017TransactionInfo\022\016\n" + - "\002id\030\001 \001(\014R\002id\022\022\n\004data\030\002 \001(\014R\004data\022\030\n\007ver" + - "sion\030\003 \001(\005R\007version\022\033\n\tlock_time\030\004 \001(\rR\010" + - "lockTime\022\024\n\005value\030\005 \001(\003R\005value\022\020\n\003fee\030\006 " + - "\001(\003R\003fee\0225\n\013payloadType\030\007 \001(\0162\023.pactus.P" + - "ayloadTypeR\013payloadType\0225\n\010transfer\030\036 \001(" + - "\0132\027.pactus.PayloadTransferH\000R\010transfer\022)" + - "\n\004bond\030\037 \001(\0132\023.pactus.PayloadBondH\000R\004bon" + - "d\0228\n\tsortition\030 \001(\0132\030.pactus.PayloadSor" + - "titionH\000R\tsortition\022/\n\006unbond\030! \001(\0132\025.pa" + - "ctus.PayloadUnbondH\000R\006unbond\0225\n\010withdraw" + - "\030\" \001(\0132\027.pactus.PayloadWithdrawH\000R\010withd" + - "raw\022\022\n\004memo\030\010 \001(\tR\004memo\022\035\n\npublic_key\030\t " + - "\001(\tR\tpublicKey\022\034\n\tsignature\030\n \001(\014R\tsigna" + - "tureB\t\n\007payload*\203\001\n\013PayloadType\022\013\n\007UNKNO" + - "WN\020\000\022\024\n\020TRANSFER_PAYLOAD\020\001\022\020\n\014BOND_PAYLO" + - "AD\020\002\022\025\n\021SORTITION_PAYLOAD\020\003\022\022\n\016UNBOND_PA" + - "YLOAD\020\004\022\024\n\020WITHDRAW_PAYLOAD\020\005*B\n\024Transac" + - "tionVerbosity\022\024\n\020TRANSACTION_DATA\020\000\022\024\n\020T" + - "RANSACTION_INFO\020\0012\206\002\n\013Transaction\022O\n\016Get" + - "Transaction\022\035.pactus.GetTransactionReque" + - "st\032\036.pactus.GetTransactionResponse\022I\n\014Ca" + - "lculateFee\022\033.pactus.CalculateFeeRequest\032" + - "\034.pactus.CalculateFeeResponse\022[\n\022SendRaw" + - "Transaction\022!.pactus.SendRawTransactionR" + - "equest\032\".pactus.SendRawTransactionRespon" + - "seBF\n\022pactus.transactionZ0github.com/pac" + - "tus-project/pactus/www/grpc/pactusb\006prot" + - "o3" + "\261\001\n GetRawTransferTransactionRequest\022\033\n\t" + + "lock_time\030\001 \001(\rR\010lockTime\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\034GetRawBondTransa" + + "ctionRequest\022\033\n\tlock_time\030\001 \001(\rR\010lockTim" + + "e\022\026\n\006sender\030\002 \001(\tR\006sender\022\032\n\010receiver\030\003 " + + "\001(\tR\010receiver\022\024\n\005stake\030\004 \001(\003R\005stake\022\035\n\np" + + "ublic_key\030\005 \001(\tR\tpublicKey\022\020\n\003fee\030\006 \001(\003R" + + "\003fee\022\022\n\004memo\030\007 \001(\tR\004memo\"~\n\036GetRawUnBond" + + "TransactionRequest\022\033\n\tlock_time\030\001 \001(\rR\010l" + + "ockTime\022+\n\021validator_address\030\003 \001(\tR\020vali" + + "datorAddress\022\022\n\004memo\030\004 \001(\tR\004memo\"\323\001\n Get" + + "RawWithdrawTransactionRequest\022\033\n\tlock_ti" + + "me\030\001 \001(\rR\010lockTime\022+\n\021validator_address\030" + + "\003 \001(\tR\020validatorAddress\022\'\n\017account_addre" + + "ss\030\004 \001(\tR\016accountAddress\022\020\n\003fee\030\005 \001(\003R\003f" + + "ee\022\026\n\006amount\030\006 \001(\003R\006amount\022\022\n\004memo\030\007 \001(\t" + + "R\004memo\"D\n\031GetRawTransactionResponse\022\'\n\017r" + + "aw_transaction\030\001 \001(\014R\016rawTransaction\"]\n\017" + + "PayloadTransfer\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\"W\n\013PayloadBond\022\026\n\006sender\030\001 \001" + + "(\tR\006sender\022\032\n\010receiver\030\002 \001(\tR\010receiver\022\024" + + "\n\005stake\030\003 \001(\003R\005stake\"B\n\020PayloadSortition" + + "\022\030\n\007address\030\001 \001(\tR\007address\022\024\n\005proof\030\002 \001(" + + "\014R\005proof\"-\n\rPayloadUnbond\022\034\n\tvalidator\030\001" + + " \001(\tR\tvalidator\"M\n\017PayloadWithdraw\022\022\n\004fr" + + "om\030\001 \001(\tR\004from\022\016\n\002to\030\002 \001(\tR\002to\022\026\n\006amount" + + "\030\003 \001(\003R\006amount\"\253\004\n\017TransactionInfo\022\016\n\002id" + + "\030\001 \001(\014R\002id\022\022\n\004data\030\002 \001(\014R\004data\022\030\n\007versio" + + "n\030\003 \001(\005R\007version\022\033\n\tlock_time\030\004 \001(\rR\010loc" + + "kTime\022\024\n\005value\030\005 \001(\003R\005value\022\020\n\003fee\030\006 \001(\003" + + "R\003fee\0225\n\013payloadType\030\007 \001(\0162\023.pactus.Payl" + + "oadTypeR\013payloadType\0225\n\010transfer\030\036 \001(\0132\027" + + ".pactus.PayloadTransferH\000R\010transfer\022)\n\004b" + + "ond\030\037 \001(\0132\023.pactus.PayloadBondH\000R\004bond\0228" + + "\n\tsortition\030 \001(\0132\030.pactus.PayloadSortit" + + "ionH\000R\tsortition\022/\n\006unbond\030! \001(\0132\025.pactu" + + "s.PayloadUnbondH\000R\006unbond\0225\n\010withdraw\030\" " + + "\001(\0132\027.pactus.PayloadWithdrawH\000R\010withdraw" + + "\022\022\n\004memo\030\010 \001(\tR\004memo\022\035\n\npublic_key\030\t \001(\t" + + "R\tpublicKey\022\034\n\tsignature\030\n \001(\014R\tsignatur" + + "eB\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_PAYLO" + + "AD\020\004\022\024\n\020WITHDRAW_PAYLOAD\020\005*B\n\024Transactio" + + "nVerbosity\022\024\n\020TRANSACTION_DATA\020\000\022\024\n\020TRAN" + + "SACTION_INFO\020\0012\242\005\n\013Transaction\022O\n\016GetTra" + + "nsaction\022\035.pactus.GetTransactionRequest\032" + + "\036.pactus.GetTransactionResponse\022I\n\014Calcu" + + "lateFee\022\033.pactus.CalculateFeeRequest\032\034.p" + + "actus.CalculateFeeResponse\022[\n\022SendRawTra" + + "nsaction\022!.pactus.SendRawTransactionRequ" + + "est\032\".pactus.SendRawTransactionResponse\022" + + "h\n\031GetRawTransferTransaction\022(.pactus.Ge" + + "tRawTransferTransactionRequest\032!.pactus." + + "GetRawTransactionResponse\022`\n\025GetRawBondT" + + "ransaction\022$.pactus.GetRawBondTransactio" + + "nRequest\032!.pactus.GetRawTransactionRespo" + + "nse\022d\n\027GetRawUnBondTransaction\022&.pactus." + + "GetRawUnBondTransactionRequest\032!.pactus." + + "GetRawTransactionResponse\022h\n\031GetRawWithd" + + "rawTransaction\022(.pactus.GetRawWithdrawTr" + + "ansactionRequest\032!.pactus.GetRawTransact" + + "ionResponseBF\n\022pactus.transactionZ0githu" + + "b.com/pactus-project/pactus/www/grpc/pac" + + "tusb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -9728,38 +14351,68 @@ public pactus.transaction.TransactionOuterClass.TransactionInfo getDefaultInstan com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pactus_SendRawTransactionResponse_descriptor, new java.lang.String[] { "Id", }); - internal_static_pactus_PayloadTransfer_descriptor = + internal_static_pactus_GetRawTransferTransactionRequest_descriptor = 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(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(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(9); + internal_static_pactus_GetRawWithdrawTransactionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_pactus_GetRawWithdrawTransactionRequest_descriptor, + new java.lang.String[] { "LockTime", "ValidatorAddress", "AccountAddress", "Fee", "Amount", "Memo", }); + internal_static_pactus_GetRawTransactionResponse_descriptor = + 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", }); + internal_static_pactus_PayloadTransfer_descriptor = + 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(7); + 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", }); internal_static_pactus_PayloadSortition_descriptor = - getDescriptor().getMessageTypes().get(8); + 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(9); + 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(10); + getDescriptor().getMessageTypes().get(15); internal_static_pactus_PayloadWithdraw_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pactus_PayloadWithdraw_descriptor, new java.lang.String[] { "From", "To", "Amount", }); internal_static_pactus_TransactionInfo_descriptor = - getDescriptor().getMessageTypes().get(11); + 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 3822cf018..6f8054ba9 100644 --- a/www/grpc/gen/js/transaction_grpc_pb.js +++ b/www/grpc/gen/js/transaction_grpc_pb.js @@ -26,6 +26,61 @@ function deserialize_pactus_CalculateFeeResponse(buffer_arg) { return transaction_pb.CalculateFeeResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_pactus_GetRawBondTransactionRequest(arg) { + if (!(arg instanceof transaction_pb.GetRawBondTransactionRequest)) { + throw new Error('Expected argument of type pactus.GetRawBondTransactionRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_pactus_GetRawBondTransactionRequest(buffer_arg) { + return transaction_pb.GetRawBondTransactionRequest.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'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_pactus_GetRawTransactionResponse(buffer_arg) { + return transaction_pb.GetRawTransactionResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_pactus_GetRawTransferTransactionRequest(arg) { + if (!(arg instanceof transaction_pb.GetRawTransferTransactionRequest)) { + throw new Error('Expected argument of type pactus.GetRawTransferTransactionRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_pactus_GetRawTransferTransactionRequest(buffer_arg) { + return transaction_pb.GetRawTransferTransactionRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_pactus_GetRawUnBondTransactionRequest(arg) { + if (!(arg instanceof transaction_pb.GetRawUnBondTransactionRequest)) { + throw new Error('Expected argument of type pactus.GetRawUnBondTransactionRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_pactus_GetRawUnBondTransactionRequest(buffer_arg) { + return transaction_pb.GetRawUnBondTransactionRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_pactus_GetRawWithdrawTransactionRequest(arg) { + if (!(arg instanceof transaction_pb.GetRawWithdrawTransactionRequest)) { + throw new Error('Expected argument of type pactus.GetRawWithdrawTransactionRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_pactus_GetRawWithdrawTransactionRequest(buffer_arg) { + return transaction_pb.GetRawWithdrawTransactionRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_pactus_GetTransactionRequest(arg) { if (!(arg instanceof transaction_pb.GetTransactionRequest)) { throw new Error('Expected argument of type pactus.GetTransactionRequest'); @@ -105,6 +160,50 @@ var TransactionService = exports.TransactionService = { responseSerialize: serialize_pactus_SendRawTransactionResponse, responseDeserialize: deserialize_pactus_SendRawTransactionResponse, }, + getRawTransferTransaction: { + path: '/pactus.Transaction/GetRawTransferTransaction', + requestStream: false, + responseStream: false, + requestType: transaction_pb.GetRawTransferTransactionRequest, + responseType: transaction_pb.GetRawTransactionResponse, + requestSerialize: serialize_pactus_GetRawTransferTransactionRequest, + requestDeserialize: deserialize_pactus_GetRawTransferTransactionRequest, + responseSerialize: serialize_pactus_GetRawTransactionResponse, + responseDeserialize: deserialize_pactus_GetRawTransactionResponse, + }, + getRawBondTransaction: { + path: '/pactus.Transaction/GetRawBondTransaction', + requestStream: false, + responseStream: false, + requestType: transaction_pb.GetRawBondTransactionRequest, + responseType: transaction_pb.GetRawTransactionResponse, + requestSerialize: serialize_pactus_GetRawBondTransactionRequest, + requestDeserialize: deserialize_pactus_GetRawBondTransactionRequest, + responseSerialize: serialize_pactus_GetRawTransactionResponse, + responseDeserialize: deserialize_pactus_GetRawTransactionResponse, + }, + getRawUnBondTransaction: { + path: '/pactus.Transaction/GetRawUnBondTransaction', + requestStream: false, + responseStream: false, + requestType: transaction_pb.GetRawUnBondTransactionRequest, + responseType: transaction_pb.GetRawTransactionResponse, + requestSerialize: serialize_pactus_GetRawUnBondTransactionRequest, + requestDeserialize: deserialize_pactus_GetRawUnBondTransactionRequest, + responseSerialize: serialize_pactus_GetRawTransactionResponse, + responseDeserialize: deserialize_pactus_GetRawTransactionResponse, + }, + getRawWithdrawTransaction: { + path: '/pactus.Transaction/GetRawWithdrawTransaction', + requestStream: false, + responseStream: false, + requestType: transaction_pb.GetRawWithdrawTransactionRequest, + responseType: transaction_pb.GetRawTransactionResponse, + requestSerialize: serialize_pactus_GetRawWithdrawTransactionRequest, + requestDeserialize: deserialize_pactus_GetRawWithdrawTransactionRequest, + responseSerialize: serialize_pactus_GetRawTransactionResponse, + responseDeserialize: deserialize_pactus_GetRawTransactionResponse, + }, }; exports.TransactionClient = grpc.makeGenericClientConstructor(TransactionService); diff --git a/www/grpc/gen/js/transaction_pb.js b/www/grpc/gen/js/transaction_pb.js index e757d5ddc..98195c0dd 100644 --- a/www/grpc/gen/js/transaction_pb.js +++ b/www/grpc/gen/js/transaction_pb.js @@ -23,6 +23,11 @@ var 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.GetRawTransactionResponse', null, global); +goog.exportSymbol('proto.pactus.GetRawTransferTransactionRequest', null, global); +goog.exportSymbol('proto.pactus.GetRawUnBondTransactionRequest', null, global); +goog.exportSymbol('proto.pactus.GetRawWithdrawTransactionRequest', null, global); goog.exportSymbol('proto.pactus.GetTransactionRequest', null, global); goog.exportSymbol('proto.pactus.GetTransactionResponse', null, global); goog.exportSymbol('proto.pactus.PayloadBond', null, global); @@ -162,6 +167,111 @@ if (goog.DEBUG && !COMPILED) { */ proto.pactus.SendRawTransactionResponse.displayName = 'proto.pactus.SendRawTransactionResponse'; } +/** + * 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.GetRawTransferTransactionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.pactus.GetRawTransferTransactionRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.pactus.GetRawTransferTransactionRequest.displayName = 'proto.pactus.GetRawTransferTransactionRequest'; +} +/** + * 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.GetRawBondTransactionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.pactus.GetRawBondTransactionRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.pactus.GetRawBondTransactionRequest.displayName = 'proto.pactus.GetRawBondTransactionRequest'; +} +/** + * 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.GetRawUnBondTransactionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.pactus.GetRawUnBondTransactionRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.pactus.GetRawUnBondTransactionRequest.displayName = 'proto.pactus.GetRawUnBondTransactionRequest'; +} +/** + * 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.GetRawWithdrawTransactionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.pactus.GetRawWithdrawTransactionRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.pactus.GetRawWithdrawTransactionRequest.displayName = 'proto.pactus.GetRawWithdrawTransactionRequest'; +} +/** + * 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.GetRawTransactionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.pactus.GetRawTransactionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.pactus.GetRawTransactionResponse.displayName = 'proto.pactus.GetRawTransactionResponse'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -1284,6 +1394,1220 @@ proto.pactus.SendRawTransactionResponse.prototype.setId = function(value) { +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.GetRawTransferTransactionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.pactus.GetRawTransferTransactionRequest.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.GetRawTransferTransactionRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.pactus.GetRawTransferTransactionRequest.toObject = function(includeInstance, msg) { + var f, obj = { + lockTime: jspb.Message.getFieldWithDefault(msg, 1, 0), + sender: jspb.Message.getFieldWithDefault(msg, 2, ""), + receiver: jspb.Message.getFieldWithDefault(msg, 3, ""), + amount: jspb.Message.getFieldWithDefault(msg, 4, 0), + fee: jspb.Message.getFieldWithDefault(msg, 5, 0), + memo: jspb.Message.getFieldWithDefault(msg, 6, "") + }; + + 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.GetRawTransferTransactionRequest} + */ +proto.pactus.GetRawTransferTransactionRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.pactus.GetRawTransferTransactionRequest; + return proto.pactus.GetRawTransferTransactionRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.pactus.GetRawTransferTransactionRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.pactus.GetRawTransferTransactionRequest} + */ +proto.pactus.GetRawTransferTransactionRequest.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.setSender(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setReceiver(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setAmount(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt64()); + msg.setFee(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.pactus.GetRawTransferTransactionRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.pactus.GetRawTransferTransactionRequest.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.GetRawTransferTransactionRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.pactus.GetRawTransferTransactionRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLockTime(); + if (f !== 0) { + writer.writeUint32( + 1, + f + ); + } + f = message.getSender(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getReceiver(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getAmount(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } + f = message.getFee(); + if (f !== 0) { + writer.writeInt64( + 5, + f + ); + } + f = message.getMemo(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } +}; + + +/** + * optional uint32 lock_time = 1; + * @return {number} + */ +proto.pactus.GetRawTransferTransactionRequest.prototype.getLockTime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.pactus.GetRawTransferTransactionRequest} returns this + */ +proto.pactus.GetRawTransferTransactionRequest.prototype.setLockTime = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string sender = 2; + * @return {string} + */ +proto.pactus.GetRawTransferTransactionRequest.prototype.getSender = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.pactus.GetRawTransferTransactionRequest} returns this + */ +proto.pactus.GetRawTransferTransactionRequest.prototype.setSender = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string receiver = 3; + * @return {string} + */ +proto.pactus.GetRawTransferTransactionRequest.prototype.getReceiver = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.pactus.GetRawTransferTransactionRequest} returns this + */ +proto.pactus.GetRawTransferTransactionRequest.prototype.setReceiver = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional int64 amount = 4; + * @return {number} + */ +proto.pactus.GetRawTransferTransactionRequest.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.pactus.GetRawTransferTransactionRequest} returns this + */ +proto.pactus.GetRawTransferTransactionRequest.prototype.setAmount = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional int64 fee = 5; + * @return {number} + */ +proto.pactus.GetRawTransferTransactionRequest.prototype.getFee = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.pactus.GetRawTransferTransactionRequest} returns this + */ +proto.pactus.GetRawTransferTransactionRequest.prototype.setFee = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional string memo = 6; + * @return {string} + */ +proto.pactus.GetRawTransferTransactionRequest.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.pactus.GetRawTransferTransactionRequest} returns this + */ +proto.pactus.GetRawTransferTransactionRequest.prototype.setMemo = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + + + + +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.GetRawBondTransactionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.pactus.GetRawBondTransactionRequest.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.GetRawBondTransactionRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.pactus.GetRawBondTransactionRequest.toObject = function(includeInstance, msg) { + var f, obj = { + lockTime: jspb.Message.getFieldWithDefault(msg, 1, 0), + sender: jspb.Message.getFieldWithDefault(msg, 2, ""), + receiver: jspb.Message.getFieldWithDefault(msg, 3, ""), + stake: jspb.Message.getFieldWithDefault(msg, 4, 0), + publicKey: jspb.Message.getFieldWithDefault(msg, 5, ""), + fee: jspb.Message.getFieldWithDefault(msg, 6, 0), + memo: jspb.Message.getFieldWithDefault(msg, 7, "") + }; + + 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.GetRawBondTransactionRequest} + */ +proto.pactus.GetRawBondTransactionRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.pactus.GetRawBondTransactionRequest; + return proto.pactus.GetRawBondTransactionRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.pactus.GetRawBondTransactionRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.pactus.GetRawBondTransactionRequest} + */ +proto.pactus.GetRawBondTransactionRequest.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.setSender(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setReceiver(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setStake(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setPublicKey(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt64()); + msg.setFee(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.pactus.GetRawBondTransactionRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.pactus.GetRawBondTransactionRequest.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.GetRawBondTransactionRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.pactus.GetRawBondTransactionRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLockTime(); + if (f !== 0) { + writer.writeUint32( + 1, + f + ); + } + f = message.getSender(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getReceiver(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getStake(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } + f = message.getPublicKey(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getFee(); + if (f !== 0) { + writer.writeInt64( + 6, + f + ); + } + f = message.getMemo(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } +}; + + +/** + * optional uint32 lock_time = 1; + * @return {number} + */ +proto.pactus.GetRawBondTransactionRequest.prototype.getLockTime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.pactus.GetRawBondTransactionRequest} returns this + */ +proto.pactus.GetRawBondTransactionRequest.prototype.setLockTime = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string sender = 2; + * @return {string} + */ +proto.pactus.GetRawBondTransactionRequest.prototype.getSender = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.pactus.GetRawBondTransactionRequest} returns this + */ +proto.pactus.GetRawBondTransactionRequest.prototype.setSender = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string receiver = 3; + * @return {string} + */ +proto.pactus.GetRawBondTransactionRequest.prototype.getReceiver = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.pactus.GetRawBondTransactionRequest} returns this + */ +proto.pactus.GetRawBondTransactionRequest.prototype.setReceiver = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional int64 stake = 4; + * @return {number} + */ +proto.pactus.GetRawBondTransactionRequest.prototype.getStake = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.pactus.GetRawBondTransactionRequest} returns this + */ +proto.pactus.GetRawBondTransactionRequest.prototype.setStake = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional string public_key = 5; + * @return {string} + */ +proto.pactus.GetRawBondTransactionRequest.prototype.getPublicKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.pactus.GetRawBondTransactionRequest} returns this + */ +proto.pactus.GetRawBondTransactionRequest.prototype.setPublicKey = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional int64 fee = 6; + * @return {number} + */ +proto.pactus.GetRawBondTransactionRequest.prototype.getFee = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.pactus.GetRawBondTransactionRequest} returns this + */ +proto.pactus.GetRawBondTransactionRequest.prototype.setFee = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional string memo = 7; + * @return {string} + */ +proto.pactus.GetRawBondTransactionRequest.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.pactus.GetRawBondTransactionRequest} returns this + */ +proto.pactus.GetRawBondTransactionRequest.prototype.setMemo = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + + + + +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.GetRawUnBondTransactionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.pactus.GetRawUnBondTransactionRequest.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.GetRawUnBondTransactionRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.pactus.GetRawUnBondTransactionRequest.toObject = function(includeInstance, msg) { + var f, obj = { + lockTime: jspb.Message.getFieldWithDefault(msg, 1, 0), + validatorAddress: jspb.Message.getFieldWithDefault(msg, 3, ""), + memo: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + 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.GetRawUnBondTransactionRequest} + */ +proto.pactus.GetRawUnBondTransactionRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.pactus.GetRawUnBondTransactionRequest; + return proto.pactus.GetRawUnBondTransactionRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.pactus.GetRawUnBondTransactionRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.pactus.GetRawUnBondTransactionRequest} + */ +proto.pactus.GetRawUnBondTransactionRequest.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 3: + var value = /** @type {string} */ (reader.readString()); + msg.setValidatorAddress(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.pactus.GetRawUnBondTransactionRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.pactus.GetRawUnBondTransactionRequest.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.GetRawUnBondTransactionRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.pactus.GetRawUnBondTransactionRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLockTime(); + if (f !== 0) { + writer.writeUint32( + 1, + f + ); + } + f = message.getValidatorAddress(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getMemo(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional uint32 lock_time = 1; + * @return {number} + */ +proto.pactus.GetRawUnBondTransactionRequest.prototype.getLockTime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.pactus.GetRawUnBondTransactionRequest} returns this + */ +proto.pactus.GetRawUnBondTransactionRequest.prototype.setLockTime = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string validator_address = 3; + * @return {string} + */ +proto.pactus.GetRawUnBondTransactionRequest.prototype.getValidatorAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.pactus.GetRawUnBondTransactionRequest} returns this + */ +proto.pactus.GetRawUnBondTransactionRequest.prototype.setValidatorAddress = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string memo = 4; + * @return {string} + */ +proto.pactus.GetRawUnBondTransactionRequest.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.pactus.GetRawUnBondTransactionRequest} returns this + */ +proto.pactus.GetRawUnBondTransactionRequest.prototype.setMemo = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + + + + +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.GetRawWithdrawTransactionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.pactus.GetRawWithdrawTransactionRequest.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.GetRawWithdrawTransactionRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.pactus.GetRawWithdrawTransactionRequest.toObject = function(includeInstance, msg) { + var f, obj = { + lockTime: jspb.Message.getFieldWithDefault(msg, 1, 0), + validatorAddress: jspb.Message.getFieldWithDefault(msg, 3, ""), + accountAddress: jspb.Message.getFieldWithDefault(msg, 4, ""), + fee: jspb.Message.getFieldWithDefault(msg, 5, 0), + amount: jspb.Message.getFieldWithDefault(msg, 6, 0), + memo: jspb.Message.getFieldWithDefault(msg, 7, "") + }; + + 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.GetRawWithdrawTransactionRequest} + */ +proto.pactus.GetRawWithdrawTransactionRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.pactus.GetRawWithdrawTransactionRequest; + return proto.pactus.GetRawWithdrawTransactionRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.pactus.GetRawWithdrawTransactionRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.pactus.GetRawWithdrawTransactionRequest} + */ +proto.pactus.GetRawWithdrawTransactionRequest.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 3: + var value = /** @type {string} */ (reader.readString()); + msg.setValidatorAddress(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAccountAddress(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt64()); + msg.setFee(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt64()); + msg.setAmount(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.pactus.GetRawWithdrawTransactionRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.pactus.GetRawWithdrawTransactionRequest.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.GetRawWithdrawTransactionRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.pactus.GetRawWithdrawTransactionRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLockTime(); + if (f !== 0) { + writer.writeUint32( + 1, + f + ); + } + f = message.getValidatorAddress(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getAccountAddress(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getFee(); + if (f !== 0) { + writer.writeInt64( + 5, + f + ); + } + f = message.getAmount(); + if (f !== 0) { + writer.writeInt64( + 6, + f + ); + } + f = message.getMemo(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } +}; + + +/** + * optional uint32 lock_time = 1; + * @return {number} + */ +proto.pactus.GetRawWithdrawTransactionRequest.prototype.getLockTime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.pactus.GetRawWithdrawTransactionRequest} returns this + */ +proto.pactus.GetRawWithdrawTransactionRequest.prototype.setLockTime = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string validator_address = 3; + * @return {string} + */ +proto.pactus.GetRawWithdrawTransactionRequest.prototype.getValidatorAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.pactus.GetRawWithdrawTransactionRequest} returns this + */ +proto.pactus.GetRawWithdrawTransactionRequest.prototype.setValidatorAddress = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string account_address = 4; + * @return {string} + */ +proto.pactus.GetRawWithdrawTransactionRequest.prototype.getAccountAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.pactus.GetRawWithdrawTransactionRequest} returns this + */ +proto.pactus.GetRawWithdrawTransactionRequest.prototype.setAccountAddress = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional int64 fee = 5; + * @return {number} + */ +proto.pactus.GetRawWithdrawTransactionRequest.prototype.getFee = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.pactus.GetRawWithdrawTransactionRequest} returns this + */ +proto.pactus.GetRawWithdrawTransactionRequest.prototype.setFee = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional int64 amount = 6; + * @return {number} + */ +proto.pactus.GetRawWithdrawTransactionRequest.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.pactus.GetRawWithdrawTransactionRequest} returns this + */ +proto.pactus.GetRawWithdrawTransactionRequest.prototype.setAmount = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional string memo = 7; + * @return {string} + */ +proto.pactus.GetRawWithdrawTransactionRequest.prototype.getMemo = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.pactus.GetRawWithdrawTransactionRequest} returns this + */ +proto.pactus.GetRawWithdrawTransactionRequest.prototype.setMemo = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + + + + +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.GetRawTransactionResponse.prototype.toObject = function(opt_includeInstance) { + return proto.pactus.GetRawTransactionResponse.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.GetRawTransactionResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.pactus.GetRawTransactionResponse.toObject = function(includeInstance, msg) { + var f, obj = { + rawTransaction: msg.getRawTransaction_asB64() + }; + + 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.GetRawTransactionResponse} + */ +proto.pactus.GetRawTransactionResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.pactus.GetRawTransactionResponse; + return proto.pactus.GetRawTransactionResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.pactus.GetRawTransactionResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.pactus.GetRawTransactionResponse} + */ +proto.pactus.GetRawTransactionResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setRawTransaction(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.pactus.GetRawTransactionResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.pactus.GetRawTransactionResponse.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.GetRawTransactionResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.pactus.GetRawTransactionResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRawTransaction_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } +}; + + +/** + * optional bytes raw_transaction = 1; + * @return {!(string|Uint8Array)} + */ +proto.pactus.GetRawTransactionResponse.prototype.getRawTransaction = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes raw_transaction = 1; + * This is a type-conversion wrapper around `getRawTransaction()` + * @return {string} + */ +proto.pactus.GetRawTransactionResponse.prototype.getRawTransaction_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getRawTransaction())); +}; + + +/** + * optional bytes raw_transaction = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getRawTransaction()` + * @return {!Uint8Array} + */ +proto.pactus.GetRawTransactionResponse.prototype.getRawTransaction_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getRawTransaction())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.pactus.GetRawTransactionResponse} returns this + */ +proto.pactus.GetRawTransactionResponse.prototype.setRawTransaction = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. diff --git a/www/grpc/gen/python/transaction_pb2.py b/www/grpc/gen/python/transaction_pb2.py index 07937d5a8..7e45136ef 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(\x0cR\x02id\x12:\n\tverbosity\x18\x02 \x01(\x0e\x32\x1c.pactus.TransactionVerbosityR\tverbosity\"\x95\x01\n\x16GetTransactionResponse\x12!\n\x0c\x62lock_height\x18\x0c \x01(\rR\x0b\x62lockHeight\x12\x1d\n\nblock_time\x18\r \x01(\rR\tblockTime\x12\x39\n\x0btransaction\x18\x03 \x01(\x0b\x32\x17.pactus.TransactionInfoR\x0btransaction\"d\n\x13\x43\x61lculateFeeRequest\x12\x16\n\x06\x61mount\x18\x01 \x01(\x03R\x06\x61mount\x12\x35\n\x0bpayloadType\x18\x02 \x01(\x0e\x32\x13.pactus.PayloadTypeR\x0bpayloadType\"(\n\x14\x43\x61lculateFeeResponse\x12\x10\n\x03\x66\x65\x65\x18\x01 \x01(\x03R\x03\x66\x65\x65\"/\n\x19SendRawTransactionRequest\x12\x12\n\x04\x64\x61ta\x18\x01 \x01(\x0cR\x04\x64\x61ta\",\n\x1aSendRawTransactionResponse\x12\x0e\n\x02id\x18\x02 \x01(\x0cR\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\"W\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\"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(\x0cR\x05proof\"-\n\rPayloadUnbond\x12\x1c\n\tvalidator\x18\x01 \x01(\tR\tvalidator\"M\n\x0fPayloadWithdraw\x12\x12\n\x04\x66rom\x18\x01 \x01(\tR\x04\x66rom\x12\x0e\n\x02to\x18\x02 \x01(\tR\x02to\x12\x16\n\x06\x61mount\x18\x03 \x01(\x03R\x06\x61mount\"\xab\x04\n\x0fTransactionInfo\x12\x0e\n\x02id\x18\x01 \x01(\x0cR\x02id\x12\x12\n\x04\x64\x61ta\x18\x02 \x01(\x0cR\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\x35\n\x0bpayloadType\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(\x0cR\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\x86\x02\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[\n\x12SendRawTransaction\x12!.pactus.SendRawTransactionRequest\x1a\".pactus.SendRawTransactionResponseBF\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(\x0cR\x02id\x12:\n\tverbosity\x18\x02 \x01(\x0e\x32\x1c.pactus.TransactionVerbosityR\tverbosity\"\x95\x01\n\x16GetTransactionResponse\x12!\n\x0c\x62lock_height\x18\x0c \x01(\rR\x0b\x62lockHeight\x12\x1d\n\nblock_time\x18\r \x01(\rR\tblockTime\x12\x39\n\x0btransaction\x18\x03 \x01(\x0b\x32\x17.pactus.TransactionInfoR\x0btransaction\"d\n\x13\x43\x61lculateFeeRequest\x12\x16\n\x06\x61mount\x18\x01 \x01(\x03R\x06\x61mount\x12\x35\n\x0bpayloadType\x18\x02 \x01(\x0e\x32\x13.pactus.PayloadTypeR\x0bpayloadType\"(\n\x14\x43\x61lculateFeeResponse\x12\x10\n\x03\x66\x65\x65\x18\x01 \x01(\x03R\x03\x66\x65\x65\"/\n\x19SendRawTransactionRequest\x12\x12\n\x04\x64\x61ta\x18\x01 \x01(\x0cR\x04\x64\x61ta\",\n\x1aSendRawTransactionResponse\x12\x0e\n\x02id\x18\x02 \x01(\x0cR\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\x03 \x01(\tR\x10validatorAddress\x12\'\n\x0f\x61\x63\x63ount_address\x18\x04 \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x10\n\x03\x66\x65\x65\x18\x05 \x01(\x03R\x03\x66\x65\x65\x12\x16\n\x06\x61mount\x18\x06 \x01(\x03R\x06\x61mount\x12\x12\n\x04memo\x18\x07 \x01(\tR\x04memo\"D\n\x19GetRawTransactionResponse\x12\'\n\x0fraw_transaction\x18\x01 \x01(\x0cR\x0erawTransaction\"]\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\"W\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\"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(\x0cR\x05proof\"-\n\rPayloadUnbond\x12\x1c\n\tvalidator\x18\x01 \x01(\tR\tvalidator\"M\n\x0fPayloadWithdraw\x12\x12\n\x04\x66rom\x18\x01 \x01(\tR\x04\x66rom\x12\x0e\n\x02to\x18\x02 \x01(\tR\x02to\x12\x16\n\x06\x61mount\x18\x03 \x01(\x03R\x06\x61mount\"\xab\x04\n\x0fTransactionInfo\x12\x0e\n\x02id\x18\x01 \x01(\x0cR\x02id\x12\x12\n\x04\x64\x61ta\x18\x02 \x01(\x0cR\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\x35\n\x0bpayloadType\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(\x0cR\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\xa2\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[\n\x12SendRawTransaction\x12!.pactus.SendRawTransactionRequest\x1a\".pactus.SendRawTransactionResponse\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=1458 - _PAYLOADTYPE._serialized_end=1589 - _TRANSACTIONVERBOSITY._serialized_start=1591 - _TRANSACTIONVERBOSITY._serialized_end=1657 + _PAYLOADTYPE._serialized_start=2255 + _PAYLOADTYPE._serialized_end=2386 + _TRANSACTIONVERBOSITY._serialized_start=2388 + _TRANSACTIONVERBOSITY._serialized_end=2454 _GETTRANSACTIONREQUEST._serialized_start=29 _GETTRANSACTIONREQUEST._serialized_end=128 _GETTRANSACTIONRESPONSE._serialized_start=131 @@ -37,18 +37,28 @@ _SENDRAWTRANSACTIONREQUEST._serialized_end=473 _SENDRAWTRANSACTIONRESPONSE._serialized_start=475 _SENDRAWTRANSACTIONRESPONSE._serialized_end=519 - _PAYLOADTRANSFER._serialized_start=521 - _PAYLOADTRANSFER._serialized_end=614 - _PAYLOADBOND._serialized_start=616 - _PAYLOADBOND._serialized_end=703 - _PAYLOADSORTITION._serialized_start=705 - _PAYLOADSORTITION._serialized_end=771 - _PAYLOADUNBOND._serialized_start=773 - _PAYLOADUNBOND._serialized_end=818 - _PAYLOADWITHDRAW._serialized_start=820 - _PAYLOADWITHDRAW._serialized_end=897 - _TRANSACTIONINFO._serialized_start=900 - _TRANSACTIONINFO._serialized_end=1455 - _TRANSACTION._serialized_start=1660 - _TRANSACTION._serialized_end=1922 + _GETRAWTRANSFERTRANSACTIONREQUEST._serialized_start=522 + _GETRAWTRANSFERTRANSACTIONREQUEST._serialized_end=699 + _GETRAWBONDTRANSACTIONREQUEST._serialized_start=702 + _GETRAWBONDTRANSACTIONREQUEST._serialized_end=904 + _GETRAWUNBONDTRANSACTIONREQUEST._serialized_start=906 + _GETRAWUNBONDTRANSACTIONREQUEST._serialized_end=1032 + _GETRAWWITHDRAWTRANSACTIONREQUEST._serialized_start=1035 + _GETRAWWITHDRAWTRANSACTIONREQUEST._serialized_end=1246 + _GETRAWTRANSACTIONRESPONSE._serialized_start=1248 + _GETRAWTRANSACTIONRESPONSE._serialized_end=1316 + _PAYLOADTRANSFER._serialized_start=1318 + _PAYLOADTRANSFER._serialized_end=1411 + _PAYLOADBOND._serialized_start=1413 + _PAYLOADBOND._serialized_end=1500 + _PAYLOADSORTITION._serialized_start=1502 + _PAYLOADSORTITION._serialized_end=1568 + _PAYLOADUNBOND._serialized_start=1570 + _PAYLOADUNBOND._serialized_end=1615 + _PAYLOADWITHDRAW._serialized_start=1617 + _PAYLOADWITHDRAW._serialized_end=1694 + _TRANSACTIONINFO._serialized_start=1697 + _TRANSACTIONINFO._serialized_end=2252 + _TRANSACTION._serialized_start=2457 + _TRANSACTION._serialized_end=3131 # @@protoc_insertion_point(module_scope) diff --git a/www/grpc/gen/python/transaction_pb2_grpc.py b/www/grpc/gen/python/transaction_pb2_grpc.py index a9bd62ab8..7ba156e29 100644 --- a/www/grpc/gen/python/transaction_pb2_grpc.py +++ b/www/grpc/gen/python/transaction_pb2_grpc.py @@ -29,6 +29,26 @@ def __init__(self, channel): request_serializer=transaction__pb2.SendRawTransactionRequest.SerializeToString, response_deserializer=transaction__pb2.SendRawTransactionResponse.FromString, ) + self.GetRawTransferTransaction = channel.unary_unary( + '/pactus.Transaction/GetRawTransferTransaction', + request_serializer=transaction__pb2.GetRawTransferTransactionRequest.SerializeToString, + response_deserializer=transaction__pb2.GetRawTransactionResponse.FromString, + ) + self.GetRawBondTransaction = channel.unary_unary( + '/pactus.Transaction/GetRawBondTransaction', + request_serializer=transaction__pb2.GetRawBondTransactionRequest.SerializeToString, + response_deserializer=transaction__pb2.GetRawTransactionResponse.FromString, + ) + self.GetRawUnBondTransaction = channel.unary_unary( + '/pactus.Transaction/GetRawUnBondTransaction', + request_serializer=transaction__pb2.GetRawUnBondTransactionRequest.SerializeToString, + response_deserializer=transaction__pb2.GetRawTransactionResponse.FromString, + ) + self.GetRawWithdrawTransaction = channel.unary_unary( + '/pactus.Transaction/GetRawWithdrawTransaction', + request_serializer=transaction__pb2.GetRawWithdrawTransactionRequest.SerializeToString, + response_deserializer=transaction__pb2.GetRawTransactionResponse.FromString, + ) class TransactionServicer(object): @@ -52,6 +72,30 @@ def SendRawTransaction(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def GetRawTransferTransaction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetRawBondTransaction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetRawUnBondTransaction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetRawWithdrawTransaction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def add_TransactionServicer_to_server(servicer, server): rpc_method_handlers = { @@ -70,6 +114,26 @@ def add_TransactionServicer_to_server(servicer, server): request_deserializer=transaction__pb2.SendRawTransactionRequest.FromString, response_serializer=transaction__pb2.SendRawTransactionResponse.SerializeToString, ), + 'GetRawTransferTransaction': grpc.unary_unary_rpc_method_handler( + servicer.GetRawTransferTransaction, + request_deserializer=transaction__pb2.GetRawTransferTransactionRequest.FromString, + response_serializer=transaction__pb2.GetRawTransactionResponse.SerializeToString, + ), + 'GetRawBondTransaction': grpc.unary_unary_rpc_method_handler( + servicer.GetRawBondTransaction, + request_deserializer=transaction__pb2.GetRawBondTransactionRequest.FromString, + response_serializer=transaction__pb2.GetRawTransactionResponse.SerializeToString, + ), + 'GetRawUnBondTransaction': grpc.unary_unary_rpc_method_handler( + servicer.GetRawUnBondTransaction, + request_deserializer=transaction__pb2.GetRawUnBondTransactionRequest.FromString, + response_serializer=transaction__pb2.GetRawTransactionResponse.SerializeToString, + ), + 'GetRawWithdrawTransaction': grpc.unary_unary_rpc_method_handler( + servicer.GetRawWithdrawTransaction, + request_deserializer=transaction__pb2.GetRawWithdrawTransactionRequest.FromString, + response_serializer=transaction__pb2.GetRawTransactionResponse.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( 'pactus.Transaction', rpc_method_handlers) @@ -130,3 +194,71 @@ def SendRawTransaction(request, transaction__pb2.SendRawTransactionResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetRawTransferTransaction(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/GetRawTransferTransaction', + transaction__pb2.GetRawTransferTransactionRequest.SerializeToString, + transaction__pb2.GetRawTransactionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetRawBondTransaction(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/GetRawBondTransaction', + transaction__pb2.GetRawBondTransactionRequest.SerializeToString, + transaction__pb2.GetRawTransactionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetRawUnBondTransaction(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/GetRawUnBondTransaction', + transaction__pb2.GetRawUnBondTransactionRequest.SerializeToString, + transaction__pb2.GetRawTransactionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetRawWithdrawTransaction(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/GetRawWithdrawTransaction', + transaction__pb2.GetRawWithdrawTransactionRequest.SerializeToString, + transaction__pb2.GetRawTransactionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/www/grpc/proto/transaction.proto b/www/grpc/proto/transaction.proto index 142118a9f..27db4d4f9 100644 --- a/www/grpc/proto/transaction.proto +++ b/www/grpc/proto/transaction.proto @@ -8,6 +8,10 @@ service Transaction { rpc CalculateFee(CalculateFeeRequest) returns (CalculateFeeResponse); rpc SendRawTransaction(SendRawTransactionRequest) returns (SendRawTransactionResponse); + rpc GetRawTransferTransaction(GetRawTransferTransactionRequest) returns (GetRawTransactionResponse); + rpc GetRawBondTransaction(GetRawBondTransactionRequest) returns (GetRawTransactionResponse); + rpc GetRawUnBondTransaction(GetRawUnBondTransactionRequest) returns (GetRawTransactionResponse); + rpc GetRawWithdrawTransaction(GetRawWithdrawTransactionRequest) returns (GetRawTransactionResponse); } message GetTransactionRequest { @@ -32,6 +36,44 @@ message SendRawTransactionRequest {bytes data = 1;} message SendRawTransactionResponse {bytes id = 2;} +message GetRawTransferTransactionRequest { + uint32 lock_time = 1; + string sender = 2; + string receiver = 3; + int64 amount = 4; + int64 fee = 5; + string memo = 6; +} + +message GetRawBondTransactionRequest { + uint32 lock_time = 1; + string sender = 2; + string receiver = 3; + int64 stake = 4; + string public_key = 5; + int64 fee = 6; + string memo = 7; +} + +message GetRawUnBondTransactionRequest { + uint32 lock_time = 1; + string validator_address = 3; + string memo = 4; +} + +message GetRawWithdrawTransactionRequest { + uint32 lock_time = 1; + string validator_address = 3; + string account_address = 4; + int64 fee = 5; + int64 amount = 6; + string memo = 7; +} + +message GetRawTransactionResponse { + bytes raw_transaction = 1; +} + message PayloadTransfer { string sender = 1; string receiver = 2; diff --git a/www/grpc/swagger-ui/pactus.swagger.json b/www/grpc/swagger-ui/pactus.swagger.json index e5cb86050..57ee35b3b 100644 --- a/www/grpc/swagger-ui/pactus.swagger.json +++ b/www/grpc/swagger-ui/pactus.swagger.json @@ -916,6 +916,15 @@ } } }, + "pactusGetRawTransactionResponse": { + "type": "object", + "properties": { + "rawTransaction": { + "type": "string", + "format": "byte" + } + } + }, "pactusGetTransactionResponse": { "type": "object", "properties": { diff --git a/www/grpc/transaction.go b/www/grpc/transaction.go index b19bab161..4d297451a 100644 --- a/www/grpc/transaction.go +++ b/www/grpc/transaction.go @@ -3,6 +3,8 @@ package grpc import ( "context" + "github.com/pactus-project/pactus/crypto" + "github.com/pactus-project/pactus/crypto/bls" "github.com/pactus-project/pactus/crypto/hash" "github.com/pactus-project/pactus/types/tx" "github.com/pactus-project/pactus/types/tx/payload" @@ -84,6 +86,107 @@ func (s *transactionServer) CalculateFee(_ context.Context, }, nil } +func (s *transactionServer) GetRawTransferTransaction(_ context.Context, + req *pactus.GetRawTransferTransactionRequest, +) (*pactus.GetRawTransactionResponse, error) { + sender, err := crypto.AddressFromString(req.Sender) + if err != nil { + return nil, err + } + + receiver, err := crypto.AddressFromString(req.Receiver) + if err != nil { + return nil, err + } + + transferTx := tx.NewTransferTx(req.LockTime, sender, receiver, req.Amount, req.Fee, req.Memo) + rawTx, err := transferTx.Bytes() + if err != nil { + return nil, err + } + + return &pactus.GetRawTransactionResponse{ + RawTransaction: rawTx, + }, nil +} + +func (s *transactionServer) GetRawBondTransaction(_ context.Context, + req *pactus.GetRawBondTransactionRequest, +) (*pactus.GetRawTransactionResponse, error) { + sender, err := crypto.AddressFromString(req.Sender) + if err != nil { + return nil, err + } + + receiver, err := crypto.AddressFromString(req.Receiver) + if err != nil { + return nil, err + } + + var publicKey *bls.PublicKey + if req.PublicKey != "" { + publicKey, err = bls.PublicKeyFromString(req.PublicKey) + if err != nil { + return nil, err + } + } else { + publicKey = nil + } + + bondTx := tx.NewBondTx(req.LockTime, sender, receiver, publicKey, req.Stake, req.Fee, req.Memo) + rawTx, err := bondTx.Bytes() + if err != nil { + return nil, err + } + + return &pactus.GetRawTransactionResponse{ + RawTransaction: rawTx, + }, nil +} + +func (s *transactionServer) GetRawUnBondTransaction(_ context.Context, + req *pactus.GetRawUnBondTransactionRequest, +) (*pactus.GetRawTransactionResponse, error) { + validatorAddr, err := crypto.AddressFromString(req.ValidatorAddress) + if err != nil { + return nil, err + } + + unBondTx := tx.NewUnbondTx(req.LockTime, validatorAddr, req.Memo) + rawTx, err := unBondTx.Bytes() + if err != nil { + return nil, err + } + + return &pactus.GetRawTransactionResponse{ + RawTransaction: rawTx, + }, nil +} + +func (s *transactionServer) GetRawWithdrawTransaction(_ context.Context, + req *pactus.GetRawWithdrawTransactionRequest, +) (*pactus.GetRawTransactionResponse, error) { + validatorAddr, err := crypto.AddressFromString(req.ValidatorAddress) + if err != nil { + return nil, err + } + + accountAddr, err := crypto.AddressFromString(req.AccountAddress) + if err != nil { + return nil, err + } + + withdrawTx := tx.NewWithdrawTx(req.LockTime, validatorAddr, accountAddr, req.Amount, req.Fee, req.Memo) + rawTx, err := withdrawTx.Bytes() + if err != nil { + return nil, err + } + + return &pactus.GetRawTransactionResponse{ + RawTransaction: rawTx, + }, nil +} + func transactionToProto(trx *tx.Tx) *pactus.TransactionInfo { data, _ := trx.Bytes() transaction := &pactus.TransactionInfo{ diff --git a/www/grpc/transaction_test.go b/www/grpc/transaction_test.go index b546e0f16..57410dd33 100644 --- a/www/grpc/transaction_test.go +++ b/www/grpc/transaction_test.go @@ -1,6 +1,7 @@ package grpc import ( + "fmt" "testing" "github.com/pactus-project/pactus/types/tx/payload" @@ -105,3 +106,69 @@ func TestSendRawTransaction(t *testing.T) { }) assert.Nil(t, conn.Close(), "Error closing connection") } + +func TestGetRawTransaction(t *testing.T) { + ts := testsuite.NewTestSuite(t) + + conn, client := testTransactionClient(t) + + t.Run("Transfer", func(t *testing.T) { + trx, _ := ts.GenerateTestTransferTx() + + res, err := client.GetRawTransferTransaction(tCtx, &pactus.GetRawTransferTransactionRequest{ + LockTime: trx.LockTime(), + Sender: trx.Payload().Signer().String(), + Receiver: trx.Payload().Receiver().String(), + Amount: trx.Payload().Value(), + Fee: trx.Fee(), + Memo: trx.Memo(), + }) + assert.Nil(t, err) + fmt.Println(res.RawTransaction) + }) + + t.Run("Bond", func(t *testing.T) { + trx, _ := ts.GenerateTestBondTx() + + res, err := client.GetRawBondTransaction(tCtx, &pactus.GetRawBondTransactionRequest{ + LockTime: trx.LockTime(), + Sender: trx.Payload().Signer().String(), + Receiver: trx.Payload().Receiver().String(), + Stake: trx.Payload().Value(), + PublicKey: "", + Fee: trx.Fee(), + Memo: trx.Memo(), + }) + assert.Nil(t, err) + fmt.Println(res.RawTransaction) + }) + + t.Run("UnBond", func(t *testing.T) { + trx, _ := ts.GenerateTestUnbondTx() + + res, err := client.GetRawUnBondTransaction(tCtx, &pactus.GetRawUnBondTransactionRequest{ + LockTime: trx.LockTime(), + ValidatorAddress: trx.Payload().Signer().String(), + Memo: trx.Memo(), + }) + assert.Nil(t, err) + fmt.Println(res.RawTransaction) + }) + + t.Run("Withdraw", func(t *testing.T) { + trx, privateKey := ts.GenerateTestWithdrawTx() + + res, err := client.GetRawWithdrawTransaction(tCtx, &pactus.GetRawWithdrawTransactionRequest{ + LockTime: trx.LockTime(), + ValidatorAddress: privateKey.PublicKeyNative().ValidatorAddress().String(), + AccountAddress: privateKey.PublicKeyNative().AccountAddress().String(), + Fee: trx.Fee(), + Amount: trx.Payload().Value(), + Memo: trx.Memo(), + }) + fmt.Println(err) + assert.Nil(t, err) + fmt.Println(res.RawTransaction) + }) + assert.Nil(t, conn.Close(), "Error closing connection") +}