Skip to content

Commit

Permalink
fix(node): update specs and test baselines (#3762)
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer authored Oct 29, 2024
1 parent 1e17f6c commit 4e3b07f
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 180 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ Response: {
"data": {
"availableRange": {
"first": {
"digest": "AjVRPrUd6kKCamy6Fjgzj2Xo2yEGM6jVLDT6KLGqgb1H",
"digest": "6NFvR4v3VR7s1RqdMCrATc4Wz6rknytEigYQwKQqsDL2",
"sequenceNumber": 0
},
"last": {
"digest": "AjVRPrUd6kKCamy6Fjgzj2Xo2yEGM6jVLDT6KLGqgb1H",
"digest": "6NFvR4v3VR7s1RqdMCrATc4Wz6rknytEigYQwKQqsDL2",
"sequenceNumber": 0
}
},
"first": {
"digest": "AjVRPrUd6kKCamy6Fjgzj2Xo2yEGM6jVLDT6KLGqgb1H",
"digest": "6NFvR4v3VR7s1RqdMCrATc4Wz6rknytEigYQwKQqsDL2",
"sequenceNumber": 0
},
"last": {
"digest": "AjVRPrUd6kKCamy6Fjgzj2Xo2yEGM6jVLDT6KLGqgb1H",
"digest": "6NFvR4v3VR7s1RqdMCrATc4Wz6rknytEigYQwKQqsDL2",
"sequenceNumber": 0
}
}
Expand All @@ -39,20 +39,20 @@ Response: {
"data": {
"availableRange": {
"first": {
"digest": "AjVRPrUd6kKCamy6Fjgzj2Xo2yEGM6jVLDT6KLGqgb1H",
"digest": "6NFvR4v3VR7s1RqdMCrATc4Wz6rknytEigYQwKQqsDL2",
"sequenceNumber": 0
},
"last": {
"digest": "FubeYRn3Re3g8nR9jbf955Jd6GjqpzxubbfGaSV3XC8C",
"digest": "5Dgrq9zWc8hutasvYoZbAcexWzCMaawAkDEL8pbD5Jjf",
"sequenceNumber": 2
}
},
"first": {
"digest": "AjVRPrUd6kKCamy6Fjgzj2Xo2yEGM6jVLDT6KLGqgb1H",
"digest": "6NFvR4v3VR7s1RqdMCrATc4Wz6rknytEigYQwKQqsDL2",
"sequenceNumber": 0
},
"last": {
"digest": "FubeYRn3Re3g8nR9jbf955Jd6GjqpzxubbfGaSV3XC8C",
"digest": "5Dgrq9zWc8hutasvYoZbAcexWzCMaawAkDEL8pbD5Jjf",
"sequenceNumber": 2
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/iota-graphql-e2e-tests/tests/call/simple.exp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Epoch advanced: 5

task 10, line 44:
//# view-checkpoint
CheckpointSummary { epoch: 5, seq: 10, content_digest: Eju9TRhUamcNqTaaEhENsRpfV6qpU6bttXAi5sfGKvh2,
CheckpointSummary { epoch: 5, seq: 10, content_digest: DLVxgygkX7Vs9bHQPoKm6AM9aHFEQPubZMHrFedvWEZM,
epoch_rolling_gas_cost_summary: GasCostSummary { computation_cost: 0, storage_cost: 0, storage_rebate: 0, non_refundable_storage_fee: 0 }}

task 11, lines 46-51:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ task 2, lines 10-13:
//# run-graphql
Response: {
"data": {
"chainIdentifier": "498fc7b7"
"chainIdentifier": "325a2bc6"
}
}
4 changes: 2 additions & 2 deletions crates/iota-graphql-e2e-tests/tests/limits/directives.exp
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ task 5, lines 59-63:
//# run-graphql
Response: {
"data": {
"chainIdentifier": "498fc7b7"
"chainIdentifier": "325a2bc6"
}
}

task 6, lines 65-69:
//# run-graphql
Response: {
"data": {
"chainIdentifier": "498fc7b7"
"chainIdentifier": "325a2bc6"
}
}

Expand Down
8 changes: 4 additions & 4 deletions crates/iota-graphql-e2e-tests/tests/objects/display.exp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Checkpoint created: 1

task 3, line 135:
//# view-checkpoint
CheckpointSummary { epoch: 0, seq: 1, content_digest: 5nziQdp2tLxVAj5j7iXTyrYz7Hstn5Zh5iqLAd7TaxLt,
CheckpointSummary { epoch: 0, seq: 1, content_digest: FhAfAxUsueMJ5c9W7TuVepGTE9SnFCrRcGAWfehU4hWU,
epoch_rolling_gas_cost_summary: GasCostSummary { computation_cost: 1000000, storage_cost: 21470000, storage_rebate: 0, non_refundable_storage_fee: 0 }}

task 4, line 137:
Expand All @@ -37,7 +37,7 @@ Checkpoint created: 2

task 7, line 143:
//# view-checkpoint
CheckpointSummary { epoch: 0, seq: 2, content_digest: DVQKDwtJsrqwugyr2EP4UCAKw1RRVVapnPADhXTs5vaX,
CheckpointSummary { epoch: 0, seq: 2, content_digest: C5KjqUQRvmi5veZahh1neoafEn1z2fhgxaFy3BbzVJUK,
epoch_rolling_gas_cost_summary: GasCostSummary { computation_cost: 3000000, storage_cost: 27968000, storage_rebate: 3640400, non_refundable_storage_fee: 0 }}

task 8, lines 145-158:
Expand Down Expand Up @@ -84,7 +84,7 @@ Checkpoint created: 3

task 11, line 164:
//# view-checkpoint
CheckpointSummary { epoch: 0, seq: 3, content_digest: C7sxx5GSvnuc5RNaYkToaPRVoBxctRgY3ZNGkyZWGYSe,
CheckpointSummary { epoch: 0, seq: 3, content_digest: 9Xz4yzhPS4BPCmWwP5TqdY8dCPQvJML3e6LXZMZvuzo2,
epoch_rolling_gas_cost_summary: GasCostSummary { computation_cost: 4000000, storage_cost: 31000400, storage_rebate: 6581600, non_refundable_storage_fee: 0 }}

task 12, lines 166-179:
Expand Down Expand Up @@ -136,7 +136,7 @@ Checkpoint created: 4

task 15, line 185:
//# view-checkpoint
CheckpointSummary { epoch: 0, seq: 4, content_digest: 9CyEjTU1BKFkS61qtauKTbtPRYTZ2AtWaBNYq2unhxhU,
CheckpointSummary { epoch: 0, seq: 4, content_digest: FGyM6sYiLCoNXUHPwQKCnS7FnbvsWBY9uvH3K21UNnhL,
epoch_rolling_gas_cost_summary: GasCostSummary { computation_cost: 5000000, storage_cost: 36236800, storage_rebate: 9614000, non_refundable_storage_fee: 0 }}

task 16, lines 187-200:
Expand Down
166 changes: 2 additions & 164 deletions crates/iota-rest-api/openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3013,23 +3013,6 @@
}
}
},
"ModifiedAtVersion": {
"type": "object",
"required": [
"object_id",
"version"
],
"properties": {
"object_id": {
"$ref": "#/components/schemas/ObjectId"
},
"version": {
"description": "Radix-10 encoded 64-bit unsigned integer",
"type": "string",
"format": "u64"
}
}
},
"MoveLocation": {
"type": "object",
"required": [
Expand Down Expand Up @@ -3519,21 +3502,6 @@
}
}
},
"ObjectReferenceWithOwner": {
"type": "object",
"required": [
"owner",
"reference"
],
"properties": {
"owner": {
"$ref": "#/components/schemas/Owner"
},
"reference": {
"$ref": "#/components/schemas/ObjectReference"
}
}
},
"Owner": {
"oneOf": [
{
Expand Down Expand Up @@ -4227,136 +4195,6 @@
"TransactionEffects": {
"description": "The response from processing a transaction or a certified transaction",
"oneOf": [
{
"description": "The response from processing a transaction or a certified transaction",
"type": "object",
"required": [
"created",
"deleted",
"dependencies",
"epoch",
"gas_object",
"gas_used",
"modified_at_versions",
"mutated",
"shared_objects",
"success",
"transaction_digest",
"unwrapped",
"unwrapped_then_deleted",
"version",
"wrapped"
],
"properties": {
"created": {
"description": "ObjectReference and owner of new objects created.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ObjectReferenceWithOwner"
}
},
"deleted": {
"description": "Object Refs of objects now deleted (the new refs).",
"type": "array",
"items": {
"$ref": "#/components/schemas/ObjectReference"
}
},
"dependencies": {
"description": "The set of transaction digests this transaction depends on.",
"type": "array",
"items": {
"$ref": "#/components/schemas/TransactionDigest"
}
},
"epoch": {
"description": "The epoch when this transaction was executed.",
"type": "string",
"format": "u64"
},
"events_digest": {
"description": "The digest of the events emitted during execution, can be None if the transaction does not emit any event.",
"allOf": [
{
"$ref": "#/components/schemas/TransactionEventsDigest"
}
]
},
"gas_object": {
"description": "The updated gas object reference. Have a dedicated field for convenient access. It's also included in mutated.",
"allOf": [
{
"$ref": "#/components/schemas/ObjectReferenceWithOwner"
}
]
},
"gas_used": {
"$ref": "#/components/schemas/GasCostSummary"
},
"modified_at_versions": {
"description": "The version that every modified (mutated or deleted) object had before it was modified by this transaction.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ModifiedAtVersion"
}
},
"mutated": {
"description": "ObjectReference and owner of mutated objects, including gas object.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ObjectReferenceWithOwner"
}
},
"shared_objects": {
"description": "The object references of the shared objects used in this transaction. Empty if no shared objects were used.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ObjectReference"
}
},
"status": {
"$ref": "#/components/schemas/FailureStatus"
},
"success": {
"type": "boolean"
},
"transaction_digest": {
"description": "The transaction digest",
"allOf": [
{
"$ref": "#/components/schemas/TransactionDigest"
}
]
},
"unwrapped": {
"description": "ObjectReference and owner of objects that are unwrapped in this transaction. Unwrapped objects are objects that were wrapped into other objects in the past, and just got extracted out.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ObjectReferenceWithOwner"
}
},
"unwrapped_then_deleted": {
"description": "Object refs of objects previously wrapped in other objects but now deleted.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ObjectReference"
}
},
"version": {
"type": "string",
"enum": [
"1"
]
},
"wrapped": {
"description": "Object refs of objects now wrapped in other objects.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ObjectReference"
}
}
}
},
{
"description": "The response from processing a transaction or a certified transaction",
"type": "object",
Expand Down Expand Up @@ -4445,7 +4283,7 @@
"version": {
"type": "string",
"enum": [
"2"
"1"
]
}
}
Expand Down Expand Up @@ -4652,7 +4490,7 @@
"kind": {
"type": "string",
"enum": [
"authenticator_state_update"
"authenticator_state_update_v1"
]
},
"new_active_jwks": {
Expand Down

0 comments on commit 4e3b07f

Please sign in to comment.