diff --git a/sui/fees.json b/sui/fees.json index 95619b4..078712e 100644 --- a/sui/fees.json +++ b/sui/fees.json @@ -319,6 +319,11 @@ "method": "/sui.rpc.v2.NameService/ReverseLookupName", "calBase": 100000000, "ruCost": 50 + }, + { + "method": "/graphql", + "calBase": 200000, + "ruCost": 5 } ], "nodeTypeRate": { 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 diff --git a/sui/limiter.yaml b/sui/limiter.yaml new file mode 100644 index 0000000..fb28f1d --- /dev/null +++ b/sui/limiter.yaml @@ -0,0 +1,8 @@ +methods: + - name: "default" + maxBatchSize: 1000 # batch Size 由于特殊性,并不支持到具体方法,所以请配置到默认方法 + - name: "/graphql" + maxBatchSize: 5 + limits: + - level: "L1" + maxBatchSize: 5