-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SC-683 Lease and LeaseCancel actions (#3319)
* Add RIDE V5 context * Support DApp ScriptResult for V5 * Support DocSource for V5 * Adapt OverdraftTest for V5 * Correct extracting data functions docs for V5 * Adapt issuing V5 script suites * Set recent defined function complexity as default * Adapt context functions test * Adapt FunctionComplexityTest * Remove empty file * SC-683 Lease action * Correct ambiguous import * Correct LeaseCancel validation * Remove unused BaseFunction field * Refactor DiffsCommon * Provide calculating unique id for Lease action * Support script results * Add nonce field for Lease action constructor This reverts commit 4e37ff3. * Adapt tests * Unify resolving alias * Add related functions * Improve calculateLeaseId test * Check LeaseCancel actions * Add Lease action tests * Adapt new PB format * Correct definition of LeaseAction * Improve LeaseCancel error messages * Improve LeaseCancel error message * Support lease details for CompositeBlockchain in case of Lease action * Add LeaseCancel tests * Better naming * Test Lease action cancelled by LeaseCancelTransaction * Add multiple action tests * Check duplicate lease action and add test * Refactor DiffsCommon * Clarify activation test * Add balance tests for active leases * Add balance tests for cancelled leases * Provide exhaustiveness * Adapt json results * Test json results * Clean-up imports * Add leaseId field to Lease action * Implement store and rollback of lease action details * Support rollback for LeaseCancel * Assert lease details height is invariable * Keep lease details previous height when replacing * Refactor RollbackSpec * Correct test * Improve activation test * Support active leases API * Correct callableReturnType after merge * Correct WavesContext after merge * Add ContinuationTransaction blockchain feature to implemented * Correct read of active leases * Correct LeaseActionSuite * Don't use fork parameter for GRPC API * Use actual height in LeaseActionSuite * Remove unxpected node config from LeaseActionSuite * Adapt LeasingTransactionsGrpcSuite * Use different lease amounts for tx and action in LeaseActionSuite * Add LeaseActionGrpcSuite * Update protobuf version * Adapt with new LeaseResponse protobuf model * Adapt tests * Remove duplicate ByteStr json format * Fill invokeId in ContinuationTransactionDiff script result * Add continuations mock for lease API test * Adapt LeaseActionDiffTest * Adapt RollbackSpec * Adapt statuses for TransactionsRouteSpec * Correct DebugApiRouteSpec
- Loading branch information
Showing
58 changed files
with
2,494 additions
and
320 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.