Socket
Socket
Sign inDemoInstall

@cardano-ogmios/schema

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cardano-ogmios/schema - npm Package Compare versions

Comparing version 5.4.0 to 5.5.0-rc.1

258

dist/index.d.ts

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

export declare type Block = Alonzo | Mary | Allegra | Shelley | Byron;
export declare type Block = Babbage | Alonzo | Mary | Allegra | Shelley | Byron;
export declare type DigestBlake2BBlockBody = string;

@@ -9,6 +9,11 @@ export declare type TxId = string;

export declare type Null = null;
export declare type Datum = string;
export declare type Script = Native | PlutusV1 | PlutusV2;
export declare type ScriptNative = DigestBlake2BVerificationKey | Any | All | NOf | ExpiresAt | StartsAt;
export declare type DigestBlake2BVerificationKey = string;
export declare type Slot = number;
export declare type ScriptPlutus = string;
export declare type Certificate = StakeDelegation | StakeKeyRegistration | StakeKeyDeregistration | PoolRegistration | PoolRetirement | GenesisDelegation | MoveInstantaneousRewards;
export declare type DigestBlake2BCredential = string;
export declare type PoolId = string;
export declare type DigestBlake2BVerificationKey = string;
export declare type Ratio = string;

@@ -22,10 +27,6 @@ export declare type DigestBlake2BVrfVerificationKey = string;

export declare type RewardPot = "reserves" | "treasury";
export declare type Slot = number;
export declare type UpdateAlonzo = Null | UpdateProposalAlonzo;
export declare type UpdateBabbage = Null | UpdateProposalBabbage;
export declare type NullableUInt64 = UInt64 | Null;
export declare type UInt64 = number;
export declare type NullableRatio = Ratio | Null;
export declare type Nonce = Neutral | DigestBlake2BNonce;
export declare type Neutral = "neutral";
export declare type DigestBlake2BNonce = string;
export declare type UInt32 = number;

@@ -36,20 +37,20 @@ export declare type Int64 = number;

export declare type Signature = string;
export declare type Script = Native | Plutus | Plutus1;
export declare type ScriptNative = DigestBlake2BVerificationKey | Any | All | NOf | ExpiresAt | StartsAt;
export declare type ScriptPlutus = string;
export declare type ChainCode = string;
export declare type AddressAttributes = string;
export declare type VerificationKey = string;
export declare type Datum = string;
export declare type RedeemerData = string;
export declare type DigestBlake2BAuxiliaryDataBody = string;
export declare type Metadatum = Int | String | Bytes | List | Map;
export declare type DigestBlake2BBlockHeader = string;
export declare type DigestBlake2BBlockHeader = string | "genesis";
export declare type BlockNo = number;
export declare type IssuerVrfVerificationKey = string;
export declare type VrfProof = string;
export declare type VrfOutput = string;
export declare type BlockSize = number;
export declare type KesVerificationKey = string;
export declare type IssuerSignature = string;
export declare type VrfProof = string;
export declare type VrfOutput = string;
export declare type UpdateAlonzo = Null | UpdateProposalAlonzo;
export declare type Nonce = Neutral | DigestBlake2BNonce;
export declare type Neutral = "neutral";
export declare type DigestBlake2BNonce = string;
export declare type UpdateShelley = Null | UpdateProposalShelley;

@@ -67,3 +68,3 @@ export declare type BlockByron = StandardBlock | EpochBoundaryBlock;

export declare type PointOrOrigin = Point | Origin;
export declare type Era = "Byron" | "Shelley" | "Allegra" | "Mary" | "Alonzo";
export declare type Era = "Byron" | "Shelley" | "Allegra" | "Mary" | "Alonzo" | "Babbage";
export declare type DigestBlake2BScript = string;

