@sidan-lab/sidan-csl
Version:
Cardano Off-chain Code APIs built on cardano-serialization-lib
22 lines (21 loc) • 1.68 kB
TypeScript
import { AssetClass, AssocMap, BuiltinByteString, ConStr, ConStr0, ConStr1, ConStr2, Bool, Integer, MaybeStakingHash, POSIXTime, PaymentPubKeyHash, PubKeyHash, PubKeyAddress, ScriptAddress, Tuple, TxOutRef, CurrencySymbol, TokenName, List } from '../type/plutus';
export declare const conStr: <N, T>(constructor: N, fields: T) => ConStr<N, T>;
export declare const conStr0: <T>(fields: T) => ConStr0<T>;
export declare const conStr1: <T>(fields: T) => ConStr1<T>;
export declare const conStr2: <T>(fields: T) => ConStr2<T>;
export declare const bool: (b: boolean) => Bool;
export declare const builtinByteString: (bytes: string) => BuiltinByteString;
export declare const integer: (int: number) => Integer;
export declare const list: <T>(pList: T[]) => List<T>;
export declare const currencySymbol: (bytes: string) => CurrencySymbol;
export declare const tokenName: (bytes: string) => TokenName;
export declare const maybeStakingHash: (stakeCredential: string) => MaybeStakingHash;
export declare const pubKeyAddress: (bytes: string, stakeCredential?: string) => PubKeyAddress;
export declare const scriptAddress: (bytes: string, stakeCredential?: string) => ScriptAddress;
export declare const assetClass: (policyId: string, assetName: string) => AssetClass;
export declare const txOutRef: (txHash: string, index: number) => TxOutRef;
export declare const paymentPubKeyHash: (bytes: string) => PaymentPubKeyHash;
export declare const pubKeyHash: (bytes: string) => PubKeyHash;
export declare const posixTime: (int: number) => POSIXTime;
export declare const assocMap: <K, V>(itemsMap: [K, V][]) => AssocMap<K, V>;
export declare const tuple: <K, V>(key: K, value: V) => Tuple<K, V>;