Skip to content

Commit

Permalink
[graphql/rpc] chore: replace location with address (MystenLabs#15196)
Browse files Browse the repository at this point in the history
## Description 

As requested, replace `location` with `address`

## Test Plan 

Existing

---
If your changes are not user-facing and not a breaking change, you can
skip the following section. Otherwise, please indicate what changed, and
then add to the Release Notes section as highlighted during the release
process.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes
  • Loading branch information
oxade authored Dec 5, 2023
1 parent de3e2ef commit bc3d68e
Show file tree
Hide file tree
Showing 52 changed files with 248 additions and 248 deletions.
8 changes: 4 additions & 4 deletions crates/sui-graphql-e2e-tests/tests/call/owned_objects.exp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Response: {
"node": {
"kind": "OWNED",
"owner": {
"location": "0x0000000000000000000000000000000000000000000000000000000000000042"
"address": "0x0000000000000000000000000000000000000000000000000000000000000042"
}
}
}
Expand All @@ -59,7 +59,7 @@ Response: {
"node": {
"kind": "OWNED",
"owner": {
"location": "0x0000000000000000000000000000000000000000000000000000000000000042"
"address": "0x0000000000000000000000000000000000000000000000000000000000000042"
}
}
}
Expand All @@ -79,7 +79,7 @@ Response: {
"node": {
"kind": "OWNED",
"owner": {
"location": "0x0000000000000000000000000000000000000000000000000000000000000042"
"address": "0x0000000000000000000000000000000000000000000000000000000000000042"
}
}
}
Expand All @@ -99,7 +99,7 @@ Response: {
"node": {
"kind": "OWNED",
"owner": {
"location": "0x0000000000000000000000000000000000000000000000000000000000000042"
"address": "0x0000000000000000000000000000000000000000000000000000000000000042"
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions crates/sui-graphql-e2e-tests/tests/call/owned_objects.move
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module Test::M1 {
node {
kind
owner {
location
address
}
}
}
Expand All @@ -66,7 +66,7 @@ module Test::M1 {
node {
kind
owner {
location
address
}
}
}
Expand All @@ -82,7 +82,7 @@ module Test::M1 {
node {
kind
owner {
location
address
}
}
}
Expand All @@ -98,7 +98,7 @@ module Test::M1 {
node {
kind
owner {
location
address
}
}
}
Expand All @@ -114,7 +114,7 @@ module Test::M1 {
node {
kind
owner {
location
address
}
}
}
Expand All @@ -130,7 +130,7 @@ module Test::M1 {
node {
kind
owner {
location
address
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions crates/sui-graphql-e2e-tests/tests/call/simple.exp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Response: {
"edges": [
{
"node": {
"location": "0xa41de1be45f48fcdec134a792e4714bcc14de5f418ea3053bccc701b345902bb",
"address": "0xa41de1be45f48fcdec134a792e4714bcc14de5f418ea3053bccc701b345902bb",
"digest": "2JxCFjuhFUtJ1beNXvJ92mn7U4FhNYmz7W6ovzvtY4Aa",
"kind": "OWNED"
}
Expand All @@ -117,7 +117,7 @@ Response: {
"edges": [
{
"node": {
"location": "0xa41de1be45f48fcdec134a792e4714bcc14de5f418ea3053bccc701b345902bb",
"address": "0xa41de1be45f48fcdec134a792e4714bcc14de5f418ea3053bccc701b345902bb",
"digest": "2JxCFjuhFUtJ1beNXvJ92mn7U4FhNYmz7W6ovzvtY4Aa",
"kind": "OWNED"
}
Expand All @@ -128,7 +128,7 @@ Response: {
"object": {
"version": 3,
"owner": {
"location": "0x0000000000000000000000000000000000000000000000000000000000000042"
"address": "0x0000000000000000000000000000000000000000000000000000000000000042"
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions crates/sui-graphql-e2e-tests/tests/call/simple.move
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ module Test::M1 {
objectConnection{
edges {
node {
location
address
digest
kind
}
Expand All @@ -95,7 +95,7 @@ module Test::M1 {
objectConnection{
edges {
node {
location
address
digest
kind
}
Expand All @@ -106,7 +106,7 @@ module Test::M1 {
objectConnection{
edges {
node {
location
address
digest
kind
}
Expand All @@ -117,7 +117,7 @@ module Test::M1 {
object(address: $obj_2_0) {
version
owner {
location
address
}
}

Expand Down
4 changes: 2 additions & 2 deletions crates/sui-graphql-e2e-tests/tests/limits/directives.move
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
//# run-graphql

fragment Modules on Object @deprecated {
location
address
asMovePackage {
module(name: "m") {
name
package { asObject { location } }
package { asObject { address } }

fileFormatVersion
bytes
Expand Down
18 changes: 9 additions & 9 deletions crates/sui-graphql-e2e-tests/tests/packages/functions.exp
Original file line number Diff line number Diff line change
Expand Up @@ -90,26 +90,26 @@ Response: {
"objectChanges": [
{
"outputState": {
"location": "0x02150ebfe3d017c2726bd482f6d3c8a63516a398d7d98e2ee69396764e04bc76",
"address": "0x02150ebfe3d017c2726bd482f6d3c8a63516a398d7d98e2ee69396764e04bc76",
"asMovePackage": null
}
},
{
"outputState": {
"location": "0x743464cf1eacc8f8f82cd5efe9232adc5339109ef831ce224b0b6381d29460ed",
"address": "0x743464cf1eacc8f8f82cd5efe9232adc5339109ef831ce224b0b6381d29460ed",
"asMovePackage": null
}
},
{
"outputState": {
"location": "0xaba254bcf79dd861e7994b16b035bf89ee85d59275f700c8c0d7add3adb31c12",
"address": "0xaba254bcf79dd861e7994b16b035bf89ee85d59275f700c8c0d7add3adb31c12",
"asMovePackage": {
"module": {
"function": {
"module": {
"package": {
"asObject": {
"location": "0xaba254bcf79dd861e7994b16b035bf89ee85d59275f700c8c0d7add3adb31c12"
"address": "0xaba254bcf79dd861e7994b16b035bf89ee85d59275f700c8c0d7add3adb31c12"
}
}
},
Expand Down Expand Up @@ -167,26 +167,26 @@ Response: {
"objectChanges": [
{
"outputState": {
"location": "0x02150ebfe3d017c2726bd482f6d3c8a63516a398d7d98e2ee69396764e04bc76",
"address": "0x02150ebfe3d017c2726bd482f6d3c8a63516a398d7d98e2ee69396764e04bc76",
"asMovePackage": null
}
},
{
"outputState": {
"location": "0x743464cf1eacc8f8f82cd5efe9232adc5339109ef831ce224b0b6381d29460ed",
"address": "0x743464cf1eacc8f8f82cd5efe9232adc5339109ef831ce224b0b6381d29460ed",
"asMovePackage": null
}
},
{
"outputState": {
"location": "0x3c522829dd3548215df55b28471de3d42e4c121a75ec44f35f60ebf2275115ee",
"address": "0x3c522829dd3548215df55b28471de3d42e4c121a75ec44f35f60ebf2275115ee",
"asMovePackage": {
"module": {
"f": {
"module": {
"package": {
"asObject": {
"location": "0x3c522829dd3548215df55b28471de3d42e4c121a75ec44f35f60ebf2275115ee"
"address": "0x3c522829dd3548215df55b28471de3d42e4c121a75ec44f35f60ebf2275115ee"
}
}
},
Expand Down Expand Up @@ -218,7 +218,7 @@ Response: {
"module": {
"package": {
"asObject": {
"location": "0x3c522829dd3548215df55b28471de3d42e4c121a75ec44f35f60ebf2275115ee"
"address": "0x3c522829dd3548215df55b28471de3d42e4c121a75ec44f35f60ebf2275115ee"
}
}
},
Expand Down
8 changes: 4 additions & 4 deletions crates/sui-graphql-e2e-tests/tests/packages/functions.move
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module P0::m {

# Get the signature of a function published in a third-party package
fragment Signature on MoveFunction {
module { package { asObject { location } } }
module { package { asObject { address } } }
name
visibility
isEntry
Expand All @@ -61,7 +61,7 @@ fragment Signature on MoveFunction {
}

fragment Functions on Object {
location
address
asMovePackage {
module(name: "m") {
function(name: "f") { ...Signature }
Expand Down Expand Up @@ -96,7 +96,7 @@ module P0::m {

# Get the signature of a function published in a third-party package
fragment Signature on MoveFunction {
module { package { asObject { location } } }
module { package { asObject { address } } }
name
visibility
isEntry
Expand All @@ -108,7 +108,7 @@ fragment Signature on MoveFunction {
}

fragment Functions on Object {
location
address
asMovePackage {
module(name: "m") {
f: function(name: "f") { ...Signature }
Expand Down
14 changes: 7 additions & 7 deletions crates/sui-graphql-e2e-tests/tests/packages/modules.exp
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ Response: {
"objectChanges": [
{
"outputState": {
"location": "0xd904de69f0dfbe023c29f1635451fe45cbec244da66292c0977e06904134830d",
"address": "0xd904de69f0dfbe023c29f1635451fe45cbec244da66292c0977e06904134830d",
"asMovePackage": null
}
},
{
"outputState": {
"location": "0x2a57a73b21597daafca2956736cfc004e55743c3f44a73e0d949fca0756a014f",
"address": "0x2a57a73b21597daafca2956736cfc004e55743c3f44a73e0d949fca0756a014f",
"asMovePackage": {
"module": {
"name": "m",
"package": {
"asObject": {
"location": "0x2a57a73b21597daafca2956736cfc004e55743c3f44a73e0d949fca0756a014f"
"address": "0x2a57a73b21597daafca2956736cfc004e55743c3f44a73e0d949fca0756a014f"
}
},
"fileFormatVersion": 6,
Expand Down Expand Up @@ -58,13 +58,13 @@ Response: {
"objectChanges": [
{
"outputState": {
"location": "0xd904de69f0dfbe023c29f1635451fe45cbec244da66292c0977e06904134830d",
"address": "0xd904de69f0dfbe023c29f1635451fe45cbec244da66292c0977e06904134830d",
"asMovePackage": null
}
},
{
"outputState": {
"location": "0x2a57a73b21597daafca2956736cfc004e55743c3f44a73e0d949fca0756a014f",
"address": "0x2a57a73b21597daafca2956736cfc004e55743c3f44a73e0d949fca0756a014f",
"asMovePackage": {
"all": {
"nodes": [
Expand Down Expand Up @@ -132,13 +132,13 @@ Response: {
"objectChanges": [
{
"outputState": {
"location": "0xd904de69f0dfbe023c29f1635451fe45cbec244da66292c0977e06904134830d",
"address": "0xd904de69f0dfbe023c29f1635451fe45cbec244da66292c0977e06904134830d",
"asMovePackage": null
}
},
{
"outputState": {
"location": "0x2a57a73b21597daafca2956736cfc004e55743c3f44a73e0d949fca0756a014f",
"address": "0x2a57a73b21597daafca2956736cfc004e55743c3f44a73e0d949fca0756a014f",
"asMovePackage": {
"prefix": {
"nodes": [
Expand Down
8 changes: 4 additions & 4 deletions crates/sui-graphql-e2e-tests/tests/packages/modules.move
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ module pkg::o {
//# run-graphql

fragment Modules on Object {
location
address
asMovePackage {
module(name: "m") {
name
package { asObject { location } }
package { asObject { address } }

fileFormatVersion
bytes
Expand Down Expand Up @@ -69,7 +69,7 @@ fragment NodeNames on MoveModuleConnection {
}

fragment Modules on Object {
location
address
asMovePackage {
# Tests to make sure `after` and `before` correctly limit the
# upper and lower bounds on the range of modules, and
Expand Down Expand Up @@ -103,7 +103,7 @@ fragment NodeNames on MoveModuleConnection {
}

fragment Modules on Object {
location
address
asMovePackage {
# Tests to make sure `first` and `last` correctly limit the
# number of modules returned and correctly detect the
Expand Down
Loading

0 comments on commit bc3d68e

Please sign in to comment.