Skip to content

Commit

Permalink
Merge pull request #95 from blockfrost/new-types
Browse files Browse the repository at this point in the history
update: types
  • Loading branch information
mmahut authored Jul 16, 2021
2 parents 18318e4 + 1cb3687 commit 4907e3c
Show file tree
Hide file tree
Showing 59 changed files with 210 additions and 383 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/meow-npm-3.7.0-5653cc98af-65a412e5d0.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/pify-npm-2.3.0-8b63310934-9503aaeaf4.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .yarn/install-state.gz
Binary file not shown.
6 changes: 6 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.9.1]

### Changed

- "@blockfrost/openapi": "0.1.24",

## [0.9.0]

### ⚠️ Breaking change
Expand Down
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blockfrost/blockfrost-js",
"version": "0.9.0",
"version": "0.9.1",
"description": "A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API",
"keywords": [
"blockfrost",
Expand All @@ -25,7 +25,7 @@
"test": "jest -c ./jest.config.js"
},
"dependencies": {
"@blockfrost/openapi": "^0.1.23",
"@blockfrost/openapi": "0.1.24",
"@emurgo/cardano-serialization-lib-nodejs": "^7.1.0",
"axios": "^0.21.1",
"form-data": "^4.0.0",
Expand All @@ -34,30 +34,30 @@
},
"devDependencies": {
"@swc-node/jest": "^1.3.1",
"@types/jest": "^26.0.23",
"@types/node": "^15.12.4",
"@types/url-join": "^4.0.0",
"@typescript-eslint/eslint-plugin": "^4.28.0",
"@typescript-eslint/parser": "4.28.0",
"@types/jest": "^26.0.24",
"@types/node": "^16.3.2",
"@types/url-join": "^4.0.1",
"@typescript-eslint/eslint-plugin": "^4.28.3",
"@typescript-eslint/parser": "4.28.3",
"axios-mock-adapter": "^1.19.0",
"babel-plugin-module-resolver": "^4.1.0",
"dotenv": "^10.0.0",
"eslint": "7.29.0",
"eslint": "7.30.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-import": "2.23.4",
"eslint-plugin-prettier": "3.4.0",
"jest": "^27.0.6",
"jest-extended": "^0.11.5",
"openapi-typescript": "^4.0.1",
"prettier": "2.3.1",
"openapi-typescript": "^4.0.2",
"prettier": "2.3.2",
"rimraf": "^3.0.2",
"ts-jest": "^27.0.3",
"ts-node": "10.0.0",
"ts-node-dev": "^1.1.6",
"ts-node": "10.1.0",
"ts-node-dev": "^1.1.8",
"tsc-watch": "^4.4.0",
"tsconfig-paths": "^3.9.0",
"typedoc": "^0.21.0",
"typescript": "4.3.4"
"tsconfig-paths": "^3.10.1",
"typedoc": "^0.21.4",
"typescript": "4.3.5"
},
"engines": {
"node": ">=14"
Expand Down
50 changes: 39 additions & 11 deletions src/types/OpenApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2479,17 +2479,19 @@ export interface components {
stake_address: string;
/** Bech32 prefix of the pool delegated to */
pool_id: string;
/** Amount of delegated stake in Lovelaces */
/** Amount of active delegated stake in Lovelaces */
amount: string;
}[];
epoch_stake_pool_content: {
/** Stake address */
stake_address: string;
/** Amount of delegated stake in Lovelaces */
/** Amount of active delegated stake in Lovelaces */
amount: string;
}[];
epoch_block_content: string[];
epoch_param_content: {
/** Epoch number */
epoch: number;
/** The linear factor for the minimum fee calculation for given epoch */
min_fee_a: number;
/** The constant factor for the minimum fee calculation */
Expand Down Expand Up @@ -2517,7 +2519,7 @@ export interface components {
/** Percentage of blocks produced by federated nodes */
decentralisation_param: number;
/** Seed for extra entropy */
extra_entropy: { [key: string]: any } | null;
extra_entropy: { [key: string]: unknown } | null;
/** Accepted protocol major version */
protocol_major_ver: number;
/** Accepted protocol minor version */
Expand All @@ -2530,6 +2532,8 @@ export interface components {
nonce: string;
};
tx_content: {
/** Transaction hash */
hash: string;
/** Block hash */
block: string;
/** Block number */
Expand Down Expand Up @@ -2572,6 +2576,8 @@ export interface components {
asset_mint_or_burn_count: number;
};
tx_content_utxo: {
/** Transaction hash */
hash: string;
inputs: {
/** Input address */
address: string;
Expand All @@ -2581,6 +2587,10 @@ export interface components {
/** The quantity of the unit */
quantity: string;
}[];
/** Hash of the UTXO transaction */
tx_hash: string;
/** UTXO index in the transaction */
output_index: number;
}[];
outputs: {
/** Output address */
Expand Down Expand Up @@ -2686,7 +2696,7 @@ export interface components {
/** Metadata label */
label: string;
/** Content of the metadata */
json_metadata: string | { [key: string]: any };
json_metadata: string | { [key: string]: unknown };
}[];
tx_content_metadata_cbor: {
/** Metadata label */
Expand All @@ -2695,6 +2705,8 @@ export interface components {
cbor_metadata: string | null;
}[];
account_content: {
/** Bech32 stake address */
stake_address: string;
/** Registration state of an account */
active: boolean;
/** Epoch of the most recent action - registration or deregistration */
Expand Down Expand Up @@ -2769,6 +2781,8 @@ export interface components {
amount: string;
}[];
address_content: {
/** Bech32 encoded addresses */
address: string;
amount: {
/** The unit of the value */
unit: string;
Expand All @@ -2781,6 +2795,8 @@ export interface components {
type: "byron" | "shelley";
};
address_content_total: {
/** Bech32 encoded address */
address: string;
received_sum: {
/** The unit of the value */
unit: string;
Expand Down Expand Up @@ -2835,8 +2851,8 @@ export interface components {
/** Content of the JSON metadata */
json_metadata:
| (Partial<string> &
Partial<{ [key: string]: any }> &
Partial<{ [key: string]: any }[]> &
Partial<{ [key: string]: unknown }> &
Partial<{ [key: string]: unknown }[]> &
Partial<number> &
Partial<number> &
Partial<boolean>)
Expand Down Expand Up @@ -2872,6 +2888,10 @@ export interface components {
fees: string;
}[];
pool: {
/** Bech32 pool ID */
pool_id: string;
/** Hexadecimal pool ID. */
hex: string;
/** VRF key hash */
vrf_key: string;
/** Total minted blocks */
Expand All @@ -2897,6 +2917,10 @@ export interface components {
retirement: string[];
};
pool_metadata: {
/** Bech32 pool ID */
pool_id: string;
/** Hexadecimal pool ID */
hex: string;
/** URL to the stake pool metadata */
url: string | null;
/** Hash of the metadata file */
Expand Down Expand Up @@ -2950,6 +2974,8 @@ export interface components {
quantity: string;
}[];
asset: {
/** Hex-encoded asset full name */
asset: string;
/** Policy ID of the asset */
policy_id: string;
/** Hex-encoded asset name of the asset */
Expand Down Expand Up @@ -3032,6 +3058,8 @@ export interface components {
endpoint: string;
}[];
nutlink_address: {
/** Bech32 encoded address */
address: string;
/** URL do specific metadata file */
metadata_url: string;
/** Hash of the metadata file */
Expand All @@ -3048,8 +3076,8 @@ export interface components {
tx_index: number;
/** Content of the ticker */
payload: (Partial<string> &
Partial<{ [key: string]: any }> &
Partial<{ [key: string]: any }[]> &
Partial<{ [key: string]: unknown }> &
Partial<{ [key: string]: unknown }[]> &
Partial<number> &
Partial<number> &
Partial<boolean>) & { [key: string]: any };
Expand All @@ -3073,13 +3101,13 @@ export interface components {
tx_index: number;
/** Content of the ticker */
payload: (Partial<string> &
Partial<{ [key: string]: any }> &
Partial<{ [key: string]: any }[]> &
Partial<{ [key: string]: unknown }> &
Partial<{ [key: string]: unknown }[]> &
Partial<number> &
Partial<number> &
Partial<boolean>) & { [key: string]: any };
}[];
empty_object: { [key: string]: any };
empty_object: { [key: string]: unknown };
};
responses: {
/** Usage limit reached */
Expand Down
Loading

0 comments on commit 4907e3c

Please sign in to comment.