@rosen-chains/cardano
Advanced tools
Comparing version 9.0.1 to 9.0.2-ece87587
# @rosen-chains/cardano | ||
## 0.0.0-ece87587 | ||
### Patch Changes | ||
- Updated dependencies | ||
- @rosen-chains/abstract-chain@0.0.0-ece87587 | ||
## 9.0.2 | ||
### Patch Changes | ||
- improve logs | ||
- update rosen-extractor version | ||
- Updated dependencies | ||
- @rosen-chains/abstract-chain@9.0.2 | ||
## 9.0.1 | ||
@@ -4,0 +20,0 @@ |
@@ -498,2 +498,5 @@ import * as CardanoWasm from '@emurgo/cardano-serialization-lib-nodejs'; | ||
if (ttl && ttl < (await this.network.currentSlot())) { | ||
this.logger.info( | ||
`Tx [${transaction.txId}] is invalid: ttl [${ttl}] is expired` | ||
); | ||
return { | ||
@@ -512,3 +515,3 @@ isValid: false, | ||
if (!(await this.network.isBoxUnspentAndValid(boxId))) { | ||
this.logger.debug( | ||
this.logger.info( | ||
`Tx [${transaction.txId}] is invalid due to spending invalid input box [${boxId}] at index [${i}]` | ||
@@ -568,4 +571,4 @@ ); | ||
) { | ||
this.logger.debug( | ||
`Tx [${transaction.txId}] invalid: Transaction fee [${tx | ||
this.logger.warn( | ||
`Tx [${transaction.txId}] is not verified: Transaction fee [${tx | ||
.body() | ||
@@ -592,3 +595,5 @@ .fee() | ||
if (tx.auxiliary_data()) { | ||
this.logger.debug(`Tx [${transaction.txId}] invalid: Contains metadata`); | ||
this.logger.warn( | ||
`Tx [${transaction.txId}] is not verified: Contains metadata` | ||
); | ||
return false; | ||
@@ -601,4 +606,4 @@ } | ||
if (changeBox.address().to_bech32() !== this.configs.addresses.lock) { | ||
this.logger.debug( | ||
`Tx [${transaction.txId}] invalid: Change box address is wrong` | ||
this.logger.warn( | ||
`Tx [${transaction.txId}] is not verified: Change box address is wrong` | ||
); | ||
@@ -605,0 +610,0 @@ return false; |
{ | ||
"name": "@rosen-chains/cardano", | ||
"version": "9.0.1", | ||
"version": "9.0.2-ece87587", | ||
"description": "this project contains cardano chain for Rosen-bridge", | ||
@@ -25,6 +25,6 @@ "main": "dist/lib/index.js", | ||
"@rosen-bridge/abstract-logger": "^1.0.0", | ||
"@rosen-bridge/rosen-extractor": "^6.1.1", | ||
"@rosen-bridge/rosen-extractor": "^6.2.0", | ||
"@rosen-bridge/json-bigint": "^0.1.0", | ||
"@rosen-bridge/tokens": "^1.2.1", | ||
"@rosen-chains/abstract-chain": "^9.0.1", | ||
"@rosen-chains/abstract-chain": "9.0.2-ece87587", | ||
"bech32": "^2.0.0" | ||
@@ -31,0 +31,0 @@ }, |
@@ -131,2 +131,3 @@ import { randomBytes } from 'crypto'; | ||
export const manualTxConfirmation = 11; | ||
export const arbitraryTxConfirmation = 12; | ||
export const rwtId = | ||
@@ -151,2 +152,3 @@ '9410db5b39388c6b515160e7248346d7ec63d5457292326da12a26cc02efb526'; | ||
manual: manualTxConfirmation, | ||
arbitrary: arbitraryTxConfirmation, | ||
}, | ||
@@ -153,0 +155,0 @@ aggregatedPublicKey: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
390950
4121
2
+ Added@rosen-chains/abstract-chain@9.0.2-ece87587(transitive)
- Removed@rosen-chains/abstract-chain@9.0.2(transitive)