New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sidan-lab/sidan-csl

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sidan-lab/sidan-csl - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

dist/cjs/utils/mesh.d.ts

1

dist/cjs/parser/address.js

@@ -44,3 +44,2 @@ "use strict";

}
console.log('Parsed address', bech32Addr);
return bech32Addr;

@@ -47,0 +46,0 @@ };

@@ -1,2 +0,2 @@

import { AssetClass, AssocMap, BuiltinByteString, ConStr, ConStr0, ConStr1, ConStr2, Integer, MaybeStakingHash, POSIXTime, PaymentPubKeyHash, PubKeyHash, PubKeyAddress, ScriptAddress, Tuple } from './type';
import { AssetClass, AssocMap, BuiltinByteString, ConStr, ConStr0, ConStr1, ConStr2, Integer, MaybeStakingHash, POSIXTime, PaymentPubKeyHash, PubKeyHash, PubKeyAddress, ScriptAddress, Tuple, TxOutRef } from './type';
export declare const conStr: <N, T>(constructor: N, fields: T) => ConStr<N, T>;

@@ -7,2 +7,3 @@ export declare const conStr0: <T>(fields: T) => ConStr0<T>;

export declare const builtinByteString: (bytes: string) => BuiltinByteString;
export declare const integer: (int: number) => Integer;
export declare const maybeStakingHash: (stakeCredential: string) => MaybeStakingHash;

@@ -12,7 +13,7 @@ export declare const pubKeyAddress: (bytes: string, stakeCredential?: string) => PubKeyAddress;

export declare const assetClass: (policyId: string, tokenName: 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 integer: (int: number) => Integer;
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>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.tuple = exports.assocMap = exports.integer = exports.posixTime = exports.pubKeyHash = exports.paymentPubKeyHash = exports.assetClass = exports.scriptAddress = exports.pubKeyAddress = exports.maybeStakingHash = exports.builtinByteString = exports.conStr2 = exports.conStr1 = exports.conStr0 = exports.conStr = void 0;
exports.tuple = exports.assocMap = exports.posixTime = exports.pubKeyHash = exports.paymentPubKeyHash = exports.txOutRef = exports.assetClass = exports.scriptAddress = exports.pubKeyAddress = exports.maybeStakingHash = exports.integer = exports.builtinByteString = exports.conStr2 = exports.conStr1 = exports.conStr0 = exports.conStr = void 0;
const conStr = (constructor, fields) => ({
constructor,
fields
fields,
});

@@ -17,2 +17,4 @@ exports.conStr = conStr;

exports.builtinByteString = builtinByteString;
const integer = (int) => ({ int });
exports.integer = integer;
const maybeStakingHash = (stakeCredential) => {

@@ -23,3 +25,5 @@ if (stakeCredential === '') {

return (0, exports.conStr0)([
(0, exports.conStr0)([(0, exports.conStr0)([(0, exports.builtinByteString)(stakeCredential)])])
(0, exports.conStr0)([
(0, exports.conStr0)([(0, exports.builtinByteString)(stakeCredential)]),
]),
]);

@@ -30,3 +34,3 @@ };

(0, exports.conStr0)([(0, exports.builtinByteString)(bytes)]),
(0, exports.maybeStakingHash)(stakeCredential || '')
(0, exports.maybeStakingHash)(stakeCredential || ''),
]);

@@ -36,7 +40,12 @@ exports.pubKeyAddress = pubKeyAddress;

(0, exports.conStr1)([(0, exports.builtinByteString)(bytes)]),
(0, exports.maybeStakingHash)(stakeCredential || '')
(0, exports.maybeStakingHash)(stakeCredential || ''),
]);
exports.scriptAddress = scriptAddress;
const assetClass = (policyId, tokenName) => (0, exports.conStr0)([(0, exports.builtinByteString)(policyId), (0, exports.builtinByteString)(tokenName)]);
const assetClass = (policyId, tokenName) => (0, exports.conStr0)([
(0, exports.builtinByteString)(policyId),
(0, exports.builtinByteString)(tokenName),
]);
exports.assetClass = assetClass;
const txOutRef = (txHash, index) => (0, exports.conStr0)([(0, exports.conStr0)([(0, exports.builtinByteString)(txHash)]), (0, exports.integer)(index)]);
exports.txOutRef = txOutRef;
const paymentPubKeyHash = (bytes) => (0, exports.builtinByteString)(bytes);

@@ -48,7 +57,7 @@ exports.paymentPubKeyHash = paymentPubKeyHash;

exports.posixTime = posixTime;
const integer = (int) => ({ int });
exports.integer = integer;
const assocMap = (itemsMap) => ({ map: itemsMap.map(([k, v]) => ({ k, v })) });
const assocMap = (itemsMap) => ({
map: itemsMap.map(([k, v]) => ({ k, v })),
});
exports.assocMap = assocMap;
const tuple = (key, value) => (0, exports.conStr0)([key, value]);
exports.tuple = tuple;

