Socket
Socket
Sign inDemoInstall

@trezor/blockchain-link-types

Package Overview
Dependencies
111
Maintainers
4
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.15 to 1.0.17-beta.1

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# 1.0.16
- chore(deps): bump @solana/web3.js from 1.90.0 to 1.90.2 (962e51f4ca)
- refactor(connect): optional token symbol (#10762) (47a7de17c6)
# 1.0.15

@@ -2,0 +7,0 @@

13

lib/blockbook-api.d.ts

@@ -48,3 +48,3 @@ export interface APIError {

name: string;
symbol: string;
symbol?: string;
decimals: number;

@@ -113,2 +113,13 @@ value?: string;

}
export interface StakingPool {
contract: string;
pendingBalance: string;
pendingDepositedBalance: string;
depositedBalance: string;
withdrawTotalAmount: string;
claimableAmount: string;
restakedReward: string;
autocompoundBalance: string;
name: string;
}
export interface ContractInfo {

@@ -115,0 +126,0 @@ type: string;

9

lib/blockbook.d.ts
import type { RequiredKey } from '@trezor/type-utils';
import type { AccountBalanceHistoryParams, GetCurrentFiatRatesParams, GetFiatRatesForTimestampsParams, GetFiatRatesTickersListParams, EstimateFeeParams, AccountInfoParams } from './params';
import type { AccountBalanceHistory, FiatRatesLegacy, TokenStandard, StakingPool } from './common';
import type { Tx as BlockbookTx, Vin, Vout, Utxo as BlockbookUtxo, WsInfoRes, WsBlockHashRes, WsBlockFilterReq, WsBlockFiltersBatchReq, MempoolTxidFilterEntries, Token as BlockbookToken, TokenTransfer as BlockbookTokenTransfer } from './blockbook-api';
import type { AccountBalanceHistory, FiatRatesLegacy, TokenStandard } from './common';
import type { Tx as BlockbookTx, Vin, Vout, Utxo as BlockbookUtxo, WsInfoRes, WsBlockHashRes, WsBlockFilterReq, WsBlockFiltersBatchReq, MempoolTxidFilterEntries, Token as BlockbookToken, TokenTransfer as BlockbookTokenTransfer, AddressAlias, ContractInfo, StakingPool } from './blockbook-api';
type OptionalKey<M, K extends keyof M> = Omit<M, K> & Partial<Pick<M, K>>;

@@ -63,3 +63,6 @@ export type AccountUtxo = RequiredKey<BlockbookUtxo, 'address' | 'height' | 'value' | 'path'>[];

tokens?: (XPUBAddress | ERC20 | ERC721 | ERC1155)[];
erc20Contract?: ERC20;
contractInfo?: ContractInfo;
addressAliases?: {
[key: string]: AddressAlias;
};
stakingPools?: StakingPool[];

@@ -66,0 +69,0 @@ }

import type { SocksProxyAgentOptions } from 'socks-proxy-agent';
import type { Transaction as BlockbookTransaction, VinVout } from './blockbook';
import type { TokenTransfer as BlockbookTokenTransfer } from './blockbook-api';
import type { AddressAlias, TokenTransfer as BlockbookTokenTransfer, ContractInfo, StakingPool } from './blockbook-api';
export interface BlockchainSettings {

@@ -136,13 +136,2 @@ name: string;

}
export interface StakingPool {
autocompoundBalance: string;
claimableAmount: string;
contract: string;
depositedBalance: string;
name: string;
pendingBalance: string;
pendingDepositedBalance: string;
restakedReward: string;
withdrawTotalAmount: string;
}
export interface AccountInfo {

@@ -165,3 +154,7 @@ descriptor: string;

nonce?: string;
erc20Contract?: TokenInfo;
contractInfo?: ContractInfo;
stakingPools?: StakingPool[];
addressAliases?: {
[key: string]: AddressAlias;
};
sequence?: number;

@@ -187,3 +180,2 @@ reserve?: string;

};
stakingPools?: StakingPool[];
}

@@ -190,0 +182,0 @@ export interface SubscriptionAccountInfo {

{
"name": "@trezor/blockchain-link-types",
"version": "1.0.15",
"version": "1.0.17-beta.1",
"license": "See LICENSE.md in repo root",

@@ -22,5 +22,5 @@ "sideEffects": false,

"dependencies": {
"@solana/web3.js": "^1.90.0",
"@solana/web3.js": "^1.91.6",
"@trezor/type-utils": "1.0.5",
"@trezor/utxo-lib": "2.0.8",
"@trezor/utxo-lib": "2.0.9",
"socks-proxy-agent": "6.1.1"

@@ -27,0 +27,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc