Deployment
To deploy the era_0x Vault system, follow these steps:
Deploy HeirModule.sol:
Prepare an array of 1–10 heirs, each with an address and percentage (summing to 100).
Deploy
HeirModule
with this array as the constructor argument.Example:
HeirModule.Heir[] memory heirs = new HeirModule.Heir[](2); heirs[0] = HeirModule.Heir(address1, 60); heirs[1] = HeirModule.Heir(address2, 40); new HeirModule(heirs);
Deploy Vault.sol:
Deploy
Vault
with the following constructor arguments:_owner
: The owner’s Ethereum address._heirsModule
: The deployedHeirModule
contract address._inactivityPeriod
: One of:15552000 (6 months)
23328000 (9 months)
31104000 (12 months)
Example:
new Vault(ownerAddress, heirModuleAddress, 15552000);
Verify Contracts:
Use a block explorer (e.g., Etherscan) to verify the deployed contracts’ source code.
Note: Replace specific addresses with your own when deploying. Do not hardcode addresses in production.