@injectivelabs/sdk-ts 1.14.17 → 1.14.18
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/dist/cjs/client/olp/grpc/OLPGrpcApi.d.ts +1 -1
- package/dist/cjs/client/olp/grpc/OLPGrpcApi.js +23 -23
- package/dist/cjs/client/olp/grpc/transformers/index.d.ts +1 -1
- package/dist/cjs/client/olp/grpc/types/index.d.ts +1 -1
- package/dist/cjs/core/accounts/PrivateKey.d.ts +1 -0
- package/dist/cjs/core/accounts/PrivateKey.d.ts.map +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.d.ts +6 -0
- package/dist/cjs/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.d.ts.map +1 -1
- package/dist/cjs/core/tx/arbitrary.d.ts +1 -0
- package/dist/cjs/core/tx/arbitrary.d.ts.map +1 -1
- package/dist/cjs/utils/buff.d.ts +1 -0
- package/dist/cjs/utils/buff.d.ts.map +1 -1
- package/dist/cjs/utils/crypto.d.ts +1 -0
- package/dist/cjs/utils/crypto.d.ts.map +1 -1
- package/dist/esm/client/olp/grpc/OLPGrpcApi.d.ts +1 -1
- package/dist/esm/client/olp/grpc/OLPGrpcApi.js +1 -1
- package/dist/esm/client/olp/grpc/transformers/index.d.ts +1 -1
- package/dist/esm/client/olp/grpc/types/index.d.ts +1 -1
- package/dist/esm/core/accounts/PrivateKey.d.ts +1 -0
- package/dist/esm/core/accounts/PrivateKey.d.ts.map +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.d.ts +6 -0
- package/dist/esm/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.d.ts.map +1 -1
- package/dist/esm/core/tx/arbitrary.d.ts +1 -0
- package/dist/esm/core/tx/arbitrary.d.ts.map +1 -1
- package/dist/esm/utils/buff.d.ts +1 -0
- package/dist/esm/utils/buff.d.ts.map +1 -1
- package/dist/esm/utils/crypto.d.ts +1 -0
- package/dist/esm/utils/crypto.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InjectiveDmmRpc } from '@injectivelabs/
|
|
1
|
+
import { InjectiveDmmRpc } from '@injectivelabs/olp-proto-ts';
|
|
2
2
|
import BaseGrpcConsumer from '../../base/BaseGrpcConsumer.js';
|
|
3
3
|
export declare class OLPGrpcApi extends BaseGrpcConsumer {
|
|
4
4
|
protected module: string;
|
|
@@ -14,18 +14,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.OLPGrpcApi = void 0;
|
|
16
16
|
const exceptions_1 = require("@injectivelabs/exceptions");
|
|
17
|
-
const
|
|
17
|
+
const olp_proto_ts_1 = require("@injectivelabs/olp-proto-ts");
|
|
18
18
|
const BaseGrpcConsumer_js_1 = __importDefault(require("../../base/BaseGrpcConsumer.js"));
|
|
19
19
|
const index_js_1 = require("./transformers/index.js");
|
|
20
20
|
class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
21
21
|
constructor(endpoint) {
|
|
22
22
|
super(endpoint);
|
|
23
23
|
this.module = exceptions_1.IndexerErrorModule.OLP;
|
|
24
|
-
this.client = new
|
|
24
|
+
this.client = new olp_proto_ts_1.InjectiveDmmRpc.InjectiveDmmV2RPCClientImpl(this.getGrpcWebImpl(endpoint));
|
|
25
25
|
}
|
|
26
26
|
fetchEpochs(status) {
|
|
27
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
const request =
|
|
28
|
+
const request = olp_proto_ts_1.InjectiveDmmRpc.GetEpochsRequest.create();
|
|
29
29
|
if (status) {
|
|
30
30
|
request.status = status;
|
|
31
31
|
}
|
|
@@ -34,7 +34,7 @@ class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
|
34
34
|
return index_js_1.DmmGrpcTransformer.epochsResponseToEpochs(response);
|
|
35
35
|
}
|
|
36
36
|
catch (e) {
|
|
37
|
-
if (e instanceof
|
|
37
|
+
if (e instanceof olp_proto_ts_1.InjectiveDmmRpc.GrpcWebError) {
|
|
38
38
|
throw new exceptions_1.GrpcUnaryRequestException(new Error(e.toString()), {
|
|
39
39
|
code: e.code,
|
|
40
40
|
context: 'GetEpochs',
|
|
@@ -51,14 +51,14 @@ class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
|
51
51
|
}
|
|
52
52
|
fetchMarketRewards(epochId) {
|
|
53
53
|
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
const request =
|
|
54
|
+
const request = olp_proto_ts_1.InjectiveDmmRpc.GetMarketRewardsRequest.create();
|
|
55
55
|
request.epochId = epochId.toString();
|
|
56
56
|
try {
|
|
57
57
|
const response = yield this.retry(() => this.client.GetMarketRewards(request));
|
|
58
58
|
return index_js_1.DmmGrpcTransformer.marketRewardsResponseToMarketRewards(response);
|
|
59
59
|
}
|
|
60
60
|
catch (e) {
|
|
61
|
-
if (e instanceof
|
|
61
|
+
if (e instanceof olp_proto_ts_1.InjectiveDmmRpc.GrpcWebError) {
|
|
62
62
|
throw new exceptions_1.GrpcUnaryRequestException(new Error(e.toString()), {
|
|
63
63
|
code: e.code,
|
|
64
64
|
context: 'GetMarketRewards',
|
|
@@ -75,8 +75,8 @@ class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
|
75
75
|
}
|
|
76
76
|
fetchEligibleAddresses(_a) {
|
|
77
77
|
return __awaiter(this, arguments, void 0, function* ({ epochId, page, }) {
|
|
78
|
-
const request =
|
|
79
|
-
|
|
78
|
+
const request = olp_proto_ts_1.InjectiveDmmRpc.GetEligibleAddressesRequest.create();
|
|
79
|
+
olp_proto_ts_1.InjectiveDmmRpc.GetRewardsDistributionRequest;
|
|
80
80
|
request.epochId = epochId;
|
|
81
81
|
if (page) {
|
|
82
82
|
request.page = page;
|
|
@@ -86,7 +86,7 @@ class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
|
86
86
|
return index_js_1.DmmGrpcTransformer.eligibleAddressesResponseToEligibleAddresses(response);
|
|
87
87
|
}
|
|
88
88
|
catch (e) {
|
|
89
|
-
if (e instanceof
|
|
89
|
+
if (e instanceof olp_proto_ts_1.InjectiveDmmRpc.GrpcWebError) {
|
|
90
90
|
throw new exceptions_1.GrpcUnaryRequestException(new Error(e.toString()), {
|
|
91
91
|
code: e.code,
|
|
92
92
|
context: 'GetEligibleAddresses',
|
|
@@ -103,7 +103,7 @@ class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
|
103
103
|
}
|
|
104
104
|
fetchEpochScores(_a) {
|
|
105
105
|
return __awaiter(this, arguments, void 0, function* ({ epochId, page, }) {
|
|
106
|
-
const request =
|
|
106
|
+
const request = olp_proto_ts_1.InjectiveDmmRpc.GetEpochScoresRequest.create();
|
|
107
107
|
request.epochId = epochId;
|
|
108
108
|
if (page) {
|
|
109
109
|
request.page = page;
|
|
@@ -113,7 +113,7 @@ class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
|
113
113
|
return index_js_1.DmmGrpcTransformer.epochScoresResponseToEpochScores(response);
|
|
114
114
|
}
|
|
115
115
|
catch (e) {
|
|
116
|
-
if (e instanceof
|
|
116
|
+
if (e instanceof olp_proto_ts_1.InjectiveDmmRpc.GrpcWebError) {
|
|
117
117
|
throw new exceptions_1.GrpcUnaryRequestException(new Error(e.toString()), {
|
|
118
118
|
code: e.code,
|
|
119
119
|
context: 'GetEpochScores',
|
|
@@ -130,7 +130,7 @@ class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
|
130
130
|
}
|
|
131
131
|
fetchEpochScoresHistory(_a) {
|
|
132
132
|
return __awaiter(this, arguments, void 0, function* ({ epochId, accountAddress, page, }) {
|
|
133
|
-
const request =
|
|
133
|
+
const request = olp_proto_ts_1.InjectiveDmmRpc.GetEpochScoresHistoryRequest.create();
|
|
134
134
|
request.epochId = epochId;
|
|
135
135
|
request.accountAddress = accountAddress;
|
|
136
136
|
if (page) {
|
|
@@ -141,7 +141,7 @@ class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
|
141
141
|
return index_js_1.DmmGrpcTransformer.epochScoresHistoryResponseToEpochScoresHistory(response);
|
|
142
142
|
}
|
|
143
143
|
catch (e) {
|
|
144
|
-
if (e instanceof
|
|
144
|
+
if (e instanceof olp_proto_ts_1.InjectiveDmmRpc.GrpcWebError) {
|
|
145
145
|
throw new exceptions_1.GrpcUnaryRequestException(new Error(e.toString()), {
|
|
146
146
|
code: e.code,
|
|
147
147
|
context: 'GetEpochScoresHistory',
|
|
@@ -158,7 +158,7 @@ class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
|
158
158
|
}
|
|
159
159
|
fetchTotalScores(_a) {
|
|
160
160
|
return __awaiter(this, arguments, void 0, function* ({ epochId, marketId, page, }) {
|
|
161
|
-
const request =
|
|
161
|
+
const request = olp_proto_ts_1.InjectiveDmmRpc.GetTotalScoresRequest.create();
|
|
162
162
|
request.epochId = epochId;
|
|
163
163
|
request.marketId = marketId;
|
|
164
164
|
if (page) {
|
|
@@ -169,7 +169,7 @@ class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
|
169
169
|
return index_js_1.DmmGrpcTransformer.totalScoresResponseToTotalScores(response);
|
|
170
170
|
}
|
|
171
171
|
catch (e) {
|
|
172
|
-
if (e instanceof
|
|
172
|
+
if (e instanceof olp_proto_ts_1.InjectiveDmmRpc.GrpcWebError) {
|
|
173
173
|
throw new exceptions_1.GrpcUnaryRequestException(new Error(e.toString()), {
|
|
174
174
|
code: e.code,
|
|
175
175
|
context: 'GetTotalScores',
|
|
@@ -186,7 +186,7 @@ class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
|
186
186
|
}
|
|
187
187
|
fetchTotalScoresHistory(_a) {
|
|
188
188
|
return __awaiter(this, arguments, void 0, function* ({ epochId, marketId, accountAddress, page, }) {
|
|
189
|
-
const request =
|
|
189
|
+
const request = olp_proto_ts_1.InjectiveDmmRpc.GetTotalScoresHistoryRequest.create();
|
|
190
190
|
request.epochId = epochId;
|
|
191
191
|
request.marketId = marketId;
|
|
192
192
|
request.accountAddress = accountAddress;
|
|
@@ -198,7 +198,7 @@ class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
|
198
198
|
return index_js_1.DmmGrpcTransformer.totalScoresHistoryResponseToTotalScoresHistory(response);
|
|
199
199
|
}
|
|
200
200
|
catch (e) {
|
|
201
|
-
if (e instanceof
|
|
201
|
+
if (e instanceof olp_proto_ts_1.InjectiveDmmRpc.GrpcWebError) {
|
|
202
202
|
throw new exceptions_1.GrpcUnaryRequestException(new Error(e.toString()), {
|
|
203
203
|
code: e.code,
|
|
204
204
|
context: 'GetTotalScoresHistory',
|
|
@@ -215,7 +215,7 @@ class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
|
215
215
|
}
|
|
216
216
|
fetchRewardsDistribution(_a) {
|
|
217
217
|
return __awaiter(this, arguments, void 0, function* ({ epochId, height, page, }) {
|
|
218
|
-
const request =
|
|
218
|
+
const request = olp_proto_ts_1.InjectiveDmmRpc.GetRewardsDistributionRequest.create();
|
|
219
219
|
request.epochId = epochId;
|
|
220
220
|
if (height) {
|
|
221
221
|
request.height = height;
|
|
@@ -228,7 +228,7 @@ class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
|
228
228
|
return index_js_1.DmmGrpcTransformer.rewardsDistributionResponseToRewardsDistribution(response);
|
|
229
229
|
}
|
|
230
230
|
catch (e) {
|
|
231
|
-
if (e instanceof
|
|
231
|
+
if (e instanceof olp_proto_ts_1.InjectiveDmmRpc.GrpcWebError) {
|
|
232
232
|
throw new exceptions_1.GrpcUnaryRequestException(new Error(e.toString()), {
|
|
233
233
|
code: e.code,
|
|
234
234
|
context: 'GetRewardsDistribution',
|
|
@@ -245,7 +245,7 @@ class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
|
245
245
|
}
|
|
246
246
|
fetchAccountVolumes(_a) {
|
|
247
247
|
return __awaiter(this, arguments, void 0, function* ({ epochId, accountAddress, }) {
|
|
248
|
-
const request =
|
|
248
|
+
const request = olp_proto_ts_1.InjectiveDmmRpc.GetAccountVolumesRequest.create();
|
|
249
249
|
request.epochId = epochId;
|
|
250
250
|
request.accountAddress = accountAddress;
|
|
251
251
|
try {
|
|
@@ -253,7 +253,7 @@ class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
|
253
253
|
return index_js_1.DmmGrpcTransformer.accountVolumesResponseToAccountVolumes(response);
|
|
254
254
|
}
|
|
255
255
|
catch (e) {
|
|
256
|
-
if (e instanceof
|
|
256
|
+
if (e instanceof olp_proto_ts_1.InjectiveDmmRpc.GrpcWebError) {
|
|
257
257
|
throw new exceptions_1.GrpcUnaryRequestException(new Error(e.toString()), {
|
|
258
258
|
code: e.code,
|
|
259
259
|
context: 'GetAccountVolumes',
|
|
@@ -270,7 +270,7 @@ class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
|
270
270
|
}
|
|
271
271
|
fetchRewardsEligibility(_a) {
|
|
272
272
|
return __awaiter(this, arguments, void 0, function* ({ epochId, accountAddress, }) {
|
|
273
|
-
const request =
|
|
273
|
+
const request = olp_proto_ts_1.InjectiveDmmRpc.GetRewardsEligibilityRequest.create();
|
|
274
274
|
if (epochId) {
|
|
275
275
|
request.epochId = epochId;
|
|
276
276
|
}
|
|
@@ -282,7 +282,7 @@ class OLPGrpcApi extends BaseGrpcConsumer_js_1.default {
|
|
|
282
282
|
return index_js_1.DmmGrpcTransformer.rewardsEligibilityResponseToRewardsEligibility(response);
|
|
283
283
|
}
|
|
284
284
|
catch (e) {
|
|
285
|
-
if (e instanceof
|
|
285
|
+
if (e instanceof olp_proto_ts_1.InjectiveDmmRpc.GrpcWebError) {
|
|
286
286
|
throw new exceptions_1.GrpcUnaryRequestException(new Error(e.toString()), {
|
|
287
287
|
code: e.code,
|
|
288
288
|
context: 'GetRewardsEligibility',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InjectiveDmmRpc } from '@injectivelabs/
|
|
1
|
+
import { InjectiveDmmRpc } from '@injectivelabs/olp-proto-ts';
|
|
2
2
|
import { GrpcEpochV2, EpochV2, MarketReward, EligibleAddress, EligibleAddresses, EpochScoresHistory, GrpcMarketReward, GrpcEligibleAddress, GrpcTotalScore, EpochScores, TotalScore, AccountVolume, TotalScores, GrpcEpochScore, EpochScore, TotalScoresHistory, GrpcRewardDistribution, RewardsDistribution, RewardDistribution, RewardsEligibility, GrpcAccountVolume } from '../types/index.js';
|
|
3
3
|
export declare class DmmGrpcTransformer {
|
|
4
4
|
static epochsResponseToEpochs(response: InjectiveDmmRpc.GetEpochsResponse): EpochV2[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrivateKey.d.ts","sourceRoot":"","sources":["../../../../src/core/accounts/PrivateKey.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PrivateKey.d.ts","sourceRoot":"","sources":["../../../../src/core/accounts/PrivateKey.ts"],"names":[],"mappings":";;AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAOtC,OAAO,EACL,iBAAiB,EAElB,MAAM,8BAA8B,CAAA;AAMrC;;;;GAIG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAQ;IAEtB,OAAO;IAIP;;;OAGG;IACH,MAAM,CAAC,QAAQ,IAAI;QAAE,UAAU,EAAE,UAAU,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE;IAU/D;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,CACjB,KAAK,EAAE,MAAM,EACb,IAAI,GAAE,MAAgC,GACrC,UAAU;IAMb;;;;;;;OAOG;IACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU;IAIrD;;;;;OAKG;IACH,M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O;IA+EX;;;;;;;;;SASK;WACS,wBAAwB,CAAC,EACrC,SAAS,EACT,OAAO,EACP,SAAS,GACV,EAAE;QACD,SAAS,EAAE,MAAM,CAAA;QACjB,OAAO,EAAE,MAAM,CAAA;QACf,SAAS,EAAE,MAAM,CAAA;KAClB,GAAG,OAAO;CAOZ"}
|
|
@@ -29,6 +29,8 @@ export default class MsgInstantSpotMarketLaunch extends MsgBase<MsgInstantSpotMa
|
|
|
29
29
|
minPriceTickSize: string;
|
|
30
30
|
minQuantityTickSize: string;
|
|
31
31
|
minNotional: string;
|
|
32
|
+
baseDecimals: number;
|
|
33
|
+
quoteDecimals: number;
|
|
32
34
|
'@type': string;
|
|
33
35
|
};
|
|
34
36
|
toAmino(): {
|
|
@@ -41,6 +43,8 @@ export default class MsgInstantSpotMarketLaunch extends MsgBase<MsgInstantSpotMa
|
|
|
41
43
|
min_price_tick_size: string;
|
|
42
44
|
min_quantity_tick_size: string;
|
|
43
45
|
min_notional: string;
|
|
46
|
+
base_decimals: number;
|
|
47
|
+
quote_decimals: number;
|
|
44
48
|
};
|
|
45
49
|
};
|
|
46
50
|
toWeb3(): {
|
|
@@ -51,6 +55,8 @@ export default class MsgInstantSpotMarketLaunch extends MsgBase<MsgInstantSpotMa
|
|
|
51
55
|
min_price_tick_size: string;
|
|
52
56
|
min_quantity_tick_size: string;
|
|
53
57
|
min_notional: string;
|
|
58
|
+
base_decimals: number;
|
|
59
|
+
quote_decimals: number;
|
|
54
60
|
'@type': string;
|
|
55
61
|
};
|
|
56
62
|
toDirectSign(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MsgInstantSpotMarketLaunch.d.ts","sourceRoot":"","sources":["../../../../../../src/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAEzE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAG1C,MAAM,CAAC,OAAO,WAAW,0BAA0B,CAAC;IAClD,UAAiB,MAAM;QACrB,QAAQ,EAAE,MAAM,CAAA;QAChB,MAAM,EAAE;YACN,MAAM,EAAE,MAAM,CAAA;YACd,MAAM,EAAE,MAAM,CAAA;YACd,SAAS,EAAE,MAAM,CAAA;YACjB,UAAU,EAAE,MAAM,CAAA;YAClB,WAAW,EAAE,MAAM,CAAA;YACnB,gBAAgB,EAAE,MAAM,CAAA;YACxB,mBAAmB,EAAE,MAAM,CAAA;SAC5B,CAAA;KACF;IAED,KAAY,KAAK,GAAG,0BAA0B,CAAC,0BAA0B,CAAA;CAC1E;AAkBD;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,OAAO,CAC7D,0BAA0B,CAAC,MAAM,EACjC,0BAA0B,CAAC,KAAK,CACjC;IACC,MAAM,CAAC,QAAQ,CACb,MAAM,EAAE,0BAA0B,CAAC,MAAM,GACxC,0BAA0B;IAItB,OAAO;IAsBP,MAAM
|
|
1
|
+
{"version":3,"file":"MsgInstantSpotMarketLaunch.d.ts","sourceRoot":"","sources":["../../../../../../src/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAEzE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAG1C,MAAM,CAAC,OAAO,WAAW,0BAA0B,CAAC;IAClD,UAAiB,MAAM;QACrB,QAAQ,EAAE,MAAM,CAAA;QAChB,MAAM,EAAE;YACN,MAAM,EAAE,MAAM,CAAA;YACd,MAAM,EAAE,MAAM,CAAA;YACd,SAAS,EAAE,MAAM,CAAA;YACjB,UAAU,EAAE,MAAM,CAAA;YAClB,WAAW,EAAE,MAAM,CAAA;YACnB,gBAAgB,EAAE,MAAM,CAAA;YACxB,mBAAmB,EAAE,MAAM,CAAA;SAC5B,CAAA;KACF;IAED,KAAY,KAAK,GAAG,0BAA0B,CAAC,0BAA0B,CAAA;CAC1E;AAkBD;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,OAAO,CAC7D,0BAA0B,CAAC,MAAM,EACjC,0BAA0B,CAAC,KAAK,CACjC;IACC,MAAM,CAAC,QAAQ,CACb,MAAM,EAAE,0BAA0B,CAAC,MAAM,GACxC,0BAA0B;IAItB,OAAO;IAsBP,MAAM;;;;;;;;;;;;IASN,OAAO;;;;;;;;;;;;;;IAaP,MAAM;;;;;;;;;;;;IAUN,YAAY;;;;IASZ,QAAQ,IAAI,UAAU;CAK9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arbitrary.d.ts","sourceRoot":"","sources":["../../../../src/core/tx/arbitrary.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"arbitrary.d.ts","sourceRoot":"","sources":["../../../../src/core/tx/arbitrary.ts"],"names":[],"mappings":";;AAGA,eAAO,MAAM,wBAAwB,YAAa,MAAM,UAAU,MAAM;;;;;;;;;;;;;;;;;;;;CA4BvE,CAAA"}
|
package/dist/cjs/utils/buff.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buff.d.ts","sourceRoot":"","sources":["../../../src/utils/buff.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"buff.d.ts","sourceRoot":"","sources":["../../../src/utils/buff.ts"],"names":[],"mappings":";;AAAA,eAAO,MAAM,SAAS,QAAS,MAAM,WAEpC,CAAA;AAED,eAAO,MAAM,WAAW,QAAS,MAAM,WAItC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../../src/utils/crypto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../../src/utils/crypto.ts"],"names":[],"mappings":";;AAOA,eAAO,MAAM,SAAS,SAAU,MAAM,KAAG,MAExC,CAAA;AAED,eAAO,MAAM,MAAM,SAAU,UAAU,KAAG,UAEzC,CAAA;AAED,eAAO,MAAM,SAAS,SAAU,UAAU,KAAG,UAE5C,CAAA;AAED,eAAO,MAAM,qBAAqB,eAAgB,UAAU,KAAG,UAE9D,CAAA;AAED,eAAO,MAAM,yBAAyB,mBACpB,MAAM,KACrB,UAMF,CAAA;AAED,eAAO,MAAM,2BAA2B,eAAgB,UAAU,KAAG,MAEpE,CAAA;AAED,eAAO,MAAM,+BAA+B,mBAC1B,MAAM,KACrB,MAIF,CAAA;AAED,eAAO,MAAM,UAAU,YAAa,GAAG,WAMpC,CAAA;AAEH,eAAO,MAAM,WAAW,YAAa,GAAG,WAMrC,CAAA;AAEH,wBAAgB,eAAe,CAAC,GAAG,EAAE,UAAU,UAE9C;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,cAE1C;AAED,wBAAgB,gBAAgB,CAAC,gBAAgB,EAAE,MAAM,UAcxD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InjectiveDmmRpc } from '@injectivelabs/
|
|
1
|
+
import { InjectiveDmmRpc } from '@injectivelabs/olp-proto-ts';
|
|
2
2
|
import BaseGrpcConsumer from '../../base/BaseGrpcConsumer.js';
|
|
3
3
|
export declare class OLPGrpcApi extends BaseGrpcConsumer {
|
|
4
4
|
protected module: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UnspecifiedErrorCode, GrpcUnaryRequestException, IndexerErrorModule, } from '@injectivelabs/exceptions';
|
|
2
|
-
import { InjectiveDmmRpc } from '@injectivelabs/
|
|
2
|
+
import { InjectiveDmmRpc } from '@injectivelabs/olp-proto-ts';
|
|
3
3
|
import BaseGrpcConsumer from '../../base/BaseGrpcConsumer.js';
|
|
4
4
|
import { DmmGrpcTransformer } from './transformers/index.js';
|
|
5
5
|
export class OLPGrpcApi extends BaseGrpcConsumer {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InjectiveDmmRpc } from '@injectivelabs/
|
|
1
|
+
import { InjectiveDmmRpc } from '@injectivelabs/olp-proto-ts';
|
|
2
2
|
import { GrpcEpochV2, EpochV2, MarketReward, EligibleAddress, EligibleAddresses, EpochScoresHistory, GrpcMarketReward, GrpcEligibleAddress, GrpcTotalScore, EpochScores, TotalScore, AccountVolume, TotalScores, GrpcEpochScore, EpochScore, TotalScoresHistory, GrpcRewardDistribution, RewardsDistribution, RewardDistribution, RewardsEligibility, GrpcAccountVolume } from '../types/index.js';
|
|
3
3
|
export declare class DmmGrpcTransformer {
|
|
4
4
|
static epochsResponseToEpochs(response: InjectiveDmmRpc.GetEpochsResponse): EpochV2[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrivateKey.d.ts","sourceRoot":"","sources":["../../../../src/core/accounts/PrivateKey.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PrivateKey.d.ts","sourceRoot":"","sources":["../../../../src/core/accounts/PrivateKey.ts"],"names":[],"mappings":";;AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAOtC,OAAO,EACL,iBAAiB,EAElB,MAAM,8BAA8B,CAAA;AAMrC;;;;GAIG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAQ;IAEtB,OAAO;IAIP;;;OAGG;IACH,MAAM,CAAC,QAAQ,IAAI;QAAE,UAAU,EAAE,UAAU,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE;IAU/D;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,CACjB,KAAK,EAAE,MAAM,EACb,IAAI,GAAE,MAAgC,GACrC,UAAU;IAMb;;;;;;;OAOG;IACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU;IAIrD;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU;IAa3D;;;Q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,GACV,EAAE;QACD,SAAS,EAAE,MAAM,CAAA;QACjB,OAAO,EAAE,MAAM,CAAA;QACf,SAAS,EAAE,MAAM,CAAA;KAClB,GAAG,OAAO;CAOZ"}
|
|
@@ -29,6 +29,8 @@ export default class MsgInstantSpotMarketLaunch extends MsgBase<MsgInstantSpotMa
|
|
|
29
29
|
minPriceTickSize: string;
|
|
30
30
|
minQuantityTickSize: string;
|
|
31
31
|
minNotional: string;
|
|
32
|
+
baseDecimals: number;
|
|
33
|
+
quoteDecimals: number;
|
|
32
34
|
'@type': string;
|
|
33
35
|
};
|
|
34
36
|
toAmino(): {
|
|
@@ -41,6 +43,8 @@ export default class MsgInstantSpotMarketLaunch extends MsgBase<MsgInstantSpotMa
|
|
|
41
43
|
min_price_tick_size: string;
|
|
42
44
|
min_quantity_tick_size: string;
|
|
43
45
|
min_notional: string;
|
|
46
|
+
base_decimals: number;
|
|
47
|
+
quote_decimals: number;
|
|
44
48
|
};
|
|
45
49
|
};
|
|
46
50
|
toWeb3(): {
|
|
@@ -51,6 +55,8 @@ export default class MsgInstantSpotMarketLaunch extends MsgBase<MsgInstantSpotMa
|
|
|
51
55
|
min_price_tick_size: string;
|
|
52
56
|
min_quantity_tick_size: string;
|
|
53
57
|
min_notional: string;
|
|
58
|
+
base_decimals: number;
|
|
59
|
+
quote_decimals: number;
|
|
54
60
|
'@type': string;
|
|
55
61
|
};
|
|
56
62
|
toDirectSign(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MsgInstantSpotMarketLaunch.d.ts","sourceRoot":"","sources":["../../../../../../src/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAEzE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAG1C,MAAM,CAAC,OAAO,WAAW,0BAA0B,CAAC;IAClD,UAAiB,MAAM;QACrB,QAAQ,EAAE,MAAM,CAAA;QAChB,MAAM,EAAE;YACN,MAAM,EAAE,MAAM,CAAA;YACd,MAAM,EAAE,MAAM,CAAA;YACd,SAAS,EAAE,MAAM,CAAA;YACjB,UAAU,EAAE,MAAM,CAAA;YAClB,WAAW,EAAE,MAAM,CAAA;YACnB,gBAAgB,EAAE,MAAM,CAAA;YACxB,mBAAmB,EAAE,MAAM,CAAA;SAC5B,CAAA;KACF;IAED,KAAY,KAAK,GAAG,0BAA0B,CAAC,0BAA0B,CAAA;CAC1E;AAkBD;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,OAAO,CAC7D,0BAA0B,CAAC,MAAM,EACjC,0BAA0B,CAAC,KAAK,CACjC;IACC,MAAM,CAAC,QAAQ,CACb,MAAM,EAAE,0BAA0B,CAAC,MAAM,GACxC,0BAA0B;IAItB,OAAO;IAsBP,MAAM
|
|
1
|
+
{"version":3,"file":"MsgInstantSpotMarketLaunch.d.ts","sourceRoot":"","sources":["../../../../../../src/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAEzE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAG1C,MAAM,CAAC,OAAO,WAAW,0BAA0B,CAAC;IAClD,UAAiB,MAAM;QACrB,QAAQ,EAAE,MAAM,CAAA;QAChB,MAAM,EAAE;YACN,MAAM,EAAE,MAAM,CAAA;YACd,MAAM,EAAE,MAAM,CAAA;YACd,SAAS,EAAE,MAAM,CAAA;YACjB,UAAU,EAAE,MAAM,CAAA;YAClB,WAAW,EAAE,MAAM,CAAA;YACnB,gBAAgB,EAAE,MAAM,CAAA;YACxB,mBAAmB,EAAE,MAAM,CAAA;SAC5B,CAAA;KACF;IAED,KAAY,KAAK,GAAG,0BAA0B,CAAC,0BAA0B,CAAA;CAC1E;AAkBD;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,OAAO,CAC7D,0BAA0B,CAAC,MAAM,EACjC,0BAA0B,CAAC,KAAK,CACjC;IACC,MAAM,CAAC,QAAQ,CACb,MAAM,EAAE,0BAA0B,CAAC,MAAM,GACxC,0BAA0B;IAItB,OAAO;IAsBP,MAAM;;;;;;;;;;;;IASN,OAAO;;;;;;;;;;;;;;IAaP,MAAM;;;;;;;;;;;;IAUN,YAAY;;;;IASZ,QAAQ,IAAI,UAAU;CAK9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arbitrary.d.ts","sourceRoot":"","sources":["../../../../src/core/tx/arbitrary.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"arbitrary.d.ts","sourceRoot":"","sources":["../../../../src/core/tx/arbitrary.ts"],"names":[],"mappings":";;AAGA,eAAO,MAAM,wBAAwB,YAAa,MAAM,UAAU,MAAM;;;;;;;;;;;;;;;;;;;;CA4BvE,CAAA"}
|
package/dist/esm/utils/buff.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buff.d.ts","sourceRoot":"","sources":["../../../src/utils/buff.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"buff.d.ts","sourceRoot":"","sources":["../../../src/utils/buff.ts"],"names":[],"mappings":";;AAAA,eAAO,MAAM,SAAS,QAAS,MAAM,WAEpC,CAAA;AAED,eAAO,MAAM,WAAW,QAAS,MAAM,WAItC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../../src/utils/crypto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../../src/utils/crypto.ts"],"names":[],"mappings":";;AAOA,eAAO,MAAM,SAAS,SAAU,MAAM,KAAG,MAExC,CAAA;AAED,eAAO,MAAM,MAAM,SAAU,UAAU,KAAG,UAEzC,CAAA;AAED,eAAO,MAAM,SAAS,SAAU,UAAU,KAAG,UAE5C,CAAA;AAED,eAAO,MAAM,qBAAqB,eAAgB,UAAU,KAAG,UAE9D,CAAA;AAED,eAAO,MAAM,yBAAyB,mBACpB,MAAM,KACrB,UAMF,CAAA;AAED,eAAO,MAAM,2BAA2B,eAAgB,UAAU,KAAG,MAEpE,CAAA;AAED,eAAO,MAAM,+BAA+B,mBAC1B,MAAM,KACrB,MAIF,CAAA;AAED,eAAO,MAAM,UAAU,YAAa,GAAG,WAMpC,CAAA;AAEH,eAAO,MAAM,WAAW,YAAa,GAAG,WAMrC,CAAA;AAEH,wBAAgB,eAAe,CAAC,GAAG,EAAE,UAAU,UAE9C;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,cAE1C;AAED,wBAAgB,gBAAgB,CAAC,gBAAgB,EAAE,MAAM,UAcxD"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/sdk-ts",
|
|
3
3
|
"description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.",
|
|
4
|
-
"version": "1.14.
|
|
4
|
+
"version": "1.14.18",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": {
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"@cosmjs/proto-signing": "^0.32.3",
|
|
40
40
|
"@cosmjs/stargate": "^0.32.3",
|
|
41
41
|
"@ethersproject/bytes": "^5.7.0",
|
|
42
|
-
"@injectivelabs/core-proto-ts": "
|
|
43
|
-
"@injectivelabs/dmm-proto-ts": "1.0.20",
|
|
42
|
+
"@injectivelabs/core-proto-ts": "1.13.3",
|
|
44
43
|
"@injectivelabs/exceptions": "^1.14.17",
|
|
45
44
|
"@injectivelabs/grpc-web": "^0.0.1",
|
|
46
45
|
"@injectivelabs/grpc-web-node-http-transport": "^0.0.2",
|
|
47
46
|
"@injectivelabs/grpc-web-react-native-transport": "^0.0.2",
|
|
48
|
-
"@injectivelabs/indexer-proto-ts": "1.
|
|
49
|
-
"@injectivelabs/mito-proto-ts": "1.0
|
|
47
|
+
"@injectivelabs/indexer-proto-ts": "1.13.1",
|
|
48
|
+
"@injectivelabs/mito-proto-ts": "1.13.0",
|
|
50
49
|
"@injectivelabs/networks": "^1.14.17",
|
|
50
|
+
"@injectivelabs/olp-proto-ts": "1.13.1",
|
|
51
51
|
"@injectivelabs/test-utils": "^1.14.17",
|
|
52
52
|
"@injectivelabs/ts-types": "^1.14.17",
|
|
53
53
|
"@injectivelabs/utils": "^1.14.17",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"shx": "^0.3.2",
|
|
70
70
|
"snakecase-keys": "^5.4.1"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "7ce6d9350f6006eba165ec81a85833c95195fd2d",
|
|
73
73
|
"typedoc": {
|
|
74
74
|
"entryPoint": "./src/index.ts",
|
|
75
75
|
"readmeFile": "./README.md",
|