Skip to content

Commit

Permalink
commit setTierTimeMultisig, updateWaitedTSMultisig
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshowlett977 committed Aug 26, 2021
1 parent fba44fc commit 88f6252
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions scripts/origins/deployLockedFund.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,23 @@ def updateWaitedTS():
lockedFund.changeWaitedTS(values['waitedTimestamp'])
print("Updated Waited Timestamp as", values['waitedTimestamp'], "of LockedFund...\n")

# =========================================================================================================================================
def updateWaitedTSMultisig():
values['waitedTimestamp'] = 1630173600

lockedFund = Contract.from_abi("LockedFund", address=values['lockedFund'], abi=LockedFund.abi, owner=acct)
print("\nUpdating Waited Timestamp of LockedFund...\n")

data = lockedFund.changeWaitedTS.encode_input(values['waitedTimestamp'])
print(data)

multisig = Contract.from_abi("MultiSig", address=contracts['multisig'], abi=MultiSigWallet.abi, owner=acct)
tx = multisig.submitTransaction(lockedFund.address,0,data)
txId = tx.events["Submission"]["transactionId"]
print(txId)

print("Updated Waited Timestamp as", values['waitedTimestamp'], "of LockedFund...\n")

# =========================================================================================================================================
def writeToJSON():
if thisNetwork == "development":
Expand Down
17 changes: 17 additions & 0 deletions scripts/origins/deployOrigins.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,23 @@ def setTierTime():
print("Tier Time Updated.")

# =========================================================================================================================================
def setTierTimeMultisig():
tierID = 2
values['tiers'][tierID]['saleStartTimestamp'] = 1630000800
values['tiers'][tierID]['saleEnd'] = 1630087200
values['tiers'][tierID]['saleEndDurationOrTimestamp'] = 2

origins = Contract.from_abi("OriginsBase", address=values['origins'], abi=OriginsBase.abi, owner=acct)
data = origins.setTierTime.encode_input(tierID, values['tiers'][tierID]['saleStartTimestamp'], values['tiers'][tierID]['saleEnd'], values['tiers'][tierID]['saleEndDurationOrTimestamp'])
print(data)

multisig = Contract.from_abi("MultiSig", address=contracts['multisig'], abi=MultiSigWallet.abi, owner=acct)
tx = multisig.submitTransaction(origins.address,0,data)
txId = tx.events["Submission"]["transactionId"]
print(txId)

# =========================================================================================================================================

def buyTokens():
origins = Contract.from_abi("OriginsBase", address=values['origins'], abi=OriginsBase.abi, owner=acct)
tierID = readTier("buy tokens in")
Expand Down

0 comments on commit 88f6252

Please sign in to comment.