This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I have a accounts.json. with [{account:"0xaddress_public_key",private_key:"0xprivate_key"},] | |
# this creates the info I need to put on cdk-erigon to add balance to the accounts I want to simulate. | |
import json | |
# Load accounts data from JSON file | |
with open('accounts.json', 'r') as f: | |
data = json.load(f) | |
# Create a dictionary to store the new formatted data | |
formatted_data = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.20; | |
import "@openzeppelin/contracts/proxy/Clones.sol"; | |
import "@openzeppelin/contracts/access/AccessControl.sol"; | |
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; | |
/// @title MultiFactory Contract for creating clones of multiple implementations | |
/// @dev Extends AccessControl and Initializable from OpenZeppelin | |
contract MultiFactory is AccessControl, Initializable { |