google-cloud-universal_ledger-v1 0.a → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +151 -8
- data/lib/google/cloud/universal_ledger/v1/rest.rb +37 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger/client.rb +1163 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger/credentials.rb +47 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger/paths.rb +69 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger/rest/client.rb +1067 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger/rest/service_stub.rb +511 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger/rest.rb +59 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger.rb +62 -0
- data/lib/google/cloud/universal_ledger/v1/version.rb +7 -2
- data/lib/google/cloud/universal_ledger/v1.rb +45 -0
- data/lib/google/cloud/universalledger/v1/accounts_pb.rb +23 -0
- data/lib/google/cloud/universalledger/v1/common_pb.rb +36 -0
- data/lib/google/cloud/universalledger/v1/query_pb.rb +39 -0
- data/lib/google/cloud/universalledger/v1/status_event_pb.rb +27 -0
- data/lib/google/cloud/universalledger/v1/transactions_pb.rb +52 -0
- data/lib/google/cloud/universalledger/v1/types_pb.rb +47 -0
- data/lib/google/cloud/universalledger/v1/universalledger_pb.rb +41 -0
- data/lib/google/cloud/universalledger/v1/universalledger_services_pb.rb +89 -0
- data/lib/google-cloud-universal_ledger-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +593 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/universalledger/v1/accounts.rb +75 -0
- data/proto_docs/google/cloud/universalledger/v1/common.rb +272 -0
- data/proto_docs/google/cloud/universalledger/v1/query.rb +314 -0
- data/proto_docs/google/cloud/universalledger/v1/status_event.rb +88 -0
- data/proto_docs/google/cloud/universalledger/v1/transactions.rb +716 -0
- data/proto_docs/google/cloud/universalledger/v1/types.rb +618 -0
- data/proto_docs/google/cloud/universalledger/v1/universalledger.rb +237 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +128 -0
- data/proto_docs/google/rpc/code.rb +185 -0
- metadata +86 -9
|
@@ -0,0 +1,618 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module UniversalLedger
|
|
23
|
+
module V1
|
|
24
|
+
# Represents a transaction initiated by a client.
|
|
25
|
+
# @!attribute [rw] operational
|
|
26
|
+
# @return [::Google::Protobuf::Any]
|
|
27
|
+
# Optional. An operational transaction message. Note this can only be sent
|
|
28
|
+
# by the platform operator. Should be any one of:
|
|
29
|
+
#
|
|
30
|
+
# <!--
|
|
31
|
+
# clang-format off
|
|
32
|
+
# -->
|
|
33
|
+
# - {::Google::Cloud::UniversalLedger::V1::CreateSnapshot CreateSnapshot}
|
|
34
|
+
# <!--
|
|
35
|
+
# clang-format on
|
|
36
|
+
# -->
|
|
37
|
+
#
|
|
38
|
+
# Note: The following fields are mutually exclusive: `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
39
|
+
# @!attribute [rw] transfer_platform_operator_transaction
|
|
40
|
+
# @return [::Google::Cloud::UniversalLedger::V1::TransferPlatformOperator]
|
|
41
|
+
# Optional. Message for transferring the platform operator role to a new
|
|
42
|
+
# account.
|
|
43
|
+
#
|
|
44
|
+
# Note: The following fields are mutually exclusive: `transfer_platform_operator_transaction`, `operational`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
45
|
+
# @!attribute [rw] create_currency_operator_transaction
|
|
46
|
+
# @return [::Google::Cloud::UniversalLedger::V1::CreateCurrencyOperator]
|
|
47
|
+
# Optional. Message for creating a new currency operator.
|
|
48
|
+
#
|
|
49
|
+
# Note: The following fields are mutually exclusive: `create_currency_operator_transaction`, `operational`, `transfer_platform_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
50
|
+
# @!attribute [rw] transfer_currency_operator_transaction
|
|
51
|
+
# @return [::Google::Cloud::UniversalLedger::V1::TransferCurrencyOperator]
|
|
52
|
+
# Optional. Message for transferring the currency operator role to a new
|
|
53
|
+
# account.
|
|
54
|
+
#
|
|
55
|
+
# Note: The following fields are mutually exclusive: `transfer_currency_operator_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
56
|
+
# @!attribute [rw] create_clearinghouse_transaction
|
|
57
|
+
# @return [::Google::Cloud::UniversalLedger::V1::CreateClearinghouse]
|
|
58
|
+
# Optional. Message for creating a new clearinghouse.
|
|
59
|
+
#
|
|
60
|
+
# Note: The following fields are mutually exclusive: `create_clearinghouse_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
61
|
+
# @!attribute [rw] create_account_manager_transaction
|
|
62
|
+
# @return [::Google::Cloud::UniversalLedger::V1::CreateAccountManager]
|
|
63
|
+
# Optional. Message for creating a new account manager.
|
|
64
|
+
#
|
|
65
|
+
# Note: The following fields are mutually exclusive: `create_account_manager_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
66
|
+
# @!attribute [rw] create_token_manager_transaction
|
|
67
|
+
# @return [::Google::Cloud::UniversalLedger::V1::CreateTokenManager]
|
|
68
|
+
# Optional. Message for creating a new token manager associated to the
|
|
69
|
+
# currency of the operator sending the request.
|
|
70
|
+
#
|
|
71
|
+
# Note: The following fields are mutually exclusive: `create_token_manager_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
72
|
+
# @!attribute [rw] increase_token_issuance_limit_transaction
|
|
73
|
+
# @return [::Google::Cloud::UniversalLedger::V1::IncreaseTokenIssuanceLimit]
|
|
74
|
+
# Optional. Notifies the network that the target account has deposited
|
|
75
|
+
# reserve funds and increases its token issuance limit.
|
|
76
|
+
#
|
|
77
|
+
# Note: The following fields are mutually exclusive: `increase_token_issuance_limit_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
78
|
+
# @!attribute [rw] decrease_token_issuance_limit_transaction
|
|
79
|
+
# @return [::Google::Cloud::UniversalLedger::V1::DecreaseTokenIssuanceLimit]
|
|
80
|
+
# Optional. Notifies the network that the target account wishes to withdraw
|
|
81
|
+
# reserve funds and decreases its token issuance limit.
|
|
82
|
+
#
|
|
83
|
+
# Note: The following fields are mutually exclusive: `decrease_token_issuance_limit_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
84
|
+
# @!attribute [rw] settlement_request_transaction
|
|
85
|
+
# @return [::Google::Cloud::UniversalLedger::V1::SettlementRequest]
|
|
86
|
+
# Optional. Message for initiating a settlement operation.
|
|
87
|
+
#
|
|
88
|
+
# Note: The following fields are mutually exclusive: `settlement_request_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
89
|
+
# @!attribute [rw] mint_transaction
|
|
90
|
+
# @return [::Google::Cloud::UniversalLedger::V1::Mint]
|
|
91
|
+
# Optional. Message for minting currency tokens and transferring them to an
|
|
92
|
+
# account.
|
|
93
|
+
#
|
|
94
|
+
# Note: The following fields are mutually exclusive: `mint_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
95
|
+
# @!attribute [rw] burn_transaction
|
|
96
|
+
# @return [::Google::Cloud::UniversalLedger::V1::Burn]
|
|
97
|
+
# Optional. Message for burning currency tokens from an account.
|
|
98
|
+
#
|
|
99
|
+
# Note: The following fields are mutually exclusive: `burn_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
100
|
+
# @!attribute [rw] create_account_transaction
|
|
101
|
+
# @return [::Google::Cloud::UniversalLedger::V1::CreateAccount]
|
|
102
|
+
# Optional. Message for creating a new user account.
|
|
103
|
+
#
|
|
104
|
+
# Note: The following fields are mutually exclusive: `create_account_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
105
|
+
# @!attribute [rw] deactivate_account_transaction
|
|
106
|
+
# @return [::Google::Cloud::UniversalLedger::V1::DeactivateAccount]
|
|
107
|
+
# Optional. Message for deactivating a user account.
|
|
108
|
+
#
|
|
109
|
+
# Note: The following fields are mutually exclusive: `deactivate_account_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
110
|
+
# @!attribute [rw] activate_account_transaction
|
|
111
|
+
# @return [::Google::Cloud::UniversalLedger::V1::ActivateAccount]
|
|
112
|
+
# Optional. Message for activating a user account.
|
|
113
|
+
#
|
|
114
|
+
# Note: The following fields are mutually exclusive: `activate_account_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
115
|
+
# @!attribute [rw] add_roles_transaction
|
|
116
|
+
# @return [::Google::Cloud::UniversalLedger::V1::AddRoles]
|
|
117
|
+
# Optional. Message for adding roles to an account.
|
|
118
|
+
#
|
|
119
|
+
# Note: The following fields are mutually exclusive: `add_roles_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
120
|
+
# @!attribute [rw] remove_roles_transaction
|
|
121
|
+
# @return [::Google::Cloud::UniversalLedger::V1::RemoveRoles]
|
|
122
|
+
# Optional. Message for removing roles from an account.
|
|
123
|
+
#
|
|
124
|
+
# Note: The following fields are mutually exclusive: `remove_roles_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
125
|
+
# @!attribute [rw] change_account_manager_transaction
|
|
126
|
+
# @return [::Google::Cloud::UniversalLedger::V1::ChangeAccountManager]
|
|
127
|
+
# Optional. Message for changing the account manager of an account.
|
|
128
|
+
#
|
|
129
|
+
# Note: The following fields are mutually exclusive: `change_account_manager_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
130
|
+
# @!attribute [rw] transfer_transaction
|
|
131
|
+
# @return [::Google::Cloud::UniversalLedger::V1::Transfer]
|
|
132
|
+
# Optional. Message for transferring tokens from one user account to
|
|
133
|
+
# another.
|
|
134
|
+
#
|
|
135
|
+
# Note: The following fields are mutually exclusive: `transfer_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
136
|
+
# @!attribute [rw] create_contract_transaction
|
|
137
|
+
# @return [::Google::Cloud::UniversalLedger::V1::CreateContract]
|
|
138
|
+
# Optional. Message for creating a new contract on the ledger.
|
|
139
|
+
#
|
|
140
|
+
# Note: The following fields are mutually exclusive: `create_contract_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
141
|
+
# @!attribute [rw] grant_contract_permissions_transaction
|
|
142
|
+
# @return [::Google::Cloud::UniversalLedger::V1::GrantContractPermissions]
|
|
143
|
+
# Optional. Message for granting permissions to a contract.
|
|
144
|
+
#
|
|
145
|
+
# Note: The following fields are mutually exclusive: `grant_contract_permissions_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
146
|
+
# @!attribute [rw] invoke_contract_method_transaction
|
|
147
|
+
# @return [::Google::Cloud::UniversalLedger::V1::InvokeContractMethod]
|
|
148
|
+
# Optional. Message for invoking the execution of a contract method.
|
|
149
|
+
#
|
|
150
|
+
# Note: The following fields are mutually exclusive: `invoke_contract_method_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
151
|
+
# @!attribute [rw] create_contract_token_manager_transaction
|
|
152
|
+
# @return [::Google::Cloud::UniversalLedger::V1::CreateContractTokenManager]
|
|
153
|
+
# Optional. Message for creating a new token manager associated to the
|
|
154
|
+
# currency of the operator sending the request.
|
|
155
|
+
#
|
|
156
|
+
# Note: The following fields are mutually exclusive: `create_contract_token_manager_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
157
|
+
# @!attribute [rw] transfer_contract_token_manager_transaction
|
|
158
|
+
# @return [::Google::Cloud::UniversalLedger::V1::TransferContractTokenManager]
|
|
159
|
+
# Optional. Message for transferring the token manager role for a currency
|
|
160
|
+
# from one account to another.
|
|
161
|
+
#
|
|
162
|
+
# Note: The following fields are mutually exclusive: `transfer_contract_token_manager_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
163
|
+
# @!attribute [rw] remove_signing_public_key_transaction
|
|
164
|
+
# @return [::Google::Cloud::UniversalLedger::V1::RemoveSigningPublicKey]
|
|
165
|
+
# Optional. Message for removing an account signing key.
|
|
166
|
+
#
|
|
167
|
+
# Note: The following fields are mutually exclusive: `remove_signing_public_key_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `replace_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
168
|
+
# @!attribute [rw] replace_signing_public_key_transaction
|
|
169
|
+
# @return [::Google::Cloud::UniversalLedger::V1::ReplaceSigningPublicKey]
|
|
170
|
+
# Optional. Message for replacing an account signing key.
|
|
171
|
+
#
|
|
172
|
+
# Note: The following fields are mutually exclusive: `replace_signing_public_key_transaction`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
173
|
+
# @!attribute [rw] chain
|
|
174
|
+
# @return [::Google::Cloud::UniversalLedger::V1::TransactionChain]
|
|
175
|
+
# Optional. Message for a transaction chain including multiple transaction
|
|
176
|
+
# units to execute in sequence.
|
|
177
|
+
#
|
|
178
|
+
# Note: The following fields are mutually exclusive: `chain`, `operational`, `transfer_platform_operator_transaction`, `create_currency_operator_transaction`, `transfer_currency_operator_transaction`, `create_clearinghouse_transaction`, `create_account_manager_transaction`, `create_token_manager_transaction`, `increase_token_issuance_limit_transaction`, `decrease_token_issuance_limit_transaction`, `settlement_request_transaction`, `mint_transaction`, `burn_transaction`, `create_account_transaction`, `deactivate_account_transaction`, `activate_account_transaction`, `add_roles_transaction`, `remove_roles_transaction`, `change_account_manager_transaction`, `transfer_transaction`, `create_contract_transaction`, `grant_contract_permissions_transaction`, `invoke_contract_method_transaction`, `create_contract_token_manager_transaction`, `transfer_contract_token_manager_transaction`, `remove_signing_public_key_transaction`, `replace_signing_public_key_transaction`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
179
|
+
# @!attribute [rw] sender_id
|
|
180
|
+
# @return [::String]
|
|
181
|
+
# Required. The ID of the account that is sending this transaction.
|
|
182
|
+
# @!attribute [rw] other_signatory_ids
|
|
183
|
+
# @return [::Array<::String>]
|
|
184
|
+
# Optional. The IDs of accounts that, in addition to the sender, have signed
|
|
185
|
+
# this transaction.
|
|
186
|
+
# @!attribute [rw] sequence_number
|
|
187
|
+
# @return [::Integer]
|
|
188
|
+
# Required. A unique, monotonically increasing number, starting from 0.
|
|
189
|
+
#
|
|
190
|
+
# This number must be increased by one for each transaction previously
|
|
191
|
+
# submitted to the network by the same transaction sender.
|
|
192
|
+
#
|
|
193
|
+
# Note this does not include any transaction units that may have been
|
|
194
|
+
# submitted as part of a chain, which must not set a sequence number. But it
|
|
195
|
+
# does include the sender of the transaction chain itself.
|
|
196
|
+
# @!attribute [rw] chained_unit
|
|
197
|
+
# @return [::Boolean]
|
|
198
|
+
# Must be set to true if this client transaction is part of a transaction
|
|
199
|
+
# chain. Otherwise, it must be set to false.
|
|
200
|
+
#
|
|
201
|
+
# This is necessary to prevent a signed transaction intended to be part of a
|
|
202
|
+
# chain from being submitted on its own.
|
|
203
|
+
# @!attribute [rw] network
|
|
204
|
+
# @return [::String]
|
|
205
|
+
# Required. The name of the network this transaction is intended for, such as
|
|
206
|
+
# `user-testing`. The transaction will be rejected if the name does not
|
|
207
|
+
# match that of the network processing the transaction.
|
|
208
|
+
class ClientTransaction
|
|
209
|
+
include ::Google::Protobuf::MessageExts
|
|
210
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# A transaction with attached signatures. To submit a transaction, this message
|
|
214
|
+
# should be serialized and included in a
|
|
215
|
+
# {::Google::Cloud::UniversalLedger::V1::SubmitTransactionRequest SubmitTransactionRequest}.
|
|
216
|
+
# @!attribute [rw] serialized_client_transaction
|
|
217
|
+
# @return [::String]
|
|
218
|
+
# Required. A serialized
|
|
219
|
+
# {::Google::Cloud::UniversalLedger::V1::ClientTransaction ClientTransaction}
|
|
220
|
+
# with the transaction details.
|
|
221
|
+
# @!attribute [rw] sender_signature
|
|
222
|
+
# @return [::String]
|
|
223
|
+
# Required. The signature of the transaction sender.
|
|
224
|
+
#
|
|
225
|
+
# The signature should be computed by signing the
|
|
226
|
+
# `serialized_client_transaction` bytes with their own private key.
|
|
227
|
+
#
|
|
228
|
+
# For a transaction chain, the bytes to be signed are computed as the
|
|
229
|
+
# concatenation of:
|
|
230
|
+
#
|
|
231
|
+
# - A digest of the serialized client transaction of the entire chain.
|
|
232
|
+
# - A digest of the serialized signed transaction of each unit in the chain,
|
|
233
|
+
# in the order they appear in the chain.
|
|
234
|
+
#
|
|
235
|
+
# The digests are computed using SHA-256.
|
|
236
|
+
# @!attribute [rw] sender_signing_key_slot
|
|
237
|
+
# @return [::Google::Cloud::UniversalLedger::V1::KeySlot]
|
|
238
|
+
# Optional. The key slot of the sender used to sign the transaction. Uses the
|
|
239
|
+
# primary slot of the sender account if not specified.
|
|
240
|
+
# @!attribute [rw] other_signatures
|
|
241
|
+
# @return [::Array<::String>]
|
|
242
|
+
# Optional. The signatures of accounts listed as additional transaction
|
|
243
|
+
# signatories. The number and order of these signatures must match the
|
|
244
|
+
# `signatories` field in the
|
|
245
|
+
# {::Google::Cloud::UniversalLedger::V1::ClientTransaction ClientTransaction}.
|
|
246
|
+
#
|
|
247
|
+
# The bytes to be signed are the same as those for the `sender_signature`,
|
|
248
|
+
# which each signatory should sign with their own private key.
|
|
249
|
+
#
|
|
250
|
+
# The number and identity of additional signatories depends on the particular
|
|
251
|
+
# transaction kind. For a transaction chain, one signature is needed for each
|
|
252
|
+
# account appearing either as the sender or as a signatory of a unit in the
|
|
253
|
+
# chain.
|
|
254
|
+
# @!attribute [rw] other_signing_key_slots
|
|
255
|
+
# @return [::Array<::Google::Cloud::UniversalLedger::V1::KeySlot>]
|
|
256
|
+
# Optional. The key slots of the accounts listed as additional transaction
|
|
257
|
+
# signatories. If set, the number and order of these key slots must match the
|
|
258
|
+
# `other_signatures` field in the
|
|
259
|
+
# {::Google::Cloud::UniversalLedger::V1::SignedTransaction SignedTransaction}.
|
|
260
|
+
# Defaults to the primary slot of each account if not specified.
|
|
261
|
+
class SignedTransaction
|
|
262
|
+
include ::Google::Protobuf::MessageExts
|
|
263
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# A transaction chain including multiple transaction units to execute in
|
|
267
|
+
# sequence.
|
|
268
|
+
#
|
|
269
|
+
# The units will be executed sequentially, in the order they are listed. If all
|
|
270
|
+
# of the units succeed, their cumulative effects will be committed atomically
|
|
271
|
+
# to the world state. Otherwise, if any of them fails, the whole chain will be
|
|
272
|
+
# failed and none of its effects will be applied.
|
|
273
|
+
# @!attribute [rw] units
|
|
274
|
+
# @return [::Array<::String>]
|
|
275
|
+
# The individual units of the chain. Each unit must be a serialized
|
|
276
|
+
# {::Google::Cloud::UniversalLedger::V1::SignedTransaction SignedTransaction}.
|
|
277
|
+
#
|
|
278
|
+
# Note that the serialized bytes are required in order to determine the bytes
|
|
279
|
+
# to be signed for the chain itself.
|
|
280
|
+
class TransactionChain
|
|
281
|
+
include ::Google::Protobuf::MessageExts
|
|
282
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# A Merkle tree with a cryptographic digest of the root node.
|
|
286
|
+
# @!attribute [r] root_digest_hex
|
|
287
|
+
# @return [::String]
|
|
288
|
+
# Output only. The hexadecimal representation of the digest of the root node.
|
|
289
|
+
# Format: A 64-character hexadecimal string.
|
|
290
|
+
# @!attribute [r] num_transactions
|
|
291
|
+
# @return [::Integer]
|
|
292
|
+
# Output only. The number of transactions in the tree.
|
|
293
|
+
class MerkleTree
|
|
294
|
+
include ::Google::Protobuf::MessageExts
|
|
295
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# Certificate of the execution of a round by a specific validator.
|
|
299
|
+
# @!attribute [r] round_id
|
|
300
|
+
# @return [::Integer]
|
|
301
|
+
# Output only. The ID of the round for which the certificate is for.
|
|
302
|
+
# @!attribute [r] validator_id
|
|
303
|
+
# @return [::String]
|
|
304
|
+
# Output only. The human readable validator identifier. This is used to look
|
|
305
|
+
# up the public key against which the `validator_signatures` is verified.
|
|
306
|
+
# @!attribute [r] round_state_checksum_hex
|
|
307
|
+
# @return [::String]
|
|
308
|
+
# Output only. The hex representation of the homomorphic digest over the
|
|
309
|
+
# world state after the effects of this round are applied.
|
|
310
|
+
# @!attribute [r] round_delta_checksum_hex
|
|
311
|
+
# @return [::String]
|
|
312
|
+
# Output only. The hex representation of the homomorphic digest over the
|
|
313
|
+
# aggregated transaction effects of this round.
|
|
314
|
+
# @!attribute [r] merkle_tree
|
|
315
|
+
# @return [::Google::Cloud::UniversalLedger::V1::MerkleTree]
|
|
316
|
+
# Output only. Merkle tree having this round as root node and transaction
|
|
317
|
+
# batches (executed in the round) as the leaves.
|
|
318
|
+
# @!attribute [rw] validator_signatures
|
|
319
|
+
# @return [::Array<::String>]
|
|
320
|
+
# Optional. The signature of the validator. This is signed over the digest of
|
|
321
|
+
# the preceding payload of this record.
|
|
322
|
+
# @!attribute [r] is_finalized
|
|
323
|
+
# @return [::Boolean]
|
|
324
|
+
# Output only. Boolean to indicate if the round is finalized, i.e., whether a
|
|
325
|
+
# sufficient quorum of validators have certified this round with the same
|
|
326
|
+
# certificate.
|
|
327
|
+
class RoundCertificate
|
|
328
|
+
include ::Google::Protobuf::MessageExts
|
|
329
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
# Represents an update by some transaction to the world state.
|
|
333
|
+
#
|
|
334
|
+
# If it has a `delta_val`, it is assumed to be a delta (an integer offset)
|
|
335
|
+
# applied to the previously stored value on a given key. In that case,
|
|
336
|
+
# `new_val` and `old_val` should be empty.
|
|
337
|
+
#
|
|
338
|
+
# Otherwise, it is assumed to have at least one of `old_val` or `new_val` (or
|
|
339
|
+
# both). An empty `old_val` indicates the value was inserted. An empty
|
|
340
|
+
# `new_val` indicates the value was deleted.
|
|
341
|
+
# @!attribute [r] key
|
|
342
|
+
# @return [::String]
|
|
343
|
+
# Output only. The key in the world state that was updated.
|
|
344
|
+
# @!attribute [r] old_val
|
|
345
|
+
# @return [::String]
|
|
346
|
+
# Output only. The value of the key before the transaction was executed.
|
|
347
|
+
# @!attribute [r] new_val
|
|
348
|
+
# @return [::String]
|
|
349
|
+
# Output only. The value of the key after the transaction was executed.
|
|
350
|
+
# @!attribute [r] delta_val
|
|
351
|
+
# @return [::Integer]
|
|
352
|
+
# Output only. An integer offset that was applied to the previously stored
|
|
353
|
+
# value.
|
|
354
|
+
class TransactionEffect
|
|
355
|
+
include ::Google::Protobuf::MessageExts
|
|
356
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
# Represents the status of a transaction execution.
|
|
360
|
+
# @!attribute [r] code
|
|
361
|
+
# @return [::Integer]
|
|
362
|
+
# Output only. The status code, a numeric value whose meaning is defined by
|
|
363
|
+
# the corresponding [gRPC status
|
|
364
|
+
# code](https://github.com/grpc/grpc/blob/master/doc/statuscodes.md).
|
|
365
|
+
# @!attribute [r] message
|
|
366
|
+
# @return [::String]
|
|
367
|
+
# Output only. The error message, if any. Set only if code is not `OK`. This
|
|
368
|
+
# is a string encoded as utf-8 bytes. Stored as bytes to prevent any issues
|
|
369
|
+
# with the determinism of the encoding.
|
|
370
|
+
class TransactionStatus
|
|
371
|
+
include ::Google::Protobuf::MessageExts
|
|
372
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
# Effects of the execution of a transaction.
|
|
376
|
+
# @!attribute [r] status
|
|
377
|
+
# @return [::Google::Cloud::UniversalLedger::V1::TransactionStatus]
|
|
378
|
+
# Output only. The resulting status of the transaction execution.
|
|
379
|
+
# @!attribute [r] effects
|
|
380
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
381
|
+
# @return [::Array<::Google::Cloud::UniversalLedger::V1::TransactionEffect>]
|
|
382
|
+
# Output only. Deprecated: Query the network state instead to determine any
|
|
383
|
+
# changes to the world state. The effects of the transaction in the world
|
|
384
|
+
# state.
|
|
385
|
+
class TransactionEffects
|
|
386
|
+
include ::Google::Protobuf::MessageExts
|
|
387
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
# An event produced by a transaction.
|
|
391
|
+
# @!attribute [r] type
|
|
392
|
+
# @return [::String]
|
|
393
|
+
# Output only. The type of event. A special event of type
|
|
394
|
+
# `transaction_output` contains the outputs produced by the transaction—for
|
|
395
|
+
# example, the account ID of a newly created account.
|
|
396
|
+
# @!attribute [r] attributes
|
|
397
|
+
# @return [::Array<::Google::Cloud::UniversalLedger::V1::TransactionEvent::EventAttribute>]
|
|
398
|
+
# Output only. The event attributes as arbitrary key-value pairs.
|
|
399
|
+
class TransactionEvent
|
|
400
|
+
include ::Google::Protobuf::MessageExts
|
|
401
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
402
|
+
|
|
403
|
+
# An individual attribute as a key-value pair.
|
|
404
|
+
# @!attribute [r] key
|
|
405
|
+
# @return [::String]
|
|
406
|
+
# Output only. The key of the attribute.
|
|
407
|
+
# @!attribute [r] value
|
|
408
|
+
# @return [::String]
|
|
409
|
+
# Output only. The value of the attribute.
|
|
410
|
+
class EventAttribute
|
|
411
|
+
include ::Google::Protobuf::MessageExts
|
|
412
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
413
|
+
end
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
# Certificate of the execution of a specific transaction in a round.
|
|
417
|
+
# @!attribute [r] transaction_digest_hex
|
|
418
|
+
# @return [::String]
|
|
419
|
+
# Output only. The ID of the transaction this certificate is for.
|
|
420
|
+
# @!attribute [r] round_id
|
|
421
|
+
# @return [::Integer]
|
|
422
|
+
# Output only. The ID of the execution round at which this transaction was
|
|
423
|
+
# executed in.
|
|
424
|
+
# @!attribute [r] transaction_effects
|
|
425
|
+
# @return [::Google::Cloud::UniversalLedger::V1::TransactionEffects]
|
|
426
|
+
# Output only. The effects from the transaction execution.
|
|
427
|
+
# @!attribute [r] events
|
|
428
|
+
# @return [::Array<::Google::Cloud::UniversalLedger::V1::TransactionEvent>]
|
|
429
|
+
# Output only. Events produced by the transaction.
|
|
430
|
+
# @!attribute [r] transaction_effects_state_checksum_hex
|
|
431
|
+
# @return [::String]
|
|
432
|
+
# Output only. Homomorphic checksum of the effects. A 2048 byte value encoded
|
|
433
|
+
# as a hexadecimal string.
|
|
434
|
+
# @!attribute [r] certification_results_digest_hex
|
|
435
|
+
# @return [::String]
|
|
436
|
+
# Output only. The cryptographic digest of all the previous fields in
|
|
437
|
+
# sequence. Used to build a Merkle tree for the proof of inclusion.
|
|
438
|
+
class TransactionCertificate
|
|
439
|
+
include ::Google::Protobuf::MessageExts
|
|
440
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
# Certificate of the inclusion of the effects of a transaction in the world
|
|
444
|
+
# state.
|
|
445
|
+
# @!attribute [r] transaction_certificate
|
|
446
|
+
# @return [::Google::Cloud::UniversalLedger::V1::TransactionCertificate]
|
|
447
|
+
# Output only. Certificate of the inclusion of the transaction effects in a
|
|
448
|
+
# specific round.
|
|
449
|
+
# @!attribute [r] round_certificate
|
|
450
|
+
# @return [::Google::Cloud::UniversalLedger::V1::RoundCertificate]
|
|
451
|
+
# Output only. Certificate of the execution of the round.
|
|
452
|
+
# @!attribute [r] path_to_round_root
|
|
453
|
+
# @return [::Array<::Google::Cloud::UniversalLedger::V1::ProofOfInclusion::MerkleTreeNode>]
|
|
454
|
+
# Output only. Cryptographic proof of inclusion of the transaction effects in
|
|
455
|
+
# the execution round.
|
|
456
|
+
#
|
|
457
|
+
# It is given as a path from a given leaf (a transaction digest) to the root
|
|
458
|
+
# of the execution round. The path is represented as a list of (left child,
|
|
459
|
+
# right child) pairs, and the first pair is the left and right children of
|
|
460
|
+
# the given leaf's parent node. For example, assuming the Merkle tree was
|
|
461
|
+
# built with eight leaf digests `[t0, t1, t2, t3, t4, t5, t6, t7]`, having
|
|
462
|
+
# the following structure:
|
|
463
|
+
#
|
|
464
|
+
# _____root_digest____
|
|
465
|
+
# | |
|
|
466
|
+
# __ h20__ __h21__
|
|
467
|
+
# | | | |
|
|
468
|
+
# h10 h11 h12 h13
|
|
469
|
+
# | | | | | | | |
|
|
470
|
+
# t0 t1 t2 t3 t4 t5 t6 t7
|
|
471
|
+
#
|
|
472
|
+
# In here, `path_to_round_root` for `t0` will contain:
|
|
473
|
+
# `[(t0, t1), (h10, h11), (h20, h21)]`.
|
|
474
|
+
#
|
|
475
|
+
# One can consecutively compute SHA-256 digests of each
|
|
476
|
+
# path node to verify that the digest of the path produces the same value as
|
|
477
|
+
# the `round_certificate.merkle_tree.root_digest_hex`. Thus, verifying that
|
|
478
|
+
# the leaf was included in the round's Merkle tree.
|
|
479
|
+
class ProofOfInclusion
|
|
480
|
+
include ::Google::Protobuf::MessageExts
|
|
481
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
482
|
+
|
|
483
|
+
# Represents a node in a Merkle tree path.
|
|
484
|
+
# @!attribute [r] left_child_digest_hex
|
|
485
|
+
# @return [::String]
|
|
486
|
+
# Output only. The hexadecimal representation of the digest of the left
|
|
487
|
+
# child of a node. Format: A 64-character hexadecimal string.
|
|
488
|
+
# @!attribute [r] right_child_digest_hex
|
|
489
|
+
# @return [::String]
|
|
490
|
+
# Output only. The hexadecimal representation of the digest of the right
|
|
491
|
+
# child of a node. Format: A 64-character hexadecimal string.
|
|
492
|
+
class MerkleTreeNode
|
|
493
|
+
include ::Google::Protobuf::MessageExts
|
|
494
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
495
|
+
end
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
# The state of an attempted transaction submission.
|
|
499
|
+
# @!attribute [r] status
|
|
500
|
+
# @return [::Google::Cloud::UniversalLedger::V1::TransactionAttempt::TransactionStatus]
|
|
501
|
+
# Output only. The current status of the transaction attempt.
|
|
502
|
+
# @!attribute [r] proof_of_inclusion
|
|
503
|
+
# @return [::Google::Cloud::UniversalLedger::V1::ProofOfInclusion]
|
|
504
|
+
# Output only. Certificate of the inclusion of the transaction effects in the
|
|
505
|
+
# world state. Only provided if status is `FINALIZED`.
|
|
506
|
+
# @!attribute [r] status_events
|
|
507
|
+
# @return [::Array<::Google::Cloud::UniversalLedger::V1::StatusEvent>]
|
|
508
|
+
# Output only. The ordered status events recorded for the transaction
|
|
509
|
+
# attempt.
|
|
510
|
+
class TransactionAttempt
|
|
511
|
+
include ::Google::Protobuf::MessageExts
|
|
512
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
513
|
+
|
|
514
|
+
# The status of the transaction attempt.
|
|
515
|
+
module TransactionStatus
|
|
516
|
+
# Unknown or uninitialized state.
|
|
517
|
+
TRANSACTION_STATUS_UNSPECIFIED = 0
|
|
518
|
+
|
|
519
|
+
# The transaction is known to this validator, but it is not finalized yet.
|
|
520
|
+
PENDING = 1
|
|
521
|
+
|
|
522
|
+
# The transaction is finalized. Its effects have been persisted on the
|
|
523
|
+
# blockchain and cannot be reversed.
|
|
524
|
+
FINALIZED = 2
|
|
525
|
+
end
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
# A signed query request from the client.
|
|
529
|
+
# @!attribute [rw] serialized_client_query
|
|
530
|
+
# @return [::String]
|
|
531
|
+
# Required. A protobuf serialized
|
|
532
|
+
# {::Google::Cloud::UniversalLedger::V1::ClientQuery ClientQuery} to query the
|
|
533
|
+
# Universal Ledger network.
|
|
534
|
+
# @!attribute [rw] sender_signature
|
|
535
|
+
# @return [::String]
|
|
536
|
+
# Optional. The signature of the sender of the query request, computed over
|
|
537
|
+
# the `serialized_client_query` bytes. If this field is omitted, the query is
|
|
538
|
+
# treated as anonymous, and only public information will be returned.
|
|
539
|
+
#
|
|
540
|
+
# The signature is verified by the server only if the sender identifier is
|
|
541
|
+
# provided in the {::Google::Cloud::UniversalLedger::V1::ClientQuery ClientQuery}.
|
|
542
|
+
# The signature is rejected if expiry time in the serialized
|
|
543
|
+
# {::Google::Cloud::UniversalLedger::V1::ClientQuery ClientQuery} is missing, is
|
|
544
|
+
# in the past, or more than 5 minutes in the future.
|
|
545
|
+
# @!attribute [rw] sender_signing_key_slot
|
|
546
|
+
# @return [::Google::Cloud::UniversalLedger::V1::KeySlot]
|
|
547
|
+
# Optional. The key slot of the sender used to sign the query request. Uses
|
|
548
|
+
# the primary slot of the sender account if not specified.
|
|
549
|
+
class SignedQueryRequest
|
|
550
|
+
include ::Google::Protobuf::MessageExts
|
|
551
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
552
|
+
end
|
|
553
|
+
|
|
554
|
+
# Represents a query request from a client.
|
|
555
|
+
# @!attribute [rw] account_query
|
|
556
|
+
# @return [::Google::Cloud::UniversalLedger::V1::AccountQuery]
|
|
557
|
+
# Optional. Query for the details of an account.
|
|
558
|
+
#
|
|
559
|
+
# Note: The following fields are mutually exclusive: `account_query`, `transaction_state_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
560
|
+
# @!attribute [rw] transaction_state_query
|
|
561
|
+
# @return [::Google::Cloud::UniversalLedger::V1::TransactionStateQuery]
|
|
562
|
+
# Optional. Query for the state of a transaction.
|
|
563
|
+
#
|
|
564
|
+
# Note: The following fields are mutually exclusive: `transaction_state_query`, `account_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
565
|
+
# @!attribute [rw] sender_id
|
|
566
|
+
# @return [::String]
|
|
567
|
+
# Optional. The sender of the query request.
|
|
568
|
+
# @!attribute [rw] expire_time
|
|
569
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
570
|
+
# Optional. The time at which the query will expire. This helps to limit the
|
|
571
|
+
# exposure to replay attacks. This field is required if the
|
|
572
|
+
# {::Google::Cloud::UniversalLedger::V1::SignedQueryRequest SignedQueryRequest}
|
|
573
|
+
# contains a signature and is optional otherwise. The expiration time must be
|
|
574
|
+
# in the future and at most 5 minutes from the current time, that is
|
|
575
|
+
# `now <= expire_time <= now + 5 min`.
|
|
576
|
+
class ClientQuery
|
|
577
|
+
include ::Google::Protobuf::MessageExts
|
|
578
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
579
|
+
end
|
|
580
|
+
|
|
581
|
+
# A request to query information about an account.
|
|
582
|
+
# @!attribute [rw] account_id
|
|
583
|
+
# @return [::String]
|
|
584
|
+
# Required. The ID of the account to get information about.
|
|
585
|
+
# @!attribute [rw] round_id
|
|
586
|
+
# @return [::Integer]
|
|
587
|
+
# Optional. The ID of the execution round (similar to block "height") at
|
|
588
|
+
# which to request data. The returned account information will be accurate
|
|
589
|
+
# for the world state at this execution round. If unspecified, uses the
|
|
590
|
+
# latest finalized round as known by the serving validator. The state at a
|
|
591
|
+
# given round ID is always consistent and canonical.
|
|
592
|
+
class AccountQuery
|
|
593
|
+
include ::Google::Protobuf::MessageExts
|
|
594
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
595
|
+
end
|
|
596
|
+
|
|
597
|
+
# A request to query the state of a transaction.
|
|
598
|
+
# @!attribute [rw] transaction_digest_hex
|
|
599
|
+
# @return [::String]
|
|
600
|
+
# Required. The transaction ID to get the state of.
|
|
601
|
+
class TransactionStateQuery
|
|
602
|
+
include ::Google::Protobuf::MessageExts
|
|
603
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
604
|
+
end
|
|
605
|
+
|
|
606
|
+
# The state of a transaction.
|
|
607
|
+
# @!attribute [rw] transaction_attempts
|
|
608
|
+
# @return [::Array<::Google::Cloud::UniversalLedger::V1::TransactionAttempt>]
|
|
609
|
+
# One entry per each known submission of the transaction to the validator
|
|
610
|
+
# handling the request.
|
|
611
|
+
class TransactionState
|
|
612
|
+
include ::Google::Protobuf::MessageExts
|
|
613
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
614
|
+
end
|
|
615
|
+
end
|
|
616
|
+
end
|
|
617
|
+
end
|
|
618
|
+
end
|