yellowstone-fumarole-client 0.1.0__py3-none-any.whl
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.
- yellowstone_fumarole_client/__init__.py +297 -0
- yellowstone_fumarole_client/config.py +26 -0
- yellowstone_fumarole_client/grpc_connectivity.py +197 -0
- yellowstone_fumarole_client/runtime/__init__.py +0 -0
- yellowstone_fumarole_client/runtime/aio.py +525 -0
- yellowstone_fumarole_client/runtime/state_machine.py +326 -0
- yellowstone_fumarole_client/utils/__init__.py +0 -0
- yellowstone_fumarole_client/utils/aio.py +29 -0
- yellowstone_fumarole_client/utils/collections.py +37 -0
- yellowstone_fumarole_client-0.1.0.dist-info/METADATA +110 -0
- yellowstone_fumarole_client-0.1.0.dist-info/RECORD +22 -0
- yellowstone_fumarole_client-0.1.0.dist-info/WHEEL +4 -0
- yellowstone_fumarole_proto/__init__.py +0 -0
- yellowstone_fumarole_proto/fumarole_v2_pb2.py +122 -0
- yellowstone_fumarole_proto/fumarole_v2_pb2.pyi +328 -0
- yellowstone_fumarole_proto/fumarole_v2_pb2_grpc.py +400 -0
- yellowstone_fumarole_proto/geyser_pb2.py +144 -0
- yellowstone_fumarole_proto/geyser_pb2.pyi +501 -0
- yellowstone_fumarole_proto/geyser_pb2_grpc.py +355 -0
- yellowstone_fumarole_proto/solana_storage_pb2.py +75 -0
- yellowstone_fumarole_proto/solana_storage_pb2.pyi +238 -0
- yellowstone_fumarole_proto/solana_storage_pb2_grpc.py +24 -0
@@ -0,0 +1,355 @@
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
3
|
+
import grpc
|
4
|
+
import warnings
|
5
|
+
|
6
|
+
import yellowstone_fumarole_proto.geyser_pb2 as geyser__pb2
|
7
|
+
|
8
|
+
GRPC_GENERATED_VERSION = '1.71.0'
|
9
|
+
GRPC_VERSION = grpc.__version__
|
10
|
+
_version_not_supported = False
|
11
|
+
|
12
|
+
try:
|
13
|
+
from grpc._utilities import first_version_is_lower
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
15
|
+
except ImportError:
|
16
|
+
_version_not_supported = True
|
17
|
+
|
18
|
+
if _version_not_supported:
|
19
|
+
raise RuntimeError(
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
21
|
+
+ f' but the generated code in geyser_pb2_grpc.py depends on'
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
25
|
+
)
|
26
|
+
|
27
|
+
|
28
|
+
class GeyserStub(object):
|
29
|
+
"""Missing associated documentation comment in .proto file."""
|
30
|
+
|
31
|
+
def __init__(self, channel):
|
32
|
+
"""Constructor.
|
33
|
+
|
34
|
+
Args:
|
35
|
+
channel: A grpc.Channel.
|
36
|
+
"""
|
37
|
+
self.Subscribe = channel.stream_stream(
|
38
|
+
'/geyser.Geyser/Subscribe',
|
39
|
+
request_serializer=geyser__pb2.SubscribeRequest.SerializeToString,
|
40
|
+
response_deserializer=geyser__pb2.SubscribeUpdate.FromString,
|
41
|
+
_registered_method=True)
|
42
|
+
self.Ping = channel.unary_unary(
|
43
|
+
'/geyser.Geyser/Ping',
|
44
|
+
request_serializer=geyser__pb2.PingRequest.SerializeToString,
|
45
|
+
response_deserializer=geyser__pb2.PongResponse.FromString,
|
46
|
+
_registered_method=True)
|
47
|
+
self.GetLatestBlockhash = channel.unary_unary(
|
48
|
+
'/geyser.Geyser/GetLatestBlockhash',
|
49
|
+
request_serializer=geyser__pb2.GetLatestBlockhashRequest.SerializeToString,
|
50
|
+
response_deserializer=geyser__pb2.GetLatestBlockhashResponse.FromString,
|
51
|
+
_registered_method=True)
|
52
|
+
self.GetBlockHeight = channel.unary_unary(
|
53
|
+
'/geyser.Geyser/GetBlockHeight',
|
54
|
+
request_serializer=geyser__pb2.GetBlockHeightRequest.SerializeToString,
|
55
|
+
response_deserializer=geyser__pb2.GetBlockHeightResponse.FromString,
|
56
|
+
_registered_method=True)
|
57
|
+
self.GetSlot = channel.unary_unary(
|
58
|
+
'/geyser.Geyser/GetSlot',
|
59
|
+
request_serializer=geyser__pb2.GetSlotRequest.SerializeToString,
|
60
|
+
response_deserializer=geyser__pb2.GetSlotResponse.FromString,
|
61
|
+
_registered_method=True)
|
62
|
+
self.IsBlockhashValid = channel.unary_unary(
|
63
|
+
'/geyser.Geyser/IsBlockhashValid',
|
64
|
+
request_serializer=geyser__pb2.IsBlockhashValidRequest.SerializeToString,
|
65
|
+
response_deserializer=geyser__pb2.IsBlockhashValidResponse.FromString,
|
66
|
+
_registered_method=True)
|
67
|
+
self.GetVersion = channel.unary_unary(
|
68
|
+
'/geyser.Geyser/GetVersion',
|
69
|
+
request_serializer=geyser__pb2.GetVersionRequest.SerializeToString,
|
70
|
+
response_deserializer=geyser__pb2.GetVersionResponse.FromString,
|
71
|
+
_registered_method=True)
|
72
|
+
|
73
|
+
|
74
|
+
class GeyserServicer(object):
|
75
|
+
"""Missing associated documentation comment in .proto file."""
|
76
|
+
|
77
|
+
def Subscribe(self, request_iterator, context):
|
78
|
+
"""Missing associated documentation comment in .proto file."""
|
79
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
80
|
+
context.set_details('Method not implemented!')
|
81
|
+
raise NotImplementedError('Method not implemented!')
|
82
|
+
|
83
|
+
def Ping(self, request, context):
|
84
|
+
"""Missing associated documentation comment in .proto file."""
|
85
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
86
|
+
context.set_details('Method not implemented!')
|
87
|
+
raise NotImplementedError('Method not implemented!')
|
88
|
+
|
89
|
+
def GetLatestBlockhash(self, request, context):
|
90
|
+
"""Missing associated documentation comment in .proto file."""
|
91
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
92
|
+
context.set_details('Method not implemented!')
|
93
|
+
raise NotImplementedError('Method not implemented!')
|
94
|
+
|
95
|
+
def GetBlockHeight(self, request, context):
|
96
|
+
"""Missing associated documentation comment in .proto file."""
|
97
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
98
|
+
context.set_details('Method not implemented!')
|
99
|
+
raise NotImplementedError('Method not implemented!')
|
100
|
+
|
101
|
+
def GetSlot(self, request, context):
|
102
|
+
"""Missing associated documentation comment in .proto file."""
|
103
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
104
|
+
context.set_details('Method not implemented!')
|
105
|
+
raise NotImplementedError('Method not implemented!')
|
106
|
+
|
107
|
+
def IsBlockhashValid(self, request, context):
|
108
|
+
"""Missing associated documentation comment in .proto file."""
|
109
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
110
|
+
context.set_details('Method not implemented!')
|
111
|
+
raise NotImplementedError('Method not implemented!')
|
112
|
+
|
113
|
+
def GetVersion(self, request, context):
|
114
|
+
"""Missing associated documentation comment in .proto file."""
|
115
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
116
|
+
context.set_details('Method not implemented!')
|
117
|
+
raise NotImplementedError('Method not implemented!')
|
118
|
+
|
119
|
+
|
120
|
+
def add_GeyserServicer_to_server(servicer, server):
|
121
|
+
rpc_method_handlers = {
|
122
|
+
'Subscribe': grpc.stream_stream_rpc_method_handler(
|
123
|
+
servicer.Subscribe,
|
124
|
+
request_deserializer=geyser__pb2.SubscribeRequest.FromString,
|
125
|
+
response_serializer=geyser__pb2.SubscribeUpdate.SerializeToString,
|
126
|
+
),
|
127
|
+
'Ping': grpc.unary_unary_rpc_method_handler(
|
128
|
+
servicer.Ping,
|
129
|
+
request_deserializer=geyser__pb2.PingRequest.FromString,
|
130
|
+
response_serializer=geyser__pb2.PongResponse.SerializeToString,
|
131
|
+
),
|
132
|
+
'GetLatestBlockhash': grpc.unary_unary_rpc_method_handler(
|
133
|
+
servicer.GetLatestBlockhash,
|
134
|
+
request_deserializer=geyser__pb2.GetLatestBlockhashRequest.FromString,
|
135
|
+
response_serializer=geyser__pb2.GetLatestBlockhashResponse.SerializeToString,
|
136
|
+
),
|
137
|
+
'GetBlockHeight': grpc.unary_unary_rpc_method_handler(
|
138
|
+
servicer.GetBlockHeight,
|
139
|
+
request_deserializer=geyser__pb2.GetBlockHeightRequest.FromString,
|
140
|
+
response_serializer=geyser__pb2.GetBlockHeightResponse.SerializeToString,
|
141
|
+
),
|
142
|
+
'GetSlot': grpc.unary_unary_rpc_method_handler(
|
143
|
+
servicer.GetSlot,
|
144
|
+
request_deserializer=geyser__pb2.GetSlotRequest.FromString,
|
145
|
+
response_serializer=geyser__pb2.GetSlotResponse.SerializeToString,
|
146
|
+
),
|
147
|
+
'IsBlockhashValid': grpc.unary_unary_rpc_method_handler(
|
148
|
+
servicer.IsBlockhashValid,
|
149
|
+
request_deserializer=geyser__pb2.IsBlockhashValidRequest.FromString,
|
150
|
+
response_serializer=geyser__pb2.IsBlockhashValidResponse.SerializeToString,
|
151
|
+
),
|
152
|
+
'GetVersion': grpc.unary_unary_rpc_method_handler(
|
153
|
+
servicer.GetVersion,
|
154
|
+
request_deserializer=geyser__pb2.GetVersionRequest.FromString,
|
155
|
+
response_serializer=geyser__pb2.GetVersionResponse.SerializeToString,
|
156
|
+
),
|
157
|
+
}
|
158
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
159
|
+
'geyser.Geyser', rpc_method_handlers)
|
160
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
161
|
+
server.add_registered_method_handlers('geyser.Geyser', rpc_method_handlers)
|
162
|
+
|
163
|
+
|
164
|
+
# This class is part of an EXPERIMENTAL API.
|
165
|
+
class Geyser(object):
|
166
|
+
"""Missing associated documentation comment in .proto file."""
|
167
|
+
|
168
|
+
@staticmethod
|
169
|
+
def Subscribe(request_iterator,
|
170
|
+
target,
|
171
|
+
options=(),
|
172
|
+
channel_credentials=None,
|
173
|
+
call_credentials=None,
|
174
|
+
insecure=False,
|
175
|
+
compression=None,
|
176
|
+
wait_for_ready=None,
|
177
|
+
timeout=None,
|
178
|
+
metadata=None):
|
179
|
+
return grpc.experimental.stream_stream(
|
180
|
+
request_iterator,
|
181
|
+
target,
|
182
|
+
'/geyser.Geyser/Subscribe',
|
183
|
+
geyser__pb2.SubscribeRequest.SerializeToString,
|
184
|
+
geyser__pb2.SubscribeUpdate.FromString,
|
185
|
+
options,
|
186
|
+
channel_credentials,
|
187
|
+
insecure,
|
188
|
+
call_credentials,
|
189
|
+
compression,
|
190
|
+
wait_for_ready,
|
191
|
+
timeout,
|
192
|
+
metadata,
|
193
|
+
_registered_method=True)
|
194
|
+
|
195
|
+
@staticmethod
|
196
|
+
def Ping(request,
|
197
|
+
target,
|
198
|
+
options=(),
|
199
|
+
channel_credentials=None,
|
200
|
+
call_credentials=None,
|
201
|
+
insecure=False,
|
202
|
+
compression=None,
|
203
|
+
wait_for_ready=None,
|
204
|
+
timeout=None,
|
205
|
+
metadata=None):
|
206
|
+
return grpc.experimental.unary_unary(
|
207
|
+
request,
|
208
|
+
target,
|
209
|
+
'/geyser.Geyser/Ping',
|
210
|
+
geyser__pb2.PingRequest.SerializeToString,
|
211
|
+
geyser__pb2.PongResponse.FromString,
|
212
|
+
options,
|
213
|
+
channel_credentials,
|
214
|
+
insecure,
|
215
|
+
call_credentials,
|
216
|
+
compression,
|
217
|
+
wait_for_ready,
|
218
|
+
timeout,
|
219
|
+
metadata,
|
220
|
+
_registered_method=True)
|
221
|
+
|
222
|
+
@staticmethod
|
223
|
+
def GetLatestBlockhash(request,
|
224
|
+
target,
|
225
|
+
options=(),
|
226
|
+
channel_credentials=None,
|
227
|
+
call_credentials=None,
|
228
|
+
insecure=False,
|
229
|
+
compression=None,
|
230
|
+
wait_for_ready=None,
|
231
|
+
timeout=None,
|
232
|
+
metadata=None):
|
233
|
+
return grpc.experimental.unary_unary(
|
234
|
+
request,
|
235
|
+
target,
|
236
|
+
'/geyser.Geyser/GetLatestBlockhash',
|
237
|
+
geyser__pb2.GetLatestBlockhashRequest.SerializeToString,
|
238
|
+
geyser__pb2.GetLatestBlockhashResponse.FromString,
|
239
|
+
options,
|
240
|
+
channel_credentials,
|
241
|
+
insecure,
|
242
|
+
call_credentials,
|
243
|
+
compression,
|
244
|
+
wait_for_ready,
|
245
|
+
timeout,
|
246
|
+
metadata,
|
247
|
+
_registered_method=True)
|
248
|
+
|
249
|
+
@staticmethod
|
250
|
+
def GetBlockHeight(request,
|
251
|
+
target,
|
252
|
+
options=(),
|
253
|
+
channel_credentials=None,
|
254
|
+
call_credentials=None,
|
255
|
+
insecure=False,
|
256
|
+
compression=None,
|
257
|
+
wait_for_ready=None,
|
258
|
+
timeout=None,
|
259
|
+
metadata=None):
|
260
|
+
return grpc.experimental.unary_unary(
|
261
|
+
request,
|
262
|
+
target,
|
263
|
+
'/geyser.Geyser/GetBlockHeight',
|
264
|
+
geyser__pb2.GetBlockHeightRequest.SerializeToString,
|
265
|
+
geyser__pb2.GetBlockHeightResponse.FromString,
|
266
|
+
options,
|
267
|
+
channel_credentials,
|
268
|
+
insecure,
|
269
|
+
call_credentials,
|
270
|
+
compression,
|
271
|
+
wait_for_ready,
|
272
|
+
timeout,
|
273
|
+
metadata,
|
274
|
+
_registered_method=True)
|
275
|
+
|
276
|
+
@staticmethod
|
277
|
+
def GetSlot(request,
|
278
|
+
target,
|
279
|
+
options=(),
|
280
|
+
channel_credentials=None,
|
281
|
+
call_credentials=None,
|
282
|
+
insecure=False,
|
283
|
+
compression=None,
|
284
|
+
wait_for_ready=None,
|
285
|
+
timeout=None,
|
286
|
+
metadata=None):
|
287
|
+
return grpc.experimental.unary_unary(
|
288
|
+
request,
|
289
|
+
target,
|
290
|
+
'/geyser.Geyser/GetSlot',
|
291
|
+
geyser__pb2.GetSlotRequest.SerializeToString,
|
292
|
+
geyser__pb2.GetSlotResponse.FromString,
|
293
|
+
options,
|
294
|
+
channel_credentials,
|
295
|
+
insecure,
|
296
|
+
call_credentials,
|
297
|
+
compression,
|
298
|
+
wait_for_ready,
|
299
|
+
timeout,
|
300
|
+
metadata,
|
301
|
+
_registered_method=True)
|
302
|
+
|
303
|
+
@staticmethod
|
304
|
+
def IsBlockhashValid(request,
|
305
|
+
target,
|
306
|
+
options=(),
|
307
|
+
channel_credentials=None,
|
308
|
+
call_credentials=None,
|
309
|
+
insecure=False,
|
310
|
+
compression=None,
|
311
|
+
wait_for_ready=None,
|
312
|
+
timeout=None,
|
313
|
+
metadata=None):
|
314
|
+
return grpc.experimental.unary_unary(
|
315
|
+
request,
|
316
|
+
target,
|
317
|
+
'/geyser.Geyser/IsBlockhashValid',
|
318
|
+
geyser__pb2.IsBlockhashValidRequest.SerializeToString,
|
319
|
+
geyser__pb2.IsBlockhashValidResponse.FromString,
|
320
|
+
options,
|
321
|
+
channel_credentials,
|
322
|
+
insecure,
|
323
|
+
call_credentials,
|
324
|
+
compression,
|
325
|
+
wait_for_ready,
|
326
|
+
timeout,
|
327
|
+
metadata,
|
328
|
+
_registered_method=True)
|
329
|
+
|
330
|
+
@staticmethod
|
331
|
+
def GetVersion(request,
|
332
|
+
target,
|
333
|
+
options=(),
|
334
|
+
channel_credentials=None,
|
335
|
+
call_credentials=None,
|
336
|
+
insecure=False,
|
337
|
+
compression=None,
|
338
|
+
wait_for_ready=None,
|
339
|
+
timeout=None,
|
340
|
+
metadata=None):
|
341
|
+
return grpc.experimental.unary_unary(
|
342
|
+
request,
|
343
|
+
target,
|
344
|
+
'/geyser.Geyser/GetVersion',
|
345
|
+
geyser__pb2.GetVersionRequest.SerializeToString,
|
346
|
+
geyser__pb2.GetVersionResponse.FromString,
|
347
|
+
options,
|
348
|
+
channel_credentials,
|
349
|
+
insecure,
|
350
|
+
call_credentials,
|
351
|
+
compression,
|
352
|
+
wait_for_ready,
|
353
|
+
timeout,
|
354
|
+
metadata,
|
355
|
+
_registered_method=True)
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
4
|
+
# source: solana-storage.proto
|
5
|
+
# Protobuf Python Version: 5.29.0
|
6
|
+
"""Generated protocol buffer code."""
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
11
|
+
from google.protobuf.internal import builder as _builder
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
14
|
+
5,
|
15
|
+
29,
|
16
|
+
0,
|
17
|
+
'',
|
18
|
+
'solana-storage.proto'
|
19
|
+
)
|
20
|
+
# @@protoc_insertion_point(imports)
|
21
|
+
|
22
|
+
_sym_db = _symbol_database.Default()
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14solana-storage.proto\x12\x1dsolana.storage.ConfirmedBlock\"\xa1\x03\n\x0e\x43onfirmedBlock\x12\x1a\n\x12previous_blockhash\x18\x01 \x01(\t\x12\x11\n\tblockhash\x18\x02 \x01(\t\x12\x13\n\x0bparent_slot\x18\x03 \x01(\x04\x12I\n\x0ctransactions\x18\x04 \x03(\x0b\x32\x33.solana.storage.ConfirmedBlock.ConfirmedTransaction\x12\x36\n\x07rewards\x18\x05 \x03(\x0b\x32%.solana.storage.ConfirmedBlock.Reward\x12@\n\nblock_time\x18\x06 \x01(\x0b\x32,.solana.storage.ConfirmedBlock.UnixTimestamp\x12@\n\x0c\x62lock_height\x18\x07 \x01(\x0b\x32*.solana.storage.ConfirmedBlock.BlockHeight\x12\x44\n\x0enum_partitions\x18\x08 \x01(\x0b\x32,.solana.storage.ConfirmedBlock.NumPartitions\"\x9b\x01\n\x14\x43onfirmedTransaction\x12?\n\x0btransaction\x18\x01 \x01(\x0b\x32*.solana.storage.ConfirmedBlock.Transaction\x12\x42\n\x04meta\x18\x02 \x01(\x0b\x32\x34.solana.storage.ConfirmedBlock.TransactionStatusMeta\"Z\n\x0bTransaction\x12\x12\n\nsignatures\x18\x01 \x03(\x0c\x12\x37\n\x07message\x18\x02 \x01(\x0b\x32&.solana.storage.ConfirmedBlock.Message\"\xad\x02\n\x07Message\x12<\n\x06header\x18\x01 \x01(\x0b\x32,.solana.storage.ConfirmedBlock.MessageHeader\x12\x14\n\x0c\x61\x63\x63ount_keys\x18\x02 \x03(\x0c\x12\x18\n\x10recent_blockhash\x18\x03 \x01(\x0c\x12H\n\x0cinstructions\x18\x04 \x03(\x0b\x32\x32.solana.storage.ConfirmedBlock.CompiledInstruction\x12\x11\n\tversioned\x18\x05 \x01(\x08\x12W\n\x15\x61\x64\x64ress_table_lookups\x18\x06 \x03(\x0b\x32\x38.solana.storage.ConfirmedBlock.MessageAddressTableLookup\"~\n\rMessageHeader\x12\x1f\n\x17num_required_signatures\x18\x01 \x01(\r\x12$\n\x1cnum_readonly_signed_accounts\x18\x02 \x01(\r\x12&\n\x1enum_readonly_unsigned_accounts\x18\x03 \x01(\r\"d\n\x19MessageAddressTableLookup\x12\x13\n\x0b\x61\x63\x63ount_key\x18\x01 \x01(\x0c\x12\x18\n\x10writable_indexes\x18\x02 \x01(\x0c\x12\x18\n\x10readonly_indexes\x18\x03 \x01(\x0c\"\xda\x05\n\x15TransactionStatusMeta\x12<\n\x03\x65rr\x18\x01 \x01(\x0b\x32/.solana.storage.ConfirmedBlock.TransactionError\x12\x0b\n\x03\x66\x65\x65\x18\x02 \x01(\x04\x12\x14\n\x0cpre_balances\x18\x03 \x03(\x04\x12\x15\n\rpost_balances\x18\x04 \x03(\x04\x12L\n\x12inner_instructions\x18\x05 \x03(\x0b\x32\x30.solana.storage.ConfirmedBlock.InnerInstructions\x12\x1f\n\x17inner_instructions_none\x18\n \x01(\x08\x12\x14\n\x0clog_messages\x18\x06 \x03(\t\x12\x19\n\x11log_messages_none\x18\x0b \x01(\x08\x12G\n\x12pre_token_balances\x18\x07 \x03(\x0b\x32+.solana.storage.ConfirmedBlock.TokenBalance\x12H\n\x13post_token_balances\x18\x08 \x03(\x0b\x32+.solana.storage.ConfirmedBlock.TokenBalance\x12\x36\n\x07rewards\x18\t \x03(\x0b\x32%.solana.storage.ConfirmedBlock.Reward\x12!\n\x19loaded_writable_addresses\x18\x0c \x03(\x0c\x12!\n\x19loaded_readonly_addresses\x18\r \x03(\x0c\x12>\n\x0breturn_data\x18\x0e \x01(\x0b\x32).solana.storage.ConfirmedBlock.ReturnData\x12\x18\n\x10return_data_none\x18\x0f \x01(\x08\x12#\n\x16\x63ompute_units_consumed\x18\x10 \x01(\x04H\x00\x88\x01\x01\x42\x19\n\x17_compute_units_consumed\"\x1f\n\x10TransactionError\x12\x0b\n\x03\x65rr\x18\x01 \x01(\x0c\"i\n\x11InnerInstructions\x12\r\n\x05index\x18\x01 \x01(\r\x12\x45\n\x0cinstructions\x18\x02 \x03(\x0b\x32/.solana.storage.ConfirmedBlock.InnerInstruction\"x\n\x10InnerInstruction\x12\x18\n\x10program_id_index\x18\x01 \x01(\r\x12\x10\n\x08\x61\x63\x63ounts\x18\x02 \x01(\x0c\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x12\x19\n\x0cstack_height\x18\x04 \x01(\rH\x00\x88\x01\x01\x42\x0f\n\r_stack_height\"O\n\x13\x43ompiledInstruction\x12\x18\n\x10program_id_index\x18\x01 \x01(\r\x12\x10\n\x08\x61\x63\x63ounts\x18\x02 \x01(\x0c\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\"\x9d\x01\n\x0cTokenBalance\x12\x15\n\raccount_index\x18\x01 \x01(\r\x12\x0c\n\x04mint\x18\x02 \x01(\t\x12\x45\n\x0fui_token_amount\x18\x03 \x01(\x0b\x32,.solana.storage.ConfirmedBlock.UiTokenAmount\x12\r\n\x05owner\x18\x04 \x01(\t\x12\x12\n\nprogram_id\x18\x05 \x01(\t\"^\n\rUiTokenAmount\x12\x11\n\tui_amount\x18\x01 \x01(\x01\x12\x10\n\x08\x64\x65\x63imals\x18\x02 \x01(\r\x12\x0e\n\x06\x61mount\x18\x03 \x01(\t\x12\x18\n\x10ui_amount_string\x18\x04 \x01(\t\".\n\nReturnData\x12\x12\n\nprogram_id\x18\x01 \x01(\x0c\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"\x94\x01\n\x06Reward\x12\x0e\n\x06pubkey\x18\x01 \x01(\t\x12\x10\n\x08lamports\x18\x02 \x01(\x03\x12\x14\n\x0cpost_balance\x18\x03 \x01(\x04\x12>\n\x0breward_type\x18\x04 \x01(\x0e\x32).solana.storage.ConfirmedBlock.RewardType\x12\x12\n\ncommission\x18\x05 \x01(\t\"\x87\x01\n\x07Rewards\x12\x36\n\x07rewards\x18\x01 \x03(\x0b\x32%.solana.storage.ConfirmedBlock.Reward\x12\x44\n\x0enum_partitions\x18\x02 \x01(\x0b\x32,.solana.storage.ConfirmedBlock.NumPartitions\"\"\n\rUnixTimestamp\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\"#\n\x0b\x42lockHeight\x12\x14\n\x0c\x62lock_height\x18\x01 \x01(\x04\"\'\n\rNumPartitions\x12\x16\n\x0enum_partitions\x18\x01 \x01(\x04*I\n\nRewardType\x12\x0f\n\x0bUnspecified\x10\x00\x12\x07\n\x03\x46\x65\x65\x10\x01\x12\x08\n\x04Rent\x10\x02\x12\x0b\n\x07Staking\x10\x03\x12\n\n\x06Voting\x10\x04\x42;Z9github.com/rpcpool/yellowstone-grpc/examples/golang/protob\x06proto3')
|
28
|
+
|
29
|
+
_globals = globals()
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'solana_storage_pb2', _globals)
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z9github.com/rpcpool/yellowstone-grpc/examples/golang/proto'
|
35
|
+
_globals['_REWARDTYPE']._serialized_start=3042
|
36
|
+
_globals['_REWARDTYPE']._serialized_end=3115
|
37
|
+
_globals['_CONFIRMEDBLOCK']._serialized_start=56
|
38
|
+
_globals['_CONFIRMEDBLOCK']._serialized_end=473
|
39
|
+
_globals['_CONFIRMEDTRANSACTION']._serialized_start=476
|
40
|
+
_globals['_CONFIRMEDTRANSACTION']._serialized_end=631
|
41
|
+
_globals['_TRANSACTION']._serialized_start=633
|
42
|
+
_globals['_TRANSACTION']._serialized_end=723
|
43
|
+
_globals['_MESSAGE']._serialized_start=726
|
44
|
+
_globals['_MESSAGE']._serialized_end=1027
|
45
|
+
_globals['_MESSAGEHEADER']._serialized_start=1029
|
46
|
+
_globals['_MESSAGEHEADER']._serialized_end=1155
|
47
|
+
_globals['_MESSAGEADDRESSTABLELOOKUP']._serialized_start=1157
|
48
|
+
_globals['_MESSAGEADDRESSTABLELOOKUP']._serialized_end=1257
|
49
|
+
_globals['_TRANSACTIONSTATUSMETA']._serialized_start=1260
|
50
|
+
_globals['_TRANSACTIONSTATUSMETA']._serialized_end=1990
|
51
|
+
_globals['_TRANSACTIONERROR']._serialized_start=1992
|
52
|
+
_globals['_TRANSACTIONERROR']._serialized_end=2023
|
53
|
+
_globals['_INNERINSTRUCTIONS']._serialized_start=2025
|
54
|
+
_globals['_INNERINSTRUCTIONS']._serialized_end=2130
|
55
|
+
_globals['_INNERINSTRUCTION']._serialized_start=2132
|
56
|
+
_globals['_INNERINSTRUCTION']._serialized_end=2252
|
57
|
+
_globals['_COMPILEDINSTRUCTION']._serialized_start=2254
|
58
|
+
_globals['_COMPILEDINSTRUCTION']._serialized_end=2333
|
59
|
+
_globals['_TOKENBALANCE']._serialized_start=2336
|
60
|
+
_globals['_TOKENBALANCE']._serialized_end=2493
|
61
|
+
_globals['_UITOKENAMOUNT']._serialized_start=2495
|
62
|
+
_globals['_UITOKENAMOUNT']._serialized_end=2589
|
63
|
+
_globals['_RETURNDATA']._serialized_start=2591
|
64
|
+
_globals['_RETURNDATA']._serialized_end=2637
|
65
|
+
_globals['_REWARD']._serialized_start=2640
|
66
|
+
_globals['_REWARD']._serialized_end=2788
|
67
|
+
_globals['_REWARDS']._serialized_start=2791
|
68
|
+
_globals['_REWARDS']._serialized_end=2926
|
69
|
+
_globals['_UNIXTIMESTAMP']._serialized_start=2928
|
70
|
+
_globals['_UNIXTIMESTAMP']._serialized_end=2962
|
71
|
+
_globals['_BLOCKHEIGHT']._serialized_start=2964
|
72
|
+
_globals['_BLOCKHEIGHT']._serialized_end=2999
|
73
|
+
_globals['_NUMPARTITIONS']._serialized_start=3001
|
74
|
+
_globals['_NUMPARTITIONS']._serialized_end=3040
|
75
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,238 @@
|
|
1
|
+
from google.protobuf.internal import containers as _containers
|
2
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
3
|
+
from google.protobuf import descriptor as _descriptor
|
4
|
+
from google.protobuf import message as _message
|
5
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
6
|
+
|
7
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
8
|
+
|
9
|
+
class RewardType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
10
|
+
__slots__ = ()
|
11
|
+
Unspecified: _ClassVar[RewardType]
|
12
|
+
Fee: _ClassVar[RewardType]
|
13
|
+
Rent: _ClassVar[RewardType]
|
14
|
+
Staking: _ClassVar[RewardType]
|
15
|
+
Voting: _ClassVar[RewardType]
|
16
|
+
Unspecified: RewardType
|
17
|
+
Fee: RewardType
|
18
|
+
Rent: RewardType
|
19
|
+
Staking: RewardType
|
20
|
+
Voting: RewardType
|
21
|
+
|
22
|
+
class ConfirmedBlock(_message.Message):
|
23
|
+
__slots__ = ("previous_blockhash", "blockhash", "parent_slot", "transactions", "rewards", "block_time", "block_height", "num_partitions")
|
24
|
+
PREVIOUS_BLOCKHASH_FIELD_NUMBER: _ClassVar[int]
|
25
|
+
BLOCKHASH_FIELD_NUMBER: _ClassVar[int]
|
26
|
+
PARENT_SLOT_FIELD_NUMBER: _ClassVar[int]
|
27
|
+
TRANSACTIONS_FIELD_NUMBER: _ClassVar[int]
|
28
|
+
REWARDS_FIELD_NUMBER: _ClassVar[int]
|
29
|
+
BLOCK_TIME_FIELD_NUMBER: _ClassVar[int]
|
30
|
+
BLOCK_HEIGHT_FIELD_NUMBER: _ClassVar[int]
|
31
|
+
NUM_PARTITIONS_FIELD_NUMBER: _ClassVar[int]
|
32
|
+
previous_blockhash: str
|
33
|
+
blockhash: str
|
34
|
+
parent_slot: int
|
35
|
+
transactions: _containers.RepeatedCompositeFieldContainer[ConfirmedTransaction]
|
36
|
+
rewards: _containers.RepeatedCompositeFieldContainer[Reward]
|
37
|
+
block_time: UnixTimestamp
|
38
|
+
block_height: BlockHeight
|
39
|
+
num_partitions: NumPartitions
|
40
|
+
def __init__(self, previous_blockhash: _Optional[str] = ..., blockhash: _Optional[str] = ..., parent_slot: _Optional[int] = ..., transactions: _Optional[_Iterable[_Union[ConfirmedTransaction, _Mapping]]] = ..., rewards: _Optional[_Iterable[_Union[Reward, _Mapping]]] = ..., block_time: _Optional[_Union[UnixTimestamp, _Mapping]] = ..., block_height: _Optional[_Union[BlockHeight, _Mapping]] = ..., num_partitions: _Optional[_Union[NumPartitions, _Mapping]] = ...) -> None: ...
|
41
|
+
|
42
|
+
class ConfirmedTransaction(_message.Message):
|
43
|
+
__slots__ = ("transaction", "meta")
|
44
|
+
TRANSACTION_FIELD_NUMBER: _ClassVar[int]
|
45
|
+
META_FIELD_NUMBER: _ClassVar[int]
|
46
|
+
transaction: Transaction
|
47
|
+
meta: TransactionStatusMeta
|
48
|
+
def __init__(self, transaction: _Optional[_Union[Transaction, _Mapping]] = ..., meta: _Optional[_Union[TransactionStatusMeta, _Mapping]] = ...) -> None: ...
|
49
|
+
|
50
|
+
class Transaction(_message.Message):
|
51
|
+
__slots__ = ("signatures", "message")
|
52
|
+
SIGNATURES_FIELD_NUMBER: _ClassVar[int]
|
53
|
+
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
54
|
+
signatures: _containers.RepeatedScalarFieldContainer[bytes]
|
55
|
+
message: Message
|
56
|
+
def __init__(self, signatures: _Optional[_Iterable[bytes]] = ..., message: _Optional[_Union[Message, _Mapping]] = ...) -> None: ...
|
57
|
+
|
58
|
+
class Message(_message.Message):
|
59
|
+
__slots__ = ("header", "account_keys", "recent_blockhash", "instructions", "versioned", "address_table_lookups")
|
60
|
+
HEADER_FIELD_NUMBER: _ClassVar[int]
|
61
|
+
ACCOUNT_KEYS_FIELD_NUMBER: _ClassVar[int]
|
62
|
+
RECENT_BLOCKHASH_FIELD_NUMBER: _ClassVar[int]
|
63
|
+
INSTRUCTIONS_FIELD_NUMBER: _ClassVar[int]
|
64
|
+
VERSIONED_FIELD_NUMBER: _ClassVar[int]
|
65
|
+
ADDRESS_TABLE_LOOKUPS_FIELD_NUMBER: _ClassVar[int]
|
66
|
+
header: MessageHeader
|
67
|
+
account_keys: _containers.RepeatedScalarFieldContainer[bytes]
|
68
|
+
recent_blockhash: bytes
|
69
|
+
instructions: _containers.RepeatedCompositeFieldContainer[CompiledInstruction]
|
70
|
+
versioned: bool
|
71
|
+
address_table_lookups: _containers.RepeatedCompositeFieldContainer[MessageAddressTableLookup]
|
72
|
+
def __init__(self, header: _Optional[_Union[MessageHeader, _Mapping]] = ..., account_keys: _Optional[_Iterable[bytes]] = ..., recent_blockhash: _Optional[bytes] = ..., instructions: _Optional[_Iterable[_Union[CompiledInstruction, _Mapping]]] = ..., versioned: bool = ..., address_table_lookups: _Optional[_Iterable[_Union[MessageAddressTableLookup, _Mapping]]] = ...) -> None: ...
|
73
|
+
|
74
|
+
class MessageHeader(_message.Message):
|
75
|
+
__slots__ = ("num_required_signatures", "num_readonly_signed_accounts", "num_readonly_unsigned_accounts")
|
76
|
+
NUM_REQUIRED_SIGNATURES_FIELD_NUMBER: _ClassVar[int]
|
77
|
+
NUM_READONLY_SIGNED_ACCOUNTS_FIELD_NUMBER: _ClassVar[int]
|
78
|
+
NUM_READONLY_UNSIGNED_ACCOUNTS_FIELD_NUMBER: _ClassVar[int]
|
79
|
+
num_required_signatures: int
|
80
|
+
num_readonly_signed_accounts: int
|
81
|
+
num_readonly_unsigned_accounts: int
|
82
|
+
def __init__(self, num_required_signatures: _Optional[int] = ..., num_readonly_signed_accounts: _Optional[int] = ..., num_readonly_unsigned_accounts: _Optional[int] = ...) -> None: ...
|
83
|
+
|
84
|
+
class MessageAddressTableLookup(_message.Message):
|
85
|
+
__slots__ = ("account_key", "writable_indexes", "readonly_indexes")
|
86
|
+
ACCOUNT_KEY_FIELD_NUMBER: _ClassVar[int]
|
87
|
+
WRITABLE_INDEXES_FIELD_NUMBER: _ClassVar[int]
|
88
|
+
READONLY_INDEXES_FIELD_NUMBER: _ClassVar[int]
|
89
|
+
account_key: bytes
|
90
|
+
writable_indexes: bytes
|
91
|
+
readonly_indexes: bytes
|
92
|
+
def __init__(self, account_key: _Optional[bytes] = ..., writable_indexes: _Optional[bytes] = ..., readonly_indexes: _Optional[bytes] = ...) -> None: ...
|
93
|
+
|
94
|
+
class TransactionStatusMeta(_message.Message):
|
95
|
+
__slots__ = ("err", "fee", "pre_balances", "post_balances", "inner_instructions", "inner_instructions_none", "log_messages", "log_messages_none", "pre_token_balances", "post_token_balances", "rewards", "loaded_writable_addresses", "loaded_readonly_addresses", "return_data", "return_data_none", "compute_units_consumed")
|
96
|
+
ERR_FIELD_NUMBER: _ClassVar[int]
|
97
|
+
FEE_FIELD_NUMBER: _ClassVar[int]
|
98
|
+
PRE_BALANCES_FIELD_NUMBER: _ClassVar[int]
|
99
|
+
POST_BALANCES_FIELD_NUMBER: _ClassVar[int]
|
100
|
+
INNER_INSTRUCTIONS_FIELD_NUMBER: _ClassVar[int]
|
101
|
+
INNER_INSTRUCTIONS_NONE_FIELD_NUMBER: _ClassVar[int]
|
102
|
+
LOG_MESSAGES_FIELD_NUMBER: _ClassVar[int]
|
103
|
+
LOG_MESSAGES_NONE_FIELD_NUMBER: _ClassVar[int]
|
104
|
+
PRE_TOKEN_BALANCES_FIELD_NUMBER: _ClassVar[int]
|
105
|
+
POST_TOKEN_BALANCES_FIELD_NUMBER: _ClassVar[int]
|
106
|
+
REWARDS_FIELD_NUMBER: _ClassVar[int]
|
107
|
+
LOADED_WRITABLE_ADDRESSES_FIELD_NUMBER: _ClassVar[int]
|
108
|
+
LOADED_READONLY_ADDRESSES_FIELD_NUMBER: _ClassVar[int]
|
109
|
+
RETURN_DATA_FIELD_NUMBER: _ClassVar[int]
|
110
|
+
RETURN_DATA_NONE_FIELD_NUMBER: _ClassVar[int]
|
111
|
+
COMPUTE_UNITS_CONSUMED_FIELD_NUMBER: _ClassVar[int]
|
112
|
+
err: TransactionError
|
113
|
+
fee: int
|
114
|
+
pre_balances: _containers.RepeatedScalarFieldContainer[int]
|
115
|
+
post_balances: _containers.RepeatedScalarFieldContainer[int]
|
116
|
+
inner_instructions: _containers.RepeatedCompositeFieldContainer[InnerInstructions]
|
117
|
+
inner_instructions_none: bool
|
118
|
+
log_messages: _containers.RepeatedScalarFieldContainer[str]
|
119
|
+
log_messages_none: bool
|
120
|
+
pre_token_balances: _containers.RepeatedCompositeFieldContainer[TokenBalance]
|
121
|
+
post_token_balances: _containers.RepeatedCompositeFieldContainer[TokenBalance]
|
122
|
+
rewards: _containers.RepeatedCompositeFieldContainer[Reward]
|
123
|
+
loaded_writable_addresses: _containers.RepeatedScalarFieldContainer[bytes]
|
124
|
+
loaded_readonly_addresses: _containers.RepeatedScalarFieldContainer[bytes]
|
125
|
+
return_data: ReturnData
|
126
|
+
return_data_none: bool
|
127
|
+
compute_units_consumed: int
|
128
|
+
def __init__(self, err: _Optional[_Union[TransactionError, _Mapping]] = ..., fee: _Optional[int] = ..., pre_balances: _Optional[_Iterable[int]] = ..., post_balances: _Optional[_Iterable[int]] = ..., inner_instructions: _Optional[_Iterable[_Union[InnerInstructions, _Mapping]]] = ..., inner_instructions_none: bool = ..., log_messages: _Optional[_Iterable[str]] = ..., log_messages_none: bool = ..., pre_token_balances: _Optional[_Iterable[_Union[TokenBalance, _Mapping]]] = ..., post_token_balances: _Optional[_Iterable[_Union[TokenBalance, _Mapping]]] = ..., rewards: _Optional[_Iterable[_Union[Reward, _Mapping]]] = ..., loaded_writable_addresses: _Optional[_Iterable[bytes]] = ..., loaded_readonly_addresses: _Optional[_Iterable[bytes]] = ..., return_data: _Optional[_Union[ReturnData, _Mapping]] = ..., return_data_none: bool = ..., compute_units_consumed: _Optional[int] = ...) -> None: ...
|
129
|
+
|
130
|
+
class TransactionError(_message.Message):
|
131
|
+
__slots__ = ("err",)
|
132
|
+
ERR_FIELD_NUMBER: _ClassVar[int]
|
133
|
+
err: bytes
|
134
|
+
def __init__(self, err: _Optional[bytes] = ...) -> None: ...
|
135
|
+
|
136
|
+
class InnerInstructions(_message.Message):
|
137
|
+
__slots__ = ("index", "instructions")
|
138
|
+
INDEX_FIELD_NUMBER: _ClassVar[int]
|
139
|
+
INSTRUCTIONS_FIELD_NUMBER: _ClassVar[int]
|
140
|
+
index: int
|
141
|
+
instructions: _containers.RepeatedCompositeFieldContainer[InnerInstruction]
|
142
|
+
def __init__(self, index: _Optional[int] = ..., instructions: _Optional[_Iterable[_Union[InnerInstruction, _Mapping]]] = ...) -> None: ...
|
143
|
+
|
144
|
+
class InnerInstruction(_message.Message):
|
145
|
+
__slots__ = ("program_id_index", "accounts", "data", "stack_height")
|
146
|
+
PROGRAM_ID_INDEX_FIELD_NUMBER: _ClassVar[int]
|
147
|
+
ACCOUNTS_FIELD_NUMBER: _ClassVar[int]
|
148
|
+
DATA_FIELD_NUMBER: _ClassVar[int]
|
149
|
+
STACK_HEIGHT_FIELD_NUMBER: _ClassVar[int]
|
150
|
+
program_id_index: int
|
151
|
+
accounts: bytes
|
152
|
+
data: bytes
|
153
|
+
stack_height: int
|
154
|
+
def __init__(self, program_id_index: _Optional[int] = ..., accounts: _Optional[bytes] = ..., data: _Optional[bytes] = ..., stack_height: _Optional[int] = ...) -> None: ...
|
155
|
+
|
156
|
+
class CompiledInstruction(_message.Message):
|
157
|
+
__slots__ = ("program_id_index", "accounts", "data")
|
158
|
+
PROGRAM_ID_INDEX_FIELD_NUMBER: _ClassVar[int]
|
159
|
+
ACCOUNTS_FIELD_NUMBER: _ClassVar[int]
|
160
|
+
DATA_FIELD_NUMBER: _ClassVar[int]
|
161
|
+
program_id_index: int
|
162
|
+
accounts: bytes
|
163
|
+
data: bytes
|
164
|
+
def __init__(self, program_id_index: _Optional[int] = ..., accounts: _Optional[bytes] = ..., data: _Optional[bytes] = ...) -> None: ...
|
165
|
+
|
166
|
+
class TokenBalance(_message.Message):
|
167
|
+
__slots__ = ("account_index", "mint", "ui_token_amount", "owner", "program_id")
|
168
|
+
ACCOUNT_INDEX_FIELD_NUMBER: _ClassVar[int]
|
169
|
+
MINT_FIELD_NUMBER: _ClassVar[int]
|
170
|
+
UI_TOKEN_AMOUNT_FIELD_NUMBER: _ClassVar[int]
|
171
|
+
OWNER_FIELD_NUMBER: _ClassVar[int]
|
172
|
+
PROGRAM_ID_FIELD_NUMBER: _ClassVar[int]
|
173
|
+
account_index: int
|
174
|
+
mint: str
|
175
|
+
ui_token_amount: UiTokenAmount
|
176
|
+
owner: str
|
177
|
+
program_id: str
|
178
|
+
def __init__(self, account_index: _Optional[int] = ..., mint: _Optional[str] = ..., ui_token_amount: _Optional[_Union[UiTokenAmount, _Mapping]] = ..., owner: _Optional[str] = ..., program_id: _Optional[str] = ...) -> None: ...
|
179
|
+
|
180
|
+
class UiTokenAmount(_message.Message):
|
181
|
+
__slots__ = ("ui_amount", "decimals", "amount", "ui_amount_string")
|
182
|
+
UI_AMOUNT_FIELD_NUMBER: _ClassVar[int]
|
183
|
+
DECIMALS_FIELD_NUMBER: _ClassVar[int]
|
184
|
+
AMOUNT_FIELD_NUMBER: _ClassVar[int]
|
185
|
+
UI_AMOUNT_STRING_FIELD_NUMBER: _ClassVar[int]
|
186
|
+
ui_amount: float
|
187
|
+
decimals: int
|
188
|
+
amount: str
|
189
|
+
ui_amount_string: str
|
190
|
+
def __init__(self, ui_amount: _Optional[float] = ..., decimals: _Optional[int] = ..., amount: _Optional[str] = ..., ui_amount_string: _Optional[str] = ...) -> None: ...
|
191
|
+
|
192
|
+
class ReturnData(_message.Message):
|
193
|
+
__slots__ = ("program_id", "data")
|
194
|
+
PROGRAM_ID_FIELD_NUMBER: _ClassVar[int]
|
195
|
+
DATA_FIELD_NUMBER: _ClassVar[int]
|
196
|
+
program_id: bytes
|
197
|
+
data: bytes
|
198
|
+
def __init__(self, program_id: _Optional[bytes] = ..., data: _Optional[bytes] = ...) -> None: ...
|
199
|
+
|
200
|
+
class Reward(_message.Message):
|
201
|
+
__slots__ = ("pubkey", "lamports", "post_balance", "reward_type", "commission")
|
202
|
+
PUBKEY_FIELD_NUMBER: _ClassVar[int]
|
203
|
+
LAMPORTS_FIELD_NUMBER: _ClassVar[int]
|
204
|
+
POST_BALANCE_FIELD_NUMBER: _ClassVar[int]
|
205
|
+
REWARD_TYPE_FIELD_NUMBER: _ClassVar[int]
|
206
|
+
COMMISSION_FIELD_NUMBER: _ClassVar[int]
|
207
|
+
pubkey: str
|
208
|
+
lamports: int
|
209
|
+
post_balance: int
|
210
|
+
reward_type: RewardType
|
211
|
+
commission: str
|
212
|
+
def __init__(self, pubkey: _Optional[str] = ..., lamports: _Optional[int] = ..., post_balance: _Optional[int] = ..., reward_type: _Optional[_Union[RewardType, str]] = ..., commission: _Optional[str] = ...) -> None: ...
|
213
|
+
|
214
|
+
class Rewards(_message.Message):
|
215
|
+
__slots__ = ("rewards", "num_partitions")
|
216
|
+
REWARDS_FIELD_NUMBER: _ClassVar[int]
|
217
|
+
NUM_PARTITIONS_FIELD_NUMBER: _ClassVar[int]
|
218
|
+
rewards: _containers.RepeatedCompositeFieldContainer[Reward]
|
219
|
+
num_partitions: NumPartitions
|
220
|
+
def __init__(self, rewards: _Optional[_Iterable[_Union[Reward, _Mapping]]] = ..., num_partitions: _Optional[_Union[NumPartitions, _Mapping]] = ...) -> None: ...
|
221
|
+
|
222
|
+
class UnixTimestamp(_message.Message):
|
223
|
+
__slots__ = ("timestamp",)
|
224
|
+
TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
225
|
+
timestamp: int
|
226
|
+
def __init__(self, timestamp: _Optional[int] = ...) -> None: ...
|
227
|
+
|
228
|
+
class BlockHeight(_message.Message):
|
229
|
+
__slots__ = ("block_height",)
|
230
|
+
BLOCK_HEIGHT_FIELD_NUMBER: _ClassVar[int]
|
231
|
+
block_height: int
|
232
|
+
def __init__(self, block_height: _Optional[int] = ...) -> None: ...
|
233
|
+
|
234
|
+
class NumPartitions(_message.Message):
|
235
|
+
__slots__ = ("num_partitions",)
|
236
|
+
NUM_PARTITIONS_FIELD_NUMBER: _ClassVar[int]
|
237
|
+
num_partitions: int
|
238
|
+
def __init__(self, num_partitions: _Optional[int] = ...) -> None: ...
|