Skip to content

Commit

Permalink
Small update of the donations contract for the Morocco relied initiative
Browse files Browse the repository at this point in the history
  • Loading branch information
jagracar committed Sep 10, 2023
1 parent 8118b21 commit c554149
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions metadata/donations.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "Tezos for Iran donations contract",
"description": "This contract distributes funds for the Tezos for Iran donation campaing",
"name": "TezQuakeAid donation address for Morocco",
"description": "This address is set up to gather donations towards earthquake relief for Morroco in 2023. The Funds are managed by the TezQuakeAid multisig. Any donations received at this address after the conclusion of the Morocco relief event might be redirected to support other global emergency response initiatives.",
"version": "1.0.0",
"license": {
"name": "MIT",
"details": "The MIT License"
},
"source": {
"tools": ["SmartPy 0.14.0"],
"tools": ["SmartPy 0.16.0"],
"location": "https://github.com/teia-community/teia-smart-contracts/blob/main/python/contracts/donations.py"
}
}
10 changes: 6 additions & 4 deletions python/contracts/donations.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Donations(sp.Contract):
# The percentage per mile of the funds to donate
pct=sp.TNat))

def __init__(self, administrator, metadata, oXTZ):
def __init__(self, administrator, splits, metadata, oXTZ):
"""Initializes the contract.
"""
Expand All @@ -38,7 +38,7 @@ def __init__(self, administrator, metadata, oXTZ):
administrator=administrator,
metadata=metadata,
oXTZ=oXTZ,
splits=sp.list([]),
splits=splits,
proposed_administrator=sp.none))

def check_is_administrator(self):
Expand Down Expand Up @@ -261,6 +261,8 @@ def accept_administrator(self):


sp.add_compilation_target("donations", Donations(
administrator=sp.address("tz1RssrimWo3B8TpCajiNjqBD3MfhUwEgxod"),
metadata=sp.utils.metadata_of_url("ipfs://bafkreicrnzzdn3v6fgvvtmpjr2op3x6qn2cgitktgxwxp4ezqmj2hqu3ry"),
administrator=sp.address("KT1X1jyohFrZyDYWvCPXw9KvWxk2VDwxyg2g"),
splits=sp.list([
sp.record(address=sp.address("KT1X1jyohFrZyDYWvCPXw9KvWxk2VDwxyg2g"), pct=1000)]),
metadata=sp.utils.metadata_of_url("ipfs://QmNhK9euaEqU8vo81VRnQzSvPDbbnaTunbokczcziuzCZx"),
oXTZ=sp.address("KT1TjnZYs5CGLbmV6yuW169P8Pnr9BiVwwjz")))

0 comments on commit c554149

Please sign in to comment.