@monolythium/core-sdk 0.4.9 → 0.4.11
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.cjs +174 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +156 -1
- package/dist/index.d.ts +156 -1
- package/dist/index.js +159 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1932,6 +1932,161 @@ declare function encodeVrfEvaluateCalldata(blockHeight: bigint | number | string
|
|
|
1932
1932
|
/** Decode a successful VRF return payload into 32 bytes. */
|
|
1933
1933
|
declare function decodeVrfOutput(output: string | Uint8Array | readonly number[]): Uint8Array;
|
|
1934
1934
|
|
|
1935
|
+
/**
|
|
1936
|
+
* Native `monom` M-of-N multisig witness assembly.
|
|
1937
|
+
*
|
|
1938
|
+
* Monolythium v2 has a **native** (precompile-free, protocol-level) multisig
|
|
1939
|
+
* spend path: a `monom…` address is `BLAKE3("MONO_MULTISIG_BLAKE3_20_V1" ||
|
|
1940
|
+
* threshold_be16 || (member_len_be8 || member)*sorted)[..20]`, and value is
|
|
1941
|
+
* moved *from* it by attaching a self-describing M-of-N witness as a typed
|
|
1942
|
+
* transaction extension (kind `0x40`). No on-chain registry is consulted —
|
|
1943
|
+
* the verifier reconstructs the address from the witness alone.
|
|
1944
|
+
*
|
|
1945
|
+
* This module is wire-critical: every byte here mirrors the Rust source of
|
|
1946
|
+
* truth exactly (`mono-core/crates/execution/tx/src/multisig.rs` for the
|
|
1947
|
+
* witness body + framing, `crates/crypto/crypto/src/address.rs` for the
|
|
1948
|
+
* address rule, and `crates/core/sdk/src/tx.rs` for
|
|
1949
|
+
* `multisig_base_sighash` / `assemble_multisig_signed`). Parity is pinned in
|
|
1950
|
+
* `tests/multisig.test.ts` against ground-truth bytes emitted by the Rust
|
|
1951
|
+
* crate.
|
|
1952
|
+
*
|
|
1953
|
+
* Design notes mirrored from Rust:
|
|
1954
|
+
* - Members are stored **sorted ascending by raw pubkey bytes**; the same
|
|
1955
|
+
* canonicalisation the address derivation applies. `member_index` in a
|
|
1956
|
+
* signature is an index into the sorted roster.
|
|
1957
|
+
* - Members sign the **base sighash**: the envelope's keccak-256 sighash with
|
|
1958
|
+
* the multisig witness extension removed. Because every extension is part
|
|
1959
|
+
* of the sighash preimage, members cannot sign over a preimage that already
|
|
1960
|
+
* contains their own signatures — the witness is appended afterward.
|
|
1961
|
+
* - The witness body is `0x01 || "MONO_MULTISIG_WITNESS_V1" || bincode(witness)`.
|
|
1962
|
+
* `bincode` here is bincode 1.x defaults: little-endian fixints, `u64`
|
|
1963
|
+
* length prefixes on every `Vec`. The struct serialises in field order:
|
|
1964
|
+
* `threshold: u16`, `members: Vec<MultisigMember>`,
|
|
1965
|
+
* `signatures: Vec<MultisigMemberSignature>`, where `MultisigMember` is
|
|
1966
|
+
* `{ algo_id: u16, pubkey: Vec<u8> }` and `MultisigMemberSignature` is
|
|
1967
|
+
* `{ member_index: u16, signature: Vec<u8> }`.
|
|
1968
|
+
*/
|
|
1969
|
+
|
|
1970
|
+
/** Typed-extension kind byte for a native multisig spend witness (Rust `TX_EXTENSION_KIND_MULTISIG`). */
|
|
1971
|
+
declare const TX_EXTENSION_KIND_MULTISIG: 64;
|
|
1972
|
+
/** Witness body version byte — first byte of the extension body (Rust `TX_EXTENSION_MULTISIG_V1`). */
|
|
1973
|
+
declare const TX_EXTENSION_MULTISIG_V1: 1;
|
|
1974
|
+
/** Domain tag mixed into the witness body version line (Rust `MULTISIG_WITNESS_DOMAIN`). */
|
|
1975
|
+
declare const MULTISIG_WITNESS_DOMAIN: "MONO_MULTISIG_WITNESS_V1";
|
|
1976
|
+
/** BLAKE3 multisig address-derivation domain (Rust `MULTISIG_ADDRESS_DERIVATION_DOMAIN`). */
|
|
1977
|
+
declare const MULTISIG_ADDRESS_DERIVATION_DOMAIN: "MONO_MULTISIG_BLAKE3_20_V1";
|
|
1978
|
+
/** Lower bound on roster size (Rust `MIN_MEMBERS`). */
|
|
1979
|
+
declare const MIN_MULTISIG_MEMBERS: 1;
|
|
1980
|
+
/** Upper bound on roster size (Rust `MAX_MULTISIG_MEMBERS`). */
|
|
1981
|
+
declare const MAX_MULTISIG_MEMBERS: 64;
|
|
1982
|
+
declare class MultisigError extends Error {
|
|
1983
|
+
constructor(message: string);
|
|
1984
|
+
}
|
|
1985
|
+
/** A single roster member: an ML-DSA-65 public key. */
|
|
1986
|
+
interface MultisigMember {
|
|
1987
|
+
/** Signature algorithm id. Must be ML-DSA-65 (`1001`). */
|
|
1988
|
+
algoId: number;
|
|
1989
|
+
/** Canonical ML-DSA-65 public-key bytes (1952 B). */
|
|
1990
|
+
pubkey: Uint8Array;
|
|
1991
|
+
}
|
|
1992
|
+
/** A member signature tagged with its index in the sorted roster. */
|
|
1993
|
+
interface MultisigMemberSignature {
|
|
1994
|
+
/** Index into the **sorted** member roster. */
|
|
1995
|
+
memberIndex: number;
|
|
1996
|
+
/** Canonical ML-DSA-65 signature bytes over the base sighash (3309 B). */
|
|
1997
|
+
signature: Uint8Array;
|
|
1998
|
+
}
|
|
1999
|
+
/** A self-describing multisig spend witness with a canonically-sorted roster. */
|
|
2000
|
+
interface MultisigWitness {
|
|
2001
|
+
/** Quorum threshold: `1 <= threshold <= members.length`. */
|
|
2002
|
+
threshold: number;
|
|
2003
|
+
/** Full roster, sorted ascending by raw `pubkey` bytes. */
|
|
2004
|
+
members: MultisigMember[];
|
|
2005
|
+
/** Collected member signatures over the base sighash. */
|
|
2006
|
+
signatures: MultisigMemberSignature[];
|
|
2007
|
+
}
|
|
2008
|
+
/** Accepts a member pubkey as raw bytes / number[] / hex (delegated to {@link expectBytes}). */
|
|
2009
|
+
type MemberPubkeyInput = Uint8Array | readonly number[];
|
|
2010
|
+
/**
|
|
2011
|
+
* Sort + dedupe-check a roster of ML-DSA-65 public keys into canonical
|
|
2012
|
+
* (ascending raw-byte) order, mirroring `address_from_multisig_members` and
|
|
2013
|
+
* `MultisigWitness::new`'s `members.sort_by(pubkey.cmp)`.
|
|
2014
|
+
*
|
|
2015
|
+
* Returns a fresh array sorted ascending; the input is not mutated.
|
|
2016
|
+
*/
|
|
2017
|
+
declare function sortMultisigMembers(members: readonly MemberPubkeyInput[]): Uint8Array[];
|
|
2018
|
+
/**
|
|
2019
|
+
* Derive the `monom…` bech32m multisig address for a roster + threshold.
|
|
2020
|
+
*
|
|
2021
|
+
* Mirrors `protocore_crypto::address_from_multisig_members`:
|
|
2022
|
+
* `BLAKE3("MONO_MULTISIG_BLAKE3_20_V1" || threshold_be16 ||
|
|
2023
|
+
* (member_len_be8 || member)*sorted)[..20]`, rendered with the `monom` HRP.
|
|
2024
|
+
*
|
|
2025
|
+
* The address rule itself is order-insensitive and imposes no roster-size
|
|
2026
|
+
* policy (matching Rust); use {@link assembleMultisigWitness} when you need
|
|
2027
|
+
* the roster-shape validation enforced.
|
|
2028
|
+
*/
|
|
2029
|
+
declare function deriveMultisigAddressBytes(threshold: number, members: readonly MemberPubkeyInput[]): Uint8Array;
|
|
2030
|
+
/** {@link deriveMultisigAddressBytes} rendered as a `monom…` bech32m string. */
|
|
2031
|
+
declare function deriveMultisigAddress(threshold: number, members: readonly MemberPubkeyInput[]): string;
|
|
2032
|
+
/**
|
|
2033
|
+
* Validate the static roster shape, mirroring Rust `validate_roster`.
|
|
2034
|
+
*
|
|
2035
|
+
* Enforces: 1..=64 members; `1 <= threshold <= members.length`;
|
|
2036
|
+
* `signatures.length <= members.length`; every member ML-DSA-65 with a
|
|
2037
|
+
* 1952-byte pubkey; the roster sorted ascending and duplicate-free.
|
|
2038
|
+
*/
|
|
2039
|
+
declare function validateMultisigRoster(witness: MultisigWitness): void;
|
|
2040
|
+
/**
|
|
2041
|
+
* Build a {@link MultisigWitness} from a roster + threshold + collected
|
|
2042
|
+
* member signatures, sorting the roster into canonical order and validating
|
|
2043
|
+
* the roster shape — mirrors `MultisigWitness::new`.
|
|
2044
|
+
*
|
|
2045
|
+
* Callers supply `signatures` already keyed to the **sorted** roster
|
|
2046
|
+
* (`memberIndex` is the index into the sorted member list). Use
|
|
2047
|
+
* {@link multisigMemberIndex} to find a member's sorted index.
|
|
2048
|
+
*/
|
|
2049
|
+
declare function assembleMultisigWitness(threshold: number, members: readonly MemberPubkeyInput[], signatures?: readonly MultisigMemberSignature[]): MultisigWitness;
|
|
2050
|
+
/**
|
|
2051
|
+
* Find the index of `pubkey` in the canonically-sorted roster, or `-1` if it
|
|
2052
|
+
* is not a member. Use this to key a {@link MultisigMemberSignature}'s
|
|
2053
|
+
* `memberIndex` when collecting signatures.
|
|
2054
|
+
*/
|
|
2055
|
+
declare function multisigMemberIndex(members: readonly MemberPubkeyInput[], pubkey: MemberPubkeyInput): number;
|
|
2056
|
+
/**
|
|
2057
|
+
* Canonical witness extension body bytes — mirrors `MultisigWitness::encode_body`.
|
|
2058
|
+
*
|
|
2059
|
+
* Layout: `0x01 || "MONO_MULTISIG_WITNESS_V1" || bincode(witness)`.
|
|
2060
|
+
*/
|
|
2061
|
+
declare function encodeMultisigWitnessBody(witness: MultisigWitness): Uint8Array;
|
|
2062
|
+
/**
|
|
2063
|
+
* Compute the **base sighash** each multisig member signs for this tx —
|
|
2064
|
+
* mirrors `multisig_base_sighash` / `Transaction::base_sighash`.
|
|
2065
|
+
*
|
|
2066
|
+
* This is keccak-256 over the envelope's `TAG_SIGHASH` encoding with any
|
|
2067
|
+
* multisig witness extension removed. When no multisig extension is present
|
|
2068
|
+
* (the normal case — you pass the plain transfer envelope) it equals the
|
|
2069
|
+
* ordinary sighash. Every member signs these same 32 bytes.
|
|
2070
|
+
*/
|
|
2071
|
+
declare function multisigBaseSighash(fields: NativeEvmTxFields): Uint8Array;
|
|
2072
|
+
/**
|
|
2073
|
+
* Attach a multisig witness to a transfer envelope, returning the envelope
|
|
2074
|
+
* fields with the `0x40` witness extension appended — mirrors the extension
|
|
2075
|
+
* step of `assemble_multisig_signed`.
|
|
2076
|
+
*
|
|
2077
|
+
* The returned fields carry the witness as the last extension. The witness's
|
|
2078
|
+
* member signatures must each be over `multisigBaseSighash(fields)` of the
|
|
2079
|
+
* **input** (witness-free) envelope; appending the witness does not change
|
|
2080
|
+
* the base sighash (`base_sighash` strips it).
|
|
2081
|
+
*
|
|
2082
|
+
* The caller still signs the outer envelope over the base sighash with one
|
|
2083
|
+
* of the roster members' keys (the chain verifies the outer signer is a
|
|
2084
|
+
* member). Pass the resulting `wireBytes` from a single-signer wire encode of
|
|
2085
|
+
* these fields, or use the lower-level `bincodeSignedTransaction` from
|
|
2086
|
+
* `@monolythium/core-sdk/crypto` with the outer member signature + pubkey.
|
|
2087
|
+
*/
|
|
2088
|
+
declare function assembleMultisigSigned(fields: NativeEvmTxFields, witness: MultisigWitness): NativeEvmTxFields;
|
|
2089
|
+
|
|
1935
2090
|
/**
|
|
1936
2091
|
* Delegation precompile ABI helpers.
|
|
1937
2092
|
*
|
|
@@ -2236,4 +2391,4 @@ interface MonolythiumNetworkConfig {
|
|
|
2236
2391
|
*/
|
|
2237
2392
|
declare const version = "0.4.8";
|
|
2238
2393
|
|
|
2239
|
-
export { AddressFlowResponse, AddressKind, AddressProfileResponse, AgentActionError, type ApiAddressActivityData, type ApiAddressActivityEntry, type ApiAddressActivityKind, type ApiAddressActivityKindData, type ApiAddressActivityKindSummary, type ApiBlockData, type ApiBlockHeader, type ApiBlockTransactionsData, type ApiCapabilitiesResponse, ApiClient, type ApiClientOptions, type ApiClusterData, type ApiClusterDirectoryEntry, type ApiClusterDirectoryPage, type ApiClusterMember, type ApiClusterStatus, type ApiClustersData, type ApiEnvelope, type ApiErrorEnvelope, type ApiHealthResponse, type ApiIndexerStatus, type ApiLatestAnchor, type ApiLogEntry, type ApiOperatorData, type ApiOperatorInfo, type ApiQueryValue, type ApiRuntimeProvenanceData, type ApiServiceProbeData, ApiStreamsIndexResponse, type ApiTransactionData, type ApiTransactionNativeReceiptData, type ApiTransactionReceipt, type ApiTransactionReceiptData, type ApiTransactionView, type ApiUpgradePlanStatus, type ApiUpgradeStatus, type ApiUpgradeStatusData, BURN_ADDR, BlockSelector, BridgeRoutesRequest, BridgeRoutesResponse, type BuildPublishOperatorSealKeyTxFieldsArgs, type BuildRequestClusterJoinTxFieldsArgs, type BuildVoteClusterAdmitTxFieldsArgs, ChainStatsResponse, ClobMarketResponse, ClobMarketsResponse, ClobOhlcResponse, ClobOrderBookResponse, ClobTradesResponse, type ClusterJoinFeeOptions, type ClusterJoinReadClient, ClusterJoinRequestView, type ClusterJoinSubmitClient, type ClusterJoinSubmitResult, type ClusterJoinTxFee, type CreateFixedSupplyMrc20CalldataArgs, type CreateTokenCalldataArgs, DEFAULT_CLUSTER_JOIN_EXECUTION_UNIT_LIMIT, DEFAULT_OPERATOR_SEAL_KEY_EXECUTION_UNIT_LIMIT, DELEGATION_REVERT_TAGS, DELEGATION_SELECTORS, DelegationPrecompileError, EXECUTION_UNIT_PRICE_SAFETY_MULTIPLIER, type EncodeNativeAgentAvailabilitySlotArgs, type EncodeNativeAgentCounterEscrowArgs, type EncodeNativeAgentCreateEscrowArgs, type EncodeNativeAgentDeactivateServiceArgs, type EncodeNativeAgentEscrowActorArgs, type EncodeNativeAgentGrantConsentArgs, type EncodeNativeAgentIssueAttestationArgs, type EncodeNativeAgentListServiceArgs, type EncodeNativeAgentRecordPolicySpendArgs, type EncodeNativeAgentRecordReputationArgs, type EncodeNativeAgentRegisterArbiterArgs, type EncodeNativeAgentRegisterIssuerArgs, type EncodeNativeAgentResolveEscrowArgs, type EncodeNativeAgentRevokeAttestationArgs, type EncodeNativeAgentRevokeConsentArgs, type EncodeNativeAgentSetAvailabilityArgs, type EncodeNativeAgentSetSpendingPolicyArgs, type EncodeNativeAgentStartEscrowArgs, type EncodeNativeAgentSubmitEscrowArgs, ExecutionUnitPriceResponse, type HealthSummary, LYTHOSHI_PER_LYTH, LYTH_DECIMALS, type LatencyBands, type LythFormatOptions, MIN_EXECUTION_UNIT_PRICE_LYTHOSHI, MONOLYTHIUM_NETWORKS, 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, type MonolythiumNetworkConfig, type MrcAccountRequest, MrcAccountResponse, type MrcHoldersRequest, MrcHoldersResponse, MrcMetadataResponse, type MrvAbiManifest, type MrvAbiParam, type MrvAbiSymbol, type MrvAbiSymbolKind, type MrvAbiType, type MrvAddressKind, type MrvArtifactMetadata, type MrvBuildMetadata, type MrvBytesLike, type MrvCallNativeTxOptions, type MrvCallNativeTxPlan, type MrvCallPlan, type MrvCallRequest, type MrvCallResponse, type MrvCallStatus, type MrvCallSubmission, type MrvCallSubmitOptions, type MrvDecimalLike, type MrvDeployNativeTxOptions, type MrvDeployNativeTxPlan, type MrvDeployPayload, type MrvDeployPayloadNativeTxOptions, type MrvDeployPayloadPlanOptions, type MrvDeployPayloadRequestOptions, type MrvDeployPayloadSubmission, type MrvDeployPayloadSubmitOptions, type MrvDeployPlan, type MrvDeployPlanOptions, type MrvDeployRequest, type MrvDeployResponse, type MrvDeploySubmission, type MrvDeploySubmitOptions, type MrvEncryptedSubmissionResult, type MrvEventRecord, type MrvExecutionReceipt, type MrvFeeDisplayConformanceInput, type MrvFeeDisplayConformanceReport, type MrvMemoryLimits, type MrvMeterCounters, type MrvNativeFeePreview, type MrvNativeStateDelta, type MrvNativeTxFacade, type MrvRequestBuildOptions, type MrvResolvedSyscall, type MrvRevertPayload, type MrvRiscvProfile, type MrvStorageNamespace, type MrvStructuredFeeConformanceOptions, type MrvStructuredFeeConformanceReport, type MrvSyscallImport, type MrvTransactionExtension, type MrvTypedAddress, type MrvValidatedArtifactMetadata, MrvValidationError, NATIVE_AGENT_MODULE_ADDRESS, NATIVE_AGENT_MODULE_ADDRESS_BYTES, NATIVE_DEV_HOST_API_VERSION, NATIVE_DEV_IPC_PROTOCOL_VERSION, NATIVE_DEV_MANIFEST_SCHEMA_VERSION, NATIVE_LYTH_DECIMALS, type NativeAgentAddressInput, type NativeAgentAddressKind, type NativeAgentEscrowResolution, type NativeAgentForwarderInput, type NativeAgentModuleCallEnvelope, type NativeAgentModuleContractCall, type NativeAgentReputationScores, NativeAgentStateFilter, NativeAgentStateResponse, NativeDecodedEvent, type NativeDevApprovalKind, type NativeDevCommandName, type NativeDevContractPassport, type NativeDevHostApprovalResultMessage, type NativeDevHostCommandMessage, type NativeDevHostContextMessage, type NativeDevIpcMessage, type NativeDevMrcAllocation, type NativeDevMrcAssetKind, type NativeDevMrcTokenPlan, type NativeDevMrvDeployPlan, type NativeDevRiskLabel, type NativeDevRiskSeverity, type NativeDevSidecarApprovalRequestMessage, type NativeDevSidecarCommandResultMessage, type NativeDevSidecarProjectEventMessage, type NativeDevSidecarReadyMessage, type NativeDevVerificationBundle, type NativeDevWalletApprovalRequest, type NativeDevkitArchive, type NativeDevkitChannel, type NativeDevkitCompatibility, type NativeDevkitManifest, type NativeDevkitSidecarManifest, type NativeDevkitSidecarStatus, type NativeDevkitStatus, NativeEventFilter, NativeEventsFilter, NativeEventsResponse, NativeMarketOrderBookDeltasRequest, NativeMarketOrderBookDeltasResponse, NativeMarketStateFilter, NativeMarketStateResponse, NativeReceiptFee, type NativeReceiptFeeDisplay, NativeReceiptResponse, OPERATOR_ROUTER_ADDRESS, OperatorCapabilitiesResponse, type OperatorOnboardingPreview, type OperatorSealKeySubmitResult, PRECOMPILE_ADDRESSES, PROTOCOL_MAX_OPERATOR_FEE_BPS, PUBKEY_REGISTRY_ML_DSA_65_PUBLIC_KEY_LEN, PUBKEY_REGISTRY_SELECTORS, PendingRewardsResponse, type PrecompileAddress, type PrecompileName, type PubkeyLookup, PubkeyRegistryError, REGISTRY_DEFAULT_EXECUTION_UNIT_LIMIT, RedemptionQueueResponse, type ResolvedExecutionFee, RpcClient, RuntimeBuildProvenance, RuntimeUpgradeStatus, SdkError, SearchResponse, ServiceProbeResponse, type StudioHostState, type StudioHostStatus, type SubmitPublishOperatorSealKeyArgs, type SubmitRequestClusterJoinArgs, type SubmitVoteClusterAdmitArgs, TOKEN_FACTORY_CREATE_DEPOSIT_LYTHOSHI, TOKEN_FACTORY_FLAGS, TOKEN_FACTORY_KNOWN_FLAG_MASK, TOKEN_FACTORY_MAX_CREATOR_FEE_BPS, TOKEN_FACTORY_MAX_DECIMALS, TOKEN_FACTORY_NAME_MAX_BYTES, TOKEN_FACTORY_SELECTORS, TOKEN_FACTORY_SIGS, TOKEN_FACTORY_SYMBOL_MAX_BYTES, TOKEN_FACTORY_TOKEN_ID_DOMAIN_TAG, TRANSFER_DEFAULT_EXECUTION_UNIT_LIMIT, type TokenFactoryAddressInput, type TokenFactoryBytes32Input, TokenFactoryError, type TokenFactoryUintInput, type TransactionFeeExposure, TxFeedResponse, TypedAddress, TypedNativeReceiptEvent, VRF_DOMAIN_TAG_MAX_BYTES, VRF_HEIGHT_NOT_FINALIZED_REVERT, VRF_OUTPUT_BYTES, VrfCallError, type VrfDomainTagInput, apiEndpointFromRpcEndpoint, assertMrvCallNativeSubmissionPlan, assertMrvDeployNativeSubmissionPlan, assertMrvFeeDisplayConformance, assertMrvStructuredFeeConformance, assertNativeDevMrcTokenPlan, assertNativeDevMrvDeployPlan, assertNativeDevWalletApprovalRequest, buildMrvCallNativeTxPlan, buildMrvCallPlan, buildMrvCallRequest, buildMrvDeployNativeTxPlan, buildMrvDeployPayloadNativeTxPlan, buildMrvDeployPayloadPlan, buildMrvDeployPayloadRequest, buildMrvDeployPlan, buildMrvDeployRequest, buildNativeAgentCreateEscrowForwarderInput, buildNativeAgentCreateEscrowModuleCall, buildNativeAgentModuleCallEnvelope, buildNativeAgentRecordReputationForwarderInput, buildNativeAgentRecordReputationModuleCall, buildNativeAgentSetSpendingPolicyForwarderInput, buildNativeAgentSetSpendingPolicyModuleCall, buildPublishOperatorSealKeyTxFields, buildRequestClusterJoinTxFields, buildVoteClusterAdmitTxFields, checkMrvFeeDisplayConformance, checkMrvStructuredFeeConformance, checkNativeDevkitCompatibility, clampPriorityTip, clusterJoinRequestExists, compareNativeDevVersions, decodeHasPubkeyReturn, decodeLookupPubkeyReturn, decodeTokenFactoryTokenId, decodeVrfOutput, delegationAddressHex, deriveClusterJoinOperatorId, deriveMrvContractAddress, deriveTokenFactoryTokenId, encodeClaimCalldata, encodeCompleteRedemptionCalldata, encodeCreateFixedSupplyMrc20Calldata, encodeCreateTokenCalldata, encodeDelegateCalldata, encodeHasPubkeyCalldata, 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, encodeRedelegateCalldata, encodeRegisterPubkeyCalldata, encodeSetAutoCompoundCalldata, encodeTokenFactoryAllowanceCalldata, encodeTokenFactoryApproveCalldata, encodeTokenFactoryBalanceOfCalldata, encodeTokenFactoryBurnCalldata, encodeTokenFactoryDecreaseAllowanceCalldata, encodeTokenFactoryDestroyCalldata, encodeTokenFactoryIncreaseAllowanceCalldata, encodeTokenFactoryMetadataCalldata, encodeTokenFactoryMintCalldata, encodeTokenFactorySetPausedCalldata, encodeTokenFactoryTotalSupplyCalldata, encodeTokenFactoryTransferCalldata, encodeTokenFactoryTransferFromCalldata, encodeTokenFactoryTransferOwnershipCalldata, encodeUndelegateCalldata, encodeVrfEvaluateCalldata, formatLyth, formatLythoshi, formatNativeReceiptFeeDisplay, isRedemptionPrincipalUnavailableRevert, mrvAddressToBech32, mrvBech32ToAddress, mrvCodeHashHex, mrvV1TransactionExtension, nativeDevSchemaFieldNames, nativeDevUiStrings, parseLythToLythoshi, preflightClusterJoinRequest, previewRequestClusterJoin, previewVoteClusterAdmit, pubkeyRegistryAddressHex, readClusterJoinRequest, resolveClusterJoinExecutionFee, resolveExecutionFee, resolveMaxExecutionUnitPrice, resolveRegistryExecutionFee, resolveStudioHostStatus, submitMrvCallNativeTx, submitMrvDeployNativeTx, submitMrvDeployPayloadNativeTx, submitPublishOperatorSealKey, submitRequestClusterJoin, submitVoteClusterAdmit, tokenFactoryAddressHex, transactionFeeExposure, validateMrvArtifactMetadata, validateMrvCallRequest, validateMrvDeployRequest, validateTokenFactoryFlags, version, vrfAddressHex };
|
|
2394
|
+
export { AddressFlowResponse, AddressKind, AddressProfileResponse, AgentActionError, type ApiAddressActivityData, type ApiAddressActivityEntry, type ApiAddressActivityKind, type ApiAddressActivityKindData, type ApiAddressActivityKindSummary, type ApiBlockData, type ApiBlockHeader, type ApiBlockTransactionsData, type ApiCapabilitiesResponse, ApiClient, type ApiClientOptions, type ApiClusterData, type ApiClusterDirectoryEntry, type ApiClusterDirectoryPage, type ApiClusterMember, type ApiClusterStatus, type ApiClustersData, type ApiEnvelope, type ApiErrorEnvelope, type ApiHealthResponse, type ApiIndexerStatus, type ApiLatestAnchor, type ApiLogEntry, type ApiOperatorData, type ApiOperatorInfo, type ApiQueryValue, type ApiRuntimeProvenanceData, type ApiServiceProbeData, ApiStreamsIndexResponse, type ApiTransactionData, type ApiTransactionNativeReceiptData, type ApiTransactionReceipt, type ApiTransactionReceiptData, type ApiTransactionView, type ApiUpgradePlanStatus, type ApiUpgradeStatus, type ApiUpgradeStatusData, BURN_ADDR, BlockSelector, BridgeRoutesRequest, BridgeRoutesResponse, type BuildPublishOperatorSealKeyTxFieldsArgs, type BuildRequestClusterJoinTxFieldsArgs, type BuildVoteClusterAdmitTxFieldsArgs, ChainStatsResponse, ClobMarketResponse, ClobMarketsResponse, ClobOhlcResponse, ClobOrderBookResponse, ClobTradesResponse, type ClusterJoinFeeOptions, type ClusterJoinReadClient, ClusterJoinRequestView, type ClusterJoinSubmitClient, type ClusterJoinSubmitResult, type ClusterJoinTxFee, type CreateFixedSupplyMrc20CalldataArgs, type CreateTokenCalldataArgs, DEFAULT_CLUSTER_JOIN_EXECUTION_UNIT_LIMIT, DEFAULT_OPERATOR_SEAL_KEY_EXECUTION_UNIT_LIMIT, DELEGATION_REVERT_TAGS, DELEGATION_SELECTORS, DelegationPrecompileError, EXECUTION_UNIT_PRICE_SAFETY_MULTIPLIER, type EncodeNativeAgentAvailabilitySlotArgs, type EncodeNativeAgentCounterEscrowArgs, type EncodeNativeAgentCreateEscrowArgs, type EncodeNativeAgentDeactivateServiceArgs, type EncodeNativeAgentEscrowActorArgs, type EncodeNativeAgentGrantConsentArgs, type EncodeNativeAgentIssueAttestationArgs, type EncodeNativeAgentListServiceArgs, type EncodeNativeAgentRecordPolicySpendArgs, type EncodeNativeAgentRecordReputationArgs, type EncodeNativeAgentRegisterArbiterArgs, type EncodeNativeAgentRegisterIssuerArgs, type EncodeNativeAgentResolveEscrowArgs, type EncodeNativeAgentRevokeAttestationArgs, type EncodeNativeAgentRevokeConsentArgs, type EncodeNativeAgentSetAvailabilityArgs, type EncodeNativeAgentSetSpendingPolicyArgs, type EncodeNativeAgentStartEscrowArgs, type EncodeNativeAgentSubmitEscrowArgs, ExecutionUnitPriceResponse, type HealthSummary, LYTHOSHI_PER_LYTH, LYTH_DECIMALS, type LatencyBands, type LythFormatOptions, MAX_MULTISIG_MEMBERS, MIN_EXECUTION_UNIT_PRICE_LYTHOSHI, MIN_MULTISIG_MEMBERS, MONOLYTHIUM_NETWORKS, 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, MULTISIG_ADDRESS_DERIVATION_DOMAIN as MULTISIG_WITNESS_ADDRESS_DERIVATION_DOMAIN, MULTISIG_WITNESS_DOMAIN, type MemberPubkeyInput, type MonolythiumNetworkConfig, type MrcAccountRequest, MrcAccountResponse, type MrcHoldersRequest, MrcHoldersResponse, MrcMetadataResponse, type MrvAbiManifest, type MrvAbiParam, type MrvAbiSymbol, type MrvAbiSymbolKind, type MrvAbiType, type MrvAddressKind, type MrvArtifactMetadata, type MrvBuildMetadata, type MrvBytesLike, type MrvCallNativeTxOptions, type MrvCallNativeTxPlan, type MrvCallPlan, type MrvCallRequest, type MrvCallResponse, type MrvCallStatus, type MrvCallSubmission, type MrvCallSubmitOptions, type MrvDecimalLike, type MrvDeployNativeTxOptions, type MrvDeployNativeTxPlan, type MrvDeployPayload, type MrvDeployPayloadNativeTxOptions, type MrvDeployPayloadPlanOptions, type MrvDeployPayloadRequestOptions, type MrvDeployPayloadSubmission, type MrvDeployPayloadSubmitOptions, type MrvDeployPlan, type MrvDeployPlanOptions, type MrvDeployRequest, type MrvDeployResponse, type MrvDeploySubmission, type MrvDeploySubmitOptions, type MrvEncryptedSubmissionResult, type MrvEventRecord, type MrvExecutionReceipt, type MrvFeeDisplayConformanceInput, type MrvFeeDisplayConformanceReport, type MrvMemoryLimits, type MrvMeterCounters, type MrvNativeFeePreview, type MrvNativeStateDelta, type MrvNativeTxFacade, type MrvRequestBuildOptions, type MrvResolvedSyscall, type MrvRevertPayload, type MrvRiscvProfile, type MrvStorageNamespace, type MrvStructuredFeeConformanceOptions, type MrvStructuredFeeConformanceReport, type MrvSyscallImport, type MrvTransactionExtension, type MrvTypedAddress, type MrvValidatedArtifactMetadata, MrvValidationError, MultisigError, type MultisigMember, type MultisigMemberSignature, type MultisigWitness, NATIVE_AGENT_MODULE_ADDRESS, NATIVE_AGENT_MODULE_ADDRESS_BYTES, NATIVE_DEV_HOST_API_VERSION, NATIVE_DEV_IPC_PROTOCOL_VERSION, NATIVE_DEV_MANIFEST_SCHEMA_VERSION, NATIVE_LYTH_DECIMALS, type NativeAgentAddressInput, type NativeAgentAddressKind, type NativeAgentEscrowResolution, type NativeAgentForwarderInput, type NativeAgentModuleCallEnvelope, type NativeAgentModuleContractCall, type NativeAgentReputationScores, NativeAgentStateFilter, NativeAgentStateResponse, NativeDecodedEvent, type NativeDevApprovalKind, type NativeDevCommandName, type NativeDevContractPassport, type NativeDevHostApprovalResultMessage, type NativeDevHostCommandMessage, type NativeDevHostContextMessage, type NativeDevIpcMessage, type NativeDevMrcAllocation, type NativeDevMrcAssetKind, type NativeDevMrcTokenPlan, type NativeDevMrvDeployPlan, type NativeDevRiskLabel, type NativeDevRiskSeverity, type NativeDevSidecarApprovalRequestMessage, type NativeDevSidecarCommandResultMessage, type NativeDevSidecarProjectEventMessage, type NativeDevSidecarReadyMessage, type NativeDevVerificationBundle, type NativeDevWalletApprovalRequest, type NativeDevkitArchive, type NativeDevkitChannel, type NativeDevkitCompatibility, type NativeDevkitManifest, type NativeDevkitSidecarManifest, type NativeDevkitSidecarStatus, type NativeDevkitStatus, NativeEventFilter, NativeEventsFilter, NativeEventsResponse, NativeMarketOrderBookDeltasRequest, NativeMarketOrderBookDeltasResponse, NativeMarketStateFilter, NativeMarketStateResponse, NativeReceiptFee, type NativeReceiptFeeDisplay, NativeReceiptResponse, OPERATOR_ROUTER_ADDRESS, OperatorCapabilitiesResponse, type OperatorOnboardingPreview, type OperatorSealKeySubmitResult, PRECOMPILE_ADDRESSES, PROTOCOL_MAX_OPERATOR_FEE_BPS, PUBKEY_REGISTRY_ML_DSA_65_PUBLIC_KEY_LEN, PUBKEY_REGISTRY_SELECTORS, PendingRewardsResponse, type PrecompileAddress, type PrecompileName, type PubkeyLookup, PubkeyRegistryError, REGISTRY_DEFAULT_EXECUTION_UNIT_LIMIT, RedemptionQueueResponse, type ResolvedExecutionFee, RpcClient, RuntimeBuildProvenance, RuntimeUpgradeStatus, SdkError, SearchResponse, ServiceProbeResponse, type StudioHostState, type StudioHostStatus, type SubmitPublishOperatorSealKeyArgs, type SubmitRequestClusterJoinArgs, type SubmitVoteClusterAdmitArgs, TOKEN_FACTORY_CREATE_DEPOSIT_LYTHOSHI, TOKEN_FACTORY_FLAGS, TOKEN_FACTORY_KNOWN_FLAG_MASK, TOKEN_FACTORY_MAX_CREATOR_FEE_BPS, TOKEN_FACTORY_MAX_DECIMALS, TOKEN_FACTORY_NAME_MAX_BYTES, TOKEN_FACTORY_SELECTORS, TOKEN_FACTORY_SIGS, TOKEN_FACTORY_SYMBOL_MAX_BYTES, TOKEN_FACTORY_TOKEN_ID_DOMAIN_TAG, TRANSFER_DEFAULT_EXECUTION_UNIT_LIMIT, TX_EXTENSION_KIND_MULTISIG, TX_EXTENSION_MULTISIG_V1, type TokenFactoryAddressInput, type TokenFactoryBytes32Input, TokenFactoryError, type TokenFactoryUintInput, type TransactionFeeExposure, TxFeedResponse, TypedAddress, TypedNativeReceiptEvent, VRF_DOMAIN_TAG_MAX_BYTES, VRF_HEIGHT_NOT_FINALIZED_REVERT, VRF_OUTPUT_BYTES, VrfCallError, type VrfDomainTagInput, apiEndpointFromRpcEndpoint, assembleMultisigSigned, assembleMultisigWitness, assertMrvCallNativeSubmissionPlan, assertMrvDeployNativeSubmissionPlan, assertMrvFeeDisplayConformance, assertMrvStructuredFeeConformance, assertNativeDevMrcTokenPlan, assertNativeDevMrvDeployPlan, assertNativeDevWalletApprovalRequest, buildMrvCallNativeTxPlan, buildMrvCallPlan, buildMrvCallRequest, buildMrvDeployNativeTxPlan, buildMrvDeployPayloadNativeTxPlan, buildMrvDeployPayloadPlan, buildMrvDeployPayloadRequest, buildMrvDeployPlan, buildMrvDeployRequest, buildNativeAgentCreateEscrowForwarderInput, buildNativeAgentCreateEscrowModuleCall, buildNativeAgentModuleCallEnvelope, buildNativeAgentRecordReputationForwarderInput, buildNativeAgentRecordReputationModuleCall, buildNativeAgentSetSpendingPolicyForwarderInput, buildNativeAgentSetSpendingPolicyModuleCall, buildPublishOperatorSealKeyTxFields, buildRequestClusterJoinTxFields, buildVoteClusterAdmitTxFields, checkMrvFeeDisplayConformance, checkMrvStructuredFeeConformance, checkNativeDevkitCompatibility, clampPriorityTip, clusterJoinRequestExists, compareNativeDevVersions, decodeHasPubkeyReturn, decodeLookupPubkeyReturn, decodeTokenFactoryTokenId, decodeVrfOutput, delegationAddressHex, deriveClusterJoinOperatorId, deriveMrvContractAddress, deriveMultisigAddress, deriveMultisigAddressBytes, deriveTokenFactoryTokenId, encodeClaimCalldata, encodeCompleteRedemptionCalldata, encodeCreateFixedSupplyMrc20Calldata, encodeCreateTokenCalldata, encodeDelegateCalldata, encodeHasPubkeyCalldata, encodeLookupPubkeyCalldata, encodeMrvDeployPayload, encodeMultisigWitnessBody, 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, encodeRedelegateCalldata, encodeRegisterPubkeyCalldata, encodeSetAutoCompoundCalldata, encodeTokenFactoryAllowanceCalldata, encodeTokenFactoryApproveCalldata, encodeTokenFactoryBalanceOfCalldata, encodeTokenFactoryBurnCalldata, encodeTokenFactoryDecreaseAllowanceCalldata, encodeTokenFactoryDestroyCalldata, encodeTokenFactoryIncreaseAllowanceCalldata, encodeTokenFactoryMetadataCalldata, encodeTokenFactoryMintCalldata, encodeTokenFactorySetPausedCalldata, encodeTokenFactoryTotalSupplyCalldata, encodeTokenFactoryTransferCalldata, encodeTokenFactoryTransferFromCalldata, encodeTokenFactoryTransferOwnershipCalldata, encodeUndelegateCalldata, encodeVrfEvaluateCalldata, formatLyth, formatLythoshi, formatNativeReceiptFeeDisplay, isRedemptionPrincipalUnavailableRevert, mrvAddressToBech32, mrvBech32ToAddress, mrvCodeHashHex, mrvV1TransactionExtension, multisigBaseSighash, multisigMemberIndex, nativeDevSchemaFieldNames, nativeDevUiStrings, parseLythToLythoshi, preflightClusterJoinRequest, previewRequestClusterJoin, previewVoteClusterAdmit, pubkeyRegistryAddressHex, readClusterJoinRequest, resolveClusterJoinExecutionFee, resolveExecutionFee, resolveMaxExecutionUnitPrice, resolveRegistryExecutionFee, resolveStudioHostStatus, sortMultisigMembers, submitMrvCallNativeTx, submitMrvDeployNativeTx, submitMrvDeployPayloadNativeTx, submitPublishOperatorSealKey, submitRequestClusterJoin, submitVoteClusterAdmit, tokenFactoryAddressHex, transactionFeeExposure, validateMrvArtifactMetadata, validateMrvCallRequest, validateMrvDeployRequest, validateMultisigRoster, validateTokenFactoryFlags, version, vrfAddressHex };
|
package/dist/index.d.ts
CHANGED
|
@@ -1932,6 +1932,161 @@ declare function encodeVrfEvaluateCalldata(blockHeight: bigint | number | string
|
|
|
1932
1932
|
/** Decode a successful VRF return payload into 32 bytes. */
|
|
1933
1933
|
declare function decodeVrfOutput(output: string | Uint8Array | readonly number[]): Uint8Array;
|
|
1934
1934
|
|
|
1935
|
+
/**
|
|
1936
|
+
* Native `monom` M-of-N multisig witness assembly.
|
|
1937
|
+
*
|
|
1938
|
+
* Monolythium v2 has a **native** (precompile-free, protocol-level) multisig
|
|
1939
|
+
* spend path: a `monom…` address is `BLAKE3("MONO_MULTISIG_BLAKE3_20_V1" ||
|
|
1940
|
+
* threshold_be16 || (member_len_be8 || member)*sorted)[..20]`, and value is
|
|
1941
|
+
* moved *from* it by attaching a self-describing M-of-N witness as a typed
|
|
1942
|
+
* transaction extension (kind `0x40`). No on-chain registry is consulted —
|
|
1943
|
+
* the verifier reconstructs the address from the witness alone.
|
|
1944
|
+
*
|
|
1945
|
+
* This module is wire-critical: every byte here mirrors the Rust source of
|
|
1946
|
+
* truth exactly (`mono-core/crates/execution/tx/src/multisig.rs` for the
|
|
1947
|
+
* witness body + framing, `crates/crypto/crypto/src/address.rs` for the
|
|
1948
|
+
* address rule, and `crates/core/sdk/src/tx.rs` for
|
|
1949
|
+
* `multisig_base_sighash` / `assemble_multisig_signed`). Parity is pinned in
|
|
1950
|
+
* `tests/multisig.test.ts` against ground-truth bytes emitted by the Rust
|
|
1951
|
+
* crate.
|
|
1952
|
+
*
|
|
1953
|
+
* Design notes mirrored from Rust:
|
|
1954
|
+
* - Members are stored **sorted ascending by raw pubkey bytes**; the same
|
|
1955
|
+
* canonicalisation the address derivation applies. `member_index` in a
|
|
1956
|
+
* signature is an index into the sorted roster.
|
|
1957
|
+
* - Members sign the **base sighash**: the envelope's keccak-256 sighash with
|
|
1958
|
+
* the multisig witness extension removed. Because every extension is part
|
|
1959
|
+
* of the sighash preimage, members cannot sign over a preimage that already
|
|
1960
|
+
* contains their own signatures — the witness is appended afterward.
|
|
1961
|
+
* - The witness body is `0x01 || "MONO_MULTISIG_WITNESS_V1" || bincode(witness)`.
|
|
1962
|
+
* `bincode` here is bincode 1.x defaults: little-endian fixints, `u64`
|
|
1963
|
+
* length prefixes on every `Vec`. The struct serialises in field order:
|
|
1964
|
+
* `threshold: u16`, `members: Vec<MultisigMember>`,
|
|
1965
|
+
* `signatures: Vec<MultisigMemberSignature>`, where `MultisigMember` is
|
|
1966
|
+
* `{ algo_id: u16, pubkey: Vec<u8> }` and `MultisigMemberSignature` is
|
|
1967
|
+
* `{ member_index: u16, signature: Vec<u8> }`.
|
|
1968
|
+
*/
|
|
1969
|
+
|
|
1970
|
+
/** Typed-extension kind byte for a native multisig spend witness (Rust `TX_EXTENSION_KIND_MULTISIG`). */
|
|
1971
|
+
declare const TX_EXTENSION_KIND_MULTISIG: 64;
|
|
1972
|
+
/** Witness body version byte — first byte of the extension body (Rust `TX_EXTENSION_MULTISIG_V1`). */
|
|
1973
|
+
declare const TX_EXTENSION_MULTISIG_V1: 1;
|
|
1974
|
+
/** Domain tag mixed into the witness body version line (Rust `MULTISIG_WITNESS_DOMAIN`). */
|
|
1975
|
+
declare const MULTISIG_WITNESS_DOMAIN: "MONO_MULTISIG_WITNESS_V1";
|
|
1976
|
+
/** BLAKE3 multisig address-derivation domain (Rust `MULTISIG_ADDRESS_DERIVATION_DOMAIN`). */
|
|
1977
|
+
declare const MULTISIG_ADDRESS_DERIVATION_DOMAIN: "MONO_MULTISIG_BLAKE3_20_V1";
|
|
1978
|
+
/** Lower bound on roster size (Rust `MIN_MEMBERS`). */
|
|
1979
|
+
declare const MIN_MULTISIG_MEMBERS: 1;
|
|
1980
|
+
/** Upper bound on roster size (Rust `MAX_MULTISIG_MEMBERS`). */
|
|
1981
|
+
declare const MAX_MULTISIG_MEMBERS: 64;
|
|
1982
|
+
declare class MultisigError extends Error {
|
|
1983
|
+
constructor(message: string);
|
|
1984
|
+
}
|
|
1985
|
+
/** A single roster member: an ML-DSA-65 public key. */
|
|
1986
|
+
interface MultisigMember {
|
|
1987
|
+
/** Signature algorithm id. Must be ML-DSA-65 (`1001`). */
|
|
1988
|
+
algoId: number;
|
|
1989
|
+
/** Canonical ML-DSA-65 public-key bytes (1952 B). */
|
|
1990
|
+
pubkey: Uint8Array;
|
|
1991
|
+
}
|
|
1992
|
+
/** A member signature tagged with its index in the sorted roster. */
|
|
1993
|
+
interface MultisigMemberSignature {
|
|
1994
|
+
/** Index into the **sorted** member roster. */
|
|
1995
|
+
memberIndex: number;
|
|
1996
|
+
/** Canonical ML-DSA-65 signature bytes over the base sighash (3309 B). */
|
|
1997
|
+
signature: Uint8Array;
|
|
1998
|
+
}
|
|
1999
|
+
/** A self-describing multisig spend witness with a canonically-sorted roster. */
|
|
2000
|
+
interface MultisigWitness {
|
|
2001
|
+
/** Quorum threshold: `1 <= threshold <= members.length`. */
|
|
2002
|
+
threshold: number;
|
|
2003
|
+
/** Full roster, sorted ascending by raw `pubkey` bytes. */
|
|
2004
|
+
members: MultisigMember[];
|
|
2005
|
+
/** Collected member signatures over the base sighash. */
|
|
2006
|
+
signatures: MultisigMemberSignature[];
|
|
2007
|
+
}
|
|
2008
|
+
/** Accepts a member pubkey as raw bytes / number[] / hex (delegated to {@link expectBytes}). */
|
|
2009
|
+
type MemberPubkeyInput = Uint8Array | readonly number[];
|
|
2010
|
+
/**
|
|
2011
|
+
* Sort + dedupe-check a roster of ML-DSA-65 public keys into canonical
|
|
2012
|
+
* (ascending raw-byte) order, mirroring `address_from_multisig_members` and
|
|
2013
|
+
* `MultisigWitness::new`'s `members.sort_by(pubkey.cmp)`.
|
|
2014
|
+
*
|
|
2015
|
+
* Returns a fresh array sorted ascending; the input is not mutated.
|
|
2016
|
+
*/
|
|
2017
|
+
declare function sortMultisigMembers(members: readonly MemberPubkeyInput[]): Uint8Array[];
|
|
2018
|
+
/**
|
|
2019
|
+
* Derive the `monom…` bech32m multisig address for a roster + threshold.
|
|
2020
|
+
*
|
|
2021
|
+
* Mirrors `protocore_crypto::address_from_multisig_members`:
|
|
2022
|
+
* `BLAKE3("MONO_MULTISIG_BLAKE3_20_V1" || threshold_be16 ||
|
|
2023
|
+
* (member_len_be8 || member)*sorted)[..20]`, rendered with the `monom` HRP.
|
|
2024
|
+
*
|
|
2025
|
+
* The address rule itself is order-insensitive and imposes no roster-size
|
|
2026
|
+
* policy (matching Rust); use {@link assembleMultisigWitness} when you need
|
|
2027
|
+
* the roster-shape validation enforced.
|
|
2028
|
+
*/
|
|
2029
|
+
declare function deriveMultisigAddressBytes(threshold: number, members: readonly MemberPubkeyInput[]): Uint8Array;
|
|
2030
|
+
/** {@link deriveMultisigAddressBytes} rendered as a `monom…` bech32m string. */
|
|
2031
|
+
declare function deriveMultisigAddress(threshold: number, members: readonly MemberPubkeyInput[]): string;
|
|
2032
|
+
/**
|
|
2033
|
+
* Validate the static roster shape, mirroring Rust `validate_roster`.
|
|
2034
|
+
*
|
|
2035
|
+
* Enforces: 1..=64 members; `1 <= threshold <= members.length`;
|
|
2036
|
+
* `signatures.length <= members.length`; every member ML-DSA-65 with a
|
|
2037
|
+
* 1952-byte pubkey; the roster sorted ascending and duplicate-free.
|
|
2038
|
+
*/
|
|
2039
|
+
declare function validateMultisigRoster(witness: MultisigWitness): void;
|
|
2040
|
+
/**
|
|
2041
|
+
* Build a {@link MultisigWitness} from a roster + threshold + collected
|
|
2042
|
+
* member signatures, sorting the roster into canonical order and validating
|
|
2043
|
+
* the roster shape — mirrors `MultisigWitness::new`.
|
|
2044
|
+
*
|
|
2045
|
+
* Callers supply `signatures` already keyed to the **sorted** roster
|
|
2046
|
+
* (`memberIndex` is the index into the sorted member list). Use
|
|
2047
|
+
* {@link multisigMemberIndex} to find a member's sorted index.
|
|
2048
|
+
*/
|
|
2049
|
+
declare function assembleMultisigWitness(threshold: number, members: readonly MemberPubkeyInput[], signatures?: readonly MultisigMemberSignature[]): MultisigWitness;
|
|
2050
|
+
/**
|
|
2051
|
+
* Find the index of `pubkey` in the canonically-sorted roster, or `-1` if it
|
|
2052
|
+
* is not a member. Use this to key a {@link MultisigMemberSignature}'s
|
|
2053
|
+
* `memberIndex` when collecting signatures.
|
|
2054
|
+
*/
|
|
2055
|
+
declare function multisigMemberIndex(members: readonly MemberPubkeyInput[], pubkey: MemberPubkeyInput): number;
|
|
2056
|
+
/**
|
|
2057
|
+
* Canonical witness extension body bytes — mirrors `MultisigWitness::encode_body`.
|
|
2058
|
+
*
|
|
2059
|
+
* Layout: `0x01 || "MONO_MULTISIG_WITNESS_V1" || bincode(witness)`.
|
|
2060
|
+
*/
|
|
2061
|
+
declare function encodeMultisigWitnessBody(witness: MultisigWitness): Uint8Array;
|
|
2062
|
+
/**
|
|
2063
|
+
* Compute the **base sighash** each multisig member signs for this tx —
|
|
2064
|
+
* mirrors `multisig_base_sighash` / `Transaction::base_sighash`.
|
|
2065
|
+
*
|
|
2066
|
+
* This is keccak-256 over the envelope's `TAG_SIGHASH` encoding with any
|
|
2067
|
+
* multisig witness extension removed. When no multisig extension is present
|
|
2068
|
+
* (the normal case — you pass the plain transfer envelope) it equals the
|
|
2069
|
+
* ordinary sighash. Every member signs these same 32 bytes.
|
|
2070
|
+
*/
|
|
2071
|
+
declare function multisigBaseSighash(fields: NativeEvmTxFields): Uint8Array;
|
|
2072
|
+
/**
|
|
2073
|
+
* Attach a multisig witness to a transfer envelope, returning the envelope
|
|
2074
|
+
* fields with the `0x40` witness extension appended — mirrors the extension
|
|
2075
|
+
* step of `assemble_multisig_signed`.
|
|
2076
|
+
*
|
|
2077
|
+
* The returned fields carry the witness as the last extension. The witness's
|
|
2078
|
+
* member signatures must each be over `multisigBaseSighash(fields)` of the
|
|
2079
|
+
* **input** (witness-free) envelope; appending the witness does not change
|
|
2080
|
+
* the base sighash (`base_sighash` strips it).
|
|
2081
|
+
*
|
|
2082
|
+
* The caller still signs the outer envelope over the base sighash with one
|
|
2083
|
+
* of the roster members' keys (the chain verifies the outer signer is a
|
|
2084
|
+
* member). Pass the resulting `wireBytes` from a single-signer wire encode of
|
|
2085
|
+
* these fields, or use the lower-level `bincodeSignedTransaction` from
|
|
2086
|
+
* `@monolythium/core-sdk/crypto` with the outer member signature + pubkey.
|
|
2087
|
+
*/
|
|
2088
|
+
declare function assembleMultisigSigned(fields: NativeEvmTxFields, witness: MultisigWitness): NativeEvmTxFields;
|
|
2089
|
+
|
|
1935
2090
|
/**
|
|
1936
2091
|
* Delegation precompile ABI helpers.
|
|
1937
2092
|
*
|
|
@@ -2236,4 +2391,4 @@ interface MonolythiumNetworkConfig {
|
|
|
2236
2391
|
*/
|
|
2237
2392
|
declare const version = "0.4.8";
|
|
2238
2393
|
|
|
2239
|
-
export { AddressFlowResponse, AddressKind, AddressProfileResponse, AgentActionError, type ApiAddressActivityData, type ApiAddressActivityEntry, type ApiAddressActivityKind, type ApiAddressActivityKindData, type ApiAddressActivityKindSummary, type ApiBlockData, type ApiBlockHeader, type ApiBlockTransactionsData, type ApiCapabilitiesResponse, ApiClient, type ApiClientOptions, type ApiClusterData, type ApiClusterDirectoryEntry, type ApiClusterDirectoryPage, type ApiClusterMember, type ApiClusterStatus, type ApiClustersData, type ApiEnvelope, type ApiErrorEnvelope, type ApiHealthResponse, type ApiIndexerStatus, type ApiLatestAnchor, type ApiLogEntry, type ApiOperatorData, type ApiOperatorInfo, type ApiQueryValue, type ApiRuntimeProvenanceData, type ApiServiceProbeData, ApiStreamsIndexResponse, type ApiTransactionData, type ApiTransactionNativeReceiptData, type ApiTransactionReceipt, type ApiTransactionReceiptData, type ApiTransactionView, type ApiUpgradePlanStatus, type ApiUpgradeStatus, type ApiUpgradeStatusData, BURN_ADDR, BlockSelector, BridgeRoutesRequest, BridgeRoutesResponse, type BuildPublishOperatorSealKeyTxFieldsArgs, type BuildRequestClusterJoinTxFieldsArgs, type BuildVoteClusterAdmitTxFieldsArgs, ChainStatsResponse, ClobMarketResponse, ClobMarketsResponse, ClobOhlcResponse, ClobOrderBookResponse, ClobTradesResponse, type ClusterJoinFeeOptions, type ClusterJoinReadClient, ClusterJoinRequestView, type ClusterJoinSubmitClient, type ClusterJoinSubmitResult, type ClusterJoinTxFee, type CreateFixedSupplyMrc20CalldataArgs, type CreateTokenCalldataArgs, DEFAULT_CLUSTER_JOIN_EXECUTION_UNIT_LIMIT, DEFAULT_OPERATOR_SEAL_KEY_EXECUTION_UNIT_LIMIT, DELEGATION_REVERT_TAGS, DELEGATION_SELECTORS, DelegationPrecompileError, EXECUTION_UNIT_PRICE_SAFETY_MULTIPLIER, type EncodeNativeAgentAvailabilitySlotArgs, type EncodeNativeAgentCounterEscrowArgs, type EncodeNativeAgentCreateEscrowArgs, type EncodeNativeAgentDeactivateServiceArgs, type EncodeNativeAgentEscrowActorArgs, type EncodeNativeAgentGrantConsentArgs, type EncodeNativeAgentIssueAttestationArgs, type EncodeNativeAgentListServiceArgs, type EncodeNativeAgentRecordPolicySpendArgs, type EncodeNativeAgentRecordReputationArgs, type EncodeNativeAgentRegisterArbiterArgs, type EncodeNativeAgentRegisterIssuerArgs, type EncodeNativeAgentResolveEscrowArgs, type EncodeNativeAgentRevokeAttestationArgs, type EncodeNativeAgentRevokeConsentArgs, type EncodeNativeAgentSetAvailabilityArgs, type EncodeNativeAgentSetSpendingPolicyArgs, type EncodeNativeAgentStartEscrowArgs, type EncodeNativeAgentSubmitEscrowArgs, ExecutionUnitPriceResponse, type HealthSummary, LYTHOSHI_PER_LYTH, LYTH_DECIMALS, type LatencyBands, type LythFormatOptions, MIN_EXECUTION_UNIT_PRICE_LYTHOSHI, MONOLYTHIUM_NETWORKS, 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, type MonolythiumNetworkConfig, type MrcAccountRequest, MrcAccountResponse, type MrcHoldersRequest, MrcHoldersResponse, MrcMetadataResponse, type MrvAbiManifest, type MrvAbiParam, type MrvAbiSymbol, type MrvAbiSymbolKind, type MrvAbiType, type MrvAddressKind, type MrvArtifactMetadata, type MrvBuildMetadata, type MrvBytesLike, type MrvCallNativeTxOptions, type MrvCallNativeTxPlan, type MrvCallPlan, type MrvCallRequest, type MrvCallResponse, type MrvCallStatus, type MrvCallSubmission, type MrvCallSubmitOptions, type MrvDecimalLike, type MrvDeployNativeTxOptions, type MrvDeployNativeTxPlan, type MrvDeployPayload, type MrvDeployPayloadNativeTxOptions, type MrvDeployPayloadPlanOptions, type MrvDeployPayloadRequestOptions, type MrvDeployPayloadSubmission, type MrvDeployPayloadSubmitOptions, type MrvDeployPlan, type MrvDeployPlanOptions, type MrvDeployRequest, type MrvDeployResponse, type MrvDeploySubmission, type MrvDeploySubmitOptions, type MrvEncryptedSubmissionResult, type MrvEventRecord, type MrvExecutionReceipt, type MrvFeeDisplayConformanceInput, type MrvFeeDisplayConformanceReport, type MrvMemoryLimits, type MrvMeterCounters, type MrvNativeFeePreview, type MrvNativeStateDelta, type MrvNativeTxFacade, type MrvRequestBuildOptions, type MrvResolvedSyscall, type MrvRevertPayload, type MrvRiscvProfile, type MrvStorageNamespace, type MrvStructuredFeeConformanceOptions, type MrvStructuredFeeConformanceReport, type MrvSyscallImport, type MrvTransactionExtension, type MrvTypedAddress, type MrvValidatedArtifactMetadata, MrvValidationError, NATIVE_AGENT_MODULE_ADDRESS, NATIVE_AGENT_MODULE_ADDRESS_BYTES, NATIVE_DEV_HOST_API_VERSION, NATIVE_DEV_IPC_PROTOCOL_VERSION, NATIVE_DEV_MANIFEST_SCHEMA_VERSION, NATIVE_LYTH_DECIMALS, type NativeAgentAddressInput, type NativeAgentAddressKind, type NativeAgentEscrowResolution, type NativeAgentForwarderInput, type NativeAgentModuleCallEnvelope, type NativeAgentModuleContractCall, type NativeAgentReputationScores, NativeAgentStateFilter, NativeAgentStateResponse, NativeDecodedEvent, type NativeDevApprovalKind, type NativeDevCommandName, type NativeDevContractPassport, type NativeDevHostApprovalResultMessage, type NativeDevHostCommandMessage, type NativeDevHostContextMessage, type NativeDevIpcMessage, type NativeDevMrcAllocation, type NativeDevMrcAssetKind, type NativeDevMrcTokenPlan, type NativeDevMrvDeployPlan, type NativeDevRiskLabel, type NativeDevRiskSeverity, type NativeDevSidecarApprovalRequestMessage, type NativeDevSidecarCommandResultMessage, type NativeDevSidecarProjectEventMessage, type NativeDevSidecarReadyMessage, type NativeDevVerificationBundle, type NativeDevWalletApprovalRequest, type NativeDevkitArchive, type NativeDevkitChannel, type NativeDevkitCompatibility, type NativeDevkitManifest, type NativeDevkitSidecarManifest, type NativeDevkitSidecarStatus, type NativeDevkitStatus, NativeEventFilter, NativeEventsFilter, NativeEventsResponse, NativeMarketOrderBookDeltasRequest, NativeMarketOrderBookDeltasResponse, NativeMarketStateFilter, NativeMarketStateResponse, NativeReceiptFee, type NativeReceiptFeeDisplay, NativeReceiptResponse, OPERATOR_ROUTER_ADDRESS, OperatorCapabilitiesResponse, type OperatorOnboardingPreview, type OperatorSealKeySubmitResult, PRECOMPILE_ADDRESSES, PROTOCOL_MAX_OPERATOR_FEE_BPS, PUBKEY_REGISTRY_ML_DSA_65_PUBLIC_KEY_LEN, PUBKEY_REGISTRY_SELECTORS, PendingRewardsResponse, type PrecompileAddress, type PrecompileName, type PubkeyLookup, PubkeyRegistryError, REGISTRY_DEFAULT_EXECUTION_UNIT_LIMIT, RedemptionQueueResponse, type ResolvedExecutionFee, RpcClient, RuntimeBuildProvenance, RuntimeUpgradeStatus, SdkError, SearchResponse, ServiceProbeResponse, type StudioHostState, type StudioHostStatus, type SubmitPublishOperatorSealKeyArgs, type SubmitRequestClusterJoinArgs, type SubmitVoteClusterAdmitArgs, TOKEN_FACTORY_CREATE_DEPOSIT_LYTHOSHI, TOKEN_FACTORY_FLAGS, TOKEN_FACTORY_KNOWN_FLAG_MASK, TOKEN_FACTORY_MAX_CREATOR_FEE_BPS, TOKEN_FACTORY_MAX_DECIMALS, TOKEN_FACTORY_NAME_MAX_BYTES, TOKEN_FACTORY_SELECTORS, TOKEN_FACTORY_SIGS, TOKEN_FACTORY_SYMBOL_MAX_BYTES, TOKEN_FACTORY_TOKEN_ID_DOMAIN_TAG, TRANSFER_DEFAULT_EXECUTION_UNIT_LIMIT, type TokenFactoryAddressInput, type TokenFactoryBytes32Input, TokenFactoryError, type TokenFactoryUintInput, type TransactionFeeExposure, TxFeedResponse, TypedAddress, TypedNativeReceiptEvent, VRF_DOMAIN_TAG_MAX_BYTES, VRF_HEIGHT_NOT_FINALIZED_REVERT, VRF_OUTPUT_BYTES, VrfCallError, type VrfDomainTagInput, apiEndpointFromRpcEndpoint, assertMrvCallNativeSubmissionPlan, assertMrvDeployNativeSubmissionPlan, assertMrvFeeDisplayConformance, assertMrvStructuredFeeConformance, assertNativeDevMrcTokenPlan, assertNativeDevMrvDeployPlan, assertNativeDevWalletApprovalRequest, buildMrvCallNativeTxPlan, buildMrvCallPlan, buildMrvCallRequest, buildMrvDeployNativeTxPlan, buildMrvDeployPayloadNativeTxPlan, buildMrvDeployPayloadPlan, buildMrvDeployPayloadRequest, buildMrvDeployPlan, buildMrvDeployRequest, buildNativeAgentCreateEscrowForwarderInput, buildNativeAgentCreateEscrowModuleCall, buildNativeAgentModuleCallEnvelope, buildNativeAgentRecordReputationForwarderInput, buildNativeAgentRecordReputationModuleCall, buildNativeAgentSetSpendingPolicyForwarderInput, buildNativeAgentSetSpendingPolicyModuleCall, buildPublishOperatorSealKeyTxFields, buildRequestClusterJoinTxFields, buildVoteClusterAdmitTxFields, checkMrvFeeDisplayConformance, checkMrvStructuredFeeConformance, checkNativeDevkitCompatibility, clampPriorityTip, clusterJoinRequestExists, compareNativeDevVersions, decodeHasPubkeyReturn, decodeLookupPubkeyReturn, decodeTokenFactoryTokenId, decodeVrfOutput, delegationAddressHex, deriveClusterJoinOperatorId, deriveMrvContractAddress, deriveTokenFactoryTokenId, encodeClaimCalldata, encodeCompleteRedemptionCalldata, encodeCreateFixedSupplyMrc20Calldata, encodeCreateTokenCalldata, encodeDelegateCalldata, encodeHasPubkeyCalldata, 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, encodeRedelegateCalldata, encodeRegisterPubkeyCalldata, encodeSetAutoCompoundCalldata, encodeTokenFactoryAllowanceCalldata, encodeTokenFactoryApproveCalldata, encodeTokenFactoryBalanceOfCalldata, encodeTokenFactoryBurnCalldata, encodeTokenFactoryDecreaseAllowanceCalldata, encodeTokenFactoryDestroyCalldata, encodeTokenFactoryIncreaseAllowanceCalldata, encodeTokenFactoryMetadataCalldata, encodeTokenFactoryMintCalldata, encodeTokenFactorySetPausedCalldata, encodeTokenFactoryTotalSupplyCalldata, encodeTokenFactoryTransferCalldata, encodeTokenFactoryTransferFromCalldata, encodeTokenFactoryTransferOwnershipCalldata, encodeUndelegateCalldata, encodeVrfEvaluateCalldata, formatLyth, formatLythoshi, formatNativeReceiptFeeDisplay, isRedemptionPrincipalUnavailableRevert, mrvAddressToBech32, mrvBech32ToAddress, mrvCodeHashHex, mrvV1TransactionExtension, nativeDevSchemaFieldNames, nativeDevUiStrings, parseLythToLythoshi, preflightClusterJoinRequest, previewRequestClusterJoin, previewVoteClusterAdmit, pubkeyRegistryAddressHex, readClusterJoinRequest, resolveClusterJoinExecutionFee, resolveExecutionFee, resolveMaxExecutionUnitPrice, resolveRegistryExecutionFee, resolveStudioHostStatus, submitMrvCallNativeTx, submitMrvDeployNativeTx, submitMrvDeployPayloadNativeTx, submitPublishOperatorSealKey, submitRequestClusterJoin, submitVoteClusterAdmit, tokenFactoryAddressHex, transactionFeeExposure, validateMrvArtifactMetadata, validateMrvCallRequest, validateMrvDeployRequest, validateTokenFactoryFlags, version, vrfAddressHex };
|
|
2394
|
+
export { AddressFlowResponse, AddressKind, AddressProfileResponse, AgentActionError, type ApiAddressActivityData, type ApiAddressActivityEntry, type ApiAddressActivityKind, type ApiAddressActivityKindData, type ApiAddressActivityKindSummary, type ApiBlockData, type ApiBlockHeader, type ApiBlockTransactionsData, type ApiCapabilitiesResponse, ApiClient, type ApiClientOptions, type ApiClusterData, type ApiClusterDirectoryEntry, type ApiClusterDirectoryPage, type ApiClusterMember, type ApiClusterStatus, type ApiClustersData, type ApiEnvelope, type ApiErrorEnvelope, type ApiHealthResponse, type ApiIndexerStatus, type ApiLatestAnchor, type ApiLogEntry, type ApiOperatorData, type ApiOperatorInfo, type ApiQueryValue, type ApiRuntimeProvenanceData, type ApiServiceProbeData, ApiStreamsIndexResponse, type ApiTransactionData, type ApiTransactionNativeReceiptData, type ApiTransactionReceipt, type ApiTransactionReceiptData, type ApiTransactionView, type ApiUpgradePlanStatus, type ApiUpgradeStatus, type ApiUpgradeStatusData, BURN_ADDR, BlockSelector, BridgeRoutesRequest, BridgeRoutesResponse, type BuildPublishOperatorSealKeyTxFieldsArgs, type BuildRequestClusterJoinTxFieldsArgs, type BuildVoteClusterAdmitTxFieldsArgs, ChainStatsResponse, ClobMarketResponse, ClobMarketsResponse, ClobOhlcResponse, ClobOrderBookResponse, ClobTradesResponse, type ClusterJoinFeeOptions, type ClusterJoinReadClient, ClusterJoinRequestView, type ClusterJoinSubmitClient, type ClusterJoinSubmitResult, type ClusterJoinTxFee, type CreateFixedSupplyMrc20CalldataArgs, type CreateTokenCalldataArgs, DEFAULT_CLUSTER_JOIN_EXECUTION_UNIT_LIMIT, DEFAULT_OPERATOR_SEAL_KEY_EXECUTION_UNIT_LIMIT, DELEGATION_REVERT_TAGS, DELEGATION_SELECTORS, DelegationPrecompileError, EXECUTION_UNIT_PRICE_SAFETY_MULTIPLIER, type EncodeNativeAgentAvailabilitySlotArgs, type EncodeNativeAgentCounterEscrowArgs, type EncodeNativeAgentCreateEscrowArgs, type EncodeNativeAgentDeactivateServiceArgs, type EncodeNativeAgentEscrowActorArgs, type EncodeNativeAgentGrantConsentArgs, type EncodeNativeAgentIssueAttestationArgs, type EncodeNativeAgentListServiceArgs, type EncodeNativeAgentRecordPolicySpendArgs, type EncodeNativeAgentRecordReputationArgs, type EncodeNativeAgentRegisterArbiterArgs, type EncodeNativeAgentRegisterIssuerArgs, type EncodeNativeAgentResolveEscrowArgs, type EncodeNativeAgentRevokeAttestationArgs, type EncodeNativeAgentRevokeConsentArgs, type EncodeNativeAgentSetAvailabilityArgs, type EncodeNativeAgentSetSpendingPolicyArgs, type EncodeNativeAgentStartEscrowArgs, type EncodeNativeAgentSubmitEscrowArgs, ExecutionUnitPriceResponse, type HealthSummary, LYTHOSHI_PER_LYTH, LYTH_DECIMALS, type LatencyBands, type LythFormatOptions, MAX_MULTISIG_MEMBERS, MIN_EXECUTION_UNIT_PRICE_LYTHOSHI, MIN_MULTISIG_MEMBERS, MONOLYTHIUM_NETWORKS, 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, MULTISIG_ADDRESS_DERIVATION_DOMAIN as MULTISIG_WITNESS_ADDRESS_DERIVATION_DOMAIN, MULTISIG_WITNESS_DOMAIN, type MemberPubkeyInput, type MonolythiumNetworkConfig, type MrcAccountRequest, MrcAccountResponse, type MrcHoldersRequest, MrcHoldersResponse, MrcMetadataResponse, type MrvAbiManifest, type MrvAbiParam, type MrvAbiSymbol, type MrvAbiSymbolKind, type MrvAbiType, type MrvAddressKind, type MrvArtifactMetadata, type MrvBuildMetadata, type MrvBytesLike, type MrvCallNativeTxOptions, type MrvCallNativeTxPlan, type MrvCallPlan, type MrvCallRequest, type MrvCallResponse, type MrvCallStatus, type MrvCallSubmission, type MrvCallSubmitOptions, type MrvDecimalLike, type MrvDeployNativeTxOptions, type MrvDeployNativeTxPlan, type MrvDeployPayload, type MrvDeployPayloadNativeTxOptions, type MrvDeployPayloadPlanOptions, type MrvDeployPayloadRequestOptions, type MrvDeployPayloadSubmission, type MrvDeployPayloadSubmitOptions, type MrvDeployPlan, type MrvDeployPlanOptions, type MrvDeployRequest, type MrvDeployResponse, type MrvDeploySubmission, type MrvDeploySubmitOptions, type MrvEncryptedSubmissionResult, type MrvEventRecord, type MrvExecutionReceipt, type MrvFeeDisplayConformanceInput, type MrvFeeDisplayConformanceReport, type MrvMemoryLimits, type MrvMeterCounters, type MrvNativeFeePreview, type MrvNativeStateDelta, type MrvNativeTxFacade, type MrvRequestBuildOptions, type MrvResolvedSyscall, type MrvRevertPayload, type MrvRiscvProfile, type MrvStorageNamespace, type MrvStructuredFeeConformanceOptions, type MrvStructuredFeeConformanceReport, type MrvSyscallImport, type MrvTransactionExtension, type MrvTypedAddress, type MrvValidatedArtifactMetadata, MrvValidationError, MultisigError, type MultisigMember, type MultisigMemberSignature, type MultisigWitness, NATIVE_AGENT_MODULE_ADDRESS, NATIVE_AGENT_MODULE_ADDRESS_BYTES, NATIVE_DEV_HOST_API_VERSION, NATIVE_DEV_IPC_PROTOCOL_VERSION, NATIVE_DEV_MANIFEST_SCHEMA_VERSION, NATIVE_LYTH_DECIMALS, type NativeAgentAddressInput, type NativeAgentAddressKind, type NativeAgentEscrowResolution, type NativeAgentForwarderInput, type NativeAgentModuleCallEnvelope, type NativeAgentModuleContractCall, type NativeAgentReputationScores, NativeAgentStateFilter, NativeAgentStateResponse, NativeDecodedEvent, type NativeDevApprovalKind, type NativeDevCommandName, type NativeDevContractPassport, type NativeDevHostApprovalResultMessage, type NativeDevHostCommandMessage, type NativeDevHostContextMessage, type NativeDevIpcMessage, type NativeDevMrcAllocation, type NativeDevMrcAssetKind, type NativeDevMrcTokenPlan, type NativeDevMrvDeployPlan, type NativeDevRiskLabel, type NativeDevRiskSeverity, type NativeDevSidecarApprovalRequestMessage, type NativeDevSidecarCommandResultMessage, type NativeDevSidecarProjectEventMessage, type NativeDevSidecarReadyMessage, type NativeDevVerificationBundle, type NativeDevWalletApprovalRequest, type NativeDevkitArchive, type NativeDevkitChannel, type NativeDevkitCompatibility, type NativeDevkitManifest, type NativeDevkitSidecarManifest, type NativeDevkitSidecarStatus, type NativeDevkitStatus, NativeEventFilter, NativeEventsFilter, NativeEventsResponse, NativeMarketOrderBookDeltasRequest, NativeMarketOrderBookDeltasResponse, NativeMarketStateFilter, NativeMarketStateResponse, NativeReceiptFee, type NativeReceiptFeeDisplay, NativeReceiptResponse, OPERATOR_ROUTER_ADDRESS, OperatorCapabilitiesResponse, type OperatorOnboardingPreview, type OperatorSealKeySubmitResult, PRECOMPILE_ADDRESSES, PROTOCOL_MAX_OPERATOR_FEE_BPS, PUBKEY_REGISTRY_ML_DSA_65_PUBLIC_KEY_LEN, PUBKEY_REGISTRY_SELECTORS, PendingRewardsResponse, type PrecompileAddress, type PrecompileName, type PubkeyLookup, PubkeyRegistryError, REGISTRY_DEFAULT_EXECUTION_UNIT_LIMIT, RedemptionQueueResponse, type ResolvedExecutionFee, RpcClient, RuntimeBuildProvenance, RuntimeUpgradeStatus, SdkError, SearchResponse, ServiceProbeResponse, type StudioHostState, type StudioHostStatus, type SubmitPublishOperatorSealKeyArgs, type SubmitRequestClusterJoinArgs, type SubmitVoteClusterAdmitArgs, TOKEN_FACTORY_CREATE_DEPOSIT_LYTHOSHI, TOKEN_FACTORY_FLAGS, TOKEN_FACTORY_KNOWN_FLAG_MASK, TOKEN_FACTORY_MAX_CREATOR_FEE_BPS, TOKEN_FACTORY_MAX_DECIMALS, TOKEN_FACTORY_NAME_MAX_BYTES, TOKEN_FACTORY_SELECTORS, TOKEN_FACTORY_SIGS, TOKEN_FACTORY_SYMBOL_MAX_BYTES, TOKEN_FACTORY_TOKEN_ID_DOMAIN_TAG, TRANSFER_DEFAULT_EXECUTION_UNIT_LIMIT, TX_EXTENSION_KIND_MULTISIG, TX_EXTENSION_MULTISIG_V1, type TokenFactoryAddressInput, type TokenFactoryBytes32Input, TokenFactoryError, type TokenFactoryUintInput, type TransactionFeeExposure, TxFeedResponse, TypedAddress, TypedNativeReceiptEvent, VRF_DOMAIN_TAG_MAX_BYTES, VRF_HEIGHT_NOT_FINALIZED_REVERT, VRF_OUTPUT_BYTES, VrfCallError, type VrfDomainTagInput, apiEndpointFromRpcEndpoint, assembleMultisigSigned, assembleMultisigWitness, assertMrvCallNativeSubmissionPlan, assertMrvDeployNativeSubmissionPlan, assertMrvFeeDisplayConformance, assertMrvStructuredFeeConformance, assertNativeDevMrcTokenPlan, assertNativeDevMrvDeployPlan, assertNativeDevWalletApprovalRequest, buildMrvCallNativeTxPlan, buildMrvCallPlan, buildMrvCallRequest, buildMrvDeployNativeTxPlan, buildMrvDeployPayloadNativeTxPlan, buildMrvDeployPayloadPlan, buildMrvDeployPayloadRequest, buildMrvDeployPlan, buildMrvDeployRequest, buildNativeAgentCreateEscrowForwarderInput, buildNativeAgentCreateEscrowModuleCall, buildNativeAgentModuleCallEnvelope, buildNativeAgentRecordReputationForwarderInput, buildNativeAgentRecordReputationModuleCall, buildNativeAgentSetSpendingPolicyForwarderInput, buildNativeAgentSetSpendingPolicyModuleCall, buildPublishOperatorSealKeyTxFields, buildRequestClusterJoinTxFields, buildVoteClusterAdmitTxFields, checkMrvFeeDisplayConformance, checkMrvStructuredFeeConformance, checkNativeDevkitCompatibility, clampPriorityTip, clusterJoinRequestExists, compareNativeDevVersions, decodeHasPubkeyReturn, decodeLookupPubkeyReturn, decodeTokenFactoryTokenId, decodeVrfOutput, delegationAddressHex, deriveClusterJoinOperatorId, deriveMrvContractAddress, deriveMultisigAddress, deriveMultisigAddressBytes, deriveTokenFactoryTokenId, encodeClaimCalldata, encodeCompleteRedemptionCalldata, encodeCreateFixedSupplyMrc20Calldata, encodeCreateTokenCalldata, encodeDelegateCalldata, encodeHasPubkeyCalldata, encodeLookupPubkeyCalldata, encodeMrvDeployPayload, encodeMultisigWitnessBody, 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, encodeRedelegateCalldata, encodeRegisterPubkeyCalldata, encodeSetAutoCompoundCalldata, encodeTokenFactoryAllowanceCalldata, encodeTokenFactoryApproveCalldata, encodeTokenFactoryBalanceOfCalldata, encodeTokenFactoryBurnCalldata, encodeTokenFactoryDecreaseAllowanceCalldata, encodeTokenFactoryDestroyCalldata, encodeTokenFactoryIncreaseAllowanceCalldata, encodeTokenFactoryMetadataCalldata, encodeTokenFactoryMintCalldata, encodeTokenFactorySetPausedCalldata, encodeTokenFactoryTotalSupplyCalldata, encodeTokenFactoryTransferCalldata, encodeTokenFactoryTransferFromCalldata, encodeTokenFactoryTransferOwnershipCalldata, encodeUndelegateCalldata, encodeVrfEvaluateCalldata, formatLyth, formatLythoshi, formatNativeReceiptFeeDisplay, isRedemptionPrincipalUnavailableRevert, mrvAddressToBech32, mrvBech32ToAddress, mrvCodeHashHex, mrvV1TransactionExtension, multisigBaseSighash, multisigMemberIndex, nativeDevSchemaFieldNames, nativeDevUiStrings, parseLythToLythoshi, preflightClusterJoinRequest, previewRequestClusterJoin, previewVoteClusterAdmit, pubkeyRegistryAddressHex, readClusterJoinRequest, resolveClusterJoinExecutionFee, resolveExecutionFee, resolveMaxExecutionUnitPrice, resolveRegistryExecutionFee, resolveStudioHostStatus, sortMultisigMembers, submitMrvCallNativeTx, submitMrvDeployNativeTx, submitMrvDeployPayloadNativeTx, submitPublishOperatorSealKey, submitRequestClusterJoin, submitVoteClusterAdmit, tokenFactoryAddressHex, transactionFeeExposure, validateMrvArtifactMetadata, validateMrvCallRequest, validateMrvDeployRequest, validateMultisigRoster, validateTokenFactoryFlags, version, vrfAddressHex };
|