VaultControlledWallet
Documentation for eth_defi.enzyme.vault_controlled_wallet.VaultControlledWallet Python class.
- class VaultControlledWallet[source]
A wallet that transacts through Enzyme Vault as the fund owner.
Allows you to sign and broadcast transactions concerning Enzyme’s vault as a vault owner.
Vault owner can only broadcast specific transactions allowed by Enzyme’s GenericAdapter
Attributes summary
Get the vault address.
Get the adapter configured for the vault.
Methods summary
__init__
(vault, hot_wallet)Create a vault controlling wallet.
sign_transaction_with_new_nonce
(tx[, gas_params])Signs a transaction and allocates a nonce for it.
- __init__(vault, hot_wallet)[source]
Create a vault controlling wallet.
- Parameters
hot_wallet (eth_defi.hotwallet.HotWallet) – The fund deployment account as a EOA wallet.
vault (eth_defi.enzyme.vault.Vault) –
- property address: eth_typing.evm.HexAddress
Get the vault address.
- property generic_adapter: web3.contract.contract.Contract
Get the adapter configured for the vault.
- sign_transaction_with_new_nonce(tx, gas_params=None)[source]
Signs a transaction and allocates a nonce for it.
- Param
Ethereum transaction data as a dict. This is modified in-place to include nonce.
- Returns
Signed transaction and encoding information.
Tuple(Signed transaction ready for broadcasst, bound IntegrationManager.callOnExtension() function
- Parameters
- Return type
Tuple[eth_defi.hotwallet.SignedTransactionWithNonce, web3.contract.contract.ContractFunction]