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.5.1-nightly.2 to 0.6.0-nightly.0

2

dist/cjs/blockfrostAssetProvider.js

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

};
const getAsset = async (assetId, extraData) => {
const getAsset = async ({ assetId, extraData }) => {
const response = await blockfrost.assetsById(assetId.toString());

@@ -50,0 +50,0 @@ const name = core_1.Asset.util.assetNameFromAssetId(assetId);

@@ -167,4 +167,4 @@ "use strict";

};
const blocksByHashes = async (hashes) => {
const responses = await Promise.all(hashes.map((hash) => blockfrost.blocks(hash.toString())));
const blocksByHashes = async ({ ids }) => {
const responses = await Promise.all(ids.map((id) => blockfrost.blocks(id.toString())));
return responses.map((response) => {

@@ -195,3 +195,3 @@ if (!response.epoch || !response.epoch_slot || !response.height || !response.slot || !response.block_vrf) {

};
const transactionsByHashes = async (hashes) => Promise.all(hashes.map((hash) => fetchTransaction(hash)));
const transactionsByHashes = async ({ ids }) => Promise.all(ids.map((id) => fetchTransaction(id)));
const transactionsByAddresses = async ({ addresses, sinceBlock }) => {

@@ -210,3 +210,4 @@ const addressTransactions = await Promise.all(addresses.map(async (address) => (0, util_1.fetchByAddressSequentially)({

: allTransactions;
return transactionsByHashes(addressTransactionsSinceBlock.map(({ tx_hash }) => core_1.Cardano.TransactionId(tx_hash)));
const ids = addressTransactionsSinceBlock.map(({ tx_hash }) => core_1.Cardano.TransactionId(tx_hash));
return transactionsByHashes({ ids });
};

@@ -213,0 +214,0 @@ return {

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

const blockfrostRewardsProvider = (blockfrost) => {
const rewardAccountBalance = async (rewardAccount) => {
const rewardAccountBalance = async ({ rewardAccount }) => {
try {

@@ -9,0 +9,0 @@ const accountResponse = await blockfrost.accounts(rewardAccount.toString());

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

const blockfrostTxSubmitProvider = (blockfrost) => {
const submitTx = async (signedTransaction) => {
const submitTx = async ({ signedTransaction }) => {
try {

@@ -10,0 +10,0 @@ await blockfrost.txSubmit(signedTransaction);

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

const blockfrostUtxoProvider = (blockfrost) => {
const utxoByAddresses = async (addresses) => {
const utxoByAddresses = async ({ addresses }) => {
const utxoResults = await Promise.all(addresses.map(async (address) => (0, util_1.fetchByAddressSequentially)({

@@ -10,0 +10,0 @@ address,

@@ -41,3 +41,3 @@ import { Asset, Cardano, ProviderUtil } from '@cardano-sdk/core';

};
const getAsset = async (assetId, extraData) => {
const getAsset = async ({ assetId, extraData }) => {
const response = await blockfrost.assetsById(assetId.toString());

@@ -44,0 +44,0 @@ const name = Asset.util.assetNameFromAssetId(assetId);

@@ -161,4 +161,4 @@ import { BlockfrostToCore } from './BlockfrostToCore';

};
const blocksByHashes = async (hashes) => {
const responses = await Promise.all(hashes.map((hash) => blockfrost.blocks(hash.toString())));
const blocksByHashes = async ({ ids }) => {
const responses = await Promise.all(ids.map((id) => blockfrost.blocks(id.toString())));
return responses.map((response) => {

@@ -189,3 +189,3 @@ if (!response.epoch || !response.epoch_slot || !response.height || !response.slot || !response.block_vrf) {

};
const transactionsByHashes = async (hashes) => Promise.all(hashes.map((hash) => fetchTransaction(hash)));
const transactionsByHashes = async ({ ids }) => Promise.all(ids.map((id) => fetchTransaction(id)));
const transactionsByAddresses = async ({ addresses, sinceBlock }) => {

@@ -204,3 +204,4 @@ const addressTransactions = await Promise.all(addresses.map(async (address) => fetchByAddressSequentially({

: allTransactions;
return transactionsByHashes(addressTransactionsSinceBlock.map(({ tx_hash }) => Cardano.TransactionId(tx_hash)));
const ids = addressTransactionsSinceBlock.map(({ tx_hash }) => Cardano.TransactionId(tx_hash));
return transactionsByHashes({ ids });
};

@@ -207,0 +208,0 @@ return {

import { formatBlockfrostError, healthCheck } from './util';
export const blockfrostRewardsProvider = (blockfrost) => {
const rewardAccountBalance = async (rewardAccount) => {
const rewardAccountBalance = async ({ rewardAccount }) => {
try {

@@ -5,0 +5,0 @@ const accountResponse = await blockfrost.accounts(rewardAccount.toString());

import { Cardano } from '@cardano-sdk/core';
import { healthCheck } from './util';
export const blockfrostTxSubmitProvider = (blockfrost) => {
const submitTx = async (signedTransaction) => {
const submitTx = async ({ signedTransaction }) => {
try {

@@ -6,0 +6,0 @@ await blockfrost.txSubmit(signedTransaction);

import { BlockfrostToCore } from './BlockfrostToCore';
import { fetchByAddressSequentially, healthCheck } from './util';
export const blockfrostUtxoProvider = (blockfrost) => {
const utxoByAddresses = async (addresses) => {
const utxoByAddresses = async ({ addresses }) => {
const utxoResults = await Promise.all(addresses.map(async (address) => fetchByAddressSequentially({

@@ -6,0 +6,0 @@ address,

{
"name": "@cardano-sdk/blockfrost",
"version": "0.5.1-nightly.2",
"version": "0.6.0-nightly.0",
"description": "Blockfrost provider for Cardano JS SDK",

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

"@blockfrost/blockfrost-js": "npm:blockfrost-js-ratelimited@2.0.4",
"@cardano-sdk/core": "^0.5.1-nightly.2",
"@cardano-sdk/core": "^0.6.0-nightly.0",
"@cardano-sdk/util": "^0.6.0-nightly.0",

@@ -74,3 +74,3 @@ "lodash": "^4.17.21",

],
"gitHead": "4e0f9298a05b232c7374974ce0874e77ee7a0558"
"gitHead": "0686b239003868ee7ff019f1c480e4c13f7a63b9"
}

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

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

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