pub struct DbReader { /* private fields */ }Implementations§
Source§impl DbReader
impl DbReader
pub fn new( db: Arc<Db>, network: NetworkIdentifier, currency: u64, seed: GenerationHashSeed, mempool: Arc<SharedMempool>, recent: SharedRecent, partials: Arc<SharedPartialPool>, ) -> Self
Trait Implementations§
Source§impl Reader for DbReader
impl Reader for DbReader
Source§fn accounts(
&self,
addresses: &[Address],
at: Option<u64>,
) -> Result<Vec<AccountJson>, StateError>
fn accounts( &self, addresses: &[Address], at: Option<u64>, ) -> Result<Vec<AccountJson>, StateError>
アカウントの状態。
addresses のうち、あるものだけを渡した順に。全部を同じ高さで読むSource§fn mosaics(
&self,
ids: &[u64],
at: Option<u64>,
) -> Result<Vec<MosaicStateJson>, StateError>
fn mosaics( &self, ids: &[u64], at: Option<u64>, ) -> Result<Vec<MosaicStateJson>, StateError>
モザイクの定義の状態。
ids のうち、あるものだけを渡した順に。全部を同じ高さで読むSource§fn multisigs(
&self,
addresses: &[Address],
at: Option<u64>,
) -> Result<Vec<MultisigJson>, StateError>
fn multisigs( &self, addresses: &[Address], at: Option<u64>, ) -> Result<Vec<MultisigJson>, StateError>
マルチシグの状態。
addresses のうち、あるものだけを渡した順に。全部を同じ高さで読むSource§fn lock_or_restriction_states(
&self,
cache: SubCache,
keys: &[Vec<u8>],
at: Option<u64>,
) -> Result<KeyedStates, StateError>
fn lock_or_restriction_states( &self, cache: SubCache, keys: &[Vec<u8>], at: Option<u64>, ) -> Result<KeyedStates, StateError>
ロックか制限(
cache が SubCache::HashLockInfo、SubCache::SecretLockInfo、
SubCache::AccountRestriction、SubCache::MosaicRestriction)の状態を、catapult の状態のバイト列
(版の番号から)で。keys(木のキーのもと)のうち、あるものだけを、キーと組で渡した順に。全部を同じ高さで読む。
ロックは履歴の最後のもので、使ったものや期限を過ぎたものも、状態に残っていれば返す(catapult の REST と同じ)Source§fn multisig_graph(
&self,
address: &Address,
at: Option<u64>,
) -> Result<Option<Vec<MultisigGraphLevel>>, StateError>
fn multisig_graph( &self, address: &Address, at: Option<u64>, ) -> Result<Option<Vec<MultisigGraphLevel>>, StateError>
Source§fn namespace(
&self,
id: u64,
at: Option<u64>,
) -> Result<Option<NamespaceInfo>, StateError>
fn namespace( &self, id: u64, at: Option<u64>, ) -> Result<Option<NamespaceInfo>, StateError>
ネームスペース(ルートか子)の状態。なければ
None。期限(猶予を含む)が過ぎても状態に残っていれば返し、
active が false になる(catapult の REST と同じ)Source§fn metadata(
&self,
composite_hash: &Hash256,
at: Option<u64>,
) -> Result<Option<MetadataEntryJson>, StateError>
fn metadata( &self, composite_hash: &Hash256, at: Option<u64>, ) -> Result<Option<MetadataEntryJson>, StateError>
メタデータの状態。
composite_hash は1件を指すハッシュ。なければ NoneSource§fn search_metadata(
&self,
filter: &MetadataFilter,
page: PageRequest,
after: Option<&MetadataPosition>,
at: Option<u64>,
) -> Result<Option<Vec<MetadataEntryJson>>, StateError>
fn search_metadata( &self, filter: &MetadataFilter, page: PageRequest, after: Option<&MetadataPosition>, at: Option<u64>, ) -> Result<Option<Vec<MetadataEntryJson>>, StateError>
メタデータを
filter で絞り、page の分を返す。after があれば、並びでその位置より後から。
at なら、その高さにあったものとその高さの値。
検索表を作っていなければ(at なら、昔の高さの分も作っていなければ)NoneSource§fn search_namespaces(
&self,
filter: &NamespaceFilter,
page: PageRequest,
after: Option<&[u8]>,
at: Option<u64>,
) -> Result<Option<Vec<(String, NamespaceInfo)>>, StateError>
fn search_namespaces( &self, filter: &NamespaceFilter, page: PageRequest, after: Option<&[u8]>, at: Option<u64>, ) -> Result<Option<Vec<(String, NamespaceInfo)>>, StateError>
ネームスペースを
filter で絞り、page の分を、位置(検索表のキーの16進)と組で返す。after があれば、
並びでその位置(前に返した位置のバイト列)より後から。at なら、その高さにあったものとその高さの状態。
検索表を作っていなければ(at なら、昔の高さの分も作っていなければ)NoneSource§fn namespace_names(
&self,
ids: &[u64],
) -> Result<Option<Vec<NamespaceNameJson>>, String>
fn namespace_names( &self, ids: &[u64], ) -> Result<Option<Vec<NamespaceNameJson>>, String>
ネームスペースの名前(自分の部分)と親の ID(ルートは
None)。ids と、その親を全部。登録を見ていないものは
返さない。名前の表を作っていなければ NoneSource§fn alias_names(
&self,
target: AliasTarget,
) -> Result<Option<Vec<String>>, String>
fn alias_names( &self, target: AliasTarget, ) -> Result<Option<Vec<String>>, String>
target を別名にしている、今有効なネームスペースの名前(ルートからつないだもの)。名前の表を作っていなければ NoneSource§fn state_path(
&self,
cache: SubCache,
key: &Hash256,
at: Option<u64>,
) -> Result<MerkleStateInfo, StateError>
fn state_path( &self, cache: SubCache, key: &Hash256, at: Option<u64>, ) -> Result<MerkleStateInfo, StateError>
状態の木
cache の、根から key の葉への道。ないことを示す道もあるSource§fn block(&self, height: u64) -> Result<Option<BlockInfo>, String>
fn block(&self, height: u64) -> Result<Option<BlockInfo>, String>
height のブロック。なければ(まだないか、刈り込んだか、その高さの根がもうなければ)NoneSource§fn transaction_status(
&self,
hash: &Hash256,
) -> Result<Option<TransactionStatus>, String>
fn transaction_status( &self, hash: &Hash256, ) -> Result<Option<TransactionStatus>, String>
トランザクションの行方。知らなければ
NoneSource§fn search_transactions(
&self,
filter: &TransactionFilter,
page: PageRequest,
after: Option<(u64, u32, u16)>,
) -> Result<Option<Vec<TransactionInfo>>, String>
fn search_transactions( &self, filter: &TransactionFilter, page: PageRequest, after: Option<(u64, u32, u16)>, ) -> Result<Option<Vec<TransactionInfo>>, String>
承認されたトランザクションを
filter で絞り、page の分を返す。after があれば、並び(高さとブロックの中の
番号の順)でその位置より後から。アドレス、署名者、宛先で絞るのに要る索引(storage.search の
Transactions)を作っていなければ None。それらで絞らなければ、索引がなくてもしまってあるブロックを順に読むSource§fn confirmed_transaction(
&self,
hash: &Hash256,
) -> Result<Option<TransactionInfo>, String>
fn confirmed_transaction( &self, hash: &Hash256, ) -> Result<Option<TransactionInfo>, String>
承認されたトランザクション。知らなければ
NoneSource§fn transaction_merkle(
&self,
height: u64,
hash: &Hash256,
) -> Result<Option<MerkleProofInfo>, String>
fn transaction_merkle( &self, height: u64, hash: &Hash256, ) -> Result<Option<MerkleProofInfo>, String>
高さ
height のブロックの TransactionsHash への、hash のトランザクションの経路。なければ NoneSource§fn transaction_fees(&self) -> Result<TransactionFeesJson, String>
fn transaction_fees(&self) -> Result<TransactionFeesJson, String>
直近のブロックの手数料の倍率と、ノードが受け付ける下限
Source§fn partial_transaction(
&self,
hash: &Hash256,
) -> Result<Option<TransactionInfo>, String>
fn partial_transaction( &self, hash: &Hash256, ) -> Result<Option<TransactionInfo>, String>
連署を待つアグリゲートボンデッド(集まった連署付き)。知らなければ
NoneSource§fn partial_transactions(
&self,
filter: &PartialFilter,
) -> Result<Vec<TransactionInfo>, String>
fn partial_transactions( &self, filter: &PartialFilter, ) -> Result<Vec<TransactionInfo>, String>
連署を待つものの一覧。
filter に合うものを、期限の早い順にSource§fn finalization_proof(&self, epoch: u32) -> Result<Option<Vec<u8>>, String>
fn finalization_proof(&self, epoch: u32) -> Result<Option<Vec<u8>>, String>
エポック
epoch でしまった最後のファイナライズの証明(ノードが送り合うバイナリの形)。なければ NoneSource§fn unconfirmed_transaction(
&self,
hash: &Hash256,
) -> Result<Option<TransactionInfo>, String>
fn unconfirmed_transaction( &self, hash: &Hash256, ) -> Result<Option<TransactionInfo>, String>
未承認のもの。知らなければ
NoneSource§fn unconfirmed_transactions(
&self,
filter: &PartialFilter,
embedded: bool,
) -> Result<Vec<TransactionInfo>, String>
fn unconfirmed_transactions( &self, filter: &PartialFilter, embedded: bool, ) -> Result<Vec<TransactionInfo>, String>
未承認のものの一覧。
filter に合うものを、受け付けた順に。embedded なら、アグリゲートのすぐあとに、中のものを
1件ずつ続ける(catapult と同じく、address で絞るときは中のものは返さない)Source§fn network(&self) -> NetworkIdentifier
fn network(&self) -> NetworkIdentifier
公開鍵からアドレスを出すときのネットワーク
Auto Trait Implementations§
impl !RefUnwindSafe for DbReader
impl !UnwindSafe for DbReader
impl Freeze for DbReader
impl Send for DbReader
impl Sync for DbReader
impl Unpin for DbReader
impl UnsafeUnpin for DbReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more