@cardano-ogmios/schema
Advanced tools
Comparing version 5.6.0 to 6.0.0
2885
dist/index.d.ts
@@ -1,642 +0,293 @@ | ||
export declare type Block = Babbage | Alonzo | Mary | Allegra | Shelley | Byron; | ||
export declare type DigestBlake2BBlockBody = string; | ||
export declare type TxId = string; | ||
export declare type Address = string; | ||
export declare type Lovelace = bigint; | ||
export declare type AssetQuantity = bigint; | ||
export declare type DigestBlake2BDatum = 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 Ratio = string; | ||
export declare type DigestBlake2BVrfVerificationKey = string; | ||
export declare type DigestBlake2BPoolMetadata = string; | ||
export declare type Relay = ByAddress | ByName; | ||
export declare type RewardAccount = string; | ||
export declare type Epoch = number; | ||
export declare type LovelaceDelta = number; | ||
export declare type RewardPot = "reserves" | "treasury"; | ||
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 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 ChainCode = string; | ||
export declare type AddressAttributes = string; | ||
export declare type VerificationKey = 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 | "genesis"; | ||
export declare type BlockNo = number; | ||
export declare type IssuerVrfVerificationKey = 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; | ||
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; | ||
export declare type Origin = "origin"; | ||
export declare type PointOrOrigin = Point | Origin; | ||
export declare type Era = "Byron" | "Shelley" | "Allegra" | "Mary" | "Alonzo" | "Babbage"; | ||
export declare type DigestBlake2BScript = string; | ||
export declare type InvalidEntity = { | ||
type: "address"; | ||
entity: Address; | ||
} | { | ||
type: "poolRegistration"; | ||
entity: PoolId; | ||
} | { | ||
type: "rewardAccount"; | ||
entity: RewardAccount; | ||
}; | ||
export declare type UInt8 = number; | ||
export declare type VotingPeriod = "voteForThisEpoch" | "voteForNextEpoch"; | ||
export declare type ScriptPurpose = Spend | Mint | Certificate1 | Withdrawal; | ||
export declare type Utxo = [TxIn, TxOut][]; | ||
export declare type Language = "plutus:v1" | "plutus:v2"; | ||
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 | MalformedReferenceScripts | MalformedScriptWitnesses)[]; | ||
export declare type RedeemerPointer = string; | ||
export declare type ScriptFailure = (ExtraRedeemers | MissingRequiredDatums | MissingRequiredScripts | ValidatorFailed | UnknownInputReferencedByRedeemer | NonScriptInputReferencedByRedeemer | IllFormedExecutionBudget | NoCostModelForLanguage)[]; | ||
export declare type AcquireFailureDetails = "pointTooOld" | "pointNotOnChain"; | ||
export declare type GetEraStart = "eraStart"; | ||
export declare type GetEraSummaries = "eraSummaries"; | ||
export declare type GetLedgerTip = "ledgerTip"; | ||
export declare type GetCurrentEpoch = "currentEpoch"; | ||
export declare type StakeCredential = Base16 | Bech32 | StakeAddress; | ||
export declare type Base16 = string; | ||
export declare type Bech32 = string; | ||
export declare type StakeAddress = string; | ||
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 GetRewardsProvenanceDeprecated = "rewardsProvenance"; | ||
export declare type GetRewardsProvenance = "rewardsProvenance'"; | ||
export declare type GetPoolsRanking = "poolsRanking"; | ||
export declare type GetPoolIds = "poolIds"; | ||
export declare type GetChainTip = "chainTip"; | ||
export declare type GetBlockHeight = "blockHeight"; | ||
export declare type GetSystemStart = "systemStart"; | ||
export declare type RelativeTime = number; | ||
export declare type QueryUnavailableInCurrentEra = "QueryUnavailableInCurrentEra"; | ||
export declare type SlotLength = number; | ||
export declare type SafeZone = number; | ||
export declare type UtcTime = string; | ||
export declare type NetworkMagic = number; | ||
export declare type BlockNoOrOrigin = BlockNo | Origin; | ||
export interface Ogmios { | ||
RequestNext: { | ||
type: "jsonwsp/request"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "RequestNext"; | ||
args?: {}; | ||
mirror?: { | ||
[k: string]: unknown; | ||
}; | ||
export type PointOrOrigin = Point | Origin; | ||
export type Slot = number; | ||
export type DigestBlake2B256 = string; | ||
export type Origin = "origin"; | ||
export type TipOrOrigin = Tip | Origin; | ||
export type BlockHeight = number; | ||
export type Block = BlockEBB | BlockBFT | BlockPraos; | ||
export type Int64 = number; | ||
export type TransactionId = string; | ||
export type UInt32 = number; | ||
export type Address = string; | ||
export type AssetQuantity = bigint; | ||
export type Datum = string; | ||
export type Script = Native | Plutus; | ||
export type ScriptNative = ClauseSignature | ClauseAny | ClauseAll | ClauseSome | ClauseBefore | ClauseAfter; | ||
export type DigestBlake2B224 = string; | ||
export type Certificate = StakeDelegation | StakeCredentialRegistration | StakeCredentialDeregistration | StakePoolRegistration | StakePoolRetirement | GenesisDelegation; | ||
export type StakePoolId = string; | ||
export type DelegateRepresentative = DelegateRepresentativeRegistered | DelegateRepresentativeNoConfidence | DelegateRepresentativeAbstain; | ||
export type DelegateRepresentativeNoConfidence = "noConfidence"; | ||
export type DelegateRepresentativeAbstain = "abstain"; | ||
export type Ratio = string; | ||
export type RewardAccount = string; | ||
export type DigestAny = string; | ||
export type Relay = RelayByAddress | RelayByName; | ||
export type Epoch = number; | ||
export type Network = "mainnet" | "testnet"; | ||
export type UInt64 = number; | ||
export type Nonce = Neutral | DigestBlake2B256; | ||
export type Neutral = "neutral"; | ||
export type CostModel = Int64[]; | ||
export type Metadatum = Integer | String | ArrayMetadatum | ObjectMetadatum; | ||
export type Integer = bigint; | ||
export type String = string; | ||
export type ArrayMetadatum = Metadatum[]; | ||
export type VerificationKey = string; | ||
export type Signature = string; | ||
export type ChainCode = string; | ||
export type AddressAttributes = string; | ||
export type RedeemerData = string; | ||
export type BootstrapProtocolId = number; | ||
export type ExtendedVerificationKey = string; | ||
export type GenesisHash = "genesis"; | ||
export type VrfProof = string; | ||
export type VrfOutput = string; | ||
export type KesVerificationKey = string; | ||
export type SubmitTransactionFailure = SubmitTransactionFailureEraMismatch | SubmitTransactionFailureInvalidSignatories | SubmitTransactionFailureMissingSignatories | SubmitTransactionFailureMissingScripts | SubmitTransactionFailureFailingNativeScript | SubmitTransactionFailureExtraneousScripts | SubmitTransactionFailureMissingMetadataHash | SubmitTransactionFailureMissingMetadata | SubmitTransactionFailureMetadataHashMismatch | SubmitTransactionFailureInvalidMetadata | SubmitTransactionFailureMissingRedeemers | SubmitTransactionFailureExtraneousRedeemers | SubmitTransactionFailureMissingDatums | SubmitTransactionFailureExtraneousDatums | SubmitTransactionFailureScriptIntegrityHashMismatch | SubmitTransactionFailureOrphanScriptInputs | SubmitTransactionFailureMissingCostModels | SubmitTransactionFailureMalformedScripts | SubmitTransactionFailureUnknownOutputReferences | SubmitTransactionFailureOutsideOfValidityInterval | SubmitTransactionFailureTransactionTooLarge | SubmitTransactionFailureValueTooLarge | SubmitTransactionFailureEmptyInputSet | SubmitTransactionFailureTransactionFeeTooSmall | SubmitTransactionFailureValueNotConserved | SubmitTransactionFailureNetworkMismatch | SubmitTransactionFailureInsufficientlyFundedOutputs | SubmitTransactionFailureBootstrapAttributesTooLarge | SubmitTransactionFailureMintingOrBurningAda | SubmitTransactionFailureInsufficientCollateral | SubmitTransactionFailureCollateralLockedByScript | SubmitTransactionFailureUnforeseeableSlot | SubmitTransactionFailureTooManyCollateralInputs | SubmitTransactionFailureMissingCollateralInputs | SubmitTransactionFailureNonAdaCollateral | SubmitTransactionFailureExecutionUnitsTooLarge | SubmitTransactionFailureTotalCollateralMismatch | SubmitTransactionFailureSpendsMismatch | SubmitTransactionFailureUnauthorizedVote | SubmitTransactionFailureUnknownGovernanceProposal | SubmitTransactionFailureInvalidProtocolParametersUpdate | SubmitTransactionFailureUnknownStakePool | SubmitTransactionFailureIncompleteWithdrawals | SubmitTransactionFailureRetirementTooLate | SubmitTransactionFailureStakePoolCostTooLow | SubmitTransactionFailureMetadataHashTooLarge | SubmitTransactionFailureCredentialAlreadyRegistered | SubmitTransactionFailureUnknownCredential | SubmitTransactionFailureNonEmptyRewardAccount | SubmitTransactionFailureInvalidGenesisDelegation | SubmitTransactionFailureInvalidMIRTransfer | SubmitTransactionFailureUnrecognizedCertificateType | SubmitTransactionFailureInternalLedgerTypeConversionError; | ||
export type Era = "byron" | "shelley" | "allegra" | "mary" | "alonzo" | "babbage" | "conway"; | ||
export type ScriptPurpose = ScriptPurposeSpend | ScriptPurposeMint | ScriptPurposePublish | ScriptPurposeWithdraw; | ||
export type PolicyId = string; | ||
export type RedeemerPointer = string; | ||
export type Language = "plutus:v1" | "plutus:v2" | "plutus:v3"; | ||
export type VoterRole = "constitutionalCommittee" | "delegateRepresentative" | "stakePoolOperator"; | ||
export type Utxo = { | ||
transaction: { | ||
id: TransactionId; | ||
}; | ||
RequestNextResponse: { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "RequestNext"; | ||
result: RollForward | RollBackward; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
index: UInt32; | ||
address: Address; | ||
value: Value; | ||
datumHash?: DigestBlake2B256; | ||
datum?: Datum; | ||
script?: Script; | ||
}[]; | ||
export type EvaluateTransactionFailure = EvaluateTransactionFailureIncompatibleEra | EvaluateTransactionFailureUnsupportedEra | EvaluateTransactionFailureOverlappingAdditionalUtxo | EvaluateTransactionFailureNodeTipTooOld | EvaluateTransactionFailureCannotCreateEvaluationContext | EvaluateTransactionFailureScriptExecutionFailure; | ||
export type ScriptExecutionFailure = ScriptExecutionFailureMissingScript | ScriptExecutionFailureValidationFailure | ScriptExecutionFailureUnsuitableOutputReference | SubmitTransactionFailureExtraneousRedeemers | SubmitTransactionFailureMissingDatums | SubmitTransactionFailureUnknownOutputReferences | SubmitTransactionFailureMissingCostModels | SubmitTransactionFailureInternalLedgerTypeConversionError; | ||
export type RelativeTime = number; | ||
export type SafeZone = number; | ||
export type AnyStakeCredential = Base16 | Bech32 | StakeAddress; | ||
export type Base16 = string; | ||
export type Bech32 = string; | ||
export type StakeAddress = string; | ||
export type EraWithGenesis = "byron" | "shelley" | "alonzo" | "conway"; | ||
export type UtcTime = string; | ||
export type NetworkMagic = number; | ||
export type InitialDelegates = { | ||
issuer: { | ||
id: DigestBlake2B224; | ||
}; | ||
FindIntersect: { | ||
type: "jsonwsp/request"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "FindIntersect"; | ||
args?: { | ||
points?: PointOrOrigin[]; | ||
}; | ||
mirror?: { | ||
[k: string]: unknown; | ||
}; | ||
delegate: GenesisDelegate; | ||
}[]; | ||
export interface Ogmios { | ||
FindIntersection: FindIntersection; | ||
FindIntersectionResponse: IntersectionFound | IntersectionNotFound | IntersectionInterleaved; | ||
NextBlock: NextBlock; | ||
NextBlockResponse: NextBlockResponse; | ||
SubmitTransaction: SubmitTransaction; | ||
SubmitTransactionResponse: SubmitTransactionSuccess | SubmitTransactionError | SubmitTransactionDeserialisationError; | ||
EvaluateTransaction: EvaluateTransaction; | ||
EvaluateTransactionResponse: EvaluateTransactionSuccess | EvaluateTransactionError | EvaluateTransactionDeserialisationError; | ||
AcquireLedgerState: AcquireLedgerState; | ||
AcquireLedgerStateFailure?: AcquireLedgerStateFailure; | ||
AcquireLedgerStateResponse: AcquireLedgerStateSuccess | AcquireLedgerStateFailure; | ||
ReleaseLedgerState: ReleaseLedgerState; | ||
ReleaseLedgerStateResponse: ReleaseLedgerStateResponse; | ||
QueryLedgerStateEraMismatch?: QueryLedgerStateEraMismatch; | ||
QueryLedgerStateUnavailableInCurrentEra?: QueryLedgerStateUnavailableInCurrentEra; | ||
QueryLedgerStateAcquiredExpire?: QueryLedgerStateAcquiredExpired; | ||
QueryLedgerStateEpoch: QueryLedgerStateEpoch; | ||
QueryLedgerStateEpochResponse: QueryLedgerStateEpochResponse | QueryLedgerStateEraMismatch | QueryLedgerStateUnavailableInCurrentEra | QueryLedgerStateAcquiredExpired; | ||
QueryLedgerStateEraStart: QueryLedgerStateEraStart; | ||
QueryLedgerStateEraStartResponse: QueryLedgerStateEraStartResponse | QueryLedgerStateEraMismatch | QueryLedgerStateUnavailableInCurrentEra | QueryLedgerStateAcquiredExpired; | ||
QueryLedgerStateEraSummaries: QueryLedgerStateEraSummaries; | ||
QueryLedgerStateEraSummariesResponse: QueryLedgerStateEraSummariesResponse | QueryLedgerStateEraMismatch | QueryLedgerStateUnavailableInCurrentEra | QueryLedgerStateAcquiredExpired; | ||
QueryLedgerStateLiveStakeDistribution: QueryLedgerStateLiveStakeDistribution; | ||
QueryLedgerStateLiveStakeDistributionResponse: QueryLedgerStateLiveStakeDistributionResponse | QueryLedgerStateEraMismatch | QueryLedgerStateUnavailableInCurrentEra | QueryLedgerStateAcquiredExpired; | ||
QueryLedgerStateProjectedRewards: QueryLedgerStateProjectedRewards; | ||
QueryLedgerStateProjectedRewardsResponse: QueryLedgerStateProjectedRewardsResponse | QueryLedgerStateEraMismatch | QueryLedgerStateUnavailableInCurrentEra | QueryLedgerStateAcquiredExpired; | ||
QueryLedgerStateProposedProtocolParameters: QueryLedgerStateProposedProtocolParameters; | ||
QueryLedgerStateProposedProtocolParametersResponse: QueryLedgerStateProposedProtocolParametersResponse | QueryLedgerStateEraMismatch | QueryLedgerStateUnavailableInCurrentEra | QueryLedgerStateAcquiredExpired; | ||
QueryLedgerStateProtocolParameters: QueryLedgerStateProtocolParameters; | ||
QueryLedgerStateProtocolParametersResponse: QueryLedgerStateProtocolParametersResponse | QueryLedgerStateEraMismatch | QueryLedgerStateUnavailableInCurrentEra | QueryLedgerStateAcquiredExpired; | ||
QueryLedgerStateRewardAccountSummaries: QueryLedgerStateRewardAccountSummaries; | ||
QueryLedgerStateRewardAccountSummariesResponse: QueryLedgerStateRewardAccountSummariesResponse | QueryLedgerStateEraMismatch | QueryLedgerStateUnavailableInCurrentEra | QueryLedgerStateAcquiredExpired; | ||
QueryLedgerStateRewardsProvenance: QueryLedgerStateRewardsProvenance; | ||
QueryLedgerStateRewardsProvenanceResponse: QueryLedgerStateRewardsProvenanceResponse | QueryLedgerStateEraMismatch | QueryLedgerStateUnavailableInCurrentEra | QueryLedgerStateAcquiredExpired; | ||
QueryLedgerStateStakePools: QueryLedgerStateStakePools; | ||
QueryLedgerStateStakePoolsResponse: QueryLedgerStateStakePoolsResponse | QueryLedgerStateEraMismatch | QueryLedgerStateUnavailableInCurrentEra | QueryLedgerStateAcquiredExpired; | ||
QueryLedgerStateTip: QueryLedgerStateTip; | ||
QueryLedgerStateTipResponse: QueryLedgerStateTipResponse | QueryLedgerStateEraMismatch | QueryLedgerStateUnavailableInCurrentEra | QueryLedgerStateAcquiredExpired; | ||
QueryLedgerStateUtxo: QueryLedgerStateUtxo; | ||
QueryLedgerStateUtxoResponse: QueryLedgerStateUtxoResponse | QueryLedgerStateEraMismatch | QueryLedgerStateUnavailableInCurrentEra | QueryLedgerStateAcquiredExpired; | ||
QueryNetworkBlockHeight: QueryNetworkBlockHeight; | ||
QueryNetworkBlockHeightResponse: QueryNetworkBlockHeightResponse; | ||
QueryNetworkGenesisConfiguration: QueryNetworkGenesisConfiguration; | ||
QueryNetworkGenesisConfigurationResponse: QueryNetworkGenesisConfigurationResponse; | ||
QueryNetworkStartTime: QueryNetworkStartTime; | ||
QueryNetworkStartTimeResponse: QueryNetworkStartTimeResponse; | ||
QueryNetworkTip: QueryNetworkTip; | ||
QueryNetworkTipResponse: QueryNetworkTipResponse; | ||
AcquireMempool: AcquireMempool; | ||
AcquireMempoolResponse: AcquireMempoolResponse; | ||
NextTransaction: NextTransaction; | ||
MustAcquireMempoolFirst?: MustAcquireMempoolFirst; | ||
NextTransactionResponse: NextTransactionResponse | MustAcquireMempoolFirst; | ||
HasTransaction: HasTransaction; | ||
HasTransactionResponse: HasTransactionResponse | MustAcquireMempoolFirst; | ||
SizeOfMempool: SizeOfMempool; | ||
SizeOfMempoolResponse?: SizeOfMempoolResponse | MustAcquireMempoolFirst; | ||
ReleaseMempool: ReleaseMempool; | ||
ReleaseMempoolResponse: ReleaseMempoolResponse | MustAcquireMempoolFirst; | ||
RpcError: RpcError; | ||
} | ||
export interface FindIntersection { | ||
jsonrpc: "2.0"; | ||
method: "findIntersection"; | ||
params: { | ||
points?: PointOrOrigin[]; | ||
}; | ||
FindIntersectResponse: { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "FindIntersect"; | ||
result: IntersectionFound | IntersectionNotFound; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface Point { | ||
slot: Slot; | ||
id: DigestBlake2B256; | ||
} | ||
export interface IntersectionFound { | ||
jsonrpc: "2.0"; | ||
method: "findIntersection"; | ||
result: { | ||
intersection: PointOrOrigin; | ||
tip: TipOrOrigin; | ||
}; | ||
SubmitTx: { | ||
type: "jsonwsp/request"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "SubmitTx"; | ||
args?: { | ||
submit: string; | ||
id?: unknown; | ||
} | ||
export interface Tip { | ||
slot: Slot; | ||
id: DigestBlake2B256; | ||
height: BlockHeight; | ||
} | ||
export interface IntersectionNotFound { | ||
jsonrpc: "2.0"; | ||
method: "findIntersection"; | ||
error: { | ||
code: 1000; | ||
message: string; | ||
data: { | ||
tip: TipOrOrigin; | ||
}; | ||
mirror?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
SubmitTxResponse: { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "SubmitTx"; | ||
result: SubmitSuccess | SubmitFail; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface IntersectionInterleaved { | ||
jsonrpc: "2.0"; | ||
method: "findIntersection"; | ||
error: { | ||
code: 1001; | ||
message: string; | ||
}; | ||
EvaluateTx: { | ||
type: "jsonwsp/request"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "EvaluateTx"; | ||
args?: { | ||
evaluate: string; | ||
additionalUtxoSet?: Utxo; | ||
}; | ||
mirror?: { | ||
[k: string]: unknown; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface NextBlock { | ||
jsonrpc: "2.0"; | ||
method: "nextBlock"; | ||
id?: unknown; | ||
} | ||
export interface NextBlockResponse { | ||
jsonrpc: "2.0"; | ||
method: "nextBlock"; | ||
result: RollForward | RollBackward; | ||
id?: unknown; | ||
} | ||
export interface RollForward { | ||
direction: "forward"; | ||
tip: Tip; | ||
block: Block; | ||
} | ||
export interface BlockEBB { | ||
type: "ebb"; | ||
era: "byron"; | ||
id: DigestBlake2B256; | ||
ancestor: DigestBlake2B256; | ||
height: BlockHeight; | ||
} | ||
export interface BlockBFT { | ||
type: "bft"; | ||
era: "byron"; | ||
id: DigestBlake2B256; | ||
ancestor: DigestBlake2B256; | ||
height: BlockHeight; | ||
slot: Slot; | ||
size: { | ||
bytes: Int64; | ||
}; | ||
EvaluateTxResponse: { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "EvaluateTx"; | ||
result: EvaluationResult | EvaluationFailure; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
transactions?: Transaction[]; | ||
operationalCertificates?: BootstrapOperationalCertificate[]; | ||
protocol: { | ||
id: BootstrapProtocolId; | ||
version: ProtocolVersion; | ||
software: SoftwareVersion; | ||
update?: BootstrapProtocolUpdate; | ||
}; | ||
Acquire: { | ||
type: "jsonwsp/request"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Acquire"; | ||
args?: { | ||
point: PointOrOrigin; | ||
}; | ||
mirror?: { | ||
[k: string]: unknown; | ||
}; | ||
issuer: { | ||
verificationKey: ExtendedVerificationKey; | ||
}; | ||
AcquireResponse: { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Acquire"; | ||
result: AcquireSuccess | AcquireFailure; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
delegate: { | ||
verificationKey: ExtendedVerificationKey; | ||
}; | ||
Release: { | ||
type: "jsonwsp/request"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Release"; | ||
args?: {}; | ||
mirror?: { | ||
[k: string]: unknown; | ||
}; | ||
} | ||
export interface Transaction { | ||
id: DigestBlake2B256; | ||
spends: "inputs" | "collaterals"; | ||
inputs: TransactionOutputReference[]; | ||
references?: TransactionOutputReference[]; | ||
collaterals?: TransactionOutputReference[]; | ||
totalCollateral?: Lovelace; | ||
collateralReturn?: TransactionOutput; | ||
outputs: TransactionOutput[]; | ||
certificates?: Certificate[]; | ||
withdrawals?: Withdrawals; | ||
fee?: Lovelace; | ||
validityInterval?: ValidityInterval; | ||
mint?: Assets; | ||
network?: Network; | ||
scriptIntegrityHash?: DigestBlake2B256; | ||
requiredExtraSignatories?: DigestBlake2B224[]; | ||
requiredExtraScripts?: DigestBlake2B224[]; | ||
proposals?: GovernanceProposal[]; | ||
votes?: GovernanceVote[]; | ||
metadata?: Metadata; | ||
signatories: Signatory[]; | ||
scripts?: { | ||
[k: string]: Script; | ||
}; | ||
ReleaseResponse: { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Release"; | ||
result: "Released"; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
datums?: { | ||
[k: string]: Datum; | ||
}; | ||
AwaitAcquire: { | ||
type: "jsonwsp/request"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "AwaitAcquire"; | ||
args?: {}; | ||
mirror?: { | ||
[k: string]: unknown; | ||
}; | ||
redeemers?: { | ||
[k: string]: Redeemer; | ||
}; | ||
AwaitAcquireResponse: { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "AwaitAcquire"; | ||
result: AwaitAcquired; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
NextTx: { | ||
type: "jsonwsp/request"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "NextTx"; | ||
args?: { | ||
fields?: "all"; | ||
}; | ||
mirror?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
NextTxResponse: { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "NextTx"; | ||
result: TxId | TxAlonzo | TxBabbage | Null; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
HasTx: { | ||
type: "jsonwsp/request"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "HasTx"; | ||
args?: { | ||
id: TxId; | ||
}; | ||
mirror?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
HasTxResponse: { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "HasTx"; | ||
result: boolean; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
SizeAndCapacity: { | ||
type: "jsonwsp/request"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "SizeAndCapacity"; | ||
args?: {}; | ||
mirror?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
SizeAndCapacityResponse: { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "SizeAndCapacity"; | ||
result: MempoolSizeAndCapacity; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
ReleaseMempool?: { | ||
type: "jsonwsp/request"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "ReleaseMempool"; | ||
args?: {}; | ||
mirror?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
ReleaseMempoolResponse?: { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "ReleaseMempool"; | ||
result: "Released"; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
Query: { | ||
type: "jsonwsp/request"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
args?: { | ||
query: GetEraStart | GetEraSummaries | GetLedgerTip | GetCurrentEpoch | GetNonMyopicMemberRewards | GetDelegationsAndRewards | GetCurrentProtocolParameters | GetProposedProtocolParameters | GetStakeDistribution | GetUtxo | GetUtxoByAddress | GetUtxoByTxIn | GetGenesisConfig | GetRewardsProvenanceDeprecated | GetRewardsProvenance | GetPoolsRanking | GetPoolIds | GetPoolParameters | GetChainTip | GetBlockHeight | GetSystemStart; | ||
}; | ||
mirror?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[eraStart]": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: Bound | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[eraSummaries]": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: QueryUnavailableInCurrentEra | EraSummary[]; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[ledgerTip]": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: PointOrOrigin | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[currentEpoch]": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: Epoch | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[nonMyopicMemberRewards]": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: NonMyopicMemberRewards | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[delegationsAndRewards]": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: DelegationsAndRewardsByAccounts | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[currentProtocolParameters]": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: ProtocolParametersShelley | ProtocolParametersAlonzo | ProtocolParametersBabbage | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[proposedProtocolParameters]": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: ProposedProtocolParametersShelley | ProposedProtocolParametersAlonzo | ProposedProtocolParametersBabbage | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[stakeDistribution]": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: PoolDistribution | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[utxo]": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: Utxo | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[genesisConfig]": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: CompactGenesis | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[rewardsProvenance]": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: RewardsProvenance | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[rewardsProvenance']": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: RewardsProvenance1 | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[poolIds]": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: PoolId[] | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[poolParameters]": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: { | ||
[k: string]: PoolParameters; | ||
} | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[poolsRanking]": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: PoolsRanking | EraMismatch | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[blockHeight]": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: BlockNoOrOrigin | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[chainTip]": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: PointOrOrigin | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
"QueryResponse[systemStart]": { | ||
type: "jsonwsp/response"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
methodname: "Query"; | ||
result: UtcTime | QueryUnavailableInCurrentEra; | ||
reflection?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
Fault: { | ||
type: "jsonwsp/fault"; | ||
version: "1.0"; | ||
servicename: "ogmios"; | ||
fault: { | ||
code: "incompatible" | "server" | "client"; | ||
string: string; | ||
}; | ||
}; | ||
[k: string]: unknown; | ||
cbor?: string; | ||
} | ||
export interface RollForward { | ||
RollForward: { | ||
block: Block; | ||
tip: TipOrOrigin; | ||
export interface TransactionOutputReference { | ||
transaction: { | ||
id: TransactionId; | ||
}; | ||
index: UInt32; | ||
} | ||
export interface Babbage { | ||
babbage: BlockBabbage; | ||
export interface Lovelace { | ||
lovelace: bigint; | ||
} | ||
export interface BlockBabbage { | ||
body: TxBabbage[]; | ||
headerHash: DigestBlake2BBlockHeader; | ||
header: { | ||
blockHeight: BlockNo; | ||
slot: Slot; | ||
prevHash: DigestBlake2BBlockHeader; | ||
issuerVk: VerificationKey; | ||
issuerVrf: IssuerVrfVerificationKey; | ||
blockSize: BlockSize; | ||
blockHash: DigestBlake2BBlockBody; | ||
opCert: OpCert; | ||
protocolVersion: ProtocolVersion; | ||
signature: IssuerSignature; | ||
vrfInput: CertifiedVrf; | ||
}; | ||
} | ||
export interface TxBabbage { | ||
id: DigestBlake2BBlockBody; | ||
inputSource: "inputs" | "collaterals"; | ||
body: { | ||
inputs: TxIn[]; | ||
references: TxIn[]; | ||
collaterals: TxIn[]; | ||
collateralReturn: TxOut | Null; | ||
totalCollateral: Lovelace | Null; | ||
outputs: TxOut[]; | ||
certificates: Certificate[]; | ||
withdrawals: Withdrawals; | ||
fee: Lovelace; | ||
validityInterval: ValidityInterval; | ||
update: UpdateBabbage; | ||
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 TxIn { | ||
txId: TxId; | ||
index: number; | ||
} | ||
export interface TxOut { | ||
export interface TransactionOutput { | ||
address: Address; | ||
value: Value; | ||
datumHash?: DigestBlake2BDatum | Null; | ||
datum?: { | ||
[k: string]: unknown; | ||
} | Datum | Null; | ||
script?: Script | Null; | ||
datumHash?: DigestBlake2B256; | ||
datum?: Datum; | ||
script?: Script; | ||
} | ||
export interface Value { | ||
coins: Lovelace; | ||
assets?: { | ||
ada: { | ||
lovelace: bigint; | ||
}; | ||
[k: string]: { | ||
[k: string]: AssetQuantity; | ||
@@ -646,87 +297,103 @@ }; | ||
export interface Native { | ||
native: ScriptNative; | ||
language: "native"; | ||
json: ScriptNative; | ||
cbor?: string; | ||
} | ||
export interface Any { | ||
any: ScriptNative[]; | ||
export interface ClauseSignature { | ||
clause: "signature"; | ||
from: DigestBlake2B224; | ||
} | ||
export interface All { | ||
all: ScriptNative[]; | ||
export interface ClauseAny { | ||
clause: "any"; | ||
from: ScriptNative[]; | ||
} | ||
export interface NOf { | ||
[k: string]: ScriptNative[]; | ||
export interface ClauseAll { | ||
clause: "all"; | ||
from: ScriptNative[]; | ||
} | ||
export interface ExpiresAt { | ||
expiresAt: Slot; | ||
export interface ClauseSome { | ||
clause: "some"; | ||
atLeast: bigint; | ||
from: ScriptNative[]; | ||
} | ||
export interface StartsAt { | ||
startsAt: Slot; | ||
export interface ClauseBefore { | ||
clause: "before"; | ||
slot: Slot; | ||
} | ||
export interface PlutusV1 { | ||
"plutus:v1": ScriptPlutus; | ||
export interface ClauseAfter { | ||
clause: "after"; | ||
slot: Slot; | ||
} | ||
export interface PlutusV2 { | ||
"plutus:v2": ScriptPlutus; | ||
export interface Plutus { | ||
language: "plutus:v1" | "plutus:v2" | "plutus:v3"; | ||
cbor: string; | ||
} | ||
export interface StakeDelegation { | ||
stakeDelegation: { | ||
delegator: DigestBlake2BCredential; | ||
delegatee: PoolId; | ||
type: "stakeDelegation"; | ||
credential: DigestBlake2B224; | ||
stakePool?: { | ||
id: StakePoolId; | ||
}; | ||
delegateRepresentative?: DelegateRepresentative; | ||
} | ||
export interface StakeKeyRegistration { | ||
stakeKeyRegistration: DigestBlake2BCredential; | ||
export interface DelegateRepresentativeRegistered { | ||
id: DigestBlake2B224; | ||
} | ||
export interface StakeKeyDeregistration { | ||
stakeKeyDeregistration: DigestBlake2BCredential; | ||
export interface StakeCredentialRegistration { | ||
type: "stakeCredentialRegistration"; | ||
credential: DigestBlake2B224; | ||
deposit?: Lovelace; | ||
} | ||
export interface PoolRegistration { | ||
poolRegistration: PoolParameters; | ||
export interface StakeCredentialDeregistration { | ||
type: "stakeCredentialDeregistration"; | ||
credential: DigestBlake2B224; | ||
deposit?: Lovelace; | ||
} | ||
export interface PoolParameters { | ||
owners: DigestBlake2BVerificationKey[]; | ||
export interface StakePoolRegistration { | ||
type: "stakePoolRegistration"; | ||
stakePool: StakePool; | ||
} | ||
export interface StakePool { | ||
id: StakePoolId; | ||
vrfVerificationKeyHash: DigestBlake2B256; | ||
owners: DigestBlake2B224[]; | ||
cost: Lovelace; | ||
margin: Ratio; | ||
pledge: Lovelace; | ||
vrf: DigestBlake2BVrfVerificationKey; | ||
metadata: Null | PoolMetadata; | ||
id: PoolId; | ||
rewardAccount: RewardAccount; | ||
metadata?: Anchor; | ||
relays: Relay[]; | ||
rewardAccount: RewardAccount; | ||
} | ||
export interface PoolMetadata { | ||
hash: DigestBlake2BPoolMetadata; | ||
export interface Anchor { | ||
hash: DigestAny; | ||
url: string; | ||
} | ||
export interface ByAddress { | ||
ipv4: string | Null; | ||
ipv6: string | Null; | ||
port: number | Null; | ||
export interface RelayByAddress { | ||
type: "ipAddress"; | ||
ipv4?: string; | ||
ipv6?: string; | ||
port?: number; | ||
} | ||
export interface ByName { | ||
export interface RelayByName { | ||
type: "hostname"; | ||
hostname: string; | ||
port: number | Null; | ||
port?: number; | ||
} | ||
export interface PoolRetirement { | ||
poolRetirement: { | ||
export interface StakePoolRetirement { | ||
type: "stakePoolRetirement"; | ||
stakePool: { | ||
retirementEpoch: Epoch; | ||
poolId: PoolId; | ||
id: StakePoolId; | ||
}; | ||
} | ||
export interface GenesisDelegation { | ||
genesisDelegation: { | ||
delegateKeyHash: DigestBlake2BVerificationKey; | ||
verificationKeyHash: DigestBlake2BVerificationKey; | ||
vrfVerificationKeyHash: DigestBlake2BVrfVerificationKey; | ||
type: "genesisDelegation"; | ||
delegate: { | ||
id: DigestBlake2B224; | ||
}; | ||
} | ||
export interface MoveInstantaneousRewards { | ||
moveInstantaneousRewards: { | ||
rewards?: Rewards; | ||
value?: Lovelace; | ||
pot: RewardPot; | ||
issuer: { | ||
id: DigestBlake2B224; | ||
vrfVerificationKeyHash: DigestBlake2B256; | ||
}; | ||
} | ||
export interface Rewards { | ||
[k: string]: LovelaceDelta; | ||
} | ||
export interface Withdrawals { | ||
@@ -736,943 +403,1167 @@ [k: string]: Lovelace; | ||
export interface ValidityInterval { | ||
invalidBefore: Slot | Null; | ||
invalidHereafter: Slot | Null; | ||
invalidBefore?: Slot; | ||
invalidAfter?: Slot; | ||
} | ||
export interface UpdateProposalBabbage { | ||
epoch: Epoch; | ||
proposal: { | ||
[k: string]: ProtocolParametersBabbage; | ||
export interface Assets { | ||
[k: string]: { | ||
[k: string]: AssetQuantity; | ||
}; | ||
} | ||
export interface ProtocolParametersBabbage { | ||
minFeeCoefficient: NullableUInt64; | ||
minFeeConstant: NullableUInt64; | ||
maxBlockBodySize: NullableUInt64; | ||
maxBlockHeaderSize: NullableUInt64; | ||
maxTxSize: NullableUInt64; | ||
stakeKeyDeposit: NullableUInt64; | ||
poolDeposit: NullableUInt64; | ||
poolRetirementEpochBound: NullableUInt64; | ||
desiredNumberOfPools: NullableUInt64; | ||
poolInfluence: NullableRatio; | ||
monetaryExpansion: NullableRatio; | ||
treasuryExpansion: NullableRatio; | ||
minPoolCost: NullableUInt64; | ||
coinsPerUtxoByte: NullableUInt64; | ||
maxValueSize: NullableUInt64; | ||
collateralPercentage: NullableUInt64; | ||
maxCollateralInputs: NullableUInt64; | ||
protocolVersion: ProtocolVersion | Null; | ||
costModels: CostModels | Null; | ||
prices: Prices | Null; | ||
maxExecutionUnitsPerTransaction: ExUnits | Null; | ||
maxExecutionUnitsPerBlock: ExUnits | Null; | ||
export interface GovernanceProposal { | ||
deposit?: Lovelace; | ||
returnAccount?: DigestBlake2B224; | ||
anchor?: Anchor; | ||
action: GovernanceActionProtocolParametersUpdate | GovernanceActionHardForkInitiation | GovernanceActionTreasuryTransfer | GovernanceActionTreasuryWithdrawals | GovernanceActionConstitutionalCommittee | GovernanceActionConstitution | GovernanceActionNoConfidence; | ||
} | ||
export interface ProtocolVersion { | ||
major: UInt32; | ||
minor: UInt32; | ||
patch?: UInt32; | ||
export interface GovernanceActionProtocolParametersUpdate { | ||
type: "protocolParametersUpdate"; | ||
parameters: ProposedProtocolParameters; | ||
} | ||
export interface ProposedProtocolParameters { | ||
minFeeCoefficient?: UInt64; | ||
minFeeConstant?: Lovelace; | ||
minUtxoDepositCoefficient?: UInt64; | ||
minUtxoDepositConstant?: Lovelace; | ||
maxBlockBodySize?: { | ||
bytes: Int64; | ||
}; | ||
maxBlockHeaderSize?: { | ||
bytes: Int64; | ||
}; | ||
maxTransactionSize?: { | ||
bytes: Int64; | ||
}; | ||
maxValueSize?: { | ||
bytes: Int64; | ||
}; | ||
extraEntropy?: Nonce; | ||
stakeCredentialDeposit?: Lovelace; | ||
stakePoolDeposit?: Lovelace; | ||
stakePoolRetirementEpochBound?: UInt64; | ||
stakePoolPledgeInfluence?: Ratio; | ||
minStakePoolCost?: Lovelace; | ||
desiredNumberOfStakePools?: UInt64; | ||
federatedBlockProductionRatio?: Ratio; | ||
monetaryExpansion?: Ratio; | ||
treasuryExpansion?: Ratio; | ||
collateralPercentage?: UInt64; | ||
maxCollateralInputs?: UInt64; | ||
plutusCostModels?: CostModels; | ||
scriptExecutionPrices?: ScriptExecutionPrices; | ||
maxExecutionUnitsPerTransaction?: ExecutionUnits; | ||
maxExecutionUnitsPerBlock?: ExecutionUnits; | ||
version?: ProtocolVersion; | ||
} | ||
export interface CostModels { | ||
[k: string]: CostModel; | ||
} | ||
export interface CostModel { | ||
[k: string]: Int64; | ||
} | ||
export interface Prices { | ||
export interface ScriptExecutionPrices { | ||
memory: Ratio; | ||
steps: Ratio; | ||
cpu: Ratio; | ||
} | ||
export interface ExUnits { | ||
export interface ExecutionUnits { | ||
memory: UInt64; | ||
steps: UInt64; | ||
cpu: UInt64; | ||
} | ||
export interface BootstrapWitness { | ||
signature: Signature; | ||
chainCode: ChainCode | Null; | ||
addressAttributes: AddressAttributes | Null; | ||
key: VerificationKey; | ||
export interface ProtocolVersion { | ||
major: UInt32; | ||
minor: UInt32; | ||
patch?: UInt32; | ||
} | ||
export interface Redeemer { | ||
redeemer: RedeemerData; | ||
executionUnits: ExUnits; | ||
export interface GovernanceActionHardForkInitiation { | ||
type: "hardForkInitiation"; | ||
version: ProtocolVersion; | ||
} | ||
export interface AuxiliaryData { | ||
hash: DigestBlake2BAuxiliaryDataBody; | ||
body: AuxiliaryDataBody; | ||
export interface GovernanceActionTreasuryTransfer { | ||
type: "treasuryTransfer"; | ||
source: "reserves" | "treasury"; | ||
target: "reserves" | "treasury"; | ||
value: Lovelace; | ||
} | ||
export interface AuxiliaryDataBody { | ||
blob?: Metadata; | ||
scripts?: Script[]; | ||
export interface GovernanceActionTreasuryWithdrawals { | ||
type: "treasuryWithdrawals"; | ||
withdrawals: RewardTransfer; | ||
} | ||
export interface Metadata { | ||
[k: string]: Metadatum; | ||
export interface RewardTransfer { | ||
[k: string]: LovelaceDelta; | ||
} | ||
export interface Int { | ||
int: bigint; | ||
export interface LovelaceDelta { | ||
lovelace: number; | ||
} | ||
export interface String { | ||
string: string; | ||
export interface GovernanceActionConstitutionalCommittee { | ||
type: "constitutionalCommittee"; | ||
members: RewardTransfer; | ||
quorum: Ratio; | ||
} | ||
export interface Bytes { | ||
bytes: string; | ||
export interface GovernanceActionConstitution { | ||
type: "constitution"; | ||
hash: DigestBlake2B256; | ||
} | ||
export interface List { | ||
list: Metadatum[]; | ||
export interface GovernanceActionNoConfidence { | ||
type: "noConfidence"; | ||
} | ||
export interface Map { | ||
map: MetadatumMap[]; | ||
export interface GovernanceVote { | ||
issuer: VoterGenesisDelegate | VoterConstitutionalCommittee | VoterDelegateRepresentative | VoterStakePoolOperator; | ||
anchor?: Anchor; | ||
vote: "yes" | "no" | "abstain"; | ||
proposal?: GovernanceProposalReference; | ||
} | ||
export interface MetadatumMap { | ||
k: Metadatum; | ||
v: Metadatum; | ||
export interface VoterGenesisDelegate { | ||
role: "genesisDelegate"; | ||
id: DigestBlake2B224; | ||
} | ||
export interface OpCert { | ||
count?: UInt64; | ||
sigma?: Signature; | ||
kesPeriod?: UInt64; | ||
hotVk?: KesVerificationKey; | ||
export interface VoterConstitutionalCommittee { | ||
role: "constitutionalCommittee"; | ||
id: DigestBlake2B224; | ||
} | ||
export interface CertifiedVrf { | ||
proof?: VrfProof; | ||
output?: VrfOutput; | ||
export interface VoterDelegateRepresentative { | ||
role: "delegateRepresentative"; | ||
id: DigestBlake2B224; | ||
} | ||
export interface Alonzo { | ||
alonzo: BlockAlonzo; | ||
export interface VoterStakePoolOperator { | ||
role: "stakePoolOperator"; | ||
id?: StakePoolId; | ||
} | ||
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 GovernanceProposalReference { | ||
transaction: { | ||
id: TransactionId; | ||
}; | ||
index: UInt32; | ||
} | ||
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 Metadata { | ||
hash: DigestBlake2B256; | ||
labels: MetadataLabels; | ||
} | ||
export interface UpdateProposalAlonzo { | ||
epoch: Epoch; | ||
proposal: { | ||
[k: string]: ProtocolParametersAlonzo; | ||
export interface MetadataLabels { | ||
[k: string]: { | ||
cbor?: string; | ||
json?: Metadatum; | ||
}; | ||
} | ||
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 ObjectMetadatum { | ||
[k: string]: Metadatum; | ||
} | ||
export interface Mary { | ||
mary: BlockMary; | ||
export interface Signatory { | ||
key: VerificationKey; | ||
signature: Signature; | ||
chainCode?: ChainCode; | ||
addressAttributes?: AddressAttributes; | ||
} | ||
export interface BlockMary { | ||
body: TxMary[]; | ||
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 Redeemer { | ||
redeemer: RedeemerData; | ||
executionUnits: ExecutionUnits; | ||
} | ||
export interface BootstrapOperationalCertificate { | ||
issuer: { | ||
verificationKey: VerificationKey; | ||
}; | ||
delegate: { | ||
verificationKey: VerificationKey; | ||
}; | ||
} | ||
export interface TxMary { | ||
id: DigestBlake2BBlockBody; | ||
body: { | ||
inputs: TxIn[]; | ||
outputs: TxOut[]; | ||
certificates: Certificate[]; | ||
withdrawals: Withdrawals; | ||
fee: Lovelace; | ||
validityInterval: ValidityInterval; | ||
update: UpdateShelley; | ||
mint: Value; | ||
}; | ||
witness: { | ||
signatures: { | ||
[k: string]: Signature; | ||
export interface SoftwareVersion { | ||
appName: string; | ||
number: UInt32; | ||
} | ||
export interface BootstrapProtocolUpdate { | ||
proposal?: { | ||
version: ProtocolVersion; | ||
software: SoftwareVersion; | ||
parameters: BootstrapProtocolParameters; | ||
metadata: { | ||
[k: string]: string; | ||
}; | ||
scripts: { | ||
[k: string]: Script; | ||
}; | ||
bootstrap: BootstrapWitness[]; | ||
}; | ||
metadata: AuxiliaryData | Null; | ||
raw: string; | ||
votes: BootstrapVote[]; | ||
} | ||
export interface UpdateProposalShelley { | ||
epoch: Epoch; | ||
proposal: { | ||
[k: string]: ProtocolParametersShelley; | ||
export interface BootstrapProtocolParameters { | ||
heavyDelegationThreshold?: Ratio; | ||
maxBlockBodySize?: { | ||
bytes: Int64; | ||
}; | ||
maxBlockHeaderSize?: { | ||
bytes: Int64; | ||
}; | ||
maxUpdateProposalSize?: { | ||
bytes: Int64; | ||
}; | ||
maxTransactionSize?: { | ||
bytes: Int64; | ||
}; | ||
multiPartyComputationThreshold?: Ratio; | ||
scriptVersion?: UInt64; | ||
slotDuration?: UInt64; | ||
unlockStakeEpoch?: UInt64; | ||
updateProposalThreshold?: Ratio; | ||
updateProposalTimeToLive?: UInt64; | ||
updateVoteThreshold?: Ratio; | ||
softForkInitThreshold?: Ratio; | ||
softForkMinThreshold?: Ratio; | ||
softForkDecrementThreshold?: Ratio; | ||
minFeeCoefficient?: UInt64; | ||
minFeeConstant?: Lovelace; | ||
} | ||
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 Allegra { | ||
allegra: BlockAllegra; | ||
} | ||
export interface BlockAllegra { | ||
body: TxAllegra[]; | ||
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 BootstrapVote { | ||
voter: { | ||
verificationKey: VerificationKey; | ||
}; | ||
proposal: { | ||
id: DigestBlake2B256; | ||
}; | ||
} | ||
export interface TxAllegra { | ||
id: DigestBlake2BBlockBody; | ||
body: { | ||
inputs: TxIn[]; | ||
outputs: TxOut[]; | ||
certificates: Certificate[]; | ||
withdrawals: Withdrawals; | ||
fee: Lovelace; | ||
validityInterval: ValidityInterval; | ||
update: UpdateShelley; | ||
export interface BlockPraos { | ||
type: "praos"; | ||
era: "shelley" | "allegra" | "mary" | "alonzo" | "babbage"; | ||
id: DigestBlake2B256; | ||
ancestor: DigestBlake2B256 | GenesisHash; | ||
nonce?: CertifiedVrf; | ||
height: BlockHeight; | ||
size: { | ||
bytes: Int64; | ||
}; | ||
witness: { | ||
signatures: { | ||
[k: string]: Signature; | ||
}; | ||
scripts: { | ||
[k: string]: Script; | ||
}; | ||
bootstrap: BootstrapWitness[]; | ||
slot: Slot; | ||
transactions?: Transaction[]; | ||
protocol: { | ||
version: ProtocolVersion; | ||
}; | ||
metadata: AuxiliaryData | Null; | ||
raw: string; | ||
} | ||
export interface Shelley { | ||
shelley: BlockShelley; | ||
} | ||
export interface BlockShelley { | ||
body: TxShelley[]; | ||
headerHash: DigestBlake2BBlockHeader; | ||
header: { | ||
blockHeight: BlockNo; | ||
slot: Slot; | ||
prevHash: DigestBlake2BBlockHeader; | ||
issuerVk: VerificationKey; | ||
issuerVrf: IssuerVrfVerificationKey; | ||
nonce?: CertifiedVrf; | ||
issuer: { | ||
verificationKey: VerificationKey; | ||
vrfVerificationKey: VerificationKey; | ||
operationalCertificate: OperationalCertificate; | ||
leaderValue: CertifiedVrf; | ||
blockSize: BlockSize; | ||
blockHash: DigestBlake2BBlockBody; | ||
opCert: OpCert; | ||
protocolVersion: ProtocolVersion; | ||
signature: IssuerSignature; | ||
}; | ||
} | ||
export interface TxShelley { | ||
id: DigestBlake2BBlockBody; | ||
body: { | ||
inputs: TxIn[]; | ||
outputs: TxOut[]; | ||
certificates: Certificate[]; | ||
withdrawals: Withdrawals; | ||
fee: Lovelace; | ||
timeToLive: Slot; | ||
update: UpdateShelley; | ||
export interface CertifiedVrf { | ||
proof?: VrfProof; | ||
output?: VrfOutput; | ||
} | ||
export interface OperationalCertificate { | ||
count: UInt64; | ||
kes: { | ||
period: UInt64; | ||
verificationKey: KesVerificationKey; | ||
}; | ||
witness: { | ||
signatures: { | ||
[k: string]: Signature; | ||
}; | ||
scripts: { | ||
[k: string]: Script; | ||
}; | ||
bootstrap: BootstrapWitness[]; | ||
}; | ||
metadata: AuxiliaryData | Null; | ||
raw: string; | ||
} | ||
export interface Byron { | ||
byron: BlockByron; | ||
export interface RollBackward { | ||
direction: "backward"; | ||
tip: TipOrOrigin; | ||
point: PointOrOrigin; | ||
} | ||
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 SubmitTransaction { | ||
jsonrpc: "2.0"; | ||
method: "submitTransaction"; | ||
params: { | ||
transaction: { | ||
cbor: string; | ||
}; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface BlockProof { | ||
utxo: { | ||
number: UInt32; | ||
root: DigestBlake2BMerkleRoot; | ||
witnessesHash: DigestBlake2BBlockByronBodyTxPayloadWitness; | ||
export interface SubmitTransactionSuccess { | ||
jsonrpc: "2.0"; | ||
method: "submitTransaction"; | ||
result: { | ||
transaction: { | ||
id: TransactionId; | ||
}; | ||
}; | ||
delegation: DigestBlake2BBlockByronBodyDlgPayload; | ||
update: DigestBlake2BBlockByronBodyUpdatePayload; | ||
id?: unknown; | ||
} | ||
export interface BlockSignature { | ||
dlgCertificate: DlgCertificate; | ||
signature: IssuerSignature; | ||
export interface SubmitTransactionError { | ||
jsonrpc: "2.0"; | ||
method: "submitTransaction"; | ||
error: SubmitTransactionFailure; | ||
id?: unknown; | ||
} | ||
export interface DlgCertificate { | ||
epoch: Epoch; | ||
issuerVk: GenesisVerificationKey; | ||
delegateVk: GenesisVerificationKey; | ||
signature: IssuerSignature; | ||
export interface SubmitTransactionFailureEraMismatch { | ||
code: 3005; | ||
message: string; | ||
data: EraMismatch; | ||
} | ||
export interface SoftwareVersion { | ||
appName: string; | ||
number: UInt32; | ||
export interface EraMismatch { | ||
queryEra: Era; | ||
ledgerEra: Era; | ||
} | ||
export interface TxByron { | ||
id: TxId; | ||
body: { | ||
inputs: TxIn[]; | ||
outputs: TxOut[]; | ||
export interface SubmitTransactionFailureInvalidSignatories { | ||
code: 3100; | ||
message: string; | ||
data: { | ||
invalidSignatories: VerificationKey[]; | ||
}; | ||
witness: TxWitness[]; | ||
raw: string; | ||
} | ||
export interface WitnessVk { | ||
witnessVk: { | ||
key: DigestBlake2BVerificationKey; | ||
signature: Signature; | ||
export interface SubmitTransactionFailureMissingSignatories { | ||
code: 3101; | ||
message: string; | ||
data: { | ||
missingSignatories: DigestBlake2B224[]; | ||
}; | ||
} | ||
export interface RedeemWitness { | ||
redeemWitness: { | ||
key: VerificationKey; | ||
signature: Signature; | ||
export interface SubmitTransactionFailureMissingScripts { | ||
code: 3102; | ||
message: string; | ||
data: { | ||
missingScripts: DigestBlake2B224[]; | ||
}; | ||
} | ||
export interface UpdateProposalByron { | ||
body: { | ||
protocolVersion: ProtocolVersion; | ||
softwareVersion: SoftwareVersion; | ||
export interface SubmitTransactionFailureFailingNativeScript { | ||
code: 3103; | ||
message: string; | ||
data: { | ||
failingNativeScripts: DigestBlake2B224[]; | ||
}; | ||
} | ||
export interface SubmitTransactionFailureExtraneousScripts { | ||
code: 3104; | ||
message: string; | ||
data: { | ||
extraneousScripts: DigestBlake2B224[]; | ||
}; | ||
} | ||
export interface SubmitTransactionFailureMissingMetadataHash { | ||
code: 3105; | ||
message: string; | ||
data: { | ||
metadata: { | ||
[k: string]: string; | ||
hash: DigestBlake2B256; | ||
}; | ||
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 SubmitTransactionFailureMissingMetadata { | ||
code: 3106; | ||
message: string; | ||
data: { | ||
metadata: { | ||
hash: DigestBlake2B256; | ||
}; | ||
}; | ||
} | ||
export interface TxFeePolicy { | ||
coefficient: Ratio; | ||
constant: number; | ||
export interface SubmitTransactionFailureMetadataHashMismatch { | ||
code: 3107; | ||
message: string; | ||
data: { | ||
provided: { | ||
hash: DigestBlake2B256; | ||
}; | ||
computed: { | ||
hash: DigestBlake2B256; | ||
}; | ||
}; | ||
} | ||
export interface SoftForkRule { | ||
initThreshold: NullableRatio; | ||
minThreshold: NullableRatio; | ||
decrementThreshold: NullableRatio; | ||
export interface SubmitTransactionFailureInvalidMetadata { | ||
code: 3108; | ||
message: string; | ||
} | ||
export interface Vote { | ||
voterVk: VerificationKey; | ||
proposalId: DigestBlake2BVerificationKey; | ||
signature: Signature; | ||
export interface SubmitTransactionFailureMissingRedeemers { | ||
code: 3109; | ||
message: string; | ||
data: { | ||
missingRedeemers: ScriptPurpose[]; | ||
}; | ||
} | ||
export interface EpochBoundaryBlock { | ||
hash: DigestBlake2BBlockHeader; | ||
header: { | ||
blockHeight: BlockNo; | ||
epoch: Epoch; | ||
prevHash: DigestBlake2BBlockHeader; | ||
export interface ScriptPurposeSpend { | ||
purpose: "spend"; | ||
outputReference: TransactionOutputReference; | ||
} | ||
export interface ScriptPurposeMint { | ||
purpose: "mint"; | ||
policy: PolicyId; | ||
} | ||
export interface ScriptPurposePublish { | ||
purpose: "publish"; | ||
certificate: Certificate; | ||
} | ||
export interface ScriptPurposeWithdraw { | ||
purpose: "withdraw"; | ||
rewardAccount: RewardAccount; | ||
} | ||
export interface SubmitTransactionFailureExtraneousRedeemers { | ||
code: 3110; | ||
message: string; | ||
data: { | ||
extraneousRedeemers: RedeemerPointer[]; | ||
}; | ||
} | ||
export interface Tip { | ||
slot: Slot; | ||
hash: DigestBlake2BBlockHeader; | ||
blockNo: BlockNo; | ||
export interface SubmitTransactionFailureMissingDatums { | ||
code: 3111; | ||
message: string; | ||
data: { | ||
missingDatums: DigestBlake2B256[]; | ||
}; | ||
} | ||
export interface RollBackward { | ||
RollBackward: { | ||
point: PointOrOrigin; | ||
tip: TipOrOrigin; | ||
export interface SubmitTransactionFailureExtraneousDatums { | ||
code: 3112; | ||
message: string; | ||
data: { | ||
extraneousDatums: DigestBlake2B256[]; | ||
}; | ||
} | ||
export interface Point { | ||
slot: Slot; | ||
hash: DigestBlake2BBlockHeader; | ||
export interface SubmitTransactionFailureScriptIntegrityHashMismatch { | ||
code: 3113; | ||
message: string; | ||
data: { | ||
providedScriptIntegrity: DigestBlake2B256 | null; | ||
computedScriptIntegrity: DigestBlake2B256 | null; | ||
}; | ||
} | ||
export interface IntersectionFound { | ||
IntersectionFound: { | ||
point: PointOrOrigin; | ||
tip: TipOrOrigin; | ||
export interface SubmitTransactionFailureOrphanScriptInputs { | ||
code: 3114; | ||
message: string; | ||
data: { | ||
orphanInputs?: TransactionOutputReference[]; | ||
}; | ||
} | ||
export interface IntersectionNotFound { | ||
IntersectionNotFound: { | ||
tip: TipOrOrigin; | ||
export interface SubmitTransactionFailureMissingCostModels { | ||
code: 3115; | ||
message: string; | ||
data: { | ||
missingCostModels: Language[]; | ||
}; | ||
} | ||
export interface SubmitSuccess { | ||
SubmitSuccess: { | ||
txId: TxId; | ||
export interface SubmitTransactionFailureMalformedScripts { | ||
code: 3116; | ||
message: string; | ||
data: { | ||
malformedScripts: DigestBlake2B224[]; | ||
}; | ||
} | ||
export interface SubmitFail { | ||
SubmitFail: SubmitTxError; | ||
export interface SubmitTransactionFailureUnknownOutputReferences { | ||
code: 3117; | ||
message: string; | ||
data: { | ||
unknownOutputReferences: TransactionOutputReference[]; | ||
}; | ||
} | ||
export interface EraMismatch { | ||
eraMismatch: { | ||
queryEra: Era; | ||
ledgerEra: Era; | ||
export interface SubmitTransactionFailureOutsideOfValidityInterval { | ||
code: 3118; | ||
message: string; | ||
data: { | ||
validityInterval: ValidityInterval; | ||
currentSlot: Slot; | ||
}; | ||
} | ||
export interface InvalidWitnesses { | ||
invalidWitnesses: VerificationKey[]; | ||
export interface SubmitTransactionFailureTransactionTooLarge { | ||
code: 3119; | ||
message: string; | ||
data: { | ||
measuredTransactionSize: { | ||
bytes: Int64; | ||
}; | ||
maximumTransactionSize: { | ||
bytes: Int64; | ||
}; | ||
}; | ||
} | ||
export interface MissingVkWitnesses { | ||
missingVkWitnesses: DigestBlake2BVerificationKey[]; | ||
export interface SubmitTransactionFailureValueTooLarge { | ||
code: 3120; | ||
message: string; | ||
data: { | ||
excessivelyLargeOutputs: TransactionOutput[]; | ||
}; | ||
} | ||
export interface MissingScriptWitnesses { | ||
missingScriptWitnesses: DigestBlake2BScript[]; | ||
export interface SubmitTransactionFailureEmptyInputSet { | ||
code: 3121; | ||
message: string; | ||
} | ||
export interface ScriptWitnessNotValidating { | ||
scriptWitnessNotValidating: DigestBlake2BScript[]; | ||
export interface SubmitTransactionFailureTransactionFeeTooSmall { | ||
code: 3122; | ||
message: string; | ||
data: { | ||
minimumRequiredFee: Lovelace; | ||
providedFee: Lovelace; | ||
}; | ||
} | ||
export interface InsufficientGenesisSignatures { | ||
insufficientGenesisSignatures: DigestBlake2BVerificationKey[]; | ||
export interface SubmitTransactionFailureValueNotConserved { | ||
code: 3123; | ||
message: string; | ||
data: { | ||
valueConsumed: Value; | ||
valueProduced: Value; | ||
}; | ||
} | ||
export interface MissingTxMetadata { | ||
missingTxMetadata: DigestBlake2BAuxiliaryDataBody; | ||
export interface SubmitTransactionFailureNetworkMismatch { | ||
code: 3124; | ||
message: string; | ||
data: { | ||
expectedNetwork: Network; | ||
discriminatedType: "address"; | ||
invalidEntities: Address[]; | ||
} | { | ||
expectedNetwork: Network; | ||
discriminatedType: "rewardAccount"; | ||
invalidEntities: RewardAccount[]; | ||
} | { | ||
expectedNetwork: Network; | ||
discriminatedType: "stakePoolCertificate"; | ||
invalidEntities: StakePoolId[]; | ||
} | { | ||
expectedNetwork: Network; | ||
discriminatedType: "transaction"; | ||
}; | ||
} | ||
export interface MissingTxMetadataHash { | ||
missingTxMetadataHash: DigestBlake2BAuxiliaryDataBody; | ||
export interface SubmitTransactionFailureInsufficientlyFundedOutputs { | ||
code: 3125; | ||
message: string; | ||
data: { | ||
insufficientlyFundedOutputs: { | ||
output: TransactionOutput; | ||
minimumRequiredValue?: Lovelace; | ||
}[]; | ||
}; | ||
} | ||
export interface TxMetadataHashMismatch { | ||
txMetadataHashMismatch: { | ||
includedHash: DigestBlake2BAuxiliaryDataBody; | ||
expectedHash: DigestBlake2BAuxiliaryDataBody; | ||
export interface SubmitTransactionFailureBootstrapAttributesTooLarge { | ||
code: 3126; | ||
message: string; | ||
data: { | ||
bootstrapOutputs: TransactionOutput[]; | ||
}; | ||
} | ||
export interface BadInputs { | ||
badInputs: TxIn[]; | ||
export interface SubmitTransactionFailureMintingOrBurningAda { | ||
code: 3127; | ||
message: string; | ||
} | ||
export interface ExpiredUtxo { | ||
expiredUtxo: { | ||
currentSlot: Slot; | ||
transactionTimeToLive: Slot; | ||
export interface SubmitTransactionFailureInsufficientCollateral { | ||
code: 3128; | ||
message: string; | ||
data: { | ||
providedCollateral: Lovelace; | ||
minimumRequiredCollateral: Lovelace; | ||
}; | ||
} | ||
export interface OutsideOfValidityInterval { | ||
outsideOfValidityInterval: { | ||
currentSlot: Slot; | ||
interval: ValidityInterval; | ||
export interface SubmitTransactionFailureCollateralLockedByScript { | ||
code: 3129; | ||
message: string; | ||
data: { | ||
unsuitableCollateralInputs: TransactionOutputReference[]; | ||
}; | ||
} | ||
export interface TxTooLarge { | ||
txTooLarge: { | ||
maximumSize: Int64; | ||
actualSize: Int64; | ||
export interface SubmitTransactionFailureUnforeseeableSlot { | ||
code: 3130; | ||
message: string; | ||
data: { | ||
unforeseeableSlot: Slot; | ||
}; | ||
} | ||
export interface MissingAtLeastOneInputUtxo { | ||
missingAtLeastOneInputUtxo: null; | ||
export interface SubmitTransactionFailureTooManyCollateralInputs { | ||
code: 3131; | ||
message: string; | ||
data: { | ||
maximumCollateralInputs: UInt32; | ||
countedCollateralInputs: UInt32; | ||
}; | ||
} | ||
export interface InvalidMetadata { | ||
invalidMetadata: null; | ||
export interface SubmitTransactionFailureMissingCollateralInputs { | ||
code: 3132; | ||
message: string; | ||
} | ||
export interface FeeTooSmall { | ||
feeTooSmall: { | ||
requiredFee: Lovelace; | ||
actualFee: Lovelace; | ||
export interface SubmitTransactionFailureNonAdaCollateral { | ||
code: 3133; | ||
message: string; | ||
data: { | ||
"unsuitableCollateralValue'"?: Value; | ||
}; | ||
} | ||
export interface ValueNotConserved { | ||
valueNotConserved: { | ||
consumed: LovelaceDelta | Value; | ||
produced: LovelaceDelta | Value; | ||
export interface SubmitTransactionFailureExecutionUnitsTooLarge { | ||
code: 3134; | ||
message: string; | ||
data: { | ||
providedExecutionUnits: ExecutionUnits; | ||
maximumExecutionUnits: ExecutionUnits; | ||
}; | ||
} | ||
export interface NetworkMismatch { | ||
networkMismatch: { | ||
expectedNetwork: Network; | ||
invalidEntities: InvalidEntity[]; | ||
export interface SubmitTransactionFailureTotalCollateralMismatch { | ||
code: 3135; | ||
message: string; | ||
data: { | ||
declaredTotalCollateral: Lovelace; | ||
computedTotalCollateral: Lovelace; | ||
}; | ||
} | ||
export interface OutputTooSmall { | ||
outputTooSmall: (TxOut | { | ||
output: TxOut; | ||
minimumRequiredValue: Lovelace; | ||
})[]; | ||
export interface SubmitTransactionFailureSpendsMismatch { | ||
code: 3136; | ||
message: string; | ||
data: { | ||
declaredSpending?: "inputs" | "collaterals"; | ||
mismatchReason: string; | ||
}; | ||
} | ||
export interface TooManyAssetsInOutput { | ||
tooManyAssetsInOutput: TxOut[]; | ||
export interface SubmitTransactionFailureUnauthorizedVote { | ||
code: 3137; | ||
message: string; | ||
data: { | ||
unauthorizedVoter: DigestBlake2B224; | ||
requiredRole: VoterRole; | ||
}; | ||
} | ||
export interface AddressAttributesTooLarge { | ||
addressAttributesTooLarge: Address[]; | ||
export interface SubmitTransactionFailureUnknownGovernanceProposal { | ||
code: 3138; | ||
message: string; | ||
data: { | ||
unknownProposal: GovernanceProposalReference; | ||
}; | ||
} | ||
export interface TriesToForgeAda { | ||
triesToForgeAda: null; | ||
export interface SubmitTransactionFailureInvalidProtocolParametersUpdate { | ||
code: 3139; | ||
message: string; | ||
} | ||
export interface DelegateNotRegistered { | ||
delegateNotRegistered: PoolId; | ||
export interface SubmitTransactionFailureUnknownStakePool { | ||
code: 3140; | ||
message: string; | ||
data: { | ||
unknownStakePool: StakePoolId; | ||
}; | ||
} | ||
export interface UnknownOrIncompleteWithdrawals { | ||
unknownOrIncompleteWithdrawals: Withdrawals; | ||
export interface SubmitTransactionFailureIncompleteWithdrawals { | ||
code: 3141; | ||
message: string; | ||
data: { | ||
incompleteWithdrawals: Withdrawals; | ||
}; | ||
} | ||
export interface StakePoolNotRegistered { | ||
stakePoolNotRegistered: PoolId; | ||
} | ||
export interface WrongRetirementEpoch { | ||
wrongRetirementEpoch: { | ||
export interface SubmitTransactionFailureRetirementTooLate { | ||
code: 3142; | ||
message: string; | ||
data: { | ||
currentEpoch: Epoch; | ||
requestedEpoch: Epoch; | ||
firstUnreachableEpoch: Epoch; | ||
declaredEpoch: Epoch; | ||
firstInvalidEpoch: Epoch; | ||
}; | ||
} | ||
export interface WrongPoolCertificate { | ||
wrongPoolCertificate: UInt8; | ||
export interface SubmitTransactionFailureStakePoolCostTooLow { | ||
code: 3143; | ||
message: string; | ||
data: { | ||
minimumStakePoolCost: Lovelace; | ||
declaredStakePoolCost: Lovelace; | ||
}; | ||
} | ||
export interface StakeKeyAlreadyRegistered { | ||
stakeKeyAlreadyRegistered: DigestBlake2BVerificationKey; | ||
export interface SubmitTransactionFailureMetadataHashTooLarge { | ||
code: 3144; | ||
message: string; | ||
data: { | ||
infringingStakePool: { | ||
id: StakePoolId; | ||
}; | ||
computedMetadataHashSize: { | ||
bytes: Int64; | ||
}; | ||
}; | ||
} | ||
export interface PoolCostTooSmall { | ||
poolCostTooSmall: { | ||
minimumCost: Lovelace; | ||
export interface SubmitTransactionFailureCredentialAlreadyRegistered { | ||
code: 3145; | ||
message: string; | ||
data: { | ||
knownCredential: DigestBlake2B224; | ||
}; | ||
} | ||
export interface PoolMetadataHashTooBig { | ||
poolMetadataHashTooBig: { | ||
poolId: PoolId; | ||
measuredSize: Int64; | ||
export interface SubmitTransactionFailureUnknownCredential { | ||
code: 3146; | ||
message: string; | ||
data: { | ||
unknownCredential: DigestBlake2B224; | ||
}; | ||
} | ||
export interface StakeKeyNotRegistered { | ||
stakeKeyNotRegistered: DigestBlake2BVerificationKey; | ||
export interface SubmitTransactionFailureNonEmptyRewardAccount { | ||
code: 3147; | ||
message: string; | ||
data: { | ||
nonEmptyRewardAccountBalance: Lovelace; | ||
}; | ||
} | ||
export interface RewardAccountNotExisting { | ||
rewardAccountNotExisting: null; | ||
export interface SubmitTransactionFailureInvalidGenesisDelegation { | ||
code: 3148; | ||
message: string; | ||
} | ||
export interface RewardAccountNotEmpty { | ||
rewardAccountNotEmpty: { | ||
balance: Lovelace; | ||
}; | ||
export interface SubmitTransactionFailureInvalidMIRTransfer { | ||
code: 3149; | ||
message: string; | ||
} | ||
export interface WrongCertificateType { | ||
wrongCertificateType: null; | ||
export interface SubmitTransactionFailureUnrecognizedCertificateType { | ||
code: 3998; | ||
message: string; | ||
} | ||
export interface UnknownGenesisKey { | ||
unknownGenesisKey: DigestBlake2BVerificationKey; | ||
export interface SubmitTransactionFailureInternalLedgerTypeConversionError { | ||
code: 3999; | ||
message: string; | ||
} | ||
export interface AlreadyDelegating { | ||
alreadyDelegating: DigestBlake2BVerificationKey; | ||
export interface SubmitTransactionDeserialisationError { | ||
jsonrpc: "2.0"; | ||
method: "submitTransaction"; | ||
error: DeserialisationFailure; | ||
id?: unknown; | ||
} | ||
export interface InsufficientFundsForMir { | ||
insufficientFundsForMir: { | ||
rewardSource: RewardPot; | ||
sourceSize: Lovelace; | ||
requestedAmount: Lovelace; | ||
export interface DeserialisationFailure { | ||
code: -32602; | ||
message: string; | ||
data: { | ||
shelley: string; | ||
allegra: string; | ||
mary: string; | ||
alonzo: string; | ||
babbage: string; | ||
conway: string; | ||
}; | ||
} | ||
export interface TooLateForMir { | ||
tooLateForMir: { | ||
currentSlot: Slot; | ||
lastAllowedSlot: Slot; | ||
export interface EvaluateTransaction { | ||
jsonrpc: "2.0"; | ||
method: "evaluateTransaction"; | ||
params: { | ||
transaction: { | ||
cbor: string; | ||
}; | ||
additionalUtxo?: Utxo; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface MirTransferNotCurrentlyAllowed { | ||
mirTransferNotCurrentlyAllowed: null; | ||
export interface EvaluateTransactionSuccess { | ||
jsonrpc: "2.0"; | ||
method: "evaluateTransaction"; | ||
result: { | ||
validator: RedeemerPointer; | ||
budget: ExecutionUnits; | ||
}[]; | ||
id?: unknown; | ||
} | ||
export interface MirNegativeTransferNotCurrentlyAllowed { | ||
mirNegativeTransferNotCurrentlyAllowed: null; | ||
export interface EvaluateTransactionError { | ||
jsonrpc: "2.0"; | ||
method: "evaluateTransaction"; | ||
error: EvaluateTransactionFailure; | ||
id?: unknown; | ||
} | ||
export interface MirProducesNegativeUpdate { | ||
mirProducesNegativeUpdate: null; | ||
export interface EvaluateTransactionFailureIncompatibleEra { | ||
code: 3000; | ||
message: string; | ||
data: { | ||
incompatibleEra: Era; | ||
}; | ||
} | ||
export interface DuplicateGenesisVrf { | ||
duplicateGenesisVrf: DigestBlake2BVrfVerificationKey; | ||
export interface EvaluateTransactionFailureUnsupportedEra { | ||
code: 3001; | ||
message: string; | ||
data: { | ||
unsupportedEra: Era; | ||
}; | ||
} | ||
export interface NonGenesisVoters { | ||
nonGenesisVoters: { | ||
currentlyVoting: DigestBlake2BVerificationKey[]; | ||
shouldBeVoting: DigestBlake2BVerificationKey[]; | ||
export interface EvaluateTransactionFailureOverlappingAdditionalUtxo { | ||
code: 3002; | ||
message: string; | ||
data: { | ||
overlappingOutputReferences: TransactionOutputReference[]; | ||
}; | ||
} | ||
export interface UpdateWrongEpoch { | ||
updateWrongEpoch: { | ||
currentEpoch: Epoch; | ||
requestedEpoch: Epoch; | ||
votingPeriod: VotingPeriod; | ||
export interface EvaluateTransactionFailureNodeTipTooOld { | ||
code: 3003; | ||
message: string; | ||
data: { | ||
minimumRequiredEra: Era; | ||
currentNodeEra: Era; | ||
}; | ||
} | ||
export interface ProtocolVersionCannotFollow { | ||
protocolVersionCannotFollow: ProtocolVersion; | ||
} | ||
export interface MissingRequiredRedeemers { | ||
missingRequiredRedeemers: { | ||
missing: { | ||
[k: string]: ScriptPurpose; | ||
}[]; | ||
export interface EvaluateTransactionFailureCannotCreateEvaluationContext { | ||
code: 3004; | ||
message: string; | ||
data: { | ||
reason: string; | ||
}; | ||
} | ||
export interface Spend { | ||
spend: TxIn; | ||
export interface EvaluateTransactionFailureScriptExecutionFailure { | ||
code: 3010; | ||
message: string; | ||
data: { | ||
validator: RedeemerPointer; | ||
error: ScriptExecutionFailure; | ||
}[]; | ||
} | ||
export interface Mint { | ||
mint: DigestBlake2BScript; | ||
export interface ScriptExecutionFailureMissingScript { | ||
code: 3011; | ||
message: string; | ||
} | ||
export interface Certificate1 { | ||
certificate: Certificate; | ||
export interface ScriptExecutionFailureValidationFailure { | ||
code: 3012; | ||
message: string; | ||
data: { | ||
validationError: string; | ||
traces: string[]; | ||
}; | ||
} | ||
export interface Withdrawal { | ||
withdrawal: RewardAccount; | ||
export interface ScriptExecutionFailureUnsuitableOutputReference { | ||
code: 3013; | ||
message: string; | ||
data: { | ||
unsuitableOutputReference: TransactionOutputReference; | ||
}; | ||
} | ||
export interface MissingRequiredDatums { | ||
missingRequiredDatums: { | ||
provided?: DigestBlake2BDatum[]; | ||
missing: DigestBlake2BDatum[]; | ||
export interface EvaluateTransactionDeserialisationError { | ||
jsonrpc: "2.0"; | ||
method: "evaluateTransaction"; | ||
error: DeserialisationFailure; | ||
id?: unknown; | ||
} | ||
export interface AcquireLedgerState { | ||
jsonrpc: "2.0"; | ||
method: "acquireLedgerState"; | ||
params: { | ||
point: PointOrOrigin; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface UnspendableDatums { | ||
unspendableDatums: { | ||
nonSpendable: DigestBlake2BDatum[]; | ||
acceptable: DigestBlake2BDatum[]; | ||
export interface AcquireLedgerStateFailure { | ||
jsonrpc: "2.0"; | ||
method: "acquireLedgerState"; | ||
error: { | ||
code: 2000; | ||
message: string; | ||
data: string; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface ExtraDataMismatch { | ||
extraDataMismatch: { | ||
provided: DigestBlake2BScriptIntegrity | Null; | ||
inferredFromParameters: DigestBlake2BScriptIntegrity | Null; | ||
export interface AcquireLedgerStateSuccess { | ||
jsonrpc: "2.0"; | ||
method: "acquireLedgerState"; | ||
result: { | ||
acquired: "ledgerState"; | ||
point: PointOrOrigin; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface MissingRequiredSignatures { | ||
missingRequiredSignatures: DigestBlake2BVerificationKey[]; | ||
export interface ReleaseLedgerState { | ||
jsonrpc: "2.0"; | ||
method: "releaseLedgerState"; | ||
id?: unknown; | ||
} | ||
export interface UnspendableScriptInputs { | ||
unspendableScriptInputs: TxIn[]; | ||
export interface ReleaseLedgerStateResponse { | ||
jsonrpc: "2.0"; | ||
method: "releaseLedgerState"; | ||
result: { | ||
released: "ledgerState"; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface ExtraRedeemers { | ||
extraRedeemers: string[]; | ||
export interface QueryLedgerStateEraMismatch { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/epoch" | "queryLedgerState/eraStart" | "queryLedgerState/eraSummaries" | "queryLedgerState/liveStakeDistribution" | "queryLedgerState/projectedRewards" | "queryLedgerState/protocolParameters" | "queryLedgerState/proposedProtocolParameters" | "queryLedgerState/rewardAccountSummaries" | "queryLedgerState/rewardsProvenance" | "queryLedgerState/stakePools" | "queryLedgerState/utxo" | "queryLedgerState/tip"; | ||
error: { | ||
code: 2001; | ||
message: string; | ||
data: EraMismatch; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface MissingDatumHashesForInputs { | ||
missingDatumHashesForInputs: TxIn[]; | ||
export interface QueryLedgerStateUnavailableInCurrentEra { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/epoch" | "queryLedgerState/eraStart" | "queryLedgerState/eraSummaries" | "queryLedgerState/liveStakeDistribution" | "queryLedgerState/projectedRewards" | "queryLedgerState/protocolParameters" | "queryLedgerState/proposedProtocolParameters" | "queryLedgerState/rewardAccountSummaries" | "queryLedgerState/rewardsProvenance" | "queryLedgerState/stakePools" | "queryLedgerState/utxo" | "queryLedgerState/tip"; | ||
error: { | ||
code: 2002; | ||
message: string; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface MissingCollateralInputs { | ||
missingCollateralInputs: null; | ||
} | ||
export interface CollateralTooSmall { | ||
collateralTooSmall: { | ||
requiredCollateral: Lovelace; | ||
actualCollateral: Lovelace; | ||
export interface QueryLedgerStateAcquiredExpired { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/epoch" | "queryLedgerState/eraStart" | "queryLedgerState/eraSummaries" | "queryLedgerState/liveStakeDistribution" | "queryLedgerState/projectedRewards" | "queryLedgerState/protocolParameters" | "queryLedgerState/proposedProtocolParameters" | "queryLedgerState/rewardAccountSummaries" | "queryLedgerState/rewardsProvenance" | "queryLedgerState/stakePools" | "queryLedgerState/utxo" | "queryLedgerState/tip"; | ||
error: { | ||
code: 2003; | ||
message: string; | ||
data: string; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface CollateralIsScript { | ||
collateralIsScript: Utxo; | ||
export interface QueryLedgerStateEpoch { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/epoch"; | ||
id?: unknown; | ||
} | ||
export interface CollateralHasNonAdaAssets { | ||
collateralHasNonAdaAssets: Value; | ||
export interface QueryLedgerStateEpochResponse { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/epoch"; | ||
result: Epoch; | ||
id?: unknown; | ||
} | ||
export interface TooManyCollateralInputs { | ||
tooManyCollateralInputs: { | ||
maximumCollateralInputs: UInt64; | ||
actualCollateralInputs: UInt64; | ||
}; | ||
export interface QueryLedgerStateEraStart { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/eraStart"; | ||
id?: unknown; | ||
} | ||
export interface ExecutionUnitsTooLarge { | ||
executionUnitsTooLarge: { | ||
maximumExecutionUnits: ExUnits; | ||
actualExecutionUnits: ExUnits; | ||
}; | ||
export interface QueryLedgerStateEraStartResponse { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/eraStart"; | ||
result: Bound; | ||
id?: unknown; | ||
} | ||
export interface OutsideForecast { | ||
outsideForecast: Slot; | ||
export interface Bound { | ||
time: RelativeTime; | ||
slot: Slot; | ||
epoch: Epoch; | ||
} | ||
export interface ValidationTagMismatch { | ||
validationTagMismatch: null; | ||
export interface QueryLedgerStateEraSummaries { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/eraSummaries"; | ||
id?: unknown; | ||
} | ||
export interface CollectErrors { | ||
collectErrors: (NoRedeemer | NoWitness | NoCostModel | BadTranslation)[]; | ||
export interface QueryLedgerStateEraSummariesResponse { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/eraSummaries"; | ||
result: EraSummary[]; | ||
id?: unknown; | ||
} | ||
export interface NoRedeemer { | ||
noRedeemer: ScriptPurpose; | ||
export interface EraSummary { | ||
start: Bound; | ||
end?: Bound; | ||
parameters: EraParameters; | ||
} | ||
export interface NoWitness { | ||
noWitness: DigestBlake2BScript; | ||
export interface EraParameters { | ||
epochLength: Epoch; | ||
slotLength: SlotLength; | ||
safeZone: SafeZone | null; | ||
} | ||
export interface NoCostModel { | ||
noCostModel: Language; | ||
export interface SlotLength { | ||
seconds: number; | ||
} | ||
export interface BadTranslation { | ||
badTranslation: string; | ||
export interface QueryLedgerStateLiveStakeDistribution { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/liveStakeDistribution"; | ||
id?: unknown; | ||
} | ||
export interface ExtraScriptWitnesses { | ||
extraScriptWitnesses: DigestBlake2BScript[]; | ||
export interface QueryLedgerStateLiveStakeDistributionResponse { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/liveStakeDistribution"; | ||
result: LiveStakeDistribution; | ||
id?: unknown; | ||
} | ||
export interface MirNegativeTransfer { | ||
mirNegativeTransfer: { | ||
rewardSource: RewardPot; | ||
attemptedTransfer: Lovelace; | ||
export interface LiveStakeDistribution { | ||
[k: string]: { | ||
stake: Ratio; | ||
vrf: DigestBlake2B256; | ||
}; | ||
} | ||
export interface TotalCollateralMismatch { | ||
totalCollateralMismatch: { | ||
computedFromDelta: Lovelace; | ||
declaredInField: Lovelace; | ||
export interface QueryLedgerStateProjectedRewards { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/projectedRewards"; | ||
params: { | ||
stake?: Lovelace[]; | ||
scripts?: AnyStakeCredential[]; | ||
keys?: AnyStakeCredential[]; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface MalformedReferenceScripts { | ||
malformedReferenceScripts: DigestBlake2BScript[]; | ||
export interface QueryLedgerStateProjectedRewardsResponse { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/projectedRewards"; | ||
result: ProjectedRewards; | ||
id?: unknown; | ||
} | ||
export interface MalformedScriptWitnesses { | ||
malformedScriptWitnesses: DigestBlake2BScript[]; | ||
} | ||
export interface EvaluationResult { | ||
EvaluationResult: { | ||
[k: string]: ExUnits; | ||
export interface ProjectedRewards { | ||
[k: string]: { | ||
[k: string]: Lovelace; | ||
}; | ||
} | ||
export interface EvaluationFailure { | ||
EvaluationFailure: EvaluationFailureScriptFailures | EvaluationFailureIncompatibleEra | EvaluationFailureAdditionalUtxoOverlap | EvaluationFailureNotEnoughSynced | EvaluationFailureCannotCreateEvaluationContext; | ||
export interface QueryLedgerStateProposedProtocolParameters { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/proposedProtocolParameters"; | ||
id?: unknown; | ||
} | ||
export interface EvaluationFailureScriptFailures { | ||
ScriptFailures: { | ||
[k: string]: ScriptFailure; | ||
}; | ||
export interface QueryLedgerStateProposedProtocolParametersResponse { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/proposedProtocolParameters"; | ||
result: ProposedProtocolParameters[]; | ||
id?: unknown; | ||
} | ||
export interface MissingRequiredScripts { | ||
missingRequiredScripts: { | ||
missing: RedeemerPointer[]; | ||
resolved: { | ||
[k: string]: DigestBlake2BScript; | ||
}; | ||
export interface QueryLedgerStateProtocolParameters { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/protocolParameters"; | ||
id?: unknown; | ||
} | ||
export interface QueryLedgerStateProtocolParametersResponse { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/protocolParameters"; | ||
result: ProtocolParameters; | ||
id?: unknown; | ||
} | ||
export interface ProtocolParameters { | ||
minFeeCoefficient: UInt64; | ||
minFeeConstant: Lovelace; | ||
minUtxoDepositCoefficient: UInt64; | ||
minUtxoDepositConstant: Lovelace; | ||
maxBlockBodySize: { | ||
bytes: Int64; | ||
}; | ||
maxBlockHeaderSize: { | ||
bytes: Int64; | ||
}; | ||
maxTransactionSize?: { | ||
bytes: Int64; | ||
}; | ||
maxValueSize?: { | ||
bytes: Int64; | ||
}; | ||
extraEntropy?: Nonce; | ||
stakeCredentialDeposit: Lovelace; | ||
stakePoolDeposit: Lovelace; | ||
stakePoolRetirementEpochBound: UInt64; | ||
stakePoolPledgeInfluence: Ratio; | ||
minStakePoolCost: Lovelace; | ||
desiredNumberOfStakePools: UInt64; | ||
federatedBlockProductionRatio?: Ratio; | ||
monetaryExpansion: Ratio; | ||
treasuryExpansion: Ratio; | ||
collateralPercentage?: UInt64; | ||
maxCollateralInputs?: UInt64; | ||
plutusCostModels?: CostModels; | ||
scriptExecutionPrices?: ScriptExecutionPrices; | ||
maxExecutionUnitsPerTransaction?: ExecutionUnits; | ||
maxExecutionUnitsPerBlock?: ExecutionUnits; | ||
version: ProtocolVersion; | ||
} | ||
export interface ValidatorFailed { | ||
validatorFailed: { | ||
error: string; | ||
traces: string[]; | ||
export interface QueryLedgerStateRewardAccountSummaries { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/rewardAccountSummaries"; | ||
params: { | ||
scripts?: AnyStakeCredential[]; | ||
keys?: AnyStakeCredential[]; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface UnknownInputReferencedByRedeemer { | ||
unknownInputReferencedByRedeemer: TxIn; | ||
export interface QueryLedgerStateRewardAccountSummariesResponse { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/rewardAccountSummaries"; | ||
result: RewardAccountSummaries; | ||
id?: unknown; | ||
} | ||
export interface NonScriptInputReferencedByRedeemer { | ||
nonScriptInputReferencedByRedeemer: TxIn; | ||
export interface RewardAccountSummaries { | ||
[k: string]: RewardAccountSummary; | ||
} | ||
export interface IllFormedExecutionBudget { | ||
illFormedExecutionBudget: ExUnits | Null; | ||
export interface RewardAccountSummary { | ||
delegate?: { | ||
id: StakePoolId; | ||
}; | ||
rewards?: Lovelace; | ||
} | ||
export interface NoCostModelForLanguage { | ||
noCostModelForLanguage: Language; | ||
export interface QueryLedgerStateRewardsProvenance { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/rewardsProvenance"; | ||
id?: unknown; | ||
} | ||
export interface EvaluationFailureIncompatibleEra { | ||
IncompatibleEra: "Byron" | "Shelley" | "Allegra" | "Mary"; | ||
export interface QueryLedgerStateRewardsProvenanceResponse { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/rewardsProvenance"; | ||
result: RewardsProvenance; | ||
id?: unknown; | ||
} | ||
export interface EvaluationFailureAdditionalUtxoOverlap { | ||
AdditionalUtxoOverlap: TxIn[]; | ||
} | ||
export interface EvaluationFailureNotEnoughSynced { | ||
NotEnoughSynced: { | ||
minimumRequiredEra: Era; | ||
currentNodeEra: Era; | ||
export interface RewardsProvenance { | ||
desiredNumberOfStakePools: number; | ||
stakePoolPledgeInfluence: string; | ||
totalRewardsInEpoch: { | ||
lovelace: bigint; | ||
}; | ||
} | ||
export interface EvaluationFailureCannotCreateEvaluationContext { | ||
CannotCreateEvaluationContext: { | ||
reason: string; | ||
activeStakeInEpoch: { | ||
lovelace: bigint; | ||
}; | ||
stakePools: { | ||
[k: string]: StakePoolSummary; | ||
}; | ||
} | ||
export interface AcquireSuccess { | ||
AcquireSuccess: { | ||
point: PointOrOrigin; | ||
export interface StakePoolSummary { | ||
id: StakePoolId; | ||
stake: Lovelace; | ||
ownerStake: Lovelace; | ||
approximatePerformance: number; | ||
parameters: { | ||
cost: Lovelace; | ||
margin: Ratio; | ||
pledge: Lovelace; | ||
}; | ||
} | ||
export interface AcquireFailure { | ||
AcquireFailure: { | ||
failure: AcquireFailureDetails; | ||
export interface QueryLedgerStateStakePools { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/stakePools"; | ||
params?: { | ||
stakePools: { | ||
id: StakePoolId; | ||
}[]; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface AwaitAcquired { | ||
AwaitAcquired: { | ||
slot: Slot; | ||
export interface QueryLedgerStateStakePoolsResponse { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/stakePools"; | ||
result: { | ||
[k: string]: StakePool; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface MempoolSizeAndCapacity { | ||
capacity: UInt32; | ||
currentSize: UInt32; | ||
numberOfTxs: UInt32; | ||
export interface QueryLedgerStateTip { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/tip"; | ||
id?: unknown; | ||
} | ||
export interface GetNonMyopicMemberRewards { | ||
nonMyopicMemberRewards: Lovelace[] | StakeCredential[]; | ||
export interface QueryLedgerStateTipResponse { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/tip"; | ||
result: PointOrOrigin; | ||
id?: unknown; | ||
} | ||
export interface GetDelegationsAndRewards { | ||
delegationsAndRewards: StakeCredential[]; | ||
export interface QueryLedgerStateUtxo { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/utxo"; | ||
params?: UtxoByOutputReferences | UtxoByAddresses | WholeUtxo; | ||
id?: unknown; | ||
} | ||
export interface GetUtxoByAddress { | ||
utxo: Address[]; | ||
export interface UtxoByOutputReferences { | ||
outputReferences: TransactionOutputReference[]; | ||
} | ||
export interface GetUtxoByTxIn { | ||
utxo: TxIn[]; | ||
export interface UtxoByAddresses { | ||
addresses: Address[]; | ||
} | ||
export interface GetPoolParameters { | ||
poolParameters: (PoolId | string)[]; | ||
export interface WholeUtxo { | ||
} | ||
export interface Bound { | ||
time: RelativeTime; | ||
slot: Slot; | ||
epoch: Epoch; | ||
export interface QueryLedgerStateUtxoResponse { | ||
jsonrpc: "2.0"; | ||
method: "queryLedgerState/utxo"; | ||
result: Utxo; | ||
id?: unknown; | ||
} | ||
export interface EraSummary { | ||
start: Bound; | ||
end: Bound | null; | ||
parameters: EraParameters; | ||
export interface QueryNetworkBlockHeight { | ||
jsonrpc: "2.0"; | ||
method: "queryNetwork/blockHeight"; | ||
id?: unknown; | ||
} | ||
export interface EraParameters { | ||
epochLength: Epoch; | ||
slotLength: SlotLength; | ||
safeZone: SafeZone | null; | ||
export interface QueryNetworkBlockHeightResponse { | ||
jsonrpc: "2.0"; | ||
method: "queryNetwork/blockHeight"; | ||
result: BlockHeight | Origin; | ||
id?: unknown; | ||
} | ||
export interface NonMyopicMemberRewards { | ||
[k: string]: { | ||
[k: string]: number; | ||
export interface QueryNetworkGenesisConfiguration { | ||
jsonrpc: "2.0"; | ||
method: "queryNetwork/genesisConfiguration"; | ||
params: { | ||
era: EraWithGenesis; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface DelegationsAndRewardsByAccounts { | ||
[k: string]: DelegationsAndRewards; | ||
export interface QueryNetworkGenesisConfigurationResponse { | ||
jsonrpc: "2.0"; | ||
method: "queryNetwork/genesisConfiguration"; | ||
result: GenesisByron | GenesisShelley | GenesisAlonzo | GenesisConway; | ||
id?: unknown; | ||
} | ||
export interface DelegationsAndRewards { | ||
delegate?: PoolId; | ||
rewards?: Lovelace; | ||
} | ||
export interface ProposedProtocolParametersShelley { | ||
[k: string]: ProtocolParametersShelley; | ||
} | ||
export interface ProposedProtocolParametersAlonzo { | ||
[k: string]: ProtocolParametersAlonzo; | ||
} | ||
export interface ProposedProtocolParametersBabbage { | ||
[k: string]: ProtocolParametersBabbage; | ||
} | ||
export interface PoolDistribution { | ||
[k: string]: { | ||
stake: Ratio; | ||
vrf: DigestBlake2BVrfVerificationKey; | ||
export interface GenesisByron { | ||
era: "byron"; | ||
genesisKeyHashes: DigestBlake2B224[]; | ||
genesisDelegations: { | ||
[k: string]: BootstrapOperationalCertificate; | ||
}; | ||
startTime: UtcTime; | ||
initialFunds: { | ||
[k: string]: Lovelace; | ||
}; | ||
initialVouchers: { | ||
[k: string]: Lovelace; | ||
}; | ||
securityParameter: UInt64; | ||
networkMagic: NetworkMagic; | ||
protocolParameters: ProtocolParameters; | ||
} | ||
export interface CompactGenesis { | ||
systemStart: UtcTime; | ||
export interface GenesisShelley { | ||
era: "shelley"; | ||
startTime: UtcTime; | ||
networkMagic: NetworkMagic; | ||
@@ -1688,60 +1579,162 @@ network: Network; | ||
maxLovelaceSupply: UInt64; | ||
protocolParameters: ProtocolParametersShelley; | ||
initialParameters: ProtocolParameters; | ||
initialDelegates: InitialDelegates; | ||
initialFunds: InitialFunds; | ||
initialStakePools: GenesisStakePools; | ||
} | ||
export interface RewardsProvenance { | ||
epochLength: Epoch; | ||
decentralizationParameter: Ratio; | ||
maxLovelaceSupply: Lovelace; | ||
mintedBlocks: { | ||
[k: string]: UInt64; | ||
export interface GenesisDelegate { | ||
id: DigestBlake2B224; | ||
vrfVerificationKeyHash: DigestBlake2B256; | ||
} | ||
export interface InitialFunds { | ||
[k: string]: Lovelace; | ||
} | ||
export interface GenesisStakePools { | ||
stakePools: { | ||
[k: string]: StakePool; | ||
}; | ||
totalMintedBlocks: number; | ||
totalExpectedBlocks: number; | ||
incentive: bigint; | ||
rewardsGap: bigint; | ||
availableRewards: bigint; | ||
totalRewards: bigint; | ||
treasuryTax: bigint; | ||
activeStake: bigint; | ||
pools: { | ||
[k: string]: IndividualPoolRewardsProvenance; | ||
delegators: { | ||
[k: string]: StakePoolId; | ||
}; | ||
} | ||
export interface IndividualPoolRewardsProvenance { | ||
totalMintedBlocks: number; | ||
totalStakeShare: string; | ||
activeStakeShare: string; | ||
ownerStake: bigint; | ||
parameters: PoolParameters; | ||
pledgeRatio: string; | ||
maxRewards: bigint; | ||
apparentPerformance: string; | ||
totalRewards: bigint; | ||
leaderRewards: bigint; | ||
export interface GenesisAlonzo { | ||
era: "alonzo"; | ||
initialParameters: { | ||
minUtxoDepositCoefficient: UInt64; | ||
collateralPercentage: UInt64; | ||
plutusCostModels: CostModels; | ||
maxCollateralInputs: UInt64; | ||
maxExecutionUnitsPerBlock: ExecutionUnits; | ||
maxExecutionUnitsPerTransaction: ExecutionUnits; | ||
maxValueSize: { | ||
bytes: Int64; | ||
}; | ||
scriptExecutionPrices: ScriptExecutionPrices; | ||
}; | ||
} | ||
export interface RewardsProvenance1 { | ||
desiredNumberOfPools: number; | ||
poolInfluence: string; | ||
totalRewards: bigint; | ||
activeStake: bigint; | ||
pools: { | ||
[k: string]: RewardInfoPool; | ||
export interface GenesisConway { | ||
era: "conway"; | ||
initialDelegates: InitialDelegates; | ||
} | ||
export interface QueryNetworkStartTime { | ||
jsonrpc: "2.0"; | ||
method: "queryNetwork/startTime"; | ||
id?: unknown; | ||
} | ||
export interface QueryNetworkStartTimeResponse { | ||
jsonrpc: "2.0"; | ||
method: "queryNetwork/startTime"; | ||
result: UtcTime; | ||
id?: unknown; | ||
} | ||
export interface QueryNetworkTip { | ||
jsonrpc: "2.0"; | ||
method: "queryNetwork/tip"; | ||
id?: unknown; | ||
} | ||
export interface QueryNetworkTipResponse { | ||
jsonrpc: "2.0"; | ||
method: "queryNetwork/tip"; | ||
result: PointOrOrigin; | ||
id?: unknown; | ||
} | ||
export interface AcquireMempool { | ||
jsonrpc: "2.0"; | ||
method: "acquireMempool"; | ||
id?: unknown; | ||
} | ||
export interface AcquireMempoolResponse { | ||
jsonrpc: "2.0"; | ||
method: "acquireMempool"; | ||
result: { | ||
acquired: "mempool"; | ||
slot: Slot; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface RewardInfoPool { | ||
stake: Lovelace; | ||
ownerStake: bigint; | ||
approximatePerformance: number; | ||
poolParameters: { | ||
cost: Lovelace; | ||
margin: Ratio; | ||
pledge: Lovelace; | ||
export interface NextTransaction { | ||
jsonrpc: "2.0"; | ||
method: "nextTransaction"; | ||
params?: { | ||
fields?: "all"; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface PoolsRanking { | ||
[k: string]: { | ||
score: number; | ||
estimatedHitRate: number; | ||
export interface MustAcquireMempoolFirst { | ||
jsonrpc: "2.0"; | ||
method: "hasTransaction" | "nextTransaction" | "sizeOfMempool" | "releaseMempool"; | ||
error: { | ||
code: 4000; | ||
message: string; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface NextTransactionResponse { | ||
jsonrpc: "2.0"; | ||
method: "nextTransaction"; | ||
result: { | ||
transaction: { | ||
id: TransactionId; | ||
} | Transaction | null; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface HasTransaction { | ||
jsonrpc: "2.0"; | ||
method: "hasTransaction"; | ||
params: { | ||
id: TransactionId; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface HasTransactionResponse { | ||
jsonrpc: "2.0"; | ||
method: "hasTransaction"; | ||
result: boolean; | ||
id?: unknown; | ||
} | ||
export interface SizeOfMempool { | ||
jsonrpc: "2.0"; | ||
method: "sizeOfMempool"; | ||
id?: unknown; | ||
} | ||
export interface SizeOfMempoolResponse { | ||
jsonrpc: "2.0"; | ||
method: "sizeOfMempool"; | ||
result: MempoolSizeAndCapacity; | ||
id?: unknown; | ||
} | ||
export interface MempoolSizeAndCapacity { | ||
maxCapacity: { | ||
bytes: Int64; | ||
}; | ||
currentSize: { | ||
bytes: Int64; | ||
}; | ||
transactions: { | ||
count: UInt32; | ||
}; | ||
} | ||
export interface ReleaseMempool { | ||
jsonrpc: "2.0"; | ||
method: "releaseMempool"; | ||
id?: unknown; | ||
} | ||
export interface ReleaseMempoolResponse { | ||
jsonrpc: "2.0"; | ||
method: "releaseMempool"; | ||
result: { | ||
released: "mempool"; | ||
}; | ||
id?: unknown; | ||
} | ||
export interface RpcError { | ||
jsonrpc: "2.0"; | ||
error: { | ||
code: number; | ||
message?: string; | ||
data?: unknown; | ||
}; | ||
id?: unknown; | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@cardano-ogmios/schema", | ||
"version": "5.6.0", | ||
"version": "6.0.0", | ||
"description": "Generated TypeScript from the Cardano Ogmios schema", | ||
@@ -20,3 +20,3 @@ "engines": { | ||
"cleanup": "shx rm -rf dist node_modules index.ts", | ||
"generate-schema-types": "sed \"s/ogmios.wsp.json#/#/g\" ../../../../server/ogmios.wsp.json | json2ts -o src/index.ts --enableBigInt", | ||
"generate-schema-types": "bash scripts/generate-schema-types.sh", | ||
"lint": "shx echo No code to lint in this package", | ||
@@ -27,3 +27,3 @@ "prepack": "yarn build", | ||
"devDependencies": { | ||
"json-schema-to-typescript": "CardanoSolutions/json-schema-to-typescript", | ||
"json-schema-to-typescript": "https://github.com/CardanoSolutions/json-schema-to-typescript", | ||
"shx": "^0.3.3" | ||
@@ -30,0 +30,0 @@ }, |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
1752
116646
1
1