@typus/typus-sdk 1.0.32 → 1.0.34
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function getDepositorLeaderBoard(start?: string, end?: string, step?: number): Promise<LeaderBoard[]>;
|
|
2
|
-
export declare function getBidderLeaderBoard(
|
|
2
|
+
export declare function getBidderLeaderBoard(startTimestamp?: string, end?: string): Promise<LeaderBoard[]>;
|
|
3
3
|
interface LeaderBoard {
|
|
4
4
|
user: string;
|
|
5
5
|
score: number;
|
|
@@ -37,52 +37,34 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getBidderLeaderBoard = exports.getDepositorLeaderBoard = void 0;
|
|
40
|
-
var apiUrl = "https://app.sentio.xyz/api/v1/
|
|
40
|
+
var apiUrl = "https://app.sentio.xyz/api/v1/insights/wayne/typus/query";
|
|
41
41
|
var headers = {
|
|
42
42
|
"api-key": "oBOW8DsO1izVrINCy6Tmxga9YcWeOL87O",
|
|
43
43
|
"Content-Type": "application/json",
|
|
44
44
|
};
|
|
45
45
|
var depositorRequestData = {
|
|
46
|
+
timeRange: {
|
|
47
|
+
start: "-7d",
|
|
48
|
+
end: "now",
|
|
49
|
+
step: 3600,
|
|
50
|
+
},
|
|
51
|
+
limit: 200,
|
|
46
52
|
queries: [
|
|
47
53
|
{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
{
|
|
60
|
-
query: "callPortfolioCompound",
|
|
61
|
-
alias: "",
|
|
62
|
-
id: "b",
|
|
63
|
-
labelSelector: {},
|
|
64
|
-
aggregate: {
|
|
65
|
-
op: "SUM",
|
|
66
|
-
grouping: ["user"],
|
|
54
|
+
metricsQuery: {
|
|
55
|
+
query: "depositTvl",
|
|
56
|
+
alias: "",
|
|
57
|
+
id: "a",
|
|
58
|
+
labelSelector: {
|
|
59
|
+
// user: "0x823bd0c4d601d625b1b1555dbe17da495db71070a4365205467838aecc32cbad",
|
|
60
|
+
},
|
|
61
|
+
aggregate: {
|
|
62
|
+
op: "SUM",
|
|
63
|
+
grouping: ["user"],
|
|
64
|
+
},
|
|
67
65
|
},
|
|
68
|
-
functions: [],
|
|
69
|
-
disabled: true,
|
|
70
66
|
},
|
|
71
67
|
],
|
|
72
|
-
formulas: [
|
|
73
|
-
{
|
|
74
|
-
expression: "a+b",
|
|
75
|
-
alias: "Score",
|
|
76
|
-
id: "A",
|
|
77
|
-
disabled: false,
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
timeRange: {
|
|
81
|
-
start: "now",
|
|
82
|
-
end: "now",
|
|
83
|
-
step: 1,
|
|
84
|
-
},
|
|
85
|
-
samplesLimit: 200,
|
|
86
68
|
};
|
|
87
69
|
function getDepositorLeaderBoard(start, end, step) {
|
|
88
70
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -112,11 +94,17 @@ function getDepositorLeaderBoard(start, end, step) {
|
|
|
112
94
|
case 2:
|
|
113
95
|
data = _a.sent();
|
|
114
96
|
samples = data.results[0].matrix.samples;
|
|
115
|
-
leader_board = samples
|
|
97
|
+
leader_board = samples
|
|
98
|
+
.map(function (element) {
|
|
116
99
|
// console.log("metric:", element.metric, "values: ", element.values);
|
|
117
100
|
// console.log("user:", element.metric.labels.user, "score: ", element.values.at(-1).value);
|
|
118
|
-
|
|
119
|
-
|
|
101
|
+
var sum = element.values.reduce(function (acc, curr) { return acc + curr.value / 1000000000 / 24 / 7 / 2; }, 0);
|
|
102
|
+
return {
|
|
103
|
+
user: element.metric.labels.user,
|
|
104
|
+
score: sum,
|
|
105
|
+
};
|
|
106
|
+
})
|
|
107
|
+
.filter(function (element) { return element.score != 0; });
|
|
120
108
|
leader_board.sort(function (a, b) { return b.score - a.score; });
|
|
121
109
|
// console.log(leader_board);
|
|
122
110
|
return [2 /*return*/, leader_board];
|
|
@@ -127,43 +115,42 @@ function getDepositorLeaderBoard(start, end, step) {
|
|
|
127
115
|
}
|
|
128
116
|
exports.getDepositorLeaderBoard = getDepositorLeaderBoard;
|
|
129
117
|
var bidderRequestData = {
|
|
118
|
+
timeRange: {
|
|
119
|
+
start: "-7d",
|
|
120
|
+
end: "now",
|
|
121
|
+
step: 3600,
|
|
122
|
+
},
|
|
123
|
+
limit: 200,
|
|
130
124
|
queries: [
|
|
131
125
|
{
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
126
|
+
metricsQuery: {
|
|
127
|
+
query: "totalNewBid",
|
|
128
|
+
alias: "",
|
|
129
|
+
id: "a",
|
|
130
|
+
labelSelector: {},
|
|
131
|
+
aggregate: {
|
|
132
|
+
op: "SUM",
|
|
133
|
+
grouping: ["user"],
|
|
134
|
+
},
|
|
135
|
+
functions: [],
|
|
136
|
+
disabled: false,
|
|
139
137
|
},
|
|
140
|
-
|
|
141
|
-
disabled: false,
|
|
138
|
+
dataSource: "METRICS",
|
|
142
139
|
},
|
|
143
140
|
],
|
|
144
|
-
formulas: [],
|
|
145
|
-
timeRange: {
|
|
146
|
-
start: "now",
|
|
147
|
-
end: "now",
|
|
148
|
-
step: 1,
|
|
149
|
-
},
|
|
150
|
-
samplesLimit: 200,
|
|
151
141
|
};
|
|
152
|
-
function getBidderLeaderBoard(
|
|
142
|
+
function getBidderLeaderBoard(startTimestamp, end) {
|
|
153
143
|
return __awaiter(this, void 0, void 0, function () {
|
|
154
144
|
var jsonData, response, data, samples, leader_board;
|
|
155
145
|
return __generator(this, function (_a) {
|
|
156
146
|
switch (_a.label) {
|
|
157
147
|
case 0:
|
|
158
|
-
if (
|
|
159
|
-
bidderRequestData.timeRange.start =
|
|
148
|
+
if (startTimestamp) {
|
|
149
|
+
bidderRequestData.timeRange.start = startTimestamp;
|
|
160
150
|
}
|
|
161
151
|
if (end) {
|
|
162
152
|
bidderRequestData.timeRange.end = end;
|
|
163
153
|
}
|
|
164
|
-
if (step) {
|
|
165
|
-
bidderRequestData.timeRange.step = step;
|
|
166
|
-
}
|
|
167
154
|
jsonData = JSON.stringify(bidderRequestData);
|
|
168
155
|
return [4 /*yield*/, fetch(apiUrl, {
|
|
169
156
|
method: "POST",
|
|
@@ -177,11 +164,22 @@ function getBidderLeaderBoard(start, end, step) {
|
|
|
177
164
|
case 2:
|
|
178
165
|
data = _a.sent();
|
|
179
166
|
samples = data.results[0].matrix.samples;
|
|
180
|
-
leader_board = samples
|
|
167
|
+
leader_board = samples
|
|
168
|
+
.map(function (element) {
|
|
181
169
|
// console.log("metric:", element.metric, "values: ", element.values);
|
|
182
170
|
// console.log("user:", element.metric.labels.user, "score: ", element.values.at(-1).value);
|
|
183
|
-
|
|
184
|
-
|
|
171
|
+
var a = 0;
|
|
172
|
+
var log_0 = element.values.at(0);
|
|
173
|
+
if (log_0.timestamp == startTimestamp) {
|
|
174
|
+
a = log_0.value;
|
|
175
|
+
}
|
|
176
|
+
var b = element.values.at(-1).value;
|
|
177
|
+
return {
|
|
178
|
+
user: element.metric.labels.user,
|
|
179
|
+
score: (b - a) / 1000000000,
|
|
180
|
+
};
|
|
181
|
+
})
|
|
182
|
+
.filter(function (element) { return element.score != 0; });
|
|
185
183
|
leader_board.sort(function (a, b) { return b.score - a.score; });
|
|
186
184
|
// console.log(leader_board);
|
|
187
185
|
return [2 /*return*/, leader_board];
|
|
@@ -191,7 +189,8 @@ function getBidderLeaderBoard(start, end, step) {
|
|
|
191
189
|
});
|
|
192
190
|
}
|
|
193
191
|
exports.getBidderLeaderBoard = getBidderLeaderBoard;
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
192
|
+
(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
193
|
+
return __generator(this, function (_a) {
|
|
194
|
+
return [2 /*return*/];
|
|
195
|
+
});
|
|
196
|
+
}); })();
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { JsonRpcProvider } from "@mysten/sui.js";
|
|
2
|
+
export interface Registry {
|
|
3
|
+
version: string;
|
|
4
|
+
numOfVault: string;
|
|
5
|
+
depositVaultRegistry: string;
|
|
6
|
+
bidVaultRegistry: string;
|
|
7
|
+
restrictActivationTimePeriod: {
|
|
8
|
+
fromTsMs: string;
|
|
9
|
+
toTsMs: string;
|
|
10
|
+
};
|
|
11
|
+
authority: string[];
|
|
12
|
+
}
|
|
13
|
+
export declare function getRegistry(provider: JsonRpcProvider, registry: string): Promise<Registry>;
|
|
14
|
+
export declare function getPackageVersion(provider: JsonRpcProvider, packageId: string): Promise<bigint>;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.getPackageVersion = exports.getRegistry = void 0;
|
|
40
|
+
var tools_1 = require("../tools");
|
|
41
|
+
function getRegistry(provider, registry) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
43
|
+
var result, _a, _b;
|
|
44
|
+
var _c, _d;
|
|
45
|
+
return __generator(this, function (_e) {
|
|
46
|
+
switch (_e.label) {
|
|
47
|
+
case 0: return [4 /*yield*/, provider.getObject({ id: registry, options: { showContent: true } })];
|
|
48
|
+
case 1:
|
|
49
|
+
result = _e.sent();
|
|
50
|
+
_c = {
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
version: result.data.content.fields.version,
|
|
53
|
+
// @ts-ignore
|
|
54
|
+
numOfVault: result.data.content.fields.num_of_vault,
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
depositVaultRegistry: result.data.content.fields.deposit_vault_registry.fields.id.id,
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
bidVaultRegistry: result.data.content.fields.bid_vault_registry.fields.id.id,
|
|
59
|
+
restrictActivationTimePeriod: {
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
fromTsMs: result.data.content.fields.restrict_activation_time_period.fields.from_ts_ms,
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
toTsMs: result.data.content.fields.restrict_activation_time_period.fields.to_ts_ms,
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
_b = (_a = provider).multiGetObjects;
|
|
67
|
+
_d = {};
|
|
68
|
+
return [4 /*yield*/, provider.getDynamicFields({
|
|
69
|
+
// @ts-ignore
|
|
70
|
+
parentId: result.data.content.fields.authority.fields.whitelist.fields.id.id,
|
|
71
|
+
})];
|
|
72
|
+
case 2: return [4 /*yield*/, _b.apply(_a, [(_d.ids = (_e.sent()).data.map(function (x) { return x.objectId; }),
|
|
73
|
+
_d.options = { showContent: true },
|
|
74
|
+
_d)])];
|
|
75
|
+
case 3: return [2 /*return*/, (_c.authority = (_e.sent()).map(function (x) {
|
|
76
|
+
// @ts-ignore
|
|
77
|
+
return x.data.content.fields.name;
|
|
78
|
+
}),
|
|
79
|
+
_c)];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
exports.getRegistry = getRegistry;
|
|
85
|
+
function getPackageVersion(provider, packageId) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
87
|
+
var packageData, version;
|
|
88
|
+
return __generator(this, function (_a) {
|
|
89
|
+
switch (_a.label) {
|
|
90
|
+
case 0: return [4 /*yield*/, provider.getObject({
|
|
91
|
+
id: packageId,
|
|
92
|
+
options: {
|
|
93
|
+
showContent: true,
|
|
94
|
+
},
|
|
95
|
+
})];
|
|
96
|
+
case 1:
|
|
97
|
+
packageData = _a.sent();
|
|
98
|
+
version = new RegExp("upgrade_registry[^\\[]+\\[[^\\[]+\\[([^\\]]+)\\]").exec(packageData.data.content.disassembled.typus_dov_single)[1];
|
|
99
|
+
return [2 /*return*/, (0, tools_1.U64FromBytes)(version.split(", ").reverse())];
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
exports.getPackageVersion = getPackageVersion;
|
|
@@ -254,7 +254,7 @@ function getNewBidTx(gasBudget, packageId, typeArguments, registry, index, price
|
|
|
254
254
|
var tx, _a, coin;
|
|
255
255
|
return __generator(this, function (_b) {
|
|
256
256
|
tx = new sui_js_1.TransactionBlock();
|
|
257
|
-
if (typeArguments[
|
|
257
|
+
if (typeArguments[1] == sui_js_1.SUI_TYPE_ARG) {
|
|
258
258
|
_a = __read(tx.splitCoins(tx.gas, [tx.pure(premium_required)]), 1), coin = _a[0];
|
|
259
259
|
tx.moveCall({
|
|
260
260
|
target: "".concat(packageId, "::typus_dov_single::new_bid"),
|
package/package.json
CHANGED
|
@@ -1,84 +1,84 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
2
|
+
"name": "@typus/typus-sdk",
|
|
3
|
+
"author": "Typus",
|
|
4
|
+
"description": "typus sdk",
|
|
5
|
+
"version": "1.0.34",
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"@mysten/sui.js": "^0.33.0",
|
|
8
|
+
"@types/node": "^17.0.0",
|
|
9
|
+
"bignumber.js": "^9.1.1",
|
|
10
|
+
"bs58": "^4.0.1",
|
|
11
|
+
"builtin-modules": "^1.1.1",
|
|
12
|
+
"chai": "^4.3.7",
|
|
13
|
+
"decimal.js": "^10.3.1",
|
|
14
|
+
"diff": "^4.0.2",
|
|
15
|
+
"dotenv": "^10.0.0",
|
|
16
|
+
"encrypt-with-password": "^1.0.0",
|
|
17
|
+
"escape-string-regexp": "^1.0.5",
|
|
18
|
+
"esprima": "^4.0.1",
|
|
19
|
+
"fetch": "^1.1.0",
|
|
20
|
+
"fs.realpath": "^1.0.0",
|
|
21
|
+
"function-bind": "^1.1.1",
|
|
22
|
+
"glob": "^7.2.0",
|
|
23
|
+
"has": "^1.0.3",
|
|
24
|
+
"has-flag": "^3.0.0",
|
|
25
|
+
"inflight": "^1.0.6",
|
|
26
|
+
"inherits": "^2.0.4",
|
|
27
|
+
"is-core-module": "^2.8.0",
|
|
28
|
+
"js-sha3": "^0.8.0",
|
|
29
|
+
"js-tokens": "^4.0.0",
|
|
30
|
+
"js-yaml": "^3.14.1",
|
|
31
|
+
"math-erf": "^1.0.0",
|
|
32
|
+
"minimatch": "^3.0.4",
|
|
33
|
+
"minimist": "^1.2.5",
|
|
34
|
+
"mkdirp": "^0.5.5",
|
|
35
|
+
"mocha": "^10.1.0",
|
|
36
|
+
"moment": "^2.29.4",
|
|
37
|
+
"node-cron": "^3.0.2",
|
|
38
|
+
"once": "^1.4.0",
|
|
39
|
+
"path-is-absolute": "^1.0.1",
|
|
40
|
+
"path-parse": "^1.0.7",
|
|
41
|
+
"random-bigint": "^0.0.1",
|
|
42
|
+
"resolve": "^1.20.0",
|
|
43
|
+
"rxjs": "^7.5.5",
|
|
44
|
+
"semver": "^5.7.1",
|
|
45
|
+
"sprintf-js": "^1.0.3",
|
|
46
|
+
"superstruct": "^0.16.0",
|
|
47
|
+
"supports-color": "^5.5.0",
|
|
48
|
+
"ts-mocha": "^10.0.0",
|
|
49
|
+
"tslib": "^1.14.1",
|
|
50
|
+
"tsutils": "^2.29.0",
|
|
51
|
+
"typed-rpc": "^3.0.0",
|
|
52
|
+
"wrappy": "^1.0.2",
|
|
53
|
+
"ws": "^8.11.0",
|
|
54
|
+
"xmlhttprequest": "^1.8.0"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@types/bs58": "^4.0.1",
|
|
58
|
+
"@types/expect": "^24.3.0",
|
|
59
|
+
"@types/mocha": "^9.0.0",
|
|
60
|
+
"@types/rx": "^4.1.2",
|
|
61
|
+
"prettier": "^2.5.1",
|
|
62
|
+
"tslint": "^6.1.3",
|
|
63
|
+
"tslint-config-prettier": "^1.18.0",
|
|
64
|
+
"typescript": "^4.5.4"
|
|
65
|
+
},
|
|
66
|
+
"main": "lib/index.js",
|
|
67
|
+
"files": [
|
|
68
|
+
"lib"
|
|
69
|
+
],
|
|
70
|
+
"types": "lib/index.d.ts",
|
|
71
|
+
"scripts": {
|
|
72
|
+
"test": "rm -rf lib && tsc && ts-mocha test/test*.ts",
|
|
73
|
+
"build": "rm -rf lib && tsc"
|
|
74
|
+
},
|
|
75
|
+
"repository": {
|
|
76
|
+
"type": "git",
|
|
77
|
+
"url": "git+https://github.com/Typus-Lab/typus-sdk.git"
|
|
78
|
+
},
|
|
79
|
+
"license": "ISC",
|
|
80
|
+
"bugs": {
|
|
81
|
+
"url": "https://github.com/Typus-Lab/typus-sdk/issues"
|
|
82
|
+
},
|
|
83
|
+
"homepage": "https://github.com/Typus-Lab/typus-sdk#readme"
|
|
84
84
|
}
|