Socket
Socket
Sign inDemoInstall

@emurgo/cross-csl-core

Package Overview
Dependencies
101
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.4.0 to 3.5.0

232

dist/index.d.ts

@@ -56,2 +56,12 @@ export declare const EXCEPTIONS: {

StakeDelegation: typeof StakeDelegation;
CommitteeHotAuth: typeof CommitteeHotAuth;
CommitteeColdResign: typeof CommitteeColdResign;
DrepDeregistration: typeof DrepDeregistration;
DrepRegistration: typeof DrepRegistration;
DrepUpdate: typeof DrepUpdate;
StakeAndVoteDelegation: typeof StakeAndVoteDelegation;
StakeRegistrationAndDelegation: typeof StakeRegistrationAndDelegation;
StakeVoteRegistrationAndDelegation: typeof StakeVoteRegistrationAndDelegation;
VoteDelegation: typeof VoteDelegation;
VoteRegistrationAndDelegation: typeof VoteRegistrationAndDelegation;
Certificate: typeof Certificate;

@@ -307,2 +317,7 @@ Certificates: typeof Certificates;

}
export declare abstract class AnchorDataHash extends _Ptr {
abstract toBytes(): Promise<Uint8Array>;
abstract toHex(): Promise<string>;
static fromBytes(bytes: Uint8Array): Promise<AnchorDataHash>;
}
export declare abstract class TransactionInput extends _Ptr {

@@ -585,2 +600,111 @@ abstract toBytes(): Promise<Uint8Array>;

}
export declare abstract class StakeAndVoteDelegation extends _Ptr {
abstract toBytes(): Promise<Uint8Array>;
abstract stakeCredential(): Promise<Credential>;
abstract poolKeyhash(): Promise<Ed25519KeyHash>;
abstract drep(): Promise<DRep>;
abstract hasScriptCredential(): Promise<boolean>;
static new(stakeCredential: Credential, poolKeyHash: Ed25519KeyHash, drep: DRep): Promise<StakeAndVoteDelegation>;
static fromBytes(bytes: Uint8Array): Promise<StakeAndVoteDelegation>;
}
export declare abstract class StakeRegistrationAndDelegation extends _Ptr {
abstract toBytes(): Promise<Uint8Array>;
abstract stakeCredential(): Promise<Credential>;
abstract poolKeyhash(): Promise<Ed25519KeyHash>;
abstract coin(): Promise<BigNum>;
abstract hasScriptCredential(): Promise<boolean>;
static new(stakeCredential: Credential, poolKeyHash: Ed25519KeyHash, coin: BigNum): Promise<StakeRegistrationAndDelegation>;
static fromBytes(bytes: Uint8Array): Promise<StakeRegistrationAndDelegation>;
}
export declare abstract class StakeVoteRegistrationAndDelegation extends _Ptr {
abstract toBytes(): Promise<Uint8Array>;
abstract stakeCredential(): Promise<Credential>;
abstract poolKeyhash(): Promise<Ed25519KeyHash>;
abstract coin(): Promise<BigNum>;
abstract drep(): Promise<DRep>;
abstract hasScriptCredential(): Promise<boolean>;
static new(stakeCredential: Credential, poolKeyHash: Ed25519KeyHash, drep: DRep, coin: BigNum): Promise<StakeVoteRegistrationAndDelegation>;
static fromBytes(bytes: Uint8Array): Promise<StakeVoteRegistrationAndDelegation>;
}
export declare abstract class VoteDelegation extends _Ptr {
abstract toBytes(): Promise<Uint8Array>;
abstract stakeCredential(): Promise<Credential>;
abstract drep(): Promise<DRep>;
abstract hasScriptCredential(): Promise<boolean>;
static new(stakeCredential: Credential, drep: DRep): Promise<VoteDelegation>;
static fromBytes(bytes: Uint8Array): Promise<VoteDelegation>;
}
export declare abstract class VoteRegistrationAndDelegation extends _Ptr {
abstract toBytes(): Promise<Uint8Array>;
abstract stakeCredential(): Promise<Credential>;
abstract drep(): Promise<DRep>;
abstract coin(): Promise<BigNum>;
abstract hasScriptCredential(): Promise<boolean>;
static new(stakeCredential: Credential, drep: DRep, coin: BigNum): Promise<VoteRegistrationAndDelegation>;
static fromBytes(bytes: Uint8Array): Promise<VoteRegistrationAndDelegation>;
}
export declare abstract class DRep extends _Ptr {
abstract toBytes(): Promise<Uint8Array>;
abstract kind(): Promise<number>;
abstract toKeyHash(): Promise<Ed25519KeyHash | undefined>;
abstract toScriptHash(): Promise<ScriptDataHash | undefined>;
static newKeyHash(keyHash: Ed25519KeyHash): Promise<DRep>;
static newScriptHash(scriptHash: ScriptHash): Promise<DRep>;
static newAlwaysAbstain(): Promise<DRep>;
static newAlwasyNoConfidence(): Promise<DRep>;
static fromBytes(bytes: Uint8Array): Promise<DRep>;
}
export declare abstract class DrepDeregistration extends _Ptr {
abstract toBytes(): Promise<Uint8Array>;
abstract votingCredential(): Promise<Credential>;
abstract coin(): Promise<BigNum>;
abstract hasScriptCredentials(): Promise<boolean>;
static new(votingCredential: Certificate, coin: BigNum): Promise<DrepDeregistration>;
static fromBytes(bytes: Uint8Array): Promise<DrepDeregistration>;
}
export declare abstract class DrepRegistration extends _Ptr {
abstract toBytes(): Promise<Uint8Array>;
abstract votingCredential(): Promise<Credential>;
abstract coin(): Promise<BigNum>;
abstract anchor(): Promise<Anchor>;
static new(votingCredential: Credential, coin: BigNum): Promise<DrepRegistration>;
static newWithAnchor(votingCredential: Credential, coin: BigNum, anchor: Anchor): Promise<DrepRegistration>;
static fromBytes(bytes: Uint8Array): Promise<DrepRegistration>;
}
export declare abstract class DrepUpdate extends _Ptr {
abstract toBytes(): Promise<Uint8Array>;
abstract votingCredential(): Promise<Credential>;
abstract anchor(): Promise<Anchor>;
static new(votingCredential: Credential): Promise<DrepUpdate>;
static newWithAnchor(votingCredential: Credential, anchor: Anchor): Promise<DrepUpdate>;
static fromBytes(bytes: Uint8Array): Promise<DrepUpdate>;
}
export declare abstract class Anchor extends _Ptr {
abstract toBytes(): Promise<Uint8Array>;
abstract url(): Promise<URL>;
abstract anchorDataHash(): Promise<AnchorDataHash>;
static new(anchorUrl: URL, anchorDataHash: AnchorDataHash): Promise<Anchor>;
static fromBytes(bytes: Uint8Array): Promise<Anchor>;
}
export declare abstract class URL extends _Ptr {
abstract toBytes(): Promise<Uint8Array>;
abstract url(): Promise<string>;
static new(url: string): Promise<URL>;
static fromBytes(bytes: Uint8Array): Promise<URL>;
}
export declare abstract class CommitteeHotAuth extends _Ptr {
abstract toBytes(): Promise<Uint8Array>;
abstract committeeColdKey(): Promise<Credential>;
abstract committeeHotKey(): Promise<Credential>;
abstract hasScriptCredentials(): Promise<boolean>;
static new(committeeColdKey: Credential, committeeHotKey: Credential): Promise<CommitteeHotAuth>;
static fromBytes(bytes: Uint8Array): Promise<CommitteeHotAuth>;
}
export declare abstract class CommitteeColdResign extends _Ptr {
abstract toBytes(): Promise<Uint8Array>;
abstract committeeColdKey(): Promise<Credential>;
abstract hasScriptCredentials(): Promise<boolean>;
static new(committeeColdKey: Credential): Promise<CommitteeColdResign>;
static fromBytes(bytes: Uint8Array): Promise<CommitteeColdResign>;
}
export declare abstract class Certificate extends _Ptr {

@@ -591,2 +715,13 @@ abstract toBytes(): Promise<Uint8Array>;

abstract asStakeDelegation(): Promise<StakeDelegation>;
abstract asDrepDeregistration(): Promise<DrepDeregistration>;
abstract asDrepRegistration(): Promise<DrepRegistration>;
abstract asDrepUpdate(): Promise<DrepUpdate>;
abstract asStakeAndVoteDelegation(): Promise<StakeAndVoteDelegation>;
abstract asStakeRegistrationAndDelegation(): Promise<StakeRegistrationAndDelegation>;
abstract asStakeVoteRegistrationAndDelegation(): Promise<StakeVoteRegistrationAndDelegation>;
abstract asVoteDelegation(): Promise<VoteDelegation>;
abstract asVoteRegistrationAndDelegation(): Promise<VoteRegistrationAndDelegation>;
abstract asCommitteeHotKeyRegistration(): Promise<CommitteeHotAuth>;
abstract asCommitteeHotKeyDeregistration(): Promise<CommitteeColdResign>;
abstract kind(): Promise<number>;
static fromBytes(bytes: Uint8Array): Promise<Certificate>;

@@ -596,2 +731,12 @@ static newStakeRegistration(stakeRegistration: StakeRegistration): Promise<Certificate>;

static newStakeDelegation(stakeDelegation: StakeDelegation): Promise<Certificate>;
static newDrepDeregistration(drepDeregistration: DrepDeregistration): Promise<Certificate>;
static newDrepRegistration(drepRegistration: DrepRegistration): Promise<Certificate>;
static newDrepUpdate(drepUpdate: DrepUpdate): Promise<Certificate>;
static newStakeAndVoteDelegation(stakeAndVoteDelegation: StakeAndVoteDelegation): Promise<Certificate>;
static newStakeRegistrationAndDelegation(stakeRegistrationAndDelegation: StakeRegistrationAndDelegation): Promise<Certificate>;
static newStakeVoteRegistrationAndDelegation(stakeVoteRegistrationAndDelegation: StakeVoteRegistrationAndDelegation): Promise<Certificate>;
static newVoteDelegation(voteDelegation: VoteDelegation): Promise<Certificate>;
static newVoteRegistrationAndDelegation(voteRegistrationAndDelegation: VoteRegistrationAndDelegation): Promise<Certificate>;
static newCommitteeHotKeyRegistration(committeeHotAuth: CommitteeHotAuth): Promise<Certificate>;
static newCommitteeHotKeyDeregistration(committeeColdResign: CommitteeColdResign): Promise<Certificate>;
}

