@cardano-ogmios/schema
Advanced tools
Comparing version 3.2.0 to 4.0.0-beta.1
@@ -1,2 +0,2 @@ | ||
export declare type Block = Byron | Shelley | Allegra | Mary; | ||
export declare type Block = Byron | Shelley | Allegra | Mary | Alonzo; | ||
export declare type BlockByron = StandardBlock | EpochBoundaryBlock; | ||
@@ -11,45 +11,30 @@ export declare type Hash16 = string; | ||
export declare type Lovelace = number; | ||
export declare type AssetQuantity = number; | ||
export declare type DatumHash = string; | ||
export declare type Null = null; | ||
export declare type TxWitness = WitnessVk | RedeemWitness; | ||
export declare type Null = null; | ||
export declare type NullableInteger = Integer | Null1; | ||
export declare type NullableInteger = Integer | Null; | ||
export declare type Integer = number; | ||
export declare type Null1 = null; | ||
export declare type NullableRatio = Ratio | Null2; | ||
export declare type NullableRatio = Ratio | Null; | ||
export declare type Ratio = string; | ||
export declare type Null2 = null; | ||
export declare type Null3 = null; | ||
export declare type Null4 = null; | ||
export declare type Certificate = StakeDelegation | StakeKeyRegistration | StakeKeyDeregistration | PoolRegistration | PoolRetirement | GenesisDelegation | MoveInstantaneousRewards; | ||
export declare type PoolId = string; | ||
export declare type Null5 = null; | ||
export declare type Relay = ByAddress | ByName; | ||
export declare type Ip = string; | ||
export declare type Null6 = null; | ||
export declare type Ip1 = string; | ||
export declare type Null7 = null; | ||
export declare type RewardAccount = string; | ||
export declare type LovelaceDelta = number; | ||
export declare type RewardPot = "reserves" | "treasury"; | ||
export declare type UpdateShelley = Null8 | Proposal1; | ||
export declare type Null8 = null; | ||
export declare type UpdateShelley = Null | UpdateProposalShelley; | ||
export declare type Nonce = Neutral | Hash16; | ||
export declare type Neutral = "neutral"; | ||
export declare type Null9 = null; | ||
export declare type Null10 = null; | ||
export declare type Script = Hash16 | Any | All | NOf | ExpiresAt | StartsAt; | ||
export declare type Null11 = null; | ||
export declare type Null12 = null; | ||
export declare type Null13 = null; | ||
export declare type Null14 = null; | ||
export declare type Signature = string; | ||
export declare type Script = Native | Plutus; | ||
export declare type ScriptNative = Hash16 | Any | All | NOf | ExpiresAt | StartsAt; | ||
export declare type ScriptPlutus = string; | ||
export declare type Metadatum = Int | String | Bytes | List | Map; | ||
export declare type Datum = string; | ||
export declare type BlockSize = number; | ||
export declare type Null15 = null; | ||
export declare type Null16 = null; | ||
export declare type Null17 = null; | ||
export declare type Null18 = null; | ||
export declare type Null19 = null; | ||
export declare type Null20 = null; | ||
export declare type AssetQuantity = number; | ||
export declare type Null21 = null; | ||
export declare type Null22 = null; | ||
export declare type Null23 = null; | ||
export declare type Null24 = null; | ||
export declare type UpdateAlonzo = Null | UpdateProposalAlonzo; | ||
export declare type Network = "mainnet" | "testnet"; | ||
export declare type Tip = Tip1 | Origin; | ||
@@ -60,39 +45,50 @@ export declare type Origin = "origin"; | ||
export declare type SubmitSuccess = "SubmitSuccess"; | ||
export declare type Era = "Byron" | "Shelley" | "Allegra" | "Mary"; | ||
export declare type Era = "Byron" | "Shelley" | "Allegra" | "Mary" | "Alonzo"; | ||
export declare type SubmitTxErrorByron = UtxoValidationError | TxValidationError; | ||
export declare type UtxoValidationError1 = OverlappingUnion | MissingInput; | ||
export declare type OverlappingUnion = "overlappingUnion"; | ||
export declare type TxValidationError1 = UnknownAttributes | FeeTooSmall | TxTooLarge | MissingInput1 | NetworkMismatch | WrongSignature | LovelaceError | WrongKey; | ||
export declare type TxValidationError1 = UnknownAttributes | FeeTooSmall_ | TxTooLarge_ | MissingInput_ | NetworkMismatch_ | WrongSignature_ | LovelaceError_ | WrongKey_; | ||
export declare type UnknownAttributes = "unknownAttributes" | "unknownAddressAttributes"; | ||
export declare type NetworkMagic = Mainnet | Testnet; | ||
export declare type Mainnet = "mainnet"; | ||
export declare type LovelaceError1 = Underflow | TooSmall | TooLarge | Overflow; | ||
export declare type LovelaceError = Underflow | TooSmall | TooLarge | Overflow; | ||
export declare type MissingAtLeastOneInputUtxo = "missingAtLeastOneInputUtxo"; | ||
export declare type InvalidMetadata = "invalidMetadata"; | ||
export declare type LovelaceDelta = number; | ||
export declare type Network = "mainnet" | "testnet"; | ||
export declare type InvalidEntity = { | ||
type: "address"; | ||
entity: Address; | ||
} | { | ||
type: "poolRegistration"; | ||
entity: PoolId; | ||
} | { | ||
type: "rewardAccount"; | ||
entity: RewardAccount; | ||
}; | ||
export declare type TriesToForgeAda = "triesToForgeAda"; | ||
export declare type RewardAccountNotExisting = "rewardAccountNotExisting"; | ||
export declare type WrongCertificateType = "wrongCertificateType"; | ||
export declare type MirTransferNotCurrentlyAllowed = "mirTransferNotCurrentlyAllowed"; | ||
export declare type MirNegativeTransferNotCurrentlyAllowed = "mirNegativeTransferNotCurrentlyAllowed"; | ||
export declare type MirProducesNegativeUpdate = "mirProducesNegativeUpdate"; | ||
export declare type VotingPeriod = "voteForThisEpoch" | "voteForNextEpoch"; | ||
export declare type SubmitTxErrorShelley = (InvalidWitnesses | MissingVkWitnesses | MissingScriptWitnesses | ScriptWitnessNotValidating | InsufficientGenesisSignatures | MissingTxMetadata | MissingTxMetadataHash | TxMetadataHashMismatch | BadInputs | ExpiredUtxo | OutsideOfValidityInterval | TxTooLarge1 | MissingAtLeastOneInputUtxo | InvalidMetadata | FeeTooSmall1 | ValueNotConserved | NetworkMismatch1 | OutputTooSmall | TooManyAssetsInOutput | AddressAttributesTooLarge | TriesToForgeAda | DelegateNotRegistered | UnknownOrIncompleteWithdrawals | StakePoolNotRegistered | WrongRetirementEpoch | WrongPoolCertificate | StakeKeyAlreadyRegistered | PoolCostTooSmall | StakeKeyNotRegistered | RewardAccountNotExisting | RewardAccountNotEmpty | WrongCertificateType | UnknownGenesisKey | AlreadyDelegating | InsufficientFundsForMir | TooLateForMir | DuplicateGenesisVrf | NonGenesisVoters | UpdateWrongEpoch | ProtocolVersionCannotFollow)[]; | ||
export declare type AcquireFailure1 = "pointTooOld" | "pointNotOnChain"; | ||
export declare type EraStart = "eraStart"; | ||
export declare type LedgerTip = "ledgerTip"; | ||
export declare type CurrentEpoch = "currentEpoch"; | ||
export declare type ScriptPurpose = Spend | Mint | Certificate1 | Withdrawal; | ||
export declare type Utxo = [TxIn, TxOut][]; | ||
export declare type ValidationTagMismatch = "validationTagMismatch"; | ||
export declare type SubmitTxErrorShelley = (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 | StakeKeyNotRegistered | RewardAccountNotExisting | RewardAccountNotEmpty | WrongCertificateType | UnknownGenesisKey | AlreadyDelegating | InsufficientFundsForMir | TooLateForMir | MirTransferNotCurrentlyAllowed | MirNegativeTransferNotCurrentlyAllowed | MirProducesNegativeUpdate | DuplicateGenesisVrf | NonGenesisVoters | UpdateWrongEpoch | ProtocolVersionCannotFollow | UnredeemableScripts | DatumsMismatch | ExtraDataMismatch | MissingRequiredSignatures | CollateralTooSmall | CollateralIsScript | CollateralHasNonAdaAssets | TooManyCollateralInputs | ExecutionUnitsTooLarge | OutsideForecast | ValidationTagMismatch | CollectErrors)[]; | ||
export declare type AcquireFailureDetails = "pointTooOld" | "pointNotOnChain"; | ||
export declare type GetEraStart = "eraStart"; | ||
export declare type GetLedgerTip = "ledgerTip"; | ||
export declare type GetCurrentEpoch = "currentEpoch"; | ||
export declare type Lovelaces = Lovelace[]; | ||
export declare type Credentials = Hash16[]; | ||
export declare type CurrentProtocolParameters = "currentProtocolParameters"; | ||
export declare type ProposedProtocolParameters = "proposedProtocolParameters"; | ||
export declare type StakeDistribution = "stakeDistribution"; | ||
export declare type Utxo = "utxo"; | ||
export declare type GenesisConfig = "genesisConfig"; | ||
export declare type GetCurrentProtocolParameters = "currentProtocolParameters"; | ||
export declare type GetProposedProtocolParameters = "proposedProtocolParameters"; | ||
export declare type GetStakeDistribution = "stakeDistribution"; | ||
export declare type GetUtxo = "utxo"; | ||
export declare type GetGenesisConfig = "genesisConfig"; | ||
export declare type RelativeTime = string; | ||
export declare type QueryUnavailableInCurrentEra = "QueryUnavailableInCurrentEra"; | ||
export declare type Utxo2 = [] | [TxIn] | [TxIn, TxOut]; | ||
export declare type UtxoMary = [] | [TxIn] | [TxIn, TxOutMary]; | ||
export declare type Utxo1 = (Utxo2 | UtxoMary)[]; | ||
export declare type UtcTime = string; | ||
export interface Ogmios { | ||
RequestNext?: { | ||
RequestNext: { | ||
type: "jsonwsp/request"; | ||
@@ -107,3 +103,3 @@ version: "1.0"; | ||
}; | ||
RequestNextResponse?: { | ||
RequestNextResponse: { | ||
type: "jsonwsp/response"; | ||
@@ -118,3 +114,3 @@ version: "1.0"; | ||
}; | ||
FindIntersect?: { | ||
FindIntersect: { | ||
type: "jsonwsp/request"; | ||
@@ -132,3 +128,3 @@ version: "1.0"; | ||
}; | ||
FindIntersectResponse?: { | ||
FindIntersectResponse: { | ||
type: "jsonwsp/response"; | ||
@@ -143,3 +139,3 @@ version: "1.0"; | ||
}; | ||
SubmitTx?: { | ||
SubmitTx: { | ||
type: "jsonwsp/request"; | ||
@@ -156,3 +152,3 @@ version: "1.0"; | ||
}; | ||
SubmitTxResponse?: { | ||
SubmitTxResponse: { | ||
type: "jsonwsp/response"; | ||
@@ -167,3 +163,3 @@ version: "1.0"; | ||
}; | ||
Acquire?: { | ||
Acquire: { | ||
type: "jsonwsp/request"; | ||
@@ -174,3 +170,3 @@ version: "1.0"; | ||
args?: { | ||
points?: Point; | ||
point: Point; | ||
}; | ||
@@ -181,3 +177,3 @@ mirror?: { | ||
}; | ||
AcquireResponse?: { | ||
AcquireResponse: { | ||
type: "jsonwsp/response"; | ||
@@ -192,3 +188,3 @@ version: "1.0"; | ||
}; | ||
Release?: { | ||
Release: { | ||
type: "jsonwsp/request"; | ||
@@ -203,3 +199,3 @@ version: "1.0"; | ||
}; | ||
ReleaseResponse?: { | ||
ReleaseResponse: { | ||
type: "jsonwsp/response"; | ||
@@ -214,3 +210,3 @@ version: "1.0"; | ||
}; | ||
Query?: { | ||
Query: { | ||
type: "jsonwsp/request"; | ||
@@ -221,3 +217,3 @@ version: "1.0"; | ||
args?: { | ||
query: EraStart | LedgerTip | CurrentEpoch | NonMyopicMemberRewards | DelegationsAndRewards | CurrentProtocolParameters | ProposedProtocolParameters | StakeDistribution | Utxo | UtxoFiltered | GenesisConfig; | ||
query: GetEraStart | GetLedgerTip | GetCurrentEpoch | GetNonMyopicMemberRewards | GetDelegationsAndRewards | GetCurrentProtocolParameters | GetProposedProtocolParameters | GetStakeDistribution | GetUtxo | GetUtxoFiltered | GetGenesisConfig; | ||
}; | ||
@@ -228,3 +224,3 @@ mirror?: { | ||
}; | ||
"QueryResponse[eraStart]"?: { | ||
"QueryResponse[eraStart]": { | ||
type: "jsonwsp/response"; | ||
@@ -239,3 +235,3 @@ version: "1.0"; | ||
}; | ||
"QueryResponse[ledgerTip]"?: { | ||
"QueryResponse[ledgerTip]": { | ||
type: "jsonwsp/response"; | ||
@@ -250,3 +246,3 @@ version: "1.0"; | ||
}; | ||
"QueryResponse[currentEpoch]"?: { | ||
"QueryResponse[currentEpoch]": { | ||
type: "jsonwsp/response"; | ||
@@ -261,3 +257,3 @@ version: "1.0"; | ||
}; | ||
"QueryResponse[nonMyopicMemberRewards]"?: { | ||
"QueryResponse[nonMyopicMemberRewards]": { | ||
type: "jsonwsp/response"; | ||
@@ -267,3 +263,3 @@ version: "1.0"; | ||
methodname: "Query"; | ||
result: NonMyopicMemberRewards1 | EraMismatch | QueryUnavailableInCurrentEra; | ||
result: NonMyopicMemberRewards | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
@@ -273,3 +269,3 @@ [k: string]: unknown; | ||
}; | ||
"QueryResponse[delegationsAndRewards]"?: { | ||
"QueryResponse[delegationsAndRewards]": { | ||
type: "jsonwsp/response"; | ||
@@ -279,3 +275,3 @@ version: "1.0"; | ||
methodname: "Query"; | ||
result: DelegationsAndRewards1 | EraMismatch | QueryUnavailableInCurrentEra; | ||
result: DelegationsAndRewardsByAccounts | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
@@ -285,3 +281,3 @@ [k: string]: unknown; | ||
}; | ||
"QueryResponse[currentProtocolParameters]"?: { | ||
"QueryResponse[currentProtocolParameters]": { | ||
type: "jsonwsp/response"; | ||
@@ -291,3 +287,3 @@ version: "1.0"; | ||
methodname: "Query"; | ||
result: ProtocolParametersShelley | EraMismatch | QueryUnavailableInCurrentEra; | ||
result: ProtocolParametersShelley | ProtocolParametersAlonzo | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
@@ -297,3 +293,3 @@ [k: string]: unknown; | ||
}; | ||
"QueryResponse[proposedProtocolParameters]"?: { | ||
"QueryResponse[proposedProtocolParameters]": { | ||
type: "jsonwsp/response"; | ||
@@ -303,3 +299,3 @@ version: "1.0"; | ||
methodname: "Query"; | ||
result: ProtocolParametersShelley1 | EraMismatch | QueryUnavailableInCurrentEra; | ||
result: ProtocolParametersShelley1 | ProtocolParametersAlonzo1 | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
@@ -309,3 +305,3 @@ [k: string]: unknown; | ||
}; | ||
"QueryResponse[stakeDistribution]"?: { | ||
"QueryResponse[stakeDistribution]": { | ||
type: "jsonwsp/response"; | ||
@@ -320,3 +316,3 @@ version: "1.0"; | ||
}; | ||
"QueryResponse[utxo]"?: { | ||
"QueryResponse[utxo]": { | ||
type: "jsonwsp/response"; | ||
@@ -326,3 +322,3 @@ version: "1.0"; | ||
methodname: "Query"; | ||
result: Utxo1 | EraMismatch | QueryUnavailableInCurrentEra; | ||
result: Utxo | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
@@ -332,3 +328,3 @@ [k: string]: unknown; | ||
}; | ||
"QueryResponse[genesisConfig]"?: { | ||
"QueryResponse[genesisConfig]": { | ||
type: "jsonwsp/response"; | ||
@@ -343,3 +339,3 @@ version: "1.0"; | ||
}; | ||
Fault?: { | ||
Fault: { | ||
type: "jsonwsp/fault"; | ||
@@ -373,3 +369,3 @@ version: "1.0"; | ||
protocolVersion: ProtocolVersion; | ||
signature: Signature; | ||
signature: BlockSignature; | ||
slot: Slot; | ||
@@ -386,3 +382,3 @@ softwareVersion: SoftwareVersion; | ||
updatePayload: { | ||
proposal: Null | Proposal; | ||
proposal: Null | UpdateProposalByron; | ||
votes: Vote[]; | ||
@@ -406,3 +402,3 @@ }; | ||
} | ||
export interface Signature { | ||
export interface BlockSignature { | ||
dlgCertificate: DlgCertificate; | ||
@@ -431,4 +427,11 @@ signature: Hash64; | ||
address: Address; | ||
value: Lovelace; | ||
value: Value; | ||
datum?: DatumHash | Null; | ||
} | ||
export interface Value { | ||
coins: Lovelace; | ||
assets?: { | ||
[k: string]: AssetQuantity; | ||
}; | ||
} | ||
export interface WitnessVk { | ||
@@ -446,3 +449,3 @@ witnessVk: { | ||
} | ||
export interface Proposal { | ||
export interface UpdateProposalByron { | ||
body: { | ||
@@ -470,4 +473,4 @@ protocolVersion: ProtocolVersion; | ||
unlockStakeEpoch?: NullableInteger; | ||
txFeePolicy?: TxFeePolicy | Null3; | ||
softforkRule?: SoftForkRule | Null4; | ||
txFeePolicy?: TxFeePolicy | Null; | ||
softforkRule?: SoftForkRule | Null; | ||
[k: string]: unknown; | ||
@@ -513,20 +516,11 @@ } | ||
witness: { | ||
address: { | ||
signature?: Hash64; | ||
key?: Hash16; | ||
}[]; | ||
script: { | ||
signatures: { | ||
[k: string]: Signature; | ||
}; | ||
scripts: { | ||
[k: string]: Script; | ||
}; | ||
bootstrap: { | ||
signature?: Hash64; | ||
chainCode?: Hash16 | Null11; | ||
addressAttributes?: Hash64 | Null12; | ||
key?: Hash16; | ||
}[]; | ||
bootstrap: BootstrapWitness[]; | ||
}; | ||
metadata: { | ||
hash: Null13 | Hash16; | ||
body: Null14 | Object; | ||
}; | ||
metadata: AuxiliaryData | Null; | ||
}[]; | ||
@@ -568,3 +562,3 @@ headerHash?: Hash16; | ||
vrf: Hash16; | ||
metadata: Null5 | Metadata; | ||
metadata: Null | Metadata; | ||
id: PoolId; | ||
@@ -580,4 +574,4 @@ relays: Relay[]; | ||
export interface ByAddress { | ||
ipv4: Ip | Null6; | ||
ipv6: Ip1 | Null7; | ||
ipv4: Ip | Null; | ||
ipv6: Ip1 | Null; | ||
port: NullableInteger; | ||
@@ -604,3 +598,4 @@ } | ||
moveInstantaneousRewards: { | ||
rewards: Rewards; | ||
rewards?: Rewards; | ||
value?: Lovelace; | ||
pot: RewardPot; | ||
@@ -610,3 +605,3 @@ }; | ||
export interface Rewards { | ||
[k: string]: Lovelace; | ||
[k: string]: LovelaceDelta; | ||
} | ||
@@ -616,3 +611,3 @@ export interface Withdrawals { | ||
} | ||
export interface Proposal1 { | ||
export interface UpdateProposalShelley { | ||
epoch: Epoch; | ||
@@ -640,23 +635,62 @@ proposal: { | ||
minPoolCost?: NullableInteger; | ||
extraEntropy?: Nonce | Null9; | ||
protocolVersion?: ProtocolVersion | Null10; | ||
extraEntropy?: Nonce | Null; | ||
protocolVersion?: ProtocolVersion | Null; | ||
} | ||
export interface Native { | ||
native: ScriptNative; | ||
} | ||
export interface Any { | ||
any?: Script[]; | ||
any: ScriptNative[]; | ||
} | ||
export interface All { | ||
all?: Script[]; | ||
all: ScriptNative[]; | ||
} | ||
export interface NOf { | ||
[k: string]: Script[]; | ||
[k: string]: ScriptNative[]; | ||
} | ||
export interface ExpiresAt { | ||
expiresAt?: Slot; | ||
expiresAt: Slot; | ||
} | ||
export interface StartsAt { | ||
startsAt?: Slot; | ||
startsAt: Slot; | ||
} | ||
export interface Object { | ||
[k: string]: unknown; | ||
export interface Plutus { | ||
plutus: ScriptPlutus; | ||
} | ||
export interface BootstrapWitness { | ||
signature?: Hash64; | ||
chainCode?: Hash16 | Null; | ||
addressAttributes?: Hash64 | Null; | ||
key?: Hash16; | ||
} | ||
export interface AuxiliaryData { | ||
hash: Hash16; | ||
body: AuxiliaryDataBody; | ||
} | ||
export interface AuxiliaryDataBody { | ||
blob?: Metadata1; | ||
scripts?: Script[]; | ||
datums?: Datum[]; | ||
} | ||
export interface Metadata1 { | ||
[k: string]: Metadatum; | ||
} | ||
export interface Int { | ||
int: number; | ||
} | ||
export interface String { | ||
string: string; | ||
} | ||
export interface Bytes { | ||
bytes: string; | ||
} | ||
export interface List { | ||
list: Metadatum[]; | ||
} | ||
export interface Map { | ||
map: { | ||
k: Metadatum; | ||
v: Metadatum; | ||
}[]; | ||
} | ||
export interface NonceProof { | ||
@@ -692,20 +726,11 @@ proof?: Hash64; | ||
witness: { | ||
address: { | ||
signature?: Hash64; | ||
key?: Hash16; | ||
}[]; | ||
script: { | ||
signatures: { | ||
[k: string]: Signature; | ||
}; | ||
scripts: { | ||
[k: string]: Script; | ||
}; | ||
bootstrap: { | ||
signature?: Hash64; | ||
chainCode?: Hash16 | Null17; | ||
addressAttributes?: Hash64 | Null18; | ||
key?: Hash16; | ||
}[]; | ||
bootstrap: BootstrapWitness[]; | ||
}; | ||
metadata: { | ||
hash: Null19 | Hash16; | ||
body: Null20 | Object1; | ||
}; | ||
metadata: AuxiliaryData | Null; | ||
}[]; | ||
@@ -729,8 +754,5 @@ headerHash?: Hash16; | ||
export interface ValidityInterval { | ||
invalidBefore: Slot | Null15; | ||
invalidHereafter: Slot | Null16; | ||
invalidBefore: Slot | Null; | ||
invalidHereafter: Slot | Null; | ||
} | ||
export interface Object1 { | ||
[k: string]: unknown; | ||
} | ||
export interface Mary { | ||
@@ -744,3 +766,3 @@ mary: BlockMary; | ||
inputs: TxIn[]; | ||
outputs: TxOutMary[]; | ||
outputs: TxOut[]; | ||
certificates: Certificate[]; | ||
@@ -754,20 +776,11 @@ withdrawals: Withdrawals; | ||
witness: { | ||
address: { | ||
signature?: Hash64; | ||
key?: Hash16; | ||
}[]; | ||
script: { | ||
signatures: { | ||
[k: string]: Signature; | ||
}; | ||
scripts: { | ||
[k: string]: Script; | ||
}; | ||
bootstrap: { | ||
signature?: Hash64; | ||
chainCode?: Hash16 | Null21; | ||
addressAttributes?: Hash64 | Null22; | ||
key?: Hash16; | ||
}[]; | ||
bootstrap: BootstrapWitness[]; | ||
}; | ||
metadata: { | ||
hash: Null23 | Hash16; | ||
body: Null24 | Null25; | ||
}; | ||
metadata: AuxiliaryData | Null; | ||
}[]; | ||
@@ -790,15 +803,106 @@ headerHash?: Hash16; | ||
} | ||
export interface TxOutMary { | ||
address: Address; | ||
value: Value; | ||
export interface Alonzo { | ||
alonzo: BlockAlonzo; | ||
} | ||
export interface Value { | ||
coins: Lovelace; | ||
assets: { | ||
[k: string]: AssetQuantity; | ||
export interface BlockAlonzo { | ||
body?: { | ||
id: Hash16; | ||
body: { | ||
inputs: TxIn[]; | ||
collaterals: TxIn[]; | ||
outputs: TxOut[]; | ||
certificates: Certificate[]; | ||
withdrawals: Withdrawals; | ||
fee: Lovelace; | ||
validityInterval: ValidityInterval; | ||
update: UpdateAlonzo; | ||
mint: Value; | ||
network: Network | Null; | ||
requiredExtraData: Hash16 | Null; | ||
requiredExtraSignatures: Hash16[]; | ||
}; | ||
witness: { | ||
signatures: { | ||
[k: string]: Signature; | ||
}; | ||
scripts: { | ||
[k: string]: Script; | ||
}; | ||
bootstrap: BootstrapWitness[]; | ||
datums: { | ||
[k: string]: Hash64; | ||
}; | ||
redeemers: { | ||
[k: string]: Redeemer; | ||
}; | ||
}; | ||
metadata: AuxiliaryData | Null; | ||
}[]; | ||
headerHash?: Hash16; | ||
header?: { | ||
blockHeight: BlockNo; | ||
slot: Slot; | ||
prevHash: Hash16; | ||
issuerVk: Hash16; | ||
issuerVrf: Hash64; | ||
nonce?: NonceProof; | ||
leaderValue: LeaderValue; | ||
blockSize: BlockSize; | ||
blockHash: Hash16; | ||
opCert: OpCert; | ||
protocolVersion: ProtocolVersion; | ||
signature: Hash64; | ||
}; | ||
} | ||
export interface Null25 { | ||
export interface UpdateProposalAlonzo { | ||
epoch: Epoch; | ||
proposal: { | ||
[k: string]: ProtocolParametersAlonzo; | ||
}; | ||
[k: string]: unknown; | ||
} | ||
export interface ProtocolParametersAlonzo { | ||
minFeeCoefficient?: NullableInteger; | ||
minFeeConstant?: NullableInteger; | ||
maxBlockBodySize?: NullableInteger; | ||
maxBlockHeaderSize?: NullableInteger; | ||
maxTxSize?: NullableInteger; | ||
stakeKeyDeposit?: NullableInteger; | ||
poolDeposit?: NullableInteger; | ||
poolRetirementEpochBound?: NullableInteger; | ||
desiredNumberOfPools?: NullableInteger; | ||
poolInfluence?: NullableRatio; | ||
monetaryExpansion?: NullableRatio; | ||
treasuryExpansion?: NullableRatio; | ||
decentralizationParameter?: NullableRatio; | ||
minPoolCost?: NullableInteger; | ||
lovelacePerUtxoWord?: NullableInteger; | ||
maxValueSize?: NullableInteger; | ||
collateralPercentage?: NullableInteger; | ||
maxCollateralInputs?: NullableInteger; | ||
extraEntropy?: Nonce | Null; | ||
protocolVersion?: ProtocolVersion | Null; | ||
costModels?: CostModels | Null; | ||
prices?: Prices | Null; | ||
maxExecutionUnitsPerTransaction?: ExUnits | Null; | ||
maxExecutionUnitsPerBlock?: ExUnits | Null; | ||
} | ||
export interface CostModels { | ||
[k: string]: CostModel; | ||
} | ||
export interface CostModel { | ||
[k: string]: number; | ||
} | ||
export interface Prices { | ||
memory: Lovelace; | ||
steps: Lovelace; | ||
} | ||
export interface ExUnits { | ||
memory: number; | ||
steps: number; | ||
} | ||
export interface Redeemer { | ||
redeemer: Hash64; | ||
executionUnits: ExUnits; | ||
} | ||
export interface Tip1 { | ||
@@ -848,3 +952,3 @@ slot: Slot; | ||
} | ||
export interface FeeTooSmall { | ||
export interface FeeTooSmall_ { | ||
feeTooSmall: { | ||
@@ -856,3 +960,3 @@ tx: Tx; | ||
} | ||
export interface TxTooLarge { | ||
export interface TxTooLarge_ { | ||
txTooLarge: { | ||
@@ -863,3 +967,3 @@ maximumSize: number; | ||
} | ||
export interface MissingInput1 { | ||
export interface MissingInput_ { | ||
missingInput: { | ||
@@ -870,3 +974,3 @@ index: number; | ||
} | ||
export interface NetworkMismatch { | ||
export interface NetworkMismatch_ { | ||
networkMismatch: { | ||
@@ -880,3 +984,3 @@ foundInAddress: NetworkMagic; | ||
} | ||
export interface WrongSignature { | ||
export interface WrongSignature_ { | ||
wrongSignature: { | ||
@@ -887,5 +991,5 @@ protocolMagic: ProtocolMagicId; | ||
} | ||
export interface LovelaceError { | ||
export interface LovelaceError_ { | ||
lovelaceError: { | ||
error: LovelaceError1; | ||
error: LovelaceError; | ||
label: string; | ||
@@ -906,3 +1010,3 @@ }; | ||
} | ||
export interface WrongKey { | ||
export interface WrongKey_ { | ||
wrongKey: { | ||
@@ -955,3 +1059,3 @@ address: Address; | ||
} | ||
export interface TxTooLarge1 { | ||
export interface TxTooLarge { | ||
txTooLarge: { | ||
@@ -962,3 +1066,3 @@ maximumSize: number; | ||
} | ||
export interface FeeTooSmall1 { | ||
export interface FeeTooSmall { | ||
feeTooSmall: { | ||
@@ -975,14 +1079,13 @@ requiredFee: Lovelace; | ||
} | ||
export interface NetworkMismatch1 { | ||
export interface NetworkMismatch { | ||
networkMismatch: { | ||
expectedNetwork: Network; | ||
invalidAddresses?: Address[]; | ||
invalidRewardAccounts?: RewardAccount[]; | ||
invalidEntities: InvalidEntity[]; | ||
}; | ||
} | ||
export interface OutputTooSmall { | ||
outputTooSmall: (TxOut | TxOutMary)[]; | ||
outputTooSmall: TxOut[]; | ||
} | ||
export interface TooManyAssetsInOutput { | ||
tooManyAssetsInOutput: (TxOut | TxOutMary)[]; | ||
tooManyAssetsInOutput: TxOut[]; | ||
} | ||
@@ -1065,2 +1168,64 @@ export interface AddressAttributesTooLarge { | ||
} | ||
export interface UnredeemableScripts { | ||
unredeemableScripts: { | ||
[k: string]: ScriptPurpose; | ||
}[]; | ||
} | ||
export interface Spend { | ||
spend: TxIn; | ||
} | ||
export interface Mint { | ||
mint: Hash16; | ||
} | ||
export interface Certificate1 { | ||
certificate: Certificate; | ||
} | ||
export interface Withdrawal { | ||
withdrawal: RewardAccount; | ||
} | ||
export interface DatumsMismatch { | ||
datumsMismatch: { | ||
provided: Hash16[]; | ||
inferredFromInputs: Hash16[]; | ||
}; | ||
} | ||
export interface ExtraDataMismatch { | ||
extraDataMismatch: { | ||
provided: Hash16 | Null; | ||
inferredFromParameters: Hash16 | Null; | ||
}; | ||
} | ||
export interface MissingRequiredSignatures { | ||
missingRequiredSignatures: Hash16[]; | ||
} | ||
export interface CollateralTooSmall { | ||
collateralTooSmall: { | ||
requiredCollateral: Lovelace; | ||
actualCollateral: Lovelace; | ||
}; | ||
} | ||
export interface CollateralIsScript { | ||
collateralIsScript: Utxo; | ||
} | ||
export interface CollateralHasNonAdaAssets { | ||
collateralHasNonAdaAssets: Value; | ||
} | ||
export interface TooManyCollateralInputs { | ||
tooManyCollateralInputs: { | ||
maximumCollateralInputs: number; | ||
actualCollateralInputs: number; | ||
}; | ||
} | ||
export interface ExecutionUnitsTooLarge { | ||
executionUnitsTooLarge: { | ||
maximumExecutionUnits: ExUnits; | ||
actualExecutionUnits: ExUnits; | ||
}; | ||
} | ||
export interface OutsideForecast { | ||
outsideForecast: Slot; | ||
} | ||
export interface CollectErrors { | ||
collectErrors: unknown[]; | ||
} | ||
export interface AcquireSuccess { | ||
@@ -1073,12 +1238,12 @@ AcquireSuccess: { | ||
AcquireFailure: { | ||
failure: AcquireFailure1; | ||
failure: AcquireFailureDetails; | ||
}; | ||
} | ||
export interface NonMyopicMemberRewards { | ||
export interface GetNonMyopicMemberRewards { | ||
nonMyopicMemberRewards: Lovelaces | Credentials; | ||
} | ||
export interface DelegationsAndRewards { | ||
export interface GetDelegationsAndRewards { | ||
delegationsAndRewards: Hash16[]; | ||
} | ||
export interface UtxoFiltered { | ||
export interface GetUtxoFiltered { | ||
utxo: Address[]; | ||
@@ -1091,3 +1256,3 @@ } | ||
} | ||
export interface NonMyopicMemberRewards1 { | ||
export interface NonMyopicMemberRewards { | ||
[k: string]: { | ||
@@ -1097,6 +1262,6 @@ [k: string]: number; | ||
} | ||
export interface DelegationsAndRewards1 { | ||
[k: string]: DelegationsAndRewards2; | ||
export interface DelegationsAndRewardsByAccounts { | ||
[k: string]: DelegationsAndRewards; | ||
} | ||
export interface DelegationsAndRewards2 { | ||
export interface DelegationsAndRewards { | ||
delegate?: PoolId; | ||
@@ -1108,2 +1273,5 @@ rewards?: Lovelace; | ||
} | ||
export interface ProtocolParametersAlonzo1 { | ||
[k: string]: ProtocolParametersAlonzo; | ||
} | ||
export interface PoolDistribution { | ||
@@ -1110,0 +1278,0 @@ [k: string]: { |
{ | ||
"name": "@cardano-ogmios/schema", | ||
"version": "3.2.0", | ||
"version": "4.0.0-beta.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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
173809
1239
3