@orbinum/sdk 0.7.3 → 0.7.5

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.
package/dist/index.d.mts CHANGED
@@ -699,6 +699,24 @@ type ShieldedAddressEvent = ({
699
699
  } & Unshield) | ({
700
700
  kind: 'transfer';
701
701
  } & PrivateTransferTimestamp);
702
+ /** A validator node indexed from pallet-validator-set events. */
703
+ interface IndexedValidator {
704
+ account: string;
705
+ /** Current lifecycle status of the validator. */
706
+ status: 'pending' | 'approved' | 'rejected' | 'removed';
707
+ /** Reserved bond amount as decimal string (bigint-safe). Null if no bond was reserved. */
708
+ bondAmount: string | null;
709
+ requestedAtBlock: number | null;
710
+ approvedAtBlock: number | null;
711
+ removedAtBlock: number | null;
712
+ timestampMs: number | null;
713
+ }
714
+ /** A session rotation event indexed from pallet-session NewSession events. */
715
+ interface IndexedSession {
716
+ sessionIndex: number;
717
+ blockNumber: number;
718
+ timestampMs: number | null;
719
+ }
702
720
  /**
703
721
  * Lightweight hint returned by the stealth scan endpoint.
704
722
  * Contains only the fields required for a wallet to:
@@ -869,6 +887,19 @@ declare class IndexerClient {
869
887
  }): Promise<PaginatedResult<RegisteredAsset>>;
870
888
  /** Returns a single registered asset by its ID, or null if not found. */
871
889
  getRegisteredAsset(assetId: string): Promise<RegisteredAsset | null>;
890
+ /** Returns a paginated list of validators. Filter by lifecycle status with `status`. */
891
+ getValidators(params?: {
892
+ page?: number;
893
+ limit?: number;
894
+ status?: 'pending' | 'approved' | 'rejected' | 'removed';
895
+ }): Promise<PaginatedResult<IndexedValidator>>;
896
+ /** Returns a single validator by account address, or null if not found. */
897
+ getValidator(account: string): Promise<IndexedValidator | null>;
898
+ /** Returns a paginated list of session rotations, ordered by most recent first. */
899
+ getSessions(params?: {
900
+ page?: number;
901
+ limit?: number;
902
+ }): Promise<PaginatedResult<IndexedSession>>;
872
903
  /** Returns aggregated indexer statistics. */
873
904
  getStats(): Promise<IndexerStats>;
874
905
  /** Returns true if the indexer health endpoint responds OK. */
@@ -4363,4 +4394,4 @@ interface ExtrinsicFailedData {
4363
4394
  dispatch_info: DispatchInfo;
4364
4395
  }
4365
4396
 
