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

GraphQL test workaround for indexer issue #15155

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,35 +1,44 @@
processed 8 tasks
processed 11 tasks

init:
C: object(0,0)

task 1 'advance-epoch'. lines 6-6:
task 1 'create-checkpoint'. lines 8-8:
Checkpoint created: 1

task 2 'advance-epoch'. lines 10-10:
Epoch advanced: 0

task 2 'programmable'. lines 8-10:
created: object(2,0)
task 3 'programmable'. lines 12-14:
created: object(3,0)
mutated: object(0,0)
gas summary: computation_cost: 1000000, storage_cost: 1976000, storage_rebate: 0, non_refundable_storage_fee: 0

task 3 'run'. lines 12-12:
events: Event { package_id: sui_system, transaction_module: Identifier("sui_system"), sender: C, type_: StructTag { address: sui_system, module: Identifier("validator"), name: Identifier("StakingRequestEvent"), type_params: [] }, contents: [11, 8, 92, 222, 100, 216, 145, 58, 162, 187, 52, 140, 231, 112, 179, 46, 16, 238, 68, 240, 237, 186, 56, 248, 186, 110, 242, 118, 73, 122, 131, 149, 251, 197, 26, 138, 207, 9, 111, 134, 25, 141, 95, 164, 112, 98, 14, 214, 162, 10, 188, 9, 185, 78, 168, 145, 239, 2, 154, 93, 227, 243, 151, 19, 252, 204, 154, 66, 27, 187, 19, 193, 166, 106, 26, 169, 143, 10, 215, 80, 41, 237, 233, 72, 87, 119, 156, 105, 21, 180, 79, 148, 6, 139, 146, 30, 1, 0, 0, 0, 0, 0, 0, 0, 0, 228, 11, 84, 2, 0, 0, 0] }
created: object(3,0)
task 4 'run'. lines 16-18:
events: Event { package_id: sui_system, transaction_module: Identifier("sui_system"), sender: C, type_: StructTag { address: sui_system, module: Identifier("validator"), name: Identifier("StakingRequestEvent"), type_params: [] }, contents: [3, 124, 202, 17, 132, 162, 116, 223, 97, 117, 49, 101, 95, 220, 99, 112, 36, 242, 104, 131, 226, 11, 151, 220, 40, 11, 226, 39, 69, 84, 204, 107, 251, 197, 26, 138, 207, 9, 111, 134, 25, 141, 95, 164, 112, 98, 14, 214, 162, 10, 188, 9, 185, 78, 168, 145, 239, 2, 154, 93, 227, 243, 151, 19, 252, 204, 154, 66, 27, 187, 19, 193, 166, 106, 26, 169, 143, 10, 215, 80, 41, 237, 233, 72, 87, 119, 156, 105, 21, 180, 79, 148, 6, 139, 146, 30, 1, 0, 0, 0, 0, 0, 0, 0, 0, 228, 11, 84, 2, 0, 0, 0] }
created: object(4,0)
mutated: object(_), 0x0000000000000000000000000000000000000000000000000000000000000005, object(0,0)
deleted: object(2,0)
deleted: object(3,0)
gas summary: computation_cost: 1000000, storage_cost: 15078400, storage_rebate: 1956240, non_refundable_storage_fee: 19760

task 4 'advance-epoch'. lines 14-16:
task 5 'create-checkpoint'. lines 19-19:
Checkpoint created: 3

task 6 'advance-epoch'. lines 21-23:
Epoch advanced: 1

task 5 'programmable'. lines 17-19:
created: object(5,0)
task 7 'programmable'. lines 24-28:
created: object(7,0)
mutated: object(0,0)
gas summary: computation_cost: 1000000, storage_cost: 1976000, storage_rebate: 978120, non_refundable_storage_fee: 9880

task 6 'advance-epoch'. lines 21-22:
task 8 'create-checkpoint'. lines 29-29:
Checkpoint created: 5

task 9 'advance-epoch'. lines 31-32:
Epoch advanced: 2

task 7 'run-graphql'. lines 23-37:
task 10 'run-graphql'. lines 33-47:
Response: {
"data": {
"epoch": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@

//# init --simulator --accounts C


// TODO: Short term hack to get around indexer epoch issue
//# create-checkpoint

//# advance-epoch

//# programmable --sender C --inputs 10000000000 @C
//> SplitCoins(Gas, [Input(0)]);
//> TransferObjects([Result(0)], Input(1))

//# run 0x3::sui_system::request_add_stake --args object(0x5) object(2,0) @validator_0 --sender C
//# run 0x3::sui_system::request_add_stake --args object(0x5) object(3,0) @validator_0 --sender C

// TODO: Short term hack to get around indexer epoch issue
//# create-checkpoint

//# advance-epoch

Expand All @@ -18,6 +25,9 @@
//> SplitCoins(Gas, [Input(0)]);
//> TransferObjects([Result(0)], Input(1))

// TODO: Short term hack to get around indexer epoch issue
//# create-checkpoint

//# advance-epoch
// check the epoch metrics
//# run-graphql
Expand Down
Loading