From da9adf5b388a51714cf8abe1c66d83c97d8b292d Mon Sep 17 00:00:00 2001 From: iosh Date: Sun, 1 Dec 2024 20:51:32 +0800 Subject: [PATCH] chore: update readme --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b38c70f..d846d2f 100644 --- a/README.md +++ b/README.md @@ -140,8 +140,10 @@ export interface ConfluxConfig { * @default "123456" */ devPosPrivateKeyEncryptionPassword?: string; - /** The private key of the genesis, every account will be receive 10000 CFX */ + /** The private key of the genesis (core space), every account will be receive 10000 CFX */ genesisSecrets?: Array; + /** The private key of the genesis (eSpace), every account will be receive 10000 CFX */ + genesisEvmSecrets?: Array; /** * If it's `true`, `DEFERRED_STATE_EPOCH_COUNT` blocks are generated after * receiving a new tx through RPC calling to pack and execute this @@ -225,5 +227,18 @@ export interface ConfluxConfig { * @default null */ jsonrpcLocalWsPort?: number; + /** + * `poll_lifetime_in_seconds` is the lifetime of the poll in seconds. + * If set, the following RPC methods will be enabled: + * - `cfx_newFilter` `cfx_newBlockFilter` `cfx_newPendingTransactionFilter` `cfx_getFilterChanges` `cfx_getFilterLogs` `cfx_uninstallFilter`. + * - `eth_newFilter` `eth_newBlockFilter` `eth_newPendingTransactionFilter` eth_getFilterChanges eth_getFilterLogs eth_uninstallFilter + */ + pollLifetimeInSeconds?: number; + /** if `get_logs_filter_max_limit` is configured but the query would return more logs */ + getLogsFilterMaxLimit?: number; } ``` + +### Example + +The more example, please see `__test__` files.