-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19fde2b
commit b6b6bd7
Showing
2 changed files
with
56 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import sys | ||
import os | ||
|
||
sys.path.append(os.path.abspath("tests")) | ||
from shared_tests import * | ||
from utils import prompt_user_continue_or_break | ||
from consts import * | ||
from brownie import accounts, network | ||
|
||
AUTONOMY_SEED = os.environ["SEED"] | ||
cf_accs = accounts.from_mnemonic(AUTONOMY_SEED, count=10) | ||
DEPLOYER_ACCOUNT_INDEX = int(os.environ.get("DEPLOYER_ACCOUNT_INDEX") or 0) | ||
|
||
DEPLOYER = cf_accs[DEPLOYER_ACCOUNT_INDEX] | ||
print(f"DEPLOYER = {DEPLOYER}") | ||
network.priority_fee("1 gwei") | ||
|
||
# NUM_SPAM_TXS = int(os.environ["NUM_SPAM_TXS"]) | ||
NUM_SPAM_TXS = 100 | ||
|
||
|
||
def main(): | ||
for i in range(NUM_SPAM_TXS): | ||
DEPLOYER.transfer(DEPLOYER, "1 ether") |