@shapeshiftoss/hdwallet-core
Advanced tools
Comparing version 1.38.0 to 1.39.0
@@ -1,2 +0,2 @@ | ||
import { BIP32Path, Coin, ExchangeType, HDWallet, HDWalletInfo, PathDescription } from "./wallet"; | ||
import { BIP32Path, Coin, HDWallet, HDWalletInfo, PathDescription } from "./wallet"; | ||
declare type MakeFalsy<T> = T extends boolean ? false : undefined; | ||
@@ -162,10 +162,2 @@ declare type DistributiveKeyOf<T> = T extends any ? keyof T : never; | ||
}; | ||
export declare type BTCSignTxOutputExchange = { | ||
/** | ||
* Device must `btcSupportsNativeShapeShift()` | ||
*/ | ||
addressType: BTCOutputAddressType.Exchange; | ||
amount: string; | ||
exchangeType: ExchangeType; | ||
}; | ||
export declare type BTCSignTxOutputMemo = { | ||
@@ -176,3 +168,3 @@ addressType?: BTCOutputAddressType.Spend; | ||
}; | ||
export declare type BTCSignTxOutput = GuardedUnion<BTCSignTxOutputSpend | BTCSignTxOutputSpendP2PKH | BTCSignTxOutputSpendP2SH | BTCSignTxOutputSpendP2WPKH | BTCSignTxOutputTransfer | BTCSignTxOutputChange | BTCSignTxOutputExchange | BTCSignTxOutputMemo>; | ||
export declare type BTCSignTxOutput = GuardedUnion<BTCSignTxOutputSpend | BTCSignTxOutputSpendP2PKH | BTCSignTxOutputSpendP2SH | BTCSignTxOutputSpendP2WPKH | BTCSignTxOutputTransfer | BTCSignTxOutputChange | BTCSignTxOutputMemo>; | ||
export interface BTCSignTx { | ||
@@ -223,4 +215,3 @@ coin: string; | ||
Transfer = "transfer", | ||
Change = "change", | ||
Exchange = "exchange" | ||
Change = "change" | ||
} | ||
@@ -227,0 +218,0 @@ export interface BTCSignMessage { |
@@ -50,3 +50,2 @@ "use strict"; | ||
BTCOutputAddressType["Change"] = "change"; | ||
BTCOutputAddressType["Exchange"] = "exchange"; | ||
})(BTCOutputAddressType = exports.BTCOutputAddressType || (exports.BTCOutputAddressType = {})); | ||
@@ -53,0 +52,0 @@ function unknownUTXOPath(path, coin, scriptType) { |
import { Bytes } from "@ethersproject/bytes"; | ||
import { BIP32Path, ExchangeType, HDWallet, HDWalletInfo, PathDescription } from "./wallet"; | ||
import { BIP32Path, HDWallet, HDWalletInfo, PathDescription } from "./wallet"; | ||
export interface SerializedEthereumRpcError { | ||
@@ -50,6 +50,2 @@ code: number; | ||
chainId: number; | ||
/** | ||
* Device must `ethSupportsNativeShapeShift()` | ||
*/ | ||
exchangeType?: ExchangeType; | ||
} & ({ | ||
@@ -56,0 +52,0 @@ /** big-endian hex, prefixed with '0x' */ |
@@ -66,11 +66,2 @@ import { BinanceWallet, BinanceWalletInfo } from "./binance"; | ||
} | ||
export interface ExchangeType { | ||
/** `SignedExchangeResponse` from the `/sendamountProto2` ShapeShift endpoint, base64 encoded */ | ||
signedExchangeResponse: string; | ||
withdrawalCoinName: string; | ||
withdrawalAddressNList: BIP32Path; | ||
withdrawalScriptType?: BTCInputScriptType; | ||
returnAddressNList: BIP32Path; | ||
returnScriptType?: BTCInputScriptType; | ||
} | ||
export interface DescribePath { | ||
@@ -77,0 +68,0 @@ path: BIP32Path; |
{ | ||
"name": "@shapeshiftoss/hdwallet-core", | ||
"version": "1.38.0", | ||
"version": "1.39.0", | ||
"license": "MIT", | ||
@@ -31,3 +31,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "c084093ce8c751241512eacfae7688d09f35432d" | ||
"gitHead": "9dd4bd9b87ec2e952f425266f3965c8fc009268b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
198602
3253