@dolomite-exchange/zap-sdk 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/tsconfig.json +4 -5
- package/build/src/index.js +0 -49
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dolomite-exchange/zap-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "SDK for zapping any asset to any asset on Dolomite.",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "NODE_ENV=test jest --runInBand",
|
|
8
8
|
"coverage": "NODE_ENV=test jest --coverage --runInBand --forceExit --coverageReporters=text-lcov --detectOpenHandles | node_modules/.bin/coveralls",
|
|
9
|
-
"build": "rm -rf build/ && node_modules/.bin/tsc"
|
|
9
|
+
"build": "rm -rf build/ && node_modules/.bin/tsc --module commonjs"
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
package/tsconfig.json
CHANGED
|
@@ -8,29 +8,28 @@
|
|
|
8
8
|
"es2017",
|
|
9
9
|
"dom"
|
|
10
10
|
],
|
|
11
|
-
"outDir": "
|
|
11
|
+
"outDir": "dist",
|
|
12
12
|
"types": [
|
|
13
13
|
"node",
|
|
14
|
-
"jest"
|
|
14
|
+
"jest"
|
|
15
15
|
],
|
|
16
16
|
"skipLibCheck": true,
|
|
17
17
|
"declaration": true,
|
|
18
18
|
"downlevelIteration": true,
|
|
19
19
|
"esModuleInterop": true,
|
|
20
20
|
"forceConsistentCasingInFileNames": true,
|
|
21
|
-
"inlineSourceMap": true,
|
|
22
21
|
"noFallthroughCasesInSwitch": true,
|
|
23
22
|
"noImplicitAny": false,
|
|
24
23
|
"noImplicitReturns": true,
|
|
25
24
|
"noUnusedLocals": true,
|
|
26
25
|
"noUnusedParameters": true,
|
|
27
26
|
"resolveJsonModule": true,
|
|
27
|
+
"sourceMap": true,
|
|
28
28
|
"strict": true
|
|
29
29
|
},
|
|
30
30
|
"compileOnSave": true,
|
|
31
31
|
"include": [
|
|
32
|
-
"
|
|
33
|
-
"src/**/*.ts",
|
|
32
|
+
"src",
|
|
34
33
|
"environment.d.ts",
|
|
35
34
|
],
|
|
36
35
|
}
|
package/build/src/index.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
|
|
4
|
-
Copyright 2023 Dolomite.
|
|
5
|
-
|
|
6
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
you may not use this file except in compliance with the License.
|
|
8
|
-
You may obtain a copy of the License at
|
|
9
|
-
|
|
10
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
|
|
12
|
-
Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
See the License for the specific language governing permissions and
|
|
16
|
-
limitations under the License.
|
|
17
|
-
|
|
18
|
-
*/
|
|
19
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
20
|
-
if (k2 === undefined) k2 = k;
|
|
21
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
22
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
23
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
24
|
-
}
|
|
25
|
-
Object.defineProperty(o, k2, desc);
|
|
26
|
-
}) : (function(o, m, k, k2) {
|
|
27
|
-
if (k2 === undefined) k2 = k;
|
|
28
|
-
o[k2] = m[k];
|
|
29
|
-
}));
|
|
30
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
31
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
32
|
-
};
|
|
33
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
34
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
35
|
-
};
|
|
36
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.INTEGERS = exports.BigNumber = exports.DolomiteZap = void 0;
|
|
38
|
-
var bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
39
|
-
exports.BigNumber = bignumber_js_1.default;
|
|
40
|
-
bignumber_js_1.default.config({
|
|
41
|
-
EXPONENTIAL_AT: 1000,
|
|
42
|
-
DECIMAL_PLACES: 80,
|
|
43
|
-
});
|
|
44
|
-
var DolomiteZap_1 = require("./DolomiteZap");
|
|
45
|
-
Object.defineProperty(exports, "DolomiteZap", { enumerable: true, get: function () { return DolomiteZap_1.DolomiteZap; } });
|
|
46
|
-
__exportStar(require("./lib/ApiTypes"), exports);
|
|
47
|
-
var Constants_1 = require("./lib/Constants");
|
|
48
|
-
Object.defineProperty(exports, "INTEGERS", { enumerable: true, get: function () { return Constants_1.INTEGERS; } });
|
|
49
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7Ozs7Ozs7Ozs7O0VBZ0JFOzs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUVGLDhEQUFxQztBQVE1QixvQkFSRixzQkFBUyxDQVFFO0FBTmxCLHNCQUFTLENBQUMsTUFBTSxDQUFDO0lBQ2YsY0FBYyxFQUFFLElBQUk7SUFDcEIsY0FBYyxFQUFFLEVBQUU7Q0FDbkIsQ0FBQyxDQUFDO0FBRUgsNkNBQTRDO0FBQW5DLDBHQUFBLFdBQVcsT0FBQTtBQUVwQixpREFBK0I7QUFDL0IsNkNBQTJDO0FBQWxDLHFHQUFBLFFBQVEsT0FBQSJ9
|