mirror of
https://github.com/chainstacklabs/pumpfun-bonkfun-bot.git
synced 2026-08-16 00:38:05 +00:00
docs(cursor): add uv rules, formatting
This commit is contained in:
+116
-115
File diff suppressed because one or more lines are too long
@@ -3,7 +3,13 @@ from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
from typing import (
|
||||
ClassVar as _ClassVar,
|
||||
Iterable as _Iterable,
|
||||
Mapping as _Mapping,
|
||||
Optional as _Optional,
|
||||
Union as _Union,
|
||||
)
|
||||
from solana_storage_pb2 import ConfirmedBlock as ConfirmedBlock
|
||||
from solana_storage_pb2 import ConfirmedTransaction as ConfirmedTransaction
|
||||
from solana_storage_pb2 import Transaction as Transaction
|
||||
@@ -41,6 +47,7 @@ class CommitmentLevel(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
COMPLETED: _ClassVar[CommitmentLevel]
|
||||
CREATED_BANK: _ClassVar[CommitmentLevel]
|
||||
DEAD: _ClassVar[CommitmentLevel]
|
||||
|
||||
PROCESSED: CommitmentLevel
|
||||
CONFIRMED: CommitmentLevel
|
||||
FINALIZED: CommitmentLevel
|
||||
@@ -50,56 +57,106 @@ CREATED_BANK: CommitmentLevel
|
||||
DEAD: CommitmentLevel
|
||||
|
||||
class SubscribeRequest(_message.Message):
|
||||
__slots__ = ("accounts", "slots", "transactions", "transactions_status", "blocks", "blocks_meta", "entry", "commitment", "accounts_data_slice", "ping")
|
||||
__slots__ = (
|
||||
"accounts",
|
||||
"slots",
|
||||
"transactions",
|
||||
"transactions_status",
|
||||
"blocks",
|
||||
"blocks_meta",
|
||||
"entry",
|
||||
"commitment",
|
||||
"accounts_data_slice",
|
||||
"ping",
|
||||
)
|
||||
class AccountsEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: SubscribeRequestFilterAccounts
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[SubscribeRequestFilterAccounts, _Mapping]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
key: _Optional[str] = ...,
|
||||
value: _Optional[_Union[SubscribeRequestFilterAccounts, _Mapping]] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class SlotsEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: SubscribeRequestFilterSlots
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[SubscribeRequestFilterSlots, _Mapping]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
key: _Optional[str] = ...,
|
||||
value: _Optional[_Union[SubscribeRequestFilterSlots, _Mapping]] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class TransactionsEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: SubscribeRequestFilterTransactions
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[SubscribeRequestFilterTransactions, _Mapping]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
key: _Optional[str] = ...,
|
||||
value: _Optional[
|
||||
_Union[SubscribeRequestFilterTransactions, _Mapping]
|
||||
] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class TransactionsStatusEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: SubscribeRequestFilterTransactions
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[SubscribeRequestFilterTransactions, _Mapping]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
key: _Optional[str] = ...,
|
||||
value: _Optional[
|
||||
_Union[SubscribeRequestFilterTransactions, _Mapping]
|
||||
] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class BlocksEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: SubscribeRequestFilterBlocks
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[SubscribeRequestFilterBlocks, _Mapping]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
key: _Optional[str] = ...,
|
||||
value: _Optional[_Union[SubscribeRequestFilterBlocks, _Mapping]] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class BlocksMetaEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: SubscribeRequestFilterBlocksMeta
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[SubscribeRequestFilterBlocksMeta, _Mapping]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
key: _Optional[str] = ...,
|
||||
value: _Optional[_Union[SubscribeRequestFilterBlocksMeta, _Mapping]] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class EntryEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: SubscribeRequestFilterEntry
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[SubscribeRequestFilterEntry, _Mapping]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
key: _Optional[str] = ...,
|
||||
value: _Optional[_Union[SubscribeRequestFilterEntry, _Mapping]] = ...,
|
||||
) -> None: ...
|
||||
|
||||
ACCOUNTS_FIELD_NUMBER: _ClassVar[int]
|
||||
SLOTS_FIELD_NUMBER: _ClassVar[int]
|
||||
TRANSACTIONS_FIELD_NUMBER: _ClassVar[int]
|
||||
@@ -118,9 +175,29 @@ class SubscribeRequest(_message.Message):
|
||||
blocks_meta: _containers.MessageMap[str, SubscribeRequestFilterBlocksMeta]
|
||||
entry: _containers.MessageMap[str, SubscribeRequestFilterEntry]
|
||||
commitment: CommitmentLevel
|
||||
accounts_data_slice: _containers.RepeatedCompositeFieldContainer[SubscribeRequestAccountsDataSlice]
|
||||
accounts_data_slice: _containers.RepeatedCompositeFieldContainer[
|
||||
SubscribeRequestAccountsDataSlice
|
||||
]
|
||||
ping: SubscribeRequestPing
|
||||
def __init__(self, accounts: _Optional[_Mapping[str, SubscribeRequestFilterAccounts]] = ..., slots: _Optional[_Mapping[str, SubscribeRequestFilterSlots]] = ..., transactions: _Optional[_Mapping[str, SubscribeRequestFilterTransactions]] = ..., transactions_status: _Optional[_Mapping[str, SubscribeRequestFilterTransactions]] = ..., blocks: _Optional[_Mapping[str, SubscribeRequestFilterBlocks]] = ..., blocks_meta: _Optional[_Mapping[str, SubscribeRequestFilterBlocksMeta]] = ..., entry: _Optional[_Mapping[str, SubscribeRequestFilterEntry]] = ..., commitment: _Optional[_Union[CommitmentLevel, str]] = ..., accounts_data_slice: _Optional[_Iterable[_Union[SubscribeRequestAccountsDataSlice, _Mapping]]] = ..., ping: _Optional[_Union[SubscribeRequestPing, _Mapping]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
accounts: _Optional[_Mapping[str, SubscribeRequestFilterAccounts]] = ...,
|
||||
slots: _Optional[_Mapping[str, SubscribeRequestFilterSlots]] = ...,
|
||||
transactions: _Optional[
|
||||
_Mapping[str, SubscribeRequestFilterTransactions]
|
||||
] = ...,
|
||||
transactions_status: _Optional[
|
||||
_Mapping[str, SubscribeRequestFilterTransactions]
|
||||
] = ...,
|
||||
blocks: _Optional[_Mapping[str, SubscribeRequestFilterBlocks]] = ...,
|
||||
blocks_meta: _Optional[_Mapping[str, SubscribeRequestFilterBlocksMeta]] = ...,
|
||||
entry: _Optional[_Mapping[str, SubscribeRequestFilterEntry]] = ...,
|
||||
commitment: _Optional[_Union[CommitmentLevel, str]] = ...,
|
||||
accounts_data_slice: _Optional[
|
||||
_Iterable[_Union[SubscribeRequestAccountsDataSlice, _Mapping]]
|
||||
] = ...,
|
||||
ping: _Optional[_Union[SubscribeRequestPing, _Mapping]] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class SubscribeRequestFilterAccounts(_message.Message):
|
||||
__slots__ = ("account", "owner", "filters", "nonempty_txn_signature")
|
||||
@@ -130,9 +207,19 @@ class SubscribeRequestFilterAccounts(_message.Message):
|
||||
NONEMPTY_TXN_SIGNATURE_FIELD_NUMBER: _ClassVar[int]
|
||||
account: _containers.RepeatedScalarFieldContainer[str]
|
||||
owner: _containers.RepeatedScalarFieldContainer[str]
|
||||
filters: _containers.RepeatedCompositeFieldContainer[SubscribeRequestFilterAccountsFilter]
|
||||
filters: _containers.RepeatedCompositeFieldContainer[
|
||||
SubscribeRequestFilterAccountsFilter
|
||||
]
|
||||
nonempty_txn_signature: bool
|
||||
def __init__(self, account: _Optional[_Iterable[str]] = ..., owner: _Optional[_Iterable[str]] = ..., filters: _Optional[_Iterable[_Union[SubscribeRequestFilterAccountsFilter, _Mapping]]] = ..., nonempty_txn_signature: bool = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
account: _Optional[_Iterable[str]] = ...,
|
||||
owner: _Optional[_Iterable[str]] = ...,
|
||||
filters: _Optional[
|
||||
_Iterable[_Union[SubscribeRequestFilterAccountsFilter, _Mapping]]
|
||||
] = ...,
|
||||
nonempty_txn_signature: bool = ...,
|
||||
) -> None: ...
|
||||
|
||||
class SubscribeRequestFilterAccountsFilter(_message.Message):
|
||||
__slots__ = ("memcmp", "datasize", "token_account_state", "lamports")
|
||||
@@ -144,7 +231,17 @@ class SubscribeRequestFilterAccountsFilter(_message.Message):
|
||||
datasize: int
|
||||
token_account_state: bool
|
||||
lamports: SubscribeRequestFilterAccountsFilterLamports
|
||||
def __init__(self, memcmp: _Optional[_Union[SubscribeRequestFilterAccountsFilterMemcmp, _Mapping]] = ..., datasize: _Optional[int] = ..., token_account_state: bool = ..., lamports: _Optional[_Union[SubscribeRequestFilterAccountsFilterLamports, _Mapping]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
memcmp: _Optional[
|
||||
_Union[SubscribeRequestFilterAccountsFilterMemcmp, _Mapping]
|
||||
] = ...,
|
||||
datasize: _Optional[int] = ...,
|
||||
token_account_state: bool = ...,
|
||||
lamports: _Optional[
|
||||
_Union[SubscribeRequestFilterAccountsFilterLamports, _Mapping]
|
||||
] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class SubscribeRequestFilterAccountsFilterMemcmp(_message.Message):
|
||||
__slots__ = ("offset", "bytes", "base58", "base64")
|
||||
@@ -156,7 +253,13 @@ class SubscribeRequestFilterAccountsFilterMemcmp(_message.Message):
|
||||
bytes: bytes
|
||||
base58: str
|
||||
base64: str
|
||||
def __init__(self, offset: _Optional[int] = ..., bytes: _Optional[bytes] = ..., base58: _Optional[str] = ..., base64: _Optional[str] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
offset: _Optional[int] = ...,
|
||||
bytes: _Optional[bytes] = ...,
|
||||
base58: _Optional[str] = ...,
|
||||
base64: _Optional[str] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class SubscribeRequestFilterAccountsFilterLamports(_message.Message):
|
||||
__slots__ = ("eq", "ne", "lt", "gt")
|
||||
@@ -168,7 +271,13 @@ class SubscribeRequestFilterAccountsFilterLamports(_message.Message):
|
||||
ne: int
|
||||
lt: int
|
||||
gt: int
|
||||
def __init__(self, eq: _Optional[int] = ..., ne: _Optional[int] = ..., lt: _Optional[int] = ..., gt: _Optional[int] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
eq: _Optional[int] = ...,
|
||||
ne: _Optional[int] = ...,
|
||||
lt: _Optional[int] = ...,
|
||||
gt: _Optional[int] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class SubscribeRequestFilterSlots(_message.Message):
|
||||
__slots__ = ("filter_by_commitment",)
|
||||
@@ -177,7 +286,14 @@ class SubscribeRequestFilterSlots(_message.Message):
|
||||
def __init__(self, filter_by_commitment: bool = ...) -> None: ...
|
||||
|
||||
class SubscribeRequestFilterTransactions(_message.Message):
|
||||
__slots__ = ("vote", "failed", "signature", "account_include", "account_exclude", "account_required")
|
||||
__slots__ = (
|
||||
"vote",
|
||||
"failed",
|
||||
"signature",
|
||||
"account_include",
|
||||
"account_exclude",
|
||||
"account_required",
|
||||
)
|
||||
VOTE_FIELD_NUMBER: _ClassVar[int]
|
||||
FAILED_FIELD_NUMBER: _ClassVar[int]
|
||||
SIGNATURE_FIELD_NUMBER: _ClassVar[int]
|
||||
@@ -190,10 +306,23 @@ class SubscribeRequestFilterTransactions(_message.Message):
|
||||
account_include: _containers.RepeatedScalarFieldContainer[str]
|
||||
account_exclude: _containers.RepeatedScalarFieldContainer[str]
|
||||
account_required: _containers.RepeatedScalarFieldContainer[str]
|
||||
def __init__(self, vote: bool = ..., failed: bool = ..., signature: _Optional[str] = ..., account_include: _Optional[_Iterable[str]] = ..., account_exclude: _Optional[_Iterable[str]] = ..., account_required: _Optional[_Iterable[str]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
vote: bool = ...,
|
||||
failed: bool = ...,
|
||||
signature: _Optional[str] = ...,
|
||||
account_include: _Optional[_Iterable[str]] = ...,
|
||||
account_exclude: _Optional[_Iterable[str]] = ...,
|
||||
account_required: _Optional[_Iterable[str]] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class SubscribeRequestFilterBlocks(_message.Message):
|
||||
__slots__ = ("account_include", "include_transactions", "include_accounts", "include_entries")
|
||||
__slots__ = (
|
||||
"account_include",
|
||||
"include_transactions",
|
||||
"include_accounts",
|
||||
"include_entries",
|
||||
)
|
||||
ACCOUNT_INCLUDE_FIELD_NUMBER: _ClassVar[int]
|
||||
INCLUDE_TRANSACTIONS_FIELD_NUMBER: _ClassVar[int]
|
||||
INCLUDE_ACCOUNTS_FIELD_NUMBER: _ClassVar[int]
|
||||
@@ -202,7 +331,13 @@ class SubscribeRequestFilterBlocks(_message.Message):
|
||||
include_transactions: bool
|
||||
include_accounts: bool
|
||||
include_entries: bool
|
||||
def __init__(self, account_include: _Optional[_Iterable[str]] = ..., include_transactions: bool = ..., include_accounts: bool = ..., include_entries: bool = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
account_include: _Optional[_Iterable[str]] = ...,
|
||||
include_transactions: bool = ...,
|
||||
include_accounts: bool = ...,
|
||||
include_entries: bool = ...,
|
||||
) -> None: ...
|
||||
|
||||
class SubscribeRequestFilterBlocksMeta(_message.Message):
|
||||
__slots__ = ()
|
||||
@@ -218,7 +353,9 @@ class SubscribeRequestAccountsDataSlice(_message.Message):
|
||||
LENGTH_FIELD_NUMBER: _ClassVar[int]
|
||||
offset: int
|
||||
length: int
|
||||
def __init__(self, offset: _Optional[int] = ..., length: _Optional[int] = ...) -> None: ...
|
||||
def __init__(
|
||||
self, offset: _Optional[int] = ..., length: _Optional[int] = ...
|
||||
) -> None: ...
|
||||
|
||||
class SubscribeRequestPing(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
@@ -227,7 +364,18 @@ class SubscribeRequestPing(_message.Message):
|
||||
def __init__(self, id: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class SubscribeUpdate(_message.Message):
|
||||
__slots__ = ("filters", "account", "slot", "transaction", "transaction_status", "block", "ping", "pong", "block_meta", "entry")
|
||||
__slots__ = (
|
||||
"filters",
|
||||
"account",
|
||||
"slot",
|
||||
"transaction",
|
||||
"transaction_status",
|
||||
"block",
|
||||
"ping",
|
||||
"pong",
|
||||
"block_meta",
|
||||
"entry",
|
||||
)
|
||||
FILTERS_FIELD_NUMBER: _ClassVar[int]
|
||||
ACCOUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
SLOT_FIELD_NUMBER: _ClassVar[int]
|
||||
@@ -248,7 +396,21 @@ class SubscribeUpdate(_message.Message):
|
||||
pong: SubscribeUpdatePong
|
||||
block_meta: SubscribeUpdateBlockMeta
|
||||
entry: SubscribeUpdateEntry
|
||||
def __init__(self, filters: _Optional[_Iterable[str]] = ..., account: _Optional[_Union[SubscribeUpdateAccount, _Mapping]] = ..., slot: _Optional[_Union[SubscribeUpdateSlot, _Mapping]] = ..., transaction: _Optional[_Union[SubscribeUpdateTransaction, _Mapping]] = ..., transaction_status: _Optional[_Union[SubscribeUpdateTransactionStatus, _Mapping]] = ..., block: _Optional[_Union[SubscribeUpdateBlock, _Mapping]] = ..., ping: _Optional[_Union[SubscribeUpdatePing, _Mapping]] = ..., pong: _Optional[_Union[SubscribeUpdatePong, _Mapping]] = ..., block_meta: _Optional[_Union[SubscribeUpdateBlockMeta, _Mapping]] = ..., entry: _Optional[_Union[SubscribeUpdateEntry, _Mapping]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
filters: _Optional[_Iterable[str]] = ...,
|
||||
account: _Optional[_Union[SubscribeUpdateAccount, _Mapping]] = ...,
|
||||
slot: _Optional[_Union[SubscribeUpdateSlot, _Mapping]] = ...,
|
||||
transaction: _Optional[_Union[SubscribeUpdateTransaction, _Mapping]] = ...,
|
||||
transaction_status: _Optional[
|
||||
_Union[SubscribeUpdateTransactionStatus, _Mapping]
|
||||
] = ...,
|
||||
block: _Optional[_Union[SubscribeUpdateBlock, _Mapping]] = ...,
|
||||
ping: _Optional[_Union[SubscribeUpdatePing, _Mapping]] = ...,
|
||||
pong: _Optional[_Union[SubscribeUpdatePong, _Mapping]] = ...,
|
||||
block_meta: _Optional[_Union[SubscribeUpdateBlockMeta, _Mapping]] = ...,
|
||||
entry: _Optional[_Union[SubscribeUpdateEntry, _Mapping]] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class SubscribeUpdateAccount(_message.Message):
|
||||
__slots__ = ("account", "slot", "is_startup")
|
||||
@@ -258,10 +420,24 @@ class SubscribeUpdateAccount(_message.Message):
|
||||
account: SubscribeUpdateAccountInfo
|
||||
slot: int
|
||||
is_startup: bool
|
||||
def __init__(self, account: _Optional[_Union[SubscribeUpdateAccountInfo, _Mapping]] = ..., slot: _Optional[int] = ..., is_startup: bool = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
account: _Optional[_Union[SubscribeUpdateAccountInfo, _Mapping]] = ...,
|
||||
slot: _Optional[int] = ...,
|
||||
is_startup: bool = ...,
|
||||
) -> None: ...
|
||||
|
||||
class SubscribeUpdateAccountInfo(_message.Message):
|
||||
__slots__ = ("pubkey", "lamports", "owner", "executable", "rent_epoch", "data", "write_version", "txn_signature")
|
||||
__slots__ = (
|
||||
"pubkey",
|
||||
"lamports",
|
||||
"owner",
|
||||
"executable",
|
||||
"rent_epoch",
|
||||
"data",
|
||||
"write_version",
|
||||
"txn_signature",
|
||||
)
|
||||
PUBKEY_FIELD_NUMBER: _ClassVar[int]
|
||||
LAMPORTS_FIELD_NUMBER: _ClassVar[int]
|
||||
OWNER_FIELD_NUMBER: _ClassVar[int]
|
||||
@@ -278,7 +454,17 @@ class SubscribeUpdateAccountInfo(_message.Message):
|
||||
data: bytes
|
||||
write_version: int
|
||||
txn_signature: bytes
|
||||
def __init__(self, pubkey: _Optional[bytes] = ..., lamports: _Optional[int] = ..., owner: _Optional[bytes] = ..., executable: bool = ..., rent_epoch: _Optional[int] = ..., data: _Optional[bytes] = ..., write_version: _Optional[int] = ..., txn_signature: _Optional[bytes] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
pubkey: _Optional[bytes] = ...,
|
||||
lamports: _Optional[int] = ...,
|
||||
owner: _Optional[bytes] = ...,
|
||||
executable: bool = ...,
|
||||
rent_epoch: _Optional[int] = ...,
|
||||
data: _Optional[bytes] = ...,
|
||||
write_version: _Optional[int] = ...,
|
||||
txn_signature: _Optional[bytes] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class SubscribeUpdateSlot(_message.Message):
|
||||
__slots__ = ("slot", "parent", "status", "dead_error")
|
||||
@@ -290,7 +476,13 @@ class SubscribeUpdateSlot(_message.Message):
|
||||
parent: int
|
||||
status: CommitmentLevel
|
||||
dead_error: str
|
||||
def __init__(self, slot: _Optional[int] = ..., parent: _Optional[int] = ..., status: _Optional[_Union[CommitmentLevel, str]] = ..., dead_error: _Optional[str] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
slot: _Optional[int] = ...,
|
||||
parent: _Optional[int] = ...,
|
||||
status: _Optional[_Union[CommitmentLevel, str]] = ...,
|
||||
dead_error: _Optional[str] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class SubscribeUpdateTransaction(_message.Message):
|
||||
__slots__ = ("transaction", "slot")
|
||||
@@ -298,7 +490,11 @@ class SubscribeUpdateTransaction(_message.Message):
|
||||
SLOT_FIELD_NUMBER: _ClassVar[int]
|
||||
transaction: SubscribeUpdateTransactionInfo
|
||||
slot: int
|
||||
def __init__(self, transaction: _Optional[_Union[SubscribeUpdateTransactionInfo, _Mapping]] = ..., slot: _Optional[int] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
transaction: _Optional[_Union[SubscribeUpdateTransactionInfo, _Mapping]] = ...,
|
||||
slot: _Optional[int] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class SubscribeUpdateTransactionInfo(_message.Message):
|
||||
__slots__ = ("signature", "is_vote", "transaction", "meta", "index")
|
||||
@@ -312,7 +508,16 @@ class SubscribeUpdateTransactionInfo(_message.Message):
|
||||
transaction: _solana_storage_pb2.Transaction
|
||||
meta: _solana_storage_pb2.TransactionStatusMeta
|
||||
index: int
|
||||
def __init__(self, signature: _Optional[bytes] = ..., is_vote: bool = ..., transaction: _Optional[_Union[_solana_storage_pb2.Transaction, _Mapping]] = ..., meta: _Optional[_Union[_solana_storage_pb2.TransactionStatusMeta, _Mapping]] = ..., index: _Optional[int] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
signature: _Optional[bytes] = ...,
|
||||
is_vote: bool = ...,
|
||||
transaction: _Optional[_Union[_solana_storage_pb2.Transaction, _Mapping]] = ...,
|
||||
meta: _Optional[
|
||||
_Union[_solana_storage_pb2.TransactionStatusMeta, _Mapping]
|
||||
] = ...,
|
||||
index: _Optional[int] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class SubscribeUpdateTransactionStatus(_message.Message):
|
||||
__slots__ = ("slot", "signature", "is_vote", "index", "err")
|
||||
@@ -326,10 +531,31 @@ class SubscribeUpdateTransactionStatus(_message.Message):
|
||||
is_vote: bool
|
||||
index: int
|
||||
err: _solana_storage_pb2.TransactionError
|
||||
def __init__(self, slot: _Optional[int] = ..., signature: _Optional[bytes] = ..., is_vote: bool = ..., index: _Optional[int] = ..., err: _Optional[_Union[_solana_storage_pb2.TransactionError, _Mapping]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
slot: _Optional[int] = ...,
|
||||
signature: _Optional[bytes] = ...,
|
||||
is_vote: bool = ...,
|
||||
index: _Optional[int] = ...,
|
||||
err: _Optional[_Union[_solana_storage_pb2.TransactionError, _Mapping]] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class SubscribeUpdateBlock(_message.Message):
|
||||
__slots__ = ("slot", "blockhash", "rewards", "block_time", "block_height", "parent_slot", "parent_blockhash", "executed_transaction_count", "transactions", "updated_account_count", "accounts", "entries_count", "entries")
|
||||
__slots__ = (
|
||||
"slot",
|
||||
"blockhash",
|
||||
"rewards",
|
||||
"block_time",
|
||||
"block_height",
|
||||
"parent_slot",
|
||||
"parent_blockhash",
|
||||
"executed_transaction_count",
|
||||
"transactions",
|
||||
"updated_account_count",
|
||||
"accounts",
|
||||
"entries_count",
|
||||
"entries",
|
||||
)
|
||||
SLOT_FIELD_NUMBER: _ClassVar[int]
|
||||
BLOCKHASH_FIELD_NUMBER: _ClassVar[int]
|
||||
REWARDS_FIELD_NUMBER: _ClassVar[int]
|
||||
@@ -351,15 +577,50 @@ class SubscribeUpdateBlock(_message.Message):
|
||||
parent_slot: int
|
||||
parent_blockhash: str
|
||||
executed_transaction_count: int
|
||||
transactions: _containers.RepeatedCompositeFieldContainer[SubscribeUpdateTransactionInfo]
|
||||
transactions: _containers.RepeatedCompositeFieldContainer[
|
||||
SubscribeUpdateTransactionInfo
|
||||
]
|
||||
updated_account_count: int
|
||||
accounts: _containers.RepeatedCompositeFieldContainer[SubscribeUpdateAccountInfo]
|
||||
entries_count: int
|
||||
entries: _containers.RepeatedCompositeFieldContainer[SubscribeUpdateEntry]
|
||||
def __init__(self, slot: _Optional[int] = ..., blockhash: _Optional[str] = ..., rewards: _Optional[_Union[_solana_storage_pb2.Rewards, _Mapping]] = ..., block_time: _Optional[_Union[_solana_storage_pb2.UnixTimestamp, _Mapping]] = ..., block_height: _Optional[_Union[_solana_storage_pb2.BlockHeight, _Mapping]] = ..., parent_slot: _Optional[int] = ..., parent_blockhash: _Optional[str] = ..., executed_transaction_count: _Optional[int] = ..., transactions: _Optional[_Iterable[_Union[SubscribeUpdateTransactionInfo, _Mapping]]] = ..., updated_account_count: _Optional[int] = ..., accounts: _Optional[_Iterable[_Union[SubscribeUpdateAccountInfo, _Mapping]]] = ..., entries_count: _Optional[int] = ..., entries: _Optional[_Iterable[_Union[SubscribeUpdateEntry, _Mapping]]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
slot: _Optional[int] = ...,
|
||||
blockhash: _Optional[str] = ...,
|
||||
rewards: _Optional[_Union[_solana_storage_pb2.Rewards, _Mapping]] = ...,
|
||||
block_time: _Optional[
|
||||
_Union[_solana_storage_pb2.UnixTimestamp, _Mapping]
|
||||
] = ...,
|
||||
block_height: _Optional[
|
||||
_Union[_solana_storage_pb2.BlockHeight, _Mapping]
|
||||
] = ...,
|
||||
parent_slot: _Optional[int] = ...,
|
||||
parent_blockhash: _Optional[str] = ...,
|
||||
executed_transaction_count: _Optional[int] = ...,
|
||||
transactions: _Optional[
|
||||
_Iterable[_Union[SubscribeUpdateTransactionInfo, _Mapping]]
|
||||
] = ...,
|
||||
updated_account_count: _Optional[int] = ...,
|
||||
accounts: _Optional[
|
||||
_Iterable[_Union[SubscribeUpdateAccountInfo, _Mapping]]
|
||||
] = ...,
|
||||
entries_count: _Optional[int] = ...,
|
||||
entries: _Optional[_Iterable[_Union[SubscribeUpdateEntry, _Mapping]]] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class SubscribeUpdateBlockMeta(_message.Message):
|
||||
__slots__ = ("slot", "blockhash", "rewards", "block_time", "block_height", "parent_slot", "parent_blockhash", "executed_transaction_count", "entries_count")
|
||||
__slots__ = (
|
||||
"slot",
|
||||
"blockhash",
|
||||
"rewards",
|
||||
"block_time",
|
||||
"block_height",
|
||||
"parent_slot",
|
||||
"parent_blockhash",
|
||||
"executed_transaction_count",
|
||||
"entries_count",
|
||||
)
|
||||
SLOT_FIELD_NUMBER: _ClassVar[int]
|
||||
BLOCKHASH_FIELD_NUMBER: _ClassVar[int]
|
||||
REWARDS_FIELD_NUMBER: _ClassVar[int]
|
||||
@@ -378,10 +639,32 @@ class SubscribeUpdateBlockMeta(_message.Message):
|
||||
parent_blockhash: str
|
||||
executed_transaction_count: int
|
||||
entries_count: int
|
||||
def __init__(self, slot: _Optional[int] = ..., blockhash: _Optional[str] = ..., rewards: _Optional[_Union[_solana_storage_pb2.Rewards, _Mapping]] = ..., block_time: _Optional[_Union[_solana_storage_pb2.UnixTimestamp, _Mapping]] = ..., block_height: _Optional[_Union[_solana_storage_pb2.BlockHeight, _Mapping]] = ..., parent_slot: _Optional[int] = ..., parent_blockhash: _Optional[str] = ..., executed_transaction_count: _Optional[int] = ..., entries_count: _Optional[int] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
slot: _Optional[int] = ...,
|
||||
blockhash: _Optional[str] = ...,
|
||||
rewards: _Optional[_Union[_solana_storage_pb2.Rewards, _Mapping]] = ...,
|
||||
block_time: _Optional[
|
||||
_Union[_solana_storage_pb2.UnixTimestamp, _Mapping]
|
||||
] = ...,
|
||||
block_height: _Optional[
|
||||
_Union[_solana_storage_pb2.BlockHeight, _Mapping]
|
||||
] = ...,
|
||||
parent_slot: _Optional[int] = ...,
|
||||
parent_blockhash: _Optional[str] = ...,
|
||||
executed_transaction_count: _Optional[int] = ...,
|
||||
entries_count: _Optional[int] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class SubscribeUpdateEntry(_message.Message):
|
||||
__slots__ = ("slot", "index", "num_hashes", "hash", "executed_transaction_count", "starting_transaction_index")
|
||||
__slots__ = (
|
||||
"slot",
|
||||
"index",
|
||||
"num_hashes",
|
||||
"hash",
|
||||
"executed_transaction_count",
|
||||
"starting_transaction_index",
|
||||
)
|
||||
SLOT_FIELD_NUMBER: _ClassVar[int]
|
||||
INDEX_FIELD_NUMBER: _ClassVar[int]
|
||||
NUM_HASHES_FIELD_NUMBER: _ClassVar[int]
|
||||
@@ -394,7 +677,15 @@ class SubscribeUpdateEntry(_message.Message):
|
||||
hash: bytes
|
||||
executed_transaction_count: int
|
||||
starting_transaction_index: int
|
||||
def __init__(self, slot: _Optional[int] = ..., index: _Optional[int] = ..., num_hashes: _Optional[int] = ..., hash: _Optional[bytes] = ..., executed_transaction_count: _Optional[int] = ..., starting_transaction_index: _Optional[int] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
slot: _Optional[int] = ...,
|
||||
index: _Optional[int] = ...,
|
||||
num_hashes: _Optional[int] = ...,
|
||||
hash: _Optional[bytes] = ...,
|
||||
executed_transaction_count: _Optional[int] = ...,
|
||||
starting_transaction_index: _Optional[int] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class SubscribeUpdatePing(_message.Message):
|
||||
__slots__ = ()
|
||||
@@ -422,7 +713,9 @@ class GetLatestBlockhashRequest(_message.Message):
|
||||
__slots__ = ("commitment",)
|
||||
COMMITMENT_FIELD_NUMBER: _ClassVar[int]
|
||||
commitment: CommitmentLevel
|
||||
def __init__(self, commitment: _Optional[_Union[CommitmentLevel, str]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self, commitment: _Optional[_Union[CommitmentLevel, str]] = ...
|
||||
) -> None: ...
|
||||
|
||||
class GetLatestBlockhashResponse(_message.Message):
|
||||
__slots__ = ("slot", "blockhash", "last_valid_block_height")
|
||||
@@ -432,13 +725,20 @@ class GetLatestBlockhashResponse(_message.Message):
|
||||
slot: int
|
||||
blockhash: str
|
||||
last_valid_block_height: int
|
||||
def __init__(self, slot: _Optional[int] = ..., blockhash: _Optional[str] = ..., last_valid_block_height: _Optional[int] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
slot: _Optional[int] = ...,
|
||||
blockhash: _Optional[str] = ...,
|
||||
last_valid_block_height: _Optional[int] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class GetBlockHeightRequest(_message.Message):
|
||||
__slots__ = ("commitment",)
|
||||
COMMITMENT_FIELD_NUMBER: _ClassVar[int]
|
||||
commitment: CommitmentLevel
|
||||
def __init__(self, commitment: _Optional[_Union[CommitmentLevel, str]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self, commitment: _Optional[_Union[CommitmentLevel, str]] = ...
|
||||
) -> None: ...
|
||||
|
||||
class GetBlockHeightResponse(_message.Message):
|
||||
__slots__ = ("block_height",)
|
||||
@@ -450,7 +750,9 @@ class GetSlotRequest(_message.Message):
|
||||
__slots__ = ("commitment",)
|
||||
COMMITMENT_FIELD_NUMBER: _ClassVar[int]
|
||||
commitment: CommitmentLevel
|
||||
def __init__(self, commitment: _Optional[_Union[CommitmentLevel, str]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self, commitment: _Optional[_Union[CommitmentLevel, str]] = ...
|
||||
) -> None: ...
|
||||
|
||||
class GetSlotResponse(_message.Message):
|
||||
__slots__ = ("slot",)
|
||||
@@ -474,7 +776,11 @@ class IsBlockhashValidRequest(_message.Message):
|
||||
COMMITMENT_FIELD_NUMBER: _ClassVar[int]
|
||||
blockhash: str
|
||||
commitment: CommitmentLevel
|
||||
def __init__(self, blockhash: _Optional[str] = ..., commitment: _Optional[_Union[CommitmentLevel, str]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
blockhash: _Optional[str] = ...,
|
||||
commitment: _Optional[_Union[CommitmentLevel, str]] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class IsBlockhashValidResponse(_message.Message):
|
||||
__slots__ = ("slot", "valid")
|
||||
|
||||
@@ -5,23 +5,26 @@ import grpc
|
||||
|
||||
import geyser.generated.geyser_pb2 as geyser__pb2
|
||||
|
||||
GRPC_GENERATED_VERSION = '1.71.0'
|
||||
GRPC_GENERATED_VERSION = "1.71.0"
|
||||
GRPC_VERSION = grpc.__version__
|
||||
_version_not_supported = False
|
||||
|
||||
try:
|
||||
from grpc._utilities import first_version_is_lower
|
||||
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
||||
|
||||
_version_not_supported = first_version_is_lower(
|
||||
GRPC_VERSION, GRPC_GENERATED_VERSION
|
||||
)
|
||||
except ImportError:
|
||||
_version_not_supported = True
|
||||
|
||||
if _version_not_supported:
|
||||
raise RuntimeError(
|
||||
f'The grpc package installed is at version {GRPC_VERSION},'
|
||||
+ ' but the generated code in geyser_pb2_grpc.py depends on'
|
||||
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
||||
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
||||
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
||||
f"The grpc package installed is at version {GRPC_VERSION},"
|
||||
+ " but the generated code in geyser_pb2_grpc.py depends on"
|
||||
+ f" grpcio>={GRPC_GENERATED_VERSION}."
|
||||
+ f" Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}"
|
||||
+ f" or downgrade your generated code using grpcio-tools<={GRPC_VERSION}."
|
||||
)
|
||||
|
||||
|
||||
@@ -35,40 +38,47 @@ class GeyserStub:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.Subscribe = channel.stream_stream(
|
||||
'/geyser.Geyser/Subscribe',
|
||||
request_serializer=geyser__pb2.SubscribeRequest.SerializeToString,
|
||||
response_deserializer=geyser__pb2.SubscribeUpdate.FromString,
|
||||
_registered_method=True)
|
||||
"/geyser.Geyser/Subscribe",
|
||||
request_serializer=geyser__pb2.SubscribeRequest.SerializeToString,
|
||||
response_deserializer=geyser__pb2.SubscribeUpdate.FromString,
|
||||
_registered_method=True,
|
||||
)
|
||||
self.Ping = channel.unary_unary(
|
||||
'/geyser.Geyser/Ping',
|
||||
request_serializer=geyser__pb2.PingRequest.SerializeToString,
|
||||
response_deserializer=geyser__pb2.PongResponse.FromString,
|
||||
_registered_method=True)
|
||||
"/geyser.Geyser/Ping",
|
||||
request_serializer=geyser__pb2.PingRequest.SerializeToString,
|
||||
response_deserializer=geyser__pb2.PongResponse.FromString,
|
||||
_registered_method=True,
|
||||
)
|
||||
self.GetLatestBlockhash = channel.unary_unary(
|
||||
'/geyser.Geyser/GetLatestBlockhash',
|
||||
request_serializer=geyser__pb2.GetLatestBlockhashRequest.SerializeToString,
|
||||
response_deserializer=geyser__pb2.GetLatestBlockhashResponse.FromString,
|
||||
_registered_method=True)
|
||||
"/geyser.Geyser/GetLatestBlockhash",
|
||||
request_serializer=geyser__pb2.GetLatestBlockhashRequest.SerializeToString,
|
||||
response_deserializer=geyser__pb2.GetLatestBlockhashResponse.FromString,
|
||||
_registered_method=True,
|
||||
)
|
||||
self.GetBlockHeight = channel.unary_unary(
|
||||
'/geyser.Geyser/GetBlockHeight',
|
||||
request_serializer=geyser__pb2.GetBlockHeightRequest.SerializeToString,
|
||||
response_deserializer=geyser__pb2.GetBlockHeightResponse.FromString,
|
||||
_registered_method=True)
|
||||
"/geyser.Geyser/GetBlockHeight",
|
||||
request_serializer=geyser__pb2.GetBlockHeightRequest.SerializeToString,
|
||||
response_deserializer=geyser__pb2.GetBlockHeightResponse.FromString,
|
||||
_registered_method=True,
|
||||
)
|
||||
self.GetSlot = channel.unary_unary(
|
||||
'/geyser.Geyser/GetSlot',
|
||||
request_serializer=geyser__pb2.GetSlotRequest.SerializeToString,
|
||||
response_deserializer=geyser__pb2.GetSlotResponse.FromString,
|
||||
_registered_method=True)
|
||||
"/geyser.Geyser/GetSlot",
|
||||
request_serializer=geyser__pb2.GetSlotRequest.SerializeToString,
|
||||
response_deserializer=geyser__pb2.GetSlotResponse.FromString,
|
||||
_registered_method=True,
|
||||
)
|
||||
self.IsBlockhashValid = channel.unary_unary(
|
||||
'/geyser.Geyser/IsBlockhashValid',
|
||||
request_serializer=geyser__pb2.IsBlockhashValidRequest.SerializeToString,
|
||||
response_deserializer=geyser__pb2.IsBlockhashValidResponse.FromString,
|
||||
_registered_method=True)
|
||||
"/geyser.Geyser/IsBlockhashValid",
|
||||
request_serializer=geyser__pb2.IsBlockhashValidRequest.SerializeToString,
|
||||
response_deserializer=geyser__pb2.IsBlockhashValidResponse.FromString,
|
||||
_registered_method=True,
|
||||
)
|
||||
self.GetVersion = channel.unary_unary(
|
||||
'/geyser.Geyser/GetVersion',
|
||||
request_serializer=geyser__pb2.GetVersionRequest.SerializeToString,
|
||||
response_deserializer=geyser__pb2.GetVersionResponse.FromString,
|
||||
_registered_method=True)
|
||||
"/geyser.Geyser/GetVersion",
|
||||
request_serializer=geyser__pb2.GetVersionRequest.SerializeToString,
|
||||
response_deserializer=geyser__pb2.GetVersionResponse.FromString,
|
||||
_registered_method=True,
|
||||
)
|
||||
|
||||
|
||||
class GeyserServicer:
|
||||
@@ -77,109 +87,112 @@ class GeyserServicer:
|
||||
def Subscribe(self, request_iterator, context):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
context.set_details("Method not implemented!")
|
||||
raise NotImplementedError("Method not implemented!")
|
||||
|
||||
def Ping(self, request, context):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
context.set_details("Method not implemented!")
|
||||
raise NotImplementedError("Method not implemented!")
|
||||
|
||||
def GetLatestBlockhash(self, request, context):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
context.set_details("Method not implemented!")
|
||||
raise NotImplementedError("Method not implemented!")
|
||||
|
||||
def GetBlockHeight(self, request, context):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
context.set_details("Method not implemented!")
|
||||
raise NotImplementedError("Method not implemented!")
|
||||
|
||||
def GetSlot(self, request, context):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
context.set_details("Method not implemented!")
|
||||
raise NotImplementedError("Method not implemented!")
|
||||
|
||||
def IsBlockhashValid(self, request, context):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
context.set_details("Method not implemented!")
|
||||
raise NotImplementedError("Method not implemented!")
|
||||
|
||||
def GetVersion(self, request, context):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
context.set_details("Method not implemented!")
|
||||
raise NotImplementedError("Method not implemented!")
|
||||
|
||||
|
||||
def add_GeyserServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'Subscribe': grpc.stream_stream_rpc_method_handler(
|
||||
servicer.Subscribe,
|
||||
request_deserializer=geyser__pb2.SubscribeRequest.FromString,
|
||||
response_serializer=geyser__pb2.SubscribeUpdate.SerializeToString,
|
||||
),
|
||||
'Ping': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Ping,
|
||||
request_deserializer=geyser__pb2.PingRequest.FromString,
|
||||
response_serializer=geyser__pb2.PongResponse.SerializeToString,
|
||||
),
|
||||
'GetLatestBlockhash': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetLatestBlockhash,
|
||||
request_deserializer=geyser__pb2.GetLatestBlockhashRequest.FromString,
|
||||
response_serializer=geyser__pb2.GetLatestBlockhashResponse.SerializeToString,
|
||||
),
|
||||
'GetBlockHeight': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetBlockHeight,
|
||||
request_deserializer=geyser__pb2.GetBlockHeightRequest.FromString,
|
||||
response_serializer=geyser__pb2.GetBlockHeightResponse.SerializeToString,
|
||||
),
|
||||
'GetSlot': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetSlot,
|
||||
request_deserializer=geyser__pb2.GetSlotRequest.FromString,
|
||||
response_serializer=geyser__pb2.GetSlotResponse.SerializeToString,
|
||||
),
|
||||
'IsBlockhashValid': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.IsBlockhashValid,
|
||||
request_deserializer=geyser__pb2.IsBlockhashValidRequest.FromString,
|
||||
response_serializer=geyser__pb2.IsBlockhashValidResponse.SerializeToString,
|
||||
),
|
||||
'GetVersion': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetVersion,
|
||||
request_deserializer=geyser__pb2.GetVersionRequest.FromString,
|
||||
response_serializer=geyser__pb2.GetVersionResponse.SerializeToString,
|
||||
),
|
||||
"Subscribe": grpc.stream_stream_rpc_method_handler(
|
||||
servicer.Subscribe,
|
||||
request_deserializer=geyser__pb2.SubscribeRequest.FromString,
|
||||
response_serializer=geyser__pb2.SubscribeUpdate.SerializeToString,
|
||||
),
|
||||
"Ping": grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Ping,
|
||||
request_deserializer=geyser__pb2.PingRequest.FromString,
|
||||
response_serializer=geyser__pb2.PongResponse.SerializeToString,
|
||||
),
|
||||
"GetLatestBlockhash": grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetLatestBlockhash,
|
||||
request_deserializer=geyser__pb2.GetLatestBlockhashRequest.FromString,
|
||||
response_serializer=geyser__pb2.GetLatestBlockhashResponse.SerializeToString,
|
||||
),
|
||||
"GetBlockHeight": grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetBlockHeight,
|
||||
request_deserializer=geyser__pb2.GetBlockHeightRequest.FromString,
|
||||
response_serializer=geyser__pb2.GetBlockHeightResponse.SerializeToString,
|
||||
),
|
||||
"GetSlot": grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetSlot,
|
||||
request_deserializer=geyser__pb2.GetSlotRequest.FromString,
|
||||
response_serializer=geyser__pb2.GetSlotResponse.SerializeToString,
|
||||
),
|
||||
"IsBlockhashValid": grpc.unary_unary_rpc_method_handler(
|
||||
servicer.IsBlockhashValid,
|
||||
request_deserializer=geyser__pb2.IsBlockhashValidRequest.FromString,
|
||||
response_serializer=geyser__pb2.IsBlockhashValidResponse.SerializeToString,
|
||||
),
|
||||
"GetVersion": grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetVersion,
|
||||
request_deserializer=geyser__pb2.GetVersionRequest.FromString,
|
||||
response_serializer=geyser__pb2.GetVersionResponse.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'geyser.Geyser', rpc_method_handlers)
|
||||
"geyser.Geyser", rpc_method_handlers
|
||||
)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
||||
server.add_registered_method_handlers('geyser.Geyser', rpc_method_handlers)
|
||||
server.add_registered_method_handlers("geyser.Geyser", rpc_method_handlers)
|
||||
|
||||
|
||||
# This class is part of an EXPERIMENTAL API.
|
||||
# This class is part of an EXPERIMENTAL API.
|
||||
class Geyser:
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
@staticmethod
|
||||
def Subscribe(request_iterator,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
def Subscribe(
|
||||
request_iterator,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None,
|
||||
):
|
||||
return grpc.experimental.stream_stream(
|
||||
request_iterator,
|
||||
target,
|
||||
'/geyser.Geyser/Subscribe',
|
||||
"/geyser.Geyser/Subscribe",
|
||||
geyser__pb2.SubscribeRequest.SerializeToString,
|
||||
geyser__pb2.SubscribeUpdate.FromString,
|
||||
options,
|
||||
@@ -190,23 +203,26 @@ class Geyser:
|
||||
wait_for_ready,
|
||||
timeout,
|
||||
metadata,
|
||||
_registered_method=True)
|
||||
_registered_method=True,
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def Ping(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
def Ping(
|
||||
request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None,
|
||||
):
|
||||
return grpc.experimental.unary_unary(
|
||||
request,
|
||||
target,
|
||||
'/geyser.Geyser/Ping',
|
||||
"/geyser.Geyser/Ping",
|
||||
geyser__pb2.PingRequest.SerializeToString,
|
||||
geyser__pb2.PongResponse.FromString,
|
||||
options,
|
||||
@@ -217,23 +233,26 @@ class Geyser:
|
||||
wait_for_ready,
|
||||
timeout,
|
||||
metadata,
|
||||
_registered_method=True)
|
||||
_registered_method=True,
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def GetLatestBlockhash(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
def GetLatestBlockhash(
|
||||
request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None,
|
||||
):
|
||||
return grpc.experimental.unary_unary(
|
||||
request,
|
||||
target,
|
||||
'/geyser.Geyser/GetLatestBlockhash',
|
||||
"/geyser.Geyser/GetLatestBlockhash",
|
||||
geyser__pb2.GetLatestBlockhashRequest.SerializeToString,
|
||||
geyser__pb2.GetLatestBlockhashResponse.FromString,
|
||||
options,
|
||||
@@ -244,23 +263,26 @@ class Geyser:
|
||||
wait_for_ready,
|
||||
timeout,
|
||||
metadata,
|
||||
_registered_method=True)
|
||||
_registered_method=True,
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def GetBlockHeight(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
def GetBlockHeight(
|
||||
request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None,
|
||||
):
|
||||
return grpc.experimental.unary_unary(
|
||||
request,
|
||||
target,
|
||||
'/geyser.Geyser/GetBlockHeight',
|
||||
"/geyser.Geyser/GetBlockHeight",
|
||||
geyser__pb2.GetBlockHeightRequest.SerializeToString,
|
||||
geyser__pb2.GetBlockHeightResponse.FromString,
|
||||
options,
|
||||
@@ -271,23 +293,26 @@ class Geyser:
|
||||
wait_for_ready,
|
||||
timeout,
|
||||
metadata,
|
||||
_registered_method=True)
|
||||
_registered_method=True,
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def GetSlot(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
def GetSlot(
|
||||
request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None,
|
||||
):
|
||||
return grpc.experimental.unary_unary(
|
||||
request,
|
||||
target,
|
||||
'/geyser.Geyser/GetSlot',
|
||||
"/geyser.Geyser/GetSlot",
|
||||
geyser__pb2.GetSlotRequest.SerializeToString,
|
||||
geyser__pb2.GetSlotResponse.FromString,
|
||||
options,
|
||||
@@ -298,23 +323,26 @@ class Geyser:
|
||||
wait_for_ready,
|
||||
timeout,
|
||||
metadata,
|
||||
_registered_method=True)
|
||||
_registered_method=True,
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def IsBlockhashValid(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
def IsBlockhashValid(
|
||||
request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None,
|
||||
):
|
||||
return grpc.experimental.unary_unary(
|
||||
request,
|
||||
target,
|
||||
'/geyser.Geyser/IsBlockhashValid',
|
||||
"/geyser.Geyser/IsBlockhashValid",
|
||||
geyser__pb2.IsBlockhashValidRequest.SerializeToString,
|
||||
geyser__pb2.IsBlockhashValidResponse.FromString,
|
||||
options,
|
||||
@@ -325,23 +353,26 @@ class Geyser:
|
||||
wait_for_ready,
|
||||
timeout,
|
||||
metadata,
|
||||
_registered_method=True)
|
||||
_registered_method=True,
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def GetVersion(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
def GetVersion(
|
||||
request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None,
|
||||
):
|
||||
return grpc.experimental.unary_unary(
|
||||
request,
|
||||
target,
|
||||
'/geyser.Geyser/GetVersion',
|
||||
"/geyser.Geyser/GetVersion",
|
||||
geyser__pb2.GetVersionRequest.SerializeToString,
|
||||
geyser__pb2.GetVersionResponse.FromString,
|
||||
options,
|
||||
@@ -352,4 +383,5 @@ class Geyser:
|
||||
wait_for_ready,
|
||||
timeout,
|
||||
metadata,
|
||||
_registered_method=True)
|
||||
_registered_method=True,
|
||||
)
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -2,7 +2,13 @@ from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
from typing import (
|
||||
ClassVar as _ClassVar,
|
||||
Iterable as _Iterable,
|
||||
Mapping as _Mapping,
|
||||
Optional as _Optional,
|
||||
Union as _Union,
|
||||
)
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
@@ -13,6 +19,7 @@ class RewardType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
Rent: _ClassVar[RewardType]
|
||||
Staking: _ClassVar[RewardType]
|
||||
Voting: _ClassVar[RewardType]
|
||||
|
||||
Unspecified: RewardType
|
||||
Fee: RewardType
|
||||
Rent: RewardType
|
||||
@@ -20,7 +27,16 @@ Staking: RewardType
|
||||
Voting: RewardType
|
||||
|
||||
class ConfirmedBlock(_message.Message):
|
||||
__slots__ = ("previous_blockhash", "blockhash", "parent_slot", "transactions", "rewards", "block_time", "block_height", "num_partitions")
|
||||
__slots__ = (
|
||||
"previous_blockhash",
|
||||
"blockhash",
|
||||
"parent_slot",
|
||||
"transactions",
|
||||
"rewards",
|
||||
"block_time",
|
||||
"block_height",
|
||||
"num_partitions",
|
||||
)
|
||||
PREVIOUS_BLOCKHASH_FIELD_NUMBER: _ClassVar[int]
|
||||
BLOCKHASH_FIELD_NUMBER: _ClassVar[int]
|
||||
PARENT_SLOT_FIELD_NUMBER: _ClassVar[int]
|
||||
@@ -37,7 +53,19 @@ class ConfirmedBlock(_message.Message):
|
||||
block_time: UnixTimestamp
|
||||
block_height: BlockHeight
|
||||
num_partitions: NumPartitions
|
||||
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: ...
|
||||
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: ...
|
||||
|
||||
class ConfirmedTransaction(_message.Message):
|
||||
__slots__ = ("transaction", "meta")
|
||||
@@ -45,7 +73,11 @@ class ConfirmedTransaction(_message.Message):
|
||||
META_FIELD_NUMBER: _ClassVar[int]
|
||||
transaction: Transaction
|
||||
meta: TransactionStatusMeta
|
||||
def __init__(self, transaction: _Optional[_Union[Transaction, _Mapping]] = ..., meta: _Optional[_Union[TransactionStatusMeta, _Mapping]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
transaction: _Optional[_Union[Transaction, _Mapping]] = ...,
|
||||
meta: _Optional[_Union[TransactionStatusMeta, _Mapping]] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class Transaction(_message.Message):
|
||||
__slots__ = ("signatures", "message")
|
||||
@@ -53,10 +85,21 @@ class Transaction(_message.Message):
|
||||
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
||||
signatures: _containers.RepeatedScalarFieldContainer[bytes]
|
||||
message: Message
|
||||
def __init__(self, signatures: _Optional[_Iterable[bytes]] = ..., message: _Optional[_Union[Message, _Mapping]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
signatures: _Optional[_Iterable[bytes]] = ...,
|
||||
message: _Optional[_Union[Message, _Mapping]] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class Message(_message.Message):
|
||||
__slots__ = ("header", "account_keys", "recent_blockhash", "instructions", "versioned", "address_table_lookups")
|
||||
__slots__ = (
|
||||
"header",
|
||||
"account_keys",
|
||||
"recent_blockhash",
|
||||
"instructions",
|
||||
"versioned",
|
||||
"address_table_lookups",
|
||||
)
|
||||
HEADER_FIELD_NUMBER: _ClassVar[int]
|
||||
ACCOUNT_KEYS_FIELD_NUMBER: _ClassVar[int]
|
||||
RECENT_BLOCKHASH_FIELD_NUMBER: _ClassVar[int]
|
||||
@@ -68,18 +111,39 @@ class Message(_message.Message):
|
||||
recent_blockhash: bytes
|
||||
instructions: _containers.RepeatedCompositeFieldContainer[CompiledInstruction]
|
||||
versioned: bool
|
||||
address_table_lookups: _containers.RepeatedCompositeFieldContainer[MessageAddressTableLookup]
|
||||
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: ...
|
||||
address_table_lookups: _containers.RepeatedCompositeFieldContainer[
|
||||
MessageAddressTableLookup
|
||||
]
|
||||
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: ...
|
||||
|
||||
class MessageHeader(_message.Message):
|
||||
__slots__ = ("num_required_signatures", "num_readonly_signed_accounts", "num_readonly_unsigned_accounts")
|
||||
__slots__ = (
|
||||
"num_required_signatures",
|
||||
"num_readonly_signed_accounts",
|
||||
"num_readonly_unsigned_accounts",
|
||||
)
|
||||
NUM_REQUIRED_SIGNATURES_FIELD_NUMBER: _ClassVar[int]
|
||||
NUM_READONLY_SIGNED_ACCOUNTS_FIELD_NUMBER: _ClassVar[int]
|
||||
NUM_READONLY_UNSIGNED_ACCOUNTS_FIELD_NUMBER: _ClassVar[int]
|
||||
num_required_signatures: int
|
||||
num_readonly_signed_accounts: int
|
||||
num_readonly_unsigned_accounts: int
|
||||
def __init__(self, num_required_signatures: _Optional[int] = ..., num_readonly_signed_accounts: _Optional[int] = ..., num_readonly_unsigned_accounts: _Optional[int] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
num_required_signatures: _Optional[int] = ...,
|
||||
num_readonly_signed_accounts: _Optional[int] = ...,
|
||||
num_readonly_unsigned_accounts: _Optional[int] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class MessageAddressTableLookup(_message.Message):
|
||||
__slots__ = ("account_key", "writable_indexes", "readonly_indexes")
|
||||
@@ -89,10 +153,32 @@ class MessageAddressTableLookup(_message.Message):
|
||||
account_key: bytes
|
||||
writable_indexes: bytes
|
||||
readonly_indexes: bytes
|
||||
def __init__(self, account_key: _Optional[bytes] = ..., writable_indexes: _Optional[bytes] = ..., readonly_indexes: _Optional[bytes] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
account_key: _Optional[bytes] = ...,
|
||||
writable_indexes: _Optional[bytes] = ...,
|
||||
readonly_indexes: _Optional[bytes] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class TransactionStatusMeta(_message.Message):
|
||||
__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")
|
||||
__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",
|
||||
)
|
||||
ERR_FIELD_NUMBER: _ClassVar[int]
|
||||
FEE_FIELD_NUMBER: _ClassVar[int]
|
||||
PRE_BALANCES_FIELD_NUMBER: _ClassVar[int]
|
||||
@@ -125,7 +211,27 @@ class TransactionStatusMeta(_message.Message):
|
||||
return_data: ReturnData
|
||||
return_data_none: bool
|
||||
compute_units_consumed: int
|
||||
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: ...
|
||||
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: ...
|
||||
|
||||
class TransactionError(_message.Message):
|
||||
__slots__ = ("err",)
|
||||
@@ -139,7 +245,11 @@ class InnerInstructions(_message.Message):
|
||||
INSTRUCTIONS_FIELD_NUMBER: _ClassVar[int]
|
||||
index: int
|
||||
instructions: _containers.RepeatedCompositeFieldContainer[InnerInstruction]
|
||||
def __init__(self, index: _Optional[int] = ..., instructions: _Optional[_Iterable[_Union[InnerInstruction, _Mapping]]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
index: _Optional[int] = ...,
|
||||
instructions: _Optional[_Iterable[_Union[InnerInstruction, _Mapping]]] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class InnerInstruction(_message.Message):
|
||||
__slots__ = ("program_id_index", "accounts", "data", "stack_height")
|
||||
@@ -151,7 +261,13 @@ class InnerInstruction(_message.Message):
|
||||
accounts: bytes
|
||||
data: bytes
|
||||
stack_height: int
|
||||
def __init__(self, program_id_index: _Optional[int] = ..., accounts: _Optional[bytes] = ..., data: _Optional[bytes] = ..., stack_height: _Optional[int] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
program_id_index: _Optional[int] = ...,
|
||||
accounts: _Optional[bytes] = ...,
|
||||
data: _Optional[bytes] = ...,
|
||||
stack_height: _Optional[int] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class CompiledInstruction(_message.Message):
|
||||
__slots__ = ("program_id_index", "accounts", "data")
|
||||
@@ -161,7 +277,12 @@ class CompiledInstruction(_message.Message):
|
||||
program_id_index: int
|
||||
accounts: bytes
|
||||
data: bytes
|
||||
def __init__(self, program_id_index: _Optional[int] = ..., accounts: _Optional[bytes] = ..., data: _Optional[bytes] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
program_id_index: _Optional[int] = ...,
|
||||
accounts: _Optional[bytes] = ...,
|
||||
data: _Optional[bytes] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class TokenBalance(_message.Message):
|
||||
__slots__ = ("account_index", "mint", "ui_token_amount", "owner", "program_id")
|
||||
@@ -175,7 +296,14 @@ class TokenBalance(_message.Message):
|
||||
ui_token_amount: UiTokenAmount
|
||||
owner: str
|
||||
program_id: str
|
||||
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: ...
|
||||
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: ...
|
||||
|
||||
class UiTokenAmount(_message.Message):
|
||||
__slots__ = ("ui_amount", "decimals", "amount", "ui_amount_string")
|
||||
@@ -187,7 +315,13 @@ class UiTokenAmount(_message.Message):
|
||||
decimals: int
|
||||
amount: str
|
||||
ui_amount_string: str
|
||||
def __init__(self, ui_amount: _Optional[float] = ..., decimals: _Optional[int] = ..., amount: _Optional[str] = ..., ui_amount_string: _Optional[str] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
ui_amount: _Optional[float] = ...,
|
||||
decimals: _Optional[int] = ...,
|
||||
amount: _Optional[str] = ...,
|
||||
ui_amount_string: _Optional[str] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class ReturnData(_message.Message):
|
||||
__slots__ = ("program_id", "data")
|
||||
@@ -195,7 +329,9 @@ class ReturnData(_message.Message):
|
||||
DATA_FIELD_NUMBER: _ClassVar[int]
|
||||
program_id: bytes
|
||||
data: bytes
|
||||
def __init__(self, program_id: _Optional[bytes] = ..., data: _Optional[bytes] = ...) -> None: ...
|
||||
def __init__(
|
||||
self, program_id: _Optional[bytes] = ..., data: _Optional[bytes] = ...
|
||||
) -> None: ...
|
||||
|
||||
class Reward(_message.Message):
|
||||
__slots__ = ("pubkey", "lamports", "post_balance", "reward_type", "commission")
|
||||
@@ -209,7 +345,14 @@ class Reward(_message.Message):
|
||||
post_balance: int
|
||||
reward_type: RewardType
|
||||
commission: str
|
||||
def __init__(self, pubkey: _Optional[str] = ..., lamports: _Optional[int] = ..., post_balance: _Optional[int] = ..., reward_type: _Optional[_Union[RewardType, str]] = ..., commission: _Optional[str] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
pubkey: _Optional[str] = ...,
|
||||
lamports: _Optional[int] = ...,
|
||||
post_balance: _Optional[int] = ...,
|
||||
reward_type: _Optional[_Union[RewardType, str]] = ...,
|
||||
commission: _Optional[str] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class Rewards(_message.Message):
|
||||
__slots__ = ("rewards", "num_partitions")
|
||||
@@ -217,7 +360,11 @@ class Rewards(_message.Message):
|
||||
NUM_PARTITIONS_FIELD_NUMBER: _ClassVar[int]
|
||||
rewards: _containers.RepeatedCompositeFieldContainer[Reward]
|
||||
num_partitions: NumPartitions
|
||||
def __init__(self, rewards: _Optional[_Iterable[_Union[Reward, _Mapping]]] = ..., num_partitions: _Optional[_Union[NumPartitions, _Mapping]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
rewards: _Optional[_Iterable[_Union[Reward, _Mapping]]] = ...,
|
||||
num_partitions: _Optional[_Union[NumPartitions, _Mapping]] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class UnixTimestamp(_message.Message):
|
||||
__slots__ = ("timestamp",)
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
|
||||
import grpc
|
||||
import warnings
|
||||
|
||||
|
||||
GRPC_GENERATED_VERSION = '1.71.0'
|
||||
GRPC_GENERATED_VERSION = "1.71.0"
|
||||
GRPC_VERSION = grpc.__version__
|
||||
_version_not_supported = False
|
||||
|
||||
try:
|
||||
from grpc._utilities import first_version_is_lower
|
||||
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
||||
|
||||
_version_not_supported = first_version_is_lower(
|
||||
GRPC_VERSION, GRPC_GENERATED_VERSION
|
||||
)
|
||||
except ImportError:
|
||||
_version_not_supported = True
|
||||
|
||||
if _version_not_supported:
|
||||
raise RuntimeError(
|
||||
f'The grpc package installed is at version {GRPC_VERSION},'
|
||||
+ f' but the generated code in solana_storage_pb2_grpc.py depends on'
|
||||
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
||||
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
||||
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
||||
f"The grpc package installed is at version {GRPC_VERSION},"
|
||||
+ f" but the generated code in solana_storage_pb2_grpc.py depends on"
|
||||
+ f" grpcio>={GRPC_GENERATED_VERSION}."
|
||||
+ f" Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}"
|
||||
+ f" or downgrade your generated code using grpcio-tools<={GRPC_VERSION}."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user