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.2.0 to 5.3.0

518

dist/index.d.ts

@@ -1,15 +0,3 @@

export declare type Block = Byron | Shelley | Allegra | Mary | Alonzo;
export declare type BlockByron = StandardBlock | EpochBoundaryBlock;
export declare type DigestBlake2BBlockHeader = string;
export declare type BlockNo = number;
export declare type GenesisVerificationKey = string;
export declare type UInt32 = number;
export declare type DigestBlake2BMerkleRoot = string;
export declare type DigestBlake2BBlockByronBodyTxPayloadWitness = string;
export declare type DigestBlake2BBlockByronBodyDlgPayload = string;
export declare type DigestBlake2BBlockByronBodyUpdatePayload = string;
export declare type ProtocolMagicId = number;
export declare type Epoch = number;
export declare type IssuerSignature = string;
export declare type Slot = number;
export declare type Block = Alonzo | Mary | Allegra | Shelley | Byron;
export declare type DigestBlake2BBlockBody = string;
export declare type TxId = string;

@@ -21,15 +9,7 @@ export declare type Address = string;

export declare type Null = null;
export declare type TxWitness = WitnessVk | RedeemWitness;
export declare type DigestBlake2BVerificationKey = string;
export declare type Signature = string;
export declare type VerificationKey = string;
export declare type NullableRatio = Ratio | Null;
export declare type Ratio = string;
export declare type NullableUInt64 = UInt64 | Null;
export declare type UInt64 = number;
export declare type IssuerVrfVerificationKey = string;
export declare type DigestBlake2BBlockBody = 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;
export declare type DigestBlake2BVrfVerificationKey = string;

@@ -39,8 +19,18 @@ export declare type DigestBlake2BPoolMetadata = string;

export declare type RewardAccount = string;
export declare type Epoch = number;
export declare type LovelaceDelta = number;
export declare type RewardPot = "reserves" | "treasury";
export declare type UpdateShelley = Null | UpdateProposalShelley;
export declare type Slot = number;
export declare type UpdateAlonzo = Null | UpdateProposalAlonzo;
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;
export declare type Int64 = number;
export declare type Network = "mainnet" | "testnet";
export declare type DigestBlake2BScriptIntegrity = string;
export declare type Signature = string;
export declare type Script = Native | Plutus | Plutus1;

@@ -51,4 +41,10 @@ export declare type ScriptNative = DigestBlake2BVerificationKey | Any | All | NOf | ExpiresAt | StartsAt;

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 BlockNo = number;
export declare type IssuerVrfVerificationKey = string;
export declare type VrfProof = string;

@@ -58,8 +54,12 @@ export declare type VrfOutput = string;

export declare type KesVerificationKey = string;
export declare type UpdateAlonzo = Null | UpdateProposalAlonzo;
export declare type Int64 = number;
export declare type Network = "mainnet" | "testnet";
export declare type DigestBlake2BScriptIntegrity = string;
export declare type Datum = string;
export declare type RedeemerData = string;
export declare type IssuerSignature = string;
export declare type UpdateShelley = Null | UpdateProposalShelley;
export declare type BlockByron = StandardBlock | EpochBoundaryBlock;
export declare type GenesisVerificationKey = string;
export declare type DigestBlake2BMerkleRoot = string;
export declare type DigestBlake2BBlockByronBodyTxPayloadWitness = string;
export declare type DigestBlake2BBlockByronBodyDlgPayload = string;
export declare type DigestBlake2BBlockByronBodyUpdatePayload = string;
export declare type ProtocolMagicId = number;
export declare type TxWitness = WitnessVk | RedeemWitness;
export declare type TipOrOrigin = Tip | Origin;

@@ -270,3 +270,5 @@ export declare type Origin = "origin";