4366
- export { type AccountListing, type AccountMappedData, type AccountMappedEvent, type AccountMappingCall, type AccountMappingEvent, AccountMappingModule, AccountMappingPrecompile, type AccountMetadata, type AccountUnmappedEvent, type ActiveVersionSetEvent, type AddChainLinkArgs, type AddChainLinkParams, type AddSupportedChainArgs, type AliasFullIdentity, type AliasInfo, type AliasListedForSaleEvent, type AliasOnSaleData, type AliasRegisteredData, type AliasRegisteredEvent, type AliasReleasedEvent, type AliasSaleCancelledEvent, type AliasSoldData, type AliasSoldEvent, type AliasTransferredData, type AliasTransferredEvent, type AssetRegisteredEvent, type AssetUnverifiedEvent, type AssetVerifiedEvent, BABYJUB_SUBORDER, BN254_R, type BatchRegisterVerificationKeysArgs, type BatchVerificationKeysRegisteredEvent, type BlockInfo, type BuyAliasArgs, type Bytes32, type ChainInfo, type ChainLink, type ChainLinkAddedEvent, type ChainLinkRemovedEvent, CircuitId, CircuitId as CircuitIdType, type ClaimShieldedFeesParams, type ClientProviderConfig, type CommitmentsInsertedEvent, type CommitmentsInsertedEventData, type ConnectionStatus, CryptoPrecompiles, type DecodedAddChainLinkArgs, type DecodedBatchArgs, type DecodedDispatchAsPrivateLinkArgs, type DecodedEthereumTransactArgs, type DecodedEvmCallArgs, type DecodedPrecompile, type DecodedPrivateTransferArgs, type DecodedPutAliasForSaleArgs, type DecodedRegisterAliasArgs, type DecodedRemarkArgs, type DecodedRevealPrivateLinkArgs, type DecodedSetAccountMetadataArgs, type DecodedShieldArgs, type DecodedShieldBatchArgs, type DecodedShieldBatchOperation, type DecodedSudoArgs, type DecodedTransferAllArgs, type DecodedTransferArgs, type DecodedTransferKeepAliveArgs, type DecodedUnshieldArgs, type DecryptedMemo, type DispatchAsLinkedAccountArgs, type DispatchAsLinkedParams, type DispatchAsPrivateLinkArgs, type DispatchError, type DispatchInfo, type DynamicBuilder, ENCRYPTED_MEMO_SIZE, EncryptedMemo, type EncryptedNoteRecord, type EndowedEventData, type EthereumExecutedData, type EventData, type EventPhase, type EventRecord, type EvmAddressInfo, type EvmBlock, EvmClient, type EvmExecutedData, type EvmExitReason, EvmExplorer, type EvmLog, type EvmSigner, type EvmTransaction, type EvmTxRequest, type EvmTxSummary, type ExtrinsicDecoder, type ExtrinsicFailedData, type ExtrinsicSuccessData, type FeeClaimProofInputs, type FormatOptions, type IndexedBlock, type IndexedEvmTx, type IndexedExtrinsic, IndexerClient, type IndexerClientConfig, type IndexerStats, KNOWN_PRECOMPILES, type KnownPrecompileInfo, type ListingInfo, type MerkleRoot, type MerkleRootUpdatedData, type MerkleRootUpdatedEvent, type MerkleTreeInfo, type MetadataUpdatedEvent, NoteBuilder, type NoteDisclosure, type NoteInput, type NoteStatusUpdate, type NullifierStatusResult, type NullifiersSpentEvent, type NullifiersSpentEventData, OrbinumClient, type OrbinumClientConfig, OrbinumClientProvider, PRECOMPILE_ADDR, type PaginatedResult, PrivacyKeyManager, type PrivacyMerkleProof, PrivacyModule, type PrivateChainLinkAddedEvent, type PrivateChainLinkRemovedEvent, type PrivateChainLinkRevealedEvent, type PrivateLink, type PrivateLinkDispatchExecutedEvent, type PrivateTransferArgs, type PrivateTransferInput, type PrivateTransferOutput, type PrivateTransferParams, type PrivateTransferProofInputs, type PrivateTransferTimestamp, type ProofVerificationFailedEvent, type ProofVerifiedEvent, type ProxyCallExecutedEvent, type PutAliasOnSaleArgs, type PutOnSaleParams, type RawBlock, type RawBlockHeader, type RawTransferInput, type RawTransferOutput, type RegisterAliasArgs, type RegisterAssetArgs, type RegisterPrivateLinkArgs, type RegisterVerificationKeyArgs, type RegisteredAsset, type RelayFeeEvent, type RelayFeeSummaryEntry, type Relayer, type RelayerInfo, RelayerStatusModule, type RemoveChainLinkArgs, type RemovePrivateLinkArgs, type RemoveSupportedChainArgs, type RemoveVerificationKeyArgs, type ReservedEventData, type ResolvedAlias, type RevealPrivateLinkArgs, type RpcV2MerkleProof, type RpcV2NullifierStatus, type RpcV2PoolAssetBalance, type RpcV2PoolStats, SLIP0044_NAMESPACE, type ScanCommitment, type SetAccountMetadataArgs, type SetActiveVersionArgs, type SetMetadataParams, type ShieldArgs, type ShieldBatchArgs, type ShieldBatchItem, type ShieldBatchParams, type ShieldOperation, type ShieldParams, type ShieldedAddressEvent, type ShieldedCommitment, type ShieldedEvent, type ShieldedEventData, type ShieldedPoolCall, type ShieldedPoolEvent, ShieldedPoolModule, ShieldedPoolPrecompile, SignatureScheme, type SpentNullifier, type StatusChangeEvent, type StatusListener, type StealthScanHint, SubstrateClient, type SupportedChain, type SupportedChainAddedEvent, type SupportedChainRemovedEvent, type SystemHealth, type TokenInfo, type TokenTransfer, type TransferAliasArgs, type TransferEventData, type TransferInputNote, type TransferOutputNote, type TxResult, type UnsafeTxOptions, type Unshield, type UnshieldArgs, type UnshieldParams, type UnshieldProofInputs, type UnshieldedEvent, type UnshieldedEventData, type UnverifyAssetArgs, VaultLockedError, type VerificationKeyRegisteredEvent, type VerificationKeyRemovedEvent, type VerifyAssetArgs, type VerifyProofArgs, type VkEntry, type ZkNote, type ZkVerifierCall, type ZkVerifierCircuitVersionInfo, type ZkVerifierEvent, type ZkVerifierHistoricalVersion, ZkVerifierModule, type ZkVerifierVersionStats, type ZkVerifierVkHash, accountIdHexToSs58, addressToAccountIdHex, applyNoteStatus, bigintTo32Be, bigintTo32Le, bigintTo32LeArr, buildDummyTransferInput, bytesToBigintLE, computeNullifier, computePathIndices, createNoteDisclosureKey, decodeNoteDisclosureKey, decodePrecompileCalldata, decryptJson, decryptNoteRecord, deriveMasterKeyBytes, deriveOwnerPk, deriveSpendingKeyFromSignature, deriveSpendingKeyMessage, deriveStealthOwnerPk, deriveStealthSk, deriveVaultKey, deriveViewingPublicKey, deriveViewingSecretKey, encryptJson, encryptNote, ensureHexPrefix, evmAddressToAccountId, evmToImplicitSubstrate, evmToMappedAccountHex, evmToSubstrate, formatBalance, formatORB, fromBase64, fromHex, generateFeeClaimProof, generateTransferProof, generateUnshieldProof, getPrecompileLabel, hexToBigint, hexToNumber, implicitSubstrateToEvm, isEvmAddress, isImplicitEvmAccount, isSs58, isSubstrateAddress, isUnifiedAddress, leHexToBigint, mapExtrinsicArgs, mapZkEventData, normalizeEvmAddress, randomBlinding, recoverOwnerPkPoint, selectNotes, shortHash, substrateSs58ToAccountIdHex, substrateToEvm, toBase64, toHex, toTxResult, truncateMiddle, tryDecryptNote, tryDecryptNoteVerbose, vaultReplacer, vaultReviver };
4397
+ export { type AccountListing, type AccountMappedData, type AccountMappedEvent, type AccountMappingCall, type AccountMappingEvent, AccountMappingModule, AccountMappingPrecompile, type AccountMetadata, type AccountUnmappedEvent, type ActiveVersionSetEvent, type AddChainLinkArgs, type AddChainLinkParams, type AddSupportedChainArgs, type AliasFullIdentity, type AliasInfo, type AliasListedForSaleEvent, type AliasOnSaleData, type AliasRegisteredData, type AliasRegisteredEvent, type AliasReleasedEvent, type AliasSaleCancelledEvent, type AliasSoldData, type AliasSoldEvent, type AliasTransferredData, type AliasTransferredEvent, type AssetRegisteredEvent, type AssetUnverifiedEvent, type AssetVerifiedEvent, BABYJUB_SUBORDER, BN254_R, type BatchRegisterVerificationKeysArgs, type BatchVerificationKeysRegisteredEvent, type BlockInfo, type BuyAliasArgs, type Bytes32, type ChainInfo, type ChainLink, type ChainLinkAddedEvent, type ChainLinkRemovedEvent, CircuitId, CircuitId as CircuitIdType, type ClaimShieldedFeesParams, type ClientProviderConfig, type CommitmentsInsertedEvent, type CommitmentsInsertedEventData, type ConnectionStatus, CryptoPrecompiles, type DecodedAddChainLinkArgs, type DecodedBatchArgs, type DecodedDispatchAsPrivateLinkArgs, type DecodedEthereumTransactArgs, type DecodedEvmCallArgs, type DecodedPrecompile, type DecodedPrivateTransferArgs, type DecodedPutAliasForSaleArgs, type DecodedRegisterAliasArgs, type DecodedRemarkArgs, type DecodedRevealPrivateLinkArgs, type DecodedSetAccountMetadataArgs, type DecodedShieldArgs, type DecodedShieldBatchArgs, type DecodedShieldBatchOperation, type DecodedSudoArgs, type DecodedTransferAllArgs, type DecodedTransferArgs, type DecodedTransferKeepAliveArgs, type DecodedUnshieldArgs, type DecryptedMemo, type DispatchAsLinkedAccountArgs, type DispatchAsLinkedParams, type DispatchAsPrivateLinkArgs, type DispatchError, type DispatchInfo, type DynamicBuilder, ENCRYPTED_MEMO_SIZE, EncryptedMemo, type EncryptedNoteRecord, type EndowedEventData, type EthereumExecutedData, type EventData, type EventPhase, type EventRecord, type EvmAddressInfo, type EvmBlock, EvmClient, type EvmExecutedData, type EvmExitReason, EvmExplorer, type EvmLog, type EvmSigner, type EvmTransaction, type EvmTxRequest, type EvmTxSummary, type ExtrinsicDecoder, type ExtrinsicFailedData, type ExtrinsicSuccessData, type FeeClaimProofInputs, type FormatOptions, type IndexedBlock, type IndexedEvmTx, type IndexedExtrinsic, type IndexedSession, type IndexedValidator, IndexerClient, type IndexerClientConfig, type IndexerStats, KNOWN_PRECOMPILES, type KnownPrecompileInfo, type ListingInfo, type MerkleRoot, type MerkleRootUpdatedData, type MerkleRootUpdatedEvent, type MerkleTreeInfo, type MetadataUpdatedEvent, NoteBuilder, type NoteDisclosure, type NoteInput, type NoteStatusUpdate, type NullifierStatusResult, type NullifiersSpentEvent, type NullifiersSpentEventData, OrbinumClient, type OrbinumClientConfig, OrbinumClientProvider, PRECOMPILE_ADDR, type PaginatedResult, PrivacyKeyManager, type PrivacyMerkleProof, PrivacyModule, type PrivateChainLinkAddedEvent, type PrivateChainLinkRemovedEvent, type PrivateChainLinkRevealedEvent, type PrivateLink, type PrivateLinkDispatchExecutedEvent, type PrivateTransferArgs, type PrivateTransferInput, type PrivateTransferOutput, type PrivateTransferParams, type PrivateTransferProofInputs, type PrivateTransferTimestamp, type ProofVerificationFailedEvent, type ProofVerifiedEvent, type ProxyCallExecutedEvent, type PutAliasOnSaleArgs, type PutOnSaleParams, type RawBlock, type RawBlockHeader, type RawTransferInput, type RawTransferOutput, type RegisterAliasArgs, type RegisterAssetArgs, type RegisterPrivateLinkArgs, type RegisterVerificationKeyArgs, type RegisteredAsset, type RelayFeeEvent, type RelayFeeSummaryEntry, type Relayer, type RelayerInfo, RelayerStatusModule, type RemoveChainLinkArgs, type RemovePrivateLinkArgs, type RemoveSupportedChainArgs, type RemoveVerificationKeyArgs, type ReservedEventData, type ResolvedAlias, type RevealPrivateLinkArgs, type RpcV2MerkleProof, type RpcV2NullifierStatus, type RpcV2PoolAssetBalance, type RpcV2PoolStats, SLIP0044_NAMESPACE, type ScanCommitment, type SetAccountMetadataArgs, type SetActiveVersionArgs, type SetMetadataParams, type ShieldArgs, type ShieldBatchArgs, type ShieldBatchItem, type ShieldBatchParams, type ShieldOperation, type ShieldParams, type ShieldedAddressEvent, type ShieldedCommitment, type ShieldedEvent, type ShieldedEventData, type ShieldedPoolCall, type ShieldedPoolEvent, ShieldedPoolModule, ShieldedPoolPrecompile, SignatureScheme, type SpentNullifier, type StatusChangeEvent, type StatusListener, type StealthScanHint, SubstrateClient, type SupportedChain, type SupportedChainAddedEvent, type SupportedChainRemovedEvent, type SystemHealth, type TokenInfo, type TokenTransfer, type TransferAliasArgs, type TransferEventData, type TransferInputNote, type TransferOutputNote, type TxResult, type UnsafeTxOptions, type Unshield, type UnshieldArgs, type UnshieldParams, type UnshieldProofInputs, type UnshieldedEvent, type UnshieldedEventData, type UnverifyAssetArgs, VaultLockedError, type VerificationKeyRegisteredEvent, type VerificationKeyRemovedEvent, type VerifyAssetArgs, type VerifyProofArgs, type VkEntry, type ZkNote, type ZkVerifierCall, type ZkVerifierCircuitVersionInfo, type ZkVerifierEvent, type ZkVerifierHistoricalVersion, ZkVerifierModule, type ZkVerifierVersionStats, type ZkVerifierVkHash, accountIdHexToSs58, addressToAccountIdHex, applyNoteStatus, bigintTo32Be, bigintTo32Le, bigintTo32LeArr, buildDummyTransferInput, bytesToBigintLE, computeNullifier, computePathIndices, createNoteDisclosureKey, decodeNoteDisclosureKey, decodePrecompileCalldata, decryptJson, decryptNoteRecord, deriveMasterKeyBytes, deriveOwnerPk, deriveSpendingKeyFromSignature, deriveSpendingKeyMessage, deriveStealthOwnerPk, deriveStealthSk, deriveVaultKey, deriveViewingPublicKey, deriveViewingSecretKey, encryptJson, encryptNote, ensureHexPrefix, evmAddressToAccountId, evmToImplicitSubstrate, evmToMappedAccountHex, evmToSubstrate, formatBalance, formatORB, fromBase64, fromHex, generateFeeClaimProof, generateTransferProof, generateUnshieldProof, getPrecompileLabel, hexToBigint, hexToNumber, implicitSubstrateToEvm, isEvmAddress, isImplicitEvmAccount, isSs58, isSubstrateAddress, isUnifiedAddress, leHexToBigint, mapExtrinsicArgs, mapZkEventData, normalizeEvmAddress, randomBlinding, recoverOwnerPkPoint, selectNotes, shortHash, substrateSs58ToAccountIdHex, substrateToEvm, toBase64, toHex, toTxResult, truncateMiddle, tryDecryptNote, tryDecryptNoteVerbose, vaultReplacer, vaultReviver };
package/dist/index.d.ts CHANGED
@@ -699,6 +699,24 @@ type ShieldedAddressEvent = ({
699
699
  } & Unshield) | ({
700
700
  kind: 'transfer';
701
701
  } & PrivateTransferTimestamp);
