diff --git a/sui-archive/DisableMethod.yaml b/sui-archive/DisableMethod.yaml new file mode 100644 index 0000000..43eeef4 --- /dev/null +++ b/sui-archive/DisableMethod.yaml @@ -0,0 +1,52 @@ +# +default: # 等级(所有等级,其它等级没有配置方法时取这里方法配置) + "debug_accountRange": + "debug_backtraceAt": + "debug_blockProfile": + "debug_chaindbCompact": + "debug_chaindbProperty": + "debug_cpuProfile": + "debug_dbAncient": + "debug_dbAncients": + "debug_dbGet": + "debug_dumpBlock": + "debug_freeOSMemory": + "debug_freezeClient": + "debug_gcStats": + "debug_getAccessibleState": + "debug_getBadBlocks": + "debug_getBlockRlp": + "debug_getHeaderRlp": + "debug_getModifiedAccountsByHash": + "debug_getModifiedAccountsByNumber": + "debug_getRawReceipts": + "debug_goTrace": + "debug_intermediateRoots": + "debug_memStats": + "debug_mutexProfile": + "debug_preimage": + "debug_printBlock": + "debug_seedHash": + "debug_setBlockProfileRate": + "debug_setGCPercent": + "debug_setHead": + "debug_setMutexProfileFraction": + "debug_stacks": + "debug_standardTraceBlockToFile": + "debug_standardTraceBadBlockToFile": + "debug_startCPUProfile": + "debug_startGoTrace": + "debug_stopCPUProfile": + "debug_stopGoTrace": + "debug_storageRangeAt": + "debug_traceBadBlock": + "debug_traceBlock": + "debug_traceBlockFromFile": + "debug_traceChain": + "debug_verbosity": + "debug_vmodule": + "debug_writeBlockProfile": + "debug_writeMemProfile": + "debug_writeMutexProfile": + "trace_callMany": + diff --git a/sui-archive/PublicDisableMethod.json b/sui-archive/PublicDisableMethod.json new file mode 100644 index 0000000..126f09d --- /dev/null +++ b/sui-archive/PublicDisableMethod.json @@ -0,0 +1,21 @@ +[ + "txpool_content", + "txpool_inspect", + "debug_traceCall", + "debug_traceBlockByHash", + "debug_traceBlockByNumber", + "debug_traceTransaction", + "trace_block", + "trace_call", + "trace_get", + "trace_filter", + "trace_transaction", + "trace_rawTransaction", + "trace_replayTransaction", + "eth_newFilter", + "eth_newBlockFilter", + "eth_newPendingTransactionFilter", + "eth_getFilterChanges", + "eth_uninstallFilter", + "eth_getFilterLogs" +] diff --git a/sui-archive/dispatch.yaml b/sui-archive/dispatch.yaml new file mode 100644 index 0000000..34c50e3 --- /dev/null +++ b/sui-archive/dispatch.yaml @@ -0,0 +1,3 @@ +default_archive: +default: + diff --git a/sui-archive/fees.json b/sui-archive/fees.json new file mode 100644 index 0000000..078712e --- /dev/null +++ b/sui-archive/fees.json @@ -0,0 +1,334 @@ +{ + "methodPrice": [ + { + "method": "default", + "calBase": 250, + "ruCost": 5 + }, + { + "method": "suix_getAllBalances", + "calBase": 100000000, + "ruCost": 30 + }, + { + "method": "suix_getAllCoins", + "calBase": 100000000, + "ruCost": 100 + }, + { + "method": "suix_getBalance", + "calBase": 100000000, + "ruCost": 40 + }, + { + "method": "suix_getCoinMetadata", + "calBase": 100000000, + "ruCost": 40 + }, + { + "method": "suix_getCoins", + "calBase": 100000000, + "ruCost": 40 + }, + { + "method": "suix_getTotalSupply", + "calBase": 100000000, + "ruCost": 20 + }, + { + "method": "suix_getDynamicFieldObject", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "suix_getDynamicFields", + "calBase": 100000000, + "ruCost": 75 + }, + { + "method": "suix_getOwnedObjects", + "calBase": 100000000, + "ruCost": 75 + }, + { + "method": "suix_queryEvents", + "calBase": 100000000, + "ruCost": 30 + }, + { + "method": "suix_queryTransactionBlocks", + "calBase": 100000000, + "ruCost": 40 + }, + { + "method": "suix_resolveNameServiceAddress", + "calBase": 100000000, + "ruCost": 20 + }, + { + "method": "suix_resolveNameServiceNames", + "calBase": 100000000, + "ruCost": 30 + }, + { + "method": "suix_getCommitteeInfo", + "calBase": 100000000, + "ruCost": 600 + }, + { + "method": "suix_getLatestSuiSystemState", + "calBase": 100000000, + "ruCost": 2000 + }, + { + "method": "suix_getReferenceGasPrice", + "calBase": 100000000, + "ruCost": 25 + }, + { + "method": "suix_getStakes", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "suix_getStakesByIds", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "suix_getValidatorsApy", + "calBase": 100000000, + "ruCost": 400 + }, + { + "method": "sui_getMoveFunctionArgTypes", + "calBase": 100000000, + "ruCost": 30 + }, + { + "method": "sui_getNormalizedMoveFunction", + "calBase": 100000000, + "ruCost": 40 + }, + { + "method": "sui_getNormalizedMoveModule", + "calBase": 100000000, + "ruCost": 150 + }, + { + "method": "sui_getNormalizedMoveModulesByPackage", + "calBase": 100000000, + "ruCost": 2000 + }, + { + "method": "sui_getNormalizedMoveStruct", + "calBase": 100000000, + "ruCost": 40 + }, + { + "method": "sui_getChainIdentifier", + "calBase": 100000000, + "ruCost": 25 + }, + { + "method": "sui_getCheckpoint", + "calBase": 100000000, + "ruCost": 200 + }, + { + "method": "sui_getCheckpoints", + "calBase": 100000000, + "ruCost": 200 + }, + { + "method": "sui_getEvents", + "calBase": 100000000, + "ruCost": 70 + }, + { + "method": "sui_getLatestCheckpointSequenceNumber", + "calBase": 100000000, + "ruCost": 30 + }, + { + "method": "sui_getLoadedChildObjects", + "calBase": 100000000, + "ruCost": 30 + }, + { + "method": "sui_getObject", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "sui_getProtocolConfig", + "calBase": 100000000, + "ruCost": 500 + }, + { + "method": "sui_getTotalTransactionBlocks", + "calBase": 100000000, + "ruCost": 30 + }, + { + "method": "sui_getTransactionBlock", + "calBase": 100000000, + "ruCost": 250 + }, + { + "method": "sui_multiGetObjects", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "sui_tryGetPastObject", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "sui_tryMultiGetPastObjects", + "calBase": 100000000, + "ruCost": 80 + }, + { + "method": "sui_devInspectTransactionBlock", + "calBase": 100000000, + "ruCost": 80 + }, + { + "method": "sui_dryRunTransactionBlock", + "calBase": 100000000, + "ruCost": 150 + }, + { + "method": "sui_executeTransactionBlock", + "calBase": 100000000, + "ruCost": 150 + }, + { + "method": "sui_multiGetTransactionBlocks", + "calBase": 100000000, + "ruCost": 300 + }, + { + "method": "/sui.rpc.v2.LedgerService/GetServiceInfo", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.LedgerService/GetObject", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.LedgerService/BatchGetObjects", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.LedgerService/GetTransaction", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.LedgerService/BatchGetTransactions", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.LedgerService/GetCheckpoint", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.LedgerService/GetEpoch", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.SignatureVerificationService/VerifySignature", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.MovePackageService/GetPackage", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.MovePackageService/GetDatatype", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.MovePackageService/GetFunction", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.MovePackageService/ListPackageVersions", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.SubscriptionService/SubscribeCheckpoints", + "calBase": 250, + "ruCost": 5 + }, + { + "method": "/sui.rpc.v2.TransactionExecutionService/ExecuteTransaction", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.StateService/ListDynamicFields", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.StateService/ListOwnedObjects", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.StateService/GetCoinInfo", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.StateService/GetBalance", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.StateService/ListBalances", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.LiveDataService/SimulateTransaction", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.NameService/LookupName", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/sui.rpc.v2.NameService/ReverseLookupName", + "calBase": 100000000, + "ruCost": 50 + }, + { + "method": "/graphql", + "calBase": 200000, + "ruCost": 5 + } + ], + "nodeTypeRate": { + "default": 1, + "fullNode": 1, + "archiveNode": 1.3 + } +} diff --git a/sui-archive/graphql-openapi.yaml b/sui-archive/graphql-openapi.yaml new file mode 100644 index 0000000..3e2b1f2 --- /dev/null +++ b/sui-archive/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-archive/limiter.yaml b/sui-archive/limiter.yaml new file mode 100644 index 0000000..fb28f1d --- /dev/null +++ b/sui-archive/limiter.yaml @@ -0,0 +1,8 @@ +methods: + - name: "default" + maxBatchSize: 1000 # batch Size 由于特殊性,并不支持到具体方法,所以请配置到默认方法 + - name: "/graphql" + maxBatchSize: 5 + limits: + - level: "L1" + maxBatchSize: 5