Open
Conversation
- Extract simulation logic into standalone simulate_transaction() function - Refactor simulate_and_build() to use the new function internally - Add test for simulate_transaction() - Update lib.rs to export simulate_transaction() - Maintain backward compatibility with existing simulate_and_build() API Closes OpenZeppelin#48
- Add Operations::extend_footprint_ttl() for creating TTL extension operations - Add Contract::extend_ttl() for easy contract TTL management - Add TransactionBuilder::extend_footprint_ttl() convenience method - Add example demonstrating TTL extension usage - Update README with TTL extension documentation - Add comprehensive tests for TTL operations Fixes OpenZeppelin#47
|
Useful feature and approved 2 months ago. Who can merge it? |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR implements support for Extend Footprint TTL operations as requested in #47.
Changes
I've added TTL (Time To Live) extension support across multiple layers of the API:
Low-level Operation
Operations::extend_footprint_ttl()method inoperation.rsHigh-level APIs
Added
Contract::extend_ttl()method incontract.rsAdded
TransactionBuilder::extend_footprint_ttl()convenience method intransaction.rsDocumentation & Examples
examples/extend_ttl.rsdemonstrating usageREADME.mdwith TTL extension documentationTesting
All tests pass:
cargo test --workspaceNew tests added:
test_extend_footprint_ttl()- Tests operation creationtest_extend_footprint_ttl_different_values()- Tests edge casesUsage Example
Checklist
cargo fmtCloses #47