@injectivelabs/sdk-ts 1.16.16 → 1.16.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/chain/ChainGrpcClient.d.ts +14 -10
- package/dist/cjs/client/chain/ChainGrpcClient.js +26 -20
- package/dist/cjs/client/chain/grpc/ChainGrpcAuthApi.js +2 -2
- package/dist/cjs/client/chain/grpc/ChainGrpcAuthZApi.js +4 -4
- package/dist/cjs/client/chain/grpc/ChainGrpcBankApi.js +5 -5
- package/dist/cjs/client/chain/grpc/ChainGrpcErc20Api.d.ts +28 -0
- package/dist/cjs/client/chain/grpc/ChainGrpcErc20Api.js +124 -0
- package/dist/cjs/client/chain/grpc/ChainGrpcEvmApi.d.ts +30 -0
- package/dist/cjs/client/chain/grpc/ChainGrpcEvmApi.js +198 -0
- package/dist/cjs/client/chain/grpc/ChainGrpcGovApi.js +4 -4
- package/dist/cjs/client/chain/grpc/ChainGrpcIbcApi.js +2 -2
- package/dist/cjs/client/chain/grpc/ChainGrpcStakingApi.js +14 -14
- package/dist/cjs/client/chain/grpc/ChainGrpcWasmApi.js +5 -5
- package/dist/cjs/client/chain/grpc/index.d.ts +15 -13
- package/dist/cjs/client/chain/grpc/index.js +31 -27
- package/dist/cjs/client/chain/transformers/ChainGrpcAuthTransformer.js +2 -2
- package/dist/cjs/client/chain/transformers/ChainGrpcAuthZTransformer.js +4 -4
- package/dist/cjs/client/chain/transformers/ChainGrpcBankTransformer.js +4 -5
- package/dist/cjs/client/chain/transformers/ChainGrpcCommonTransformer.d.ts +5 -0
- package/dist/cjs/client/chain/transformers/ChainGrpcCommonTransformer.js +42 -0
- package/dist/cjs/client/chain/transformers/ChainGrpcErc20Transformer.d.ts +16 -0
- package/dist/cjs/client/chain/transformers/ChainGrpcErc20Transformer.js +31 -0
- package/dist/cjs/client/chain/transformers/ChainGrpcEvmTransformer.d.ts +29 -0
- package/dist/cjs/client/chain/transformers/ChainGrpcEvmTransformer.js +102 -0
- package/dist/cjs/client/chain/transformers/ChainGrpcGovTransformer.js +4 -4
- package/dist/cjs/client/chain/transformers/ChainGrpcStakingTransformer.js +5 -5
- package/dist/cjs/client/chain/transformers/ChainGrpcWasmTransformer.js +6 -6
- package/dist/cjs/client/chain/transformers/index.d.ts +13 -10
- package/dist/cjs/client/chain/transformers/index.js +13 -10
- package/dist/cjs/client/chain/types/erc20.d.ts +13 -0
- package/dist/cjs/client/chain/types/erc20.js +2 -0
- package/dist/cjs/client/chain/types/evm.d.ts +62 -0
- package/dist/cjs/client/chain/types/evm.js +2 -0
- package/dist/cjs/client/chain/types/index.d.ts +20 -16
- package/dist/cjs/client/indexer/grpc/IndexerGrpcAuctionApi.d.ts +19 -1
- package/dist/cjs/client/indexer/grpc/IndexerGrpcAuctionApi.js +79 -1
- package/dist/cjs/client/indexer/grpc/IndexerGrpcMegaVaultApi.d.ts +45 -0
- package/dist/cjs/client/indexer/grpc/IndexerGrpcMegaVaultApi.js +207 -0
- package/dist/cjs/client/indexer/grpc/index.d.ts +1 -0
- package/dist/cjs/client/indexer/grpc/index.js +3 -1
- package/dist/cjs/client/indexer/transformers/IndexerAuctionStreamTransformer.d.ts +2 -2
- package/dist/cjs/client/indexer/transformers/IndexerGrpcAuctionTransformer.d.ts +18 -6
- package/dist/cjs/client/indexer/transformers/IndexerGrpcAuctionTransformer.js +51 -9
- package/dist/cjs/client/indexer/transformers/IndexerGrpcMegaVaultTransformer.d.ts +30 -0
- package/dist/cjs/client/indexer/transformers/IndexerGrpcMegaVaultTransformer.js +230 -0
- package/dist/cjs/client/indexer/transformers/index.d.ts +1 -0
- package/dist/cjs/client/indexer/transformers/index.js +1 -0
- package/dist/cjs/client/indexer/types/auction.d.ts +49 -5
- package/dist/cjs/client/indexer/types/index.d.ts +16 -14
- package/dist/cjs/client/indexer/types/mega-vault.d.ts +153 -0
- package/dist/cjs/client/indexer/types/mega-vault.js +11 -0
- package/dist/cjs/core/modules/exchange/index.d.ts +2 -1
- package/dist/cjs/core/modules/exchange/index.js +3 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgCancelPostOnlyModeV2.d.ts +44 -0
- package/dist/cjs/core/modules/exchange/msgs/MsgCancelPostOnlyModeV2.js +83 -0
- package/dist/cjs/core/modules/msgs.d.ts +2 -1
- package/dist/cjs/utils/pagination.d.ts +11 -12
- package/dist/cjs/utils/pagination.js +14 -72
- package/dist/esm/client/chain/ChainGrpcClient.d.ts +14 -10
- package/dist/esm/client/chain/ChainGrpcClient.js +26 -20
- package/dist/esm/client/chain/grpc/ChainGrpcAuthApi.js +2 -2
- package/dist/esm/client/chain/grpc/ChainGrpcAuthZApi.js +4 -4
- package/dist/esm/client/chain/grpc/ChainGrpcBankApi.js +5 -5
- package/dist/esm/client/chain/grpc/ChainGrpcErc20Api.d.ts +28 -0
- package/dist/esm/client/chain/grpc/ChainGrpcErc20Api.js +117 -0
- package/dist/esm/client/chain/grpc/ChainGrpcEvmApi.d.ts +30 -0
- package/dist/esm/client/chain/grpc/ChainGrpcEvmApi.js +191 -0
- package/dist/esm/client/chain/grpc/ChainGrpcGovApi.js +4 -4
- package/dist/esm/client/chain/grpc/ChainGrpcIbcApi.js +2 -2
- package/dist/esm/client/chain/grpc/ChainGrpcStakingApi.js +14 -14
- package/dist/esm/client/chain/grpc/ChainGrpcWasmApi.js +5 -5
- package/dist/esm/client/chain/grpc/index.d.ts +15 -13
- package/dist/esm/client/chain/grpc/index.js +15 -13
- package/dist/esm/client/chain/transformers/ChainGrpcAuthTransformer.js +2 -2
- package/dist/esm/client/chain/transformers/ChainGrpcAuthZTransformer.js +4 -4
- package/dist/esm/client/chain/transformers/ChainGrpcBankTransformer.js +4 -5
- package/dist/esm/client/chain/transformers/ChainGrpcCommonTransformer.d.ts +5 -0
- package/dist/esm/client/chain/transformers/ChainGrpcCommonTransformer.js +42 -0
- package/dist/esm/client/chain/transformers/ChainGrpcErc20Transformer.d.ts +16 -0
- package/dist/esm/client/chain/transformers/ChainGrpcErc20Transformer.js +27 -0
- package/dist/esm/client/chain/transformers/ChainGrpcEvmTransformer.d.ts +29 -0
- package/dist/esm/client/chain/transformers/ChainGrpcEvmTransformer.js +98 -0
- package/dist/esm/client/chain/transformers/ChainGrpcGovTransformer.js +4 -4
- package/dist/esm/client/chain/transformers/ChainGrpcStakingTransformer.js +5 -5
- package/dist/esm/client/chain/transformers/ChainGrpcWasmTransformer.js +6 -6
- package/dist/esm/client/chain/transformers/index.d.ts +13 -10
- package/dist/esm/client/chain/transformers/index.js +13 -10
- package/dist/esm/client/chain/types/erc20.d.ts +13 -0
- package/dist/esm/client/chain/types/erc20.js +1 -0
- package/dist/esm/client/chain/types/evm.d.ts +62 -0
- package/dist/esm/client/chain/types/evm.js +1 -0
- package/dist/esm/client/chain/types/index.d.ts +20 -16
- package/dist/esm/client/indexer/grpc/IndexerGrpcAuctionApi.d.ts +19 -1
- package/dist/esm/client/indexer/grpc/IndexerGrpcAuctionApi.js +79 -1
- package/dist/esm/client/indexer/grpc/IndexerGrpcMegaVaultApi.d.ts +45 -0
- package/dist/esm/client/indexer/grpc/IndexerGrpcMegaVaultApi.js +200 -0
- package/dist/esm/client/indexer/grpc/index.d.ts +1 -0
- package/dist/esm/client/indexer/grpc/index.js +1 -0
- package/dist/esm/client/indexer/transformers/IndexerAuctionStreamTransformer.d.ts +2 -2
- package/dist/esm/client/indexer/transformers/IndexerGrpcAuctionTransformer.d.ts +18 -6
- package/dist/esm/client/indexer/transformers/IndexerGrpcAuctionTransformer.js +51 -9
- package/dist/esm/client/indexer/transformers/IndexerGrpcMegaVaultTransformer.d.ts +30 -0
- package/dist/esm/client/indexer/transformers/IndexerGrpcMegaVaultTransformer.js +226 -0
- package/dist/esm/client/indexer/transformers/index.d.ts +1 -0
- package/dist/esm/client/indexer/transformers/index.js +1 -0
- package/dist/esm/client/indexer/types/auction.d.ts +49 -5
- package/dist/esm/client/indexer/types/index.d.ts +16 -14
- package/dist/esm/client/indexer/types/mega-vault.d.ts +153 -0
- package/dist/esm/client/indexer/types/mega-vault.js +10 -0
- package/dist/esm/core/modules/exchange/index.d.ts +2 -1
- package/dist/esm/core/modules/exchange/index.js +2 -1
- package/dist/esm/core/modules/exchange/msgs/MsgCancelPostOnlyModeV2.d.ts +44 -0
- package/dist/esm/core/modules/exchange/msgs/MsgCancelPostOnlyModeV2.js +77 -0
- package/dist/esm/core/modules/msgs.d.ts +2 -1
- package/dist/esm/utils/pagination.d.ts +11 -12
- package/dist/esm/utils/pagination.js +13 -69
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fromUtf8 } from '../../../utils/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { ChainGrpcCommonTransformer } from './ChainGrpcCommonTransformer.js';
|
|
3
3
|
/**
|
|
4
4
|
* @category Chain Grpc Transformer
|
|
5
5
|
*/
|
|
@@ -37,7 +37,7 @@ export class ChainGrpcWasmTransformer {
|
|
|
37
37
|
tokenInfo: JSON.parse(tokenInfoValue || '{}'),
|
|
38
38
|
contractInfo: JSON.parse(contractInfoValue || '{}'),
|
|
39
39
|
marketingInfo: JSON.parse(marketingInfoValue || '{}'),
|
|
40
|
-
pagination: grpcPaginationToPagination(response.pagination),
|
|
40
|
+
pagination: ChainGrpcCommonTransformer.grpcPaginationToPagination(response.pagination),
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
static allContractStateResponseToContractState(response) {
|
|
@@ -73,7 +73,7 @@ export class ChainGrpcWasmTransformer {
|
|
|
73
73
|
tokenInfo: JSON.parse(tokenInfoValue || '{}'),
|
|
74
74
|
contractInfo: JSON.parse(contractInfoValue || '{}'),
|
|
75
75
|
marketingInfo: JSON.parse(marketingInfoValue || '{}'),
|
|
76
|
-
pagination: grpcPaginationToPagination(response.pagination),
|
|
76
|
+
pagination: ChainGrpcCommonTransformer.grpcPaginationToPagination(response.pagination),
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
static contactInfoResponseToContractInfo(contractInfo) {
|
|
@@ -114,13 +114,13 @@ export class ChainGrpcWasmTransformer {
|
|
|
114
114
|
static contactHistoryResponseToContractHistory(response) {
|
|
115
115
|
return {
|
|
116
116
|
entriesList: response.entries.map(ChainGrpcWasmTransformer.grpcContractCodeHistoryEntryToContractCodeHistoryEntry),
|
|
117
|
-
pagination: grpcPaginationToPagination(response.pagination),
|
|
117
|
+
pagination: ChainGrpcCommonTransformer.grpcPaginationToPagination(response.pagination),
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
120
|
static contractCodesResponseToContractCodes(response) {
|
|
121
121
|
return {
|
|
122
122
|
codeInfosList: response.codeInfos.map(ChainGrpcWasmTransformer.grpcCodeInfoResponseToCodeInfoResponse),
|
|
123
|
-
pagination: grpcPaginationToPagination(response.pagination),
|
|
123
|
+
pagination: ChainGrpcCommonTransformer.grpcPaginationToPagination(response.pagination),
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
static contractCodeResponseToContractCode(response) {
|
|
@@ -132,7 +132,7 @@ export class ChainGrpcWasmTransformer {
|
|
|
132
132
|
static contractByCodeResponseToContractByCode(response) {
|
|
133
133
|
return {
|
|
134
134
|
contractsList: response.contracts,
|
|
135
|
-
pagination: grpcPaginationToPagination(response.pagination),
|
|
135
|
+
pagination: ChainGrpcCommonTransformer.grpcPaginationToPagination(response.pagination),
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
138
|
}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './ChainGrpcGovTransformer.js';
|
|
2
|
+
export * from './ChainGrpcEvmTransformer.js';
|
|
2
3
|
export * from './ChainGrpcAuthTransformer.js';
|
|
3
|
-
export * from './ChainGrpcAuthZTransformer.js';
|
|
4
4
|
export * from './ChainGrpcBankTransformer.js';
|
|
5
|
-
export * from './ChainGrpcDistributionTransformer.js';
|
|
6
|
-
export * from './ChainGrpcExchangeTransformer.js';
|
|
7
|
-
export * from './ChainGrpcExchangeTransformer.js';
|
|
8
|
-
export * from './ChainGrpcGovTransformer.js';
|
|
9
|
-
export * from './ChainGrpcInsuranceFundTransformer.js';
|
|
10
5
|
export * from './ChainGrpcMintTransformer.js';
|
|
6
|
+
export * from './ChainGrpcWasmTransformer.js';
|
|
7
|
+
export * from './ChainGrpcAuthZTransformer.js';
|
|
11
8
|
export * from './ChainGrpcPeggyTransformer.js';
|
|
12
|
-
export * from './
|
|
9
|
+
export * from './ChainGrpcErc20Transformer.js';
|
|
10
|
+
export * from './ChainGrpcTxFeesTransformer.js';
|
|
11
|
+
export * from './ChainGrpcCommonTransformer.js';
|
|
12
|
+
export * from './ChainGrpcAuctionTransformer.js';
|
|
13
13
|
export * from './ChainGrpcStakingTransformer.js';
|
|
14
|
+
export * from './ChainGrpcExchangeTransformer.js';
|
|
15
|
+
export * from './ChainGrpcExchangeTransformer.js';
|
|
16
|
+
export * from './ChainGrpcPermissionsTransformer.js';
|
|
17
|
+
export * from './ChainGrpcDistributionTransformer.js';
|
|
14
18
|
export * from './ChainGrpcTokenFactoryTransformer.js';
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './ChainGrpcTxFeesTransformer.js';
|
|
19
|
+
export * from './ChainGrpcInsuranceFundTransformer.js';
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './ChainGrpcGovTransformer.js';
|
|
2
|
+
export * from './ChainGrpcEvmTransformer.js';
|
|
2
3
|
export * from './ChainGrpcAuthTransformer.js';
|
|
3
|
-
export * from './ChainGrpcAuthZTransformer.js';
|
|
4
4
|
export * from './ChainGrpcBankTransformer.js';
|
|
5
|
-
export * from './ChainGrpcDistributionTransformer.js';
|
|
6
|
-
export * from './ChainGrpcExchangeTransformer.js';
|
|
7
|
-
export * from './ChainGrpcExchangeTransformer.js';
|
|
8
|
-
export * from './ChainGrpcGovTransformer.js';
|
|
9
|
-
export * from './ChainGrpcInsuranceFundTransformer.js';
|
|
10
5
|
export * from './ChainGrpcMintTransformer.js';
|
|
6
|
+
export * from './ChainGrpcWasmTransformer.js';
|
|
7
|
+
export * from './ChainGrpcAuthZTransformer.js';
|
|
11
8
|
export * from './ChainGrpcPeggyTransformer.js';
|
|
12
|
-
export * from './
|
|
9
|
+
export * from './ChainGrpcErc20Transformer.js';
|
|
10
|
+
export * from './ChainGrpcTxFeesTransformer.js';
|
|
11
|
+
export * from './ChainGrpcCommonTransformer.js';
|
|
12
|
+
export * from './ChainGrpcAuctionTransformer.js';
|
|
13
13
|
export * from './ChainGrpcStakingTransformer.js';
|
|
14
|
+
export * from './ChainGrpcExchangeTransformer.js';
|
|
15
|
+
export * from './ChainGrpcExchangeTransformer.js';
|
|
16
|
+
export * from './ChainGrpcPermissionsTransformer.js';
|
|
17
|
+
export * from './ChainGrpcDistributionTransformer.js';
|
|
14
18
|
export * from './ChainGrpcTokenFactoryTransformer.js';
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './ChainGrpcTxFeesTransformer.js';
|
|
19
|
+
export * from './ChainGrpcInsuranceFundTransformer.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Coin } from '@injectivelabs/ts-types';
|
|
2
|
+
import type { InjectiveErc20V1Beta1Erc20, InjectiveErc20V1Beta1Params } from '@injectivelabs/core-proto-ts';
|
|
3
|
+
export interface TokenPair {
|
|
4
|
+
/** bank denom */
|
|
5
|
+
bankDenom: string;
|
|
6
|
+
/** address of erc20 smart contract that is backed by */
|
|
7
|
+
erc20Address: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Params {
|
|
10
|
+
denomCreationFee?: Coin;
|
|
11
|
+
}
|
|
12
|
+
export type GrpcParams = InjectiveErc20V1Beta1Params.Params;
|
|
13
|
+
export type GrpcTokenPair = InjectiveErc20V1Beta1Erc20.TokenPair;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { InjectiveEvmV1Log, InjectiveEvmV1Params, InjectiveEvmV1ChainConfig } from '@injectivelabs/core-proto-ts';
|
|
2
|
+
export interface EvmLog {
|
|
3
|
+
address: string;
|
|
4
|
+
topics: string[];
|
|
5
|
+
data: Uint8Array;
|
|
6
|
+
blockNumber: string;
|
|
7
|
+
txHash: string;
|
|
8
|
+
txIndex: string;
|
|
9
|
+
blockHash: string;
|
|
10
|
+
index: string;
|
|
11
|
+
removed: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface EvmBlobConfig {
|
|
14
|
+
target: string;
|
|
15
|
+
max: string;
|
|
16
|
+
baseFeeUpdateFraction: string;
|
|
17
|
+
}
|
|
18
|
+
export interface EvmBlobScheduleConfig {
|
|
19
|
+
cancun?: EvmBlobConfig;
|
|
20
|
+
prague?: EvmBlobConfig;
|
|
21
|
+
osaka?: EvmBlobConfig;
|
|
22
|
+
verkle?: EvmBlobConfig;
|
|
23
|
+
}
|
|
24
|
+
export interface EvmChainConfig {
|
|
25
|
+
homesteadBlock: string;
|
|
26
|
+
daoForkBlock: string;
|
|
27
|
+
daoForkSupport: boolean;
|
|
28
|
+
eip150Block: string;
|
|
29
|
+
eip150Hash: string;
|
|
30
|
+
eip155Block: string;
|
|
31
|
+
eip158Block: string;
|
|
32
|
+
byzantiumBlock: string;
|
|
33
|
+
constantinopleBlock: string;
|
|
34
|
+
petersburgBlock: string;
|
|
35
|
+
istanbulBlock: string;
|
|
36
|
+
muirGlacierBlock: string;
|
|
37
|
+
berlinBlock: string;
|
|
38
|
+
londonBlock: string;
|
|
39
|
+
arrowGlacierBlock: string;
|
|
40
|
+
grayGlacierBlock: string;
|
|
41
|
+
mergeNetsplitBlock: string;
|
|
42
|
+
shanghaiTime: string;
|
|
43
|
+
cancunTime: string;
|
|
44
|
+
pragueTime: string;
|
|
45
|
+
eip155ChainId: string;
|
|
46
|
+
blobScheduleConfig?: EvmBlobScheduleConfig;
|
|
47
|
+
}
|
|
48
|
+
export interface EvmParams {
|
|
49
|
+
evmDenom: string;
|
|
50
|
+
enableCreate: boolean;
|
|
51
|
+
enableCall: boolean;
|
|
52
|
+
extraEips: string[];
|
|
53
|
+
chainConfig?: EvmChainConfig;
|
|
54
|
+
allowUnprotectedTxs: boolean;
|
|
55
|
+
authorizedDeployers: string[];
|
|
56
|
+
permissioned: boolean;
|
|
57
|
+
}
|
|
58
|
+
export type GrpcEvmLog = InjectiveEvmV1Log.Log;
|
|
59
|
+
export type GrpcEvmParams = InjectiveEvmV1Params.Params;
|
|
60
|
+
export type GrpcEvmChainConfig = InjectiveEvmV1ChainConfig.ChainConfig;
|
|
61
|
+
export type GrpcEvmBlobScheduleConfig = InjectiveEvmV1ChainConfig.BlobScheduleConfig;
|
|
62
|
+
export type GrpcEvmBlobConfig = InjectiveEvmV1ChainConfig.BlobConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,42 +1,46 @@
|
|
|
1
1
|
export * from './gov.js';
|
|
2
|
+
export * from './wasm.js';
|
|
3
|
+
export * from './staking.js';
|
|
4
|
+
export * from './exchange.js';
|
|
5
|
+
export type * from './evm.js';
|
|
2
6
|
export type * from './auth.js';
|
|
3
7
|
export type * from './bank.js';
|
|
4
8
|
export type * from './mint.js';
|
|
5
|
-
export * from './
|
|
9
|
+
export * from './insurance.js';
|
|
6
10
|
export type * from './authZ.js';
|
|
7
11
|
export type * from './peggy.js';
|
|
12
|
+
export type * from './erc20.js';
|
|
8
13
|
export type * from './txFees.js';
|
|
9
14
|
export type * from './oracle.js';
|
|
15
|
+
export * from './permissions.js';
|
|
10
16
|
export type * from './auction.js';
|
|
11
|
-
export * from './staking.js';
|
|
12
|
-
export * from './exchange.js';
|
|
13
17
|
export type * from './auth-rest.js';
|
|
14
18
|
export type * from './bank-rest.js';
|
|
15
|
-
export * from './insurance.js';
|
|
16
19
|
export type * from './distribution.js';
|
|
17
20
|
export type * from './tokenfactory.js';
|
|
18
21
|
export type * from './tendermint-rest.js';
|
|
19
|
-
export * from './permissions.js';
|
|
20
22
|
export interface RestApiResponse<T> {
|
|
21
23
|
data: T;
|
|
22
24
|
}
|
|
23
25
|
export declare const ChainModule: {
|
|
24
|
-
Auction: "chain-auction";
|
|
25
|
-
Auth: "chain-auth";
|
|
26
|
-
Authz: "chain-authz";
|
|
27
|
-
Bank: "chain-bank";
|
|
28
|
-
Distribution: "chain-distribution";
|
|
29
|
-
Exchange: "chain-exchange";
|
|
30
26
|
Gov: "chain-gov";
|
|
31
27
|
Ibc: "chain-ibc";
|
|
32
|
-
|
|
28
|
+
Evm: "chain-evm";
|
|
29
|
+
Auth: "chain-auth";
|
|
30
|
+
Bank: "chain-bank";
|
|
33
31
|
Mint: "chain-mint";
|
|
34
|
-
Oracle: "chain-oracle";
|
|
35
|
-
Peggy: "chain-peggy";
|
|
36
|
-
Staking: "chain-staking";
|
|
37
32
|
Wasm: "chain-wasm";
|
|
33
|
+
Authz: "chain-authz";
|
|
34
|
+
Peggy: "chain-peggy";
|
|
38
35
|
WasmX: "chain-wasmx";
|
|
36
|
+
Erc20: "chain-erc20";
|
|
37
|
+
Oracle: "chain-oracle";
|
|
38
|
+
TxFees: "chain-tx-fees";
|
|
39
|
+
Auction: "chain-auction";
|
|
40
|
+
Staking: "chain-staking";
|
|
41
|
+
Exchange: "chain-exchange";
|
|
39
42
|
Tendermint: "chain-tendermint";
|
|
43
|
+
InsuranceFund: "chain-insurance";
|
|
40
44
|
Permissions: "chain-permissions";
|
|
41
|
-
|
|
45
|
+
Distribution: "chain-distribution";
|
|
42
46
|
};
|
|
@@ -9,8 +9,26 @@ export declare class IndexerGrpcAuctionApi extends BaseGrpcConsumer {
|
|
|
9
9
|
constructor(endpoint: string);
|
|
10
10
|
fetchAuction(round?: number): Promise<{
|
|
11
11
|
auction: import("../types/auction.js").Auction;
|
|
12
|
-
bids: import("../types/auction.js").
|
|
12
|
+
bids: import("../types/auction.js").IndexerAuctionBid[];
|
|
13
13
|
}>;
|
|
14
14
|
fetchAuctions(): Promise<import("../types/auction.js").Auction[]>;
|
|
15
15
|
fetchInjBurnt(): Promise<number>;
|
|
16
|
+
fetchAuctionsHistoryV2({ token, endTime, perPage, }: {
|
|
17
|
+
token?: string;
|
|
18
|
+
endTime?: string;
|
|
19
|
+
perPage?: number;
|
|
20
|
+
}): Promise<{
|
|
21
|
+
auctions: import("../types/auction.js").AuctionV2[];
|
|
22
|
+
next: string[];
|
|
23
|
+
}>;
|
|
24
|
+
fetchAuctionV2(round?: number | string): Promise<import("../types/auction.js").AuctionV2>;
|
|
25
|
+
fetchAccountAuctionsV2({ token, address, perPage, }: {
|
|
26
|
+
token?: string;
|
|
27
|
+
address: string;
|
|
28
|
+
perPage?: number;
|
|
29
|
+
}): Promise<{
|
|
30
|
+
auctions: import("../types/auction.js").AccountAuctionV2[];
|
|
31
|
+
next: string[];
|
|
32
|
+
total: string;
|
|
33
|
+
}>;
|
|
16
34
|
}
|
|
@@ -66,7 +66,7 @@ export class IndexerGrpcAuctionApi extends BaseGrpcConsumer {
|
|
|
66
66
|
const request = {};
|
|
67
67
|
try {
|
|
68
68
|
const response = await this.retry(() => this.client.InjBurntEndpoint(request, this.metadata));
|
|
69
|
-
return
|
|
69
|
+
return Number(response.totalInjBurnt);
|
|
70
70
|
}
|
|
71
71
|
catch (e) {
|
|
72
72
|
if (e instanceof InjectiveAuctionRpc.GrpcWebError) {
|
|
@@ -83,4 +83,82 @@ export class IndexerGrpcAuctionApi extends BaseGrpcConsumer {
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
+
async fetchAuctionsHistoryV2({ token, endTime, perPage = 5, }) {
|
|
87
|
+
const request = InjectiveAuctionRpc.AuctionsHistoryV2Request.create();
|
|
88
|
+
request.perPage = perPage;
|
|
89
|
+
if (endTime) {
|
|
90
|
+
request.endTime = endTime;
|
|
91
|
+
}
|
|
92
|
+
if (token) {
|
|
93
|
+
request.token = token;
|
|
94
|
+
}
|
|
95
|
+
try {
|
|
96
|
+
const response = await this.retry(() => this.client.AuctionsHistoryV2(request, this.metadata));
|
|
97
|
+
return IndexerGrpcAuctionTransformer.auctionsHistoryV2ResponseToAuctionHistory(response);
|
|
98
|
+
}
|
|
99
|
+
catch (e) {
|
|
100
|
+
if (e instanceof InjectiveAuctionRpc.GrpcWebError) {
|
|
101
|
+
throw new GrpcUnaryRequestException(new Error(e.toString()), {
|
|
102
|
+
code: grpcErrorCodeToErrorCode(e.code),
|
|
103
|
+
context: 'AuctionsV2',
|
|
104
|
+
contextModule: this.module,
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
throw new GrpcUnaryRequestException(e, {
|
|
108
|
+
code: UnspecifiedErrorCode,
|
|
109
|
+
context: 'AuctionsV2',
|
|
110
|
+
contextModule: this.module,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
async fetchAuctionV2(round = -1) {
|
|
115
|
+
const request = InjectiveAuctionRpc.AuctionV2Request.create();
|
|
116
|
+
if (round) {
|
|
117
|
+
request.round = round.toString();
|
|
118
|
+
}
|
|
119
|
+
try {
|
|
120
|
+
const response = await this.retry(() => this.client.AuctionV2(request, this.metadata));
|
|
121
|
+
return IndexerGrpcAuctionTransformer.grpcAuctionV2ToAuctionV2(response);
|
|
122
|
+
}
|
|
123
|
+
catch (e) {
|
|
124
|
+
if (e instanceof InjectiveAuctionRpc.GrpcWebError) {
|
|
125
|
+
throw new GrpcUnaryRequestException(new Error(e.toString()), {
|
|
126
|
+
code: grpcErrorCodeToErrorCode(e.code),
|
|
127
|
+
context: 'AuctionV2',
|
|
128
|
+
contextModule: this.module,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
throw new GrpcUnaryRequestException(e, {
|
|
132
|
+
code: UnspecifiedErrorCode,
|
|
133
|
+
context: 'AuctionV2',
|
|
134
|
+
contextModule: this.module,
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
async fetchAccountAuctionsV2({ token, address, perPage = 5, }) {
|
|
139
|
+
const request = InjectiveAuctionRpc.AccountAuctionsV2Request.create();
|
|
140
|
+
request.address = address;
|
|
141
|
+
request.perPage = perPage;
|
|
142
|
+
if (token) {
|
|
143
|
+
request.token = token.toString();
|
|
144
|
+
}
|
|
145
|
+
try {
|
|
146
|
+
const response = await this.retry(() => this.client.AccountAuctionsV2(request, this.metadata));
|
|
147
|
+
return IndexerGrpcAuctionTransformer.accountAuctionsV2ResponseToAccountAuctionsV2(response);
|
|
148
|
+
}
|
|
149
|
+
catch (e) {
|
|
150
|
+
if (e instanceof InjectiveAuctionRpc.GrpcWebError) {
|
|
151
|
+
throw new GrpcUnaryRequestException(new Error(e.toString()), {
|
|
152
|
+
code: grpcErrorCodeToErrorCode(e.code),
|
|
153
|
+
context: 'AccountAuctionsV2',
|
|
154
|
+
contextModule: this.module,
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
throw new GrpcUnaryRequestException(e, {
|
|
158
|
+
code: UnspecifiedErrorCode,
|
|
159
|
+
context: 'AccountAuctionsV2',
|
|
160
|
+
contextModule: this.module,
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
}
|
|
86
164
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { InjectiveMegaVaultRpc } from '@injectivelabs/indexer-proto-ts';
|
|
2
|
+
import BaseGrpcConsumer from '../../base/BaseIndexerGrpcConsumer.js';
|
|
3
|
+
/**
|
|
4
|
+
* @category Indexer Grpc API
|
|
5
|
+
*/
|
|
6
|
+
export declare class IndexerGrpcMegaVaultApi extends BaseGrpcConsumer {
|
|
7
|
+
protected module: string;
|
|
8
|
+
protected client: InjectiveMegaVaultRpc.InjectiveMegavaultRPCClientImpl;
|
|
9
|
+
constructor(endpoint: string);
|
|
10
|
+
fetchVault({ vaultAddress }: {
|
|
11
|
+
vaultAddress: string;
|
|
12
|
+
}): Promise<import("../types/mega-vault.js").MegaVault | undefined>;
|
|
13
|
+
fetchVaultUser({ vaultAddress, userAddress, }: {
|
|
14
|
+
userAddress: string;
|
|
15
|
+
vaultAddress: string;
|
|
16
|
+
}): Promise<import("../types/mega-vault.js").MegaVaultUser | undefined>;
|
|
17
|
+
fetchVaultSubscriptions({ token, status, perPage, userAddress, vaultAddress, }: {
|
|
18
|
+
token?: string;
|
|
19
|
+
status?: string;
|
|
20
|
+
perPage?: number;
|
|
21
|
+
userAddress: string;
|
|
22
|
+
vaultAddress: string;
|
|
23
|
+
}): Promise<import("../types/mega-vault.js").MegaVaultSubscription[]>;
|
|
24
|
+
fetchVaultRedemptions({ token, status, perPage, userAddress, vaultAddress, }: {
|
|
25
|
+
token?: string;
|
|
26
|
+
status?: string;
|
|
27
|
+
perPage?: number;
|
|
28
|
+
vaultAddress: string;
|
|
29
|
+
userAddress: string;
|
|
30
|
+
}): Promise<import("../types/mega-vault.js").MegaVaultRedemption[]>;
|
|
31
|
+
fetchOperatorRedemptionBuckets({ vaultAddress, operatorAddress, }: {
|
|
32
|
+
vaultAddress: string;
|
|
33
|
+
operatorAddress: string;
|
|
34
|
+
}): Promise<import("../types/mega-vault.js").MegaVaultOperatorRedemptionBucket[]>;
|
|
35
|
+
fetchVaultTvlHistory({ since, vaultAddress, maxDataPoints, }: {
|
|
36
|
+
since: number;
|
|
37
|
+
vaultAddress: string;
|
|
38
|
+
maxDataPoints?: number;
|
|
39
|
+
}): Promise<import("../types/mega-vault.js").MegaVaultHistoricalTVL[]>;
|
|
40
|
+
fetchVaultPnlHistory({ since, vaultAddress, maxDataPoints, }: {
|
|
41
|
+
since: number;
|
|
42
|
+
vaultAddress: string;
|
|
43
|
+
maxDataPoints?: number;
|
|
44
|
+
}): Promise<import("../types/mega-vault.js").MegaVaultHistoricalPnL[]>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { InjectiveMegaVaultRpc } from '@injectivelabs/indexer-proto-ts';
|
|
2
|
+
import { UnspecifiedErrorCode, GrpcUnaryRequestException, } from '@injectivelabs/exceptions';
|
|
3
|
+
import { IndexerModule } from '../types/index.js';
|
|
4
|
+
import BaseGrpcConsumer from '../../base/BaseIndexerGrpcConsumer.js';
|
|
5
|
+
import { IndexerGrpcMegaVaultTransformer } from '../transformers/index.js';
|
|
6
|
+
/**
|
|
7
|
+
* @category Indexer Grpc API
|
|
8
|
+
*/
|
|
9
|
+
export class IndexerGrpcMegaVaultApi extends BaseGrpcConsumer {
|
|
10
|
+
module = IndexerModule.MegaVault;
|
|
11
|
+
client;
|
|
12
|
+
constructor(endpoint) {
|
|
13
|
+
super(endpoint);
|
|
14
|
+
this.client = new InjectiveMegaVaultRpc.InjectiveMegavaultRPCClientImpl(this.getGrpcWebImpl(endpoint));
|
|
15
|
+
}
|
|
16
|
+
async fetchVault({ vaultAddress }) {
|
|
17
|
+
const request = InjectiveMegaVaultRpc.GetVaultRequest.create();
|
|
18
|
+
request.vaultAddress = vaultAddress;
|
|
19
|
+
try {
|
|
20
|
+
const response = await this.retry(() => this.client.GetVault(request, this.metadata));
|
|
21
|
+
return IndexerGrpcMegaVaultTransformer.vaultResponseToVault(response);
|
|
22
|
+
}
|
|
23
|
+
catch (e) {
|
|
24
|
+
if (e instanceof InjectiveMegaVaultRpc.GrpcWebError) {
|
|
25
|
+
throw new GrpcUnaryRequestException(new Error(e.toString()), {
|
|
26
|
+
code: e.code,
|
|
27
|
+
context: 'fetchVault',
|
|
28
|
+
contextModule: this.module,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
throw new GrpcUnaryRequestException(e, {
|
|
32
|
+
code: UnspecifiedErrorCode,
|
|
33
|
+
context: 'fetchVault',
|
|
34
|
+
contextModule: this.module,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
async fetchVaultUser({ vaultAddress, userAddress, }) {
|
|
39
|
+
const request = InjectiveMegaVaultRpc.GetUserRequest.create();
|
|
40
|
+
request.vaultAddress = vaultAddress;
|
|
41
|
+
request.userAddress = userAddress;
|
|
42
|
+
try {
|
|
43
|
+
const response = await this.retry(() => this.client.GetUser(request, this.metadata));
|
|
44
|
+
return IndexerGrpcMegaVaultTransformer.userResponseToUser(response);
|
|
45
|
+
}
|
|
46
|
+
catch (e) {
|
|
47
|
+
if (e instanceof InjectiveMegaVaultRpc.GrpcWebError) {
|
|
48
|
+
throw new GrpcUnaryRequestException(new Error(e.toString()), {
|
|
49
|
+
code: e.code,
|
|
50
|
+
context: 'fetchVaultUser',
|
|
51
|
+
contextModule: this.module,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
throw new GrpcUnaryRequestException(e, {
|
|
55
|
+
code: UnspecifiedErrorCode,
|
|
56
|
+
context: 'fetchVaultUser',
|
|
57
|
+
contextModule: this.module,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
async fetchVaultSubscriptions({ token, status, perPage, userAddress, vaultAddress, }) {
|
|
62
|
+
const request = InjectiveMegaVaultRpc.ListSubscriptionsRequest.create();
|
|
63
|
+
request.vaultAddress = vaultAddress;
|
|
64
|
+
request.userAddress = userAddress;
|
|
65
|
+
if (status) {
|
|
66
|
+
request.status = status;
|
|
67
|
+
}
|
|
68
|
+
if (perPage) {
|
|
69
|
+
request.perPage = perPage;
|
|
70
|
+
}
|
|
71
|
+
if (token) {
|
|
72
|
+
request.token = token;
|
|
73
|
+
}
|
|
74
|
+
try {
|
|
75
|
+
const response = await this.retry(() => this.client.ListSubscriptions(request, this.metadata));
|
|
76
|
+
return IndexerGrpcMegaVaultTransformer.subscriptionsResponseToSubscriptions(response);
|
|
77
|
+
}
|
|
78
|
+
catch (e) {
|
|
79
|
+
if (e instanceof InjectiveMegaVaultRpc.GrpcWebError) {
|
|
80
|
+
throw new GrpcUnaryRequestException(new Error(e.toString()), {
|
|
81
|
+
code: e.code,
|
|
82
|
+
context: 'fetchVaultSubscriptions',
|
|
83
|
+
contextModule: this.module,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
throw new GrpcUnaryRequestException(e, {
|
|
87
|
+
code: UnspecifiedErrorCode,
|
|
88
|
+
context: 'fetchVaultSubscriptions',
|
|
89
|
+
contextModule: this.module,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
async fetchVaultRedemptions({ token, status, perPage, userAddress, vaultAddress, }) {
|
|
94
|
+
const request = InjectiveMegaVaultRpc.ListRedemptionsRequest.create();
|
|
95
|
+
request.vaultAddress = vaultAddress;
|
|
96
|
+
request.userAddress = userAddress;
|
|
97
|
+
if (status) {
|
|
98
|
+
request.status = status;
|
|
99
|
+
}
|
|
100
|
+
if (perPage) {
|
|
101
|
+
request.perPage = perPage;
|
|
102
|
+
}
|
|
103
|
+
if (token) {
|
|
104
|
+
request.token = token;
|
|
105
|
+
}
|
|
106
|
+
try {
|
|
107
|
+
const response = await this.retry(() => this.client.ListRedemptions(request, this.metadata));
|
|
108
|
+
return IndexerGrpcMegaVaultTransformer.redemptionsResponseToRedemptions(response);
|
|
109
|
+
}
|
|
110
|
+
catch (e) {
|
|
111
|
+
if (e instanceof InjectiveMegaVaultRpc.GrpcWebError) {
|
|
112
|
+
throw new GrpcUnaryRequestException(new Error(e.toString()), {
|
|
113
|
+
code: e.code,
|
|
114
|
+
context: 'fetchVaultRedemptions',
|
|
115
|
+
contextModule: this.module,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
throw new GrpcUnaryRequestException(e, {
|
|
119
|
+
code: UnspecifiedErrorCode,
|
|
120
|
+
context: 'fetchVaultRedemptions',
|
|
121
|
+
contextModule: this.module,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
async fetchOperatorRedemptionBuckets({ vaultAddress, operatorAddress, }) {
|
|
126
|
+
const request = InjectiveMegaVaultRpc.GetOperatorRedemptionBucketsRequest.create();
|
|
127
|
+
request.vaultAddress = vaultAddress;
|
|
128
|
+
request.operatorAddress = operatorAddress;
|
|
129
|
+
try {
|
|
130
|
+
const response = await this.retry(() => this.client.GetOperatorRedemptionBuckets(request, this.metadata));
|
|
131
|
+
return IndexerGrpcMegaVaultTransformer.operatorRedemptionBucketsResponseToOperatorRedemptionBuckets(response);
|
|
132
|
+
}
|
|
133
|
+
catch (e) {
|
|
134
|
+
if (e instanceof InjectiveMegaVaultRpc.GrpcWebError) {
|
|
135
|
+
throw new GrpcUnaryRequestException(new Error(e.toString()), {
|
|
136
|
+
code: e.code,
|
|
137
|
+
context: 'fetchOperatorRedemptionBuckets',
|
|
138
|
+
contextModule: this.module,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
throw new GrpcUnaryRequestException(e, {
|
|
142
|
+
code: UnspecifiedErrorCode,
|
|
143
|
+
context: 'fetchOperatorRedemptionBuckets',
|
|
144
|
+
contextModule: this.module,
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
async fetchVaultTvlHistory({ since, vaultAddress, maxDataPoints, }) {
|
|
149
|
+
const request = InjectiveMegaVaultRpc.TvlHistoryRequest.create();
|
|
150
|
+
request.vaultAddress = vaultAddress;
|
|
151
|
+
request.since = since.toString();
|
|
152
|
+
if (maxDataPoints) {
|
|
153
|
+
request.maxDataPoints = maxDataPoints;
|
|
154
|
+
}
|
|
155
|
+
try {
|
|
156
|
+
const response = await this.retry(() => this.client.TvlHistory(request, this.metadata));
|
|
157
|
+
return IndexerGrpcMegaVaultTransformer.tvlHistoryResponseToTvlHistory(response);
|
|
158
|
+
}
|
|
159
|
+
catch (e) {
|
|
160
|
+
if (e instanceof InjectiveMegaVaultRpc.GrpcWebError) {
|
|
161
|
+
throw new GrpcUnaryRequestException(new Error(e.toString()), {
|
|
162
|
+
code: e.code,
|
|
163
|
+
context: 'fetchVaultTvlHistory',
|
|
164
|
+
contextModule: this.module,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
throw new GrpcUnaryRequestException(e, {
|
|
168
|
+
code: UnspecifiedErrorCode,
|
|
169
|
+
context: 'fetchVaultTvlHistory',
|
|
170
|
+
contextModule: this.module,
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
async fetchVaultPnlHistory({ since, vaultAddress, maxDataPoints, }) {
|
|
175
|
+
const request = InjectiveMegaVaultRpc.PnlHistoryRequest.create();
|
|
176
|
+
request.vaultAddress = vaultAddress;
|
|
177
|
+
request.since = since.toString();
|
|
178
|
+
if (maxDataPoints) {
|
|
179
|
+
request.maxDataPoints = maxDataPoints;
|
|
180
|
+
}
|
|
181
|
+
try {
|
|
182
|
+
const response = await this.retry(() => this.client.PnlHistory(request, this.metadata));
|
|
183
|
+
return IndexerGrpcMegaVaultTransformer.pnlHistoryResponseToPnlHistory(response);
|
|
184
|
+
}
|
|
185
|
+
catch (e) {
|
|
186
|
+
if (e instanceof InjectiveMegaVaultRpc.GrpcWebError) {
|
|
187
|
+
throw new GrpcUnaryRequestException(new Error(e.toString()), {
|
|
188
|
+
code: e.code,
|
|
189
|
+
context: 'fetchVaultPnlHistory',
|
|
190
|
+
contextModule: this.module,
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
throw new GrpcUnaryRequestException(e, {
|
|
194
|
+
code: UnspecifiedErrorCode,
|
|
195
|
+
context: 'fetchVaultPnlHistory',
|
|
196
|
+
contextModule: this.module,
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -10,6 +10,7 @@ export { IndexerGrpcExplorerApi } from './IndexerGrpcExplorerApi.js';
|
|
|
10
10
|
export { IndexerGrpcCampaignApi } from './IndexerGrpcCampaignApi.js';
|
|
11
11
|
export { IndexerGrpcArchiverApi } from './IndexerGrpcArchiverApi.js';
|
|
12
12
|
export { IndexerGrpcReferralApi } from './IndexerGrpcReferralApi.js';
|
|
13
|
+
export { IndexerGrpcMegaVaultApi } from './IndexerGrpcMegaVaultApi.js';
|
|
13
14
|
export { IndexerGrpcDerivativesApi } from './IndexerGrpcDerivativesApi.js';
|
|
14
15
|
export { IndexerGrpcTransactionApi } from './IndexerGrpcTransactionApi.js';
|
|
15
16
|
export { IndexerGrpcAccountPortfolioApi } from './IndexerGrpcPortfolioApi.js';
|
|
@@ -10,6 +10,7 @@ export { IndexerGrpcExplorerApi } from './IndexerGrpcExplorerApi.js';
|
|
|
10
10
|
export { IndexerGrpcCampaignApi } from './IndexerGrpcCampaignApi.js';
|
|
11
11
|
export { IndexerGrpcArchiverApi } from './IndexerGrpcArchiverApi.js';
|
|
12
12
|
export { IndexerGrpcReferralApi } from './IndexerGrpcReferralApi.js';
|
|
13
|
+
export { IndexerGrpcMegaVaultApi } from './IndexerGrpcMegaVaultApi.js';
|
|
13
14
|
export { IndexerGrpcDerivativesApi } from './IndexerGrpcDerivativesApi.js';
|
|
14
15
|
export { IndexerGrpcTransactionApi } from './IndexerGrpcTransactionApi.js';
|
|
15
16
|
export { IndexerGrpcAccountPortfolioApi } from './IndexerGrpcPortfolioApi.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IndexerAuctionBid } from '../types/index.js';
|
|
2
2
|
import type { InjectiveAuctionRpc } from '@injectivelabs/indexer-proto-ts';
|
|
3
3
|
/**
|
|
4
4
|
* @category Indexer Stream Transformer
|
|
5
5
|
*/
|
|
6
6
|
export declare class IndexerAuctionStreamTransformer {
|
|
7
7
|
static bidsStreamCallback: (response: InjectiveAuctionRpc.StreamBidsResponse) => {
|
|
8
|
-
bid:
|
|
8
|
+
bid: IndexerAuctionBid;
|
|
9
9
|
operation: "insert";
|
|
10
10
|
};
|
|
11
11
|
}
|