@injectivelabs/sdk-ts 1.16.25-alpha.1 → 1.16.25-alpha.2
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/gql/index.d.cts +3 -3
- package/dist/cjs/index.cjs +18 -6
- package/dist/cjs/index.d.cts +7550 -6499
- package/dist/esm/client/gql/index.d.ts +3 -3
- package/dist/esm/index.d.ts +7550 -6499
- package/dist/esm/index.js +18 -6
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as graphql0 from "graphql";
|
|
2
2
|
|
|
3
3
|
//#region src/client/gql/types.d.ts
|
|
4
4
|
/**
|
|
@@ -36,7 +36,7 @@ declare class ApolloConsumer {
|
|
|
36
36
|
/**
|
|
37
37
|
* @hidden
|
|
38
38
|
*/
|
|
39
|
-
declare const USER_DEPOSITS:
|
|
40
|
-
declare const USER_BRIDGE_DEPOSITS:
|
|
39
|
+
declare const USER_DEPOSITS: graphql0.DocumentNode;
|
|
40
|
+
declare const USER_BRIDGE_DEPOSITS: graphql0.DocumentNode;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { ApolloConsumer, USER_BRIDGE_DEPOSITS, USER_DEPOSITS, UserDeposit, UserDepositResponse };
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -8053,6 +8053,7 @@ var IndexerGrpcAuctionTransformer = class IndexerGrpcAuctionTransformer {
|
|
|
8053
8053
|
contract: grpcAuction.contract ? {
|
|
8054
8054
|
id: grpcAuction.contract.id.toString(),
|
|
8055
8055
|
bidTarget: grpcAuction.contract.bidTarget,
|
|
8056
|
+
isBidPlaced: grpcAuction.contract.isBidPlaced,
|
|
8056
8057
|
currentSlots: grpcAuction.contract.currentSlots.toString(),
|
|
8057
8058
|
totalSlots: grpcAuction.contract.totalSlots.toString(),
|
|
8058
8059
|
maxUserAllocation: grpcAuction.contract.maxUserAllocation,
|
|
@@ -9129,6 +9130,7 @@ var IndexerGrpcMegaVaultTransformer = class IndexerGrpcMegaVaultTransformer {
|
|
|
9129
9130
|
static grpcUserStatsToUserStats(stats) {
|
|
9130
9131
|
return {
|
|
9131
9132
|
currentAmount: stats.currentAmount,
|
|
9133
|
+
depositedValue: stats.depositedValue,
|
|
9132
9134
|
currentLpAmount: stats.currentLpAmount,
|
|
9133
9135
|
pnl: stats.pnl ? IndexerGrpcMegaVaultTransformer.grpcPnlStatsToPnlStats(stats.pnl) : void 0
|
|
9134
9136
|
};
|
|
@@ -9147,7 +9149,8 @@ var IndexerGrpcMegaVaultTransformer = class IndexerGrpcMegaVaultTransformer {
|
|
|
9147
9149
|
executedAt: subscription.executedAt.toString(),
|
|
9148
9150
|
createdHeight: subscription.createdHeight.toString(),
|
|
9149
9151
|
executedHeight: subscription.executedHeight.toString(),
|
|
9150
|
-
contractAddress: subscription.contractAddress
|
|
9152
|
+
contractAddress: subscription.contractAddress,
|
|
9153
|
+
log: subscription.log.map(IndexerGrpcMegaVaultTransformer.grpcOperationStatusLogEntryToOperationStatusLogEntry)
|
|
9151
9154
|
};
|
|
9152
9155
|
}
|
|
9153
9156
|
static grpcRedemptionToRedemption(redemption) {
|
|
@@ -9162,7 +9165,8 @@ var IndexerGrpcMegaVaultTransformer = class IndexerGrpcMegaVaultTransformer {
|
|
|
9162
9165
|
executedAt: redemption.executedAt.toString(),
|
|
9163
9166
|
createdHeight: redemption.createdHeight.toString(),
|
|
9164
9167
|
executedHeight: redemption.executedHeight.toString(),
|
|
9165
|
-
contractAddress: redemption.contractAddress
|
|
9168
|
+
contractAddress: redemption.contractAddress,
|
|
9169
|
+
log: redemption.log.map(IndexerGrpcMegaVaultTransformer.grpcOperationStatusLogEntryToOperationStatusLogEntry)
|
|
9166
9170
|
};
|
|
9167
9171
|
}
|
|
9168
9172
|
static grpcOperatorRedemptionBucketToOperatorRedemptionBucket(bucket) {
|
|
@@ -9175,14 +9179,22 @@ var IndexerGrpcMegaVaultTransformer = class IndexerGrpcMegaVaultTransformer {
|
|
|
9175
9179
|
}
|
|
9176
9180
|
static grpcHistoricalTVLToHistoricalTVL(history) {
|
|
9177
9181
|
return {
|
|
9178
|
-
t: history.t,
|
|
9179
|
-
v: history.v
|
|
9182
|
+
t: history.t.toString(),
|
|
9183
|
+
v: history.v.toString()
|
|
9180
9184
|
};
|
|
9181
9185
|
}
|
|
9182
9186
|
static grpcHistoricalPnLToHistoricalPnL(history) {
|
|
9183
9187
|
return {
|
|
9184
|
-
t: history.t,
|
|
9185
|
-
v: history.v
|
|
9188
|
+
t: history.t.toString(),
|
|
9189
|
+
v: history.v.toString()
|
|
9190
|
+
};
|
|
9191
|
+
}
|
|
9192
|
+
static grpcOperationStatusLogEntryToOperationStatusLogEntry(log) {
|
|
9193
|
+
return {
|
|
9194
|
+
status: log.status,
|
|
9195
|
+
txHash: log.txHash,
|
|
9196
|
+
blockTime: log.blockTime.toString(),
|
|
9197
|
+
blockHeight: log.blockHeight.toString()
|
|
9186
9198
|
};
|
|
9187
9199
|
}
|
|
9188
9200
|
};
|