@onekeyfe/onekey-private-external-account-provider
Advanced tools
Comparing version 2.0.0-alpha.6 to 2.0.0-alpha.7
import { IInpageProviderConfig } from "@onekeyfe/cross-inpage-provider-core"; | ||
import { ProviderPrivateExternalAccountBase } from "./ProviderPrivateExternalAccountBase"; | ||
import { PrivateExternalAccountProviderEventsMap, IExternalAccount, IProviderPrivateExternalAccount, IEncodedTxBtc, IBtcNetwork, ISignTxRes } from "./types"; | ||
import { PrivateExternalAccountProviderEventsMap, IExternalAccount, IProviderPrivateExternalAccount, IBtcNetwork, ISignTxRes } from "./types"; | ||
declare class ProviderPrivateExternalAccount extends ProviderPrivateExternalAccountBase implements IProviderPrivateExternalAccount { | ||
@@ -15,3 +15,3 @@ constructor(props: IInpageProviderConfig); | ||
btc_signTransaction(params: { | ||
encodedTx: IEncodedTxBtc; | ||
psbtHex: string; | ||
network: IBtcNetwork; | ||
@@ -18,0 +18,0 @@ }): Promise<ISignTxRes>; |
@@ -42,3 +42,3 @@ import { IJsonRpcRequest } from '@onekeyfe/cross-inpage-provider-types'; | ||
btc_signTransaction: (params: { | ||
encodedTx: IEncodedTxBtc; | ||
psbtHex: string; | ||
network: IBtcNetwork; | ||
@@ -65,40 +65,2 @@ }) => Promise<ISignTxRes>; | ||
}; | ||
declare type IBtcInput = { | ||
txid: string; | ||
vout: number; | ||
value: string; | ||
address: string; | ||
path: string; | ||
}; | ||
declare type IBtcOutput = { | ||
address: string; | ||
value: string; | ||
payload?: { | ||
isCharge?: boolean; | ||
bip44Path?: string; | ||
opReturn?: string; | ||
}; | ||
}; | ||
declare type ICoinSelectUTXO = { | ||
txId: string; | ||
vout: number; | ||
value: number; | ||
address: string; | ||
path: string; | ||
forceSelect?: boolean; | ||
}; | ||
declare type IInputsForCoinSelect = ICoinSelectUTXO[]; | ||
declare type IOutputsForCoinSelect = { | ||
address: string; | ||
value?: number; | ||
isMax?: boolean; | ||
script?: string; | ||
}[]; | ||
export declare type IEncodedTxBtc = { | ||
inputs: IBtcInput[]; | ||
outputs: IBtcOutput[]; | ||
inputsForCoinSelect: IInputsForCoinSelect; | ||
outputsForCoinSelect: IOutputsForCoinSelect; | ||
fee: string; | ||
}; | ||
export {}; |
{ | ||
"name": "@onekeyfe/onekey-private-external-account-provider", | ||
"version": "2.0.0-alpha.6", | ||
"version": "2.0.0-alpha.7", | ||
"keywords": [ | ||
@@ -31,8 +31,8 @@ "cross-inpage-provider" | ||
"dependencies": { | ||
"@onekeyfe/cross-inpage-provider-core": "2.0.0-alpha.6", | ||
"@onekeyfe/cross-inpage-provider-errors": "2.0.0-alpha.6", | ||
"@onekeyfe/cross-inpage-provider-types": "2.0.0-alpha.6", | ||
"@onekeyfe/extension-bridge-injected": "2.0.0-alpha.6" | ||
"@onekeyfe/cross-inpage-provider-core": "2.0.0-alpha.7", | ||
"@onekeyfe/cross-inpage-provider-errors": "2.0.0-alpha.7", | ||
"@onekeyfe/cross-inpage-provider-types": "2.0.0-alpha.7", | ||
"@onekeyfe/extension-bridge-injected": "2.0.0-alpha.7" | ||
}, | ||
"gitHead": "d3e3f224c0436a4189b243da3b2f39d71308c8d5" | ||
"gitHead": "4973c47364a6f6c8533596b11edbb308db360893" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16921
322
+ Added@onekeyfe/cross-inpage-provider-core@2.0.0-alpha.7(transitive)
+ Added@onekeyfe/cross-inpage-provider-errors@2.0.0-alpha.7(transitive)
+ Added@onekeyfe/cross-inpage-provider-events@2.0.0-alpha.7(transitive)
+ Added@onekeyfe/cross-inpage-provider-types@2.0.0-alpha.7(transitive)
+ Added@onekeyfe/extension-bridge-injected@2.0.0-alpha.7(transitive)
- Removed@onekeyfe/cross-inpage-provider-core@2.0.0-alpha.6(transitive)
- Removed@onekeyfe/cross-inpage-provider-errors@2.0.0-alpha.6(transitive)
- Removed@onekeyfe/cross-inpage-provider-events@2.0.0-alpha.6(transitive)
- Removed@onekeyfe/cross-inpage-provider-types@2.0.0-alpha.6(transitive)
- Removed@onekeyfe/extension-bridge-injected@2.0.0-alpha.6(transitive)