-
Notifications
You must be signed in to change notification settings - Fork 28
feat: Added TokenCancelAirdropTransaction
#208
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Manish Dait <daitmanish88@gmail.com>
Signed-off-by: Manish Dait <daitmanish88@gmail.com>
Signed-off-by: Manish Dait <daitmanish88@gmail.com>
Signed-off-by: Manish Dait <daitmanish88@gmail.com>
2d4210a
to
ed96ae5
Compare
self.pending_airdrop_id = pending_airdrop_id | ||
self.amount = amount | ||
|
||
def get_pending_airdrop_id(self) -> "PendingAirdropId": |
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.
bit of a Java-ism. In Python, it's more idiomatic to access public properties directly (eg record.pending_airdrop_id
). so we could consider removing this to make the class feel more "conventionally pythonic"
super().__init__() | ||
self.pending_airdrops: list[PendingAirdropId] = [] | ||
if (pending_airdrops is not None): | ||
self.set_pending_airdrops(pending_airdrops) |
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.
self.set_pending_airdrops(pending_airdrops) | |
self.pending_airdrops = pending_airdrops or [] |
Signed-off-by: Manish Dait <daitmanish88@gmail.com>
Signed-off-by: Manish Dait <daitmanish88@gmail.com>
877c44b
to
ed521d4
Compare
Hello manish how is this progressing, is it ready for review? |
I think it's ready for review. |
Description:
Implemented the
TokenCancelAirdropTransaction
class to cancel one or more airdrops on network.Changes:
PendingAirdropId
andPendingAirdropRecord
class to unique identifier a pending airdrop and store their dataPendingAirdropId
andPendingAirdropRecord
TransactionRecord
withnew_pending_airdrops
field to lists the pending airdrops that were created or updated during token_airdrop_txTransactionRecord
TokenCancelAirdropTransaction
class ImplementationTokenCancelAirdropTransaction
README.md
in examples folder__init__.py
file with new class definition in__all__
listRelated issue(s):
Fixes #202
Checklist