702
+ /** A validator node indexed from pallet-validator-set events. */
703
+ interface IndexedValidator {
704
+ account: string;
705
+ /** Current lifecycle status of the validator. */
706
+ status: 'pending' | 'approved' | 'rejected' | 'removed';
707
+ /** Reserved bond amount as decimal string (bigint-safe). Null if no bond was reserved. */
708
+ bondAmount: string | null;
709
+ requestedAtBlock: number | null;
710
+ approvedAtBlock: number | null;
711
+ removedAtBlock: number | null;
712
+ timestampMs: number | null;
713
+ }
714
+ /** A session rotation event indexed from pallet-session NewSession events. */
715
+ interface IndexedSession {
716
+ sessionIndex: number;
717
+ blockNumber: number;
718
+ timestampMs: number | null;
719
+ }
702
720
  /**
703
721
  * Lightweight hint returned by the stealth scan endpoint.
704
722
  * Contains only the fields required for a wallet to:
@@ -869,6 +887,19 @@ declare class IndexerClient {
869
887
  }): Promise<PaginatedResult<RegisteredAsset>>;
870
888
  /** Returns a single registered asset by its ID, or null if not found. */
871
889
  getRegisteredAsset(assetId: string): Promise<RegisteredAsset | null>;
890
+ /** Returns a paginated list of validators. Filter by lifecycle status with `status`. */
891
+ getValidators(params?: {
892
+ page?: number;
893
+ limit?: number;
894
+ status?: 'pending' | 'approved' | 'rejected' | 'removed';
895
+ }): Promise<PaginatedResult<IndexedValidator>>;
896
+ /** Returns a single validator by account address, or null if not found. */
897
+ getValidator(account: string): Promise<IndexedValidator | null>;
898
+ /** Returns a paginated list of session rotations, ordered by most recent first. */
899
+ getSessions(params?: {
900
+ page?: number;
901
+ limit?: number;
902
+ }): Promise<PaginatedResult<IndexedSession>>;
872
903
  /** Returns aggregated indexer statistics. */
