Skip to content

Commit

Permalink
Merge pull request #2380 from reeshavacharya/fix/valid-metadata
Browse files Browse the repository at this point in the history
Use valid anchor url, hash and return address in bulk loader
  • Loading branch information
mesudip authored Nov 19, 2024
2 parents 42da931 + f91006f commit 377d43b
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 377d43b

Please sign in to comment.