Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cardano-sdk/blockfrost

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cardano-sdk/blockfrost - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

jest.config.js

2

dist/blockfrostProvider.js

@@ -67,3 +67,3 @@ "use strict";

const delegationAndRewards = {
delegate: accountResponse.pool_id,
delegate: accountResponse.pool_id || undefined,
rewards: Number(accountResponse.withdrawable_amount)

@@ -70,0 +70,0 @@ };

@@ -23,3 +23,3 @@ import { Responses } from '@blockfrost/blockfrost-js';

output_index: number;
data_hash: string;
data_hash: string | null;
collateral: boolean;

@@ -33,3 +33,3 @@ }[]) => OgmiosSchema.TxIn[];

quantity: string;
data_hash?: string;
data_hash?: string | null | undefined;
}[];

@@ -36,0 +36,0 @@ }[]) => OgmiosSchema.TxOut[];

{
"name": "@cardano-sdk/blockfrost",
"version": "0.1.2",
"version": "0.1.3",
"description": "Blockfrost provider for Cardano JS SDK",

@@ -18,3 +18,3 @@ "engines": {

"lint": "eslint --ignore-path ../../.eslintignore \"**/*.ts\"",
"test": "jest -c ./test/jest.config.js",
"test": "jest -c ./jest.config.js",
"coverage": "shx echo No coverage report for this package"

@@ -27,5 +27,5 @@ },

"@blockfrost/blockfrost-js": "^1.3.0",
"@cardano-ogmios/schema": "4.0.0",
"@cardano-sdk/core": "0.1.2"
"@cardano-ogmios/schema": "4.1.0",
"@cardano-sdk/core": "0.1.3"
}
}

@@ -84,3 +84,3 @@ import { CardanoProvider } from '@cardano-sdk/core';

const delegationAndRewards = {
delegate: accountResponse.pool_id,
delegate: accountResponse.pool_id || undefined,
rewards: Number(accountResponse.withdrawable_amount)

@@ -87,0 +87,0 @@ };

@@ -22,5 +22,5 @@ import { Responses } from '@blockfrost/blockfrost-js';

blockToTip: (block: Responses['block_content']): OgmiosSchema.Tip => ({
blockNo: block.height,
blockNo: block.height!,
hash: block.hash,
slot: block.slot
slot: block.slot!
}),

@@ -65,3 +65,3 @@

value: {
coins: Number(blockfrost.amount.find(({ unit }) => unit === 'lovelace').quantity),
coins: Number(blockfrost.amount.find(({ unit }) => unit === 'lovelace')!.quantity),
assets

@@ -68,0 +68,0 @@ }

@@ -94,3 +94,3 @@ /* eslint-disable max-len */

const client = blockfrostProvider({ projectId: apiKey, isTestnet: true });
const response = await client.stakePoolStats();
const response = await client.stakePoolStats!();

@@ -97,0 +97,0 @@ expect(response).toMatchObject<StakePoolStats>({

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

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