Skip to content
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 HIP-423: Long Term Scheduled Transactions #412

Open
SimiHunjan opened this issue Nov 26, 2024 · 0 comments
Open

Add HIP-423: Long Term Scheduled Transactions #412

SimiHunjan opened this issue Nov 26, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request P1
Milestone

Comments

@SimiHunjan
Copy link
Contributor

SimiHunjan commented Nov 26, 2024

Description

Implement support for the changes introduced by HIP-423 in the SDK, enabling developers to create and manage Long Term Scheduled Transactions with enhanced functionality. This involves adding new fields and handling updated response codes for scheduled transactions, as well as providing a clear API design that SDKs should follow.

Acceptance Criteria

  1. Make sure fields implemented and that they are built into the transaction protobuf upon execution.
  • expirationTime
  • waitForExpiry
  1. Handle New Status Codes:
  • SCHEDULE_EXPIRY_MUST_BE_IN_FUTURE
  • SCHEDULE_EXPIRY_TOO_LONG
  • SCHEDULE_EXPIRY_IS_BUSY
  1. Update ScheduleExample. The example will look like
1. Create an account with a keylist of two keys and an initial balance of 2 Hbar.
2. Schedule a transfer transaction of 1 Hbar from the created account to the operator account with an `expirationTime` of 24 hours in the future and `waitForExpiry=false` .
3. Sign the transaction with one key.
4. Verify that the transfer does not execute.
5. Sign the transaction with the other key.
6. Verify the transfer executes successfully.
7. Schedule another transfer transaction of 1 Hbar from the account to the operator account with an `expirationTime` of 30 seconds in the future and `waitForExpiry=true` .
8. Sign the transaction with one key.
9. Verify that the transfer does not execute.
10. Update the account’s key to be only the one key that has already signed the scheduled transfer.
11. Verify that the transfer successfully executes roughly at the time of its expiration.
  1. Testing: Implement tests
@SimiHunjan SimiHunjan added enhancement New feature or request P1 labels Nov 26, 2024
@SimiHunjan SimiHunjan added this to the v0.34.0 milestone Nov 26, 2024
@RickyLB RickyLB changed the title Add HIP-423 Add HIP-423: Long Term Scheduled Transactions Nov 26, 2024
@RickyLB RickyLB changed the title Add HIP-423: Long Term Scheduled Transactions Add HIP-423: Long Term Scheduled Transactions Nov 26, 2024
@RickyLB RickyLB self-assigned this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P1
Projects
None yet
Development

No branches or pull requests

2 participants