@shapeshiftoss/types 1.12.0 → 1.15.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;
@@ -130,6 +130,7 @@ export declare type BuildSendTxInput<T extends ChainTypes> = {
130
130
  value: string;
131
131
  wallet: HDWallet;
132
132
  bip32Params?: BIP32Params;
133
+ sendMax?: boolean;
133
134
  } & ChainSpecificBuildTxData<T>;
134
135
  declare type ChainSpecificBuildTxData<T> = ChainSpecific<T, {
135
136
  [ChainTypes.Ethereum]: ethereum.BuildTxInput;
@@ -161,6 +162,7 @@ declare type ChainSpecificGetFeeDataInput<T> = ChainSpecific<T, {
161
162
  export declare type GetFeeDataInput<T extends ChainTypes> = {
162
163
  to: string;
163
164
  value: string;
165
+ sendMax?: boolean;
164
166
  } & ChainSpecificGetFeeDataInput<T>;
165
167
  export declare enum ValidAddressResultType {
166
168
  Valid = "valid",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/types",
3
- "version": "1.12.0",
3
+ "version": "1.15.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
  }