revise polka methods
This commit is contained in:
@@ -30,16 +30,43 @@ class DefaultPolkadotMethods : CallMethods {
|
||||
companion object {
|
||||
val subs = setOf(
|
||||
"subscribe_newHead" to "unsubscribe_newHead",
|
||||
"chain_subscribeNewHead" to "chain_unsubscribeNewHead",
|
||||
"chain_subscribeAllHeads" to "chain_unsubscribeAllHeads",
|
||||
"chain_subscribeFinalizedHeads" to "chain_unsubscribeFinalizedHeads",
|
||||
"chain_subscribeFinalisedHeads" to "chain_unsubscribeFinalisedHeads",
|
||||
"chain_subscribeNewHeads" to "chain_unsubscribeNewHeads",
|
||||
"chain_subscribeRuntimeVersion" to "chain_unsubscribeRuntimeVersion",
|
||||
"author_submitAndWatchExtrinsic" to "author_unwatchExtrinsic",
|
||||
"grandpa_subscribeJustifications" to "grandpa_unsubscribeJustifications",
|
||||
"state_subscribeRuntimeVersion" to "state_unsubscribeRuntimeVersion",
|
||||
"state_subscribeStorage" to "state_unsubscribeStorage",
|
||||
"transaction_unstable_submitAndWatch" to "transaction_unstable_unwatch",
|
||||
)
|
||||
}
|
||||
|
||||
private val all = setOf(
|
||||
"account_nextIndex",
|
||||
"author_hasKey",
|
||||
"author_hasSessionKeys",
|
||||
"author_insertKey",
|
||||
"author_pendingExtrinsics",
|
||||
"author_removeExtrinsic",
|
||||
"author_rotateKeys",
|
||||
"babe_epochAuthorship",
|
||||
"chainHead_unstable_body",
|
||||
"chainHead_unstable_call",
|
||||
"chainHead_unstable_follow",
|
||||
"chainHead_unstable_genesisHash",
|
||||
"chainHead_unstable_header",
|
||||
"chainHead_unstable_stopBody",
|
||||
"chainHead_unstable_stopCall",
|
||||
"chainHead_unstable_stopStorage",
|
||||
"chainHead_unstable_storage",
|
||||
"chainHead_unstable_unfollow",
|
||||
"chainHead_unstable_unpin",
|
||||
"chainSpec_unstable_chainName",
|
||||
"chainSpec_unstable_genesisHash",
|
||||
"chainSpec_unstable_properties",
|
||||
"chain_getBlock",
|
||||
"chain_getBlockHash",
|
||||
"chain_getFinalisedHead",
|
||||
@@ -54,6 +81,7 @@ class DefaultPolkadotMethods : CallMethods {
|
||||
"childstate_getStorageEntries",
|
||||
"childstate_getStorageHash",
|
||||
"childstate_getStorageSize",
|
||||
"dev_getBlockStats",
|
||||
"gear_calculateHandleGas",
|
||||
"gear_calculateInitCreateGas",
|
||||
"gear_calculateInitUploadGas",
|
||||
@@ -65,8 +93,12 @@ class DefaultPolkadotMethods : CallMethods {
|
||||
"gear_readStateUsingWasmBatch",
|
||||
"grandpa_proveFinality",
|
||||
"grandpa_roundState",
|
||||
"offchain_localStorageGet",
|
||||
"offchain_localStorageSet",
|
||||
"payment_queryFeeDetails",
|
||||
"payment_queryInfo",
|
||||
"runtime_wasmBlobVersion",
|
||||
"stakingRewards_inflationInfo",
|
||||
"state_call",
|
||||
"state_callAt",
|
||||
"state_getChildReadProof",
|
||||
@@ -87,7 +119,27 @@ class DefaultPolkadotMethods : CallMethods {
|
||||
"state_queryStorageAt",
|
||||
"state_traceBlock",
|
||||
"state_trieMigrationStatus",
|
||||
"sync_state_genSyncSpec",
|
||||
"system_accountNextIndex",
|
||||
"system_addLogFilter",
|
||||
"system_addReservedPeer",
|
||||
"system_chain",
|
||||
"system_chainType",
|
||||
"system_dryRun",
|
||||
"system_dryRunAt",
|
||||
"system_health",
|
||||
"system_localListenAddresses",
|
||||
"system_localPeerId",
|
||||
"system_name",
|
||||
"system_nodeRoles",
|
||||
"system_peers",
|
||||
"system_properties",
|
||||
"system_removeReservedPeer",
|
||||
"system_reservedPeers",
|
||||
"system_resetLogFilter",
|
||||
"system_syncState",
|
||||
"system_unstable_networkState",
|
||||
"system_version",
|
||||
)
|
||||
|
||||
private val add = setOf(
|
||||
|
||||
Reference in New Issue
Block a user