File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -790,6 +790,26 @@ fun withdrawReserve(
790790 Test .expect (txRes , beFailed ? Test .beFailed () : Test .beSucceeded ())
791791}
792792
793+ access (all )
794+ fun getPositions (startIndex : UInt64 , count : UInt64 ): [FlowALPv0 .PositionDetails ] {
795+ let res = _executeScript (
796+ " ../scripts/flow-alp/get_positions.cdc" ,
797+ [startIndex , count ]
798+ )
799+ Test .expect (res , Test .beSucceeded ())
800+ return res .returnValue as ! [FlowALPv0 .PositionDetails ]
801+ }
802+
803+ access (all )
804+ fun closePosition (user : Test .TestAccount , positionID : UInt64 ) {
805+ let res = _executeTransaction (
806+ " ../transactions/flow-alp/position/repay_and_close_position.cdc" ,
807+ [positionID ],
808+ user
809+ )
810+ Test .expect (res , Test .beSucceeded ())
811+ }
812+
793813/* --- Assertion Helpers --- */
794814
795815access (all ) fun equalWithinVariance (_ expected : AnyStruct , _ actual : AnyStruct ): Bool {
You can’t perform that action at this time.
0 commit comments