@@ -665,2 +810,89 @@ export declare abstract class Certificates extends _Ptr {

}
export declare abstract class ProtocolVersion extends _Ptr {
static new(major: number, minor: number): Promise<ProtocolVersion>;
}
export declare abstract class ProtocolParamUpdate extends _Ptr {
abstract setMinFeeA(minFeeA: BigNum): Promise<void>;
abstract getMinFeeA(): Promise<BigNum>;
abstract setMinFeeB(minFeeB: BigNum): Promise<void>;
abstract minFeeB(): Promise<BigNum>;
abstract setMaxBlockBodySize(maxBlockBodySize: number): Promise<void>;
abstract maxBlockBodySize(): Promise<number | undefined>;
abstract setMaxTxSize(maxTxSize: number): Promise<void>;
abstract maxTxSize(): Promise<number | undefined>;
abstract setMaxBlockHeaderSize(maxBlockHeaderSize: number): Promise<void>;
abstract maxBlockHeaderSize(): Promise<number | undefined>;
abstract setKeyDeposit(keyDeposit: BigNum): Promise<void>;
abstract keyDeposit(): Promise<BigNum>;
abstract setPoolDeposit(poolDeposit: BigNum): Promise<void>;
abstract poolDeposit(): Promise<BigNum>;
abstract setMaxEpoch(maxEpoch: number): Promise<void>;
abstract maxEpoch(): Promise<number | undefined>;
abstract setNOpt(nOpt: number): Promise<void>;
abstract nOpt(): Promise<number | undefined>;
abstract setPoolPledgeInfluence(poolPledgeInfluence: UnitInterval): Promise<void>;
abstract poolPledgeInfluence(): Promise<UnitInterval>;
abstract setExpantionRate(expansionRate: UnitInterval): Promise<void>;
abstract expantionRate(): Promise<UnitInterval>;
abstract setTreasuryGrowthRate(treasuryGrowthRate: UnitInterval): Promise<void>;
abstract treasuryGrowthRate(): Promise<UnitInterval>;
abstract setProtocolVersion(version: ProtocolVersion): Promise<void>;
abstract setMinPoolCost(minPoolCost: BigNum): Promise<void>;
abstract minPoolCost(): Promise<BigNum>;
abstract setAdaPerUtxoByte(adaPerUtxoByte: BigNum): Promise<void>;
abstract adaPerUtxoByte(): Promise<BigNum>;
}
export declare abstract class ParameterChangeAction extends _Ptr {
abstract govActionId(): Promise<GovernanceActionId>;
abstract protocolParamUpdates(): ProtocolParamUpdate;
}
export declare abstract class GovernanceAction extends _Ptr {
static newParameterChangeAction(parameterChangeAction: ParameterChangeAction): Promise<GovernanceAction>;
}
export declare abstract class GovernanceActionIds extends _Ptr {
abstract transactionId(): TransactionHash;
static new(): Promise<GovernanceActionIds>;
abstract add(governanceActionId: GovernanceActionId): Promise<void>;
abstract get(index: number): Promise<GovernanceActionId>;
}
export declare abstract class GovernanceActionId extends _Ptr {
abstract transactionId(): TransactionHash;
static new(transactionId: TransactionHash, index: number): Promise<GovernanceActionId>;
}
export declare abstract class Voter extends _Ptr {
static newConstitutionalCommitteeHotKey(cred: Credential): Promise<Voter>;
static newDrep(cred: Credential): Promise<Voter>;
static newStakePool(keyHash: Ed25519KeyHash): Promise<Voter>;
abstract toConstitutionalCommitteeHotCred(): Credential;
abstract toDrepCred(): Credential;
abstract toStakePoolKeyHash(): Ed25519KeyHash;
abstract toKeyHash(): Ed25519KeyHash;
}
export declare abstract class Voters extends _Ptr {
abstract add(voter: Voter): Promise<void>;
abstract get(index: number): Promise<Voter | undefined>;
}
export declare abstract class VotingProcedure extends _Ptr {
static new(vote: number): Promise<VotingProcedure>;
static newWithAnchor(vote: number, anchor: Anchor): Promise<VotingProcedure>;
abstract anchor(): Promise<Anchor>;
}
export declare abstract class VotingProcedures extends _Ptr {
static new(): Promise<VotingProcedures>;
abstract insert(voter: Voter, govActionId: GovernanceActionId, votingProcedure: VotingProcedure): Promise<void>;
abstract get(voter: Voter, govActionId: GovernanceActionId): Promise<VotingProcedure>;
abstract getVoters(): Promise<Voters>;
abstract getGovernanceActionIdsByVoter(): Promise<GovernanceActionIds>;
}
export declare abstract class VotingProposal extends _Ptr {
abstract governanceAction(): GovernanceAction;
}
export declare abstract class VotingBuilder extends _Ptr {
abstract getPlutusWitnesses(): PlutusWitness;
abstract getRefInputs(): TransactionInputs;
abstract getNativeScript(): NativeScript;
abstract add(voter: Voter, govActionId: GovernanceActionId, votingProcedure: VotingProcedures): Promise<void>;
abstract build(): VotingProcedures;
static new(): VotingBuilder;
}
export declare abstract class TransactionBuilder extends _Ptr {

@@ -667,0 +899,0 @@ abstract addKeyInput(hash: Ed25519KeyHash, input: TransactionInput, amount: Value): Promise<void>;

242

dist/index.js

@@ -12,4 +12,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Certificate = exports.StakeDelegation = exports.StakeDeregistration = exports.StakeRegistration = exports.Credential = exports.ScriptDataHash = exports.Languages = exports.Language = exports.Costmdls = exports.CostModel = exports.Redeemers = exports.RedeemerTag = exports.Redeemer = exports.ExUnits = exports.PlutusList = exports.PlutusDatumSchema = exports.PlutusData = exports.DataHash = exports.TransactionOutput = exports.ByronAddress = exports.Bip32PrivateKey = exports.PrivateKey = exports.Bip32PublicKey = exports.PublicKey = exports.Address = exports.Value = exports.TransactionInput = exports.TransactionHash = exports.Ed25519KeyHash = exports.MultiAsset = exports.ScriptHashes = exports.ScriptHash = exports.Assets = exports.AssetNames = exports.AssetName = exports.AuxiliaryData = exports.TransactionMetadatum = exports.Int = exports.MetadataMap = exports.TransactionMetadatumLabels = exports.GeneralTransactionMetadata = exports.LinearFee = exports.BigNum = exports.Ptr = exports._Ptr = exports.WasmProxy = exports._WasmProxy = exports.switchContext = exports.freeContext = exports.EXCEPTIONS = void 0;
exports.TxBuilderConstants = exports.TransactionUnspentOutput = exports.makeVkeyWitness = exports.FixedTransaction = exports.ExUnitPrices = exports.DatumSource = exports.PlutusScriptSource = exports.PlutusWitness = exports.TransactionBuilderConfig = exports.TransactionBuilderConfigBuilder = exports.UnitInterval = exports.DataCost = exports.TxInputsBuilder = exports.PlutusScripts = exports.PlutusScript = exports.NativeScripts = exports.NativeScript = exports.MetadataList = exports.NetworkInfo = exports.Transaction = exports.TransactionWitnessSet = exports.BootstrapWitnesses = exports.BootstrapWitness = exports.Vkeywitnesses = exports.Vkeywitness = exports.Ed25519Signature = exports.Vkey = exports.Pointer = exports.EnterpriseAddress = exports.PointerAddress = exports.BaseAddress = exports.TransactionBuilder = exports.Ed25519KeyHashes = exports.TransactionBody = exports.TransactionOutputs = exports.TransactionInputs = exports.Withdrawals = exports.RewardAddresses = exports.RewardAddress = exports.Certificates = void 0;
exports.StakeDelegation = exports.StakeDeregistration = exports.StakeRegistration = exports.Credential = exports.ScriptDataHash = exports.Languages = exports.Language = exports.Costmdls = exports.CostModel = exports.Redeemers = exports.RedeemerTag = exports.Redeemer = exports.ExUnits = exports.PlutusList = exports.PlutusDatumSchema = exports.PlutusData = exports.DataHash = exports.TransactionOutput = exports.ByronAddress = exports.Bip32PrivateKey = exports.PrivateKey = exports.Bip32PublicKey = exports.PublicKey = exports.Address = exports.Value = exports.TransactionInput = exports.AnchorDataHash = exports.TransactionHash = exports.Ed25519KeyHash = exports.MultiAsset = exports.ScriptHashes = exports.ScriptHash = exports.Assets = exports.AssetNames = exports.AssetName = exports.AuxiliaryData = exports.TransactionMetadatum = exports.Int = exports.MetadataMap = exports.TransactionMetadatumLabels = exports.GeneralTransactionMetadata = exports.LinearFee = exports.BigNum = exports.Ptr = exports._Ptr = exports.WasmProxy = exports._WasmProxy = exports.switchContext = exports.freeContext = exports.EXCEPTIONS = void 0;
exports.NativeScript = exports.MetadataList = exports.NetworkInfo = exports.Transaction = exports.TransactionWitnessSet = exports.BootstrapWitnesses = exports.BootstrapWitness = exports.Vkeywitnesses = exports.Vkeywitness = exports.Ed25519Signature = exports.Vkey = exports.Pointer = exports.EnterpriseAddress = exports.PointerAddress = exports.BaseAddress = exports.TransactionBuilder = exports.VotingBuilder = exports.VotingProposal = exports.VotingProcedures = exports.VotingProcedure = exports.Voters = exports.Voter = exports.GovernanceActionId = exports.GovernanceActionIds = exports.GovernanceAction = exports.ParameterChangeAction = exports.ProtocolParamUpdate = exports.ProtocolVersion = exports.Ed25519KeyHashes = exports.TransactionBody = exports.TransactionOutputs = exports.TransactionInputs = exports.Withdrawals = exports.RewardAddresses = exports.RewardAddress = exports.Certificates = exports.Certificate = exports.CommitteeColdResign = exports.CommitteeHotAuth = exports.URL = exports.Anchor = exports.DrepUpdate = exports.DrepRegistration = exports.DrepDeregistration = exports.DRep = exports.VoteRegistrationAndDelegation = exports.VoteDelegation = exports.StakeVoteRegistrationAndDelegation = exports.StakeRegistrationAndDelegation = exports.StakeAndVoteDelegation = void 0;
exports.TxBuilderConstants = exports.TransactionUnspentOutput = exports.makeVkeyWitness = exports.FixedTransaction = exports.ExUnitPrices = exports.DatumSource = exports.PlutusScriptSource = exports.PlutusWitness = exports.TransactionBuilderConfig = exports.TransactionBuilderConfigBuilder = exports.UnitInterval = exports.DataCost = exports.TxInputsBuilder = exports.PlutusScripts = exports.PlutusScript = exports.NativeScripts = void 0;
// this file contains several "abstract static" methods.

@@ -266,2 +267,8 @@ // This is not an actual feature of TS, but we define the static methods in the abstract classes

exports.TransactionHash = TransactionHash;
class AnchorDataHash extends _Ptr {
static fromBytes(bytes) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.AnchorDataHash = AnchorDataHash;
class TransactionInput extends _Ptr {

@@ -566,2 +573,134 @@ static new(transactionId, index) {

exports.StakeDelegation = StakeDelegation;
class StakeAndVoteDelegation extends _Ptr {
static new(stakeCredential, poolKeyHash, drep) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static fromBytes(bytes) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.StakeAndVoteDelegation = StakeAndVoteDelegation;
class StakeRegistrationAndDelegation extends _Ptr {
static new(stakeCredential, poolKeyHash, coin) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static fromBytes(bytes) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.StakeRegistrationAndDelegation = StakeRegistrationAndDelegation;
class StakeVoteRegistrationAndDelegation extends _Ptr {
static new(stakeCredential, poolKeyHash, drep, coin) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static fromBytes(bytes) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.StakeVoteRegistrationAndDelegation = StakeVoteRegistrationAndDelegation;
class VoteDelegation extends _Ptr {
static new(stakeCredential, drep) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static fromBytes(bytes) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.VoteDelegation = VoteDelegation;
class VoteRegistrationAndDelegation extends _Ptr {
static new(stakeCredential, drep, coin) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static fromBytes(bytes) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.VoteRegistrationAndDelegation = VoteRegistrationAndDelegation;
class DRep extends _Ptr {
static newKeyHash(keyHash) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static newScriptHash(scriptHash) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static newAlwaysAbstain() {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static newAlwasyNoConfidence() {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static fromBytes(bytes) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.DRep = DRep;
class DrepDeregistration extends _Ptr {
static new(votingCredential, coin) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static fromBytes(bytes) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.DrepDeregistration = DrepDeregistration;
class DrepRegistration extends _Ptr {
static new(votingCredential, coin) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static newWithAnchor(votingCredential, coin, anchor) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static fromBytes(bytes) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.DrepRegistration = DrepRegistration;
class DrepUpdate extends _Ptr {
static new(votingCredential) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static newWithAnchor(votingCredential, anchor) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static fromBytes(bytes) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.DrepUpdate = DrepUpdate;
class Anchor extends _Ptr {
static new(anchorUrl, anchorDataHash) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static fromBytes(bytes) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.Anchor = Anchor;
class URL extends _Ptr {
static new(url) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static fromBytes(bytes) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.URL = URL;
class CommitteeHotAuth extends _Ptr {
static new(committeeColdKey, committeeHotKey) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static fromBytes(bytes) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.CommitteeHotAuth = CommitteeHotAuth;
class CommitteeColdResign extends _Ptr {
static new(committeeColdKey) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static fromBytes(bytes) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.CommitteeColdResign = CommitteeColdResign;
class Certificate extends _Ptr {

@@ -580,2 +719,32 @@ static fromBytes(bytes) {

}
static newDrepDeregistration(drepDeregistration) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static newDrepRegistration(drepRegistration) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static newDrepUpdate(drepUpdate) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static newStakeAndVoteDelegation(stakeAndVoteDelegation) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static newStakeRegistrationAndDelegation(stakeRegistrationAndDelegation) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static newStakeVoteRegistrationAndDelegation(stakeVoteRegistrationAndDelegation) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static newVoteDelegation(voteDelegation) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static newVoteRegistrationAndDelegation(voteRegistrationAndDelegation) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static newCommitteeHotKeyRegistration(committeeHotAuth) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static newCommitteeHotKeyDeregistration(committeeColdResign) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}

@@ -667,2 +836,71 @@ exports.Certificate = Certificate;

exports.Ed25519KeyHashes = Ed25519KeyHashes;
class ProtocolVersion extends _Ptr {
static new(major, minor) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.ProtocolVersion = ProtocolVersion;
class ProtocolParamUpdate extends _Ptr {
}
exports.ProtocolParamUpdate = ProtocolParamUpdate;
class ParameterChangeAction extends _Ptr {
}
exports.ParameterChangeAction = ParameterChangeAction;
class GovernanceAction extends _Ptr {
static newParameterChangeAction(parameterChangeAction) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.GovernanceAction = GovernanceAction;
class GovernanceActionIds extends _Ptr {
static new() {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.GovernanceActionIds = GovernanceActionIds;
class GovernanceActionId extends _Ptr {
static new(transactionId, index) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.GovernanceActionId = GovernanceActionId;
class Voter extends _Ptr {
static newConstitutionalCommitteeHotKey(cred) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static newDrep(cred) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static newStakePool(keyHash) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.Voter = Voter;
class Voters extends _Ptr {
}
exports.Voters = Voters;
class VotingProcedure extends _Ptr {
static new(vote) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
static newWithAnchor(vote, anchor) {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.VotingProcedure = VotingProcedure;
class VotingProcedures extends _Ptr {
static new() {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.VotingProcedures = VotingProcedures;
class VotingProposal extends _Ptr {
}
exports.VotingProposal = VotingProposal;
class VotingBuilder extends _Ptr {
static new() {
throw new Error(exports.EXCEPTIONS.SHOULD_BE_OVERWRITTEN);
}
}
exports.VotingBuilder = VotingBuilder;
class TransactionBuilder extends _Ptr {

@@ -669,0 +907,0 @@ static new(transactionBuilderConfig) {

4

package.json
{
"name": "@emurgo/cross-csl-core",
"version": "3.4.0",
"version": "3.5.0",
"description": "",

@@ -12,3 +12,3 @@ "main": "dist/index.js",

"test:watch": "mocha --watch",
"build": "yarn install && node_modules/typescript/bin/tsc --project tsconfig.build.json",
"build": "yarn install && ../../node_modules/typescript/bin/tsc --project tsconfig.build.json",
"clean": "rm -rf ./dist",

@@ -15,0 +15,0 @@ "gen-flow-defs": "node ../../generate-flow.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc