Skip to content

Commit

Permalink
Fix get_transactions doc, cursor should be transaction hash (MystenLa…
Browse files Browse the repository at this point in the history
…bs#5696)

* fix get_transactions doc, cursor should be transaction hash

* fix get_transactions doc, cursor should be transaction hash

* fix get_transactions doc, cursor should be transaction hash
  • Loading branch information
patrickkuo authored Oct 31, 2022
1 parent aa807cf commit 91a5e98
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
60 changes: 30 additions & 30 deletions crates/sui-open-rpc/spec/openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -499,17 +499,17 @@
"value": [
{
"timestamp": 0,
"txDigest": "Fh8N+RRA7ATFo0CzyyHfmX7oFYIUlHkXgDIsJrgcG0s=",
"txDigest": "ZsLY9XN0LSefrCNp23ij/AD+iuUHSphf8218SAVVqH8=",
"event": {
"transferObject": {
"packageId": "0x0000000000000000000000000000000000000002",
"transactionModule": "native",
"sender": "0xbed7bc92e70784da6cc61085674ccde493a60165",
"sender": "0xa0a896a7856ad6d29d2b9957f558e230c755a67b",
"recipient": {
"AddressOwner": "0x5a97d0d8dfe64f09f709f06c320889949230e672"
"AddressOwner": "0xa08e0e5dfd566e977968fa81937919da0294cbba"
},
"objectType": "0x2::example::Object",
"objectId": "0x044bb2b0954ae5935392c72fa08e0e5dfd566e97",
"objectId": "0x1d4980fbaf0a4dbfbcc39033d817566297f9de95",
"version": 2
}
}
Expand Down Expand Up @@ -603,7 +603,7 @@
"value": [
{
"timestamp": 0,
"txDigest": "xwEpI98quQEgMArPF77s9qOXwo3wH34yzBqmV80Lomk=",
"txDigest": "4r0EjnZqU68fXn5k/zRrAm97AtK08x2F7N4JJuhfzV8=",
"event": {
"moveEvent": {
"packageId": "0x0000000000000000000000000000000000000002",
Expand Down Expand Up @@ -683,7 +683,7 @@
"params": [
{
"name": "object",
"value": "0x3027b783ea689e1a38eb476c6efc44edb5cd3dfe"
"value": "0x1403e49a4b296adcb22ea27d3c92e4ce2256ac64"
},
{
"name": "count",
Expand All @@ -703,17 +703,17 @@
"value": [
{
"timestamp": 0,
"txDigest": "oHuPU8vfzigZxBmGC9jH6V/CHrQ0F//oTYcHJWceRmU=",
"txDigest": "MvKayCOJAQZPU/BnxMQ+9pquir1dhLLkLiyr33t91X0=",
"event": {
"transferObject": {
"packageId": "0x0000000000000000000000000000000000000002",
"transactionModule": "native",
"sender": "0xfac621f83fac850b3090ca03afb0cb8198b06f33",
"sender": "0xaa2165d12e40f2431d1101f226114a4886cc1b46",
"recipient": {
"AddressOwner": "0x955697fe2b704c9540a3846e9298b75db725c1ee"
"AddressOwner": "0x6efc44edb5cd3dfe32f4bf6c3e8ac42eef1385e0"
},
"objectType": "0x2::example::Object",
"objectId": "0x3027b783ea689e1a38eb476c6efc44edb5cd3dfe",
"objectId": "0x1403e49a4b296adcb22ea27d3c92e4ce2256ac64",
"version": 2
}
}
Expand Down Expand Up @@ -788,7 +788,7 @@
{
"name": "recipient",
"value": {
"AddressOwner": "0x5579352c128b4d1a2f42fdfbc9c5a73a441193e9"
"AddressOwner": "0xd70420418b84502e506794227f897237764dde8d"
}
},
{
Expand All @@ -809,17 +809,17 @@
"value": [
{
"timestamp": 0,
"txDigest": "+WlqER1iEA2t1CwpfX8bUUEe1fORSqvQwFkRWpSnJRU=",
"txDigest": "ySHmwS1bnA2F3wchK8gW/twFs36SbU6OL+fBFUPRnHw=",
"event": {
"transferObject": {
"packageId": "0x0000000000000000000000000000000000000002",
"transactionModule": "native",
"sender": "0x202b9056b1d32e738b28e47a6c88324c66d2572f",
"sender": "0xd3d26b46b5447b26aa0482ebce3f2fd20d332366",
"recipient": {
"AddressOwner": "0x5579352c128b4d1a2f42fdfbc9c5a73a441193e9"
"AddressOwner": "0xd70420418b84502e506794227f897237764dde8d"
},
"objectType": "0x2::example::Object",
"objectId": "0x9ab6cc2a92f7d37948898292d70420418b84502e",
"objectId": "0x79a01ab2104bf742a277a2abe035ca41c556b722",
"version": 2
}
}
Expand Down Expand Up @@ -893,7 +893,7 @@
"params": [
{
"name": "sender",
"value": "0xe6d9180aeed52bebb5b6c75fa347c1e52fb91b08"
"value": "0xbf7e5aec45e7614613615d17962dfd493d501f5b"
},
{
"name": "count",
Expand All @@ -913,17 +913,17 @@
"value": [
{
"timestamp": 0,
"txDigest": "pRdyXN/bhu1vmUvcXCpg8KtVkv+XUTvnddLbzlmjTBc=",
"txDigest": "kElcjWAQhJ1c2eTxZe0hO5O8MfnIhAZ4oFlXOGePWTE=",
"event": {
"transferObject": {
"packageId": "0x0000000000000000000000000000000000000002",
"transactionModule": "native",
"sender": "0xe6d9180aeed52bebb5b6c75fa347c1e52fb91b08",
"sender": "0xbf7e5aec45e7614613615d17962dfd493d501f5b",
"recipient": {
"AddressOwner": "0x0c65a5b12c43805d0d6f5402a7ad0da5bdec549c"
"AddressOwner": "0xa933b8899efb20735a4f6aec82136eff73e6819c"
},
"objectType": "0x2::example::Object",
"objectId": "0x7cdea06bc4a1d339a22521eea933b8899efb2073",
"objectId": "0x73777d2b3144059d1096336053abc8d0e8437122",
"version": 2
}
}
Expand Down Expand Up @@ -1005,17 +1005,17 @@
"value": [
{
"timestamp": 0,
"txDigest": "r8f3pj+SDlVF//fj/Sp567FW/ycDpHxD/TFT6K2ViuQ=",
"txDigest": "+NpeTwzIR1KEey3/drK7HKYqkIfd8+P/NCM8O3CE7lo=",
"event": {
"transferObject": {
"packageId": "0x0000000000000000000000000000000000000002",
"transactionModule": "native",
"sender": "0xe6e86985f9a944a924e9c133cfe297e90bb9762e",
"sender": "0x7579ffba80959d2e0f5e237f63e06d908aa9462f",
"recipient": {
"AddressOwner": "0xa6db5c1bd60446af9ce59a85cd194e4715701e55"
"AddressOwner": "0x4c46a29bd0ebfd9819a093759afc2c4425b5db66"
},
"objectType": "0x2::example::Object",
"objectId": "0xe66b092d67b54aea5028bed04c46a29bd0ebfd98",
"objectId": "0x94f1a597b4e8f709a396f7f6b1482bdcd65a673d",
"version": 2
}
}
Expand Down Expand Up @@ -1069,7 +1069,7 @@
"params": [
{
"name": "digest",
"value": "oJVAcGBknvJoPEaULmTnpnNxR5+G0wMWstPxKwKyNXE="
"value": "WSPBt/tI+k8Avb/jMZLWn4VwgaPSlGzbTb/8UNr9PMY="
},
{
"name": "count",
Expand All @@ -1081,17 +1081,17 @@
"value": [
{
"timestamp": 0,
"txDigest": "oJVAcGBknvJoPEaULmTnpnNxR5+G0wMWstPxKwKyNXE=",
"txDigest": "WSPBt/tI+k8Avb/jMZLWn4VwgaPSlGzbTb/8UNr9PMY=",
"event": {
"transferObject": {
"packageId": "0x0000000000000000000000000000000000000002",
"transactionModule": "native",
"sender": "0xebf0b18d878780dad32556f6ff9a7bdc9b59e157",
"sender": "0x9cce11a3b6afff14a4ab2421d0159ef1e7486655",
"recipient": {
"AddressOwner": "0x98d2d7d17ba91ddc7e717cf708c937060f040487"
"AddressOwner": "0xc677ed804f82f1c8587b98d64c00bfb46c3843bd"
},
"objectType": "0x2::example::Object",
"objectId": "0x36ec33fb1746d999a5e58cd5c677ed804f82f1c8",
"objectId": "0x8bf6ccfa7c65a86138698cd1fdcac3dce8d8c7ce",
"version": 2
}
}
Expand Down Expand Up @@ -1810,7 +1810,7 @@
},
{
"name": "cursor",
"value": 10
"value": "A1MdyY6D9uGY0tfRe6kd3H5xfPcIyTcGDwQEhzbsM/s="
},
{
"name": "limit",
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-open-rpc/src/examples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ impl RpcExampleProvider {
"query",
json!(TransactionQuery::InputObject(ObjectID::new(self.rng.gen()))),
),
("cursor", json!(10)),
("cursor", json!(TransactionDigest::new(self.rng.gen()))),
("limit", json!(100)),
("order", json!(Ordering::Ascending)),
],
Expand Down

0 comments on commit 91a5e98

Please sign in to comment.