Skip to content

Commit 7e82e49

Browse files
Merge pull request #21 from dragonchain/master
Release 4.3.0
2 parents a732ac8 + 60f2cdb commit 7e82e49

File tree

16 files changed

+922
-655
lines changed

16 files changed

+922
-655
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 4.3.0
4+
5+
- **Feature**
6+
- Add option for deleting smart contract by transaction type
7+
- Add support for publishing signed interchain transactions
8+
- Export `DragonchainClient` type for external use
9+
- **Development:**
10+
- Update development dependencies
11+
- Remove codeowners
12+
313
## 4.2.1
414

515
- **Feature:**

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2019 Dragonchain, Inc. or its affiliates. All Rights Reserved.
1+
Copyright 2020 Dragonchain, Inc. or its affiliates. All Rights Reserved.
22

33
Apache License
44
Version 2.0, January 2004

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dragonchain-sdk",
3-
"version": "4.2.1",
3+
"version": "4.3.0",
44
"description": "Dragonchain SDK for Node.JS and the Browser",
55
"license": "Apache-2.0",
66
"homepage": "https://github.com/dragonchain/dragonchain-sdk-javascript#readme",
@@ -80,25 +80,25 @@
8080
"tslib": "^1.10.0"
8181
},
8282
"devDependencies": {
83-
"@types/chai": "^4.2.6",
83+
"@types/chai": "^4.2.8",
8484
"@types/ini": "^1.3.30",
85-
"@types/mocha": "^5.2.7",
86-
"@types/node": "^12.12.14",
85+
"@types/mocha": "^7.0.1",
86+
"@types/node": "^13.7.0",
8787
"@types/node-fetch": "^2.5.4",
8888
"@types/sinon": "^7.5.1",
8989
"@types/sinon-chai": "^3.2.3",
90-
"@typescript-eslint/eslint-plugin": "^2.10.0",
91-
"@typescript-eslint/parser": "^2.10.0",
90+
"@typescript-eslint/eslint-plugin": "^2.19.0",
91+
"@typescript-eslint/parser": "^2.19.0",
9292
"chai": "^4.2.0",
93-
"eslint": "^6.7.2",
94-
"eslint-config-prettier": "^6.7.0",
95-
"mocha": "^6.2.2",
96-
"nyc": "^14.1.1",
93+
"eslint": "^6.8.0",
94+
"eslint-config-prettier": "^6.10.0",
95+
"mocha": "^7.0.1",
96+
"nyc": "^15.0.0",
9797
"prettier": "^1.19.1",
98-
"sinon": "^7.5.0",
99-
"sinon-chai": "^3.3.0",
100-
"ts-node": "^8.5.4",
101-
"typedoc": "^0.15.3",
102-
"typescript": "^3.7.3"
98+
"sinon": "^8.1.1",
99+
"sinon-chai": "^3.4.0",
100+
"ts-node": "^8.6.2",
101+
"typedoc": "^0.16.9",
102+
"typescript": "^3.7.5"
103103
}
104104
}

src/errors/FailureByDesign.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Dragonchain, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Dragonchain, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Dragonchain, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Dragonchain, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { createClient } from './services/dragonchain-client/DragonchainClient';
17+
import { createClient, DragonchainClient as Client } from './services/dragonchain-client/DragonchainClient';
1818

1919
/**
2020
* @hidden
@@ -38,3 +38,4 @@ const setLogger = (newLogger: any = { log: nullLog, info: nullLog, warn: nullLog
3838
setLogger(); // actually initialize the singleton on initial import
3939

4040
export { createClient, setLogger, logger };
41+
export type DragonchainClient = typeof Client;

src/interfaces/DragonchainClientInterfaces.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Dragonchain, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Dragonchain, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -316,6 +316,20 @@ export interface InterchainNetworkList {
316316
interchains: BitcoinInterchainNetwork[] | EthereumInterchainNetwork[] | BinanceInterchainNetwork[];
317317
}
318318

319+
/**
320+
* Transaction hash (or equivalent) of a published interchain transaction
321+
* @example
322+
* ```json
323+
*
324+
* {
325+
* "transaction": "0x37d1b1032288f7b434973c7840123bbf1acdb5ef5e40dda94257208ccf6c0c9f"
326+
* }
327+
* ```
328+
*/
329+
export interface PublishedInterchainTransaction {
330+
transaction: string;
331+
}
332+
319333
/**
320334
* @example
321335
* ```json

src/services/config-service/ConfigCient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Dragonchain, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Dragonchain, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/services/config-service/ConfigClient.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Dragonchain, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Dragonchain, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/services/config-service/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 Dragonchain, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2020 Dragonchain, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)