@@ -39,6 +39,9 @@ import { TransferBody as _TransferBody } from './funder/funding_types';
3939import { Config as _Config , KwilConfig as _KwilConfig } from './api_client/config' ;
4040import { EthSigner as _EthSigner } from './core/signature' ;
4141import { Kwil as _Kwil } from './client/kwil' ;
42+ import { formatEncodedValue as _formatEncodedValue } from './utils/parameterEncoding' ;
43+ import { encodeEncodedValue as _encodeEncodedValue } from './utils/kwilEncoding' ;
44+ import { EncodedValue as _EncodedValue } from './core/payload' ;
4245
4346namespace Types {
4447 export type TxReceipt = _TxReceipt ;
@@ -65,6 +68,7 @@ namespace Types {
6568 export type NamedParams = _NamedParams
6669 export type PositionalParams = _PositionalParams
6770 export type ValueType = _ValueType
71+ export type EncodedValue = _EncodedValue
6872
6973 // below are deprecated and can be removed on next release (kwil-js v0.10)
7074 export type Database = _Database ;
@@ -98,6 +102,18 @@ namespace Utils {
98102 * `DataType` holds the different data types that can be asserted as action inputs.
99103 */
100104 export import DataType = _DataType ;
105+
106+ /**
107+ * Converts a JavaScript value into an EncodedValue structure.
108+ * Used for encoding arguments for Kwil actions.
109+ */
110+ export const formatEncodedValue = _formatEncodedValue ;
111+
112+ /**
113+ * Serializes an EncodedValue into bytes using kwil-db's MarshalBinary format.
114+ * Used for advanced argument encoding scenarios.
115+ */
116+ export const encodeEncodedValue = _encodeEncodedValue ;
101117}
102118
103119export { NodeKwil , WebKwil , KwilSigner , Types , Utils , Client , EnvironmentType } ;
0 commit comments