@monolythium/core-sdk 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,6 +17,8 @@ declare const BRIDGE_REVERT_TAGS: {
17
17
  };
18
18
  declare const BRIDGE_QUOTE_API_BLOCKED_REASON = "bridge quote requires a mono-core live quote API/runtime primitive";
19
19
  declare const BRIDGE_SUBMIT_API_BLOCKED_REASON = "bridge submit requires a mono-core live submit API/runtime primitive";
20
+ declare const V1_BRIDGE_ALLOWED_FEE_TOKEN = "LINK";
21
+ declare const V1_BRIDGE_ALLOWED_PROTOCOL = "chainlink-ccip";
20
22
  type BridgeBytesInput = string | Uint8Array | readonly number[];
21
23
  type BridgeAdminControl = "none" | "consensusOnly" | "operatorKey" | "unknown";
22
24
  type BridgeCircuitBreakerState = "armed" | "paused" | "disabled" | "unknown";
@@ -44,7 +46,9 @@ interface BridgeVerifierDisclosure {
44
46
  interface BridgeRouteDisclosure {
45
47
  routeId: string;
46
48
  bridge: string;
49
+ protocol?: string | null;
47
50
  asset: string;
51
+ feeToken: string;
48
52
  sourceChain: string;
49
53
  destinationChain: string;
50
54
  verifier: BridgeVerifierDisclosure;
@@ -62,7 +66,9 @@ interface BridgeRouteCatalogueRoute {
62
66
  bridgeId: string;
63
67
  wrappedAsset: string;
64
68
  bridge: string;
69
+ protocol?: string | null;
65
70
  asset: string;
71
+ feeToken: string;
66
72
  sourceChain: string;
67
73
  destinationChain: string;
68
74
  verifier: BridgeVerifierDisclosure;
@@ -869,8 +875,8 @@ type BlockHeader = {
869
875
  };
870
876
 
871
877
  /**
872
- * EVM block tag. Use [`BlockSelector`] when sending to the wire — this
873
- * is the strongly-typed half of an `eth_*` block argument.
878
+ * JSON-RPC block tag. Use [`BlockSelector`] when sending to the wire; passive
879
+ * compatibility reads still use the `eth_*` block-argument shape.
874
880
  */
875
881
  type BlockTag = "latest" | "earliest" | "finalized" | "safe" | "pending";
876
882
 
@@ -900,40 +906,6 @@ type BlsCertificateResponse = {
900
906
  signer_count: number;
901
907
  };
902
908
 
903
- /**
904
- * Argument shape for `eth_call` / `eth_estimateGas`.
905
- *
906
- * Every field is optional — the chain rejects payloads that omit
907
- * required fields with an `InvalidParams` error.
908
- */
909
- type CallRequest = {
910
- /**
911
- * Source address.
912
- */
913
- from?: string;
914
- /**
915
- * Destination address. `None` is interpreted as contract
916
- * creation by the chain.
917
- */
918
- to?: string;
919
- /**
920
- * Execution-unit limit.
921
- */
922
- gas?: string;
923
- /**
924
- * Fee per execution unit on legacy / non-EIP-1559 paths.
925
- */
926
- gasPrice?: string;
927
- /**
928
- * Native value to transfer, in lythoshi.
929
- */
930
- value?: string;
931
- /**
932
- * Calldata (`data` is canonical; chains accept `input` as alias).
933
- */
934
- data?: string;
935
- };
936
-
937
909
  /**
938
910
  * One entry in the `lyth_capabilities` keyed capability map.
939
911
  */
@@ -1805,7 +1777,7 @@ type PendingTxSummary = {
1805
1777
  };
1806
1778
 
1807
1779
  /**
1808
- * `lyth_listActivePrecompiles` entry — OI-0170 / ADR-0015 §5.
1780
+ * `lyth_listActivePrecompiles` entry.
1809
1781
  */
1810
1782
  type PrecompileDescriptor = {
1811
1783
  /**
@@ -2224,8 +2196,8 @@ declare function decodeNativeMarketOrderBookDeltasResponse(value: unknown): Nati
2224
2196
 
2225
2197
  declare const NO_EVM_RECEIPT_PROOF_SCHEMA = "mono.no_evm_receipt_proof.v1";
2226
2198
  declare const NO_EVM_RECEIPT_PROOF_TYPE = "canonicalReceiptsTranscript";
2227
- declare const NO_EVM_RECEIPT_ROOT_ALGORITHM = "keccak256(monolythium/v4.1/receipts_root_empty/1|receipt_leaf/1|receipt_node/1 binary Merkle)";
2228
- declare const NO_EVM_RECEIPT_CODEC = "bincode(protocore_evm::Receipt)";
2199
+ declare const NO_EVM_RECEIPT_ROOT_ALGORITHM = "keccak256-binary-merkle(monolythium/v4.1/receipt_leaf/1, monolythium/v4.1/receipt_node/1, duplicate-last padding)";
2200
+ declare const NO_EVM_RECEIPT_CODEC = "bincode(protocore_execution_types::Receipt)";
2229
2201
  declare const NO_EVM_RECEIPTS_ROOT_DOMAIN = "monolythium/v4.1/receipts_root_empty/1";
2230
2202
  declare const NO_EVM_ARCHIVE_PROOF_SCHEMA = "mono.no_evm_receipt_archive_binding.v1";
2231
2203
  declare const NO_EVM_ARCHIVE_SIGNATURE_SCHEME = "mono.snapshot.sig.v1";
@@ -2458,8 +2430,7 @@ declare function parseChainRegistryToml(input: string): ChainInfo;
2458
2430
  *
2459
2431
  * Mirrors the Rust SDK's `RpcClient` — every public method maps 1:1 to
2460
2432
  * a method on the Rust client, returns the same wire-shape value, and
2461
- * sends the same `lyth_*` / `eth_*` / `debug_*` JSON-RPC method strings
2462
- * (Law §13.2).
2433
+ * sends the same `lyth_*` / `eth_*` / `debug_*` JSON-RPC method strings.
2463
2434
  */
2464
2435
 
2465
2436
  /** Optional per-client configuration. */
@@ -2475,7 +2446,7 @@ interface NetworkClientOptions extends RpcClientOptions {
2475
2446
  /** Probe all known endpoints and choose the first one that answers. */
2476
2447
  probe?: boolean;
2477
2448
  }
2478
- /** Typed ADR-0038 user address (`mono1...`) accepted at public SDK boundaries. */
2449
+ /** Typed user address (`mono1...`) accepted at public SDK boundaries. */
2479
2450
  type UserAddressInput = string;
2480
2451
  interface TxFeedReceipt {
2481
2452
  status: number;
@@ -2507,6 +2478,13 @@ interface TxFeedResponse {
2507
2478
  nextCursor: string | null;
2508
2479
  transactions: TxFeedTransaction[];
2509
2480
  }
2481
+ interface ExecutionUnitPriceResponse {
2482
+ executionUnitPriceLythoshi: string;
2483
+ basePricePerExecutionUnitLythoshi: string;
2484
+ priorityTipLythoshi: string;
2485
+ blockNumber: number | null;
2486
+ source: string;
2487
+ }
2510
2488
  declare const MAX_NATIVE_RECEIPT_EVENTS = 1000;
2511
2489
  interface NativeReceiptCounters {
2512
2490
  cycles: number;
@@ -2587,7 +2565,7 @@ interface NoEvmFinalityEvidence {
2587
2565
  interface NoEvmReceiptProofBase {
2588
2566
  schema: "mono.no_evm_receipt_proof.v1";
2589
2567
  rootAlgorithm: string;
2590
- receiptCodec: "bincode(protocore_evm::Receipt)";
2568
+ receiptCodec: "bincode(protocore_execution_types::Receipt)";
2591
2569
  blockHash: string;
2592
2570
  txHash: string;
2593
2571
  receiptsRoot: string;
@@ -3386,15 +3364,9 @@ declare class RpcClient {
3386
3364
  ethGetTransactionByHash(txHash: string): Promise<TransactionView | null>;
3387
3365
  /** `eth_getTransactionReceipt` — receipt for a confirmed tx. */
3388
3366
  ethGetTransactionReceipt(txHash: string): Promise<TransactionReceipt | null>;
3389
- /** `eth_sendRawTransaction` — submit a signed raw tx. */
3390
- ethSendRawTransaction(rawTx: string): Promise<string>;
3391
- /** `eth_call` — dry-run a transaction. */
3392
- ethCall(request: CallRequest, block?: BlockSelector): Promise<string>;
3393
- /** `eth_estimateGas` — gas estimate for a dry-run. */
3394
- ethEstimateGas(request: CallRequest, block?: BlockSelector): Promise<bigint>;
3395
3367
  /**
3396
- * `eth_gasPrice` — legacy compatibility fee quote for ethers/viem shims.
3397
- * Native v4.1 surfaces should use execution-unit and lythoshi fee fields.
3368
+ * `eth_gasPrice` — passive compatibility fee quote for EVM-shaped read
3369
+ * tooling. Native callers should prefer `lythExecutionUnitPrice`.
3398
3370
  */
3399
3371
  ethGasPrice(): Promise<bigint>;
3400
3372
  /** `eth_feeHistory` — base-fee + gas-used history. */
@@ -3505,12 +3477,13 @@ declare class RpcClient {
3505
3477
  lythMempoolPending(sender: string): Promise<PendingTxSummary[]>;
3506
3478
  /** `lyth_currentRound` — latest committed height. */
3507
3479
  lythCurrentRound(): Promise<RoundInfo>;
3480
+ /** `lyth_getTransactionCount` — native sender nonce. */
3481
+ lythGetTransactionCount(address: string): Promise<bigint>;
3482
+ /** `lyth_executionUnitPrice` — native execution-unit price in lythoshi. */
3483
+ lythExecutionUnitPrice(): Promise<ExecutionUnitPriceResponse>;
3508
3484
  /** `lyth_peerSummary` — public-safe aggregate peer-network diagnostics. */
3509
3485
  lythPeerSummary(): Promise<PeerSummaryAggregate>;
3510
- /**
3511
- * `lyth_listActivePrecompiles` — milestone-gated precompile catalogue
3512
- * (OI-0170 / ADR-0015 §5).
3513
- */
3486
+ /** `lyth_listActivePrecompiles` — native precompile catalogue. */
3514
3487
  lythListActivePrecompiles(block?: BlockSelector): Promise<PrecompileCatalogueResponse>;
3515
3488
  /** `lyth_capabilities` — address-keyed precompile capability map. */
3516
3489
  lythCapabilities(block?: BlockSelector): Promise<CapabilitiesResponse>;
@@ -3598,10 +3571,6 @@ declare class RpcClient {
3598
3571
  lythUnsubscribe(subId: string): Promise<unknown>;
3599
3572
  /** `debug_traceTransaction` — legacy compatibility trace for a confirmed tx. */
3600
3573
  debugTraceTransaction(txHash: string): Promise<unknown>;
3601
- /** `debug_traceCall` — legacy compatibility trace for a dry-run. */
3602
- debugTraceCall(request: CallRequest, block?: BlockSelector): Promise<unknown>;
3603
- /** `debug_traceBlockByNumber` — legacy compatibility traces for an entire block. */
3604
- debugTraceBlockByNumber(block: BlockSelector): Promise<unknown>;
3605
3574
  /** `debug_mempoolDump` — full mempool snapshot. */
3606
3575
  debugMempoolDump(): Promise<MempoolSnapshot>;
3607
3576
  /** `debug_p2pPeers` — connected libp2p peer list. */
@@ -3705,4 +3674,132 @@ declare function nativeEventsFromHistory<TDecoded extends NativeDecodedEvent = N
3705
3674
  declare function nativeMarketEventsFromHistory<TDecoded extends NativeDecodedEvent = NativeDecodedEvent>(response: NativeEventsResponse<unknown>): NativeEventsResponse<TDecoded>;
3706
3675
  declare function consumeNativeEvents<TDecoded extends NativeDecodedEvent = NativeDecodedEvent>(receipt: NativeReceiptResponse<unknown>, consumer: NativeEventConsumer<TDecoded>, filter?: NativeEventFilter): Promise<number>;
3707
3676
 
3708
- export { type AssetPolicy as $, type ApiStreamsIndexResponse as A, type BlockSelector as B, type ChainStatsResponse as C, RpcClient as D, API_STREAM_TOPICS as E, type AccountPolicy as F, type AccountProofResponse as G, type Address as H, type AddressActivityArchiveRedirect as I, type AddressActivityEntry as J, type AddressActivityKind as K, type AddressActivityKindResponse as L, type MrcMetadataResponse as M, type NativeReceiptFee as N, type OperatorCapabilitiesResponse as O, type PendingRewardsResponse as P, type AddressActivityKindRetention as Q, type RuntimeBuildProvenance as R, type SearchResponse as S, type TxFeedResponse as T, type AddressLabelRecord as U, type AgentReputationCategoryScope as V, type AgentReputationRecord as W, type AgentReputationResponse as X, type ApiStreamTopic as Y, type ApiStreamTopicMetadata as Z, type ApiStreamTopicRetention as _, type RuntimeUpgradeStatus as a, type GapRange as a$, type AttestationWindow as a0, BRIDGE_QUOTE_API_BLOCKED_REASON as a1, BRIDGE_REVERT_TAGS as a2, BRIDGE_SELECTORS as a3, BRIDGE_SUBMIT_API_BLOCKED_REASON as a4, type BlockHeader as a5, type BlockTag as a6, type BlsCertificateResponse as a7, type BridgeAdminControl as a8, type BridgeBytesInput as a9, type ClobMarketRecord as aA, type ClobMarketSummary as aB, type ClobTrade as aC, type ClusterDelegatorsResponse as aD, type ClusterDirectoryEntryResponse as aE, type ClusterDirectoryPageResponse as aF, type ClusterEntityResponse as aG, type ClusterMemberResponse as aH, type ClusterResignationRow as aI, type ClusterResignationsResponse as aJ, type ClusterStatusResponse as aK, type DagParent as aL, type DagParentsResponse as aM, type DagSyncStatus as aN, type DecodeTxExtension as aO, type DecodeTxLog as aP, type DecodeTxPqAttestation as aQ, type DecodeTxResponse as aR, type DelegationCapResponse as aS, type DelegationHistoryRecord as aT, type DelegationRow as aU, type DelegationsResponse as aV, type DutyAbsence as aW, type EncryptionKeyResponse as aX, type EntityRatchetResponse as aY, type ExplorerEndpoint as aZ, type FeeHistoryResponse as a_, type BridgeCircuitBreakerState as aa, BridgePrecompileError as ab, type BridgeQuoteSubmitReadiness as ac, type BridgeRiskTier as ad, type BridgeRouteAssessment as ae, type BridgeRouteCandidate as af, type BridgeRouteCatalogue as ag, BridgeRouteCatalogueError as ah, type BridgeRouteCatalogueJsonOptions as ai, type BridgeRouteCataloguePayload as aj, type BridgeRouteCatalogueRoute as ak, type BridgeRouteCatalogueValidation as al, type BridgeRouteDisclosure as am, type BridgeRouteSelection as an, type BridgeRoutesSource as ao, type BridgeTransferIntent as ap, type BridgeTransferRequest as aq, type BridgeVerifierDisclosure as ar, CHAIN_REGISTRY as as, CHAIN_REGISTRY_RAW_BASE as at, type CallRequest as au, type CapabilitiesResponse as av, type CapabilityDescriptor as aw, type ChainInfo as ax, type ChainRegistry as ay, type CheckpointRecord as az, type NativeReceiptResponse as b, type NativeReceiptCounters as b$, type GapRecord as b0, type GapRecordsResponse as b1, type Hash as b2, type Hex as b3, type IndexerStatus as b4, type JailStatusWindow as b5, type KeyRotationWindow as b6, type LythUpgradePlanStatus as b7, type LythUpgradeStatusResponse as b8, MAX_NATIVE_RECEIPT_EVENTS as b9, type NativeAgentAvailabilityStateRecord as bA, type NativeAgentConsentStateRecord as bB, type NativeAgentEscrowStateRecord as bC, type NativeAgentIssuerStateRecord as bD, type NativeAgentPolicySpendStateRecord as bE, type NativeAgentPolicyStateRecord as bF, type NativeAgentReputationReviewStateRecord as bG, type NativeAgentServiceStateRecord as bH, type NativeAgentStateFilterParamValue as bI, type NativeAgentStateResponseFilters as bJ, type NativeAgentStateSource as bK, type NativeCollectionRoyaltyStateRecord as bL, type NativeEventConsumer as bM, type NativeEventProjection as bN, type NativeEventsResponseFilters as bO, type NativeEventsSource as bP, type NativeMarketOrderBookDelta as bQ, type NativeMarketOrderBookDeltasResponseFilters as bR, type NativeMarketOrderBookDeltasSource as bS, type NativeMarketOrderBookStreamAction as bT, type NativeMarketOrderBookStreamPayload as bU, type NativeMarketStateFilterParamValue as bV, type NativeMarketStateResponseFilters as bW, type NativeMarketStateSource as bX, type NativeModuleForwarderDescriptor as bY, type NativeMrcPolicyProjection as bZ, type NativeNftListingStateRecord as b_, type MempoolSnapshot as ba, type MeshDecodedTx as bb, type MeshSignedTxResponse as bc, type MeshTxIntent as bd, type MeshUnsignedTxResponse as be, type MetricsRangeResponse as bf, type MetricsRangeSample as bg, type MetricsRangeSeries as bh, type MetricsRangeStatus as bi, type MrcAccountRecord as bj, type MrcMetadataRecord as bk, type MrcPolicyRecord as bl, type MrcPolicySpendRecord as bm, NATIVE_MARKET_EVENT_FAMILY as bn, NATIVE_MARKET_ORDER_BOOK_STREAM_TOPIC as bo, NO_EVM_ARCHIVE_PROOF_SCHEMA as bp, NO_EVM_ARCHIVE_SIGNATURE_SCHEME as bq, NO_EVM_FINALITY_EVIDENCE_SCHEMA as br, NO_EVM_FINALITY_EVIDENCE_SOURCE as bs, NO_EVM_RECEIPTS_ROOT_DOMAIN as bt, NO_EVM_RECEIPT_CODEC as bu, NO_EVM_RECEIPT_PROOF_SCHEMA as bv, NO_EVM_RECEIPT_PROOF_TYPE as bw, NO_EVM_RECEIPT_ROOT_ALGORITHM as bx, type NativeAgentArbiterStateRecord as by, type NativeAgentAttestationStateRecord as bz, type NativeDecodedEvent as c, TESTNET_69420 as c$, type NativeReceiptEvent as c0, type NativeReceiptSource as c1, type NativeSpotMarketStateRecord as c2, type NativeSpotOrderStateRecord as c3, type NetworkClientOptions as c4, type NetworkSlug as c5, type NoEvmArchiveCoveringSnapshot as c6, type NoEvmArchiveProof as c7, type NoEvmArchiveSignatureVerification as c8, type NoEvmArchiveSignatureVerificationIssue as c9, type PeerSummaryAggregate as cA, type PendingRewardsRow as cB, type PendingTxSummary as cC, type PrecompileCatalogueResponse as cD, type PrecompileDescriptor as cE, type Quantity as cF, type RankedBridgeRoute as cG, type ReceiptProofTrustArchivePolicy as cH, type ReceiptProofTrustArchiveSigner as cI, type ReceiptProofTrustFinalityPolicy as cJ, type ReceiptProofTrustFinalitySigner as cK, type ReceiptProofTrustPolicy as cL, type RedemptionQueueTicket as cM, type RegistryRecord as cN, type ReportServiceProbeRequest as cO, type ReportServiceProbeResponse as cP, type RichListHolder as cQ, type RichListResponse as cR, type RoundInfo as cS, type RpcClientOptions as cT, type RpcEndpoint as cU, type RuntimeProvenanceResponse as cV, type SearchHit as cW, type ServiceProbeStatusLabel as cX, type SigningEntryStatus as cY, type StorageProofBatch as cZ, type SyncStatus as c_, type NoEvmArchiveSignatureVerificationIssueCode as ca, type NoEvmArchiveTrustedSigner as cb, type NoEvmBlockBlsFinalityVerification as cc, type NoEvmBlsFinalityVerification as cd, type NoEvmFinalityBlockReference as ce, type NoEvmFinalityCertificate as cf, type NoEvmFinalityEvidence as cg, type NoEvmReceiptFinalityTrustPolicy as ch, type NoEvmReceiptProof as ci, NoEvmReceiptProofError as cj, type NoEvmReceiptProofErrorCode as ck, type NoEvmReceiptProofVerification as cl, type NoEvmReceiptTrustIssue as cm, type NoEvmReceiptTrustIssueCode as cn, type NoEvmReceiptTrustPolicy as co, type NoEvmReceiptTrustVerification as cp, type NoEvmReceiptTrustedBlsSigner as cq, type OperatorAuthorityResponse as cr, type OperatorInfoResponse as cs, type OperatorRiskResponse as ct, type OperatorSigningActivityResponse as cu, type OperatorSigningEntry as cv, type OperatorSurfaceCapability as cw, type OperatorSurfaceStatus as cx, type P2pSeed as cy, type PeerSummary as cz, type NativeEventFilter as d, parseChainRegistryToml as d$, type TokenBalanceMrcIdentity as d0, type TokenBalanceRecord as d1, type TpmAttestationResponse as d2, type TransactionReceipt as d3, type TransactionView as d4, type TxFeedReceipt as d5, type TxFeedTransaction as d6, type TxStatusFoundResponse as d7, type TxStatusNotFoundResponse as d8, type TxStatusResponse as d9, encodeSetBridgeResumeCooldownCalldata as dA, encodeSetBridgeRouteFinalityCalldata as dB, exportBridgeRouteCatalogueJson as dC, fetchChainInfoLatest as dD, fetchChainRegistryLatest as dE, getChainInfo as dF, getNoEvmReceiptTrustPolicy as dG, getP2pSeeds as dH, getRpcEndpoints as dI, isBridgeAdminLockedRevert as dJ, isBridgeCooldownZeroRevert as dK, isBridgeFinalityZeroRevert as dL, isBridgeResumeCooldownActiveRevert as dM, isNativeDecodedEvent as dN, isNativeMarketOrderBookStreamPayload as dO, nativeAgentStateFilterParams as dP, nativeEventMatches as dQ, nativeEventsFilterParams as dR, nativeEventsFromHistory as dS, nativeEventsFromReceipt as dT, nativeMarketEventFilter as dU, nativeMarketEventsFromHistory as dV, nativeMarketEventsFromReceipt as dW, nativeMarketStateFilterParams as dX, noEvmReceiptTrustPolicyFromChainInfo as dY, normalizeBridgeRouteCatalogue as dZ, parseBridgeRouteCatalogueJson as d_, type UpcomingDutiesResponse as da, type UpcomingDutyMap as db, type UserAddressInput as dc, type VertexAtRound as dd, type VerticesAtRoundResponse as de, assertNativeMarketOrderBookStreamPayload as df, assessBridgeRoute as dg, bridgeAddressHex as dh, bridgeQuoteSubmitReadiness as di, bridgeRoutesReadiness as dj, bridgeTransferCandidates as dk, buildBridgeRouteCatalogue as dl, computeNoEvmDacFinalityMessage as dm, computeNoEvmLeaderFinalityMessage as dn, computeNoEvmReceiptsRoot as dp, computeNoEvmRoundFinalityMessage as dq, computeNoEvmTargetReceiptHash as dr, consumeNativeEvents as ds, decodeNativeAgentStateResponse as dt, decodeNativeMarketOrderBookDeltasResponse as du, decodeNativeReceiptResponse as dv, decodeNoEvmReceiptTranscript as dw, decodeTxFeedResponse as dx, encodeBlockSelector as dy, encodeLockBridgeConfigCalldata as dz, type TypedNativeReceiptEvent as e, parseNativeDecodedEvent as e0, parseQuantity as e1, parseQuantityBig as e2, rankBridgeRoutes as e3, selectBridgeTransferRoute as e4, validateBridgeRouteCatalogue as e5, verifyNoEvmArchiveProofSignatures as e6, verifyNoEvmBlockFinalityEvidenceMultisig as e7, verifyNoEvmBlockFinalityEvidenceThreshold as e8, verifyNoEvmFinalityEvidenceMultisig as e9, verifyNoEvmFinalityEvidenceThreshold as ea, verifyNoEvmReceiptProof as eb, verifyNoEvmReceiptProofTrust as ec, type NativeEventsFilter as f, type NativeEventsResponse as g, type NativeAgentStateFilter as h, type NativeAgentStateResponse as i, type NativeMarketStateFilter as j, type NativeMarketStateResponse as k, type NativeMarketOrderBookDeltasRequest as l, type NativeMarketOrderBookDeltasResponse as m, type AddressProfileResponse as n, type AddressFlowResponse as o, type RedemptionQueueResponse as p, type MrcAccountResponse as q, type MrcHoldersResponse as r, type BridgeRoutesRequest as s, type BridgeRoutesResponse as t, type ServiceProbeResponse as u, type ClobMarketsResponse as v, type ClobMarketResponse as w, type ClobTradesResponse as x, type ClobOhlcResponse as y, type ClobOrderBookResponse as z };
3677
+ declare const ML_KEM_768_CIPHERTEXT_LEN = 1088;
3678
+ declare const ML_KEM_768_ENCAPSULATION_KEY_LEN = 1184;
3679
+ declare const ML_KEM_768_SHARED_SECRET_LEN = 32;
3680
+ declare const DKG_NONCE_LEN = 12;
3681
+ declare const DKG_AEAD_TAG_LEN = 16;
3682
+ declare const MempoolClass: {
3683
+ readonly Transfer: 0;
3684
+ readonly ContractCall: 1;
3685
+ readonly PrivacyOp: 2;
3686
+ readonly CLOBOp: 3;
3687
+ readonly AgentOp: 4;
3688
+ readonly FoundationOp: 5;
3689
+ /** @deprecated Use FoundationOp. */
3690
+ readonly GovernanceOp: 5;
3691
+ readonly RWAOp: 6;
3692
+ };
3693
+ type MempoolClass = (typeof MempoolClass)[keyof typeof MempoolClass];
3694
+ interface NonceAad {
3695
+ sender: Uint8Array;
3696
+ nonce: bigint;
3697
+ chainId: bigint;
3698
+ class: MempoolClass;
3699
+ maxFeePerGas: bigint;
3700
+ maxPriorityFeePerGas: bigint;
3701
+ gasLimit: bigint;
3702
+ }
3703
+ interface DecryptHint {
3704
+ epoch: bigint;
3705
+ scheme: number;
3706
+ }
3707
+ interface EncryptedEnvelope {
3708
+ nonceAad: NonceAad;
3709
+ ciphertext: Uint8Array;
3710
+ decryptionHint: DecryptHint;
3711
+ senderPubkey: Uint8Array;
3712
+ outerSignature: Uint8Array;
3713
+ sender: Uint8Array;
3714
+ }
3715
+ declare function bincodeNonceAad(aad: NonceAad): Uint8Array;
3716
+ declare function bincodeDecryptHint(hint: DecryptHint): Uint8Array;
3717
+ declare function bincodeEncryptedEnvelope(env: EncryptedEnvelope): Uint8Array;
3718
+ declare function encryptInnerTx(signedInnerTxBincode: Uint8Array, nonceAad: NonceAad, kemEncapsulationKey: Uint8Array): Uint8Array;
3719
+ declare function outerSigDigest(nonceAad: NonceAad, ciphertext: Uint8Array, decryptionHint: DecryptHint, senderPubkey: Uint8Array): Uint8Array;
3720
+ declare function buildEncryptedEnvelope(args: {
3721
+ signedInnerTxBincode: Uint8Array;
3722
+ nonceAad: NonceAad;
3723
+ decryptionHint: DecryptHint;
3724
+ kemEncapsulationKey: Uint8Array;
3725
+ senderAddress: Uint8Array;
3726
+ senderPubkey: Uint8Array;
3727
+ signOuterDigest: (digest: Uint8Array) => Promise<Uint8Array> | Uint8Array;
3728
+ }): Promise<{
3729
+ envelope: EncryptedEnvelope;
3730
+ wireBytes: Uint8Array;
3731
+ wireHex: string;
3732
+ }>;
3733
+
3734
+ interface NativeEvmTxFields {
3735
+ chainId: bigint | number | string;
3736
+ nonce: bigint | number | string;
3737
+ maxPriorityFeePerGas: bigint | number | string;
3738
+ maxFeePerGas: bigint | number | string;
3739
+ gasLimit: bigint | number | string;
3740
+ to: Uint8Array | readonly number[] | string | null;
3741
+ value: bigint | number | string;
3742
+ input?: Uint8Array | readonly number[] | string;
3743
+ extensions?: readonly NativeTxExtensionLike[];
3744
+ }
3745
+ interface NativeTxExtension {
3746
+ kind: number;
3747
+ body: Uint8Array | readonly number[] | string;
3748
+ }
3749
+ interface NativeTxExtensionDescriptor {
3750
+ kind: number;
3751
+ bodyHex: string;
3752
+ }
3753
+ type NativeTxExtensionLike = NativeTxExtension | NativeTxExtensionDescriptor;
3754
+ declare function encodeTransactionForHash(fields: NativeEvmTxFields, tag: 0x01 | 0x02): Uint8Array;
3755
+ declare function bincodeSignedTransaction(fields: NativeEvmTxFields, signature: Uint8Array | readonly number[], publicKey: Uint8Array | readonly number[]): Uint8Array;
3756
+
3757
+ declare const ML_DSA_65_SEED_LEN = 32;
3758
+ declare const ML_DSA_65_SIGNING_KEY_LEN = 4032;
3759
+ declare const ML_DSA_65_PUBLIC_KEY_LEN = 1952;
3760
+ declare const ML_DSA_65_SIGNATURE_LEN = 3309;
3761
+ declare const STANDARD_ALGO_NUMBER_ML_DSA_65 = 1001;
3762
+ declare const ENUM_VARIANT_INDEX_ML_DSA_65 = 5;
3763
+ declare const ADDRESS_DERIVATION_DOMAIN = "MONO_ADDRESS_BLAKE3_20_V1";
3764
+ declare class MlDsa65Backend {
3765
+ #private;
3766
+ private constructor();
3767
+ static fromSeed(seed: Uint8Array | readonly number[]): MlDsa65Backend;
3768
+ publicKey(): Uint8Array;
3769
+ addressBytes(): Uint8Array;
3770
+ getAddress(): string;
3771
+ sign(message: Uint8Array): Uint8Array;
3772
+ signPrehash(digest: Uint8Array): Uint8Array;
3773
+ verify(message: Uint8Array, signature: Uint8Array): boolean;
3774
+ signEvmTx(fields: NativeEvmTxFields): {
3775
+ wireHex: string;
3776
+ wireBytes: Uint8Array;
3777
+ sighash: Uint8Array;
3778
+ txHash: Uint8Array;
3779
+ };
3780
+ }
3781
+ declare function mlDsa65AddressFromPublicKey(publicKey: Uint8Array | readonly number[]): string;
3782
+ declare function mlDsa65AddressBytes(publicKey: Uint8Array | readonly number[]): Uint8Array;
3783
+ declare function encodeMlDsa65Opaque(raw: Uint8Array | readonly number[]): Uint8Array;
3784
+
3785
+ interface EncryptionKey {
3786
+ algo: string;
3787
+ epoch: bigint;
3788
+ encapsulationKey: Uint8Array;
3789
+ }
3790
+ interface EncryptedSubmission {
3791
+ envelopeWireHex: string;
3792
+ innerSighashHex: string;
3793
+ innerTxHashHex: string;
3794
+ innerWireBytes: number;
3795
+ }
3796
+ declare function fetchEncryptionKey(client: RpcClient): Promise<EncryptionKey>;
3797
+ declare function buildEncryptedSubmission(args: {
3798
+ backend: MlDsa65Backend;
3799
+ tx: NativeEvmTxFields;
3800
+ encryptionKey: EncryptionKey;
3801
+ class?: MempoolClass;
3802
+ }): Promise<EncryptedSubmission>;
3803
+ declare function submitEncryptedEnvelope(client: RpcClient, envelopeWireHex: string): Promise<string>;
3804
+
3805
+ export { type AgentReputationResponse as $, type ApiStreamsIndexResponse as A, type BlockSelector as B, type ChainStatsResponse as C, type NativeEvmTxFields as D, type EncryptionKey as E, MempoolClass as F, RpcClient as G, MlDsa65Backend as H, API_STREAM_TOPICS as I, type AccountPolicy as J, type AccountProofResponse as K, type Address as L, type MrcMetadataResponse as M, type NativeReceiptFee as N, type OperatorCapabilitiesResponse as O, type PendingRewardsResponse as P, type AddressActivityArchiveRedirect as Q, type RuntimeBuildProvenance as R, type SearchResponse as S, type TxFeedResponse as T, type AddressActivityEntry as U, type AddressActivityKind as V, type AddressActivityKindResponse as W, type AddressActivityKindRetention as X, type AddressLabelRecord as Y, type AgentReputationCategoryScope as Z, type AgentReputationRecord as _, type RuntimeUpgradeStatus as a, type EntityRatchetResponse as a$, type ApiStreamTopic as a0, type ApiStreamTopicMetadata as a1, type ApiStreamTopicRetention as a2, type AssetPolicy as a3, type AttestationWindow as a4, BRIDGE_QUOTE_API_BLOCKED_REASON as a5, BRIDGE_REVERT_TAGS as a6, BRIDGE_SELECTORS as a7, BRIDGE_SUBMIT_API_BLOCKED_REASON as a8, type BlockHeader as a9, type ChainInfo as aA, type ChainRegistry as aB, type CheckpointRecord as aC, type ClobMarketRecord as aD, type ClobMarketSummary as aE, type ClobTrade as aF, type ClusterDelegatorsResponse as aG, type ClusterDirectoryEntryResponse as aH, type ClusterDirectoryPageResponse as aI, type ClusterEntityResponse as aJ, type ClusterMemberResponse as aK, type ClusterResignationRow as aL, type ClusterResignationsResponse as aM, type ClusterStatusResponse as aN, type DagParent as aO, type DagParentsResponse as aP, type DagSyncStatus as aQ, type DecodeTxExtension as aR, type DecodeTxLog as aS, type DecodeTxPqAttestation as aT, type DecodeTxResponse as aU, type DelegationCapResponse as aV, type DelegationHistoryRecord as aW, type DelegationRow as aX, type DelegationsResponse as aY, type DutyAbsence as aZ, type EncryptionKeyResponse as a_, type BlockTag as aa, type BlsCertificateResponse as ab, type BridgeAdminControl as ac, type BridgeBytesInput as ad, type BridgeCircuitBreakerState as ae, BridgePrecompileError as af, type BridgeQuoteSubmitReadiness as ag, type BridgeRiskTier as ah, type BridgeRouteAssessment as ai, type BridgeRouteCandidate as aj, type BridgeRouteCatalogue as ak, BridgeRouteCatalogueError as al, type BridgeRouteCatalogueJsonOptions as am, type BridgeRouteCataloguePayload as an, type BridgeRouteCatalogueRoute as ao, type BridgeRouteCatalogueValidation as ap, type BridgeRouteDisclosure as aq, type BridgeRouteSelection as ar, type BridgeRoutesSource as as, type BridgeTransferIntent as at, type BridgeTransferRequest as au, type BridgeVerifierDisclosure as av, CHAIN_REGISTRY as aw, CHAIN_REGISTRY_RAW_BASE as ax, type CapabilitiesResponse as ay, type CapabilityDescriptor as az, type NativeReceiptResponse as b, type NativeMarketStateSource as b$, type ExecutionUnitPriceResponse as b0, type ExplorerEndpoint as b1, type FeeHistoryResponse as b2, type GapRange as b3, type GapRecord as b4, type GapRecordsResponse as b5, type Hash as b6, type Hex as b7, type IndexerStatus as b8, type JailStatusWindow as b9, NO_EVM_RECEIPT_PROOF_TYPE as bA, NO_EVM_RECEIPT_ROOT_ALGORITHM as bB, type NativeAgentArbiterStateRecord as bC, type NativeAgentAttestationStateRecord as bD, type NativeAgentAvailabilityStateRecord as bE, type NativeAgentConsentStateRecord as bF, type NativeAgentEscrowStateRecord as bG, type NativeAgentIssuerStateRecord as bH, type NativeAgentPolicySpendStateRecord as bI, type NativeAgentPolicyStateRecord as bJ, type NativeAgentReputationReviewStateRecord as bK, type NativeAgentServiceStateRecord as bL, type NativeAgentStateFilterParamValue as bM, type NativeAgentStateResponseFilters as bN, type NativeAgentStateSource as bO, type NativeCollectionRoyaltyStateRecord as bP, type NativeEventConsumer as bQ, type NativeEventProjection as bR, type NativeEventsResponseFilters as bS, type NativeEventsSource as bT, type NativeMarketOrderBookDelta as bU, type NativeMarketOrderBookDeltasResponseFilters as bV, type NativeMarketOrderBookDeltasSource as bW, type NativeMarketOrderBookStreamAction as bX, type NativeMarketOrderBookStreamPayload as bY, type NativeMarketStateFilterParamValue as bZ, type NativeMarketStateResponseFilters as b_, type KeyRotationWindow as ba, type LythUpgradePlanStatus as bb, type LythUpgradeStatusResponse as bc, MAX_NATIVE_RECEIPT_EVENTS as bd, type MempoolSnapshot as be, type MeshDecodedTx as bf, type MeshSignedTxResponse as bg, type MeshTxIntent as bh, type MeshUnsignedTxResponse as bi, type MetricsRangeResponse as bj, type MetricsRangeSample as bk, type MetricsRangeSeries as bl, type MetricsRangeStatus as bm, type MrcAccountRecord as bn, type MrcMetadataRecord as bo, type MrcPolicyRecord as bp, type MrcPolicySpendRecord as bq, NATIVE_MARKET_EVENT_FAMILY as br, NATIVE_MARKET_ORDER_BOOK_STREAM_TOPIC as bs, NO_EVM_ARCHIVE_PROOF_SCHEMA as bt, NO_EVM_ARCHIVE_SIGNATURE_SCHEME as bu, NO_EVM_FINALITY_EVIDENCE_SCHEMA as bv, NO_EVM_FINALITY_EVIDENCE_SOURCE as bw, NO_EVM_RECEIPTS_ROOT_DOMAIN as bx, NO_EVM_RECEIPT_CODEC as by, NO_EVM_RECEIPT_PROOF_SCHEMA as bz, type NativeDecodedEvent as c, type ServiceProbeStatusLabel as c$, type NativeModuleForwarderDescriptor as c0, type NativeMrcPolicyProjection as c1, type NativeNftListingStateRecord as c2, type NativeReceiptCounters as c3, type NativeReceiptEvent as c4, type NativeReceiptSource as c5, type NativeSpotMarketStateRecord as c6, type NativeSpotOrderStateRecord as c7, type NetworkClientOptions as c8, type NetworkSlug as c9, type OperatorSurfaceCapability as cA, type OperatorSurfaceStatus as cB, type P2pSeed as cC, type PeerSummary as cD, type PeerSummaryAggregate as cE, type PendingRewardsRow as cF, type PendingTxSummary as cG, type PrecompileCatalogueResponse as cH, type PrecompileDescriptor as cI, type Quantity as cJ, type RankedBridgeRoute as cK, type ReceiptProofTrustArchivePolicy as cL, type ReceiptProofTrustArchiveSigner as cM, type ReceiptProofTrustFinalityPolicy as cN, type ReceiptProofTrustFinalitySigner as cO, type ReceiptProofTrustPolicy as cP, type RedemptionQueueTicket as cQ, type RegistryRecord as cR, type ReportServiceProbeRequest as cS, type ReportServiceProbeResponse as cT, type RichListHolder as cU, type RichListResponse as cV, type RoundInfo as cW, type RpcClientOptions as cX, type RpcEndpoint as cY, type RuntimeProvenanceResponse as cZ, type SearchHit as c_, type NoEvmArchiveCoveringSnapshot as ca, type NoEvmArchiveProof as cb, type NoEvmArchiveSignatureVerification as cc, type NoEvmArchiveSignatureVerificationIssue as cd, type NoEvmArchiveSignatureVerificationIssueCode as ce, type NoEvmArchiveTrustedSigner as cf, type NoEvmBlockBlsFinalityVerification as cg, type NoEvmBlsFinalityVerification as ch, type NoEvmFinalityBlockReference as ci, type NoEvmFinalityCertificate as cj, type NoEvmFinalityEvidence as ck, type NoEvmReceiptFinalityTrustPolicy as cl, type NoEvmReceiptProof as cm, NoEvmReceiptProofError as cn, type NoEvmReceiptProofErrorCode as co, type NoEvmReceiptProofVerification as cp, type NoEvmReceiptTrustIssue as cq, type NoEvmReceiptTrustIssueCode as cr, type NoEvmReceiptTrustPolicy as cs, type NoEvmReceiptTrustVerification as ct, type NoEvmReceiptTrustedBlsSigner as cu, type OperatorAuthorityResponse as cv, type OperatorInfoResponse as cw, type OperatorRiskResponse as cx, type OperatorSigningActivityResponse as cy, type OperatorSigningEntry as cz, type NativeEventFilter as d, nativeMarketEventsFromHistory as d$, type SigningEntryStatus as d0, type StorageProofBatch as d1, type SyncStatus as d2, TESTNET_69420 as d3, type TokenBalanceMrcIdentity as d4, type TokenBalanceRecord as d5, type TpmAttestationResponse as d6, type TransactionReceipt as d7, type TransactionView as d8, type TxFeedReceipt as d9, decodeNativeMarketOrderBookDeltasResponse as dA, decodeNativeReceiptResponse as dB, decodeNoEvmReceiptTranscript as dC, decodeTxFeedResponse as dD, encodeBlockSelector as dE, encodeLockBridgeConfigCalldata as dF, encodeSetBridgeResumeCooldownCalldata as dG, encodeSetBridgeRouteFinalityCalldata as dH, exportBridgeRouteCatalogueJson as dI, fetchChainInfoLatest as dJ, fetchChainRegistryLatest as dK, getChainInfo as dL, getNoEvmReceiptTrustPolicy as dM, getP2pSeeds as dN, getRpcEndpoints as dO, isBridgeAdminLockedRevert as dP, isBridgeCooldownZeroRevert as dQ, isBridgeFinalityZeroRevert as dR, isBridgeResumeCooldownActiveRevert as dS, isNativeDecodedEvent as dT, isNativeMarketOrderBookStreamPayload as dU, nativeAgentStateFilterParams as dV, nativeEventMatches as dW, nativeEventsFilterParams as dX, nativeEventsFromHistory as dY, nativeEventsFromReceipt as dZ, nativeMarketEventFilter as d_, type TxFeedTransaction as da, type TxStatusFoundResponse as db, type TxStatusNotFoundResponse as dc, type TxStatusResponse as dd, type UpcomingDutiesResponse as de, type UpcomingDutyMap as df, type UserAddressInput as dg, V1_BRIDGE_ALLOWED_FEE_TOKEN as dh, V1_BRIDGE_ALLOWED_PROTOCOL as di, type VertexAtRound as dj, type VerticesAtRoundResponse as dk, assertNativeMarketOrderBookStreamPayload as dl, assessBridgeRoute as dm, bridgeAddressHex as dn, bridgeQuoteSubmitReadiness as dp, bridgeRoutesReadiness as dq, bridgeTransferCandidates as dr, buildBridgeRouteCatalogue as ds, computeNoEvmDacFinalityMessage as dt, computeNoEvmLeaderFinalityMessage as du, computeNoEvmReceiptsRoot as dv, computeNoEvmRoundFinalityMessage as dw, computeNoEvmTargetReceiptHash as dx, consumeNativeEvents as dy, decodeNativeAgentStateResponse as dz, type TypedNativeReceiptEvent as e, nativeMarketEventsFromReceipt as e0, nativeMarketStateFilterParams as e1, noEvmReceiptTrustPolicyFromChainInfo as e2, normalizeBridgeRouteCatalogue as e3, parseBridgeRouteCatalogueJson as e4, parseChainRegistryToml as e5, parseNativeDecodedEvent as e6, parseQuantity as e7, parseQuantityBig as e8, rankBridgeRoutes as e9, type NonceAad as eA, STANDARD_ALGO_NUMBER_ML_DSA_65 as eB, bincodeDecryptHint as eC, bincodeEncryptedEnvelope as eD, bincodeNonceAad as eE, bincodeSignedTransaction as eF, buildEncryptedEnvelope as eG, buildEncryptedSubmission as eH, encodeMlDsa65Opaque as eI, encodeTransactionForHash as eJ, encryptInnerTx as eK, fetchEncryptionKey as eL, mlDsa65AddressBytes as eM, mlDsa65AddressFromPublicKey as eN, outerSigDigest as eO, submitEncryptedEnvelope as eP, selectBridgeTransferRoute as ea, validateBridgeRouteCatalogue as eb, verifyNoEvmArchiveProofSignatures as ec, verifyNoEvmBlockFinalityEvidenceMultisig as ed, verifyNoEvmBlockFinalityEvidenceThreshold as ee, verifyNoEvmFinalityEvidenceMultisig as ef, verifyNoEvmFinalityEvidenceThreshold as eg, verifyNoEvmReceiptProof as eh, verifyNoEvmReceiptProofTrust as ei, ADDRESS_DERIVATION_DOMAIN as ej, DKG_AEAD_TAG_LEN as ek, DKG_NONCE_LEN as el, type DecryptHint as em, ENUM_VARIANT_INDEX_ML_DSA_65 as en, type EncryptedEnvelope as eo, type EncryptedSubmission as ep, ML_DSA_65_PUBLIC_KEY_LEN as eq, ML_DSA_65_SEED_LEN as er, ML_DSA_65_SIGNATURE_LEN as es, ML_DSA_65_SIGNING_KEY_LEN as et, ML_KEM_768_CIPHERTEXT_LEN as eu, ML_KEM_768_ENCAPSULATION_KEY_LEN as ev, ML_KEM_768_SHARED_SECRET_LEN as ew, type NativeTxExtension as ex, type NativeTxExtensionDescriptor as ey, type NativeTxExtensionLike as ez, type NativeEventsFilter as f, type NativeEventsResponse as g, type NativeAgentStateFilter as h, type NativeAgentStateResponse as i, type NativeMarketStateFilter as j, type NativeMarketStateResponse as k, type NativeMarketOrderBookDeltasRequest as l, type NativeMarketOrderBookDeltasResponse as m, type AddressProfileResponse as n, type AddressFlowResponse as o, type RedemptionQueueResponse as p, type MrcAccountResponse as q, type MrcHoldersResponse as r, type BridgeRoutesRequest as s, type BridgeRoutesResponse as t, type ServiceProbeResponse as u, type ClobMarketsResponse as v, type ClobMarketResponse as w, type ClobTradesResponse as x, type ClobOhlcResponse as y, type ClobOrderBookResponse as z };