@cardano-ogmios/client
Advanced tools
Comparing version 6.7.0 to 6.8.0
import { InteractionContext } from '../Connection'; | ||
import { constitution, epoch, eraStart, eraSummaries, ledgerTip, liveStakeDistribution, networkBlockHeight, networkStartTime, networkTip, projectedRewards, proposedProtocolParameters, protocolParameters, rewardAccountSummaries, rewardsProvenance, stakePools, utxo } from './query'; | ||
import { Ogmios, AcquireLedgerStateSuccess, AnyStakeCredential, GenesisAlonzo, GenesisByron, GenesisConway, GenesisShelley, Origin, Point, StakePoolId, UtxoByAddresses, UtxoByOutputReferences, ValueAdaOnly } from '@cardano-ogmios/schema'; | ||
import { constitution, epoch, eraStart, eraSummaries, governanceProposals, ledgerTip, liveStakeDistribution, networkBlockHeight, networkStartTime, networkTip, projectedRewards, proposedProtocolParameters, protocolParameters, rewardAccountSummaries, rewardsProvenance, stakePools, utxo } from './query'; | ||
import { Ogmios, AcquireLedgerStateSuccess, AnyStakeCredential, GenesisAlonzo, GenesisByron, GenesisConway, GenesisShelley, GovernanceProposalReference, Origin, Point, StakePoolId, UtxoByAddresses, UtxoByOutputReferences, ValueAdaOnly } from '@cardano-ogmios/schema'; | ||
export interface LedgerStateQueryClient { | ||
@@ -13,2 +13,3 @@ context: InteractionContext; | ||
eraSummaries: () => ReturnType<typeof eraSummaries>; | ||
governanceProposals(filter?: GovernanceProposalReference[]): ReturnType<typeof governanceProposals>; | ||
genesisConfiguration(era: 'byron'): Promise<GenesisByron>; | ||
@@ -15,0 +16,0 @@ genesisConfiguration(era: 'shelley'): Promise<GenesisShelley>; |
@@ -67,2 +67,5 @@ "use strict"; | ||
}, | ||
governanceProposals(filter) { | ||
return (0, query_1.governanceProposals)(context, filter); | ||
}, | ||
ledgerTip() { | ||
@@ -69,0 +72,0 @@ return (0, query_1.ledgerTip)(context); |
@@ -6,2 +6,3 @@ export { constitution } from './constitution'; | ||
export { genesisConfiguration } from './genesisConfiguration'; | ||
export { governanceProposals } from './governanceProposals'; | ||
export { ledgerTip } from './ledgerTip'; | ||
@@ -8,0 +9,0 @@ export { liveStakeDistribution } from './liveStakeDistribution'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.utxo = exports.stakePools = exports.rewardsProvenance = exports.rewardAccountSummaries = exports.protocolParameters = exports.proposedProtocolParameters = exports.projectedRewards = exports.networkTip = exports.networkStartTime = exports.networkBlockHeight = exports.liveStakeDistribution = exports.ledgerTip = exports.genesisConfiguration = exports.eraSummaries = exports.eraStart = exports.epoch = exports.constitution = void 0; | ||
exports.utxo = exports.stakePools = exports.rewardsProvenance = exports.rewardAccountSummaries = exports.protocolParameters = exports.proposedProtocolParameters = exports.projectedRewards = exports.networkTip = exports.networkStartTime = exports.networkBlockHeight = exports.liveStakeDistribution = exports.ledgerTip = exports.governanceProposals = exports.genesisConfiguration = exports.eraSummaries = exports.eraStart = exports.epoch = exports.constitution = void 0; | ||
var constitution_1 = require("./constitution"); | ||
@@ -14,2 +14,4 @@ Object.defineProperty(exports, "constitution", { enumerable: true, get: function () { return constitution_1.constitution; } }); | ||
Object.defineProperty(exports, "genesisConfiguration", { enumerable: true, get: function () { return genesisConfiguration_1.genesisConfiguration; } }); | ||
var governanceProposals_1 = require("./governanceProposals"); | ||
Object.defineProperty(exports, "governanceProposals", { enumerable: true, get: function () { return governanceProposals_1.governanceProposals; } }); | ||
var ledgerTip_1 = require("./ledgerTip"); | ||
@@ -16,0 +18,0 @@ Object.defineProperty(exports, "ledgerTip", { enumerable: true, get: function () { return ledgerTip_1.ledgerTip; } }); |
@@ -68,3 +68,3 @@ "use strict"; | ||
if (e.name === 'SyntaxError' && typeof e.message === 'string' && e.message.includes('forbidden constructor')) { | ||
const escaped = raw.replace(/"constructor"/g, '"constr"'); | ||
const escaped = raw.toString().replace(/"constructor"/g, '"constr"'); | ||
return this.sanitize(this.$.parse(escaped)); | ||
@@ -71,0 +71,0 @@ } |
{ | ||
"name": "@cardano-ogmios/client", | ||
"version": "6.7.0", | ||
"version": "6.8.0", | ||
"description": "TypeScript client library for Cardano Ogmios", | ||
@@ -50,3 +50,3 @@ "engines": { | ||
"dependencies": { | ||
"@cardano-ogmios/schema": "6.7.0", | ||
"@cardano-ogmios/schema": "6.8.0", | ||
"@cardanosolutions/json-bigint": "^1.0.1", | ||
@@ -53,0 +53,0 @@ "@types/json-bigint": "^1.0.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
189974
171
1936
+ Added@cardano-ogmios/schema@6.8.0(transitive)
- Removed@cardano-ogmios/schema@6.7.0(transitive)
Updated@cardano-ogmios/schema@6.8.0