-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add transaction compression mode bulkTransfer #586
Conversation
return value | ||
|
||
|
||
EthereumAddress = Annotated[str, WrapValidator(ethereum_address_validator)] |
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.
I also improved Address validation.
# Split the original transfer list into sub-lists | ||
chunked_transfer_list: list[list[BulkTransfer]] = list( | ||
self.__split_list(list(transfer_list), 100) | ||
) |
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.
When executing bulkTransfer, the uploaded list is split into 100 items.
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
bulkTransfer
of token contracts.When using "transaction compression mode", transfer list must meet the following conditions:
token_address
must be the same.from_address
must be the same.from_address
andissuer_address
must be the same.✏️ Note: The current implementation does not check whether the balance is sufficient for the amount transferred.