Skip to content

Commit 06d54d6

Browse files
martinboehmtomasklim
authored andcommitted
chore(blockchain-link): Update Blockbook types
1 parent 0de4e76 commit 06d54d6

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

Diff for: packages/blockchain-link-types/src/blockbook-api.ts

+25-6
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ export interface EthereumSpecific {
3333
gasLimit: number;
3434
gasUsed?: number;
3535
gasPrice?: string;
36+
l1Fee?: number;
37+
l1FeeScalar?: string;
38+
l1GasPrice?: string;
39+
l1GasUsed?: number;
3640
data?: string;
3741
parsedData?: EthereumParsedInputData;
3842
internalTransfers?: EthereumInternalTransfer[];
@@ -46,14 +50,11 @@ export interface TokenTransfer {
4650
from: string;
4751
to: string;
4852
contract: string;
49-
name: string;
53+
name?: string;
5054
symbol?: string;
51-
decimals: number;
55+
decimals: number; // it is optional #14796
5256
value?: string;
5357
multiTokenValues?: MultiTokenValue[];
54-
fingerprint?: string;
55-
policyId?: string;
56-
unit?: string;
5758
}
5859
export interface Vout {
5960
value?: string;
@@ -114,14 +115,14 @@ export interface FeeStats {
114115
}
115116
export interface StakingPool {
116117
contract: string;
118+
name: string;
117119
pendingBalance: string;
118120
pendingDepositedBalance: string;
119121
depositedBalance: string;
120122
withdrawTotalAmount: string;
121123
claimableAmount: string;
122124
restakedReward: string;
123125
autocompoundBalance: string;
124-
name: string;
125126
}
126127
export interface ContractInfo {
127128
type: string;
@@ -175,6 +176,7 @@ export interface Address {
175176
contractInfo?: ContractInfo;
176177
erc20Contract?: ContractInfo;
177178
addressAliases?: { [key: string]: AddressAlias };
179+
stakingPools?: StakingPool[];
178180
}
179181
export interface Utxo {
180182
txid: string;
@@ -259,6 +261,7 @@ export interface InternalStateColumn {
259261
}
260262
export interface BlockbookInfo {
261263
coin: string;
264+
network: string;
262265
host: string;
263266
version: string;
264267
gitCommit: string;
@@ -278,6 +281,7 @@ export interface BlockbookInfo {
278281
currentFiatRatesTime?: string;
279282
historicalFiatRatesTime?: string;
280283
historicalTokenFiatRatesTime?: string;
284+
supportedStakingPools?: string[];
281285
dbSizeFromColumns?: number;
282286
dbColumns?: InternalStateColumn[];
283287
about: string;
@@ -352,6 +356,7 @@ export interface WsBackendInfo {
352356
export interface WsInfoRes {
353357
name: string;
354358
shortcut: string;
359+
network: string;
355360
decimals: number;
356361
version: string;
357362
bestHeight: number;
@@ -372,11 +377,15 @@ export interface WsBlockReq {
372377
page?: number;
373378
}
374379
export interface WsBlockFilterReq {
380+
scriptType: string;
375381
blockHash: string;
382+
M?: number;
376383
}
377384
export interface WsBlockFiltersBatchReq {
385+
scriptType: string;
378386
bestKnownBlockHash: string;
379387
pageSize?: number;
388+
M?: number;
380389
}
381390
export interface WsAccountUtxoReq {
382391
descriptor: string;
@@ -437,7 +446,17 @@ export interface WsFiatRatesTickersListReq {
437446
export interface WsMempoolFiltersReq {
438447
scriptType: string;
439448
fromTimestamp: number;
449+
M?: number;
450+
}
451+
export interface WsRpcCallReq {
452+
from?: string;
453+
to: string;
454+
data: string;
455+
}
456+
export interface WsRpcCallRes {
457+
data: string;
440458
}
441459
export interface MempoolTxidFilterEntries {
442460
entries?: { [key: string]: string };
461+
usedZeroedKey?: boolean;
443462
}

0 commit comments

Comments
 (0)