@harmoniclabs/cardano-ledger-ts
Advanced tools
Comparing version 0.2.0-dev4 to 0.2.0-dev5
@@ -6,2 +6,3 @@ import { ToCbor, CborString, CborObj, CanBeCborString } from "@harmoniclabs/cbor"; | ||
import { StakeKeyHash } from "./StakeKeyHash.js"; | ||
import { ToDataVersion } from "../toData/defaultToDataVersion.js"; | ||
export declare class StakeValidatorHash extends Hash28 { | ||
@@ -16,3 +17,3 @@ } | ||
clone(): StakeCredentials<T>; | ||
toData(): DataConstr; | ||
toData(version?: ToDataVersion): DataConstr; | ||
toCbor(): CborString; | ||
@@ -19,0 +20,0 @@ toCborObj(): CborObj; |
@@ -74,3 +74,3 @@ "use strict"; | ||
}; | ||
StakeCredentials.prototype.toData = function () { | ||
StakeCredentials.prototype.toData = function (version) { | ||
if (this.type === "pointer") { | ||
@@ -83,3 +83,3 @@ return new plutus_data_1.DataConstr(1, // PStakingPtr | ||
[ | ||
new Credential_1.Credential(this.type === "stakeKey" ? Credential_1.CredentialType.KeyHash : Credential_1.CredentialType.Script, this.hash).toData() | ||
new Credential_1.Credential(this.type === "stakeKey" ? Credential_1.CredentialType.KeyHash : Credential_1.CredentialType.Script, this.hash).toData(version) | ||
]); | ||
@@ -86,0 +86,0 @@ }; |
@@ -5,2 +5,3 @@ import { CborArray, CborString } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export interface IDRepAlwaysAbstain { | ||
@@ -13,3 +14,3 @@ hash?: undefined; | ||
constructor(_info?: IDRepAlwaysAbstain); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
toCbor(): CborString; | ||
@@ -16,0 +17,0 @@ toCborObj(): CborArray; |
import { CborArray, CborString } from "@harmoniclabs/cbor"; | ||
import { DRepType } from "./DRepType.js"; | ||
import { IDRep } from "./IDRep.js"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
@@ -12,3 +13,3 @@ export interface IDRepAlwaysNoConfidence { | ||
constructor(_info?: IDRepAlwaysNoConfidence); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
toCbor(): CborString; | ||
@@ -15,0 +16,0 @@ toCborObj(): CborArray; |
@@ -7,2 +7,3 @@ import { CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export interface IDRepKeyHash { | ||
@@ -16,3 +17,3 @@ hash: CanBeHash28; | ||
constructor({ hash }: IDRepKeyHash); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
toCbor(): CborString; | ||
@@ -19,0 +20,0 @@ toCborObj(): CborArray; |
@@ -7,2 +7,3 @@ import { CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export interface IDRepScript { | ||
@@ -16,3 +17,3 @@ hash: CanBeHash28; | ||
constructor({ hash }: IDRepScript); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
toCbor(): CborString; | ||
@@ -19,0 +20,0 @@ toCborObj(): CborArray; |
import { ToCbor, CborString, CborObj, CanBeCborString } from "@harmoniclabs/cbor"; | ||
import { Cloneable } from "@harmoniclabs/cbor/dist/utils/Cloneable"; | ||
import { ToData, Data } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../toData/defaultToDataVersion.js"; | ||
export declare function canBeHashInstance(obj: any): boolean; | ||
@@ -29,3 +30,3 @@ export declare class Hash implements Cloneable<Hash>, ToCbor, ToData { | ||
static fromCborObj(cObj: CborObj): Hash; | ||
toData(_version?: "v1" | "v2" | "v3" | undefined): Data; | ||
toData(_version?: ToDataVersion | undefined): Data; | ||
static fromAscii(asciiStr: string): Hash; | ||
@@ -32,0 +33,0 @@ static toAscii(bStr: Hash): string; |
@@ -8,2 +8,3 @@ import { CborArray, CborObj, CborString, ToCbor } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export interface ICertAuthCommitteeHot { | ||
@@ -18,3 +19,3 @@ coldCredential: Credential; | ||
constructor({ coldCredential, hotCredential }: ICertAuthCommitteeHot); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -21,0 +22,0 @@ toCbor(): CborString; |
@@ -5,2 +5,3 @@ import { CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { ICert } from "./ICert.js"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
@@ -20,3 +21,3 @@ /** @deprecated */ | ||
constructor({ genesisHash, genesisDelegateHash, vrfKeyHash }: ICertGenesisKeyDelegation); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -23,0 +24,0 @@ toCbor(): CborString; |
@@ -7,2 +7,3 @@ import { CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export interface ICertPoolRegistration { | ||
@@ -15,3 +16,3 @@ poolParams: IPoolParams; | ||
constructor({ poolParams }: ICertPoolRegistration); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -18,0 +19,0 @@ toCbor(): CborString; |
@@ -7,2 +7,3 @@ import { CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export interface ICertPoolRetirement { | ||
@@ -17,3 +18,3 @@ poolHash: CanBeHash28; | ||
constructor({ poolHash, epoch }: ICertPoolRetirement); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -20,0 +21,0 @@ toCbor(): CborString; |
@@ -8,2 +8,3 @@ import { CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export interface ICertRegistrationDeposit { | ||
@@ -18,3 +19,3 @@ stakeCredential: Credential; | ||
constructor({ stakeCredential, deposit }: ICertRegistrationDeposit); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -21,0 +22,0 @@ toCbor(): CborString; |
@@ -9,2 +9,3 @@ import { CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export interface ICertRegistrationDrep { | ||
@@ -21,3 +22,3 @@ drepCredential: Credential; | ||
constructor({ drepCredential, coin, anchor }: ICertRegistrationDrep); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -24,0 +25,0 @@ toCbor(): CborString; |
@@ -8,2 +8,3 @@ import { CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export interface ICertResignCommitteeCold { | ||
@@ -18,3 +19,3 @@ coldCredential: Credential; | ||
constructor({ coldCredential, anchor }: ICertResignCommitteeCold); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -21,0 +22,0 @@ toCbor(): CborString; |
@@ -7,2 +7,3 @@ import { CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export interface ICertStakeDelegation { | ||
@@ -17,3 +18,3 @@ stakeCredential: Credential; | ||
constructor({ stakeCredential, poolKeyHash }: ICertStakeDelegation); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -20,0 +21,0 @@ toCbor(): CborString; |
@@ -7,2 +7,3 @@ import { CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export interface ICertStakeDeRegistration { | ||
@@ -15,3 +16,3 @@ stakeCredential: Credential; | ||
constructor({ stakeCredential }: ICertStakeDeRegistration); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -18,0 +19,0 @@ toCbor(): CborString; |
@@ -7,2 +7,3 @@ import { CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export interface ICertStakeRegistration { | ||
@@ -15,3 +16,3 @@ stakeCredential: Credential; | ||
constructor({ stakeCredential }: ICertStakeRegistration); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -18,0 +19,0 @@ toCbor(): CborString; |
@@ -8,2 +8,3 @@ import { CanBeCborString, CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export interface ICertStakeRegistrationDeleg { | ||
@@ -20,3 +21,3 @@ stakeCredential: Credential; | ||
constructor({ stakeCredential, poolKeyHash, coin }: ICertStakeRegistrationDeleg); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -23,0 +24,0 @@ toCbor(): CborString; |
@@ -8,2 +8,3 @@ import { CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { CanBeHash28, Hash28 } from "../../hashes/index.js"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
@@ -21,3 +22,3 @@ export interface ICertStakeVoteDeleg { | ||
constructor({ stakeCredential, poolKeyHash, drep }: ICertStakeVoteDeleg); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -24,0 +25,0 @@ toCbor(): CborString; |
@@ -9,2 +9,3 @@ import { CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { Coin } from "../Coin.js"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
import { DataList } from "@harmoniclabs/plutus-data"; | ||
@@ -24,3 +25,3 @@ export interface ICertStakeVoteRegistrationDeleg { | ||
constructor({ stakeCredential, poolKeyHash, drep, coin }: ICertStakeVoteRegistrationDeleg); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataList; | ||
toData(version?: ToDataVersion | undefined): DataList; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -27,0 +28,0 @@ toCbor(): CborString; |
@@ -8,2 +8,3 @@ import { CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export interface ICertUnRegistrationDeposit { | ||
@@ -18,3 +19,3 @@ stakeCredential: Credential; | ||
constructor({ stakeCredential, deposit }: ICertUnRegistrationDeposit); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -21,0 +22,0 @@ toCbor(): CborString; |
@@ -8,2 +8,3 @@ import { CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export interface ICertUnRegistrationDrep { | ||
@@ -19,3 +20,3 @@ drepCredential: Credential; | ||
constructor({ drepCredential, coin }: ICertUnRegistrationDrep); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -22,0 +23,0 @@ toCbor(): CborString; |
@@ -8,2 +8,3 @@ import { CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export interface ICertUpdateDrep { | ||
@@ -18,3 +19,3 @@ drepCredential: Credential; | ||
constructor({ drepCredential, anchor }: ICertUpdateDrep); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -21,0 +22,0 @@ toCbor(): CborString; |
@@ -9,2 +9,3 @@ import { CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export interface ICertVoteDeleg { | ||
@@ -19,3 +20,3 @@ stakeCredential: Credential; | ||
constructor({ stakeCredential, drep }: ICertVoteDeleg); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -22,0 +23,0 @@ toCbor(): CborString; |
@@ -10,2 +10,3 @@ import { CborArray, CborObj, CborString } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export interface ICertVoteRegistrationDeleg { | ||
@@ -22,3 +23,3 @@ stakeCredential: Credential; | ||
constructor({ stakeCredential, drep, coin }: ICertVoteRegistrationDeleg); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -25,0 +26,0 @@ toCbor(): CborString; |
@@ -9,2 +9,3 @@ import { CborObj, ToCbor, CborString } from "@harmoniclabs/cbor"; | ||
import { DataConstr } from "@harmoniclabs/plutus-data"; | ||
import { ToDataVersion } from "../../toData/defaultToDataVersion.js"; | ||
export declare enum InstantRewardsSource { | ||
@@ -35,3 +36,3 @@ Reserves = 0, | ||
constructor({ source, destination }: IMoveInstantRewardsCert); | ||
toData(version?: "v1" | "v2" | "v3" | undefined): DataConstr; | ||
toData(version?: ToDataVersion | undefined): DataConstr; | ||
getRequiredSigners(): Hash28[]; | ||
@@ -38,0 +39,0 @@ toCbor(): CborString; |
@@ -8,2 +8,3 @@ import { StakeAddress, StakeAddressBech32 } from "./StakeAddress.js"; | ||
import { Value } from "./Value/index.js"; | ||
import { ToDataVersion } from "../toData/defaultToDataVersion.js"; | ||
export type ITxWithdrawalsEntryBigInt = { | ||
@@ -28,3 +29,3 @@ rewardAccount: StakeAddress; | ||
toTotalWitdrawn(): Value; | ||
toData(version?: "v1" | "v2" | undefined): DataMap<DataConstr, DataI>; | ||
toData(version?: ToDataVersion | undefined): DataMap<DataConstr, DataI>; | ||
toCbor(): CborString; | ||
@@ -31,0 +32,0 @@ toCborObj(): CborObj; |
@@ -81,3 +81,3 @@ "use strict"; | ||
var rewardAccount = _a.rewardAccount, amount = _a.amount; | ||
return new plutus_data_1.DataPair(rewardAccount.toStakeCredentials().toData(), new plutus_data_1.DataI(amount)); | ||
return new plutus_data_1.DataPair(rewardAccount.toStakeCredentials().toData(version), new plutus_data_1.DataI(amount)); | ||
})); | ||
@@ -84,0 +84,0 @@ }; |
import { ToData } from "@harmoniclabs/plutus-data"; | ||
type NotUndefined<T> = Exclude<T, undefined>; | ||
type MaybeToDataVersion = Parameters<ToData["toData"]>[0]; | ||
type ToDataVersion = NotUndefined<MaybeToDataVersion>; | ||
export type ToDataVersion = NotUndefined<MaybeToDataVersion>; | ||
export declare const defaultToDataVersion: ToDataVersion; | ||
export declare function definitelyToDataVersion(maybe: MaybeToDataVersion): ToDataVersion; | ||
export {}; |
@@ -8,2 +8,3 @@ import { ToCbor, CborString, CborMap, CanBeCborString, CborObj } from "@harmoniclabs/cbor"; | ||
import { ToJson } from "../../../utils/ToJson.js"; | ||
import { ToDataVersion } from "../../../toData/defaultToDataVersion.js"; | ||
export interface ITxOut { | ||
@@ -24,3 +25,3 @@ address: Address | AddressStr; | ||
static get fake(): TxOut; | ||
toData(version?: "v1" | "v2"): Data; | ||
toData(version?: ToDataVersion): Data; | ||
toCbor(): CborString; | ||
@@ -27,0 +28,0 @@ toCborObj(): CborMap; |
@@ -5,2 +5,3 @@ import { ToCbor, CborString, CborObj, CanBeCborString } from "@harmoniclabs/cbor"; | ||
import { ToJson } from "../../../utils/ToJson.js"; | ||
import { ToDataVersion } from "../../../toData/defaultToDataVersion.js"; | ||
export type TxOutRefStr = `${string}#${number}`; | ||
@@ -23,3 +24,3 @@ export interface ITxOutRef { | ||
toString(): TxOutRefStr; | ||
toData(): DataConstr; | ||
toData(version?: ToDataVersion): DataConstr; | ||
toCbor(): CborString; | ||
@@ -33,2 +34,3 @@ toCborObj(): CborObj; | ||
eq(other: ITxOutRef): boolean; | ||
static sort(a: ITxOutRef, b: ITxOutRef): number; | ||
} |
@@ -29,2 +29,3 @@ "use strict"; | ||
var assert_1 = require("../../../utils/assert.js"); | ||
var uint8array_utils_1 = require("@harmoniclabs/uint8array-utils"); | ||
function isITxOutRef(stuff) { | ||
@@ -70,3 +71,3 @@ return ((0, obj_utils_1.isObject)(stuff) && | ||
}; | ||
TxOutRef.prototype.toData = function () { | ||
TxOutRef.prototype.toData = function (version) { | ||
return new plutus_data_1.DataConstr(0, // PTxOutRef only constructor | ||
@@ -125,4 +126,12 @@ [ | ||
}; | ||
TxOutRef.sort = function (a, b) { | ||
var ord = (0, uint8array_utils_1.lexCompare)(new hashes_1.Hash32(a.id).toBuffer(), new hashes_1.Hash32(b.id).toBuffer()); | ||
// if equal tx id order based on tx output index | ||
if (ord === 0) | ||
return a.index - b.index; | ||
// else order by tx id | ||
return ord; | ||
}; | ||
return TxOutRef; | ||
}()); | ||
exports.TxOutRef = TxOutRef; |
@@ -7,2 +7,3 @@ import { ToCbor, CborString, CborArray, CanBeCborString, CborObj } from "@harmoniclabs/cbor"; | ||
import { ITxOutRef, TxOutRef } from "./TxOutRef.js"; | ||
import { ToDataVersion } from "../../../toData/defaultToDataVersion.js"; | ||
export interface IUTxO { | ||
@@ -18,3 +19,3 @@ utxoRef: ITxOutRef; | ||
clone(): UTxO; | ||
toData(version?: "v1" | "v2"): Data; | ||
toData(version?: ToDataVersion): Data; | ||
toCbor(): CborString; | ||
@@ -37,3 +38,4 @@ toCborObj(): CborArray; | ||
}; | ||
static sort(a: IUTxO, b: IUTxO): number; | ||
} | ||
export { TxOutRef }; |
@@ -43,6 +43,5 @@ "use strict"; | ||
UTxO.prototype.toData = function (version) { | ||
if (version === void 0) { version = "v2"; } | ||
return new plutus_data_1.DataConstr(0, // PTxInInfo only constructor | ||
[ | ||
this.utxoRef.toData(), | ||
this.utxoRef.toData(version), | ||
this.resolved.toData(version) // PTxOut based on specified version | ||
@@ -86,4 +85,7 @@ ]); | ||
}; | ||
UTxO.sort = function (a, b) { | ||
return TxOutRef_1.TxOutRef.sort(a.utxoRef, b.utxoRef); | ||
}; | ||
return UTxO; | ||
}()); | ||
exports.UTxO = UTxO; |
{ | ||
"name": "@harmoniclabs/cardano-ledger-ts", | ||
"version": "0.2.0-dev4", | ||
"version": "0.2.0-dev5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
589375
12706