873
904
  getStats(): Promise<IndexerStats>;
874
905
  /** Returns true if the indexer health endpoint responds OK. */
@@ -4363,4 +4394,4 @@ interface ExtrinsicFailedData {
4363
4394
  dispatch_info: DispatchInfo;
4364
4395
  }
4365
4396
 
4366
- export { type AccountListing, type AccountMappedData, type AccountMappedEvent, type AccountMappingCall, type AccountMappingEvent, AccountMappingModule, AccountMappingPrecompile, type AccountMetadata, type AccountUnmappedEvent, type ActiveVersionSetEvent, type AddChainLinkArgs, type AddChainLinkParams, type AddSupportedChainArgs, type AliasFullIdentity, type AliasInfo, type AliasListedForSaleEvent, type AliasOnSaleData, type AliasRegisteredData, type AliasRegisteredEvent, type AliasReleasedEvent, type AliasSaleCancelledEvent, type AliasSoldData, type AliasSoldEvent, type AliasTransferredData, type AliasTransferredEvent, type AssetRegisteredEvent, type AssetUnverifiedEvent, type AssetVerifiedEvent, BABYJUB_SUBORDER, BN254_R, type BatchRegisterVerificationKeysArgs, type BatchVerificationKeysRegisteredEvent, type BlockInfo, type BuyAliasArgs, type Bytes32, type ChainInfo, type ChainLink, type ChainLinkAddedEvent, type ChainLinkRemovedEvent, CircuitId, CircuitId as CircuitIdType, type ClaimShieldedFeesParams, type ClientProviderConfig, type CommitmentsInsertedEvent, type CommitmentsInsertedEventData, type ConnectionStatus, CryptoPrecompiles, type DecodedAddChainLinkArgs, type DecodedBatchArgs, type DecodedDispatchAsPrivateLinkArgs, type DecodedEthereumTransactArgs, type DecodedEvmCallArgs, type DecodedPrecompile, type DecodedPrivateTransferArgs, type DecodedPutAliasForSaleArgs, type DecodedRegisterAliasArgs, type DecodedRemarkArgs, type DecodedRevealPrivateLinkArgs, type DecodedSetAccountMetadataArgs, type DecodedShieldArgs, type DecodedShieldBatchArgs, type DecodedShieldBatchOperation, type DecodedSudoArgs, type DecodedTransferAllArgs, type DecodedTransferArgs, type DecodedTransferKeepAliveArgs, type DecodedUnshieldArgs, type DecryptedMemo, type DispatchAsLinkedAccountArgs, type DispatchAsLinkedParams, type DispatchAsPrivateLinkArgs, type DispatchError, type DispatchInfo, type DynamicBuilder, ENCRYPTED_MEMO_SIZE, EncryptedMemo, type EncryptedNoteRecord, type EndowedEventData, type EthereumExecutedData, type EventData, type EventPhase, type EventRecord, type EvmAddressInfo, type EvmBlock, EvmClient, type EvmExecutedData, type EvmExitReason, EvmExplorer, type EvmLog, type EvmSigner, type EvmTransaction, type EvmTxRequest, type EvmTxSummary, type ExtrinsicDecoder, type ExtrinsicFailedData, type ExtrinsicSuccessData, type FeeClaimProofInputs, type FormatOptions, type IndexedBlock, type IndexedEvmTx, type IndexedExtrinsic, IndexerClient, type IndexerClientConfig, type IndexerStats, KNOWN_PRECOMPILES, type KnownPrecompileInfo, type ListingInfo, type MerkleRoot, type MerkleRootUpdatedData, type MerkleRootUpdatedEvent, type MerkleTreeInfo, type MetadataUpdatedEvent, NoteBuilder, type NoteDisclosure, type NoteInput, type NoteStatusUpdate, type NullifierStatusResult, type NullifiersSpentEvent, type NullifiersSpentEventData, OrbinumClient, type OrbinumClientConfig, OrbinumClientProvider, PRECOMPILE_ADDR, type PaginatedResult, PrivacyKeyManager, type PrivacyMerkleProof, PrivacyModule, type PrivateChainLinkAddedEvent, type PrivateChainLinkRemovedEvent, type PrivateChainLinkRevealedEvent, type PrivateLink, type PrivateLinkDispatchExecutedEvent, type PrivateTransferArgs, type PrivateTransferInput, type PrivateTransferOutput, type PrivateTransferParams, type PrivateTransferProofInputs, type PrivateTransferTimestamp, type ProofVerificationFailedEvent, type ProofVerifiedEvent, type ProxyCallExecutedEvent, type PutAliasOnSaleArgs, type PutOnSaleParams, type RawBlock, type RawBlockHeader, type RawTransferInput, type RawTransferOutput, type RegisterAliasArgs, type RegisterAssetArgs, type RegisterPrivateLinkArgs, type RegisterVerificationKeyArgs, type RegisteredAsset, type RelayFeeEvent, type RelayFeeSummaryEntry, type Relayer, type RelayerInfo, RelayerStatusModule, type RemoveChainLinkArgs, type RemovePrivateLinkArgs, type RemoveSupportedChainArgs, type RemoveVerificationKeyArgs, type ReservedEventData, type ResolvedAlias, type RevealPrivateLinkArgs, type RpcV2MerkleProof, type RpcV2NullifierStatus, type RpcV2PoolAssetBalance, type RpcV2PoolStats, SLIP0044_NAMESPACE, type ScanCommitment, type SetAccountMetadataArgs, type SetActiveVersionArgs, type SetMetadataParams, type ShieldArgs, type ShieldBatchArgs, type ShieldBatchItem, type ShieldBatchParams, type ShieldOperation, type ShieldParams, type ShieldedAddressEvent, type ShieldedCommitment, type ShieldedEvent, type ShieldedEventData, type ShieldedPoolCall, type ShieldedPoolEvent, ShieldedPoolModule, ShieldedPoolPrecompile, SignatureScheme, type SpentNullifier, type StatusChangeEvent, type StatusListener, type StealthScanHint, SubstrateClient, type SupportedChain, type SupportedChainAddedEvent, type SupportedChainRemovedEvent, type SystemHealth, type TokenInfo, type TokenTransfer, type TransferAliasArgs, type TransferEventData, type TransferInputNote, type TransferOutputNote, type TxResult, type UnsafeTxOptions, type Unshield, type UnshieldArgs, type UnshieldParams, type UnshieldProofInputs, type UnshieldedEvent, type UnshieldedEventData, type UnverifyAssetArgs, VaultLockedError, type VerificationKeyRegisteredEvent, type VerificationKeyRemovedEvent, type VerifyAssetArgs, type VerifyProofArgs, type VkEntry, type ZkNote, type ZkVerifierCall, type ZkVerifierCircuitVersionInfo, type ZkVerifierEvent, type ZkVerifierHistoricalVersion, ZkVerifierModule, type ZkVerifierVersionStats, type ZkVerifierVkHash, accountIdHexToSs58, addressToAccountIdHex, applyNoteStatus, bigintTo32Be, bigintTo32Le, bigintTo32LeArr, buildDummyTransferInput, bytesToBigintLE, computeNullifier, computePathIndices, createNoteDisclosureKey, decodeNoteDisclosureKey, decodePrecompileCalldata, decryptJson, decryptNoteRecord, deriveMasterKeyBytes, deriveOwnerPk, deriveSpendingKeyFromSignature, deriveSpendingKeyMessage, deriveStealthOwnerPk, deriveStealthSk, deriveVaultKey, deriveViewingPublicKey, deriveViewingSecretKey, encryptJson, encryptNote, ensureHexPrefix, evmAddressToAccountId, evmToImplicitSubstrate, evmToMappedAccountHex, evmToSubstrate, formatBalance, formatORB, fromBase64, fromHex, generateFeeClaimProof, generateTransferProof, generateUnshieldProof, getPrecompileLabel, hexToBigint, hexToNumber, implicitSubstrateToEvm, isEvmAddress, isImplicitEvmAccount, isSs58, isSubstrateAddress, isUnifiedAddress, leHexToBigint, mapExtrinsicArgs, mapZkEventData, normalizeEvmAddress, randomBlinding, recoverOwnerPkPoint, selectNotes, shortHash, substrateSs58ToAccountIdHex, substrateToEvm, toBase64, toHex, toTxResult, truncateMiddle, tryDecryptNote, tryDecryptNoteVerbose, vaultReplacer, vaultReviver };
4397
+ export { type AccountListing, type AccountMappedData, type AccountMappedEvent, type AccountMappingCall, type AccountMappingEvent, AccountMappingModule, AccountMappingPrecompile, type AccountMetadata, type AccountUnmappedEvent, type ActiveVersionSetEvent, type AddChainLinkArgs, type AddChainLinkParams, type AddSupportedChainArgs, type AliasFullIdentity, type AliasInfo, type AliasListedForSaleEvent, type AliasOnSaleData, type AliasRegisteredData, type AliasRegisteredEvent, type AliasReleasedEvent, type AliasSaleCancelledEvent, type AliasSoldData, type AliasSoldEvent, type AliasTransferredData, type AliasTransferredEvent, type AssetRegisteredEvent, type AssetUnverifiedEvent, type AssetVerifiedEvent, BABYJUB_SUBORDER, BN254_R, type BatchRegisterVerificationKeysArgs, type BatchVerificationKeysRegisteredEvent, type BlockInfo, type BuyAliasArgs, type Bytes32, type ChainInfo, type ChainLink, type ChainLinkAddedEvent, type ChainLinkRemovedEvent, CircuitId, CircuitId as CircuitIdType, type ClaimShieldedFeesParams, type ClientProviderConfig, type CommitmentsInsertedEvent, type CommitmentsInsertedEventData, type ConnectionStatus, CryptoPrecompiles, type DecodedAddChainLinkArgs, type DecodedBatchArgs, type DecodedDispatchAsPrivateLinkArgs, type DecodedEthereumTransactArgs, type DecodedEvmCallArgs, type DecodedPrecompile, type DecodedPrivateTransferArgs, type DecodedPutAliasForSaleArgs, type DecodedRegisterAliasArgs, type DecodedRemarkArgs, type DecodedRevealPrivateLinkArgs, type DecodedSetAccountMetadataArgs, type DecodedShieldArgs, type DecodedShieldBatchArgs, type DecodedShieldBatchOperation, type DecodedSudoArgs, type DecodedTransferAllArgs, type DecodedTransferArgs, type DecodedTransferKeepAliveArgs, type DecodedUnshieldArgs, type DecryptedMemo, type DispatchAsLinkedAccountArgs, type DispatchAsLinkedParams, type DispatchAsPrivateLinkArgs, type DispatchError, type DispatchInfo, type DynamicBuilder, ENCRYPTED_MEMO_SIZE, EncryptedMemo, type EncryptedNoteRecord, type EndowedEventData, type EthereumExecutedData, type EventData, type EventPhase, type EventRecord, type EvmAddressInfo, type EvmBlock, EvmClient, type EvmExecutedData, type EvmExitReason, EvmExplorer, type EvmLog, type EvmSigner, type EvmTransaction, type EvmTxRequest, type EvmTxSummary, type ExtrinsicDecoder, type ExtrinsicFailedData, type ExtrinsicSuccessData, type FeeClaimProofInputs, type FormatOptions, type IndexedBlock, type IndexedEvmTx, type IndexedExtrinsic, type IndexedSession, type IndexedValidator, IndexerClient, type IndexerClientConfig, type IndexerStats, KNOWN_PRECOMPILES, type KnownPrecompileInfo, type ListingInfo, type MerkleRoot, type MerkleRootUpdatedData, type MerkleRootUpdatedEvent, type MerkleTreeInfo, type MetadataUpdatedEvent, NoteBuilder, type NoteDisclosure, type NoteInput, type NoteStatusUpdate, type NullifierStatusResult, type NullifiersSpentEvent, type NullifiersSpentEventData, OrbinumClient, type OrbinumClientConfig, OrbinumClientProvider, PRECOMPILE_ADDR, type PaginatedResult, PrivacyKeyManager, type PrivacyMerkleProof, PrivacyModule, type PrivateChainLinkAddedEvent, type PrivateChainLinkRemovedEvent, type PrivateChainLinkRevealedEvent, type PrivateLink, type PrivateLinkDispatchExecutedEvent, type PrivateTransferArgs, type PrivateTransferInput, type PrivateTransferOutput, type PrivateTransferParams, type PrivateTransferProofInputs, type PrivateTransferTimestamp, type ProofVerificationFailedEvent, type ProofVerifiedEvent, type ProxyCallExecutedEvent, type PutAliasOnSaleArgs, type PutOnSaleParams, type RawBlock, type RawBlockHeader, type RawTransferInput, type RawTransferOutput, type RegisterAliasArgs, type RegisterAssetArgs, type RegisterPrivateLinkArgs, type RegisterVerificationKeyArgs, type RegisteredAsset, type RelayFeeEvent, type RelayFeeSummaryEntry, type Relayer, type RelayerInfo, RelayerStatusModule, type RemoveChainLinkArgs, type RemovePrivateLinkArgs, type RemoveSupportedChainArgs, type RemoveVerificationKeyArgs, type ReservedEventData, type ResolvedAlias, type RevealPrivateLinkArgs, type RpcV2MerkleProof, type RpcV2NullifierStatus, type RpcV2PoolAssetBalance, type RpcV2PoolStats, SLIP0044_NAMESPACE, type ScanCommitment, type SetAccountMetadataArgs, type SetActiveVersionArgs, type SetMetadataParams, type ShieldArgs, type ShieldBatchArgs, type ShieldBatchItem, type ShieldBatchParams, type ShieldOperation, type ShieldParams, type ShieldedAddressEvent, type ShieldedCommitment, type ShieldedEvent, type ShieldedEventData, type ShieldedPoolCall, type ShieldedPoolEvent, ShieldedPoolModule, ShieldedPoolPrecompile, SignatureScheme, type SpentNullifier, type StatusChangeEvent, type StatusListener, type StealthScanHint, SubstrateClient, type SupportedChain, type SupportedChainAddedEvent, type SupportedChainRemovedEvent, type SystemHealth, type TokenInfo, type TokenTransfer, type TransferAliasArgs, type TransferEventData, type TransferInputNote, type TransferOutputNote, type TxResult, type UnsafeTxOptions, type Unshield, type UnshieldArgs, type UnshieldParams, type UnshieldProofInputs, type UnshieldedEvent, type UnshieldedEventData, type UnverifyAssetArgs, VaultLockedError, type VerificationKeyRegisteredEvent, type VerificationKeyRemovedEvent, type VerifyAssetArgs, type VerifyProofArgs, type VkEntry, type ZkNote, type ZkVerifierCall, type ZkVerifierCircuitVersionInfo, type ZkVerifierEvent, type ZkVerifierHistoricalVersion, ZkVerifierModule, type ZkVerifierVersionStats, type ZkVerifierVkHash, accountIdHexToSs58, addressToAccountIdHex, applyNoteStatus, bigintTo32Be, bigintTo32Le, bigintTo32LeArr, buildDummyTransferInput, bytesToBigintLE, computeNullifier, computePathIndices, createNoteDisclosureKey, decodeNoteDisclosureKey, decodePrecompileCalldata, decryptJson, decryptNoteRecord, deriveMasterKeyBytes, deriveOwnerPk, deriveSpendingKeyFromSignature, deriveSpendingKeyMessage, deriveStealthOwnerPk, deriveStealthSk, deriveVaultKey, deriveViewingPublicKey, deriveViewingSecretKey, encryptJson, encryptNote, ensureHexPrefix, evmAddressToAccountId, evmToImplicitSubstrate, evmToMappedAccountHex, evmToSubstrate, formatBalance, formatORB, fromBase64, fromHex, generateFeeClaimProof, generateTransferProof, generateUnshieldProof, getPrecompileLabel, hexToBigint, hexToNumber, implicitSubstrateToEvm, isEvmAddress, isImplicitEvmAccount, isSs58, isSubstrateAddress, isUnifiedAddress, leHexToBigint, mapExtrinsicArgs, mapZkEventData, normalizeEvmAddress, randomBlinding, recoverOwnerPkPoint, selectNotes, shortHash, substrateSs58ToAccountIdHex, substrateToEvm, toBase64, toHex, toTxResult, truncateMiddle, tryDecryptNote, tryDecryptNoteVerbose, vaultReplacer, vaultReviver };
package/dist/index.js CHANGED
@@ -1341,6 +1341,26 @@ var IndexerClient = class {
1341
1341
  async getRegisteredAsset(assetId) {
1342
1342
  return this.getOrNull(`/shielded/assets/${encodeURIComponent(assetId)}`);
1343
1343
  }
1344
+ // ─── Validators ────────────────────────────────────────────────────────────
1345
+ /** Returns a paginated list of validators. Filter by lifecycle status with `status`. */
1346
+ async getValidators(params) {
1347
+ const qs = this.buildQuery({
1348
+ page: params?.page,
1349
+ limit: params?.limit,
1350
+ status: params?.status
1351
+ });
1352
+ return this.get(`/validators${qs}`);
1353
+ }
1354
+ /** Returns a single validator by account address, or null if not found. */
1355
+ async getValidator(account) {
1356
+ return this.getOrNull(`/validators/${encodeURIComponent(account)}`);
1357
+ }
1358
+ // ─── Sessions ──────────────────────────────────────────────────────────────
1359
+ /** Returns a paginated list of session rotations, ordered by most recent first. */
1360
+ async getSessions(params) {
1361
+ const qs = this.buildQuery({ page: params?.page, limit: params?.limit });
1362
+ return this.get(`/sessions${qs}`);
1363
+ }
1344
1364
  // ─── Stats & Health ────────────────────────────────────────────────────────
1345
1365
  /** Returns aggregated indexer statistics. */
1346
1366
  async getStats() {
@@ -1679,10 +1699,7 @@ function isEvmAddress(addr) {
1679
1699
  return /^0x[0-9a-fA-F]{40}$/.test(addr);
1680
1700
  }
1681
1701
  function evmAddressToAccountId(evmAddr) {
1682
- const clean = evmAddr.startsWith("0x") ? evmAddr.slice(2) : evmAddr;
1683
- if (clean.length !== 40) {
1684
- throw new Error(`Expected 20-byte EVM address, got: ${evmAddr}`);
1685
- }
1702
+ const clean = cleanEvmAddress(evmAddr);
1686
1703
  const bytes = new Uint8Array(32);
1687
1704
  for (let i = 0; i < 20; i++) {
1688
1705
  bytes[i + 12] = parseInt(clean.slice(i * 2, i * 2 + 2), 16);
@@ -1690,10 +1707,7 @@ function evmAddressToAccountId(evmAddr) {
1690
1707
  return bytes;
1691
1708
  }
1692
1709
  function evmToImplicitSubstrate(evmAddr) {
1693
- const clean = evmAddr.startsWith("0x") ? evmAddr.slice(2) : evmAddr;
1694
- if (clean.length !== 40) {
1695
- throw new Error(`Expected 20-byte EVM address, got: ${evmAddr}`);
1696
- }
1710
+ const clean = cleanEvmAddress(evmAddr);
1697
1711
  return "0x" + clean.toLowerCase() + "0".repeat(24);
1698
1712
  }
1699
1713
  function evmToMappedAccountHex(address) {
@@ -1714,6 +1728,14 @@ function implicitSubstrateToEvm(accountHex) {
1714
1728
  }
1715
1729
  var ACCOUNT_ID_BYTES = 32;
1716
1730
  var EVM_BYTES = 20;
1731
+ var EVM_HEX_RE = /^[0-9a-fA-F]{40}$/;
1732
+ function cleanEvmAddress(addr) {
1733
+ const clean = addr.startsWith("0x") ? addr.slice(2) : addr;
1734
+ if (!EVM_HEX_RE.test(clean)) {
1735
+ throw new Error(`Expected 20-byte EVM address, got: ${addr}`);
1736
+ }
1737
+ return clean;
1738
+ }
1717
1739
  function isSubstrateAddress(addr) {
1718
1740
  if (!addr || typeof addr !== "string" || isEvmAddress(addr)) return false;
1719
1741
  if (addr.length < 40 || addr.length > 60) return false;
@@ -1748,10 +1770,8 @@ function substrateToEvm(addr) {
1748
1770
  }
1749
1771
  }
1750
1772
  function evmToSubstrate(addr) {
1751
- const normalized = normalizeEvmAddress(addr);
1752
- if (!normalized) return null;
1753
- const hex = normalized.slice(2);
1754
- if (hex.length !== 40) return null;
1773
+ const hex = addr.startsWith("0x") ? addr.slice(2) : addr;
1774
+ if (!EVM_HEX_RE.test(hex)) return null;
1755
1775
  const mapped = new Uint8Array(ACCOUNT_ID_BYTES);
1756
1776
  for (let i = 0; i < EVM_BYTES; i++) {
1757
1777
  mapped[i] = parseInt(hex.slice(i * 2, i * 2 + 2), 16);
@@ -1789,7 +1809,7 @@ function substrateSs58ToAccountIdHex(addr) {
1789
1809
  function addressToAccountIdHex(addr) {
1790
1810
  if (!addr) return null;
1791
1811
  if (isEvmAddress(addr)) {
1792
- const hex = addr.startsWith("0x") ? addr.slice(2) : addr;
1812
+ const hex = cleanEvmAddress(addr);
1793
1813
  const mapped = new Uint8Array(ACCOUNT_ID_BYTES);
1794
1814
  for (let i = 0; i < EVM_BYTES; i++) {
1795
1815
  mapped[i] = parseInt(hex.slice(i * 2, i * 2 + 2), 16);
package/dist/index.mjs CHANGED
@@ -1214,6 +1214,26 @@ var IndexerClient = class {
1214
1214
  async getRegisteredAsset(assetId) {
1215
1215
  return this.getOrNull(`/shielded/assets/${encodeURIComponent(assetId)}`);
1216
1216
  }
1217
+ // ─── Validators ────────────────────────────────────────────────────────────
1218
+ /** Returns a paginated list of validators. Filter by lifecycle status with `status`. */
1219
+ async getValidators(params) {
1220
+ const qs = this.buildQuery({
1221
+ page: params?.page,
1222
+ limit: params?.limit,
1223
+ status: params?.status
1224
+ });
1225
+ return this.get(`/validators${qs}`);
1226
+ }
1227
+ /** Returns a single validator by account address, or null if not found. */
1228
+ async getValidator(account) {
1229
+ return this.getOrNull(`/validators/${encodeURIComponent(account)}`);
1230
+ }
1231
+ // ─── Sessions ──────────────────────────────────────────────────────────────
1232
+ /** Returns a paginated list of session rotations, ordered by most recent first. */
1233
+ async getSessions(params) {
1234
+ const qs = this.buildQuery({ page: params?.page, limit: params?.limit });
1235
+ return this.get(`/sessions${qs}`);
1236
+ }
1217
1237
  // ─── Stats & Health ────────────────────────────────────────────────────────
1218
1238
  /** Returns aggregated indexer statistics. */
1219
1239
  async getStats() {
@@ -1552,10 +1572,7 @@ function isEvmAddress(addr) {
1552
1572
  return /^0x[0-9a-fA-F]{40}$/.test(addr);
1553
1573
  }
1554
1574
  function evmAddressToAccountId(evmAddr) {
1555
- const clean = evmAddr.startsWith("0x") ? evmAddr.slice(2) : evmAddr;
1556
- if (clean.length !== 40) {
1557
- throw new Error(`Expected 20-byte EVM address, got: ${evmAddr}`);
1558
- }
1575
+ const clean = cleanEvmAddress(evmAddr);
1559
1576
  const bytes = new Uint8Array(32);
1560
1577
  for (let i = 0; i < 20; i++) {
1561
1578
  bytes[i + 12] = parseInt(clean.slice(i * 2, i * 2 + 2), 16);
@@ -1563,10 +1580,7 @@ function evmAddressToAccountId(evmAddr) {
1563
1580
  return bytes;
1564
1581
  }
1565
1582
  function evmToImplicitSubstrate(evmAddr) {
1566
- const clean = evmAddr.startsWith("0x") ? evmAddr.slice(2) : evmAddr;
1567
- if (clean.length !== 40) {
1568
- throw new Error(`Expected 20-byte EVM address, got: ${evmAddr}`);
1569
- }
1583
+ const clean = cleanEvmAddress(evmAddr);
1570
1584
  return "0x" + clean.toLowerCase() + "0".repeat(24);
1571
1585
  }
1572
1586
  function evmToMappedAccountHex(address) {
@@ -1587,6 +1601,14 @@ function implicitSubstrateToEvm(accountHex) {
1587
1601
  }
1588
1602
  var ACCOUNT_ID_BYTES = 32;
1589
1603
  var EVM_BYTES = 20;
1604
+ var EVM_HEX_RE = /^[0-9a-fA-F]{40}$/;
1605
+ function cleanEvmAddress(addr) {
1606
+ const clean = addr.startsWith("0x") ? addr.slice(2) : addr;
1607
+ if (!EVM_HEX_RE.test(clean)) {
1608
+ throw new Error(`Expected 20-byte EVM address, got: ${addr}`);
1609
+ }
1610
+ return clean;
1611
+ }
1590
1612
  function isSubstrateAddress(addr) {
1591
1613
  if (!addr || typeof addr !== "string" || isEvmAddress(addr)) return false;
1592
1614
  if (addr.length < 40 || addr.length > 60) return false;
@@ -1621,10 +1643,8 @@ function substrateToEvm(addr) {
1621
1643
  }
1622
1644
  }
1623
1645
  function evmToSubstrate(addr) {
1624
- const normalized = normalizeEvmAddress(addr);
1625
- if (!normalized) return null;
1626
- const hex = normalized.slice(2);
1627
- if (hex.length !== 40) return null;
1646
+ const hex = addr.startsWith("0x") ? addr.slice(2) : addr;
1647
+ if (!EVM_HEX_RE.test(hex)) return null;
1628
1648
  const mapped = new Uint8Array(ACCOUNT_ID_BYTES);
1629
1649
  for (let i = 0; i < EVM_BYTES; i++) {
1630
1650
  mapped[i] = parseInt(hex.slice(i * 2, i * 2 + 2), 16);
@@ -1662,7 +1682,7 @@ function substrateSs58ToAccountIdHex(addr) {
1662
1682
  function addressToAccountIdHex(addr) {
1663
1683
  if (!addr) return null;
1664
1684
  if (isEvmAddress(addr)) {
1665
- const hex = addr.startsWith("0x") ? addr.slice(2) : addr;
1685
+ const hex = cleanEvmAddress(addr);
1666
1686
  const mapped = new Uint8Array(ACCOUNT_ID_BYTES);
1667
1687
  for (let i = 0; i < EVM_BYTES; i++) {
1668
1688
  mapped[i] = parseInt(hex.slice(i * 2, i * 2 + 2), 16);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbinum/sdk",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "description": "Official TypeScript SDK for Orbinum.",
5
5
  "author": "Orbinum",
6
6
  "license": "MIT",