@@ -26,2 +26,3 @@ export type ConStr<N, T> = {

}]>;
export type TxOutRef = ConStr0<[ConStr0<[BuiltinByteString]>, Integer]>;
export type AssocMapItem<K, V> = {

@@ -35,2 +36,2 @@ k: K;

export type Tuple<K, V> = ConStr0<[K, V]>;
export type PlutusData = BuiltinByteString | Integer | MaybeStakingHash | PubKeyAddress | ScriptAddress | AssetClass | PaymentPubKeyHash | PubKeyHash | POSIXTime;
export type PlutusData = BuiltinByteString | Integer | MaybeStakingHash | PubKeyAddress | ScriptAddress | AssetClass | PaymentPubKeyHash | PubKeyHash | POSIXTime | TxOutRef;

@@ -39,3 +39,2 @@ import { csl } from '../csl';

}
console.log('Parsed address', bech32Addr);
return bech32Addr;

@@ -42,0 +41,0 @@ };

@@ -1,2 +0,2 @@

import { AssetClass, AssocMap, BuiltinByteString, ConStr, ConStr0, ConStr1, ConStr2, Integer, MaybeStakingHash, POSIXTime, PaymentPubKeyHash, PubKeyHash, PubKeyAddress, ScriptAddress, Tuple } from './type';
import { AssetClass, AssocMap, BuiltinByteString, ConStr, ConStr0, ConStr1, ConStr2, Integer, MaybeStakingHash, POSIXTime, PaymentPubKeyHash, PubKeyHash, PubKeyAddress, ScriptAddress, Tuple, TxOutRef } from './type';
export declare const conStr: <N, T>(constructor: N, fields: T) => ConStr<N, T>;

@@ -7,2 +7,3 @@ export declare const conStr0: <T>(fields: T) => ConStr0<T>;

export declare const builtinByteString: (bytes: string) => BuiltinByteString;
export declare const integer: (int: number) => Integer;
export declare const maybeStakingHash: (stakeCredential: string) => MaybeStakingHash;

@@ -12,7 +13,7 @@ export declare const pubKeyAddress: (bytes: string, stakeCredential?: string) => PubKeyAddress;

export declare const assetClass: (policyId: string, tokenName: 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 integer: (int: number) => Integer;
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>;
export const conStr = (constructor, fields) => ({
constructor,
fields
fields,
});

@@ -9,2 +9,3 @@ export const conStr0 = (fields) => conStr(0, fields);

export const builtinByteString = (bytes) => ({ bytes });
export const integer = (int) => ({ int });
export const maybeStakingHash = (stakeCredential) => {

@@ -15,3 +16,5 @@ if (stakeCredential === '') {

return conStr0([
conStr0([conStr0([builtinByteString(stakeCredential)])])
conStr0([
conStr0([builtinByteString(stakeCredential)]),
]),
]);

@@ -21,14 +24,19 @@ };

conStr0([builtinByteString(bytes)]),
maybeStakingHash(stakeCredential || '')
maybeStakingHash(stakeCredential || ''),
]);
export const scriptAddress = (bytes, stakeCredential) => conStr0([
conStr1([builtinByteString(bytes)]),
maybeStakingHash(stakeCredential || '')
maybeStakingHash(stakeCredential || ''),
]);
export const assetClass = (policyId, tokenName) => conStr0([builtinByteString(policyId), builtinByteString(tokenName)]);
export const assetClass = (policyId, tokenName) => conStr0([
builtinByteString(policyId),
builtinByteString(tokenName),
]);
export const txOutRef = (txHash, index) => conStr0([conStr0([builtinByteString(txHash)]), integer(index)]);
export const paymentPubKeyHash = (bytes) => builtinByteString(bytes);
export const pubKeyHash = (bytes) => builtinByteString(bytes);
export const posixTime = (int) => ({ int });
export const integer = (int) => ({ int });
export const assocMap = (itemsMap) => ({ map: itemsMap.map(([k, v]) => ({ k, v })) });
export const assocMap = (itemsMap) => ({
map: itemsMap.map(([k, v]) => ({ k, v })),
});
export const tuple = (key, value) => conStr0([key, value]);

@@ -26,2 +26,3 @@ export type ConStr<N, T> = {

}]>;
export type TxOutRef = ConStr0<[ConStr0<[BuiltinByteString]>, Integer]>;
export type AssocMapItem<K, V> = {

@@ -35,2 +36,2 @@ k: K;

export type Tuple<K, V> = ConStr0<[K, V]>;
export type PlutusData = BuiltinByteString | Integer | MaybeStakingHash | PubKeyAddress | ScriptAddress | AssetClass | PaymentPubKeyHash | PubKeyHash | POSIXTime;
export type PlutusData = BuiltinByteString | Integer | MaybeStakingHash | PubKeyAddress | ScriptAddress | AssetClass | PaymentPubKeyHash | PubKeyHash | POSIXTime | TxOutRef;
{
"name": "@sidan-lab/sidan-csl",
"description": "Cardano Off-chain Code APIs built on cardano-serialization-lib",
"version": "0.1.7",
"version": "0.1.8",
"license": "MIT",

@@ -6,0 +6,0 @@ "main": "dist/cjs/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc