From aafdba55fa476fca391b81834f202f27e7641237 Mon Sep 17 00:00:00 2001 From: 0xWyc <0xwyc@blockpi.io> Date: Wed, 24 Dec 2025 14:21:19 +0800 Subject: [PATCH 1/5] Add initial GraphQL OpenAPI specification --- sui/graphql-openapi.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sui/graphql-openapi.yaml diff --git a/sui/graphql-openapi.yaml b/sui/graphql-openapi.yaml new file mode 100644 index 0000000..3e2b1f2 --- /dev/null +++ b/sui/graphql-openapi.yaml @@ -0,0 +1,11 @@ +openapi: 3.1.0 +info: + title: GraphQL + description: '' + version: 1.0.0 +paths: + /: + post: + summary: GraphQL Query + get: + summary: GraphQL Query From a601458c7a1b82c74c02ed63800ca228476773cd Mon Sep 17 00:00:00 2001 From: 0xWyc <0xwyc@blockpi.io> Date: Wed, 24 Dec 2025 14:21:56 +0800 Subject: [PATCH 2/5] Create limiter.yaml --- sui/limiter.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 sui/limiter.yaml diff --git a/sui/limiter.yaml b/sui/limiter.yaml new file mode 100644 index 0000000..15ca87a --- /dev/null +++ b/sui/limiter.yaml @@ -0,0 +1,10 @@ +methods: + - name: "default" + maxBatchSize: 1000 # batch Size 由于特殊性,并不支持到具体方法,所以请配置到默认方法 + - name: "/graphql" + maxBatchSize: 5 + limits: + - level: "L2" + maxBatchSize: 2 + - level: "L5" + maxBatchSize: 4 From 828ecc1831f75f4de32dc0f9ebcf126cfa6497c3 Mon Sep 17 00:00:00 2001 From: 0xWyc <0xwyc@blockpi.io> Date: Wed, 24 Dec 2025 14:22:42 +0800 Subject: [PATCH 3/5] Update limiter.yaml --- sui/limiter.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sui/limiter.yaml b/sui/limiter.yaml index 15ca87a..fb28f1d 100644 --- a/sui/limiter.yaml +++ b/sui/limiter.yaml @@ -4,7 +4,5 @@ methods: - name: "/graphql" maxBatchSize: 5 limits: - - level: "L2" - maxBatchSize: 2 - - level: "L5" - maxBatchSize: 4 + - level: "L1" + maxBatchSize: 5 From ff56d45d869a5e268a32380a20c0669abc2bf6b8 Mon Sep 17 00:00:00 2001 From: 0xWyc <0xwyc@blockpi.io> Date: Wed, 24 Dec 2025 14:43:28 +0800 Subject: [PATCH 4/5] Update fees.json --- sui/fees.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sui/fees.json b/sui/fees.json index 73b1bf6..987d417 100644 --- a/sui/fees.json +++ b/sui/fees.json @@ -309,7 +309,12 @@ "method": "/sui.rpc.v2beta2.LiveDataService/SimulateTransaction", "calBase": 100000000, "ruCost": 50 - } + }, + { + "method": "/graphql", + "calBase": 200000, + "ruCost": 5 + }, ], "nodeTypeRate": { "default": 1, From f49cefabbbc0f7b9dee67f8ef7d8c8958669e7a7 Mon Sep 17 00:00:00 2001 From: 0xWyc <0xwyc@blockpi.io> Date: Wed, 24 Dec 2025 15:43:51 +0800 Subject: [PATCH 5/5] Update fees.json --- sui/fees.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sui/fees.json b/sui/fees.json index 987d417..ec2b548 100644 --- a/sui/fees.json +++ b/sui/fees.json @@ -314,7 +314,7 @@ "method": "/graphql", "calBase": 200000, "ruCost": 5 - }, + } ], "nodeTypeRate": { "default": 1,