From 6f4b4c386ace5e96778120fe0b45704a44297f7e Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 12 Dec 2019 23:35:58 +0000 Subject: [PATCH 1/2] add new type for get status (#15) --- CHANGELOG.md | 5 +++++ package.json | 2 +- src/interfaces/DragonchainClientInterfaces.ts | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b44c20..2c0036f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 4.2.1 + +- **Feature:** + - Typing support for indexingEnabled return from getStatus + ## 4.2.0 - **Feature:** diff --git a/package.json b/package.json index fbda044..3810463 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dragonchain-sdk", - "version": "4.2.0", + "version": "4.2.1", "description": "Dragonchain SDK for Node.JS and the Browser", "license": "Apache-2.0", "homepage": "https://github.com/dragonchain/dragonchain-sdk-javascript#readme", diff --git a/src/interfaces/DragonchainClientInterfaces.ts b/src/interfaces/DragonchainClientInterfaces.ts index 79dea69..dc576b7 100644 --- a/src/interfaces/DragonchainClientInterfaces.ts +++ b/src/interfaces/DragonchainClientInterfaces.ts @@ -651,6 +651,7 @@ export interface SmartContractList { * "hashAlgo": "blake2b", * "version": "3.3.1", * "encryptionAlgo": "secp256k1" + * "indexingEnabled": true * } * ``` */ @@ -683,6 +684,10 @@ export interface L1DragonchainStatusResult { * Encryption algorithm used for blocks on this chain */ encryptionAlgo: string; + /** + * Whether or not indexing is enabled on this chain + */ + indexingEnabled: boolean; } /** From 71a3315465f0fd1293b8a01f5d86831befb370e5 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 23 Dec 2019 17:19:19 +0000 Subject: [PATCH 2/2] deprecate morden (#16) --- CHANGELOG.md | 2 ++ src/interfaces/DragonchainClientInterfaces.ts | 2 -- src/services/dragonchain-client/DragonchainClient.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c0036f..6307d52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ - **Feature:** - Typing support for indexingEnabled return from getStatus +- **Development:** + - Deprecate ETC Testnet (Morden) ## 4.2.0 diff --git a/src/interfaces/DragonchainClientInterfaces.ts b/src/interfaces/DragonchainClientInterfaces.ts index dc576b7..4836a41 100644 --- a/src/interfaces/DragonchainClientInterfaces.ts +++ b/src/interfaces/DragonchainClientInterfaces.ts @@ -429,7 +429,6 @@ export interface ListAPIKeyResponse { * "eth_mainnet": "0xa5C32bE6323Cd5E2BC87468F5F2D91849cDb3A3D", * "eth_ropsten": "0x558c01dd95335749a29D040b24a183D8f7637BC8", * "etc_mainnet": "0xf7A802DB95D783254A1f29F47785BA080daBF1db", - * "etc_morden": "0x5dd0ac246B54f0267Ee4f33a074382D19AD0fa66", * "btc_mainnet": "17eK35gAem9Pezzs1RdntsoK9kK8dsF7DQ", * "btc_testnet3": "mrgFVPYFMojNsx3gih84PSbQCDiB4rnoQJ" * } @@ -439,7 +438,6 @@ export interface PublicBlockchainAddressListResponse { eth_mainnet?: string; etc_mainnet?: string; eth_ropsten?: string; - etc_morden?: string; btc_mainnet?: string; btc_testnet3?: string; } diff --git a/src/services/dragonchain-client/DragonchainClient.ts b/src/services/dragonchain-client/DragonchainClient.ts index 0b4c2f6..ae27eba 100644 --- a/src/services/dragonchain-client/DragonchainClient.ts +++ b/src/services/dragonchain-client/DragonchainClient.ts @@ -997,7 +997,7 @@ export class DragonchainClient { rpcAddress?: string; /** * The ethereum chain id to use. Will automatically derive this if providing a custom rpcAddress. This should be an integer. - * Without providing a custom rpcAddress, Dragonchain manages and supports: 1=ETH Mainnet|3=ETH Ropsten|61=ETC Mainnet|62=ETC Morden + * Without providing a custom rpcAddress, Dragonchain manages and supports: 1=ETH Mainnet|3=ETH Ropsten|61=ETC Mainnet */ chainId?: number; }) => { @@ -1028,7 +1028,7 @@ export class DragonchainClient { rpcAddress?: string; /** * The ethereum chain id to use. Will automatically derive this if providing a custom rpcAddress. This should be an integer. - * Without providing a custom rpcAddress, Dragonchain manages and supports: 1=ETH Mainnet|3=ETH Ropsten|61=ETC Mainnet|2=ETC Morden + * Without providing a custom rpcAddress, Dragonchain manages and supports: 1=ETH Mainnet|3=ETH Ropsten|61=ETC Mainnet */ chainId?: number; }) => { @@ -1362,7 +1362,7 @@ export class DragonchainClient { /** * The ethereum network that the transaction is for (ETH/ETC mainnet or testnet) */ - network: 'ETH_MAINNET' | 'ETH_ROPSTEN' | 'ETC_MAINNET' | 'ETC_MORDEN'; + network: 'ETH_MAINNET' | 'ETH_ROPSTEN' | 'ETC_MAINNET'; /** * The (hex-encoded) address to send the transaction to */