@monolythium/core-sdk 0.2.1 → 0.2.2

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.js CHANGED
@@ -347,23 +347,23 @@ var PRECOMPILE_ADDRESSES = {
347
347
  TOKEN_FACTORY: "0x0000000000000000000000000000000000001000",
348
348
  /** Native central-limit order book — gateable. */
349
349
  CLOB: "0x0000000000000000000000000000000000001001",
350
- /** Agent execution surface (zkML-gated, ADR-0011/ADR-0020) — gateable. */
350
+ /** Agent execution surface — gateable. */
351
351
  AGENT: "0x0000000000000000000000000000000000001003",
352
352
  /** Account privacy policy + stealth/confidential ops — gateable. */
353
353
  PRIVACY: "0x0000000000000000000000000000000000001004",
354
354
  /** Operator + RPC node registry — non-gateable consensus invariant. */
355
355
  NODE_REGISTRY: "0x0000000000000000000000000000000000001005",
356
- /** Native zk-light-client bridge — gateable. */
356
+ /** Native bridge route-control surface — gateable. */
357
357
  BRIDGE: "0x0000000000000000000000000000000000001008",
358
- /** Decentralized multi-signer oracle (OI-0036) — non-gateable. */
358
+ /** Decentralized multi-signer oracle — non-gateable. */
359
359
  ORACLE: "0x0000000000000000000000000000000000001009",
360
- /** Distributed delegation primitive (Stage E.5a, Law §7.6) — gateable. */
360
+ /** Distributed delegation primitive — gateable. */
361
361
  DELEGATION: "0x000000000000000000000000000000000000100A",
362
- /** One-time emergency-key registry (Law §5.4 / §2.9) — non-gateable. */
362
+ /** One-time emergency-key registry — non-gateable. */
363
363
  EMERGENCY_KEY: "0x0000000000000000000000000000000000001100",
364
- /** VRF precompile (Law §5.4 / §5.6). */
364
+ /** VRF precompile. */
365
365
  VRF: "0x0000000000000000000000000000000000001101",
366
- /** Streaming-payments primitive (Law §5.4 / §5.7) — gateable. */
366
+ /** Streaming-payments primitive — gateable. */
367
367
  STREAMING_PAYMENTS: "0x0000000000000000000000000000000000001102",
368
368
  /** Cluster-name registry. */
369
369
  CLUSTER_NAME_REGISTRY: "0x0000000000000000000000000000000000001104",
@@ -381,11 +381,11 @@ var PRECOMPILE_ADDRESSES = {
381
381
  ESCROW: "0x000000000000000000000000000000000000110A",
382
382
  /** Agent-commerce arbiter registry. */
383
383
  ARBITER_REGISTRY: "0x000000000000000000000000000000000000110B",
384
- /** Agent spending policy — gateable, activated by Stage 7 milestones. */
384
+ /** Agent spending policy — gateable. */
385
385
  SPENDING_POLICY: "0x000000000000000000000000000000000000110C",
386
- /** Primary ML-DSA-65 pubkey registry — gateable, ADR-0034. */
386
+ /** Primary ML-DSA-65 pubkey registry — gateable. */
387
387
  PUBKEY_REGISTRY: "0x000000000000000000000000000000000000110D",
388
- /** Hierarchical name registry (Law §5.10, whitepaper §22.8) — gateable. */
388
+ /** Hierarchical name registry — gateable. */
389
389
  NAME_REGISTRY: "0x000000000000000000000000000000000000110E"
390
390
  };
391
391
 
@@ -2386,7 +2386,7 @@ var RpcClient = class _RpcClient {
2386
2386
  async web3Sha3(data) {
2387
2387
  return this.call("web3_sha3", [data]);
2388
2388
  }
2389
- // ---- lyth_* (Law §13.2 native namespace) --------------------------
2389
+ // ---- lyth_* native namespace --------------------------------------
2390
2390
  /** `lyth_listProviders` — paged registry enumeration. */
2391
2391
  async lythListProviders(capabilityMask, cursor = null, limit = 100) {
2392
2392
  return this.call("lyth_listProviders", [capabilityMask, cursor, limit]);
@@ -2618,14 +2618,26 @@ var RpcClient = class _RpcClient {
2618
2618
  async lythCurrentRound() {
2619
2619
  return normalizeRoundInfo(await this.call("lyth_currentRound", []));
2620
2620
  }
2621
+ /** `lyth_getTransactionCount` — native sender nonce. */
2622
+ async lythGetTransactionCount(address) {
2623
+ return parseRpcBigint(
2624
+ await this.call("lyth_getTransactionCount", [
2625
+ sdkTypedAddress(address, "user", "address")
2626
+ ]),
2627
+ "lyth_getTransactionCount"
2628
+ );
2629
+ }
2630
+ /** `lyth_executionUnitPrice` — native execution-unit price in lythoshi. */
2631
+ async lythExecutionUnitPrice() {
2632
+ return normalizeExecutionUnitPriceResponse(
2633
+ await this.call("lyth_executionUnitPrice", [])
2634
+ );
2635
+ }
2621
2636
  /** `lyth_peerSummary` — public-safe aggregate peer-network diagnostics. */
2622
2637
  async lythPeerSummary() {
2623
2638
  return this.call("lyth_peerSummary", []);
2624
2639
  }
2625
- /**
2626
- * `lyth_listActivePrecompiles` — milestone-gated precompile catalogue
2627
- * (OI-0170 / ADR-0015 §5).
2628
- */
2640
+ /** `lyth_listActivePrecompiles` — native precompile catalogue. */
2629
2641
  async lythListActivePrecompiles(block = "latest") {
2630
2642
  return this.call("lyth_listActivePrecompiles", [encodeBlockSelector(block)]);
2631
2643
  }
@@ -3550,6 +3562,34 @@ function normalizeRoundInfo(value) {
3550
3562
  height: parseRpcBigint(row["height"], "round height")
3551
3563
  };
3552
3564
  }
3565
+ function normalizeExecutionUnitPriceResponse(value) {
3566
+ if (!value || typeof value !== "object") {
3567
+ throw SdkError.malformed("execution unit price response must be an object");
3568
+ }
3569
+ const row = value;
3570
+ return {
3571
+ executionUnitPriceLythoshi: parseRpcBigint(
3572
+ fieldAlias(row, ["executionUnitPriceLythoshi", "execution_unit_price_lythoshi"]),
3573
+ "executionUnitPriceLythoshi"
3574
+ ).toString(),
3575
+ basePricePerExecutionUnitLythoshi: parseRpcBigint(
3576
+ fieldAlias(row, [
3577
+ "basePricePerExecutionUnitLythoshi",
3578
+ "base_price_per_execution_unit_lythoshi"
3579
+ ]),
3580
+ "basePricePerExecutionUnitLythoshi"
3581
+ ).toString(),
3582
+ priorityTipLythoshi: parseRpcBigint(
3583
+ fieldAlias(row, ["priorityTipLythoshi", "priority_tip_lythoshi"]),
3584
+ "priorityTipLythoshi"
3585
+ ).toString(),
3586
+ blockNumber: parseRpcNumberNullable(
3587
+ fieldAlias(row, ["blockNumber", "block_number"]),
3588
+ "blockNumber"
3589
+ ),
3590
+ source: readStringField(row, ["source"], "execution unit price source")
3591
+ };
3592
+ }
3553
3593
  function normalizeMempoolSnapshot(value) {
3554
3594
  if (!value || typeof value !== "object") {
3555
3595
  throw SdkError.malformed("mempool snapshot must be an object");
@@ -3566,6 +3606,19 @@ function normalizeMempoolSnapshot(value) {
3566
3606
  bytes_by_class: bytesByClass.map((v, i) => parseRpcBigint(v, `mempool bytes_by_class[${i}]`))
3567
3607
  };
3568
3608
  }
3609
+ function fieldAlias(record, keys) {
3610
+ for (const key of keys) {
3611
+ if (Object.prototype.hasOwnProperty.call(record, key)) return record[key];
3612
+ }
3613
+ return void 0;
3614
+ }
3615
+ function readStringField(record, keys, label) {
3616
+ const value = fieldAlias(record, keys);
3617
+ if (typeof value !== "string" || value.trim().length === 0) {
3618
+ throw SdkError.malformed(`${label} must be a non-empty string`);
3619
+ }
3620
+ return value.trim();
3621
+ }
3569
3622
  function normalizeCapabilitiesResponse(value) {
3570
3623
  return {
3571
3624
  ...value,
@@ -4070,6 +4123,8 @@ var BRIDGE_REVERT_TAGS = {
4070
4123
  };
4071
4124
  var BRIDGE_QUOTE_API_BLOCKED_REASON = "bridge quote requires a mono-core live quote API/runtime primitive";
4072
4125
  var BRIDGE_SUBMIT_API_BLOCKED_REASON = "bridge submit requires a mono-core live submit API/runtime primitive";
4126
+ var V1_BRIDGE_ALLOWED_FEE_TOKEN = "LINK";
4127
+ var V1_BRIDGE_ALLOWED_PROTOCOL = "chainlink-ccip";
4073
4128
  var BridgePrecompileError = class extends Error {
4074
4129
  constructor(message) {
4075
4130
  super(message);
@@ -4128,9 +4183,18 @@ function isBridgeFinalityZeroRevert(data) {
4128
4183
  function assessBridgeRoute(route) {
4129
4184
  const blockedReasons = [];
4130
4185
  const warnings = [];
4186
+ const feeToken = String(route.feeToken ?? "").trim();
4131
4187
  if (route.routeId.trim() === "") blockedReasons.push("route id missing");
4132
4188
  if (route.bridge.trim() === "") blockedReasons.push("bridge name missing");
4189
+ if (!isChainlinkCcipRoute(route.protocol, route.bridge, route.verifier.model)) {
4190
+ blockedReasons.push("bridge protocol must be Chainlink CCIP");
4191
+ }
4133
4192
  if (route.asset.trim() === "") blockedReasons.push("asset disclosure missing");
4193
+ if (feeToken === "") {
4194
+ blockedReasons.push("route fee token missing");
4195
+ } else if (feeToken.toUpperCase() !== V1_BRIDGE_ALLOWED_FEE_TOKEN) {
4196
+ blockedReasons.push("CCIP route fee token must be LINK");
4197
+ }
4134
4198
  if (route.verifier.model.trim() === "") blockedReasons.push("verifier model missing");
4135
4199
  if (route.verifier.threshold < 2 || route.verifier.participantCount < 2) {
4136
4200
  blockedReasons.push("verifier set must not be 1-of-1");
@@ -4372,8 +4436,23 @@ function validateBridgeRouteCatalogueRoute(idx, value, seen, blockedReasons) {
4372
4436
  20,
4373
4437
  blockedReasons
4374
4438
  );
4375
- validateTextField(`${prefix}.bridge`, value.bridge, 64, blockedReasons);
4439
+ const bridge = validateTextField(`${prefix}.bridge`, value.bridge, 64, blockedReasons);
4440
+ const protocol = validateOptionalTextField(
4441
+ `${prefix}.protocol`,
4442
+ field(value, "protocol", "routeProtocol", "route_protocol"),
4443
+ 64,
4444
+ blockedReasons
4445
+ );
4376
4446
  validateTextField(`${prefix}.asset`, value.asset, 64, blockedReasons);
4447
+ const feeToken = validateTextField(
4448
+ `${prefix}.feeToken`,
4449
+ field(value, "feeToken", "fee_token"),
4450
+ 32,
4451
+ blockedReasons
4452
+ );
4453
+ if (feeToken != null && feeToken.toUpperCase() !== V1_BRIDGE_ALLOWED_FEE_TOKEN) {
4454
+ blockedReasons.push(`${prefix}.feeToken must be LINK for CCIP routes`);
4455
+ }
4377
4456
  validateTextField(
4378
4457
  `${prefix}.sourceChain`,
4379
4458
  field(value, "sourceChain", "source_chain"),
@@ -4387,10 +4466,11 @@ function validateBridgeRouteCatalogueRoute(idx, value, seen, blockedReasons) {
4387
4466
  blockedReasons
4388
4467
  );
4389
4468
  const verifier = value.verifier;
4469
+ let verifierModel = null;
4390
4470
  if (!isRecord2(verifier)) {
4391
4471
  blockedReasons.push(`${prefix}.verifier must be an object`);
4392
4472
  } else {
4393
- validateTextField(`${prefix}.verifier.model`, verifier.model, 64, blockedReasons);
4473
+ verifierModel = validateTextField(`${prefix}.verifier.model`, verifier.model, 64, blockedReasons);
4394
4474
  const participantCount = field(verifier, "participantCount", "participant_count");
4395
4475
  if (!isU16(participantCount) || participantCount === 0) {
4396
4476
  blockedReasons.push(`${prefix}.verifier.participantCount must be non-zero`);
@@ -4401,6 +4481,9 @@ function validateBridgeRouteCatalogueRoute(idx, value, seen, blockedReasons) {
4401
4481
  blockedReasons.push(`${prefix}.verifier.threshold must be in 1..=participantCount`);
4402
4482
  }
4403
4483
  }
4484
+ if (!isChainlinkCcipRoute(protocol, bridge ?? "", verifierModel ?? "")) {
4485
+ blockedReasons.push(`${prefix}.protocol must be Chainlink CCIP`);
4486
+ }
4404
4487
  if (!decimalStringIsPositiveU256(field(value, "drainCapAtomic", "drain_cap_atomic"))) {
4405
4488
  blockedReasons.push(`${prefix}.drainCapAtomic must be a non-zero decimal u256`);
4406
4489
  }
@@ -4442,7 +4525,9 @@ function coerceBridgeRouteCatalogueRoute(value) {
4442
4525
  bridgeId: stringField2(value, "bridgeId", "bridge_id"),
4443
4526
  wrappedAsset: stringField2(value, "wrappedAsset", "wrapped_asset"),
4444
4527
  bridge: stringField2(value, "bridge").trim(),
4528
+ protocol: optionalStringField(value, "protocol", "routeProtocol", "route_protocol"),
4445
4529
  asset: stringField2(value, "asset").trim(),
4530
+ feeToken: stringField2(value, "feeToken", "fee_token").trim(),
4446
4531
  sourceChain: stringField2(value, "sourceChain", "source_chain").trim(),
4447
4532
  destinationChain: stringField2(value, "destinationChain", "destination_chain").trim(),
4448
4533
  verifier: {
@@ -4471,6 +4556,19 @@ function cloneBridgeRouteCatalogueRoute(route) {
4471
4556
  verifier: { ...route.verifier }
4472
4557
  };
4473
4558
  }
4559
+ function isChainlinkCcipRoute(protocol, bridge, verifierModel) {
4560
+ const normalizedProtocol = normalizeBridgeProtocol(protocol ?? "");
4561
+ if (normalizedProtocol.length > 0) {
4562
+ return normalizedProtocol === "chainlinkccip" || normalizedProtocol === "ccip";
4563
+ }
4564
+ return bridgeLabelLooksCcip(bridge) || bridgeLabelLooksCcip(verifierModel);
4565
+ }
4566
+ function bridgeLabelLooksCcip(value) {
4567
+ return normalizeBridgeProtocol(value).includes("ccip");
4568
+ }
4569
+ function normalizeBridgeProtocol(value) {
4570
+ return value.trim().toLowerCase().replace(/[^a-z0-9]/g, "");
4571
+ }
4474
4572
  function bridgeRouteCandidate(intent, intentReasons, route) {
4475
4573
  const assessment = assessBridgeRoute(route);
4476
4574
  const blockedReasons = [...intentReasons, ...assessment.blockedReasons];
@@ -4566,16 +4664,28 @@ function trimmedEq(left, right) {
4566
4664
  function isRecord2(value) {
4567
4665
  return typeof value === "object" && value !== null && !Array.isArray(value);
4568
4666
  }
4569
- function field(record, camel, snake) {
4570
- if (Object.prototype.hasOwnProperty.call(record, camel)) return record[camel];
4571
- if (snake != null && Object.prototype.hasOwnProperty.call(record, snake)) return record[snake];
4667
+ function field(record, ...keys) {
4668
+ for (const key of keys) {
4669
+ if (Object.prototype.hasOwnProperty.call(record, key)) return record[key];
4670
+ }
4572
4671
  return void 0;
4573
4672
  }
4574
- function stringField2(record, camel, snake) {
4575
- return field(record, camel, snake);
4673
+ function stringField2(record, ...keys) {
4674
+ return field(record, ...keys);
4576
4675
  }
4577
- function numberField(record, camel, snake) {
4578
- return field(record, camel, snake);
4676
+ function optionalStringField(record, ...keys) {
4677
+ let raw;
4678
+ for (const key of keys) {
4679
+ if (Object.prototype.hasOwnProperty.call(record, key)) {
4680
+ raw = record[key];
4681
+ break;
4682
+ }
4683
+ }
4684
+ if (raw === void 0 || raw === null) return null;
4685
+ return typeof raw === "string" ? raw.trim() : "";
4686
+ }
4687
+ function numberField(record, ...keys) {
4688
+ return field(record, ...keys);
4579
4689
  }
4580
4690
  function validateTextField(name, value, maxLen, blockedReasons) {
4581
4691
  if (typeof value !== "string") {
@@ -4589,6 +4699,10 @@ function validateTextField(name, value, maxLen, blockedReasons) {
4589
4699
  }
4590
4700
  return trimmed;
4591
4701
  }
4702
+ function validateOptionalTextField(name, value, maxLen, blockedReasons) {
4703
+ if (value === void 0 || value === null) return null;
4704
+ return validateTextField(name, value, maxLen, blockedReasons);
4705
+ }
4592
4706
  function validateHexBytes(name, value, expectedBytes, blockedReasons) {
4593
4707
  if (typeof value !== "string") {
4594
4708
  blockedReasons.push(`${name} must be ${expectedBytes} bytes of hex`);
@@ -4718,9 +4832,10 @@ function concatBytes4(...parts) {
4718
4832
  var NO_EVM_RECEIPT_PROOF_SCHEMA = "mono.no_evm_receipt_proof.v1";
4719
4833
  var NO_EVM_RECEIPT_PROOF_TYPE = "canonicalReceiptsTranscript";
4720
4834
  var NO_EVM_RECEIPT_INCLUSION_PROOF_TYPE = "canonicalReceiptInclusion";
4721
- var NO_EVM_RECEIPT_ROOT_ALGORITHM = "keccak256(monolythium/v4.1/receipts_root_empty/1|receipt_leaf/1|receipt_node/1 binary Merkle)";
4835
+ var NO_EVM_RECEIPT_ROOT_ALGORITHM = "keccak256-binary-merkle(monolythium/v4.1/receipt_leaf/1, monolythium/v4.1/receipt_node/1, duplicate-last padding)";
4836
+ var NO_EVM_LEGACY_BINARY_RECEIPT_ROOT_ALGORITHM = "keccak256(monolythium/v4.1/receipts_root_empty/1|receipt_leaf/1|receipt_node/1 binary Merkle)";
4722
4837
  var NO_EVM_LEGACY_RECEIPT_ROOT_ALGORITHM = "keccak256(monolythium/v2/receipts_root/1 || len || indexed bincode receipts)";
4723
- var NO_EVM_RECEIPT_CODEC = "bincode(protocore_evm::Receipt)";
4838
+ var NO_EVM_RECEIPT_CODEC = "bincode(protocore_execution_types::Receipt)";
4724
4839
  var NO_EVM_RECEIPTS_ROOT_DOMAIN = "monolythium/v4.1/receipts_root_empty/1";
4725
4840
  var NO_EVM_RECEIPT_LEAF_DOMAIN = "monolythium/v4.1/receipt_leaf/1";
4726
4841
  var NO_EVM_RECEIPT_NODE_DOMAIN = "monolythium/v4.1/receipt_node/1";
@@ -5957,7 +6072,7 @@ function getOptionalHistorySource(proof) {
5957
6072
  return value === void 0 ? void 0 : String(value);
5958
6073
  }
5959
6074
  function assertSupportedRootAlgorithm(actual) {
5960
- if (actual !== NO_EVM_RECEIPT_ROOT_ALGORITHM && actual !== NO_EVM_LEGACY_RECEIPT_ROOT_ALGORITHM && actual !== NO_EVM_COMPACT_INCLUSION_TREE_ALGORITHM) {
6075
+ if (actual !== NO_EVM_RECEIPT_ROOT_ALGORITHM && actual !== NO_EVM_LEGACY_BINARY_RECEIPT_ROOT_ALGORITHM && actual !== NO_EVM_LEGACY_RECEIPT_ROOT_ALGORITHM && actual !== NO_EVM_COMPACT_INCLUSION_TREE_ALGORITHM) {
5961
6076
  throw new NoEvmReceiptProofError(
5962
6077
  "unsupported_root_algorithm",
5963
6078
  `unsupported no-EVM receipt proof rootAlgorithm: ${actual}`
@@ -7885,8 +8000,8 @@ var MONOLYTHIUM_TESTNET_CHAIN_ID = 69420n;
7885
8000
  var MONOLYTHIUM_TESTNET_NETWORK_NAME = "monolythium-testnet";
7886
8001
 
7887
8002
  // src/index.ts
7888
- var version = "0.2.1";
8003
+ var version = "0.2.2";
7889
8004
 
7890
- export { ADDRESS_HRP, ADDRESS_KIND_HRPS, API_STREAM_TOPICS, AddressError, AgentActionError, ApiClient, BRIDGE_QUOTE_API_BLOCKED_REASON, BRIDGE_REVERT_TAGS, BRIDGE_SELECTORS, BRIDGE_SUBMIT_API_BLOCKED_REASON, BURN_ADDR, BridgePrecompileError, BridgeRouteCatalogueError, CHAIN_REGISTRY, CHAIN_REGISTRY_RAW_BASE, CLOB_MARKET_ID_DOMAIN_TAG, CLOB_SELECTORS, DELEGATION_REVERT_TAGS, DELEGATION_SELECTORS, DelegationPrecompileError, LYTHOSHI_PER_LYTH, LYTH_DECIMALS, MAX_NATIVE_CALL_FORWARDER_REQUEST_BYTES, MAX_NATIVE_RECEIPT_EVENTS, ML_DSA_65_PUBLIC_KEY_LEN2 as ML_DSA_65_PUBLIC_KEY_LEN, ML_DSA_65_SIGNATURE_LEN2 as ML_DSA_65_SIGNATURE_LEN, MONOLYTHIUM_TESTNET_CHAIN_ID, MONOLYTHIUM_TESTNET_NETWORK_NAME, MRV_DEPLOY_PAYLOAD_VERSION, MRV_FORMAT_VERSION, MRV_MAX_ABI_SYMBOLS, MRV_MAX_CODE_BYTES, MRV_MAX_DEBUG_BYTES, MRV_MAX_MEMORY_PAGES, MRV_MAX_STORAGE_NAMESPACE_BYTES, MRV_MEMORY_PAGE_BYTES, MRV_PROFILE_MONO_RV32IM_V1, MRV_STRUCTURED_FEE_FIELDS, MRV_TX_EXTENSION_KIND, MRV_TX_EXTENSION_V1, MarketActionError, MrvValidationError, NATIVE_AGENT_MODULE_ADDRESS, NATIVE_AGENT_MODULE_ADDRESS_BYTES, NATIVE_CALL_FORWARDER_ARTIFACT_PROFILE, NATIVE_CALL_FORWARDER_RESPONSE_CAPACITY, NATIVE_CALL_FORWARDER_RESPONSE_OFFSET, NATIVE_DEV_HOST_API_VERSION, NATIVE_DEV_IPC_PROTOCOL_VERSION, NATIVE_DEV_MANIFEST_SCHEMA_VERSION, NATIVE_LYTH_DECIMALS, NATIVE_MARKET_EVENT_FAMILY, NATIVE_MARKET_MODULE_ADDRESS, NATIVE_MARKET_MODULE_ADDRESS_BYTES, NATIVE_MARKET_ORDER_BOOK_STREAM_TOPIC, NODE_REGISTRY_CAPABILITIES, NODE_REGISTRY_CAPABILITY_MASK, NODE_REGISTRY_PUBLIC_SERVICE_MASK, NODE_REGISTRY_SELECTORS, NO_EVM_ARCHIVE_PROOF_SCHEMA, NO_EVM_ARCHIVE_SIGNATURE_SCHEME, NO_EVM_FINALITY_EVIDENCE_SCHEMA, NO_EVM_FINALITY_EVIDENCE_SOURCE, NO_EVM_RECEIPTS_ROOT_DOMAIN, NO_EVM_RECEIPT_CODEC, NO_EVM_RECEIPT_PROOF_SCHEMA, NO_EVM_RECEIPT_PROOF_TYPE, NO_EVM_RECEIPT_ROOT_ALGORITHM, NoEvmReceiptProofError, NodeRegistryError, PRECOMPILE_ADDRESSES, PUBKEY_REGISTRY_ML_DSA_65_PUBLIC_KEY_LEN, PUBKEY_REGISTRY_SELECTORS, PubkeyRegistryError, RESERVED_ADDRESS_HRPS, RpcClient, SERVICE_PROBE_STATUS, SET_POLICY_CLAIM_DOMAIN_TAG, SPENDING_POLICY_SELECTORS, SdkError, SpendingPolicyError, TESTNET_69420, addressBytesToHex, addressToBech32, addressToTypedBech32, apiEndpointFromRpcEndpoint, assertMrvCallNativeSubmissionPlan, assertMrvDeployNativeSubmissionPlan, assertMrvFeeDisplayConformance, assertMrvStructuredFeeConformance, assertNativeDevMrcTokenPlan, assertNativeDevMrvDeployPlan, assertNativeDevWalletApprovalRequest, assertNativeMarketOrderBookStreamPayload, assessBridgeRoute, bech32ToAddress, bech32ToAddressBytes, bridgeAddressHex, bridgeQuoteSubmitReadiness, bridgeRoutesReadiness, bridgeTransferCandidates, buildBridgeRouteCatalogue, buildCancelSpotOrderPlan, buildMrvCallNativeTxPlan, buildMrvCallPlan, buildMrvCallRequest, buildMrvDeployNativeTxPlan, buildMrvDeployPayloadNativeTxPlan, buildMrvDeployPayloadPlan, buildMrvDeployPayloadRequest, buildMrvDeployPlan, buildMrvDeployRequest, buildNativeAgentCreateEscrowForwarderInput, buildNativeAgentCreateEscrowModuleCall, buildNativeAgentModuleCallEnvelope, buildNativeAgentRecordReputationForwarderInput, buildNativeAgentRecordReputationModuleCall, buildNativeAgentSetSpendingPolicyForwarderInput, buildNativeAgentSetSpendingPolicyModuleCall, buildNativeCallForwarderArtifact, buildNativeMarketModuleCallEnvelope, buildNativeNftBuyListingForwarderInput, buildNativeNftBuyListingModuleCall, buildNativeNftCancelListingForwarderInput, buildNativeNftCancelListingModuleCall, buildNativeNftCreateListingForwarderInput, buildNativeNftCreateListingModuleCall, buildNativeNftPlaceAuctionBidForwarderInput, buildNativeNftPlaceAuctionBidModuleCall, buildNativeNftSettleAuctionForwarderInput, buildNativeNftSettleAuctionModuleCall, buildNativeNftSweepExpiredListingsForwarderInput, buildNativeNftSweepExpiredListingsModuleCall, buildNativeSpotCancelOrderForwarderInput, buildNativeSpotCancelOrderModuleCall, buildNativeSpotCreateMarketForwarderInput, buildNativeSpotCreateMarketModuleCall, buildNativeSpotLimitOrderForwarderInput, buildNativeSpotLimitOrderModuleCall, buildNativeSpotSettleLimitOrderForwarderInput, buildNativeSpotSettleLimitOrderModuleCall, buildNativeSpotSettleRoutedLimitOrderForwarderInput, buildNativeSpotSettleRoutedLimitOrderModuleCall, buildPlaceSpotLimitOrderPlan, buildPlaceSpotMarketOrderExPlan, buildPlaceSpotMarketOrderPlan, checkMrvFeeDisplayConformance, checkMrvStructuredFeeConformance, checkNativeDevkitCompatibility, clobAddressHex, compareNativeDevVersions, composeClaimBoundMessage, computeNoEvmDacFinalityMessage, computeNoEvmLeaderFinalityMessage, computeNoEvmReceiptsRoot, computeNoEvmRoundFinalityMessage, computeNoEvmTargetReceiptHash, consumeNativeEvents, decodeHasPubkeyReturn, decodeLookupPubkeyReturn, decodeNativeAgentStateResponse, decodeNativeMarketOrderBookDeltasResponse, decodeNativeReceiptResponse, decodeNoEvmReceiptTranscript, decodeTxFeedResponse, delegationAddressHex, deriveClobMarketId, deriveMrvContractAddress, deriveNativeSpotMarketId, deriveNativeSpotOrderId, encodeBlockSelector, encodeCancelOrderCalldata, encodeClaimPolicyByAddressCalldata, encodeCompleteRedemptionCalldata, encodeDisableCalldata, encodeEnableCalldata, encodeHasPubkeyCalldata, encodeLockBridgeConfigCalldata, encodeLookupPubkeyCalldata, encodeMrvDeployPayload, encodeNativeAgentAcceptEscrowCall, encodeNativeAgentApproveEscrowCall, encodeNativeAgentArbiterGetCall, encodeNativeAgentAttestationGetCall, encodeNativeAgentAvailabilityGetCall, encodeNativeAgentCancelEscrowCall, encodeNativeAgentCloseAvailabilityCall, encodeNativeAgentConsentGetCall, encodeNativeAgentCounterEscrowCall, encodeNativeAgentCreateEscrowCall, encodeNativeAgentDeactivateServiceCall, encodeNativeAgentDisputeEscrowCall, encodeNativeAgentEscrowGetCall, encodeNativeAgentGrantConsentCall, encodeNativeAgentIssueAttestationCall, encodeNativeAgentIssuerGetCall, encodeNativeAgentListServiceCall, encodeNativeAgentModuleForwarderInput, encodeNativeAgentOpenAvailabilityCall, encodeNativeAgentRecordPolicySpendCall, encodeNativeAgentRecordReputationCall, encodeNativeAgentRegisterArbiterCall, encodeNativeAgentRegisterIssuerCall, encodeNativeAgentReputationGetCall, encodeNativeAgentResolveEscrowCall, encodeNativeAgentRevokeAttestationCall, encodeNativeAgentRevokeConsentCall, encodeNativeAgentServiceGetCall, encodeNativeAgentSetAvailabilityCall, encodeNativeAgentSetSpendingPolicyCall, encodeNativeAgentSpendingPolicyGetCall, encodeNativeAgentStartEscrowCall, encodeNativeAgentSubmitEscrowCall, encodeNativeMarketModuleForwarderInput, encodeNativeNftBuyListingCall, encodeNativeNftCancelListingCall, encodeNativeNftCreateListingCall, encodeNativeNftPlaceAuctionBidCall, encodeNativeNftSettleAuctionCall, encodeNativeNftSweepExpiredListingsCall, encodeNativeSpotCancelOrderCall, encodeNativeSpotCreateMarketCall, encodeNativeSpotLimitOrderCall, encodeNativeSpotSettleLimitOrderCall, encodeNativeSpotSettleRoutedLimitOrderCall, encodePlaceLimitOrderCalldata, encodePlaceMarketOrderCalldata, encodePlaceMarketOrderExCalldata, encodeRegisterPubkeyCalldata, encodeReportServiceProbeCalldata, encodeSetBridgeResumeCooldownCalldata, encodeSetBridgeRouteFinalityCalldata, encodeSetPolicyCalldata, encodeSetPolicyClaimCalldata, exportBridgeRouteCatalogueJson, fetchChainInfoLatest, fetchChainRegistryLatest, formatLyth, formatLythoshi, formatNativeReceiptFeeDisplay, getChainInfo, getNoEvmReceiptTrustPolicy, getP2pSeeds, getRpcEndpoints, hexToAddressBytes, isBridgeAdminLockedRevert, isBridgeCooldownZeroRevert, isBridgeFinalityZeroRevert, isBridgeResumeCooldownActiveRevert, isConcreteServiceProbeStatus, isNativeDecodedEvent, isNativeMarketOrderBookStreamPayload, isRedemptionPrincipalUnavailableRevert, isSinglePublicServiceProbeMask, isValidNodeRegistryCapabilities, isValidPublicServiceProbeMask, mrvAddressToBech32, mrvBech32ToAddress, mrvCodeHashHex, mrvV1TransactionExtension, nativeAgentStateFilterParams, nativeDevSchemaFieldNames, nativeDevUiStrings, nativeEventMatches, nativeEventsFilterParams, nativeEventsFromHistory, nativeEventsFromReceipt, nativeMarketEventFilter, nativeMarketEventsFromHistory, nativeMarketEventsFromReceipt, nativeMarketStateFilterParams, noEvmReceiptTrustPolicyFromChainInfo, nodeRegistryAddressHex, normalizeAddressHex, normalizeBridgeRouteCatalogue, parseAddress, parseBridgeRouteCatalogueJson, parseChainRegistryToml, parseLythToLythoshi, parseNativeDecodedEvent, parseQuantity, parseQuantityBig, pubkeyRegistryAddressHex, rankBridgeRoutes, requireTypedAddress, resolveStudioHostStatus, selectBridgeTransferRoute, serviceProbeStatusLabel, spendingPolicyAddressHex, submitMrvCallNativeTx, submitMrvDeployNativeTx, submitMrvDeployPayloadNativeTx, typedBech32ToAddress, validateAddress, validateBridgeRouteCatalogue, validateMrvArtifactMetadata, validateMrvCallRequest, validateMrvDeployRequest, verifyNoEvmArchiveProofSignatures, verifyNoEvmBlockFinalityEvidenceMultisig, verifyNoEvmBlockFinalityEvidenceThreshold, verifyNoEvmFinalityEvidenceMultisig, verifyNoEvmFinalityEvidenceThreshold, verifyNoEvmReceiptProof, verifyNoEvmReceiptProofTrust, version };
8005
+ export { ADDRESS_HRP, ADDRESS_KIND_HRPS, API_STREAM_TOPICS, AddressError, AgentActionError, ApiClient, BRIDGE_QUOTE_API_BLOCKED_REASON, BRIDGE_REVERT_TAGS, BRIDGE_SELECTORS, BRIDGE_SUBMIT_API_BLOCKED_REASON, BURN_ADDR, BridgePrecompileError, BridgeRouteCatalogueError, CHAIN_REGISTRY, CHAIN_REGISTRY_RAW_BASE, CLOB_MARKET_ID_DOMAIN_TAG, CLOB_SELECTORS, DELEGATION_REVERT_TAGS, DELEGATION_SELECTORS, DelegationPrecompileError, LYTHOSHI_PER_LYTH, LYTH_DECIMALS, MAX_NATIVE_CALL_FORWARDER_REQUEST_BYTES, MAX_NATIVE_RECEIPT_EVENTS, ML_DSA_65_PUBLIC_KEY_LEN2 as ML_DSA_65_PUBLIC_KEY_LEN, ML_DSA_65_SIGNATURE_LEN2 as ML_DSA_65_SIGNATURE_LEN, MONOLYTHIUM_TESTNET_CHAIN_ID, MONOLYTHIUM_TESTNET_NETWORK_NAME, MRV_DEPLOY_PAYLOAD_VERSION, MRV_FORMAT_VERSION, MRV_MAX_ABI_SYMBOLS, MRV_MAX_CODE_BYTES, MRV_MAX_DEBUG_BYTES, MRV_MAX_MEMORY_PAGES, MRV_MAX_STORAGE_NAMESPACE_BYTES, MRV_MEMORY_PAGE_BYTES, MRV_PROFILE_MONO_RV32IM_V1, MRV_STRUCTURED_FEE_FIELDS, MRV_TX_EXTENSION_KIND, MRV_TX_EXTENSION_V1, MarketActionError, MrvValidationError, NATIVE_AGENT_MODULE_ADDRESS, NATIVE_AGENT_MODULE_ADDRESS_BYTES, NATIVE_CALL_FORWARDER_ARTIFACT_PROFILE, NATIVE_CALL_FORWARDER_RESPONSE_CAPACITY, NATIVE_CALL_FORWARDER_RESPONSE_OFFSET, NATIVE_DEV_HOST_API_VERSION, NATIVE_DEV_IPC_PROTOCOL_VERSION, NATIVE_DEV_MANIFEST_SCHEMA_VERSION, NATIVE_LYTH_DECIMALS, NATIVE_MARKET_EVENT_FAMILY, NATIVE_MARKET_MODULE_ADDRESS, NATIVE_MARKET_MODULE_ADDRESS_BYTES, NATIVE_MARKET_ORDER_BOOK_STREAM_TOPIC, NODE_REGISTRY_CAPABILITIES, NODE_REGISTRY_CAPABILITY_MASK, NODE_REGISTRY_PUBLIC_SERVICE_MASK, NODE_REGISTRY_SELECTORS, NO_EVM_ARCHIVE_PROOF_SCHEMA, NO_EVM_ARCHIVE_SIGNATURE_SCHEME, NO_EVM_FINALITY_EVIDENCE_SCHEMA, NO_EVM_FINALITY_EVIDENCE_SOURCE, NO_EVM_RECEIPTS_ROOT_DOMAIN, NO_EVM_RECEIPT_CODEC, NO_EVM_RECEIPT_PROOF_SCHEMA, NO_EVM_RECEIPT_PROOF_TYPE, NO_EVM_RECEIPT_ROOT_ALGORITHM, NoEvmReceiptProofError, NodeRegistryError, PRECOMPILE_ADDRESSES, PUBKEY_REGISTRY_ML_DSA_65_PUBLIC_KEY_LEN, PUBKEY_REGISTRY_SELECTORS, PubkeyRegistryError, RESERVED_ADDRESS_HRPS, RpcClient, SERVICE_PROBE_STATUS, SET_POLICY_CLAIM_DOMAIN_TAG, SPENDING_POLICY_SELECTORS, SdkError, SpendingPolicyError, TESTNET_69420, V1_BRIDGE_ALLOWED_FEE_TOKEN, V1_BRIDGE_ALLOWED_PROTOCOL, addressBytesToHex, addressToBech32, addressToTypedBech32, apiEndpointFromRpcEndpoint, assertMrvCallNativeSubmissionPlan, assertMrvDeployNativeSubmissionPlan, assertMrvFeeDisplayConformance, assertMrvStructuredFeeConformance, assertNativeDevMrcTokenPlan, assertNativeDevMrvDeployPlan, assertNativeDevWalletApprovalRequest, assertNativeMarketOrderBookStreamPayload, assessBridgeRoute, bech32ToAddress, bech32ToAddressBytes, bridgeAddressHex, bridgeQuoteSubmitReadiness, bridgeRoutesReadiness, bridgeTransferCandidates, buildBridgeRouteCatalogue, buildCancelSpotOrderPlan, buildMrvCallNativeTxPlan, buildMrvCallPlan, buildMrvCallRequest, buildMrvDeployNativeTxPlan, buildMrvDeployPayloadNativeTxPlan, buildMrvDeployPayloadPlan, buildMrvDeployPayloadRequest, buildMrvDeployPlan, buildMrvDeployRequest, buildNativeAgentCreateEscrowForwarderInput, buildNativeAgentCreateEscrowModuleCall, buildNativeAgentModuleCallEnvelope, buildNativeAgentRecordReputationForwarderInput, buildNativeAgentRecordReputationModuleCall, buildNativeAgentSetSpendingPolicyForwarderInput, buildNativeAgentSetSpendingPolicyModuleCall, buildNativeCallForwarderArtifact, buildNativeMarketModuleCallEnvelope, buildNativeNftBuyListingForwarderInput, buildNativeNftBuyListingModuleCall, buildNativeNftCancelListingForwarderInput, buildNativeNftCancelListingModuleCall, buildNativeNftCreateListingForwarderInput, buildNativeNftCreateListingModuleCall, buildNativeNftPlaceAuctionBidForwarderInput, buildNativeNftPlaceAuctionBidModuleCall, buildNativeNftSettleAuctionForwarderInput, buildNativeNftSettleAuctionModuleCall, buildNativeNftSweepExpiredListingsForwarderInput, buildNativeNftSweepExpiredListingsModuleCall, buildNativeSpotCancelOrderForwarderInput, buildNativeSpotCancelOrderModuleCall, buildNativeSpotCreateMarketForwarderInput, buildNativeSpotCreateMarketModuleCall, buildNativeSpotLimitOrderForwarderInput, buildNativeSpotLimitOrderModuleCall, buildNativeSpotSettleLimitOrderForwarderInput, buildNativeSpotSettleLimitOrderModuleCall, buildNativeSpotSettleRoutedLimitOrderForwarderInput, buildNativeSpotSettleRoutedLimitOrderModuleCall, buildPlaceSpotLimitOrderPlan, buildPlaceSpotMarketOrderExPlan, buildPlaceSpotMarketOrderPlan, checkMrvFeeDisplayConformance, checkMrvStructuredFeeConformance, checkNativeDevkitCompatibility, clobAddressHex, compareNativeDevVersions, composeClaimBoundMessage, computeNoEvmDacFinalityMessage, computeNoEvmLeaderFinalityMessage, computeNoEvmReceiptsRoot, computeNoEvmRoundFinalityMessage, computeNoEvmTargetReceiptHash, consumeNativeEvents, decodeHasPubkeyReturn, decodeLookupPubkeyReturn, decodeNativeAgentStateResponse, decodeNativeMarketOrderBookDeltasResponse, decodeNativeReceiptResponse, decodeNoEvmReceiptTranscript, decodeTxFeedResponse, delegationAddressHex, deriveClobMarketId, deriveMrvContractAddress, deriveNativeSpotMarketId, deriveNativeSpotOrderId, encodeBlockSelector, encodeCancelOrderCalldata, encodeClaimPolicyByAddressCalldata, encodeCompleteRedemptionCalldata, encodeDisableCalldata, encodeEnableCalldata, encodeHasPubkeyCalldata, encodeLockBridgeConfigCalldata, encodeLookupPubkeyCalldata, encodeMrvDeployPayload, encodeNativeAgentAcceptEscrowCall, encodeNativeAgentApproveEscrowCall, encodeNativeAgentArbiterGetCall, encodeNativeAgentAttestationGetCall, encodeNativeAgentAvailabilityGetCall, encodeNativeAgentCancelEscrowCall, encodeNativeAgentCloseAvailabilityCall, encodeNativeAgentConsentGetCall, encodeNativeAgentCounterEscrowCall, encodeNativeAgentCreateEscrowCall, encodeNativeAgentDeactivateServiceCall, encodeNativeAgentDisputeEscrowCall, encodeNativeAgentEscrowGetCall, encodeNativeAgentGrantConsentCall, encodeNativeAgentIssueAttestationCall, encodeNativeAgentIssuerGetCall, encodeNativeAgentListServiceCall, encodeNativeAgentModuleForwarderInput, encodeNativeAgentOpenAvailabilityCall, encodeNativeAgentRecordPolicySpendCall, encodeNativeAgentRecordReputationCall, encodeNativeAgentRegisterArbiterCall, encodeNativeAgentRegisterIssuerCall, encodeNativeAgentReputationGetCall, encodeNativeAgentResolveEscrowCall, encodeNativeAgentRevokeAttestationCall, encodeNativeAgentRevokeConsentCall, encodeNativeAgentServiceGetCall, encodeNativeAgentSetAvailabilityCall, encodeNativeAgentSetSpendingPolicyCall, encodeNativeAgentSpendingPolicyGetCall, encodeNativeAgentStartEscrowCall, encodeNativeAgentSubmitEscrowCall, encodeNativeMarketModuleForwarderInput, encodeNativeNftBuyListingCall, encodeNativeNftCancelListingCall, encodeNativeNftCreateListingCall, encodeNativeNftPlaceAuctionBidCall, encodeNativeNftSettleAuctionCall, encodeNativeNftSweepExpiredListingsCall, encodeNativeSpotCancelOrderCall, encodeNativeSpotCreateMarketCall, encodeNativeSpotLimitOrderCall, encodeNativeSpotSettleLimitOrderCall, encodeNativeSpotSettleRoutedLimitOrderCall, encodePlaceLimitOrderCalldata, encodePlaceMarketOrderCalldata, encodePlaceMarketOrderExCalldata, encodeRegisterPubkeyCalldata, encodeReportServiceProbeCalldata, encodeSetBridgeResumeCooldownCalldata, encodeSetBridgeRouteFinalityCalldata, encodeSetPolicyCalldata, encodeSetPolicyClaimCalldata, exportBridgeRouteCatalogueJson, fetchChainInfoLatest, fetchChainRegistryLatest, formatLyth, formatLythoshi, formatNativeReceiptFeeDisplay, getChainInfo, getNoEvmReceiptTrustPolicy, getP2pSeeds, getRpcEndpoints, hexToAddressBytes, isBridgeAdminLockedRevert, isBridgeCooldownZeroRevert, isBridgeFinalityZeroRevert, isBridgeResumeCooldownActiveRevert, isConcreteServiceProbeStatus, isNativeDecodedEvent, isNativeMarketOrderBookStreamPayload, isRedemptionPrincipalUnavailableRevert, isSinglePublicServiceProbeMask, isValidNodeRegistryCapabilities, isValidPublicServiceProbeMask, mrvAddressToBech32, mrvBech32ToAddress, mrvCodeHashHex, mrvV1TransactionExtension, nativeAgentStateFilterParams, nativeDevSchemaFieldNames, nativeDevUiStrings, nativeEventMatches, nativeEventsFilterParams, nativeEventsFromHistory, nativeEventsFromReceipt, nativeMarketEventFilter, nativeMarketEventsFromHistory, nativeMarketEventsFromReceipt, nativeMarketStateFilterParams, noEvmReceiptTrustPolicyFromChainInfo, nodeRegistryAddressHex, normalizeAddressHex, normalizeBridgeRouteCatalogue, parseAddress, parseBridgeRouteCatalogueJson, parseChainRegistryToml, parseLythToLythoshi, parseNativeDecodedEvent, parseQuantity, parseQuantityBig, pubkeyRegistryAddressHex, rankBridgeRoutes, requireTypedAddress, resolveStudioHostStatus, selectBridgeTransferRoute, serviceProbeStatusLabel, spendingPolicyAddressHex, submitMrvCallNativeTx, submitMrvDeployNativeTx, submitMrvDeployPayloadNativeTx, typedBech32ToAddress, validateAddress, validateBridgeRouteCatalogue, validateMrvArtifactMetadata, validateMrvCallRequest, validateMrvDeployRequest, verifyNoEvmArchiveProofSignatures, verifyNoEvmBlockFinalityEvidenceMultisig, verifyNoEvmBlockFinalityEvidenceThreshold, verifyNoEvmFinalityEvidenceMultisig, verifyNoEvmFinalityEvidenceThreshold, verifyNoEvmReceiptProof, verifyNoEvmReceiptProofTrust, version };
7891
8006
  //# sourceMappingURL=index.js.map
7892
8007
  //# sourceMappingURL=index.js.map