@rosen-chains/abstract-chain
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -17,3 +17,3 @@ import { AbstractLogger } from '@rosen-bridge/logger-interface'; | ||
* @param unsignedTransactions ongoing unsigned PaymentTransactions (used for preventing double spend) | ||
* @param serializedSignedTransactions the serialized string of ongoing signed transactions (used for chainning transaction) | ||
* @param serializedSignedTransactions the serialized string of ongoing signed transactions (used for chaining transaction) | ||
* @returns the generated PaymentTransaction | ||
@@ -37,3 +37,3 @@ */ | ||
* @param transaction the PaymentTransaction | ||
* @returns true if the transaction fee verified | ||
* @returns true if the transaction fee is verified | ||
*/ | ||
@@ -50,3 +50,3 @@ abstract verifyTransactionFee: (transaction: PaymentTransaction) => boolean; | ||
* @param transaction the PaymentTransaction | ||
* @returns true if the transaction verified | ||
* @returns true if the transaction is verified | ||
*/ | ||
@@ -58,3 +58,3 @@ verifyTransactionExtraConditions: (transaction: PaymentTransaction) => boolean; | ||
* @param feeConfig minimum fee and rsn ratio config for the event | ||
* @returns true if the event verified | ||
* @returns true if the event is verified | ||
*/ | ||
@@ -73,3 +73,2 @@ abstract verifyEvent: (event: EventTrigger, feeConfig: Fee) => Promise<boolean>; | ||
* @param requiredSign the required number of sign | ||
* @param signFunction the function to sign transaction | ||
* @returns the signed transaction | ||
@@ -76,0 +75,0 @@ */ |
@@ -26,3 +26,3 @@ import { DummyLogger } from '@rosen-bridge/logger-interface'; | ||
* @param transaction the PaymentTransaction | ||
* @returns true if the transaction verified | ||
* @returns true if the transaction is verified | ||
*/ | ||
@@ -98,2 +98,2 @@ verifyTransactionExtraConditions = (transaction) => { | ||
export default AbstractChain; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQWJzdHJhY3RDaGFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9BYnN0cmFjdENoYWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQ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xuICBhYnN0cmFjdCBnZXRSV1RUb2tlbjogKCkgPT4gc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBjb252ZXJ0cyBqc29uIHJlcHJlc2VudGF0aW9uIG9mIHRoZSBwYXltZW50IHRyYW5zYWN0aW9uIHRvIFBheW1lbnRUcmFuc2FjdGlvblxuICAgKiBAcmV0dXJucyBQYXltZW50VHJhbnNhY3Rpb24gb2JqZWN0XG4gICAqL1xuICBhYnN0cmFjdCBQYXltZW50VHJhbnNhY3Rpb25Gcm9tSnNvbjogKFxuICAgIGpzb25TdHJpbmc6IHN0cmluZ1xuICApID0+IFBheW1lbnRUcmFuc2FjdGlvbjtcblxuICAvKipcbiAgICogcmV0dXJucyBjaGFpbiBjb25maWdcbiAgICogQGFzc2V0SWRcbiAgICovXG4gIGdldENoYWluQ29uZmlncyA9ICgpOiBDaGFpbkNvbmZpZ3MgPT4gdGhpcy5jb25maWdzO1xufVxuXG5leHBvcnQgZGVmYXVsdCBBYnN0cmFjdENoYWluO1xuIl19 |
@@ -39,3 +39,3 @@ import { AbstractLogger, DummyLogger } from '@rosen-bridge/logger-interface'; | ||
* @param unsignedTransactions ongoing unsigned PaymentTransactions (used for preventing double spend) | ||
* @param serializedSignedTransactions the serialized string of ongoing signed transactions (used for chainning transaction) | ||
* @param serializedSignedTransactions the serialized string of ongoing signed transactions (used for chaining transaction) | ||
* @returns the generated PaymentTransaction | ||
@@ -73,3 +73,3 @@ */ | ||
* @param transaction the PaymentTransaction | ||
* @returns true if the transaction fee verified | ||
* @returns true if the transaction fee is verified | ||
*/ | ||
@@ -96,3 +96,3 @@ abstract verifyTransactionFee: (transaction: PaymentTransaction) => boolean; | ||
* @param transaction the PaymentTransaction | ||
* @returns true if the transaction verified | ||
* @returns true if the transaction is verified | ||
*/ | ||
@@ -109,3 +109,3 @@ verifyTransactionExtraConditions = ( | ||
* @param feeConfig minimum fee and rsn ratio config for the event | ||
* @returns true if the event verified | ||
* @returns true if the event is verified | ||
*/ | ||
@@ -132,3 +132,2 @@ abstract verifyEvent: ( | ||
* @param requiredSign the required number of sign | ||
* @param signFunction the function to sign transaction | ||
* @returns the signed transaction | ||
@@ -135,0 +134,0 @@ */ |
{ | ||
"name": "@rosen-chains/abstract-chain", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "this project contains abstract classes to implement any chain for Rosen-bridge", | ||
@@ -26,3 +26,3 @@ "main": "dist/lib/index.js", | ||
"@rosen-bridge/minimum-fee": "^0.1.13", | ||
"@rosen-bridge/rosen-extractor": "^1.0.1" | ||
"@rosen-bridge/rosen-extractor": "^1.0.2" | ||
}, | ||
@@ -29,0 +29,0 @@ "devDependencies": { |
@@ -95,3 +95,3 @@ # Abstract Chain | ||
- **@param** `unsignedTransactions` ongoing unsigned PaymentTransactions which will be used to prevent double spending (gathered from database and guard TxAgreement process) | ||
- **@param** `serializedSignedTransactions` the serialized string of ongoing signed transactions which will be used for chained transactions (gathered from database and mempool) | ||
- **@param** `serializedSignedTransactions` the serialized string of ongoing signed transactions which will be used for chaining transactions (gathered from database and mempool) | ||
- **@returns** the generated PaymentTransaction | ||
@@ -109,13 +109,13 @@ - `getTransactionAssets` | ||
- **@param** `transaction` the PaymentTransaction | ||
- **@returns** true if the transaction fee verified | ||
- **@returns** true if the transaction fee is verified | ||
- `verifyNoTokenBurned` | ||
- verifies no token burned in a PaymentTransaction | ||
- **@param** `transaction` the PaymentTransaction | ||
- **@returns** true if not token burned | ||
- **@returns** true if no token burned | ||
- `verifyTransactionExtraConditions` | ||
- verifies additional conditions for a PaymentTransaction | ||
- **@param** `transaction` the PaymentTransaction | ||
- **@returns** true if the transaction verified | ||
- **NOTE**: This function is implemented in AbstarctChain and will return true. In any chain | ||
that requires extra check to verify the transaction, this function should be overrided. | ||
- **@returns** true if the transaction is verified | ||
- **NOTE**: This function is implemented in AbstractChain and will return true. In any chain | ||
that requires extra check to verify the transaction, this function should be overridden. | ||
- `verifyEvent` | ||
@@ -126,3 +126,3 @@ - verifies an event data with its corresponding lock transaction | ||
- **@param** `feeConfig` minimum fee and rsn ratio config for the event | ||
- **@returns** true if the event verified | ||
- **@returns** true if the event is verified | ||
- `isTxValid` | ||
@@ -136,3 +136,2 @@ - checks if a transaction is still valid and can be sent to the network | ||
- **@param** `requiredSign` the required number of sign | ||
- **@param** `signFunction` the function to sign transaction (provided in guard process) | ||
- **@returns** the signed transaction | ||
@@ -144,11 +143,2 @@ - `getTxConfirmationStatus` | ||
- **@returns** the transaction confirmation status | ||
- `getLockAddressAssets` | ||
- gets the amount of each asset in the lock address | ||
- **@returns** an object containing the amount of each asset | ||
- `getHeight` | ||
- gets the blockchain height | ||
- **@returns** the blockchain height | ||
- **NOTE**: This function is implemented in AbstarctChain and will redirect request to | ||
network class `getHeight` function. If process is different in the chain, this function | ||
should be overrided. | ||
- `submitTransaction` | ||
@@ -161,9 +151,12 @@ - submits a transaction to the blockchain | ||
- **@returns** true if the transaction is in mempool | ||
- `hasLockAddressEnoughAssets` | ||
- checks if lock address assets are more than required assets or not | ||
- **@param** `required` required amount of assets | ||
- **@returns** true if lock assets are more than required assets | ||
- `getMinimumNativeToken` | ||
- gets the minimum amount of native token for transferring asset | ||
- **@returns** the minimum amount | ||
- `getRWTToken` | ||
- gets the RWT token id | ||
- **@returns** the RWT token id | ||
- `PaymentTransactionFromJson` | ||
- converts json representation of the payment transaction to PaymentTransaction | ||
- **@param** `jsonString` the json representation of the payment transaction | ||
- **@returns** PaymentTransaction object | ||
@@ -194,3 +187,3 @@ ### `AbstractUtxoChain` | ||
- `getTxConfirmation` | ||
- gets confirmation for a transaction | ||
- gets confirmation for a transaction or -1 if tx is not in the blockchain | ||
- **@param** `transactionId` the transaction id | ||
@@ -206,2 +199,6 @@ - **@returns** the transaction confirmation | ||
- **@returns** list of the transaction ids in the block | ||
- `getBlockInfo` | ||
- gets info of the given block | ||
- **@param** `blockId` the block id | ||
- **@returns** an object containing block info (hash, parent hash and height of the block) | ||
- `getTransaction` | ||
@@ -226,6 +223,8 @@ - gets a transaction | ||
- **@param** `address` the address | ||
- **@param** `offset` | ||
- **@param** `limit` | ||
- **@returns** list of serialized string of the boxes | ||
- `isBoxUnspentAndValid` | ||
- extracts box id and assets of a box | ||
- checks if a box is still unspent and valid | ||
- **@param** `boxId` the box id | ||
- **@returns** true if the box is unspent and valid |
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
237051
2991
222