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

@helios-lang/ledger

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@helios-lang/ledger - npm Package Compare versions

Comparing version 0.6.14 to 0.6.15

src/tx/UtxoAlreadySpentError.js

2

package.json
{
"name": "@helios-lang/ledger",
"version": "0.6.14",
"version": "0.6.15",
"description": "Latest ledger types (eg. for building transactions)",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -170,3 +170,5 @@ import { UplcRuntimeError } from "@helios-lang/uplc"

makeTxWitnesses,
parseTxOutputId
parseTxOutputId,
UtxoAlreadySpentError,
UtxoNotFoundError
} from "./tx/index.js"

@@ -173,0 +175,0 @@

@@ -58,1 +58,3 @@ export { decodeDCert } from "./DCert.js"

export { decodeTxWitnesses, makeTxWitnesses } from "./TxWitnesses.js"
export { UtxoAlreadySpentError } from "./UtxoAlreadySpentError.js"
export { UtxoNotFoundError } from "./UtxoNotFoundError.js"

@@ -17,2 +17,3 @@ import {

} from "./TxOutputId.js"
import { UtxoAlreadySpentError } from "./UtxoAlreadySpentError.js"

@@ -224,5 +225,18 @@ /**

if (!this._output) {
this._output = /** @type {any} */ (
await network.getUtxo(this.id)
).output
/**
* @type {TxOutput<any>}
*/
let output
try {
output = (await network.getUtxo(this.id)).output
} catch (e) {
if (e instanceof UtxoAlreadySpentError) {
output = e.utxo.output
} else {
throw e
}
}
this._output = output
}

@@ -229,0 +243,0 @@ }

@@ -1370,3 +1370,3 @@ export type Address<SC extends SpendingCredential = SpendingCredential> = ByronAddress | ShelleyAddress<SC>;

export { convertUplcDataToTimeRange, makeTimeRange, toTime } from "./time/index.js";
export { DEFAULT_TX_OUTPUT_ENCODING_CONFIG, appendTxInput, calcRefScriptsSize, calcScriptDataHash, compareTxInputs, compareTxOutputIds, convertUplcDataToTxInput, convertUplcDataToTxOutput, convertUplcDataToTxOutputDatum, convertUplcDataToTxOutputId, decodeDCert, decodeTx, decodeTxBody, decodeTxInput, decodeTxMetadata, decodeTxMetadataAttr, decodeTxOutput, decodeTxOutputDatum, decodeTxOutputId, decodeTxRedeemer, decodeTxWitnesses, encodeTxMetadataAttr, isValidTxInputCbor, isValidTxOutputCbor, isValidTxOutputId, makeCertifyingPurpose, makeDelegationDCert, makeDeregistrationDCert, makeDummyTxOutputId, makeHashedTxOutputDatum, makeInlineTxOutputDatum, makeMintingPurpose, makeRegisterPoolDCert, makeRegistrationDCert, makeRetirePoolDCert, makeRewardingPurpose, makeScriptContextV2, makeSpendingPurpose, makeTx, makeTxBody, makeTxCertifyingRedeemer, makeTxInput, makeTxMetadata, makeTxMintingRedeemer, makeTxOutput, makeTxOutputDatum, makeTxOutputId, makeTxRewardingRedeemer, makeTxSpendingRedeemer, makeTxWitnesses, parseTxOutputId } from "./tx/index.js";
export { DEFAULT_TX_OUTPUT_ENCODING_CONFIG, appendTxInput, calcRefScriptsSize, calcScriptDataHash, compareTxInputs, compareTxOutputIds, convertUplcDataToTxInput, convertUplcDataToTxOutput, convertUplcDataToTxOutputDatum, convertUplcDataToTxOutputId, decodeDCert, decodeTx, decodeTxBody, decodeTxInput, decodeTxMetadata, decodeTxMetadataAttr, decodeTxOutput, decodeTxOutputDatum, decodeTxOutputId, decodeTxRedeemer, decodeTxWitnesses, encodeTxMetadataAttr, isValidTxInputCbor, isValidTxOutputCbor, isValidTxOutputId, makeCertifyingPurpose, makeDelegationDCert, makeDeregistrationDCert, makeDummyTxOutputId, makeHashedTxOutputDatum, makeInlineTxOutputDatum, makeMintingPurpose, makeRegisterPoolDCert, makeRegistrationDCert, makeRetirePoolDCert, makeRewardingPurpose, makeScriptContextV2, makeSpendingPurpose, makeTx, makeTxBody, makeTxCertifyingRedeemer, makeTxInput, makeTxMetadata, makeTxMintingRedeemer, makeTxOutput, makeTxOutputDatum, makeTxOutputId, makeTxRewardingRedeemer, makeTxSpendingRedeemer, makeTxWitnesses, parseTxOutputId, UtxoAlreadySpentError, UtxoNotFoundError } from "./tx/index.js";
//# sourceMappingURL=index.d.ts.map

@@ -19,2 +19,4 @@ export { decodeDCert } from "./DCert.js";

export { makeTxSpendingRedeemer } from "./TxSpendingRedeemer.js";
export { UtxoAlreadySpentError } from "./UtxoAlreadySpentError.js";
export { UtxoNotFoundError } from "./UtxoNotFoundError.js";
export { calcRefScriptsSize, calcScriptDataHash, decodeTx, makeTx } from "./Tx.js";

@@ -21,0 +23,0 @@ export { makeTxBody, decodeTxBody } from "./TxBody.js";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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