@onekeyfe/onekey-btc-provider
Advanced tools
Comparing version 1.1.59 to 1.1.60
@@ -99,3 +99,9 @@ "use strict"; | ||
} | ||
getBTCTipHeight() { | ||
return this._request({ | ||
method: types_1.ProviderMethods.GET_BTC_TIP_HEIGHT, | ||
params: undefined, | ||
}); | ||
} | ||
} | ||
exports.ProviderBtcWallet = ProviderBtcWallet; |
@@ -36,2 +36,3 @@ "use strict"; | ||
ProviderMethods["GET_UTXOS"] = "getUtxos"; | ||
ProviderMethods["GET_BTC_TIP_HEIGHT"] = "getBTCTipHeight"; | ||
})(ProviderMethods = exports.ProviderMethods || (exports.ProviderMethods = {})); |
@@ -21,4 +21,5 @@ import { ProviderBtc } from "./ProviderBtc"; | ||
getUtxos(address: string, amount: number): Promise<UTXO[]>; | ||
getBTCTipHeight(): Promise<number>; | ||
} | ||
export { ProviderBtcWallet }; | ||
export { IProviderBtcWallet }; |
@@ -96,3 +96,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
getBTCTipHeight() { | ||
return this._request({ | ||
method: ProviderMethods.GET_BTC_TIP_HEIGHT, | ||
params: undefined, | ||
}); | ||
} | ||
} | ||
export { ProviderBtcWallet }; |
@@ -63,3 +63,4 @@ import { IInpageProviderConfig } from '@onekeyfe/cross-inpage-provider-core'; | ||
GET_NETWORK_FEES = "getNetworkFees", | ||
GET_UTXOS = "getUtxos" | ||
GET_UTXOS = "getUtxos", | ||
GET_BTC_TIP_HEIGHT = "getBTCTipHeight" | ||
} | ||
@@ -66,0 +67,0 @@ export declare type OneKeyBtcProviderProps = IInpageProviderConfig & { |
@@ -33,2 +33,3 @@ export var ProviderEvents; | ||
ProviderMethods["GET_UTXOS"] = "getUtxos"; | ||
ProviderMethods["GET_BTC_TIP_HEIGHT"] = "getBTCTipHeight"; | ||
})(ProviderMethods || (ProviderMethods = {})); |
{ | ||
"name": "@onekeyfe/onekey-btc-provider", | ||
"version": "1.1.59", | ||
"version": "1.1.60", | ||
"keywords": [ | ||
@@ -31,8 +31,8 @@ "cross-inpage-provider" | ||
"dependencies": { | ||
"@onekeyfe/cross-inpage-provider-core": "1.1.59", | ||
"@onekeyfe/cross-inpage-provider-errors": "1.1.59", | ||
"@onekeyfe/cross-inpage-provider-types": "1.1.59", | ||
"@onekeyfe/extension-bridge-injected": "1.1.59" | ||
"@onekeyfe/cross-inpage-provider-core": "1.1.60", | ||
"@onekeyfe/cross-inpage-provider-errors": "1.1.60", | ||
"@onekeyfe/cross-inpage-provider-types": "1.1.60", | ||
"@onekeyfe/extension-bridge-injected": "1.1.60" | ||
}, | ||
"gitHead": "9eec6a9cb2f44712431e356dfa384ddf17a3a0a8" | ||
"gitHead": "3719f88ed1c9c0f256b40818d43ce555768fec1b" | ||
} |
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
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
1124
45808
2
90
+ Added@onekeyfe/cross-inpage-provider-core@1.1.60(transitive)
+ Added@onekeyfe/cross-inpage-provider-errors@1.1.60(transitive)
+ Added@onekeyfe/cross-inpage-provider-events@1.1.60(transitive)
+ Added@onekeyfe/cross-inpage-provider-types@1.1.60(transitive)
+ Added@onekeyfe/extension-bridge-injected@1.1.60(transitive)
- Removed@onekeyfe/cross-inpage-provider-core@1.1.59(transitive)
- Removed@onekeyfe/cross-inpage-provider-errors@1.1.59(transitive)
- Removed@onekeyfe/cross-inpage-provider-events@1.1.59(transitive)
- Removed@onekeyfe/cross-inpage-provider-types@1.1.59(transitive)
- Removed@onekeyfe/extension-bridge-injected@1.1.59(transitive)