-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Implement pending state for airdrop purposes #13566
feat: Implement pending state for airdrop purposes #13566
Conversation
0955fc8
to
2de6a7f
Compare
hedera-node/hedera-config/src/main/java/com/hedera/node/config/data/TokensConfig.java
Outdated
Show resolved
Hide resolved
...-service-impl/src/main/java/com/hedera/node/app/service/token/impl/WritableAirdropStore.java
Outdated
Show resolved
Hide resolved
...-service-impl/src/main/java/com/hedera/node/app/service/token/impl/WritableAirdropStore.java
Outdated
Show resolved
Hide resolved
@@ -39,6 +43,8 @@ | |||
public class V0500TokenSchema extends Schema { | |||
private static final Logger log = LogManager.getLogger(V0500TokenSchema.class); | |||
private static final String SHARED_VALUES_KEY = "V0500_FIRST_STORAGE_KEYS"; | |||
private static final long MAX_PENDING_AIRDROPS = 1_000_000_000L; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A question for the PR reviewer: do you think this is accurate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ConfigProperty(value = "maxAllowedAirdrops", defaultValue = "1000000") @NetworkProperty | ||
long maxAllowedAirdorps, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for @netopyr to give us the exact value here.
.../src/test/java/com/hedera/node/app/service/token/impl/test/ReadableAirdropStoreImplTest.java
Show resolved
Hide resolved
...-service-impl/src/main/java/com/hedera/node/app/service/token/impl/WritableAirdropStore.java
Show resolved
Hide resolved
...impl/src/test/java/com/hedera/node/app/service/token/impl/test/WritableAirdropStoreTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
...vice-impl/src/main/java/com/hedera/node/app/service/token/impl/ReadableAirdropStoreImpl.java
Outdated
Show resolved
Hide resolved
...-service-impl/src/main/java/com/hedera/node/app/service/token/impl/WritableAirdropStore.java
Show resolved
Hide resolved
...dera-token-service/src/main/java/com/hedera/node/app/service/token/ReadableAirdropStore.java
Outdated
Show resolved
Hide resolved
...vice-impl/src/main/java/com/hedera/node/app/service/token/impl/ReadableAirdropStoreImpl.java
Show resolved
Hide resolved
Signed-off-by: ibankov <[email protected]>
…rdrop-store' into 13113-read-write-airdrop-store
gradle/plugins/src/main/kotlin/com/hedera/gradle/tasks/GitClone.kt
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## airdrop-store-and-tokenAirdropTransaction-implementation #13566 +/- ##
===========================================================================================
Coverage ? 58.32%
Complexity ? 22112
===========================================================================================
Files ? 2890
Lines ? 109789
Branches ? 11169
===========================================================================================
Hits ? 64034
Misses ? 42214
Partials ? 3541 ☔ View full report in Codecov by Sentry. |
…plementation' into 13113-read-write-airdrop-store # Conflicts: # hedera-node/hedera-mono-service/src/main/java/com/hedera/node/app/service/mono/pbj/PbjConverter.java
Signed-off-by: ibankov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…plementation' into 13113-read-write-airdrop-store # Conflicts: # hapi/build.gradle.kts # hedera-node/hedera-config/src/main/java/com/hedera/node/config/data/ApiPermissionConfig.java
Signed-off-by: ibankov <[email protected]>
8204322
into
airdrop-store-and-tokenAirdropTransaction-implementation
Signed-off-by: ibankov <[email protected]> Co-authored-by: Valentin Tronkov <[email protected]>
Signed-off-by: ibankov <[email protected]> Co-authored-by: Valentin Tronkov <[email protected]> Signed-off-by: ibankov <[email protected]>
Description:
Defining Readable and Writable stores for accessing and manipulating the pending airdrops state
Related issue(s):
Fixes #13938
Fixes #13939
Fixes #13940
Notes for reviewer:
Merge after hashgraph/hedera-protobufs#371 is merged and protobuf updated.
Note: Currently, the schema is added to V0500TokenSchema file but when it's time to merge the story we will move it to the correct version
Checklist