@rosen-chains/abstract-chain
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -138,2 +138,8 @@ import { AbstractLogger } from '@rosen-bridge/logger-interface'; | ||
/** | ||
* generates PaymentTransaction object from raw tx json string | ||
* @param rawTxJsonString | ||
* @returns PaymentTransaction object | ||
*/ | ||
abstract rawTxToPaymentTransaction: (rawTxJsonString: string) => Promise<PaymentTransaction>; | ||
/** | ||
* returns chain config | ||
@@ -140,0 +146,0 @@ * @assetId |
@@ -97,2 +97,2 @@ import { DummyLogger } from '@rosen-bridge/logger-interface'; | ||
export default AbstractChain; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQWJzdHJhY3RDaGFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9BYnN0cmFjdENoYWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBa0IsV0FBVyxFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFFN0UsT0FBTyxVQUFVLE1BQU0sY0FBYyxDQUFDO0FBQ3RDLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxVQUFVLENBQUM7QUFFdEMsT0FBTyxFQVFMLGVBQWUsR0FDaEIsTUFBTSxTQUFTLENBQUM7QUFHakIsTUFBZSxhQUFhO0lBQ2hCLE9BQU8sQ0FBZ0M7SUFDdkMsT0FBTyxDQUFlO0lBQ2hDLE1BQU0sQ0FBaUI7SUFFdkIsWUFDRSxPQUFzQyxFQUN0QyxPQUFxQixFQUNyQixNQUF1QjtRQUV2QixJQUFJLENBQUMsT0FBTyxHQUFHLE9BQU8sQ0FBQztRQUN2QixJQUFJLENBQUMsT0FBTyxHQUFHLE9BQU8sQ0FBQztRQUN2QixJQUFJLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQyxDQUFDLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxJQUFJLFdBQVc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RyaW5nOiBzdHJpbmdcbiAgKSA9PiBQcm9taXNlPFBheW1lbnRUcmFuc2FjdGlvbj47XG5cbiAgLyoqXG4gICAqIHJldHVybnMgY2hhaW4gY29uZmlnXG4gICAqIEBhc3NldElkXG4gICAqL1xuICBnZXRDaGFpbkNvbmZpZ3MgPSAoKTogQ2hhaW5Db25maWdzID0+IHRoaXMuY29uZmlncztcbn1cblxuZXhwb3J0IGRlZmF1bHQgQWJzdHJhY3RDaGFpbjtcbiJdfQ== |
@@ -251,2 +251,11 @@ import { AbstractLogger, DummyLogger } from '@rosen-bridge/logger-interface'; | ||
/** | ||
* generates PaymentTransaction object from raw tx json string | ||
* @param rawTxJsonString | ||
* @returns PaymentTransaction object | ||
*/ | ||
abstract rawTxToPaymentTransaction: ( | ||
rawTxJsonString: string | ||
) => Promise<PaymentTransaction>; | ||
/** | ||
* returns chain config | ||
@@ -253,0 +262,0 @@ * @assetId |
{ | ||
"name": "@rosen-chains/abstract-chain", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "this project contains abstract classes to implement any chain for Rosen-bridge", | ||
@@ -5,0 +5,0 @@ "main": "dist/lib/index.js", |
@@ -25,2 +25,3 @@ import { | ||
PaymentTransactionFromJson = this.notImplemented; | ||
rawTxToPaymentTransaction = this.notImplemented; | ||
@@ -27,0 +28,0 @@ getTransactionAssets = ( |
@@ -23,2 +23,3 @@ import { AbstractUtxoChain, BoxInfo } from '../lib'; | ||
PaymentTransactionFromJson = this.notImplemented; | ||
rawTxToPaymentTransaction = this.notImplemented; | ||
@@ -25,0 +26,0 @@ getBoxInfo = (box: string): BoxInfo => { |
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
238099
3007