Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use valid anchor url, hash and return address in bulk loader #2380

Merged
merged 2 commits into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions gov-action-loader/backend/app/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def get_base_proposal():
def get_base_proposal_for_multiple():
base_proposal = get_base_proposal()
base_proposal["anchor"] = {
"url": "http://bit.ly/3QFMhii",
"dataHash": "1111111111111111111111111111111111111111111111111111111111111112",
"url": "https://metadata-govtool.cardanoapi.io/data/gov-action-loader",
"dataHash": "bcb2fadedbe928519ff000051d8e78ffcabadba0f92b91334cee3e8786491462",
}
base_proposal["deposit"] = default_proposal_deposit_ada * 1000000
return base_proposal
Expand Down Expand Up @@ -69,7 +69,7 @@ def generate_bytes(length):


def generate_withdraw(number):
stake_addresses = [generate_raw_address() for _ in range(number)]
stake_addresses = ["e02fe0d8c1b1c600249e8b9663e18790425e9589ac17cb5ee952d54bee"]
amounts = [
random.choice([10000000, 20000000, 30000000, 40000000, 50000000])
for _ in range(number)
Expand All @@ -78,7 +78,7 @@ def generate_withdraw(number):


def generate_update(number):
stake_addresses = [generate_raw_address() for _ in range(number)]
stake_addresses = ["e02fe0d8c1b1c600249e8b9663e18790425e9589ac17cb5ee952d54bee"]
current_epoch = int((int(time.time()) - 1506635071) / (5 * 24 * 60 * 60))
maximum_epoch = 10000
epochs = [random.randint(current_epoch + 2, maximum_epoch) for _ in range(number)]
Expand Down
Loading