@shapeshiftoss/types 1.11.4 → 1.14.0

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
@@ -47,10 +47,11 @@ declare type AbstractAsset = {
47
47
  icon: string;
48
48
  explorer: string;
49
49
  explorerTxLink: string;
50
+ explorerAddressLink: string;
50
51
  sendSupport: boolean;
51
52
  receiveSupport: boolean;
52
53
  };
53
- declare type OmittedTokenAssetFields = 'chain' | 'network' | 'slip44' | 'explorer' | 'explorerTxLink';
54
+ declare type OmittedTokenAssetFields = 'chain' | 'network' | 'slip44' | 'explorer' | 'explorerTxLink' | 'explorerAddressLink';
54
55
  declare type TokenAssetFields = {
55
56
  tokenId: string;
56
57
  contractType: ContractTypes;
@@ -1,4 +1,4 @@
1
- import { BTCInputScriptType } from '@shapeshiftoss/hdwallet-core';
1
+ import { UtxoAccountType } from '../base';
2
2
  import { GetAddressInputBase } from '.';
3
3
  export declare type Account = {
4
4
  /** Derived addresses and associated balances if account is xpub based (gap limit 20) */
@@ -13,7 +13,7 @@ export declare type Address = {
13
13
  balance: string;
14
14
  };
15
15
  export declare type GetAddressInput = GetAddressInputBase & {
16
- scriptType: BTCInputScriptType;
16
+ accountType: UtxoAccountType;
17
17
  };
18
18
  export declare type TransactionSpecific = {
19
19
  opReturnData?: string;
@@ -67,7 +67,7 @@ export declare type FeeData = {
67
67
  };
68
68
  export declare type BuildTxInput = {
69
69
  opReturnData?: string;
70
- scriptType: BTCInputScriptType;
70
+ accountType: UtxoAccountType;
71
71
  satoshiPerByte: string;
72
72
  };
73
73
  export declare type GetFeeDataInput = {
@@ -1,5 +1,5 @@
1
- import { BTCInputScriptType, BTCSignTx, ETHSignTx, HDWallet } from '@shapeshiftoss/hdwallet-core';
2
- import { BIP32Params, ChainTypes, NetworkTypes, SwapperType } from '../base';
1
+ import { BTCSignTx, ETHSignTx, HDWallet } from '@shapeshiftoss/hdwallet-core';
2
+ import { BIP32Params, 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';
@@ -63,7 +63,7 @@ export declare type FeeDataEstimate<T extends ChainTypes> = {
63
63
  export declare type SubscribeTxsInput = {
64
64
  wallet: HDWallet;
65
65
  bip32Params?: BIP32Params;
66
- scriptType?: BTCInputScriptType;
66
+ accountType?: UtxoAccountType;
67
67
  };
68
68
  export declare type TxFee = {
69
69
  symbol: string;
@@ -71,7 +71,8 @@ export declare type TxFee = {
71
71
  };
72
72
  export declare enum TxType {
73
73
  Send = "send",
74
- Receive = "receive"
74
+ Receive = "receive",
75
+ Trade = "trade"
75
76
  }
76
77
  export declare enum TxStatus {
77
78
  Confirmed = "confirmed",
@@ -92,7 +93,16 @@ export declare type SubscribeTxsMessage<T extends ChainTypes> = {
92
93
  from?: string;
93
94
  fee?: TxFee;
94
95
  status: TxStatus;
96
+ tradeDetails?: TradeDetails;
95
97
  } & TxTransfer<T>;
98
+ export declare type TradeDetails = {
99
+ buyAmount: string;
100
+ buyAsset: string;
101
+ dexName: string;
102
+ feeAmount: string;
103
+ sellAmount: string;
104
+ sellAsset: string;
105
+ };
96
106
  declare type ChainSpecificTxTransfer<T> = ChainSpecific<T, {
97
107
  [ChainTypes.Ethereum]: ethereum.TxTransfer;
98
108
  }>;
@@ -35,6 +35,7 @@ var TxType;
35
35
  (function (TxType) {
36
36
  TxType["Send"] = "send";
37
37
  TxType["Receive"] = "receive";
38
+ TxType["Trade"] = "trade";
38
39
  })(TxType = exports.TxType || (exports.TxType = {}));
39
40
  var TxStatus;
40
41
  (function (TxStatus) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/types",
3
- "version": "1.11.4",
3
+ "version": "1.14.0",
4
4
  "description": "Common types shared across packages",
5
5
  "repository": "https://github.com/shapeshift/lib",
6
6
  "license": "MIT",
@@ -20,6 +20,6 @@
20
20
  "type-check": "tsc --project ./tsconfig.json --noEmit"
21
21
  },
22
22
  "devDependencies": {
23
- "@shapeshiftoss/hdwallet-core": "^1.17.1"
23
+ "@shapeshiftoss/hdwallet-core": "^1.18.2"
24
24
  }
25
25
  }