Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ package-lock.json
.node_repl_history

# Built TS
dist/
# dist/
docs/

# ide
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 4.4.0

- **Feature:**
- Add support for querying subsequent interchain verifications
- **Bug Fix:**
- Fix type import on `L2BlockAtRest` from current_ddds to current_ddss

## 4.3.4

- **Development:**
Expand Down
33 changes: 33 additions & 0 deletions dist/errors/FailureByDesign.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
"use strict";
/**
* Copyright 2020 Dragonchain, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
/**
* Error class thrown by the SDK
* All expected errors thrown by the SDK should be an instantiation of this class, with different codes as appropriate
*/
var FailureByDesign = /** @class */ (function (_super) {
tslib_1.__extends(FailureByDesign, _super);
function FailureByDesign(code, message) {
var _this = _super.call(this, message) || this;
_this.code = code;
_this.message = message || 'Failure By Design';
return _this;
}
return FailureByDesign;
}(Error));
exports.FailureByDesign = FailureByDesign;
40 changes: 40 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
"use strict";
/**
* Copyright 2020 Dragonchain, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
var DragonchainClient_1 = require("./services/dragonchain-client/DragonchainClient");
exports.createClient = DragonchainClient_1.createClient;
/**
* @hidden
*/
var nullLog = function () { }; // eslint-disable-line @typescript-eslint/no-empty-function
/**
* @hidden
*/
var logger; // singleton logger
exports.logger = logger;
/**
* Set the logger that the sdk uses
*
* By default this logger will do nothing, thorwing away all logs
* @param newLogger a logger object that implements functions for: `log`, `info`, `warn`, `error`, and `debug`
*/
var setLogger = function (newLogger) {
if (newLogger === void 0) { newLogger = { log: nullLog, info: nullLog, warn: nullLog, error: nullLog, debug: nullLog }; }
exports.logger = logger = newLogger;
};
exports.setLogger = setLogger;
setLogger(); // actually initialize the singleton on initial import
17 changes: 17 additions & 0 deletions dist/interfaces/DragonchainClientInterfaces.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"use strict";
/**
* Copyright 2020 Dragonchain, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
Loading