New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cardano-ogmios/repl

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cardano-ogmios/repl - npm Package Compare versions

Comparing version 5.6.0 to 6.0.0-latest

dist/index.d.ts

5

package.json
{
"name": "@cardano-ogmios/repl",
"version": "5.6.0",
"version": "6.0.0-latest",
"description": "REPL for Cardano Ogmios",

@@ -42,4 +42,3 @@ "engines": {

"dependencies": {
"@cardano-ogmios/client": "5.6.0",
"chalk": "^4.1.0",
"@cardano-ogmios/client": "6.0.0-latest",
"yargs-parser": "^20.2.7"

@@ -46,0 +45,0 @@ },

@@ -12,11 +12,9 @@ # Cardano Ogmios TypeScript Client Packages - REPL

## Build From Source
See instructions in [Workspace root]
[ChainSyncClient]: ../client/src/ChainSync/ChainSyncClient.ts
[latest release]: https://github.com/cardanosolutions/ogmios/releases
[Workspace root]: ../..
## Example
## Example
``` js
ogmios> await currentEpoch()
ogmios> await epoch()
256

@@ -26,72 +24,23 @@

{
hash: '41364e89e44370a009f083ce9963261aabf6138db519b039012232bf40f187f8',
id: '41364e89e44370a009f083ce9963261aabf6138db519b039012232bf40f187f8',
slot: 25541023
}
ogmios> await currentProtocolParameters()
ogmios> await protocolParameters()
{
poolDeposit: 500000000,
protocolVersion: { minor: 0, major: 4 },
minUtxoValue: 1000000,
minFeeConstant: 155381,
maxTxSize: 16384,
minPoolCost: 340000000,
maxBlockBodySize: 65536,
extraEntropy: 'neutral',
minFeeCoefficient: 44,
poolInfluence: '3/10',
maxBlockHeaderSize: 1100,
stakeKeyDeposit: 2000000,
decentralizationParameter: '1/50',
desiredNumberOfPools: 500,
poolRetirementEpochBound: 18,
monetaryExpansion: '3/1000',
treasuryExpansion: '1/5'
minFeeConstant: { lovelace: 155381n },
maxBlockBodySize: { bytes: 90112 },
maxBlockHeaderSize: { bytes: 1100 },
maxTransactionSize: { bytes: 16384 },
stakeCredentialDeposit: { lovelace: 2000000n },
stakePoolDeposit: { lovelace: 500000000n },
stakePoolRetirementEpochBound: 18,
...
}
```
ogmios> chainSync.startSync()
ogmios> ROLL BACKWARD
Point
{
hash: '21d0038f32a5e969caf110970a0657267e685c6492e0ce7d048ec601a29fcc2e',
slot: 25551317
}
Tip
{
hash: 'eb3725d8065683a5b760aabc158283ee580928e736d6f8dacc840c567236dedf',
blockNo: 5527800,
slot: 25551480
}
[ChainSyncClient]: ../client/src/ChainSync/ChainSyncClient.ts
[latest release]: https://github.com/cardanosolutions/ogmios/releases
[Workspace root]: ../..
ogmios> ROLL FORWARD
Block
{
mary: {
body: [
{
body: {
withdrawals: {},
validityInterval: { invalidHereafter: 100000000, invalidBefore: null },
inputs: [
{
index: 1,
txId: '83e246ea8def447f71a981307e99e9455bad761e2817320319daed2b42a6bec2'
}
],
fee: 178233,
certificates: [],
outputs: [
{
value: { coins: 754010453, assets: {} },
address: 'DdzFFzCqrhsrZ7RaLpeWen2bQCKyp2iPcAvE9HmB18VJh39dixDfGdXcxQRS9vUfU3jCv5qMrrTz62MpWXefmWouxDBmVeLyDjLNxHJi'
}
],
mint: { coins: 0, assets: {} },
update: null
},
witness: {
script: {},
address: [
{
signature: 'vMpZfapEPMeA7JA7CAa5JYT8XrsYxw+3o/VseAmPG86xtNfB07mvbXV5ed8Pccmi3MgB0RIc4hJ2SaKmaYwyBg==',
...
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc