-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/ra 71 wrong transaction size in operation metadata (#192)
* feat: implement customstore to save TxSize * feat: updated * feat: added TxnEntity to api and added oneToone Entity mapping * feat: readded txbody to dataitems * refactor: removed unused code * refactor: removed unused code * refactor: mapstruct not needed * chore: updated testDB * chore: spotless and dependency clean up * refactor: adding comments and extracting constants * readding TransactionSizeEntity To yaciindexer to maintain the separation of both modules * moved some classes * moved some classes * adjusted policyID for account test * fixed codesmells * adding support for PlutusV3 * refactor: refactored CustomTransactionSizeStore, added spotless * refactor: refactored CustomTransactionSizeStore, added spotless * refactor: refactored CustomTransactionSizeStore, added spotless * node version update * fix test * delete empty file
- Loading branch information
Showing
26 changed files
with
434 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...main/java/org/cardanofoundation/rosetta/api/block/model/entity/TransactionSizeEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package org.cardanofoundation.rosetta.api.block.model.entity; | ||
|
||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.Table; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Getter | ||
@Entity | ||
@Table(name = "transaction_size") | ||
public class TransactionSizeEntity { | ||
|
||
@Column(name = "tx_hash") | ||
@Id | ||
private String txHash; | ||
|
||
@Column(name = "block_number") | ||
private long blockNumber; | ||
|
||
@Column(name = "size") | ||
private int size; | ||
|
||
@Column(name = "script_size") | ||
private int scriptSize; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
{ | ||
"stake_key_deregistration" : { | ||
"txHash" : "032ce4a519f2068703b0c78a00e8140f0f99de88e0b653750bf5d6f95b1c5ed2", | ||
"blockHash" : "a52c5b82007bd87729fd81fb07867d44001eb3c7adaa888ced2eb783d84d6a7f", | ||
"blockNumber" : 40 | ||
"blockHash" : "f9b9efb723ce51281cd7dbeb8ea22d405aa20b0be1678d71c60768aa9b1284fc", | ||
"blockNumber" : 33 | ||
}, | ||
"pool_retirement" : { | ||
"txHash" : "03b2264a382d87124b4f967fae166ff2ffc6cb0ce699f4b7812fdb81139f8264", | ||
"blockHash" : "26c225eae5072eb057198d75d005f62eb0c139ec19ebd75c1969ef4d6b9aa0f0", | ||
"blockNumber" : 52 | ||
"blockHash" : "9982166a157fa3ecad7bb597ac5941aea11de4f18b765642dab6f120acc99ec2", | ||
"blockNumber" : 44 | ||
}, | ||
"simple_new_empty_name_coins_transaction" : { | ||
"txHash" : "10f0251b21bb43910be3d85d239cabfd556ea4d7ad35445218df1537199fe3e9", | ||
"blockHash" : "bb52b4a9720629a1bee84039697d1ae9759c08af9874872e2f83a465fa8eabaa", | ||
"blockNumber" : 36 | ||
"txHash" : "e7d9a6e8e315a5bc60fd56afcfce38d07bde9ee6e27b2fe4f9c8b6ff9099c8c4", | ||
"blockHash" : "602587bc0e908055fec5397cc6589d18671a282507942b833fdf674285e4b56e", | ||
"blockNumber" : 28 | ||
}, | ||
"simple_second_lovelace_transaction" : { | ||
"txHash" : "6dcbc6a6a5522970a06c85b7655eb3b766624efa90b539b4f39963da4197b719", | ||
"blockHash" : "8cccb3ded3f1ef443463822d351a0c17e842fa5ad6894b58449a959613c1d3c2", | ||
"blockNumber" : 32 | ||
"blockHash" : "9f00a0855efe6a8fb6b0f98b5594cfba2e7e071f43929ad48fe5bfe236b08331", | ||
"blockNumber" : 24 | ||
}, | ||
"pool_delegation" : { | ||
"txHash" : "f9636da9997361320db793dd6f9d7812ac186afadb28731bb3d57b3309d76ebd", | ||
"blockHash" : "5ba2153151131ad27c9f9f5d375fd8a4d7949270eb6a979625d34693a90359e5", | ||
"blockNumber" : 50 | ||
"blockHash" : "ed77ebe525228d3331fa98ce9eeb70eee7b32409e390ec6534afb9d64c8ee680", | ||
"blockNumber" : 42 | ||
}, | ||
"simple_first_lovelace_transaction" : { | ||
"txHash" : "97f5a0de75fe0a0098228765b44a09b15cee7142fcf97868817f594b51729553", | ||
"blockHash" : "762f61a0fd5eb831c17b0a85b4fdcbf205cf9f654cdbb3321ce2d28802a21043", | ||
"blockNumber" : 30 | ||
"blockHash" : "4828dcc220d6924ba280c4e41b7339a1e12606b7aaa0588cbccb3954497021fa", | ||
"blockNumber" : 22 | ||
}, | ||
"simple_transaction_2" : { | ||
"txHash" : "820999c1a9236cd0bf0c2d1f576d317049a5f54d205227ec308ec08cada54528", | ||
"blockHash" : "3ee946df09e1f681a16fd3e1c30761116812a403d72f8d64ab21246debc6a7b1", | ||
"blockNumber" : 42 | ||
"blockHash" : "9a530536f286245f2c9e2faff4c1364472172e84d3246a7591adc1a79c5e5260", | ||
"blockNumber" : 35 | ||
}, | ||
"pool_registration" : { | ||
"txHash" : "f0a4f95c9952b95570f33e0b6bfe71c262206945925c71115160b7070d878a4a", | ||
"blockHash" : "4a08c8111269d5906d6943d9b23addd59a3e8a09d21b57e0d481b521c7a267f1", | ||
"blockNumber" : 44 | ||
"blockHash" : "ee14291f2210865a241fbfe5e16570bff9d8240c363473d513f9ddfeb667b8da", | ||
"blockNumber" : 37 | ||
}, | ||
"simple_new_coins_transaction" : { | ||
"txHash" : "bd0a6deae9a2b9fffd2baa6bb819a928244ff67c0e2f563bb840f1d1e52746c0", | ||
"blockHash" : "296623eb98dd9fe53abd0a756dd4d56ce7cca0254ac18e37b6220a5547254623", | ||
"blockNumber" : 34 | ||
"txHash" : "ca3e467c8bc9aa2d5cb17576169cf66cd3694bf1f14682c3b94ad70e89498a06", | ||
"blockHash" : "2c590cb5662aee6ec8e6282d99846df45f03b56c6f68b04c648e1e04ddf2b402", | ||
"blockNumber" : 26 | ||
}, | ||
"stake_key_registration" : { | ||
"txHash" : "d6d8ed0323bf594e692569d2d256ed1472e1c9e132552ef659452c9140191fec", | ||
"blockHash" : "b557c2f3e6835adca0c0c631cc39e6408de37ef3b7588f0bd4db6e32cbd24880", | ||
"blockNumber" : 38 | ||
"blockHash" : "eec3a4ec9358b425068d942c20a4a73f020e36e6cf958fa1dc9d17d1f10aff8b", | ||
"blockNumber" : 31 | ||
}, | ||
"simple_transaction" : { | ||
"txHash" : "6a8ace2755a79bd239f43b7562cb80a11c062c5ec5ed9418da6553c89c5405b3", | ||
"blockHash" : "468ee0b29874c71909c86d054c97580c72bbe29321c306047930f119abe19519", | ||
"blockNumber" : 28 | ||
"blockHash" : "65067e5651bd8b3051463ab46464f2c45cda8b3669aa2cf69f5d2297d613d4f4", | ||
"blockNumber" : 20 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...exer/src/main/java/org/cardanofoundation/rosetta/yaciindexer/mapper/CustomPoolMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.