@shapeshiftoss/types 1.19.0 → 1.21.1

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/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { HDWallet } from '@shapeshiftoss/hdwallet-core';
2
2
  import { FeeDataKey, QuoteFeeData, SignTxInput } from './chain-adapters';
3
3
  /** Common */
4
- export declare type BIP32Params = {
4
+ export declare type BIP44Params = {
5
5
  purpose: number;
6
6
  coinType: number;
7
7
  accountNumber: number;
@@ -6,6 +6,8 @@ export declare type Account = {
6
6
  export declare type FeeData = {
7
7
  gasPrice: string;
8
8
  gasLimit: string;
9
+ maxFeePerGas: string;
10
+ maxPriorityFeePerGas: string;
9
11
  };
10
12
  export declare type QuoteFeeData = {
11
13
  /**
@@ -1,5 +1,5 @@
1
1
  import { BTCSignTx, ETHSignTx, HDWallet } from '@shapeshiftoss/hdwallet-core';
2
- import { BIP32Params, ChainTypes, NetworkTypes, SwapperType, UtxoAccountType } from '../base';
2
+ import { BIP44Params, ChainTypes, NetworkTypes, SwapperType, UtxoAccountType } from '../base';
3
3
  import { ChainAndSwapperSpecific, ChainSpecific } from '../utility';
4
4
  import * as bitcoin from './bitcoin';
5
5
  import * as ethereum from './ethereum';
@@ -66,7 +66,7 @@ export declare type FeeDataEstimate<T extends ChainTypes> = {
66
66
  };
67
67
  export declare type SubscribeTxsInput = {
68
68
  wallet: HDWallet;
69
- bip32Params?: BIP32Params;
69
+ bip44Params?: BIP44Params;
70
70
  accountType?: UtxoAccountType;
71
71
  };
72
72
  export declare type TxFee = {
@@ -132,7 +132,7 @@ export declare type BuildSendTxInput<T extends ChainTypes> = {
132
132
  to: string;
133
133
  value: string;
134
134
  wallet: HDWallet;
135
- bip32Params?: BIP32Params;
135
+ bip44Params?: BIP44Params;
136
136
  sendMax?: boolean;
137
137
  } & ChainSpecificBuildTxData<T>;
138
138
  declare type ChainSpecificBuildTxData<T> = ChainSpecific<T, {
@@ -151,7 +151,7 @@ export interface TxHistoryInput {
151
151
  }
152
152
  export declare type GetAddressInputBase = {
153
153
  wallet: HDWallet;
154
- bip32Params?: BIP32Params;
154
+ bip44Params?: BIP44Params;
155
155
  /**
156
156
  * Request that the address be shown to the user by the device, if supported
157
157
  */
package/dist/market.d.ts CHANGED
@@ -14,7 +14,7 @@ export declare enum HistoryTimeframe {
14
14
  }
15
15
  export declare type HistoryData = {
16
16
  price: number;
17
- date: string;
17
+ date: number;
18
18
  };
19
19
  export declare type PriceHistoryArgs = {
20
20
  caip19: string;
@@ -24,11 +24,10 @@ export declare type MarketDataArgs = {
24
24
  caip19: string;
25
25
  };
26
26
  export declare type FindAllMarketType = (args: FindAllMarketArgs) => Promise<MarketCapResult>;
27
- export declare type FindByCaip19MarketType = (args: MarketDataArgs) => Promise<MarketData>;
27
+ export declare type FindByCaip19MarketType = (args: MarketDataArgs) => Promise<MarketData | null>;
28
28
  export declare type PriceHistoryType = (args: PriceHistoryArgs) => Promise<HistoryData[]>;
29
29
  export declare type FindAllMarketArgs = {
30
- pages: number;
31
- perPage: number;
30
+ count: number;
32
31
  };
33
32
  export declare type MarketCapResult = {
34
33
  [k: string]: MarketData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/types",
3
- "version": "1.19.0",
3
+ "version": "1.21.1",
4
4
  "description": "Common types shared across packages",
5
5
  "repository": "https://github.com/shapeshift/lib",
6
6
  "license": "MIT",