-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lots to cleanup, but i think the distinction between tx lo and hi, vs…
… cursor lo and hi, vs scan lo and hi, are helping shape things up. will change some of the boundary apis, but cleaning up the tests first one more test, testing alternating between scan limited and not, and wrapping behavior (when we've finished scanning window, but there are more elements to erturn within the window)
- Loading branch information
Showing
15 changed files
with
902 additions
and
664 deletions.
There are no files selected for viewing
300 changes: 300 additions & 0 deletions
300
crates/sui-graphql-e2e-tests/tests/transactions/scan_limit/alternating.exp
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,300 @@ | ||
processed 22 tasks | ||
|
||
init: | ||
A: object(0,0), B: object(0,1) | ||
|
||
task 1, lines 8-29: | ||
//# publish | ||
created: object(1,0) | ||
mutated: object(0,2) | ||
gas summary: computation_cost: 1000000, storage_cost: 5798800, storage_rebate: 0, non_refundable_storage_fee: 0 | ||
|
||
task 2, line 31: | ||
//# create-checkpoint | ||
Checkpoint created: 1 | ||
|
||
task 3, line 33: | ||
//# run Test::M1::create --args 0 @A --sender A | ||
created: object(3,0) | ||
mutated: object(0,0) | ||
gas summary: computation_cost: 1000000, storage_cost: 2302800, storage_rebate: 0, non_refundable_storage_fee: 0 | ||
|
||
task 4, line 35: | ||
//# run Test::M1::create --args 1 @B --sender B | ||
created: object(4,0) | ||
mutated: object(0,1) | ||
gas summary: computation_cost: 1000000, storage_cost: 2302800, storage_rebate: 0, non_refundable_storage_fee: 0 | ||
|
||
task 5, line 37: | ||
//# run Test::M1::create --args 2 @A --sender A | ||
created: object(5,0) | ||
mutated: object(0,0) | ||
gas summary: computation_cost: 1000000, storage_cost: 2302800, storage_rebate: 978120, non_refundable_storage_fee: 9880 | ||
|
||
task 6, line 39: | ||
//# run Test::M1::create --args 3 @B --sender B | ||
created: object(6,0) | ||
mutated: object(0,1) | ||
gas summary: computation_cost: 1000000, storage_cost: 2302800, storage_rebate: 978120, non_refundable_storage_fee: 9880 | ||
|
||
task 7, line 41: | ||
//# run Test::M1::create --args 4 @A --sender A | ||
created: object(7,0) | ||
mutated: object(0,0) | ||
gas summary: computation_cost: 1000000, storage_cost: 2302800, storage_rebate: 978120, non_refundable_storage_fee: 9880 | ||
|
||
task 8, line 43: | ||
//# create-checkpoint | ||
Checkpoint created: 2 | ||
|
||
task 9, line 45: | ||
//# run Test::M1::create --args 100 @B --sender B | ||
created: object(9,0) | ||
mutated: object(0,1) | ||
gas summary: computation_cost: 1000000, storage_cost: 2302800, storage_rebate: 978120, non_refundable_storage_fee: 9880 | ||
|
||
task 10, line 47: | ||
//# run Test::M1::create --args 101 @A --sender A | ||
created: object(10,0) | ||
mutated: object(0,0) | ||
gas summary: computation_cost: 1000000, storage_cost: 2302800, storage_rebate: 978120, non_refundable_storage_fee: 9880 | ||
|
||
task 11, line 49: | ||
//# run Test::M1::create --args 102 @B --sender B | ||
created: object(11,0) | ||
mutated: object(0,1) | ||
gas summary: computation_cost: 1000000, storage_cost: 2302800, storage_rebate: 978120, non_refundable_storage_fee: 9880 | ||
|
||
task 12, line 51: | ||
//# run Test::M1::create --args 103 @A --sender A | ||
created: object(12,0) | ||
mutated: object(0,0) | ||
gas summary: computation_cost: 1000000, storage_cost: 2302800, storage_rebate: 978120, non_refundable_storage_fee: 9880 | ||
|
||
task 13, line 53: | ||
//# run Test::M1::create --args 104 @B --sender B | ||
created: object(13,0) | ||
mutated: object(0,1) | ||
gas summary: computation_cost: 1000000, storage_cost: 2302800, storage_rebate: 978120, non_refundable_storage_fee: 9880 | ||
|
||
task 14, line 55: | ||
//# create-checkpoint | ||
Checkpoint created: 3 | ||
|
||
task 15, lines 57-78: | ||
//# run-graphql | ||
Response: { | ||
"data": { | ||
"transactionBlocks": { | ||
"pageInfo": { | ||
"hasPreviousPage": false, | ||
"hasNextPage": true, | ||
"startCursor": "eyJjIjozLCJ0IjoyLCJpIjp0cnVlfQ", | ||
"endCursor": "eyJjIjozLCJ0IjozLCJpIjp0cnVlfQ" | ||
}, | ||
"edges": [ | ||
{ | ||
"cursor": "eyJjIjozLCJ0IjoyLCJpIjpmYWxzZX0", | ||
"node": { | ||
"digest": "CReUjLynvpq4dD4w6zekGxvSyBBQF2e3KG3K2Rs7oD8L", | ||
"effects": { | ||
"checkpoint": { | ||
"sequenceNumber": 2 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
|
||
task 16, lines 80-104: | ||
//# run-graphql --cursors {"c":3,"t":3,"i":true} | ||
Response: { | ||
"data": { | ||
"transactionBlocks": { | ||
"pageInfo": { | ||
"hasPreviousPage": false, | ||
"hasNextPage": true, | ||
"startCursor": "eyJjIjozLCJ0Ijo0LCJpIjpmYWxzZX0", | ||
"endCursor": "eyJjIjozLCJ0Ijo2LCJpIjpmYWxzZX0" | ||
}, | ||
"edges": [ | ||
{ | ||
"cursor": "eyJjIjozLCJ0Ijo0LCJpIjpmYWxzZX0", | ||
"node": { | ||
"digest": "Hgu3LePqrpyR8Vq3Ve4L2KmvErcdcz92u7YiiotkKJ1N", | ||
"effects": { | ||
"checkpoint": { | ||
"sequenceNumber": 2 | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"cursor": "eyJjIjozLCJ0Ijo2LCJpIjpmYWxzZX0", | ||
"node": { | ||
"digest": "2EwyAHiMofhbM5z5ty7XT1QXs4sNZfHmZLX513Ag8sD3", | ||
"effects": { | ||
"checkpoint": { | ||
"sequenceNumber": 2 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
|
||
task 17, lines 106-129: | ||
//# run-graphql --cursors {"c":3,"t":3,"i":true} | ||
Response: { | ||
"data": { | ||
"transactionBlocks": { | ||
"pageInfo": { | ||
"hasPreviousPage": true, | ||
"hasNextPage": true, | ||
"startCursor": "eyJjIjozLCJ0Ijo0LCJpIjp0cnVlfQ", | ||
"endCursor": "eyJjIjozLCJ0Ijo1LCJpIjp0cnVlfQ" | ||
}, | ||
"edges": [ | ||
{ | ||
"cursor": "eyJjIjozLCJ0Ijo0LCJpIjpmYWxzZX0", | ||
"node": { | ||
"digest": "Hgu3LePqrpyR8Vq3Ve4L2KmvErcdcz92u7YiiotkKJ1N", | ||
"effects": { | ||
"checkpoint": { | ||
"sequenceNumber": 2 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
|
||
task 18, lines 131-155: | ||
//# run-graphql --cursors {"c":3,"t":6,"i":false} | ||
Response: { | ||
"data": { | ||
"transactionBlocks": { | ||
"pageInfo": { | ||
"hasPreviousPage": true, | ||
"hasNextPage": true, | ||
"startCursor": "eyJjIjozLCJ0Ijo3LCJpIjp0cnVlfQ", | ||
"endCursor": "eyJjIjozLCJ0Ijo4LCJpIjp0cnVlfQ" | ||
}, | ||
"edges": [ | ||
{ | ||
"cursor": "eyJjIjozLCJ0Ijo4LCJpIjpmYWxzZX0", | ||
"node": { | ||
"digest": "4LUhoFJMmZfG71RHiRkwa9KHovrDv3S3mqUM1vu9JWKJ", | ||
"effects": { | ||
"checkpoint": { | ||
"sequenceNumber": 3 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
|
||
task 19, lines 157-184: | ||
//# run-graphql --cursors {"c":3,"t":5,"i":true} | ||
Response: { | ||
"data": { | ||
"transactionBlocks": { | ||
"pageInfo": { | ||
"hasPreviousPage": true, | ||
"hasNextPage": true, | ||
"startCursor": "eyJjIjozLCJ0Ijo2LCJpIjp0cnVlfQ", | ||
"endCursor": "eyJjIjozLCJ0Ijo4LCJpIjpmYWxzZX0" | ||
}, | ||
"edges": [ | ||
{ | ||
"cursor": "eyJjIjozLCJ0Ijo2LCJpIjpmYWxzZX0", | ||
"node": { | ||
"digest": "2EwyAHiMofhbM5z5ty7XT1QXs4sNZfHmZLX513Ag8sD3", | ||
"effects": { | ||
"checkpoint": { | ||
"sequenceNumber": 2 | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"cursor": "eyJjIjozLCJ0Ijo4LCJpIjpmYWxzZX0", | ||
"node": { | ||
"digest": "4LUhoFJMmZfG71RHiRkwa9KHovrDv3S3mqUM1vu9JWKJ", | ||
"effects": { | ||
"checkpoint": { | ||
"sequenceNumber": 3 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
|
||
task 20, lines 186-209: | ||
//# run-graphql --cursors {"c":3,"t":8,"i":false} | ||
Response: { | ||
"data": { | ||
"transactionBlocks": { | ||
"pageInfo": { | ||
"hasPreviousPage": true, | ||
"hasNextPage": false, | ||
"startCursor": "eyJjIjozLCJ0IjoxMCwiaSI6ZmFsc2V9", | ||
"endCursor": "eyJjIjozLCJ0IjoxMCwiaSI6ZmFsc2V9" | ||
}, | ||
"edges": [ | ||
{ | ||
"cursor": "eyJjIjozLCJ0IjoxMCwiaSI6ZmFsc2V9", | ||
"node": { | ||
"digest": "AnqDERsdbEiE26CACJa6KtJTLsggisgu7yxhMJ6mU1JZ", | ||
"effects": { | ||
"checkpoint": { | ||
"sequenceNumber": 3 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
|
||
task 21, lines 211-235: | ||
//# run-graphql --cursors {"c":3,"t":8,"i":false} | ||
Response: { | ||
"data": { | ||
"transactionBlocks": { | ||
"pageInfo": { | ||
"hasPreviousPage": true, | ||
"hasNextPage": false, | ||
"startCursor": "eyJjIjozLCJ0Ijo5LCJpIjp0cnVlfQ", | ||
"endCursor": "eyJjIjozLCJ0IjoxMSwiaSI6dHJ1ZX0" | ||
}, | ||
"edges": [ | ||
{ | ||
"cursor": "eyJjIjozLCJ0IjoxMCwiaSI6ZmFsc2V9", | ||
"node": { | ||
"digest": "AnqDERsdbEiE26CACJa6KtJTLsggisgu7yxhMJ6mU1JZ", | ||
"effects": { | ||
"checkpoint": { | ||
"sequenceNumber": 3 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.