methodname: "NextTx";
args?: {};
args?: {
fields?: "all";
};
mirror?: {

@@ -281,3 +283,3 @@ [k: string]: unknown;

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

@@ -570,145 +572,7 @@ [k: string]: unknown;

}
export interface Byron {
byron: BlockByron;
export interface Alonzo {
alonzo: BlockAlonzo;
}
export interface StandardBlock {
hash: DigestBlake2BBlockHeader;
header: {
blockHeight: BlockNo;
genesisKey: GenesisVerificationKey;
prevHash: DigestBlake2BBlockHeader;
proof: BlockProof;
protocolMagicId: ProtocolMagicId;
protocolVersion: ProtocolVersion;
signature: BlockSignature;
slot: Slot;
softwareVersion: SoftwareVersion;
};
body: {
txPayload: {
id: TxId;
body: Tx;
witness: TxWitness[];
}[];
dlgPayload: DlgCertificate[];
updatePayload: {
proposal: Null | UpdateProposalByron;
votes: Vote[];
};
};
}
export interface BlockProof {
utxo: {
number: UInt32;
root: DigestBlake2BMerkleRoot;
witnessesHash: DigestBlake2BBlockByronBodyTxPayloadWitness;
};
delegation: DigestBlake2BBlockByronBodyDlgPayload;
update: DigestBlake2BBlockByronBodyUpdatePayload;
}
export interface ProtocolVersion {
major: UInt32;
minor: UInt32;
patch?: UInt32;
}
export interface BlockSignature {
dlgCertificate: DlgCertificate;
signature: IssuerSignature;
}
export interface DlgCertificate {
epoch: Epoch;
issuerVk: GenesisVerificationKey;
delegateVk: GenesisVerificationKey;
signature: IssuerSignature;
}
export interface SoftwareVersion {
appName: string;
number: UInt32;
}
export interface Tx {
inputs: TxIn[];
outputs: TxOut[];
}
export interface TxIn {
txId: TxId;
index: number;
}
export interface TxOut {
address: Address;
value: Value;
datum?: DigestBlake2BDatum | Null;
}
export interface Value {
coins: Lovelace;
assets?: {
[k: string]: AssetQuantity;
};
}
export interface WitnessVk {
witnessVk: {
key: DigestBlake2BVerificationKey;
signature: Signature;
};
}
export interface RedeemWitness {
redeemWitness: {
key: VerificationKey;
signature: Signature;
};
}
export interface UpdateProposalByron {
body: {
protocolVersion: ProtocolVersion;
softwareVersion: SoftwareVersion;
metadata: {
[k: string]: string;
};
parametersUpdate: ProtocolParametersByron;
};
issuer: IssuerVrfVerificationKey;
signature: IssuerSignature;
}
export interface ProtocolParametersByron {
heavyDlgThreshold: NullableRatio;
maxBlockSize: NullableUInt64;
maxHeaderSize: NullableUInt64;
maxProposalSize: NullableUInt64;
maxTxSize: NullableUInt64;
mpcThreshold: NullableRatio;
scriptVersion: NullableUInt64;
slotDuration: NullableUInt64;
unlockStakeEpoch: NullableUInt64;
updateProposalThreshold: NullableRatio;
updateProposalTimeToLive: NullableUInt64;
updateVoteThreshold: NullableRatio;
txFeePolicy: TxFeePolicy | Null;
softforkRule: SoftForkRule | Null;
}
export interface TxFeePolicy {
coefficient: Ratio;
constant: number;
}
export interface SoftForkRule {
initThreshold: NullableRatio;
minThreshold: NullableRatio;
decrementThreshold: NullableRatio;
}
export interface Vote {
voterVk: VerificationKey;
proposalId: DigestBlake2BVerificationKey;
signature: Signature;
}
export interface EpochBoundaryBlock {
hash: DigestBlake2BBlockHeader;
header: {
blockHeight: BlockNo;
epoch: Epoch;
prevHash: DigestBlake2BBlockHeader;
};
}
export interface Shelley {
shelley: BlockShelley;
}
export interface BlockShelley {
body?: BlockBodyShelley[];
export interface BlockAlonzo {
body?: TxAlonzo[];
headerHash?: DigestBlake2BBlockHeader;

@@ -730,6 +594,8 @@ header?: {

}
export interface BlockBodyShelley {
export interface TxAlonzo {
id: DigestBlake2BBlockBody;
inputSource: "inputs" | "collaterals";
body: {
inputs: TxIn[];
collaterals: TxIn[];
outputs: TxOut[];

@@ -739,4 +605,8 @@ certificates: Certificate[];

fee: Lovelace;
timeToLive: Slot;
update: UpdateShelley;
validityInterval: ValidityInterval;
update: UpdateAlonzo;
mint: Value;
network: Network | Null;
scriptIntegrityHash: DigestBlake2BScriptIntegrity | Null;
requiredExtraSignatures: DigestBlake2BVerificationKey[];
};

@@ -751,5 +621,27 @@ witness: {

bootstrap: BootstrapWitness[];
datums: {
[k: string]: Datum;
};
redeemers: {
[k: string]: Redeemer;
};
};
metadata: AuxiliaryData | Null;
raw: string;
}
export interface TxIn {
txId: TxId;
index: number;
}
export interface TxOut {
address: Address;
value: Value;
datum?: DigestBlake2BDatum | Null;
}
export interface Value {
coins: Lovelace;
assets?: {
[k: string]: AssetQuantity;
};
}
export interface StakeDelegation {

@@ -820,9 +712,13 @@ stakeDelegation: {

}
export interface UpdateProposalShelley {
export interface ValidityInterval {
invalidBefore: Slot | Null;
invalidHereafter: Slot | Null;
}
export interface UpdateProposalAlonzo {
epoch: Epoch;
proposal: {
[k: string]: ProtocolParametersShelley;
[k: string]: ProtocolParametersAlonzo;
};
}
export interface ProtocolParametersShelley {
export interface ProtocolParametersAlonzo {
minFeeCoefficient: NullableUInt64;

@@ -841,7 +737,33 @@ minFeeConstant: NullableUInt64;

decentralizationParameter: NullableRatio;
minUtxoValue: NullableUInt64;
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 ProtocolVersion {
major: UInt32;
minor: UInt32;
patch?: UInt32;
}
export interface CostModels {
[k: string]: CostModel;
}
export interface CostModel {
[k: string]: Int64;
}
export interface Prices {
memory: Ratio;
steps: Ratio;
}
export interface ExUnits {
memory: UInt64;
steps: UInt64;
}
export interface Native {

@@ -877,2 +799,6 @@ native: ScriptNative;

}
export interface Redeemer {
redeemer: RedeemerData;
executionUnits: ExUnits;
}
export interface AuxiliaryData {

@@ -918,7 +844,7 @@ hash: DigestBlake2BAuxiliaryDataBody;

}
export interface Allegra {
allegra: BlockAllegra;
export interface Mary {
mary: BlockMary;
}
export interface BlockAllegra {
body?: BlockBodyAllegra[];
export interface BlockMary {
body?: TxMary[];
headerHash?: DigestBlake2BBlockHeader;

@@ -940,3 +866,3 @@ header?: {

}
export interface BlockBodyAllegra {
export interface TxMary {
id: DigestBlake2BBlockBody;

@@ -951,2 +877,3 @@ body: {

update: UpdateShelley;
mint: Value;
};

@@ -963,12 +890,34 @@ witness: {

metadata: AuxiliaryData | Null;
raw: string;
}
export interface ValidityInterval {
invalidBefore: Slot | Null;
invalidHereafter: Slot | Null;
export interface UpdateProposalShelley {
epoch: Epoch;
proposal: {
[k: string]: ProtocolParametersShelley;
};
}
export interface Mary {
mary: BlockMary;
export interface ProtocolParametersShelley {
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;
minUtxoValue: NullableUInt64;
minPoolCost: NullableUInt64;
extraEntropy: Nonce | Null;
protocolVersion: ProtocolVersion | Null;
}
export interface BlockMary {
body?: BlockBodyMary[];
export interface Allegra {
allegra: BlockAllegra;
}
export interface BlockAllegra {
body?: TxAllegra[];
headerHash?: DigestBlake2BBlockHeader;

@@ -990,3 +939,3 @@ header?: {

}
export interface BlockBodyMary {
export interface TxAllegra {
id: DigestBlake2BBlockBody;

@@ -1001,3 +950,2 @@ body: {

update: UpdateShelley;
mint: Value;
};

@@ -1014,8 +962,9 @@ witness: {

metadata: AuxiliaryData | Null;
raw: string;
}
export interface Alonzo {
alonzo: BlockAlonzo;
export interface Shelley {
shelley: BlockShelley;
}
export interface BlockAlonzo {
body?: BlockBodyAlonzo[];
export interface BlockShelley {
body?: TxShelley[];
headerHash?: DigestBlake2BBlockHeader;

@@ -1037,7 +986,6 @@ header?: {

}
export interface BlockBodyAlonzo {
export interface TxShelley {
id: DigestBlake2BBlockBody;
body: {
inputs: TxIn[];
collaterals: TxIn[];
outputs: TxOut[];

@@ -1047,8 +995,4 @@ certificates: Certificate[];

fee: Lovelace;
validityInterval: ValidityInterval;
update: UpdateAlonzo;
mint: Value;
network: Network | Null;
scriptIntegrityHash: DigestBlake2BScriptIntegrity | Null;
requiredExtraSignatures: DigestBlake2BVerificationKey[];
timeToLive: Slot;
update: UpdateShelley;
};

@@ -1063,61 +1007,125 @@ witness: {

bootstrap: BootstrapWitness[];
datums: {
[k: string]: Datum;
};
redeemers: {
[k: string]: Redeemer;
};
};
metadata: AuxiliaryData | Null;
raw: string;
}
export interface UpdateProposalAlonzo {
export interface Byron {
byron: BlockByron;
}
export interface StandardBlock {
hash: DigestBlake2BBlockHeader;
header: {
blockHeight: BlockNo;
genesisKey: GenesisVerificationKey;
prevHash: DigestBlake2BBlockHeader;
proof: BlockProof;
protocolMagicId: ProtocolMagicId;
protocolVersion: ProtocolVersion;
signature: BlockSignature;
slot: Slot;
softwareVersion: SoftwareVersion;
};
body: {
txPayload: TxByron[];
dlgPayload: DlgCertificate[];
updatePayload: {
proposal: Null | UpdateProposalByron;
votes: Vote[];
};
};
}
export interface BlockProof {
utxo: {
number: UInt32;
root: DigestBlake2BMerkleRoot;
witnessesHash: DigestBlake2BBlockByronBodyTxPayloadWitness;
};
delegation: DigestBlake2BBlockByronBodyDlgPayload;
update: DigestBlake2BBlockByronBodyUpdatePayload;
}
export interface BlockSignature {
dlgCertificate: DlgCertificate;
signature: IssuerSignature;
}
export interface DlgCertificate {
epoch: Epoch;
proposal: {
[k: string]: ProtocolParametersAlonzo;
issuerVk: GenesisVerificationKey;
delegateVk: GenesisVerificationKey;
signature: IssuerSignature;
}
export interface SoftwareVersion {
appName: string;
number: UInt32;
}
export interface TxByron {
id: TxId;
body: {
inputs: TxIn[];
outputs: TxOut[];
};
witness: TxWitness[];
raw: string;
}
export interface ProtocolParametersAlonzo {
minFeeCoefficient: NullableUInt64;
minFeeConstant: NullableUInt64;
maxBlockBodySize: NullableUInt64;
maxBlockHeaderSize: NullableUInt64;
export interface WitnessVk {
witnessVk: {
key: DigestBlake2BVerificationKey;
signature: Signature;
};
}
export interface RedeemWitness {
redeemWitness: {
key: VerificationKey;
signature: Signature;
};
}
export interface UpdateProposalByron {
body: {
protocolVersion: ProtocolVersion;
softwareVersion: SoftwareVersion;
metadata: {
[k: string]: string;
};
parametersUpdate: ProtocolParametersByron;
};
issuer: IssuerVrfVerificationKey;
signature: IssuerSignature;
}
export interface ProtocolParametersByron {
heavyDlgThreshold: NullableRatio;
maxBlockSize: NullableUInt64;
maxHeaderSize: NullableUInt64;
maxProposalSize: 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;
mpcThreshold: NullableRatio;
scriptVersion: NullableUInt64;
slotDuration: NullableUInt64;
unlockStakeEpoch: NullableUInt64;
updateProposalThreshold: NullableRatio;
updateProposalTimeToLive: NullableUInt64;
updateVoteThreshold: NullableRatio;
txFeePolicy: TxFeePolicy | Null;
softforkRule: SoftForkRule | Null;
}
export interface CostModels {
[k: string]: CostModel;
export interface TxFeePolicy {
coefficient: Ratio;
constant: number;
}
export interface CostModel {
[k: string]: Int64;
export interface SoftForkRule {
initThreshold: NullableRatio;
minThreshold: NullableRatio;
decrementThreshold: NullableRatio;
}
export interface Prices {
memory: Ratio;
steps: Ratio;
export interface Vote {
voterVk: VerificationKey;
proposalId: DigestBlake2BVerificationKey;
signature: Signature;
}
export interface ExUnits {
memory: UInt64;
steps: UInt64;
export interface EpochBoundaryBlock {
hash: DigestBlake2BBlockHeader;
header: {
blockHeight: BlockNo;
epoch: Epoch;
prevHash: DigestBlake2BBlockHeader;
};
}
export interface Redeemer {
redeemer: RedeemerData;
executionUnits: ExUnits;
}
export interface Tip {

@@ -1124,0 +1132,0 @@ slot: Slot;

{
"name": "@cardano-ogmios/schema",
"version": "5.2.0",
"version": "5.3.0",
"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