@@ -84,6 +85,6 @@ export declare type InvalidEntity = {

export declare type Utxo = [TxIn, TxOut][];
export declare type SubmitTxError = (EraMismatch | InvalidWitnesses | MissingVkWitnesses | MissingScriptWitnesses | ScriptWitnessNotValidating | InsufficientGenesisSignatures | MissingTxMetadata | MissingTxMetadataHash | TxMetadataHashMismatch | BadInputs | ExpiredUtxo | OutsideOfValidityInterval | TxTooLarge | MissingAtLeastOneInputUtxo | InvalidMetadata | FeeTooSmall | ValueNotConserved | NetworkMismatch | OutputTooSmall | TooManyAssetsInOutput | AddressAttributesTooLarge | TriesToForgeAda | DelegateNotRegistered | UnknownOrIncompleteWithdrawals | StakePoolNotRegistered | WrongRetirementEpoch | WrongPoolCertificate | StakeKeyAlreadyRegistered | PoolCostTooSmall | PoolMetadataHashTooBig | StakeKeyNotRegistered | RewardAccountNotExisting | RewardAccountNotEmpty | WrongCertificateType | UnknownGenesisKey | AlreadyDelegating | InsufficientFundsForMir | TooLateForMir | MirTransferNotCurrentlyAllowed | MirNegativeTransferNotCurrentlyAllowed | MirProducesNegativeUpdate | DuplicateGenesisVrf | NonGenesisVoters | UpdateWrongEpoch | ProtocolVersionCannotFollow | MissingRequiredRedeemers | MissingRequiredDatums | UnspendableDatums | ExtraDataMismatch | MissingRequiredSignatures | UnspendableScriptInputs | ExtraRedeemers | MissingDatumHashesForInputs | MissingCollateralInputs | CollateralTooSmall | CollateralIsScript | CollateralHasNonAdaAssets | TooManyCollateralInputs | ExecutionUnitsTooLarge | OutsideForecast | ValidationTagMismatch | CollectErrors | ExtraScriptWitnesses)[];
export declare type SubmitTxError = (EraMismatch | InvalidWitnesses | MissingVkWitnesses | MissingScriptWitnesses | ScriptWitnessNotValidating | InsufficientGenesisSignatures | MissingTxMetadata | MissingTxMetadataHash | TxMetadataHashMismatch | BadInputs | ExpiredUtxo | OutsideOfValidityInterval | TxTooLarge | MissingAtLeastOneInputUtxo | InvalidMetadata | FeeTooSmall | ValueNotConserved | NetworkMismatch | OutputTooSmall | TooManyAssetsInOutput | AddressAttributesTooLarge | TriesToForgeAda | DelegateNotRegistered | UnknownOrIncompleteWithdrawals | StakePoolNotRegistered | WrongRetirementEpoch | WrongPoolCertificate | StakeKeyAlreadyRegistered | PoolCostTooSmall | PoolMetadataHashTooBig | StakeKeyNotRegistered | RewardAccountNotExisting | RewardAccountNotEmpty | WrongCertificateType | UnknownGenesisKey | AlreadyDelegating | InsufficientFundsForMir | TooLateForMir | MirTransferNotCurrentlyAllowed | MirNegativeTransferNotCurrentlyAllowed | MirProducesNegativeUpdate | DuplicateGenesisVrf | NonGenesisVoters | UpdateWrongEpoch | ProtocolVersionCannotFollow | MissingRequiredRedeemers | MissingRequiredDatums | UnspendableDatums | ExtraDataMismatch | MissingRequiredSignatures | UnspendableScriptInputs | ExtraRedeemers | MissingDatumHashesForInputs | MissingCollateralInputs | CollateralTooSmall | CollateralIsScript | CollateralHasNonAdaAssets | TooManyCollateralInputs | ExecutionUnitsTooLarge | OutsideForecast | ValidationTagMismatch | CollectErrors | ExtraScriptWitnesses | MirNegativeTransfer | TotalCollateralMismatch | MalformedOutputScripts)[];
export declare type RedeemerPointer = string;
export declare type Language = "plutus:v1" | "plutus:v2";
export declare type ScriptFailure = (ExtraRedeemers | MissingRequiredDatums | MissingRequiredScripts | ValidatorFailed | UnknownInputReferencedByRedeemer | NonScriptInputReferencedByRedeemer | IllFormedExecutionBudget | NoCostModelForLanguage)[];
export declare type ScriptFailure = (ExtraRedeemers | MissingRequiredDatums | MissingRequiredScripts | ValidatorFailed | UnknownInputReferencedByRedeemer | NonScriptInputReferencedByRedeemer | IllFormedExecutionBudget | NoCostModelForLanguage | CorruptCostModelForLanguage)[];
export declare type AcquireFailureDetails = "pointTooOld" | "pointNotOnChain";

@@ -283,3 +284,3 @@ export declare type GetEraStart = "eraStart";

methodname: "NextTx";
result: TxId | TxAlonzo | Null;
result: TxId | TxBabbage | Null;
reflection?: {

@@ -428,3 +429,3 @@ [k: string]: unknown;

methodname: "Query";
result: ProtocolParametersShelley | ProtocolParametersAlonzo | EraMismatch | QueryUnavailableInCurrentEra;
result: ProtocolParametersShelley | ProtocolParametersAlonzo | ProtocolParametersBabbage | EraMismatch | QueryUnavailableInCurrentEra;
reflection?: {

@@ -439,3 +440,3 @@ [k: string]: unknown;

methodname: "Query";
result: ProposedProtocolParametersShelley | ProposedProtocolParametersAlonzo | EraMismatch | QueryUnavailableInCurrentEra;
result: ProposedProtocolParametersShelley | ProposedProtocolParametersAlonzo | ProposedProtocolParametersBabbage | EraMismatch | QueryUnavailableInCurrentEra;
reflection?: {

@@ -574,7 +575,7 @@ [k: string]: unknown;

}
export interface Alonzo {
alonzo: BlockAlonzo;
export interface Babbage {
babbage: BlockBabbage;
}
export interface BlockAlonzo {
body?: TxAlonzo[];
export interface BlockBabbage {
body?: TxBabbage[];
headerHash?: DigestBlake2BBlockHeader;

@@ -587,4 +588,2 @@ header?: {

issuerVrf: IssuerVrfVerificationKey;
nonce?: CertifiedVrf;
leaderValue: CertifiedVrf;
blockSize: BlockSize;

@@ -595,5 +594,6 @@ blockHash: DigestBlake2BBlockBody;

signature: IssuerSignature;
vrfInput: CertifiedVrf;
};
}
export interface TxAlonzo {
export interface TxBabbage {
id: DigestBlake2BBlockBody;

@@ -603,3 +603,6 @@ inputSource: "inputs" | "collaterals";

inputs: TxIn[];
references?: TxIn[];
collaterals: TxIn[];
collateralReturn?: TxOut | Null;
totalCollateral?: Lovelace | Null;
outputs: TxOut[];

@@ -610,3 +613,3 @@ certificates: Certificate[];

validityInterval: ValidityInterval;
update: UpdateAlonzo;
update: UpdateBabbage;
mint: Value;

@@ -642,3 +645,7 @@ network: Network | Null;

value: Value;
datum?: DigestBlake2BDatum | Null;
datumHash?: DigestBlake2BDatum | Null;
datum?: {
[k: string]: unknown;
} | Datum | Null;
script?: Script | Null;
}

@@ -651,2 +658,26 @@ export interface Value {

}
export interface Native {
native: ScriptNative;
}
export interface Any {
any: ScriptNative[];
}
export interface All {
all: ScriptNative[];
}
export interface NOf {
[k: string]: ScriptNative[];
}
export interface ExpiresAt {
expiresAt: Slot;
}
export interface StartsAt {
startsAt: Slot;
}
export interface PlutusV1 {
"plutus:v1": ScriptPlutus;
}
export interface PlutusV2 {
"plutus:v2": ScriptPlutus;
}
export interface StakeDelegation {

@@ -721,9 +752,9 @@ stakeDelegation: {

}
export interface UpdateProposalAlonzo {
export interface UpdateProposalBabbage {
epoch: Epoch;
proposal: {
[k: string]: ProtocolParametersAlonzo;
[k: string]: ProtocolParametersBabbage;
};
}
export interface ProtocolParametersAlonzo {
export interface ProtocolParametersBabbage {
minFeeCoefficient: NullableUInt64;

@@ -741,9 +772,7 @@ minFeeConstant: NullableUInt64;

treasuryExpansion: NullableRatio;
decentralizationParameter: NullableRatio;
minPoolCost: NullableUInt64;
coinsPerUtxoWord: NullableUInt64;
coinsPerUtxoByte: NullableUInt64;
maxValueSize: NullableUInt64;
collateralPercentage: NullableUInt64;
maxCollateralInputs: NullableUInt64;
extraEntropy: Nonce | Null;
protocolVersion: ProtocolVersion | Null;

@@ -774,26 +803,2 @@ costModels: CostModels | Null;

}
export interface Native {
native: ScriptNative;
}
export interface Any {
any: ScriptNative[];
}
export interface All {
all: ScriptNative[];
}
export interface NOf {
[k: string]: ScriptNative[];
}
export interface ExpiresAt {
expiresAt: Slot;
}
export interface StartsAt {
startsAt: Slot;
}
export interface Plutus {
"plutus:v1": ScriptPlutus;
}
export interface Plutus1 {
"plutus:v2": ScriptPlutus;
}
export interface BootstrapWitness {

@@ -839,6 +844,2 @@ signature?: Signature;

}
export interface CertifiedVrf {
proof?: VrfProof;
output?: VrfOutput;
}
export interface OpCert {

@@ -850,2 +851,94 @@ count?: UInt64;

}
export interface CertifiedVrf {
proof?: VrfProof;
output?: VrfOutput;
}
export interface Alonzo {
alonzo: BlockAlonzo;
}
export interface BlockAlonzo {
body?: TxAlonzo[];
headerHash?: DigestBlake2BBlockHeader;
header?: {
blockHeight: BlockNo;
slot: Slot;
prevHash: DigestBlake2BBlockHeader;
issuerVk: VerificationKey;
issuerVrf: IssuerVrfVerificationKey;
nonce?: CertifiedVrf;
leaderValue: CertifiedVrf;
blockSize: BlockSize;
blockHash: DigestBlake2BBlockBody;
opCert: OpCert;
protocolVersion: ProtocolVersion;
signature: IssuerSignature;
};
}
export interface TxAlonzo {
id: DigestBlake2BBlockBody;
inputSource: "inputs" | "collaterals";
body: {
inputs: TxIn[];
collaterals: TxIn[];
outputs: TxOut[];
certificates: Certificate[];
withdrawals: Withdrawals;
fee: Lovelace;
validityInterval: ValidityInterval;
update: UpdateAlonzo;
mint: Value;
network: Network | Null;
scriptIntegrityHash: DigestBlake2BScriptIntegrity | Null;
requiredExtraSignatures: DigestBlake2BVerificationKey[];
};
witness: {
signatures: {
[k: string]: Signature;
};
scripts: {
[k: string]: Script;
};
bootstrap: BootstrapWitness[];
datums: {
[k: string]: Datum;
};
redeemers: {
[k: string]: Redeemer;
};
};
metadata: AuxiliaryData | Null;
raw: string;
}
export interface UpdateProposalAlonzo {
epoch: Epoch;
proposal: {
[k: string]: ProtocolParametersAlonzo;
};
}
export interface ProtocolParametersAlonzo {
minFeeCoefficient: NullableUInt64;
minFeeConstant: NullableUInt64;
maxBlockBodySize: NullableUInt64;
maxBlockHeaderSize: NullableUInt64;
maxTxSize: NullableUInt64;
stakeKeyDeposit: NullableUInt64;
poolDeposit: NullableUInt64;
poolRetirementEpochBound: NullableUInt64;
desiredNumberOfPools: NullableUInt64;
poolInfluence: NullableRatio;
monetaryExpansion: NullableRatio;
treasuryExpansion: NullableRatio;
decentralizationParameter: NullableRatio;
minPoolCost: NullableUInt64;
coinsPerUtxoWord: NullableUInt64;
maxValueSize: NullableUInt64;
collateralPercentage: NullableUInt64;
maxCollateralInputs: NullableUInt64;
extraEntropy: Nonce | Null;
protocolVersion: ProtocolVersion | Null;
costModels: CostModels | Null;
prices: Prices | Null;
maxExecutionUnitsPerTransaction: ExUnits | Null;
maxExecutionUnitsPerBlock: ExUnits | Null;
}
export interface Mary {

@@ -1241,3 +1334,6 @@ mary: BlockMary;

export interface OutputTooSmall {
outputTooSmall: TxOut[];
outputTooSmall: (TxOut | {
output: TxOut;
minimumRequiredValue: Lovelace;
})[];
}

@@ -1435,2 +1531,17 @@ export interface TooManyAssetsInOutput {

}
export interface MirNegativeTransfer {
mirNegativeTransfer: {
rewardSource: RewardPot;
attemptedTransfer: Lovelace;
};
}
export interface TotalCollateralMismatch {
totalCollateralMismatch: {
needed: Lovelace;
specified: Lovelace;
};
}
export interface MalformedOutputScripts {
malformedOutputScripts: DigestBlake2BScript[];
}
export interface EvaluationResult {

@@ -1442,3 +1553,3 @@ EvaluationResult: {

export interface EvaluationFailure {
EvaluationFailure: EvaluationFailureScriptFailures | EvaluationFailureUnknownInputs | EvaluationFailureIncompatibleEra | EvaluationFailureUncomputableSlotArithmetic | EvaluationFailureAdditionalUtxoOverlap;
EvaluationFailure: EvaluationFailureScriptFailures | EvaluationFailureUnknownInputs | EvaluationFailureIncompatibleEra | EvaluationFailureUncomputableSlotArithmetic | EvaluationFailureAdditionalUtxoOverlap | EvaluationFailureNotEnoughSynced | EvaluationFailureCannotCreateEvaluationContext;
}

@@ -1473,2 +1584,5 @@ export interface EvaluationFailureScriptFailures {

}
export interface CorruptCostModelForLanguage {
corruptCostModelForLanguage: Language;
}
export interface EvaluationFailureUnknownInputs {

@@ -1486,2 +1600,13 @@ UnknownInputs: TxIn[];

}
export interface EvaluationFailureNotEnoughSynced {
NotEnoughSynced: {
minimumRequiredEra: Era;
currentNodeEra: Era;
};
}
export interface EvaluationFailureCannotCreateEvaluationContext {
CannotCreateEvaluationContext: {
reason: string;
};
}
export interface AcquireSuccess {

@@ -1555,2 +1680,5 @@ AcquireSuccess: {

}
export interface ProposedProtocolParametersBabbage {
[k: string]: ProtocolParametersBabbage;
}
export interface PoolDistribution {

@@ -1557,0 +1685,0 @@ [k: string]: {

{
"name": "@cardano-ogmios/schema",
"version": "5.4.0",
"version": "5.5.0-rc.1",
"description": "Generated TypeScript from the Cardano Ogmios schema",

@@ -5,0 +5,0 @@ "engines": {

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