@atomicfinance/provider
Advanced tools
Comparing version 2.5.1 to 3.0.0
# @atomicfinance/provider | ||
## 3.0.0 | ||
### Major Changes | ||
- a06082e: Create unified standalone `bitcoin-abstraction-layer` package | ||
### Patch Changes | ||
- Updated dependencies [a06082e] | ||
- @atomicfinance/types@3.0.0 | ||
## 2.5.1 | ||
@@ -4,0 +15,0 @@ |
@@ -1,9 +0,9 @@ | ||
import { IFinanceClient } from '@atomicfinance/types'; | ||
import { IClient } from '@atomicfinance/types'; | ||
export default abstract class Provider { | ||
client: IFinanceClient; | ||
client: IClient; | ||
/** | ||
* Set client to a provider instance. | ||
* @param {!ChainAbstractionLayer} client - The ChainAbstractionLayer instance | ||
* @param client - The client instance | ||
*/ | ||
setClient(client?: any): void; | ||
setClient(client?: IClient): void; | ||
/** | ||
@@ -15,3 +15,3 @@ * Get method for the provider | ||
*/ | ||
getMethod(method: string, requestor?: any): any; | ||
getMethod(method: string, requestor?: any): (...args: any[]) => any; | ||
} |
@@ -6,3 +6,3 @@ "use strict"; | ||
* Set client to a provider instance. | ||
* @param {!ChainAbstractionLayer} client - The ChainAbstractionLayer instance | ||
* @param client - The client instance | ||
*/ | ||
@@ -18,2 +18,3 @@ setClient(client) { | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
getMethod(method, requestor = this) { | ||
@@ -20,0 +21,0 @@ return this.client.getMethod(method, requestor).bind(this); |
@@ -1,10 +0,10 @@ | ||
import { IFinanceClient } from '@atomicfinance/types'; | ||
import { IClient } from '@atomicfinance/types'; | ||
export default abstract class Provider { | ||
client: IFinanceClient; | ||
client: IClient; | ||
/** | ||
* Set client to a provider instance. | ||
* @param {!ChainAbstractionLayer} client - The ChainAbstractionLayer instance | ||
* @param client - The client instance | ||
*/ | ||
setClient(client?: any) { | ||
setClient(client?: IClient): void { | ||
this.client = client; | ||
@@ -19,5 +19,6 @@ } | ||
*/ | ||
getMethod(method: string, requestor: any = this) { | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
getMethod(method: string, requestor: any = this): (...args: any[]) => any { | ||
return this.client.getMethod(method, requestor).bind(this); | ||
} | ||
} |
{ | ||
"name": "@atomicfinance/provider", | ||
"umdName": "Provider", | ||
"version": "2.5.1", | ||
"description": "CAL Finance Provider", | ||
"version": "3.0.0", | ||
"description": "Bitcoin Abstraction Layer Provider", | ||
"author": "Atomic Finance <info@atomic.finance>", | ||
@@ -18,3 +18,3 @@ "homepage": "", | ||
"dependencies": { | ||
"@atomicfinance/types": "^2.5.1", | ||
"@atomicfinance/types": "^3.0.0", | ||
"lodash": "^4.17.20" | ||
@@ -21,0 +21,0 @@ }, |
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
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
4598
16
77
+ Added@atomicfinance/types@3.5.0(transitive)
+ Added@node-dlc/bitcoin@0.23.6(transitive)
+ Added@node-dlc/messaging@0.23.6(transitive)
+ Addedbitcoin-networks@1.0.0(transitive)
- Removed@atomicfinance/types@2.5.1(transitive)
- Removed@babel/runtime@7.25.7(transitive)
- Removed@liquality/bitcoin-networks@1.0.0-beta.2(transitive)
- Removed@liquality/crypto@1.13.12(transitive)
- Removed@liquality/errors@1.13.12(transitive)
- Removed@liquality/provider@1.1.5(transitive)
- Removed@liquality/types@1.1.5(transitive)
- Removed@liquality/utils@1.0.0-beta.2(transitive)
- Removed@node-dlc/messaging@0.18.3(transitive)
- Removed@types/standard-error@1.1.2(transitive)
- Removedbignumber.js@9.1.2(transitive)
- Removedcrypto-hashing@1.0.0(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedstandard-error@1.1.0(transitive)
Updated@atomicfinance/types@^3.0.0