Crate forest

Source

Modulesยง

auth ๐Ÿ”’
beacon ๐Ÿ”’
blocks ๐Ÿ”’
chain ๐Ÿ”’
chain_sync ๐Ÿ”’
cid_collections ๐Ÿ”’
cli ๐Ÿ”’
cli_shared ๐Ÿ”’
daemon ๐Ÿ”’
db ๐Ÿ”’
documentation ๐Ÿ”’
This is an empty module for documentation purposes.
eth ๐Ÿ”’
f3 ๐Ÿ”’
fil_cns ๐Ÿ”’
genesis ๐Ÿ”’
health ๐Ÿ”’
interpreter ๐Ÿ”’
ipld ๐Ÿ”’
key_management ๐Ÿ”’
libp2p ๐Ÿ”’
libp2p_bitswap ๐Ÿ”’
Another libp2p bitswap(SPEC) implementation in Rust.
lotus_json ๐Ÿ”’
In the Filecoin ecosystem, there are TWO different ways to present a domain object:
message ๐Ÿ”’
message_pool ๐Ÿ”’
metrics ๐Ÿ”’
networks ๐Ÿ”’
rpc ๐Ÿ”’
shim ๐Ÿ”’
state_manager ๐Ÿ”’
state_migration ๐Ÿ”’
statediff ๐Ÿ”’
test_utils ๐Ÿ”’
tool ๐Ÿ”’
utils ๐Ÿ”’
wallet ๐Ÿ”’

Macrosยง

define_system_states
Define type aliases for system actor State types before and after the state migration, namely SystemStateOld and SystemStateNew
for_each_rpc_method
The macro callback will be passed in each type that implements RpcMethod.
from_str_with
impl_system
Implements fn system_migrator, requiring proper system actor State types being defined by define_system_states macro.
impl_verifier
Implements Verifier, requiring proper Manifest types and system actor State types being defined by define_manifests and define_system_states macros respectively.
list_miners_for_state
make_butterfly_policy
Creates a new butterfly policy with the given version. Works for v10 onward.
make_calibnet_policy
Creates a new calibnet policy with the given version.
make_devnet_policy
Creates a new devnet policy with the given version. Works with v10 onward.
make_height
make_mainnet_policy
Creates a new mainnet policy with the given version.
parse_pending_transactions
This macro iterates over each transaction, decodes the transaction key using variable-length integer encoding, and constructs a Transaction object with the decoded data.
parse_pending_transactions_v3
This macro iterates over each transaction, decodes the transaction key, and constructs a Transaction object with additional processing for address and token formats using from_address_v3_to_v2 and from_token_v3_to_v2.
parse_pending_transactions_v4
This macro iterates over each transaction, assumes that transaction idโ€™s are directly available and not encoded. It constructs Transaction objects with transformations for address and token data from version 4 to version 2 using from_address_v4_to_v2 and from_token_v4_to_v2.
to_string_with

Structsยง

Client
Config
KeyStore
KeyStore structure, this contains a set of KeyInfos indexed by address.

Enumsยง

KeyStoreConfig

Constantsยง

ENCRYPTED_KEYSTORE_NAME
FOREST_KEYSTORE_PHRASE_ENV
Environmental variable which holds the KeyStore encryption phrase.
JWT_IDENTIFIER
constant string that is used to identify the JWT secret key in KeyStore
KEYSTORE_NAME

Staticsยง

GLOBAL ๐Ÿ”’

Functionsยง

forest_main
forest_tool_main
forest_wallet_main
forestd_main
verify_token
Verify JWT Token and return the allowed permissions from token