Skip to content

Commit

Permalink
Remove dup ReadApi methods from openrpc spec (MystenLabs#2668)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkuo authored Jun 23, 2022
1 parent 61116a2 commit b905504
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 215 deletions.
3 changes: 1 addition & 2 deletions crates/generate-json-rpc-spec/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use sui_config::genesis_config::GenesisConfig;
use sui_config::SUI_WALLET_CONFIG;
use sui_json::SuiJsonValue;
use sui_json_rpc::bcs_api::BcsApiImpl;
use sui_json_rpc::gateway_api::{GatewayReadApiImpl, RpcGatewayImpl, TransactionBuilderImpl};
use sui_json_rpc::gateway_api::{RpcGatewayImpl, TransactionBuilderImpl};
use sui_json_rpc::read_api::{FullNodeApi, ReadApi};
use sui_json_rpc::sui_rpc_doc;
use sui_json_rpc::SuiRpcModule;
Expand Down Expand Up @@ -79,7 +79,6 @@ async fn main() {
let mut open_rpc = sui_rpc_doc();
open_rpc.add_module(TransactionBuilderImpl::rpc_doc_module());
open_rpc.add_module(RpcGatewayImpl::rpc_doc_module());
open_rpc.add_module(GatewayReadApiImpl::rpc_doc_module());
open_rpc.add_module(ReadApi::rpc_doc_module());
open_rpc.add_module(FullNodeApi::rpc_doc_module());
open_rpc.add_module(BcsApiImpl::rpc_doc_module());
Expand Down
213 changes: 0 additions & 213 deletions crates/sui-open-rpc/spec/openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,59 +128,6 @@
}
}
},
{
"name": "sui_getObject",
"tags": [
{
"name": "Read API"
}
],
"description": "Return the object information for a specified object",
"params": [
{
"name": "object_id",
"required": true,
"schema": {
"$ref": "#/components/schemas/ObjectID"
}
}
],
"result": {
"name": "GetObjectDataResponse",
"required": true,
"schema": {
"$ref": "#/components/schemas/ObjectRead"
}
}
},
{
"name": "sui_getObjectsOwnedByAddress",
"tags": [
{
"name": "Read API"
}
],
"description": "Return the list of objects owned by an address.",
"params": [
{
"name": "address",
"required": true,
"schema": {
"$ref": "#/components/schemas/SuiAddress"
}
}
],
"result": {
"name": "Vec<SuiObjectInfo>",
"required": true,
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ObjectInfo"
}
}
}
},
{
"name": "sui_getObjectsOwnedByAddress",
"tags": [
Expand Down Expand Up @@ -236,33 +183,6 @@
}
}
},
{
"name": "sui_getObjectsOwnedByObject",
"tags": [
{
"name": "Read API"
}
],
"params": [
{
"name": "object_id",
"required": true,
"schema": {
"$ref": "#/components/schemas/ObjectID"
}
}
],
"result": {
"name": "Vec<SuiObjectInfo>",
"required": true,
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ObjectInfo"
}
}
}
},
{
"name": "sui_getRawObject",
"tags": [
Expand Down Expand Up @@ -329,47 +249,6 @@
}
}
},
{
"name": "sui_getRecentTransactions",
"tags": [
{
"name": "Read API"
}
],
"params": [
{
"name": "count",
"required": true,
"schema": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
],
"result": {
"name": "Vec<(GatewayTxSeqNumber,TransactionDigest)>",
"required": true,
"schema": {
"type": "array",
"items": {
"type": "array",
"items": [
{
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
{
"$ref": "#/components/schemas/TransactionDigest"
}
],
"maxItems": 2,
"minItems": 2
}
}
}
},
{
"name": "sui_getTotalTransactionNumber",
"tags": [
Expand All @@ -388,48 +267,6 @@
}
}
},
{
"name": "sui_getTotalTransactionNumber",
"tags": [
{
"name": "Read API"
}
],
"params": [],
"result": {
"name": "u64",
"required": true,
"schema": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
},
{
"name": "sui_getTransaction",
"tags": [
{
"name": "Read API"
}
],
"params": [
{
"name": "digest",
"required": true,
"schema": {
"$ref": "#/components/schemas/TransactionDigest"
}
}
],
"result": {
"name": "TransactionEffectsResponse",
"required": true,
"schema": {
"$ref": "#/components/schemas/TransactionEffectsResponse"
}
}
},
{
"name": "sui_getTransaction",
"tags": [
Expand Down Expand Up @@ -621,56 +458,6 @@
}
}
},
{
"name": "sui_getTransactionsInRange",
"tags": [
{
"name": "Read API"
}
],
"params": [
{
"name": "start",
"required": true,
"schema": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
{
"name": "end",
"required": true,
"schema": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
],
"result": {
"name": "Vec<(GatewayTxSeqNumber,TransactionDigest)>",
"required": true,
"schema": {
"type": "array",
"items": {
"type": "array",
"items": [
{
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
{
"$ref": "#/components/schemas/TransactionDigest"
}
],
"maxItems": 2,
"minItems": 2
}
}
}
},
{
"name": "sui_getTransactionsToAddress",
"tags": [
Expand Down

0 comments on commit b905504

Please sign in to comment.