Skip to main content

Module chain

Module chain 

Source
Expand description

On-chain Funding and smart-account helpers.

Calldata encoders, Safe CREATE2 prediction, and UserOperation submit. On-chain Funding and smart-account helpers.

Encodes FundingAccount / TradingGateway calldata and can submit wallet-signed UserOperations (owner key → derive Polyester Safe → bundler). Separate from the API-key Connect surface.

Structs§

AccountAbstractionEnvironment
Bundler / paymaster / EntryPoint / Safe deployment settings.
ChainCall
Contract call payload for a smart-account UserOperation.
ContractsEnvironment
Polyester application contract addresses.
EntryPointConfig
EntryPoint configuration for ERC-4337.
GuardApproval
Guard approval tuple (uint192 nonceSpace, uint256 deadline, bytes signature).
JsonRpcClient
JSON-RPC HTTP client (async; matches the SDK’s tokio/hyper stack).
PolyesterChainEnvironment
On-chain / AA settings for Funding UserOps (not API-key Connect).
PolyesterSmartAccount
Owner-key smart account: derive Safe, build/sign/submit Funding UserOps.
PredictedSafe
Predicted Safe address plus factory deploy payloads.
SafeDeploymentConfig
Safe / 4337 module deployment addresses.
UserOperationReceipt
Receipt for a submitted UserOperation.
ZipperFeeQuote
Result of quoting a Zipper network fee for withdraws.

Enums§

SendCallsResult
Result of PolyesterSmartAccount::send_calls.

Constants§

POLYESTER_TESTNET_ENVIRONMENT
Polyester testnet (chain 888168) environment.
USER_OPERATION_GAS_BUFFER_BPS
USER_OPERATION_MIN_GAS_BUFFER

Functions§

add_user_operation_gas_buffer
Apply the standard gas buffer (20% or +50k, whichever is larger).
encode_add_allowed_external_destinations
Encode addAllowedExternalDestinations(uint16,bytes[],(uint192,uint256,bytes)).
encode_add_allowed_internal_accounts
Encode addAllowedInternalAccounts(address[],(uint192,uint256,bytes)).
encode_execute_user_op_call_data
Encode Safe4337Module.executeUserOpWithErrorString for a single call.
encode_funding_withdraw_to_chain
Encode FundingAccount.withdrawToChain((uint16,address,bytes,uint256,uint256)).
encode_initialize_guard_signer
Encode GuardRegistry.initializeSigner(address).
encode_remove_allowed_external_destinations
Encode removeAllowedExternalDestinations(uint16,bytes[],(uint192,uint256,bytes)).
encode_remove_allowed_internal_accounts
Encode removeAllowedInternalAccounts(address[],(uint192,uint256,bytes)).
encode_rotate_guard_signer
Encode GuardRegistry.rotateSigner(address,(uint192,uint256,bytes)).
encode_set_external_destination_allowlist_required
Encode setExternalDestinationAllowlistRequired(bool,(uint192,uint256,bytes)).
encode_set_internal_account_allowlist_required
Encode setInternalAccountAllowlistRequired(bool,(uint192,uint256,bytes)).
encode_trading_gateway_deposit
Encode TradingGateway.deposit(bytes32 uAssetId, uint256 uAmount).
encode_trading_gateway_deposit_to
Encode TradingGateway.depositTo(address,bytes32,uint256).
encode_withdraw_destination
UTF-8 bytes of the normalized address (lowercase when not case-sensitive).
pack_paymaster_and_data
Pack paymaster fields into EntryPoint v0.7 paymasterAndData.
predict_polyester_smart_account_address
Alias matching the TypeScript predictPolyesterSmartAccountAddress name.
predict_safe_address
Predict the Polyester Safe for a single owner (main account = salt 0).
predict_safe_address_with_data
Deterministic CREATE2 Safe address + factory deploy data (zero RPC).
quote_zipper_fee
Quote Zipper network fee via feeFactory.getFee(uint16,address).
sign_safe_user_operation
EIP-712 SafeOp signature packed as uint48/uint48/bytes (single EOA owner).
stub_signature
Stub signature used while requesting paymaster sponsorship.

Type Aliases§

SmartAccount
Alias matching the task naming (SmartAccount).