Skip to content

Commit

Permalink
fixup: (package)Versions
Browse files Browse the repository at this point in the history
  • Loading branch information
amnn committed Aug 16, 2024
1 parent 74571f8 commit 056fdd4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions crates/sui-graphql-e2e-tests/tests/packages/versioning.exp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Response: {
]
}
},
"versions": {
"packageVersions": {
"nodes": [
{
"address": "0x175ae86f2df1eb652d57fbe9e44c7f2d67870d2b6776a4356f30930221b63b88",
Expand All @@ -49,7 +49,7 @@ Response: {
]
}
},
"versions": {
"packageVersions": {
"nodes": [
{
"address": "0x175ae86f2df1eb652d57fbe9e44c7f2d67870d2b6776a4356f30930221b63b88",
Expand Down Expand Up @@ -113,7 +113,7 @@ Response: {
]
}
},
"versions": {
"packageVersions": {
"nodes": [
{
"address": "0x175ae86f2df1eb652d57fbe9e44c7f2d67870d2b6776a4356f30930221b63b88",
Expand All @@ -138,7 +138,7 @@ Response: {
]
}
},
"versions": {
"packageVersions": {
"nodes": [
{
"address": "0x175ae86f2df1eb652d57fbe9e44c7f2d67870d2b6776a4356f30930221b63b88",
Expand Down Expand Up @@ -213,7 +213,7 @@ Response: {
]
}
},
"versions": {
"packageVersions": {
"nodes": [
{
"address": "0x175ae86f2df1eb652d57fbe9e44c7f2d67870d2b6776a4356f30930221b63b88",
Expand Down Expand Up @@ -242,7 +242,7 @@ Response: {
]
}
},
"versions": {
"packageVersions": {
"nodes": [
{
"address": "0x175ae86f2df1eb652d57fbe9e44c7f2d67870d2b6776a4356f30930221b63b88",
Expand Down Expand Up @@ -801,7 +801,7 @@ Response: {
]
},
"package": {
"versions": {
"packageVersions": {
"nodes": [
{
"address": "0x0000000000000000000000000000000000000000000000000000000000000001",
Expand Down
14 changes: 7 additions & 7 deletions crates/sui-graphql-e2e-tests/tests/packages/versioning.move
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module P0::m {
functions { nodes { name } }
}

versions {
packageVersions {
nodes {
address
version
Expand All @@ -33,7 +33,7 @@ module P0::m {
functions { nodes { name } }
}

versions {
packageVersions {
nodes {
address
version
Expand Down Expand Up @@ -65,7 +65,7 @@ module P1::m {
functions { nodes { name } }
}

versions {
packageVersions {
nodes {
address
version
Expand All @@ -80,7 +80,7 @@ module P1::m {
functions { nodes { name } }
}

versions {
packageVersions {
nodes {
address
version
Expand Down Expand Up @@ -113,7 +113,7 @@ module P2::m {
functions { nodes { name } }
}

versions {
packageVersions {
nodes {
address
version
Expand All @@ -128,7 +128,7 @@ module P2::m {
functions { nodes { name } }
}

versions {
packageVersions {
nodes {
address
version
Expand Down Expand Up @@ -388,7 +388,7 @@ module P2::m {
}

package(address: "0x1") {
versions {
packageVersions {
nodes {
address
version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2177,7 +2177,7 @@ type MovePackage implements IObject & IOwner {
optionally bounding the versions exclusively from below with `afterVersion`, or from above
with `beforeVersion`.
"""
versions(first: Int, after: String, last: Int, before: String, afterVersion: Int, beforeVersion: Int): MovePackageConnection!
packageVersions(first: Int, after: String, last: Int, before: String, afterVersion: Int, beforeVersion: Int): MovePackageConnection!
"""
Fetch the latest version of this package (the package with the highest `version` that shares
this packages's original ID)
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-graphql-rpc/src/types/move_package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ impl MovePackage {
/// Fetch all versions of this package (packages that share this package's original ID),
/// optionally bounding the versions exclusively from below with `afterVersion`, or from above
/// with `beforeVersion`.
async fn versions(
async fn package_versions(
&self,
ctx: &Context<'_>,
first: Option<u64>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2181,7 +2181,7 @@ type MovePackage implements IObject & IOwner {
optionally bounding the versions exclusively from below with `afterVersion`, or from above
with `beforeVersion`.
"""
versions(first: Int, after: String, last: Int, before: String, afterVersion: Int, beforeVersion: Int): MovePackageConnection!
packageVersions(first: Int, after: String, last: Int, before: String, afterVersion: Int, beforeVersion: Int): MovePackageConnection!
"""
Fetch the latest version of this package (the package with the highest `version` that shares
this packages's original ID)
Expand Down

0 comments on commit 056fdd4

Please sign in to comment.