Skip to main content

polyester/chain/
mod.rs

1//! On-chain Funding and smart-account helpers.
2//!
3//! Encodes FundingAccount / TradingGateway calldata and can submit wallet-signed
4//! UserOperations (owner key → derive Polyester Safe → bundler). Separate from
5//! the API-key Connect surface.
6
7mod calldata;
8mod destination;
9mod environment;
10mod fees;
11mod rpc;
12mod safe;
13mod userop;
14
15pub use calldata::{
16    ChainCall, GuardApproval, encode_add_allowed_external_destinations,
17    encode_add_allowed_internal_accounts, encode_funding_withdraw_to_chain,
18    encode_initialize_guard_signer, encode_remove_allowed_external_destinations,
19    encode_remove_allowed_internal_accounts, encode_rotate_guard_signer,
20    encode_set_external_destination_allowlist_required,
21    encode_set_internal_account_allowlist_required, encode_trading_gateway_deposit,
22    encode_trading_gateway_deposit_to,
23};
24pub use destination::encode_withdraw_destination;
25pub use environment::{
26    AccountAbstractionEnvironment, ContractsEnvironment, EntryPointConfig,
27    POLYESTER_TESTNET_ENVIRONMENT, PolyesterChainEnvironment, SafeDeploymentConfig,
28};
29pub use fees::{ZipperFeeQuote, quote_zipper_fee};
30pub use rpc::JsonRpcClient;
31pub use safe::{
32    PredictedSafe, predict_polyester_smart_account_address, predict_safe_address,
33    predict_safe_address_with_data,
34};
35pub use userop::{
36    PolyesterSmartAccount, SendCallsResult, SmartAccount, USER_OPERATION_GAS_BUFFER_BPS,
37    USER_OPERATION_MIN_GAS_BUFFER, UserOperationReceipt, add_user_operation_gas_buffer,
38    encode_execute_user_op_call_data, pack_paymaster_and_data, sign_safe_user_operation,
39    stub_signature,
40};