@cardano-sdk/blockfrost
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -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
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
141341
853
+ Added@cardano-ogmios/schema@4.1.0(transitive)
+ Added@cardano-sdk/core@0.1.3(transitive)
+ Added@emurgo/cardano-serialization-lib-browser@9.1.0(transitive)
+ Added@emurgo/cardano-serialization-lib-nodejs@9.1.0(transitive)
- Removed@cardano-ogmios/schema@4.0.0(transitive)
- Removed@cardano-sdk/core@0.1.2(transitive)
- Removed@emurgo/cardano-serialization-lib-browser@8.0.0(transitive)
- Removed@emurgo/cardano-serialization-lib-nodejs@8.0.0(transitive)
Updated@cardano-ogmios/schema@4.1.0
Updated@cardano-sdk/core@0.1.3