diff --git a/packages/contracts/README.md b/packages/contracts/README.md index abeeedc..4848908 100644 --- a/packages/contracts/README.md +++ b/packages/contracts/README.md @@ -1,16 +1,16 @@ # Proownas DAO Contract --- + ## What is Proownas - Proownas is a community of real-estate owners. The goal is to allow an economy where real-estate owners can mutually benefit from the propoerties they own. It will allow owners to earn more from their properties and also have access to more properties without having to pay for them. We do this by minting real-world real-estate assets into NFTs. ---- +## Proownas is a community of real-estate owners. The goal is to allow an economy where real-estate owners can mutually benefit from the propoerties they own. It will allow owners to earn more from their properties and also have access to more properties without having to pay for them. We do this by minting real-world real-estate assets into NFTs. --- + ## What does Proownas DAO do? -The purpose of the DAO is to collectively make decisions on properties, membership, values. Initially, the DAO is made up of few members who own all the propoerties. These members are able to review the qualifications of a new member. The DAO is tasked to verify that new member is real and can be located in the real world. To verify the existence of the properties described in the proposal and also confirm ownership of it. The DAO is also responsible minting new assets on-chain. ---- +## The purpose of the DAO is to collectively make decisions on properties, membership, values. Initially, the DAO is made up of few members who own all the propoerties. These members are able to review the qualifications of a new member. The DAO is tasked to verify that new member is real and can be located in the real world. To verify the existence of the properties described in the proposal and also confirm ownership of it. The DAO is also responsible minting new assets on-chain. ### Responsibilities @@ -22,7 +22,6 @@ The purpose of the DAO is to collectively make decisions on properties, membersh - Determine the value of NFT (linked to the real-world asset.) and also - Decide on the reward percentage and earning ratio - ## Contracts ### The DAO @@ -45,17 +44,15 @@ When a proposal has been reviewed and the DAO is ready to accept votes on it, ne Once the voting period is over, call the `close_voting_period` message. This message will try to conclude the voting and based on the Vote results, update the ProposalStatus to Approved or Pending -For now, the possible proposals are only for joining the DAO (Submitting a new asset). When the proposal is approved, we can the execute the `create_proposal_asset` message to mint a new asset on-chain. +For now, the possible proposals are only for joining the DAO (Submitting a new asset). When the proposal is approved, we can the execute the `create_proposal_asset` message to mint a new asset on-chain. For this to be successful, the DAO must have added default asets and update the storage to `has_set_default_assets=true`. A very important aspect of the DAO contract is the token_contract storage. This must be updated before minting can be possible. - ### The NFT Wizard Contract -This is the powerhouse PSP34 token contract that manages the minting and burning of Synthetic assets on-chain. This is based heavily on the (PSP34 specifications)[https://openbrush.brushfam.io/] with some modifications. The NFT Wizard is going to be owned by the (DAO Contract)[file://./dao/lib.rs]. This can be done by calling the transfer_ownership message that exists on the Ownable contract. This can be called, naturally by a Multisig, by anyone in the DAO (for simplicity).This contract implements the necessary contracts such as +This is the powerhouse PSP34 token contract that manages the minting and burning of Synthetic assets on-chain. This is based heavily on the (PSP34 specifications)[https://openbrush.brushfam.io/] with some modifications. The NFT Wizard is going to be owned by the (DAO Contract)[file://./dao/lib.rs]. This can be done by calling the transfer_ownership message that exists on the Ownable contract. This can be called, naturally by a Multisig, by anyone in the DAO (for simplicity).This contract implements the necessary contracts such as `PSP34, PSP34Mintable, Ownable, PSP34Metadata, PSP34Enumerable`. - ### The Multisig contract -The multisig is borrowed from the list of ink-examples, the multisig contract. Refer to the (Multisig contract example)[https://github.com/paritytech/ink-examples/blob/main/multisig/lib.rs] by the parity tea. This Multisig is based totally on it with adjustment to the retrieve_owners function. \ No newline at end of file +The multisig is borrowed from the list of ink-examples, the multisig contract. Refer to the (Multisig contract example)[https://github.com/paritytech/ink-examples/blob/main/multisig/lib.rs] by the parity tea. This Multisig is based totally on it with adjustment to the retrieve_owners function. diff --git a/packages/contracts/deployments/dao/dao.contract b/packages/contracts/deployments/dao/dao.contract index a628f55..03bcb3f 100644 --- a/packages/contracts/deployments/dao/dao.contract +++ b/packages/contracts/deployments/dao/dao.contract @@ -1 +1 @@ -{"source":{"hash":"0x8d86c172a07874fbff8f638f318cd1d65987d95f97a420931eeba6a0bac1710a","language":"ink! 4.3.0","compiler":"rustc 1.69.0","wasm":"0x0061736d0100000001550e60027f7f0060037f7f7f0060017f0060037e7e7f0060037f7f7f017f60037f7e7e0060047f7f7f7f017f60047f7f7f7f0060017f017f6000017f60000060087f7f7e7f7f7f7f7f017f60027e7f0060027f7f017f02d3010b057365616c310b6765745f73746f726167650006057365616c300c626c6f636b5f6e756d6265720000057365616c301176616c75655f7472616e736665727265640000057365616c310463616c6c000b057365616c3005696e7075740000057365616c300663616c6c65720000057365616c300f686173685f626c616b65325f3235360001057365616c300d6465706f7369745f6576656e740007057365616c320b7365745f73746f726167650006057365616c300b7365616c5f72657475726e000103656e76066d656d6f727902010210033938040000040500030000000005000003000300010200080200010c0009020900010101000107010102010300000200000800020a0d0401050a0608017f01418080040b0711020463616c6c003c066465706c6f7900410aae8a01382b01017f037f2002200346047f200005200020036a200120036a2d00003a0000200341016a21030c010b0b0bdb0201047f230041206b22022400200241086a2001100c41012104024020022d00084101710d000240024002400240024020022d0009220341037141016b0e03030201000b200341fc01714102762101410021040c040b200341034b0d0320012802042203410449047f4101052001200341046b36020420012001280200220341046a3602002003280000210341000b2105200220033602042002200536020020022802000d03200228020422014180808080044921040c030b200220033a0015200241013a0014200220013602102002410036021c200241106a2002411c6a4104100d450d010c020b200220033a0015200241013a001420022001360210200241003b011c200241106a2002411c6a4102100d0d0120022f011c220341ff014d0d0120034102762101410021040c010b200228021c220141808004492104200141027621010b2000200136020420002004360200200241206a24000b3c01017f200020012802042202047f2001200241016b36020420012001280200220141016a36020020012d00000520010b3a000120002002453a00000b900101027f20002f01042103200041003a0004410121040240024020034101710440200120034108763a0000200028020022002802042203200241016b2202490d02200141016a200028020022012002100a1a0c010b2000280200220028020422032002490d012001200028020022012002100a1a0b2000200320026b3602042000200120026a360200410021040b20040bff0402077f017e230041f0006b22032400200342808001370244200341ec800436024041f498e88805200341406b2204100f200120022004101002402003280244220620032802482204490d00200328024021052003200620046b220736024020052004200420056a2206200341406b10002104200720032802402205490d00024002400240410c20042004410c4f1b0e0400030301030b2005450d02200541016b41044920062d0000220741034b72200541056b410449200541096b41204972720d02200641016a2204280000210620042800042109200341c8006a200441116a290000370300200341d0006a200441196a290000370300200341d7006a200441206a29000037000020032004290009370340200541296b4108490d0220042d000821082003200541316b36023c2003200441306a36023820042900282102200341186a200341386a1011200328021c450d02200341e8006a2204200341206a220528020036020020032003290318370360200328023c4110490d022005200341c8006a290300370300200341286a200341d0006a2903003703002003412f6a200341d7006a290000370000200341106a200428020036020020032003290340370318200320032903603703082003280238220441086a29000021012004290000210a0c010b410421070b2000200a370320200020083a0000200020032903183700012000200936023c200020063602382000200237033020002003290308370340200020073a004c200041286a2001370300200041096a200341206a290300370000200041116a200341286a290300370000200041186a2003412f6a290000370000200041c8006a200341106a280200360200200341f0006a24000f0b000b2601017f230041106b220224002002200036020c20012002410c6a41041022200241106a24000b2a01017f230041106b2203240020032001370308200320003703002002200341101022200341106a24000ba30101067f230041106b22022400200241086a2001100b024020022802084504400240200228020c220320012802044b0d002002200341011030200128020422042003490d00200228020021052002280204200128020022062003100a21072001200420036b3602042001200320066a3602002000200336020820002007360204200020053602000c020b200041003602040c010b200041003602040b200241106a24000be60101067f230041206b22022400200242808001370214200241ec8004360210418fe8a8b479200241106a2203100f20012003101302402002280214220320022802182201490d00200228021021042002200320016b220336021020042001200120046a2205200241106a10002101200320022802102206490d004100210402400240410c20012001410c4f1b0e0400020201020b2002200636020c20022005360208200241106a200241086a101420022802142204450d0120022802182103200228021021070b200020033602082000200436020420002007360200200241206a24000f0b000b0a0020012000412010220bb60101077f230041106b22022400200241086a2001100b024020022802084504400240200228020c220341ffffffff00712003470d002003410474220420012802044b0d00200220034101102a200128020422052004490d00200228020021062002280204200128020022072004100a21082001200520046b3602042001200420076a3602002000200336020820002008360204200020063602000c020b200041003602040c010b200041003602040b200241106a24000bf80202087f037e230041406a22032400200342808001370234200341ec8004360230419ddae08a7c200341306a2204100f200120022004101002402003280234220520032802382204490d00200328023021062003200520046b220536023020062004200420066a2207200341306a10002104200520032802302208490d004202210202400240410c20042004410c4f1b0e0400020201020b2003200836022c20032007360228200341306a200341286a101620032802342206450d012003280238210520032802302109200341186a200341286a1017200329031822024202510d012003290320210b200341086a200341286a1017200329030822014202510d01200328022c4104492002420351720d012003290310210d200b42ff0183210c200b42807e83210b2003280228280000210a0b2000200536022c20002006360228200020093602242000200a3602202000200d37031820002001370310200020023703002000200b200c84370308200341406b24000f0b000bf20101037f230041406a22022400200241086a2001100b024002402002280208450440200241106a20012802044105762203200228020c220420032004491b1028200404400340200128020422034120490d032001200341206b36020420012001280200220341206a360200200241286a200341086a290000370300200241306a200341106a290000370300200241386a200341186a29000037030020022003290000370320200241106a200241206a102c200441016b22040d000b0b20002002290310370200200041086a200241186a2802003602000c020b200041003602040c010b200041003602040b200241406b24000bb40102037f027e230041206b22022400200241186a2001100c42022105024020022d00184101710d00420021050240024020022d00190e020201000b420221050c010b200241086a210320012802042204410849047e4201052001200441086b36020420012001280200220141086a3602002001290000210542000b210620032005370308200320063703004202420120022802081b2105200229031021060b2000200637030820002005370300200241206a24000b930101047f230041106b22032400200342808001370204200341ec8004360200419ddae08a7c2003100f200020012003101002402003280204220620032802082204490d0020032802002105200341003602082003200620046b3602042003200420056a3602002002200310192003280208220220032802044b0d00200520042003280200200210081a200341106a24000f0b000b4400200041286a2802002000412c6a280200200110292000290300200041086a29030020011033200041106a290300200041186a2903002001103320002802202001100f0b930101047f230041106b22032400200342808001370204200341ec800436020041f498e888052003100f200020012003101002402003280204220620032802082204490d0020032802002105200341003602082003200620046b3602042003200420056a36020020022003101b2003280208220220032802044b0d00200520042003280200200210081a200341106a24000f0b000b5300200120002d004c102120002802382001100f200028023c2001100f200020011013200029033020011023200041c4006a280200200041c8006a2802002001102f2000290320200041286a290300200110100bb00101077f230041206b2203240020004200370000200041186a22044200370000200041106a22054200370000200041086a220642003700000240200241214f0440200341186a22074200370300200341106a22084200370300200341086a22094200370300200342003703002001200220031006200420072903003700002005200829030037000020062009290300370000200020032903003700000c010b200020012002100a1a0b200341206a24000b6f01047f230041106b2201240002402000280204220420002802082202490d0020002802002103200141003602082001200420026b3602042001200220036a36020041022001101e2002200220012802086a22024b0d002000200336020020002002360208200141106a24000f0b000b7401017f230041106b2202240002402000413f4d04402001200041027410210c010b200041ffff004d0440200220004102744101723b010e20012002410e6a410210220c010b200041ffffffff034d044020004102744102722001100f0c010b20014103102120002001100f0b200241106a24000b3301027f230041106b22012400200141086a2000100c20012d0009210020012d0008200141106a2400410171452000410146710b08002000410110210b2d01017f2000280208220220002802044904402000200241016a360208200028020020026a20013a00000f0b000b4801027f024002402000280208220320026a22042003490d00200420002802044b0d00200420036b2002470d01200028020020036a20012002100a1a200020043602080f0b000b000b2601017f230041106b22022400200220003703082001200241086a41081022200241106a24000b2601017f230041106b22022400200220003a000f20012002410f6a41011022200241106a24000b3301027f230041106b22002400200041003602082000410436020c200041086a2000410c6a10012000280208200041106a24000b6d01017f230041106b2201240020014180800136020c41ec80042001410c6a1005200041ed8004290000370001200041096a41f58004290000370000200041116a41fd8004290000370000200041186a41848104290000370000200041ec80042d00003a0000200141106a24000b5502027f027e230041206b22002400200041106a22014200370300200042003703082000411036021c200041086a2000411c6a10022001290300210220002903082103200041206a2400410541042002200384501b0b6c01027f230041106b2203240002402001450440410121020c010b0240200141ffffff1f4b0d00200141057422024100480d00200341086a20022001418080802049102b200328020822020d010b000b200041003602082000200236020420002001360200200341106a24000b2d0020012002101e20010440200141057421010340200020021013200041206a2100200141206b22010d000b0b0b850101037f230041106b2203240002402001450440410821020c010b0240200141ffffff3f4b0d00200141047422044100480d00200141808080c000494103742105027f2002450440200341086a20042005102b20032802080c010b200320042005102d20032802000b22020d010b000b2000200236020420002001360200200341106a24000b3701017f230041106b22032400200341086a20012002102d200328020c21012000200328020836020020002001360204200341106a24000ba90201057f200028020822032000280200460440230041206b2202240002400240200341016a2204450d002000280200220320036a22052003490d0041042005200420042005491b2204200441044d1b22044105742105200441808080204921060240200304402002410136021820022003410574360214200220002802043602100c010b200241003602180b200220052006200241106a102e2002280200450d01200241086a2802001a0b000b200228020421032000200436020020002003360204200241206a2400200028020821030b200028020420034105746a22022001290000370000200241086a200141086a290000370000200241106a200141106a290000370000200241186a200141186a290000370000200341016a2201450440000b200020013602080bca0101037f20010440027f2001200120026a41016b410020026b7122054d0440024041e48004280200220220056a22042002490d0041e88004280200200449044041002005200541ffff036a22034b0d031a4100200341107640002202417f460d031a41002002200241ffff0371470d031a41002002411074220220034180807c716a22042002490d031a4100210341e880042004360200200220056a22042002490d010b41e480042004360200200221030b20030c010b000b21020b20002001360204200020023602000bfd0201077f230041106b220624002000027f0240027f02400240200204400240200141004e044020032802080d01200620012002102b2006280200210420062802040c050b200041086a41003602000c050b20032802042209450440200641086a20012002102d20062802082104200628020c0c040b200120026a41016b410020026b7122082001490d01200141e48004280200220720086a22052007490d031a2003280200210a41e880042802002005490440200841ffff036a22052008490d03200541107640002203417f46200341ffff0371200347720d032003411074220720054180807c716a22032007490d0341e8800420033602002001200720086a22052007490d041a0b41e48004200536020020012007450d031a2007200a2009100a210420010c030b20002001360204200041086a41003602000c030b000b20010b21052004044020002004360204200041086a200536020041000c020b20002001360204200041086a20023602000b41010b360200200641106a24000b100020012002101e20022000200110220b6801027f230041106b2203240002402001450440410121020c010b200141004e22040440027f2002450440200341086a20012004102b20032802080c010b200320012004102d20032802000b22020d010b000b2000200236020420002001360200200341106a24000bab0701077f230041b0016b220224002002200041e000100a220041ec80043602602000428080013702640240027f2000290300500440200041e0006a101d2000280264220120002802682202490d022000280260210320004100360288012000200120026b2205360284012000200220036a22063602800141d88004410020004180016a2204102f2004418080044114102220002802880122042000280284014b0d0220004180016a22072000280280012004101c200041003602a801200020053602a401200020063602a0012007200041a0016a10132002200220002802a8016a22024b0d022000200236027820002001360274200020033602702000200041086a360288012000411b3602840120004194800436028001200041a0016a200041f0006a20004180016a103220002802a401220120002802a8012202490d02200120026b0c010b200041e0006a101d2000280264220120002802682202490d012000280260210320004100360288012000200120026b2205360284012000200220036a22063602800141d88004410020004180016a2204102f200441af80044110102220002802880122042000280284014b0d0120004180016a22072000280280012004101c200041003602a801200020053602a401200020063602a0012007200041a0016a10132002200220002802a8016a22024b0d012000200236027820002001360274200020033602702000200041086a360288012000411736028401200041bf800436028001200041a0016a200041f0006a20004180016a103220002802a401220120002802a8012202490d01200120026b0b210120002802a001210320002001360284012000200220036a220536028001024020002903005004402001450d02200541003a00002000410136028801200041086a20004180016a22011013200041406b280200200041c4006a2802002001102f200041386a2802002001100f200041286a290300200041306a290300200110100c010b2001450d01200541013a00002000410136028801200041086a20004180016a22011013200041d8006a2802002001100f20002802880122012000280284014f0d0120002802800120016a200041dc006a2d00003a00002000200141016a36028801200041286a290300200041306a29030020004180016a22011010200041386a290300200041406b29030020011033200041c8006a290300200041d0006a290300200110330b20002802880122012000280284014b0d002003200220002802800120011007200041b0016a24000f0b000bd10101047f230041306b2203240002402001280204220520012802082204490d0020012802002106200341003602082003200520046b22053602042003200420066a2206360200200228020020022802042003102f2002280208200310132003280208220220032802044b0d00200320032802002002101c2003410036022820032005360224200320063602202003200341206a1013200420032802286a22022004490d00200141086a22042002360200200041086a200428020036020020002001290200370200200341306a24000f0b000b1b0020005004402002410010210f0b2002410110212001200210230b6801017f230041106b22022400200241808001360204200241ec800436020002402001450440410121012002410136020841ec800441003a00000c010b41ec800441013a000020024101360208200210202002280208220141818001490d00000b20002001103a000b400041ec800441003a00002000027f200141ff0171410746044041ed800441003a000041020c010b41ee800420013a000041ed800441013a000041030b103a000bb50101047f230041106b22012400200142808001370204200141ec800436020041002001100f02402001280204220420012802082202490d0020012802002103200141003602082001200420026b3602042001200220036a3602002000290320200041286a29030020011010200041346a280200200041386a2802002001102920002001101320002d003c200110242001280208220020012802044b0d00200320022001280200200010081a200141106a24000f0b000b8c0402077f017e230041e0006b22022400200241086a220320014138100a1a200241c8006a200141406b28020036020020022001280244220536024c2002200129033837034020022903382109200242808001370254200241ec80043602502003200241d0006a101302402000027f024002402002280254220320022802582201490d0020022802502106200241003602582002200320016b3602542002200120066a3602502002290328200241306a290300200241d0006a10102002280254220120022802582203490d00200120036b21012002280250220820036a210341d880042107200541ffff0371450440200241003602582002200136025420022003360250200241c8006a200241d0006a22031038200241c4006a280200200310132002280240220141046a280200200141086a2802002003102f2002280254220120022802582204490d012002280250220720046a2103200120046b21010b2002200136025020051039200620092008200720042003200241d0006a10032104200120022802502205490d0002400240410c20042004410c4f1b2201410d714504402005450d022002200541016b3602542002200341016a36025020032d000022010e020401020b2000200141d780046a2d00003a000141010c040b41012101200241d0006a101f0d020b200041013b01000c030b000b2000200136020441000b3a00000b200241e0006a24000b0a0020012000410410220b220020004115764108712000410e76410471200041077641027120004101717272720b0d00200041ec800420011009000b2e01017f230041e0006b22012400200141086a200041c000100a1a2001420037030020011031200141e0006a24000bb54402137f077e23004190036b22002400024002400240024002400240102741ff01714105470d002000418080013602e00141ec8004200041e0016a100420002802e0012206418180014f0d000240027e0240024020064104490d00200041f080043602302000200641046b220436023441ec80042802002201411876210220014110762105200141087621030240027f0240024002400240024002400240024002400240024002400240024002400240200141ff0171220141a7016b0e080212011212120904000b02400240200141f2006b0e06011313061308000b2001411d460d032001412f460d082001413b460d06200141e300460d0c2001418101460d0d2001419501460d0b2001419d01460d0a200141d60147200341ff0171418f014772200541ff0171419f0147200241e1004772722004411049720d1220004180810436023041f880042902002213422088a7210441f080042902002216422088a721012013a721072016a72103410221020c130b200341ff01712206419801460d0e200641ee0147200541ff017141c6004772200241c20147720d11410f21020c100b200341ff017141b60147200541ff0171411047722002419b0147720d10200041e0016a200041306a101120002802e4012204450d10200028023422014108490d1020002000280230220341086a3602302000200141086b220136023420014104490d102003290000211420002000280230220141046a360230200020143c008001200020144208883e008101200020144238883c008701200020144228883d00850120003502e801200135000042208684221542807e8321132014422088a7210120002802e00121074101210220002802800121030c130b200341ff0171410747200541ff0171412947722002413847200441104972720d0f20004180810436023020064114460d0f418081042d0000220241014b0d0f41f880042902002215422088a7210441f080042902002216422088a721012015a721072016a721032002410047ad2115410321020c120b200341ff017141c40047200541ff01714190014772200241cb0147200441104972720d0e20004180810436023041f880042902002213422088a7210441f080042902002216422088a721012013a721072016a72103410421020c0f0b200341ff0171411a47200541ff017141184772200241d90147200441104972720d0d200041808104360230200641146b4120490d0d41f88004290200211641808104290200221542807e832113200041f080042902002218370380012018422088a721012016422088a721044198810429020021194190810429020021174188810429020021142018a721032016a72107410521020c100b200341ff0171411547200541ff017141840147720d0c2002418e01460d080c0c0b200341ff017141d60147200541ff017141cb0047722002419d0147200441104972720d0b2000418081043602302000200641146b360234200041f0800429020022133703800141f880042902002216422088a721042013422088a721012016a721072013a72103410721020c0c0b200341ff017141cf0047200541ff0171418101477220024182014720044120497272200641246b411049720d0a41888104290200211441808104290200211541fc8004280200210441f88004280200210741f48004280200210141f080042802002103200041a08104360230200020013602840120002003360280012000200641346b360234201542807e832113419881042902002119419081042902002117410821020c0d0b200341ff017141c30147200541ff017141cf014772200241ae0147200441204972720d092000419081043602302000200641246b360234200041fb8004280000220136028401200041f7800428000022033602800141878104290000221542807e83211341f480042f010041f680042d000041107472210b418f8104310000211441838104280000210441ff8004280000210741f380042d0000210841f180042f0000210d41f080042d0000210e410921020c0c0b200341ff017141ca0047200541ff017141394772200241ff0047720d08410a21020c070b200341ff017141880147200541ff017141034772200241d90047200441104972720d072000418081043602302000200641146b360234200041f0800429020022133703800141f880042902002216422088a721042013422088a721012016a721072013a72103410b21020c080b200341ff017141f50047200541ff01714193014772200241ef0047200441104972720d062000418081043602302000200641146b360234200041f0800429020022133703800141f880042902002216422088a721042013422088a721012016a721072013a72103410c21020c070b200341ff017141920147200541ff0171419f014772200241bf0147720d05410d21020c040b200341ff0171413447200541ff017141ca004772200241d80047200441104972720d042000418081043602302000200641146b360234200041f0800429020022133703800141f880042902002216422088a721042013422088a721012016a721072013a72103410e21020c050b200041e0016a200041306a101120002802e4012203450d03200020002802e801220136028401200020033602800120002f00e10120002d00e30141107472210b20002d00e001210841060c010b200541ff017141d50147200241920147720d02200041286a200041306a100b20002802280d02410421032000280234410c6e2201200028022c220520012005491b22080440200841abd5aad5004f0d07200041206a2008410c6c4104102b20002802202203450d070b41002101200041003602c802200020033602c402200020083602c0022005047f0340200041e0016a200041306a101120002802e4012209450d0420002802e801210420002802e001210b20002802c002200146047f200041c0026a2102230041206b2203240002400240200141016a2206450d002002280200220120016a22082001490d0041042008200620062008491b2206200641044d1b2206410c6c2108200641abd5aad50049410274210a0240200104402003410436021820032001410c6c360214200320022802043602100c010b200341003602180b20032008200a200341106a102e2003280200450d01200341086a2802001a0b000b200328020421012002200636020020022001360204200341206a240020002802c402210320002802c8020520010b410c6c20036a22012004360208200120093602042001200b36020020002802c80241016a2201450d08200020013602c802200541016b22050d000b20002802c402210320002d00c002210820002f00c10220002d00c302411074720520084108760b210b2003450d0241000b21020c040b42000c020b410141011034000b42000b21130b2000428080013702e401200041ec80043602e0014100200041e0016a100f20002802e401220920002802e8012205490d0020002802e00121062000200920056b220a3602e00120062005200520066a2205200041e0016a10002106200a20002802e001220949410c20062006410c4f1b722009411049720d002000200941106b360284012000200541106a36028001200541086a290000211620052900002118200041c0026a20004180016a101620002802c4022205450d00200028028401220a4120490d0020002802c802210620002802c002210f200041e8016a200028028001220941096a290000370300200041f0016a200941116a290000370300200041f7016a200941186a290000370000200020092900013703e001200a4120460d0020092d0020220c41024f0d002015a7210a20092d00002110200041396a200041e8016a2209290300370000200041c1006a200041f0016a2211290300370000200041c8006a2212200041f7016a290000370000200041d8006a201637030020002006360268200020053602642000200f360260200020002903e001370031200020183703502000200c3a006c200020103a003002400240027f02400240024002400240024002400240027f02400240027f0240024002400240024002400240024002400240024002400240024002400240200241016b0e0f010203040506070809110a0b0e0c0d000b200041f8016a42003703002011420037030020094200370300200042003703e001200041306a200041e0016a103d0d1e2001450d14027f200328020422054504404107210441000c010b2001410c6c410c6b21020340200020053602c402200020032802083602c802200020032802003602c002200041e0016a2201102641042104200041306a2001200041c0026a103e22010440200041013a006c410721040b200204402002410c6b2102200341106a2003410c6a210328020022050d010b0b20014101730b41012102450d150c210b20002013420888a722023b0079200041fb006a20024110763a00002000200a3a007820002007ad2004ad42208684370370200c450d1d200028027841044d0d1d200041e0016a200041306a200041f0006a103f20002d00e0010d1d20004180016a1026201842017c2214201854220220162002ad7c2215201654201420185a1b4101460d1d200041e0016a20004180016a101220002802e40145044041002102200041003602c8012000428080808080013703c0010c1c0b200041c8016a200041e8016a2802002202360200200020002903e00122173703c00120022017a7460d1b0c1c0b200041c0016a102620182003ad2001ad4220868422155420162007ad2004ad4220868422145420142016511b0d1c200041c0026a20152014100e20002d008c034104460d18200041e0016a200041c0026a41d000100a1a20002d00ac020d1c20004280800137028401200041ec800436028001418fe8a8b47920004180016a2201100f200041c0016a2001101320002802840122022000280288012201490d1c20002802800121032000200220016b22023602800120032001200120036a220320004180016a100021012002200028028001220449410c20012001410c4f1b720d1c200020043602742000200336027020004180016a200041f0006a10142000280284012202450d1c200028028801410474210103402001450d192002290300200241086a2103200141106b2101200241106a210220158520032903002014858450450d000b200041013a00ac0220152014200041e0016a2201101a4100210210252103200041ac016a410036020020004198016a2204420037030020004280808080103702a401200020033602a0012000420137039001200042003703880120004201370380012015201420004180016a220310182004200041d8016a29030037030020004190016a200041d0016a29030037030020004188016a200041c8016a290300370300200041bc016a200041a8026a280200360200200020002903c00137038001200020002903a0023702b40110252104200041a8016a2014370300200020153703a001200020043602b0012003103b2001200041306a41c000100a1a2001103641070c190b200041c0016a102610252105200041e0016a2003ad2001ad4220868422152007ad2004ad422086842213100e20002d00ac0222014104460d1b200028029c022103200041e0016a201520131015200141014720002903e001420251720d1b200028028002220120036a2203200149200320054d720d1b200041e0016a20152013101520002903e0014202510d1b20004180016a200041e0016a4130100a1a200041ac016a2802004105742102200041a4016a2103200041a8016a2802002101034020020440200241206b21022001200041c0016a103d200141206a2101450d010c1d0b0b200041f8016a200041d8016a290300370300200041f0016a200041d0016a290300370300200041e8016a200041c8016a290300370300200020002903c0013703e0012003200041e0016a102c200a41ff01710440420121142000290390015045044020004198016a29030042017c2214500d1d0b200029038001500d1c20002903880121170c170b4201211720002903800150450d140c150b200041c0026a2003ad2001ad4220868422142007ad2004ad422086842215104041022102027f20002d008c034104470440200041e0016a200041c0026a41d000100a1a20002d00ac02410146044020004180016a20142015101520002903800122134202510d1d20002802a0012201200028029c026a22032001490d1d200029038801211720002802ac012202410449102520034d720d1d230041106b220124002001420020172013501b221342ffffffff0f834290ce007e221720134220884290ce007e22134220867c221637030020012016201754ad20134220887c37030820012903002113200041106a2203200141086a29030037030820032013370300200141106a2400200029031850450d1d20004103410220002903102002ad42e4007e8042c100541b3a00ac0220142015200041e0016a2201101a2001200041306a41c000100a1a200110364107210241000c020b410621020b41010b20021035000b20004198016a2019370300200020173703900120002014370388012000201542ff018320138437038001200041e0016a20004180016a101220002802e4012202450d192007ad2004ad4220868421142003ad2001ad42208684211520002802e801410474210103402001220304402002290300200241086a2104200341106b2101200241106a21022015852004290300201485844200520d010b0b200041e0016a20152014100e20002d00ac0222014104460d19200041c0026a200041e0016a41cc00100a1a2003452001410247720d19200041c8016a20004188036a28020036020020002000290380033703c001200041f8016a20004198016a290300370300200041f0016a20004190016a290300370300200041e8016a20004188016a29030037030020002000290380013703e00141042102200041306a200041e0016a200041c0016a103e22010d0e0c110b200041cc016a2001360200200041c8016a20033602002000200841ff0171200b410874723602c4012000200041306a22013602c001200041c0026a2001200041c0016a4104722201103f024020002d00c002450d0020004198016a200041d9026a29000037030020004190016a200041d1026a29000037030020004188016a200041c9026a290000370300200020002900c10237038001200041f8016a200041c8006a290300370300200041f0016a200041406b290300370300200041e8016a200041386a29030037030020004188026a420037030020004190026a4200370300200041a0026a42eaaee2c803370300200020002903303703e00120004200370380022000419c026a20004180016a3602002000200136029802200041f0006a200041e0016a103720002d00700d002000280274450d0c0b4101210241050c0c0b230041306b2202240020022003ad2001ad422086842007ad2004ad42208684101520022903004202510440000b200041c0026a220320024130100a1a200241306a2400200041e0016a220120034130100a1a230041106b22032400200341808001360204200341ec80043602000240200129030042025204402003410136020841ec800441003a00002001200310190c010b41ec800441013a000020034101360208200310200b20032802082201418180014f0440000b41002001103a000b20004188026a20193703002000201737038002200020143703f801200020013602e401200020033602e0012000201542ff01832013843703f00120002007ad2004ad422086843703e801027f230041306b22022400200041e0016a220141286a290300211420012903202115200241186a200141186a290000370300200241106a200141106a290000370300200241086a200141086a29000037030020022001290000370300200241206a200210122002280224220004402002280228410474210103402001220304402000290300200041086a2104200341106b2101200041106a21002015852004290300201485844200520d010b0b200241306a240020034100470c010b000b230041106b22012400200141ec800436020041ec800441003a00002001428080818010370204200110240c1b0b200020143c004f2000200136003b200020033600372000200d3b00312000200e3a00302000201542ff01832013843700472000200841ff0171200b4108747236003320002007ad2004ad4220868437003f200041e0016a2201200041306a41c000100a1a20011036410041001034000b200041c0026a22022003ad2001ad422086842007ad2004ad42208684104020002d008c03200041e0016a2201200241d000100a1a410446230041106b22032400200341808001360204200341ec800436020002400240024020012d004c2202410547044041ec800441003a000020024104460d022003410236020841ed800441003a000020012003101b0c010b41ec800441013a000020034101360208200310200b2003280208220141818001490d01000b41ed800441013a000041ee800420012d00003a000041032101200341033602080b2001103a000b200041e0016a2003ad2001ad422086842007ad2004ad42208684100e20002d00ac024104470d03410021024101210341020c040b027f41002102230041d0006b220024001025210520002003ad2001ad4220868422142007ad2004ad422086842215100e024020002d004c4104460d00200028023c2101200020142015101520002903004202520440200520002802202203490d012001200320056b6a22034100200120034f1b21020b200041d0006a240020020c010b000b230041106b22012400200141ec800436020041ec800441003a000020014280808180103702042001100f0c170b230041106b22012400200120061028200128020420052006410574100a1a200041c0026a220341086a20063602002003200636020c20032001290300370200200141106a24002009200041c8026a290300370300200020002903c0023703e001230041106b22012400200141808001360204200141ec80043602000240200041e0016a220341046a280200220004402001410136020841ec800441003a00002000200341086a28020020011029200328020c2001100f0c010b41ec800441013a000020014101360208200110200b0c160b230041106b22012400200141ec800436020041ec800441003a0000200142808081801037020420182016200110100c150b200041c2026a200041a3026a2d00003a0000200020002f00a1023b01c00220002802a802210520002802a402220245210320002d00a0020b2101200041ec016a2005360200200041e8016a2002360200200020002f01c0023b00e501200020013a00e401200041003602e0012000200041c2026a2d00003a00e701230041106b22012400200141808001360204200141ec8004360200024002400240200041e0016a220028020045044041ec800441003a0000200041086a2802002202450d022001410236020841ed800441003a000020022000410c6a2802002001102f0c010b41ec800441013a000020014101360208200110200b2001280208220041818001490d01000b41ed800441013a000041ee800420002d00043a000041032100200141033602080b20032000103a000b200041f9016a2012290300370000200041f1016a200041406b290300370000200041e9016a200041386a290300370000200020002903303700e101200041003a00e001230041106b22012400200141808001360204200141ec80043602000240200041e0016a22032d000045044041ec800441003a000020014101360208200341016a200110130c010b41ec800441013a000020014101360208200110200b0c120b200041e0016a2201200041306a41c000100a1a200110364100210241070b2101200220011035000b200041e0016a2203200041306a41c000100a1a20031036410721020c020b410721040b200041e0016a2201200041306a41c000100a1a20011036410021020c0b0b200141017320021035000b20002903880142017c2217500d060b200029039001500d0520004198016a29030021140b200041ec026a200341086a280200360200200020002802a0013602e002200020143703d802200042013703d002200020173703c802200042013703c002200020032902003702e40220152013200041c0026a101820004190026a201337030020004188026a201537030020004180026a200041d8016a290300370300200041f8016a200041d0016a290300370300200041f0016a200041c8016a290300370300200041bc026a200a3a0000200041b8026a2005360200200041b0026a2014370300200041a8026a4201370300200041a0026a201737030020004198026a4201370300200020002903c0013703e801200042013703e001200041e0016a220110312001200041306a41c000100a1a0c080b4101210241010b2101200220011035000b200041c0016a2107230041206b2204240002400240200241016a2205450d002007280200220220026a22062002490d0041042006200520052006491b2205200541044d1b22054104742106200541808080c0004941037421080240200204402004410836021820042002410474360214200420072802043602100c010b200441003602180b200420062008200441106a102e2004280200450d01200441086a2802001a0b000b200428020421022007200536020020072002360204200441206a240020002802c80121020b20002802c401220420024104746a2207201537030820072014370300200241016a2202450d00200020023602c801200041086a20024100102a200028020c20042002410474100a21052000428080013702e401200041ec80043602e001418fe8a8b479200041e0016a2204100f20004180016a2004101320002802e401220620002802e8012204490d0020002802e0012107200041003602e8012000200620046b3602e4012000200420076a3602e0012002200041e0016a101e200241ffffffff00712002470d00200041e0016a20052002410474102220002802e801220220002802e4014b0d002007200420002802e001200210081a2013422088a7220220026a22042002490d00200041e0006a210710252105200041d8026a220620004198016a290300370300200041d0026a220820004190016a290300370300200041c8026a220920004188016a29030037030020002000290380013703c0022000280274210b20002000280278220241001030200041a4026a2000280204220a360200200020002802003602a002200a200b2002100a1a20004188026a2015370300200041a8026a2002360200200041e8016a2009290300370300200041f0016a2008290300370300200041f8016a2006290300370300200041d8006a20153703002000201437038002200041003a00ac022000200436029c02200020053602980220002001360294022000200336029002200020002903c0023703e0012000201437035020142015200041e0016a101a200028026841057421022000280264210103402002450d02200241206b2102200120004180016a103d200141206a2101450d000b0c020b000b200041d8026a20004198016a290300370300200041d0026a20004190016a290300370300200041c8026a20004188016a29030037030020002000290380013703c0022007200041c0026a102c0b200041d8026a20004198016a290300370300200041d0026a20004190016a290300370300200041c8026a20004188016a29030037030020002000290380013703c00210252101200041e8026a2015370300200041fc026a200041f8006a280200360200200020143703e002200020013602f002200020002903703702f402200041c0026a103b200041e0016a2201200041306a41c000100a1a0c010b200220041035000b20011036410041071035000b20012802082201418180014f0440000b41002001103a000b4601037f027f41202102034041002002450d011a200241016b210220012d0000210320002d00002104200041016a2100200141016a210120032004460d000b200420036b0b450ba10101017f230041d0006b22032400200341306a4200370300200341386a4200370300200341c8006a42ecbeabe90f370300200341c4006a2001360200200341206a200041186a290300370300200341186a200041106a290300370300200341106a200041086a2903003703002003420037032820032002360240200320002903003703082003200341086a1037200328020420032d0000200341d0006a240072450bab0601057f230041a0016b220324002003200236020c200341d8006a4200370300200341e0006a4200370300200341c8006a200141186a290300370300200341406b200141106a290300370300200341386a200141086a290300370300200341003602702003420037035020032003410c6aad42208642ccb78bd608843703682003200129030037033020034280800137027c200341ec8004360278200341306a200341f8006a10130240024002400240200328027c22042003280280012201490d002003280278210220034100360280012003200420016b36027c2003200120026a36027842004200200341f8006a1010200328027c22042003280280012201490d002003280278210620034100360280012003200420016b36027c2003200120066a360278200341e8006a200341f8006a22041038200328020c220141046a280200200141086a2802002004102f200328027c22052003280280012201490d00200328027821042003200520016b22053602784100103920024200200620042001200120046a2201200341f8006a10032102200520032802782207490d00027f02400240410c20022002410c4f1b2202410d714504402007450d022003200741016b220436029c01410121062003200141016a220236029801024020012d000022010e020200030b20034198016a101f450d020c060b200241d780046a2d0000210541020c020b200441204f0d030b4100210541020b21010c030b000b20034180016a2002410f6a29000037030020034188016a200241176a29000037030020034190016a2002411f6a2d00003a0000200320022900073703782002280003210620022f0001210420022d000021050b200341286a20034190016a280200360200200341206a20034188016a290300370300200341186a20034180016a290300370300200320032903783703100b4100210220002001410171200141024672047f410005200020053a0001200041086a2003290310370000200041046a2006360000200041026a20043b0000200041206a200341286a2d00003a0000200041186a200341206a290300370000200041106a200341186a29030037000041010b3a0000200341a0016a24000b4601017f230041d0006b22032400200320012002100e024020032d004c4104460440200041043a004c200041023a00000c010b2000200341d000100a1a0b200341d0006a24000be30101027f230041406a2200240002400240102741ff01714105470d0020004180800136020041ec80042000100420002802002201418180014f0d00200141244f044041ec8004280200419bddf6f405460d020b410141011034000b000b41f080042d00002101200041096a41f98004290000370000200041116a41818104290000370000200041186a41888104290000370000200041286a4200370300200041306a4100360200200020013a0000200041f1800429000037000120004200370320200041003a003c200042013702342000103641ec800441003b010041004102103a000b0b6c0100418080040b6444414f3a3a50726f706f73616c5570646174656444414f3a3a50726f706f73616c557064617465643a3a6f776e657244414f3a3a566f74655570646174656444414f3a3a566f7465557064617465643a3a766f746572000001020304050607080a0b0c09","build_info":{"build_mode":"Release","cargo_contract_version":"3.0.1","rust_toolchain":"stable-aarch64-apple-darwin","wasm_opt_settings":{"keep_debug_symbols":false,"optimization_passes":"Z"}}},"contract":{"name":"dao","version":"0.0.1","authors":["Bolaji Ahmad"]},"spec":{"constructors":[{"args":[{"label":"token_contract","type":{"displayName":["AccountId"],"type":1}}],"default":false,"docs":["The constructor of the contract.","supply initial asset to the DAO"],"label":"new","payable":false,"returnType":{"displayName":["ink_primitives","ConstructorResult"],"type":10},"selector":"0x9bae9d5e"}],"docs":[],"environment":{"accountId":{"displayName":["AccountId"],"type":1},"balance":{"displayName":["Balance"],"type":6},"blockNumber":{"displayName":["BlockNumber"],"type":0},"chainExtension":{"displayName":["ChainExtension"],"type":34},"hash":{"displayName":["Hash"],"type":33},"maxEventTopics":4,"timestamp":{"displayName":["Timestamp"],"type":4}},"events":[{"args":[{"docs":[" The address of the proposal owner"],"indexed":true,"label":"owner","type":{"displayName":["AccountId"],"type":1}},{"docs":[" The proposal CID of the proposal"],"indexed":false,"label":"proposal_cid","type":{"displayName":["Vec"],"type":5}},{"docs":[" The blocknumber where proposal was updated"],"indexed":false,"label":"updated_at","type":{"displayName":["u32"],"type":0}},{"docs":[" The ID of the proposal that was updated"],"indexed":false,"label":"proposal_id","type":{"displayName":["u128"],"type":6}}],"docs":["Emitted when proposal is created/updated"],"label":"ProposalUpdated"},{"args":[{"docs":[" Vote address of the new voter"],"indexed":true,"label":"voter","type":{"displayName":["AccountId"],"type":1}},{"docs":[" The blocknumber where vote was cast"],"indexed":false,"label":"updated_at","type":{"displayName":["u32"],"type":0}},{"docs":[" The voted decision: VoteType::Yes or VoteType::No"],"indexed":false,"label":"vote","type":{"displayName":["VoteType"],"type":17}},{"docs":[" The ID of the proposal that was voted on"],"indexed":false,"label":"proposal_id","type":{"displayName":["u128"],"type":6}},{"docs":[" The total number of votes for the proposal, after cast"],"indexed":false,"label":"votes_for","type":{"displayName":["Option"],"type":20}},{"docs":[" The total number of votes against the proposal, after cast"],"indexed":false,"label":"votes_against","type":{"displayName":["Option"],"type":20}}],"docs":["Emitted when a vote is casted"],"label":"VoteUpdated"}],"lang_error":{"displayName":["ink","LangError"],"type":12},"messages":[{"args":[{"label":"initial_assets","type":{"displayName":["Vec"],"type":13}}],"default":false,"docs":[],"label":"set_default_assets","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":14},"selector":"0x7298d592"},{"args":[{"label":"proposal_cid","type":{"displayName":["ContentIdentifier"],"type":5}},{"label":"created_at","type":{"displayName":["u64"],"type":4}},{"label":"days","type":{"displayName":["u32"],"type":0}}],"default":false,"docs":[],"label":"submit_new_proposal","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":14},"selector":"0xa9b6109b"},{"args":[{"label":"proposal_id","type":{"displayName":["u128"],"type":6}}],"default":false,"docs":[" Open proposal for voting"," This should be done when the user is verified"],"label":"activate_voting","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":14},"selector":"0xd68f9f61"},{"args":[{"label":"proposal_id","type":{"displayName":["u128"],"type":6}},{"label":"vote","type":{"displayName":["VoteType"],"type":17}}],"default":false,"docs":[],"label":"vote_on_proposal","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":14},"selector":"0xa7072938"},{"args":[{"label":"proposal_id","type":{"displayName":["u128"],"type":6}}],"default":false,"docs":[],"label":"close_voting_period","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":14},"selector":"0x1d4490cb"},{"args":[{"label":"proposal_id","type":{"displayName":["u128"],"type":6}},{"label":"owner","type":{"displayName":["AccountId"],"type":1}}],"default":false,"docs":[],"label":"create_proposal_asset","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":14},"selector":"0xae1a18d9"},{"args":[{"label":"asset_cid","type":{"displayName":["ContentIdentifier"],"type":5}}],"default":false,"docs":[],"label":"destroy_asset","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":14},"selector":"0x7515848e"},{"args":[{"label":"proposal_id","type":{"displayName":["u128"],"type":6}}],"default":false,"docs":[],"label":"get_all_votes_of_proposal","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":18},"selector":"0x3bd64b9d"},{"args":[{"label":"owner","type":{"displayName":["AccountId"],"type":1}},{"label":"proposal_id","type":{"displayName":["u128"],"type":6}}],"default":false,"docs":[],"label":"verify_proposal_by_id","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":21},"selector":"0x774f8182"},{"args":[{"label":"token_contract","type":{"displayName":["AccountId"],"type":1}}],"default":false,"docs":[],"label":"set_token_contract","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x2fc3cfae"},{"args":[],"default":false,"docs":[],"label":"get_token_contract","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":22},"selector":"0xad4a397f"},{"args":[{"label":"proposal_id","type":{"displayName":["u128"],"type":6}}],"default":false,"docs":[],"label":"get_proposal_by_id","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":23},"selector":"0x9d880359"},{"args":[{"label":"proposal_id","type":{"displayName":["u128"],"type":6}}],"default":false,"docs":[],"label":"get_proposal_ipfs_data","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":27},"selector":"0x9575936f"},{"args":[],"default":false,"docs":[],"label":"get_proposal_count","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":29},"selector":"0x63929fbf"},{"args":[{"label":"proposal_id","type":{"displayName":["u128"],"type":6}}],"default":false,"docs":[],"label":"get_voting_period_remaining","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":30},"selector":"0x81344a58"},{"args":[],"default":false,"docs":[],"label":"get_all_users","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":31},"selector":"0x72ee46c2"}]},"storage":{"root":{"layout":{"struct":{"fields":[{"layout":{"root":{"layout":{"struct":{"fields":[{"layout":{"enum":{"dispatchKey":"0x511a0c74","name":"ProposalStatus","variants":{"0":{"fields":[],"name":"Pending"},"1":{"fields":[],"name":"Ongoing"},"2":{"fields":[],"name":"Approved"},"3":{"fields":[],"name":"Rejected"}}}},"name":"status"},{"layout":{"leaf":{"key":"0x511a0c74","ty":0}},"name":"start_block"},{"layout":{"leaf":{"key":"0x511a0c74","ty":0}},"name":"duration"},{"layout":{"leaf":{"key":"0x511a0c74","ty":1}},"name":"proposer"},{"layout":{"leaf":{"key":"0x511a0c74","ty":4}},"name":"created_at"},{"layout":{"leaf":{"key":"0x511a0c74","ty":5}},"name":"proposal_cid"},{"layout":{"leaf":{"key":"0x511a0c74","ty":6}},"name":"proposal_id"}],"name":"Proposal"}},"root_key":"0x511a0c74"}},"name":"proposal_by_id"},{"layout":{"leaf":{"key":"0x00000000","ty":6}},"name":"proposal_count"},{"layout":{"leaf":{"key":"0x00000000","ty":7}},"name":"users"},{"layout":{"root":{"layout":{"leaf":{"key":"0x968a340f","ty":8}},"root_key":"0x968a340f"}},"name":"proposals_by_account"},{"layout":{"root":{"layout":{"struct":{"fields":[{"layout":{"leaf":{"key":"0xc1582d1d","ty":7}},"name":"voters"},{"layout":{"enum":{"dispatchKey":"0xc1582d1d","name":"Option","variants":{"0":{"fields":[],"name":"None"},"1":{"fields":[{"layout":{"leaf":{"key":"0xc1582d1d","ty":4}},"name":"0"}],"name":"Some"}}}},"name":"votes_for"},{"layout":{"enum":{"dispatchKey":"0xc1582d1d","name":"Option","variants":{"0":{"fields":[],"name":"None"},"1":{"fields":[{"layout":{"leaf":{"key":"0xc1582d1d","ty":4}},"name":"0"}],"name":"Some"}}}},"name":"votes_against"},{"layout":{"leaf":{"key":"0xc1582d1d","ty":0}},"name":"start_block"}],"name":"Vote"}},"root_key":"0xc1582d1d"}},"name":"votes_by_proposal"},{"layout":{"leaf":{"key":"0x00000000","ty":1}},"name":"token_contract"},{"layout":{"leaf":{"key":"0x00000000","ty":9}},"name":"has_set_default_assets"}],"name":"DAO"}},"root_key":"0x00000000"}},"types":[{"id":0,"type":{"def":{"primitive":"u32"}}},{"id":1,"type":{"def":{"composite":{"fields":[{"type":2,"typeName":"[u8; 32]"}]}},"path":["ink_primitives","types","AccountId"]}},{"id":2,"type":{"def":{"array":{"len":32,"type":3}}}},{"id":3,"type":{"def":{"primitive":"u8"}}},{"id":4,"type":{"def":{"primitive":"u64"}}},{"id":5,"type":{"def":{"sequence":{"type":3}}}},{"id":6,"type":{"def":{"primitive":"u128"}}},{"id":7,"type":{"def":{"sequence":{"type":1}}}},{"id":8,"type":{"def":{"sequence":{"type":6}}}},{"id":9,"type":{"def":{"primitive":"bool"}}},{"id":10,"type":{"def":{"variant":{"variants":[{"fields":[{"type":11}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":11},{"name":"E","type":12}],"path":["Result"]}},{"id":11,"type":{"def":{"tuple":[]}}},{"id":12,"type":{"def":{"variant":{"variants":[{"index":1,"name":"CouldNotReadInput"}]}},"path":["ink_primitives","LangError"]}},{"id":13,"type":{"def":{"sequence":{"type":5}}}},{"id":14,"type":{"def":{"variant":{"variants":[{"fields":[{"type":15}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":15},{"name":"E","type":12}],"path":["Result"]}},{"id":15,"type":{"def":{"variant":{"variants":[{"fields":[{"type":11}],"index":0,"name":"Ok"},{"fields":[{"type":16}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":11},{"name":"E","type":16}],"path":["Result"]}},{"id":16,"type":{"def":{"variant":{"variants":[{"index":0,"name":"AlreadyVoted"},{"index":1,"name":"InvalidAsset"},{"index":2,"name":"ProposalNotFound"},{"index":3,"name":"AssetExists"},{"index":4,"name":"TokenMintingFailed"},{"index":5,"name":"TokenBurningFailed"},{"index":6,"name":"VotingHasEnded"}]}},"path":["dao","dao","Error"]}},{"id":17,"type":{"def":{"variant":{"variants":[{"index":0,"name":"Yes"},{"index":1,"name":"No"}]}},"path":["dao","dao","VoteType"]}},{"id":18,"type":{"def":{"variant":{"variants":[{"fields":[{"type":19}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":19},{"name":"E","type":12}],"path":["Result"]}},{"id":19,"type":{"def":{"composite":{"fields":[{"name":"voters","type":7,"typeName":"Vec"},{"name":"votes_for","type":20,"typeName":"Option"},{"name":"votes_against","type":20,"typeName":"Option"},{"name":"start_block","type":0,"typeName":"u32"}]}},"path":["dao","dao","Vote"]}},{"id":20,"type":{"def":{"variant":{"variants":[{"index":0,"name":"None"},{"fields":[{"type":4}],"index":1,"name":"Some"}]}},"params":[{"name":"T","type":4}],"path":["Option"]}},{"id":21,"type":{"def":{"variant":{"variants":[{"fields":[{"type":9}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":9},{"name":"E","type":12}],"path":["Result"]}},{"id":22,"type":{"def":{"variant":{"variants":[{"fields":[{"type":1}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":1},{"name":"E","type":12}],"path":["Result"]}},{"id":23,"type":{"def":{"variant":{"variants":[{"fields":[{"type":24}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":24},{"name":"E","type":12}],"path":["Result"]}},{"id":24,"type":{"def":{"variant":{"variants":[{"fields":[{"type":25}],"index":0,"name":"Ok"},{"fields":[{"type":16}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":25},{"name":"E","type":16}],"path":["Result"]}},{"id":25,"type":{"def":{"composite":{"fields":[{"name":"status","type":26,"typeName":"ProposalStatus"},{"name":"start_block","type":0,"typeName":"u32"},{"name":"duration","type":0,"typeName":"u32"},{"name":"proposer","type":1,"typeName":"AccountId"},{"name":"created_at","type":4,"typeName":"u64"},{"name":"proposal_cid","type":5,"typeName":"ContentIdentifier"},{"name":"proposal_id","type":6,"typeName":"u128"}]}},"path":["dao","dao","Proposal"]}},{"id":26,"type":{"def":{"variant":{"variants":[{"index":0,"name":"Pending"},{"index":1,"name":"Ongoing"},{"index":2,"name":"Approved"},{"index":3,"name":"Rejected"}]}},"path":["dao","dao","ProposalStatus"]}},{"id":27,"type":{"def":{"variant":{"variants":[{"fields":[{"type":28}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":28},{"name":"E","type":12}],"path":["Result"]}},{"id":28,"type":{"def":{"variant":{"variants":[{"fields":[{"type":5}],"index":0,"name":"Ok"},{"fields":[{"type":16}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":5},{"name":"E","type":16}],"path":["Result"]}},{"id":29,"type":{"def":{"variant":{"variants":[{"fields":[{"type":6}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":6},{"name":"E","type":12}],"path":["Result"]}},{"id":30,"type":{"def":{"variant":{"variants":[{"fields":[{"type":0}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":0},{"name":"E","type":12}],"path":["Result"]}},{"id":31,"type":{"def":{"variant":{"variants":[{"fields":[{"type":32}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":32},{"name":"E","type":12}],"path":["Result"]}},{"id":32,"type":{"def":{"tuple":[7,0]}}},{"id":33,"type":{"def":{"composite":{"fields":[{"type":2,"typeName":"[u8; 32]"}]}},"path":["ink_primitives","types","Hash"]}},{"id":34,"type":{"def":{"variant":{}},"path":["ink_env","types","NoChainExtension"]}}],"version":"4"} \ No newline at end of file +{"source":{"hash":"0xc77723a95add53671b216f4b873ce38b2bccfa79780a346fc519d84ab62a39e1","language":"ink! 4.3.0","compiler":"rustc 1.69.0","wasm":"0x0061736d0100000001550e60027f7f0060037f7f7f0060017f0060037e7e7f0060037f7f7f017f60037f7e7e0060047f7f7f7f017f60047f7f7f7f0060017f017f6000017f60000060087f7f7e7f7f7f7f7f017f60027e7f0060027f7f017f02e3010c057365616c310b6765745f73746f726167650006057365616c300c626c6f636b5f6e756d6265720000057365616c301176616c75655f7472616e736665727265640000057365616c310463616c6c000b057365616c3005696e7075740000057365616c300663616c6c65720000057365616c3007616464726573730000057365616c300f686173685f626c616b65325f3235360001057365616c300d6465706f7369745f6576656e740007057365616c320b7365745f73746f726167650006057365616c300b7365616c5f72657475726e000103656e76066d656d6f727902010210033938040000040500030000000005000003000300010200080200010c0009020900010101000107010102010300000200000800020a0d0401050a0608017f01418080040b0711020463616c6c003d066465706c6f7900420aa18b01382b01017f037f2002200346047f200005200020036a200120036a2d00003a0000200341016a21030c010b0b0bdb0201047f230041206b22022400200241086a2001100d41012104024020022d00084101710d000240024002400240024020022d0009220341037141016b0e03030201000b200341fc01714102762101410021040c040b200341034b0d0320012802042203410449047f4101052001200341046b36020420012001280200220341046a3602002003280000210341000b2105200220033602042002200536020020022802000d03200228020422014180808080044921040c030b200220033a0015200241013a0014200220013602102002410036021c200241106a2002411c6a4104100e450d010c020b200220033a0015200241013a001420022001360210200241003b011c200241106a2002411c6a4102100e0d0120022f011c220341ff014d0d0120034102762101410021040c010b200228021c220141808004492104200141027621010b2000200136020420002004360200200241206a24000b3c01017f200020012802042202047f2001200241016b36020420012001280200220141016a36020020012d00000520010b3a000120002002453a00000b900101027f20002f01042103200041003a0004410121040240024020034101710440200120034108763a0000200028020022002802042203200241016b2202490d02200141016a200028020022012002100b1a0c010b2000280200220028020422032002490d012001200028020022012002100b1a0b2000200320026b3602042000200120026a360200410021040b20040bff0402077f017e230041f0006b22032400200342808001370244200341ec800436024041f498e88805200341406b22041010200120022004101102402003280244220620032802482204490d00200328024021052003200620046b220736024020052004200420056a2206200341406b10002104200720032802402205490d00024002400240410c20042004410c4f1b0e0400030301030b2005450d02200541016b41044920062d0000220741034b72200541056b410449200541096b41204972720d02200641016a2204280000210620042800042109200341c8006a200441116a290000370300200341d0006a200441196a290000370300200341d7006a200441206a29000037000020032004290009370340200541296b4108490d0220042d000821082003200541316b36023c2003200441306a36023820042900282102200341186a200341386a1012200328021c450d02200341e8006a2204200341206a220528020036020020032003290318370360200328023c4110490d022005200341c8006a290300370300200341286a200341d0006a2903003703002003412f6a200341d7006a290000370000200341106a200428020036020020032003290340370318200320032903603703082003280238220441086a29000021012004290000210a0c010b410421070b2000200a370320200020083a0000200020032903183700012000200936023c200020063602382000200237033020002003290308370340200020073a004c200041286a2001370300200041096a200341206a290300370000200041116a200341286a290300370000200041186a2003412f6a290000370000200041c8006a200341106a280200360200200341f0006a24000f0b000b2601017f230041106b220224002002200036020c20012002410c6a41041023200241106a24000b2a01017f230041106b2203240020032001370308200320003703002002200341101023200341106a24000ba30101067f230041106b22022400200241086a2001100c024020022802084504400240200228020c220320012802044b0d002002200341011031200128020422042003490d00200228020021052002280204200128020022062003100b21072001200420036b3602042001200320066a3602002000200336020820002007360204200020053602000c020b200041003602040c010b200041003602040b200241106a24000be60101067f230041206b22022400200242808001370214200241ec8004360210418fe8a8b479200241106a2203101020012003101402402002280214220320022802182201490d00200228021021042002200320016b220336021020042001200120046a2205200241106a10002101200320022802102206490d004100210402400240410c20012001410c4f1b0e0400020201020b2002200636020c20022005360208200241106a200241086a101520022802142204450d0120022802182103200228021021070b200020033602082000200436020420002007360200200241206a24000f0b000b0a0020012000412010230bb60101077f230041106b22022400200241086a2001100c024020022802084504400240200228020c220341ffffffff00712003470d002003410474220420012802044b0d00200220034101102b200128020422052004490d00200228020021062002280204200128020022072004100b21082001200520046b3602042001200420076a3602002000200336020820002008360204200020063602000c020b200041003602040c010b200041003602040b200241106a24000bf80202087f037e230041406a22032400200342808001370234200341ec8004360230419ddae08a7c200341306a22041010200120022004101102402003280234220520032802382204490d00200328023021062003200520046b220536023020062004200420066a2207200341306a10002104200520032802302208490d004202210202400240410c20042004410c4f1b0e0400020201020b2003200836022c20032007360228200341306a200341286a101720032802342206450d012003280238210520032802302109200341186a200341286a1018200329031822024202510d012003290320210b200341086a200341286a1018200329030822014202510d01200328022c4104492002420351720d012003290310210d200b42ff0183210c200b42807e83210b2003280228280000210a0b2000200536022c20002006360228200020093602242000200a3602202000200d37031820002001370310200020023703002000200b200c84370308200341406b24000f0b000bf20101037f230041406a22022400200241086a2001100c024002402002280208450440200241106a20012802044105762203200228020c220420032004491b1029200404400340200128020422034120490d032001200341206b36020420012001280200220341206a360200200241286a200341086a290000370300200241306a200341106a290000370300200241386a200341186a29000037030020022003290000370320200241106a200241206a102d200441016b22040d000b0b20002002290310370200200041086a200241186a2802003602000c020b200041003602040c010b200041003602040b200241406b24000bb40102037f027e230041206b22022400200241186a2001100d42022105024020022d00184101710d00420021050240024020022d00190e020201000b420221050c010b200241086a210320012802042204410849047e4201052001200441086b36020420012001280200220141086a3602002001290000210542000b210620032005370308200320063703004202420120022802081b2105200229031021060b2000200637030820002005370300200241206a24000b930101047f230041106b22032400200342808001370204200341ec8004360200419ddae08a7c20031010200020012003101102402003280204220620032802082204490d0020032802002105200341003602082003200620046b3602042003200420056a36020020022003101a2003280208220220032802044b0d00200520042003280200200210091a200341106a24000f0b000b4400200041286a2802002000412c6a2802002001102a2000290300200041086a29030020011034200041106a290300200041186a290300200110342000280220200110100b930101047f230041106b22032400200342808001370204200341ec800436020041f498e8880520031010200020012003101102402003280204220620032802082204490d0020032802002105200341003602082003200620046b3602042003200420056a36020020022003101c2003280208220220032802044b0d00200520042003280200200210091a200341106a24000f0b000b5300200120002d004c1022200028023820011010200028023c20011010200020011014200029033020011024200041c4006a280200200041c8006a280200200110302000290320200041286a290300200110110bb00101077f230041206b2203240020004200370000200041186a22044200370000200041106a22054200370000200041086a220642003700000240200241214f0440200341186a22074200370300200341106a22084200370300200341086a22094200370300200342003703002001200220031007200420072903003700002005200829030037000020062009290300370000200020032903003700000c010b200020012002100b1a0b200341206a24000b6f01047f230041106b2201240002402000280204220420002802082202490d0020002802002103200141003602082001200420026b3602042001200220036a36020041022001101f2002200220012802086a22024b0d002000200336020020002002360208200141106a24000f0b000b7401017f230041106b2202240002402000413f4d04402001200041027410220c010b200041ffff004d0440200220004102744101723b010e20012002410e6a410210230c010b200041ffffffff034d04402000410274410272200110100c010b2001410310222000200110100b200241106a24000b3301027f230041106b22012400200141086a2000100d20012d0009210020012d0008200141106a2400410171452000410146710b08002000410110220b2d01017f2000280208220220002802044904402000200241016a360208200028020020026a20013a00000f0b000b4801027f024002402000280208220320026a22042003490d00200420002802044b0d00200420036b2002470d01200028020020036a20012002100b1a200020043602080f0b000b000b2601017f230041106b22022400200220003703082001200241086a41081023200241106a24000b2601017f230041106b22022400200220003a000f20012002410f6a41011023200241106a24000b3301027f230041106b22002400200041003602082000410436020c200041086a2000410c6a10012000280208200041106a24000b6d01017f230041106b2201240020014180800136020c41ec80042001410c6a1005200041ed8004290000370001200041096a41f58004290000370000200041116a41fd8004290000370000200041186a41848104290000370000200041ec80042d00003a0000200141106a24000b5502027f027e230041206b22002400200041106a22014200370300200042003703082000411036021c200041086a2000411c6a10022001290300210220002903082103200041206a2400410541042002200384501b0b6c01027f230041106b2203240002402001450440410121020c010b0240200141ffffff1f4b0d00200141057422024100480d00200341086a20022001418080802049102c200328020822020d010b000b200041003602082000200236020420002001360200200341106a24000b2d0020012002101f20010440200141057421010340200020021014200041206a2100200141206b22010d000b0b0b850101037f230041106b2203240002402001450440410821020c010b0240200141ffffff3f4b0d00200141047422044100480d00200141808080c000494103742105027f2002450440200341086a20042005102c20032802080c010b200320042005102e20032802000b22020d010b000b2000200236020420002001360200200341106a24000b3701017f230041106b22032400200341086a20012002102e200328020c21012000200328020836020020002001360204200341106a24000ba90201057f200028020822032000280200460440230041206b2202240002400240200341016a2204450d002000280200220320036a22052003490d0041042005200420042005491b2204200441044d1b22044105742105200441808080204921060240200304402002410136021820022003410574360214200220002802043602100c010b200241003602180b200220052006200241106a102f2002280200450d01200241086a2802001a0b000b200228020421032000200436020020002003360204200241206a2400200028020821030b200028020420034105746a22022001290000370000200241086a200141086a290000370000200241106a200141106a290000370000200241186a200141186a290000370000200341016a2201450440000b200020013602080bca0101037f20010440027f2001200120026a41016b410020026b7122054d0440024041e48004280200220220056a22042002490d0041e88004280200200449044041002005200541ffff036a22034b0d031a4100200341107640002202417f460d031a41002002200241ffff0371470d031a41002002411074220220034180807c716a22042002490d031a4100210341e880042004360200200220056a22042002490d010b41e480042004360200200221030b20030c010b000b21020b20002001360204200020023602000bfd0201077f230041106b220624002000027f0240027f02400240200204400240200141004e044020032802080d01200620012002102c2006280200210420062802040c050b200041086a41003602000c050b20032802042209450440200641086a20012002102e20062802082104200628020c0c040b200120026a41016b410020026b7122082001490d01200141e48004280200220720086a22052007490d031a2003280200210a41e880042802002005490440200841ffff036a22052008490d03200541107640002203417f46200341ffff0371200347720d032003411074220720054180807c716a22032007490d0341e8800420033602002001200720086a22052007490d041a0b41e48004200536020020012007450d031a2007200a2009100b210420010c030b20002001360204200041086a41003602000c030b000b20010b21052004044020002004360204200041086a200536020041000c020b20002001360204200041086a20023602000b41010b360200200641106a24000b100020012002101f20022000200110230b6801027f230041106b2203240002402001450440410121020c010b200141004e22040440027f2002450440200341086a20012004102c20032802080c010b200320012004102e20032802000b22020d010b000b2000200236020420002001360200200341106a24000bab0701077f230041b0016b220224002002200041e000100b220041ec80043602602000428080013702640240027f2000290300500440200041e0006a101e2000280264220120002802682202490d022000280260210320004100360288012000200120026b2205360284012000200220036a22063602800141d88004410020004180016a220410302004418080044114102320002802880122042000280284014b0d0220004180016a22072000280280012004101d200041003602a801200020053602a401200020063602a0012007200041a0016a10142002200220002802a8016a22024b0d022000200236027820002001360274200020033602702000200041086a360288012000411b3602840120004194800436028001200041a0016a200041f0006a20004180016a103320002802a401220120002802a8012202490d02200120026b0c010b200041e0006a101e2000280264220120002802682202490d012000280260210320004100360288012000200120026b2205360284012000200220036a22063602800141d88004410020004180016a22041030200441af80044110102320002802880122042000280284014b0d0120004180016a22072000280280012004101d200041003602a801200020053602a401200020063602a0012007200041a0016a10142002200220002802a8016a22024b0d012000200236027820002001360274200020033602702000200041086a360288012000411736028401200041bf800436028001200041a0016a200041f0006a20004180016a103320002802a401220120002802a8012202490d01200120026b0b210120002802a001210320002001360284012000200220036a220536028001024020002903005004402001450d02200541003a00002000410136028801200041086a20004180016a22011014200041406b280200200041c4006a28020020011030200041386a28020020011010200041286a290300200041306a290300200110110c010b2001450d01200541013a00002000410136028801200041086a20004180016a22011014200041d8006a2802002001101020002802880122012000280284014f0d0120002802800120016a200041dc006a2d00003a00002000200141016a36028801200041286a290300200041306a29030020004180016a22011011200041386a290300200041406b29030020011034200041c8006a290300200041d0006a290300200110340b20002802880122012000280284014b0d002003200220002802800120011008200041b0016a24000f0b000bd10101047f230041306b2203240002402001280204220520012802082204490d0020012802002106200341003602082003200520046b22053602042003200420066a220636020020022802002002280204200310302002280208200310142003280208220220032802044b0d00200320032802002002101d2003410036022820032005360224200320063602202003200341206a1014200420032802286a22022004490d00200141086a22042002360200200041086a200428020036020020002001290200370200200341306a24000f0b000b1b0020005004402002410010220f0b2002410110222001200210240b6801017f230041106b22022400200241808001360204200241ec800436020002402001450440410121012002410136020841ec800441003a00000c010b41ec800441013a000020024101360208200210212002280208220141818001490d00000b20002001103b000b400041ec800441003a00002000027f200141ff0171410746044041ed800441003a000041020c010b41ee800420013a000041ed800441013a000041030b103b000bb50101047f230041106b22012400200142808001370204200141ec800436020041002001101002402001280204220420012802082202490d0020012802002103200141003602082001200420026b3602042001200220036a3602002000290320200041286a29030020011011200041346a280200200041386a2802002001102a20002001101420002d003c200110252001280208220020012802044b0d00200320022001280200200010091a200141106a24000f0b000b8c0402077f017e230041e0006b22022400200241086a220320014138100b1a200241c8006a200141406b28020036020020022001280244220536024c2002200129033837034020022903382109200242808001370254200241ec80043602502003200241d0006a101402402000027f024002402002280254220320022802582201490d0020022802502106200241003602582002200320016b3602542002200120066a3602502002290328200241306a290300200241d0006a10112002280254220120022802582203490d00200120036b21012002280250220820036a210341d880042107200541ffff0371450440200241003602582002200136025420022003360250200241c8006a200241d0006a22031039200241c4006a280200200310142002280240220141046a280200200141086a280200200310302002280254220120022802582204490d012002280250220720046a2103200120046b21010b200220013602502005103a200620092008200720042003200241d0006a10032104200120022802502205490d0002400240410c20042004410c4f1b2201410d714504402005450d022002200541016b3602542002200341016a36025020032d000022010e020401020b2000200141d780046a2d00003a000141010c040b41012101200241d0006a10200d020b200041013b01000c030b000b2000200136020441000b3a00000b200241e0006a24000b0a0020012000410410230b220020004115764108712000410e76410471200041077641027120004101717272720b0d00200041ec80042001100a000b2e01017f230041e0006b22012400200141086a200041c000100b1a2001420037030020011032200141e0006a24000ba84502137f077e23004190036b22002400024002400240024002400240102841ff01714105470d002000418080013602e00141ec8004200041e0016a100420002802e0012206418180014f0d000240027e0240024020064104490d00200041f080043602302000200641046b220436023441ec80042802002201411876210220014110762105200141087621030240027f0240024002400240024002400240024002400240024002400240024002400240200141ff0171220141a7016b0e080212011212120904000b02400240200141f2006b0e06011313061308000b2001411d460d032001412f460d082001413b460d06200141e300460d0c2001418101460d0d2001419501460d0b2001419d01460d0a200141d60147200341ff0171418f014772200541ff0171419f0147200241e1004772722004411049720d1220004180810436023041f880042902002213422088a7210441f080042902002216422088a721012013a721072016a72103410221020c130b200341ff01712206419801460d0e200641ee0147200541ff017141c6004772200241c20147720d11410f21020c100b200341ff017141b60147200541ff0171411047722002419b0147720d10200041e0016a200041306a101220002802e4012204450d10200028023422014108490d1020002000280230220341086a3602302000200141086b220136023420014104490d102003290000211420002000280230220141046a360230200020143c008001200020144208883e008101200020144238883c008701200020144228883d00850120003502e801200135000042208684221542807e8321132014422088a7210120002802e00121074101210220002802800121030c130b200341ff0171410747200541ff0171412947722002413847200441104972720d0f20004180810436023020064114460d0f418081042d0000220241014b0d0f41f880042902002215422088a7210441f080042902002216422088a721012015a721072016a721032002410047ad2115410321020c120b200341ff017141c40047200541ff01714190014772200241cb0147200441104972720d0e20004180810436023041f880042902002213422088a7210441f080042902002216422088a721012013a721072016a72103410421020c0f0b200341ff0171411a47200541ff017141184772200241d90147200441104972720d0d200041808104360230200641146b4120490d0d41f88004290200211641808104290200221542807e832113200041f080042902002218370380012018422088a721012016422088a721044198810429020021194190810429020021174188810429020021142018a721032016a72107410521020c100b200341ff0171411547200541ff017141840147720d0c2002418e01460d080c0c0b200341ff017141d60147200541ff017141cb0047722002419d0147200441104972720d0b2000418081043602302000200641146b360234200041f0800429020022133703800141f880042902002216422088a721042013422088a721012016a721072013a72103410721020c0c0b200341ff017141cf0047200541ff0171418101477220024182014720044120497272200641246b411049720d0a41888104290200211441808104290200211541fc8004280200210441f88004280200210741f48004280200210141f080042802002103200041a08104360230200020013602840120002003360280012000200641346b360234201542807e832113419881042902002119419081042902002117410821020c0d0b200341ff017141c30147200541ff017141cf014772200241ae0147200441204972720d092000419081043602302000200641246b360234200041fb8004280000220136028401200041f7800428000022033602800141878104290000221542807e83211341f480042f010041f680042d000041107472210b418f8104310000211441838104280000210441ff8004280000210741f380042d0000210841f180042f0000210d41f080042d0000210e410921020c0c0b200341ff017141ca0047200541ff017141394772200241ff0047720d08410a21020c070b200341ff017141880147200541ff017141034772200241d90047200441104972720d072000418081043602302000200641146b360234200041f0800429020022133703800141f880042902002216422088a721042013422088a721012016a721072013a72103410b21020c080b200341ff017141f50047200541ff01714193014772200241ef0047200441104972720d062000418081043602302000200641146b360234200041f0800429020022133703800141f880042902002216422088a721042013422088a721012016a721072013a72103410c21020c070b200341ff017141920147200541ff0171419f014772200241bf0147720d05410d21020c040b200341ff0171413447200541ff017141ca004772200241d80047200441104972720d042000418081043602302000200641146b360234200041f0800429020022133703800141f880042902002216422088a721042013422088a721012016a721072013a72103410e21020c050b200041e0016a200041306a101220002802e4012203450d03200020002802e801220136028401200020033602800120002f00e10120002d00e30141107472210b20002d00e001210841060c010b200541ff017141d50147200241920147720d02200041286a200041306a100c20002802280d02410421032000280234410c6e2201200028022c220520012005491b22080440200841abd5aad5004f0d07200041206a2008410c6c4104102c20002802202203450d070b41002101200041003602c802200020033602c402200020083602c0022005047f0340200041e0016a200041306a101220002802e4012209450d0420002802e801210420002802e001210b20002802c002200146047f200041c0026a2102230041206b2203240002400240200141016a2206450d002002280200220120016a22082001490d0041042008200620062008491b2206200641044d1b2206410c6c2108200641abd5aad50049410274210a0240200104402003410436021820032001410c6c360214200320022802043602100c010b200341003602180b20032008200a200341106a102f2003280200450d01200341086a2802001a0b000b200328020421012002200636020020022001360204200341206a240020002802c402210320002802c8020520010b410c6c20036a22012004360208200120093602042001200b36020020002802c80241016a2201450d08200020013602c802200541016b22050d000b20002802c402210320002d00c002210820002f00c10220002d00c302411074720520084108760b210b2003450d0241000b21020c040b42000c020b410141011035000b42000b21130b2000428080013702e401200041ec80043602e0014100200041e0016a101020002802e401220920002802e8012205490d0020002802e00121062000200920056b220a3602e00120062005200520066a2205200041e0016a10002106200a20002802e001220949410c20062006410c4f1b722009411049720d002000200941106b360284012000200541106a36028001200541086a290000211620052900002118200041c0026a20004180016a101720002802c4022205450d00200028028401220a4120490d0020002802c802210620002802c002210f200041e8016a200028028001220941096a290000370300200041f0016a200941116a290000370300200041f7016a200941186a290000370000200020092900013703e001200a4120460d0020092d0020220c41024f0d002015a7210a20092d00002110200041396a200041e8016a2209290300370000200041c1006a200041f0016a2211290300370000200041c8006a2212200041f7016a290000370000200041d8006a201637030020002006360268200020053602642000200f360260200020002903e001370031200020183703502000200c3a006c200020103a003002400240027f02400240024002400240024002400240027f02400240027f0240024002400240024002400240024002400240024002400240024002400240200241016b0e0f010203040506070809110a0b0e0c0d000b200041f8016a42003703002011420037030020094200370300200042003703e001200041306a200041e0016a103e0d1e2001450d14027f200328020422054504404107210441000c010b2001410c6c410c6b2102200041e0016a410172220141086a2107200141106a2106200141176a21080340200020053602c402200020032802083602c802200020032802003602c0022000418080013602800141ec800420004180016a1006200141ed8004290000370000200741f58004290000370000200641fd8004290000370000200841848104290000370000200041ec80042d00003a00e00141042104200041306a200041e0016a200041c0026a103f22090440200041013a006c410721040b200204402002410c6b2102200341106a2003410c6a210328020022050d010b0b20094101730b41012102450d150c210b20002013420888a722023b0079200041fb006a20024110763a00002000200a3a007820002007ad2004ad42208684370370200c450d1d200028027841044d0d1d200041e0016a200041306a200041f0006a104020002d00e0010d1d20004180016a1027201842017c2214201854220220162002ad7c2215201654201420185a1b4101460d1d200041e0016a20004180016a101320002802e40145044041002102200041003602c8012000428080808080013703c0010c1c0b200041c8016a200041e8016a2802002202360200200020002903e00122173703c00120022017a7460d1b0c1c0b200041c0016a102720182003ad2001ad4220868422155420162007ad2004ad4220868422145420142016511b0d1c200041c0026a20152014100f20002d008c034104460d18200041e0016a200041c0026a41d000100b1a20002d00ac020d1c20004280800137028401200041ec800436028001418fe8a8b47920004180016a22011010200041c0016a2001101420002802840122022000280288012201490d1c20002802800121032000200220016b22023602800120032001200120036a220320004180016a100021012002200028028001220449410c20012001410c4f1b720d1c200020043602742000200336027020004180016a200041f0006a10152000280284012202450d1c200028028801410474210103402001450d192002290300200241086a2103200141106b2101200241106a210220158520032903002014858450450d000b200041013a00ac0220152014200041e0016a2201101b4100210210262103200041ac016a410036020020004198016a2204420037030020004280808080103702a401200020033602a0012000420137039001200042003703880120004201370380012015201420004180016a220310192004200041d8016a29030037030020004190016a200041d0016a29030037030020004188016a200041c8016a290300370300200041bc016a200041a8026a280200360200200020002903c00137038001200020002903a0023702b40110262104200041a8016a2014370300200020153703a001200020043602b0012003103c2001200041306a41c000100b1a2001103741070c190b200041c0016a102710262105200041e0016a2003ad2001ad4220868422152007ad2004ad422086842213100f20002d00ac0222014104460d1b200028029c022103200041e0016a201520131016200141014720002903e001420251720d1b200028028002220120036a2203200149200320054d720d1b200041e0016a20152013101620002903e0014202510d1b20004180016a200041e0016a4130100b1a200041ac016a2802004105742102200041a4016a2103200041a8016a2802002101034020020440200241206b21022001200041c0016a103e200141206a2101450d010c1d0b0b200041f8016a200041d8016a290300370300200041f0016a200041d0016a290300370300200041e8016a200041c8016a290300370300200020002903c0013703e0012003200041e0016a102d200a41ff01710440420121142000290390015045044020004198016a29030042017c2214500d1d0b200029038001500d1c20002903880121170c170b4201211720002903800150450d140c150b200041c0026a2003ad2001ad4220868422142007ad2004ad422086842215104141022102027f20002d008c034104470440200041e0016a200041c0026a41d000100b1a20002d00ac02410146044020004180016a20142015101620002903800122134202510d1d20002802a0012201200028029c026a22022001490d1d20002802ac0121032000290388012117102620024d0d1d230041106b220124002001420020172013501b221342ffffffff0f834290ce007e221720134220884290ce007e22134220867c221637030020012016201754ad20134220887c37030820012903002113200041106a2202200141086a29030037030820022013370300200141106a240020002903185045200345720d1d200041034103410220002903102003ad42e4007e8042c100541b20034103491b3a00ac0220142015200041e0016a2201101b2001200041306a41c000100b1a200110374107210241000c020b410621020b41010b20021036000b20004198016a2019370300200020173703900120002014370388012000201542ff018320138437038001200041e0016a20004180016a101320002802e4012202450d192007ad2004ad4220868421142003ad2001ad42208684211520002802e801410474210103402001220304402002290300200241086a2104200341106b2101200241106a21022015852004290300201485844200520d010b0b200041e0016a20152014100f20002d00ac0222014104460d19200041c0026a200041e0016a41cc00100b1a2003452001410247720d19200041c8016a20004188036a28020036020020002000290380033703c001200041f8016a20004198016a290300370300200041f0016a20004190016a290300370300200041e8016a20004188016a29030037030020002000290380013703e00141042102200041306a200041e0016a200041c0016a103f22010d0e0c110b200041cc016a2001360200200041c8016a20033602002000200841ff0171200b410874723602c4012000200041306a22013602c001200041c0026a2001200041c0016a41047222011040024020002d00c002450d0020004198016a200041d9026a29000037030020004190016a200041d1026a29000037030020004188016a200041c9026a290000370300200020002900c10237038001200041f8016a200041c8006a290300370300200041f0016a200041406b290300370300200041e8016a200041386a29030037030020004188026a420037030020004190026a4200370300200041a0026a42eaaee2c803370300200020002903303703e00120004200370380022000419c026a20004180016a3602002000200136029802200041f0006a200041e0016a103820002d00700d002000280274450d0c0b4101210241050c0c0b230041306b2202240020022003ad2001ad422086842007ad2004ad42208684101620022903004202510440000b200041c0026a220320024130100b1a200241306a2400200041e0016a220120034130100b1a230041106b22032400200341808001360204200341ec80043602000240200129030042025204402003410136020841ec800441003a000020012003101a0c010b41ec800441013a000020034101360208200310210b20032802082201418180014f0440000b41002001103b000b20004188026a20193703002000201737038002200020143703f801200020013602e401200020033602e0012000201542ff01832013843703f00120002007ad2004ad422086843703e801027f230041306b22022400200041e0016a220141286a290300211420012903202115200241186a200141186a290000370300200241106a200141106a290000370300200241086a200141086a29000037030020022001290000370300200241206a200210132002280224220004402002280228410474210103402001220304402000290300200041086a2104200341106b2101200041106a21002015852004290300201485844200520d010b0b200241306a240020034100470c010b000b230041106b22012400200141ec800436020041ec800441003a00002001428080818010370204200110250c1b0b200020143c004f2000200136003b200020033600372000200d3b00312000200e3a00302000201542ff01832013843700472000200841ff0171200b4108747236003320002007ad2004ad4220868437003f200041e0016a2201200041306a41c000100b1a20011037410041001035000b200041c0026a22022003ad2001ad422086842007ad2004ad42208684104120002d008c03200041e0016a2201200241d000100b1a410446230041106b22032400200341808001360204200341ec800436020002400240024020012d004c2202410547044041ec800441003a000020024104460d022003410236020841ed800441003a000020012003101c0c010b41ec800441013a000020034101360208200310210b2003280208220141818001490d01000b41ed800441013a000041ee800420012d00003a000041032101200341033602080b2001103b000b200041e0016a2003ad2001ad422086842007ad2004ad42208684100f20002d00ac024104470d03410021024101210341020c040b027f41002102230041d0006b220024001026210520002003ad2001ad4220868422142007ad2004ad422086842215100f024020002d004c4104460d00200028023c2101200020142015101620002903004202520440200520002802202203490d012001200320056b6a22034100200120034f1b21020b200041d0006a240020020c010b000b230041106b22012400200141ec800436020041ec800441003a00002001428080818010370204200110100c170b230041106b22012400200120061029200128020420052006410574100b1a200041c0026a220341086a20063602002003200636020c20032001290300370200200141106a24002009200041c8026a290300370300200020002903c0023703e001230041106b22012400200141808001360204200141ec80043602000240200041e0016a220341046a280200220004402001410136020841ec800441003a00002000200341086a2802002001102a200328020c200110100c010b41ec800441013a000020014101360208200110210b0c160b230041106b22012400200141ec800436020041ec800441003a0000200142808081801037020420182016200110110c150b200041c2026a200041a3026a2d00003a0000200020002f00a1023b01c00220002802a802210520002802a402220245210320002d00a0020b2101200041ec016a2005360200200041e8016a2002360200200020002f01c0023b00e501200020013a00e401200041003602e0012000200041c2026a2d00003a00e701230041106b22012400200141808001360204200141ec8004360200024002400240200041e0016a220028020045044041ec800441003a0000200041086a2802002202450d022001410236020841ed800441003a000020022000410c6a280200200110300c010b41ec800441013a000020014101360208200110210b2001280208220041818001490d01000b41ed800441013a000041ee800420002d00043a000041032100200141033602080b20032000103b000b200041f9016a2012290300370000200041f1016a200041406b290300370000200041e9016a200041386a290300370000200020002903303700e101200041003a00e001230041106b22012400200141808001360204200141ec80043602000240200041e0016a22032d000045044041ec800441003a000020014101360208200341016a200110140c010b41ec800441013a000020014101360208200110210b0c120b200041e0016a2201200041306a41c000100b1a200110374100210241070b2101200220011036000b200041e0016a2203200041306a41c000100b1a20031037410721020c020b410721040b200041e0016a2201200041306a41c000100b1a20011037410021020c0b0b200141017320021036000b20002903880142017c2217500d060b200029039001500d0520004198016a29030021140b200041ec026a200341086a280200360200200020002802a0013602e002200020143703d802200042013703d002200020173703c802200042013703c002200020032902003702e40220152013200041c0026a101920004190026a201337030020004188026a201537030020004180026a200041d8016a290300370300200041f8016a200041d0016a290300370300200041f0016a200041c8016a290300370300200041bc026a200a3a0000200041b8026a2005360200200041b0026a2014370300200041a8026a4201370300200041a0026a201737030020004198026a4201370300200020002903c0013703e801200042013703e001200041e0016a220110322001200041306a41c000100b1a0c080b4101210241010b2101200220011036000b200041c0016a2107230041206b2204240002400240200241016a2205450d002007280200220220026a22062002490d0041042006200520052006491b2205200541044d1b22054104742106200541808080c0004941037421080240200204402004410836021820042002410474360214200420072802043602100c010b200441003602180b200420062008200441106a102f2004280200450d01200441086a2802001a0b000b200428020421022007200536020020072002360204200441206a240020002802c80121020b20002802c401220420024104746a2207201537030820072014370300200241016a2202450d00200020023602c801200041086a20024100102b200028020c20042002410474100b21052000428080013702e401200041ec80043602e001418fe8a8b479200041e0016a2204101020004180016a2004101420002802e401220620002802e8012204490d0020002802e0012107200041003602e8012000200620046b3602e4012000200420076a3602e0012002200041e0016a101f200241ffffffff00712002470d00200041e0016a20052002410474102320002802e801220220002802e4014b0d002007200420002802e001200210091a2013422088a7220220026a22042002490d00200041e0006a210710262105200041d8026a220620004198016a290300370300200041d0026a220820004190016a290300370300200041c8026a220920004188016a29030037030020002000290380013703c0022000280274210b20002000280278220241001031200041a4026a2000280204220a360200200020002802003602a002200a200b2002100b1a20004188026a2015370300200041a8026a2002360200200041e8016a2009290300370300200041f0016a2008290300370300200041f8016a2006290300370300200041d8006a20153703002000201437038002200041003a00ac022000200436029c02200020053602980220002001360294022000200336029002200020002903c0023703e0012000201437035020142015200041e0016a101b200028026841057421022000280264210103402002450d02200241206b2102200120004180016a103e200141206a2101450d000b0c020b000b200041d8026a20004198016a290300370300200041d0026a20004190016a290300370300200041c8026a20004188016a29030037030020002000290380013703c0022007200041c0026a102d0b200041d8026a20004198016a290300370300200041d0026a20004190016a290300370300200041c8026a20004188016a29030037030020002000290380013703c00210262101200041e8026a2015370300200041fc026a200041f8006a280200360200200020143703e002200020013602f002200020002903703702f402200041c0026a103c200041e0016a2201200041306a41c000100b1a0c010b200220041036000b20011037410041071036000b20012802082201418180014f0440000b41002001103b000b4601037f027f41202102034041002002450d011a200241016b210220012d0000210320002d00002104200041016a2100200141016a210120032004460d000b200420036b0b450ba10101017f230041d0006b22032400200341306a4200370300200341386a4200370300200341c8006a42ecbeabe90f370300200341c4006a2001360200200341206a200041186a290300370300200341186a200041106a290300370300200341106a200041086a2903003703002003420037032820032002360240200320002903003703082003200341086a1038200328020420032d0000200341d0006a240072450bab0601057f230041a0016b220324002003200236020c200341d8006a4200370300200341e0006a4200370300200341c8006a200141186a290300370300200341406b200141106a290300370300200341386a200141086a290300370300200341003602702003420037035020032003410c6aad42208642ccb78bd608843703682003200129030037033020034280800137027c200341ec8004360278200341306a200341f8006a10140240024002400240200328027c22042003280280012201490d002003280278210220034100360280012003200420016b36027c2003200120026a36027842004200200341f8006a1011200328027c22042003280280012201490d002003280278210620034100360280012003200420016b36027c2003200120066a360278200341e8006a200341f8006a22041039200328020c220141046a280200200141086a28020020041030200328027c22052003280280012201490d00200328027821042003200520016b22053602784100103a20024200200620042001200120046a2201200341f8006a10032102200520032802782207490d00027f02400240410c20022002410c4f1b2202410d714504402007450d022003200741016b220436029c01410121062003200141016a220236029801024020012d000022010e020200030b20034198016a1020450d020c060b200241d780046a2d0000210541020c020b200441204f0d030b4100210541020b21010c030b000b20034180016a2002410f6a29000037030020034188016a200241176a29000037030020034190016a2002411f6a2d00003a0000200320022900073703782002280003210620022f0001210420022d000021050b200341286a20034190016a280200360200200341206a20034188016a290300370300200341186a20034180016a290300370300200320032903783703100b4100210220002001410171200141024672047f410005200020053a0001200041086a2003290310370000200041046a2006360000200041026a20043b0000200041206a200341286a2d00003a0000200041186a200341206a290300370000200041106a200341186a29030037000041010b3a0000200341a0016a24000b4601017f230041d0006b22032400200320012002100f024020032d004c4104460440200041043a004c200041023a00000c010b2000200341d000100b1a0b200341d0006a24000be30101027f230041406a2200240002400240102841ff01714105470d0020004180800136020041ec80042000100420002802002201418180014f0d00200141244f044041ec8004280200419bddf6f405460d020b410141011035000b000b41f080042d00002101200041096a41f98004290000370000200041116a41818104290000370000200041186a41888104290000370000200041286a4200370300200041306a4100360200200020013a0000200041f1800429000037000120004200370320200041003a003c200042013702342000103741ec800441003b010041004102103b000b0b6c0100418080040b6444414f3a3a50726f706f73616c5570646174656444414f3a3a50726f706f73616c557064617465643a3a6f776e657244414f3a3a566f74655570646174656444414f3a3a566f7465557064617465643a3a766f746572000001020304050607080a0b0c09","build_info":{"build_mode":"Release","cargo_contract_version":"3.0.1","rust_toolchain":"stable-aarch64-apple-darwin","wasm_opt_settings":{"keep_debug_symbols":false,"optimization_passes":"Z"}}},"contract":{"name":"dao","version":"0.0.1","authors":["Bolaji Ahmad"]},"spec":{"constructors":[{"args":[{"label":"token_contract","type":{"displayName":["AccountId"],"type":1}}],"default":false,"docs":["The constructor of the contract.","supply initial asset to the DAO","","@param token_contract, the address of NFT wizard contract","@return an instantiated DAO contract"],"label":"new","payable":false,"returnType":{"displayName":["ink_primitives","ConstructorResult"],"type":10},"selector":"0x9bae9d5e"}],"docs":[],"environment":{"accountId":{"displayName":["AccountId"],"type":1},"balance":{"displayName":["Balance"],"type":6},"blockNumber":{"displayName":["BlockNumber"],"type":0},"chainExtension":{"displayName":["ChainExtension"],"type":34},"hash":{"displayName":["Hash"],"type":33},"maxEventTopics":4,"timestamp":{"displayName":["Timestamp"],"type":4}},"events":[{"args":[{"docs":[" The address of the proposal owner"],"indexed":true,"label":"owner","type":{"displayName":["AccountId"],"type":1}},{"docs":[" The proposal CID of the proposal"],"indexed":false,"label":"proposal_cid","type":{"displayName":["Vec"],"type":5}},{"docs":[" The blocknumber where proposal was updated"],"indexed":false,"label":"updated_at","type":{"displayName":["u32"],"type":0}},{"docs":[" The ID of the proposal that was updated"],"indexed":false,"label":"proposal_id","type":{"displayName":["u128"],"type":6}}],"docs":["Emitted when proposal is created/updated"],"label":"ProposalUpdated"},{"args":[{"docs":[" Vote address of the new voter"],"indexed":true,"label":"voter","type":{"displayName":["AccountId"],"type":1}},{"docs":[" The blocknumber where vote was cast"],"indexed":false,"label":"updated_at","type":{"displayName":["u32"],"type":0}},{"docs":[" The voted decision: VoteType::Yes or VoteType::No"],"indexed":false,"label":"vote","type":{"displayName":["VoteType"],"type":17}},{"docs":[" The ID of the proposal that was voted on"],"indexed":false,"label":"proposal_id","type":{"displayName":["u128"],"type":6}},{"docs":[" The total number of votes for the proposal, after cast"],"indexed":false,"label":"votes_for","type":{"displayName":["Option"],"type":20}},{"docs":[" The total number of votes against the proposal, after cast"],"indexed":false,"label":"votes_against","type":{"displayName":["Option"],"type":20}}],"docs":["Emitted when a vote is casted"],"label":"VoteUpdated"}],"lang_error":{"displayName":["ink","LangError"],"type":12},"messages":[{"args":[{"label":"initial_assets","type":{"displayName":["Vec"],"type":13}}],"default":false,"docs":[" This is callable by the owner(s) of the DAO (this would ideally be a multisig)"," This message does not need to be voted on"," It can be used to set assets owned by the DAO owners at the start of Dapp",""," @param initial_assets, a list of IPFS CIDs of assets to be minted"," This would be minted and owned by the DAO owners"," This call would toggle the status of the has_set_default_assets to true"],"label":"set_default_assets","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":14},"selector":"0x7298d592"},{"args":[{"label":"proposal_cid","type":{"displayName":["ContentIdentifier"],"type":5}},{"label":"created_at","type":{"displayName":["u64"],"type":4}},{"label":"days","type":{"displayName":["u32"],"type":0}}],"default":false,"docs":[],"label":"submit_new_proposal","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":14},"selector":"0xa9b6109b"},{"args":[{"label":"proposal_id","type":{"displayName":["u128"],"type":6}}],"default":false,"docs":[" Open proposal for voting"," This should be done when the user is verified"],"label":"activate_voting","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":14},"selector":"0xd68f9f61"},{"args":[{"label":"proposal_id","type":{"displayName":["u128"],"type":6}},{"label":"vote","type":{"displayName":["VoteType"],"type":17}}],"default":false,"docs":[],"label":"vote_on_proposal","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":14},"selector":"0xa7072938"},{"args":[{"label":"proposal_id","type":{"displayName":["u128"],"type":6}}],"default":false,"docs":[],"label":"close_voting_period","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":14},"selector":"0x1d4490cb"},{"args":[{"label":"proposal_id","type":{"displayName":["u128"],"type":6}},{"label":"owner","type":{"displayName":["AccountId"],"type":1}}],"default":false,"docs":[],"label":"create_proposal_asset","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":14},"selector":"0xae1a18d9"},{"args":[{"label":"asset_cid","type":{"displayName":["ContentIdentifier"],"type":5}}],"default":false,"docs":[],"label":"destroy_asset","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":14},"selector":"0x7515848e"},{"args":[{"label":"proposal_id","type":{"displayName":["u128"],"type":6}}],"default":false,"docs":[],"label":"get_all_votes_of_proposal","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":18},"selector":"0x3bd64b9d"},{"args":[{"label":"owner","type":{"displayName":["AccountId"],"type":1}},{"label":"proposal_id","type":{"displayName":["u128"],"type":6}}],"default":false,"docs":[],"label":"verify_proposal_by_id","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":21},"selector":"0x774f8182"},{"args":[{"label":"token_contract","type":{"displayName":["AccountId"],"type":1}}],"default":false,"docs":[],"label":"set_token_contract","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x2fc3cfae"},{"args":[],"default":false,"docs":[],"label":"get_token_contract","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":22},"selector":"0xad4a397f"},{"args":[{"label":"proposal_id","type":{"displayName":["u128"],"type":6}}],"default":false,"docs":[],"label":"get_proposal_by_id","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":23},"selector":"0x9d880359"},{"args":[{"label":"proposal_id","type":{"displayName":["u128"],"type":6}}],"default":false,"docs":[],"label":"get_proposal_ipfs_data","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":27},"selector":"0x9575936f"},{"args":[],"default":false,"docs":[],"label":"get_proposal_count","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":29},"selector":"0x63929fbf"},{"args":[{"label":"proposal_id","type":{"displayName":["u128"],"type":6}}],"default":false,"docs":[],"label":"get_voting_period_remaining","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":30},"selector":"0x81344a58"},{"args":[],"default":false,"docs":[],"label":"get_all_users","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":31},"selector":"0x72ee46c2"}]},"storage":{"root":{"layout":{"struct":{"fields":[{"layout":{"root":{"layout":{"struct":{"fields":[{"layout":{"enum":{"dispatchKey":"0x511a0c74","name":"ProposalStatus","variants":{"0":{"fields":[],"name":"Pending"},"1":{"fields":[],"name":"Ongoing"},"2":{"fields":[],"name":"Approved"},"3":{"fields":[],"name":"Rejected"}}}},"name":"status"},{"layout":{"leaf":{"key":"0x511a0c74","ty":0}},"name":"start_block"},{"layout":{"leaf":{"key":"0x511a0c74","ty":0}},"name":"duration"},{"layout":{"leaf":{"key":"0x511a0c74","ty":1}},"name":"proposer"},{"layout":{"leaf":{"key":"0x511a0c74","ty":4}},"name":"created_at"},{"layout":{"leaf":{"key":"0x511a0c74","ty":5}},"name":"proposal_cid"},{"layout":{"leaf":{"key":"0x511a0c74","ty":6}},"name":"proposal_id"}],"name":"Proposal"}},"root_key":"0x511a0c74"}},"name":"proposal_by_id"},{"layout":{"leaf":{"key":"0x00000000","ty":6}},"name":"proposal_count"},{"layout":{"leaf":{"key":"0x00000000","ty":7}},"name":"users"},{"layout":{"root":{"layout":{"leaf":{"key":"0x968a340f","ty":8}},"root_key":"0x968a340f"}},"name":"proposals_by_account"},{"layout":{"root":{"layout":{"struct":{"fields":[{"layout":{"leaf":{"key":"0xc1582d1d","ty":7}},"name":"voters"},{"layout":{"enum":{"dispatchKey":"0xc1582d1d","name":"Option","variants":{"0":{"fields":[],"name":"None"},"1":{"fields":[{"layout":{"leaf":{"key":"0xc1582d1d","ty":4}},"name":"0"}],"name":"Some"}}}},"name":"votes_for"},{"layout":{"enum":{"dispatchKey":"0xc1582d1d","name":"Option","variants":{"0":{"fields":[],"name":"None"},"1":{"fields":[{"layout":{"leaf":{"key":"0xc1582d1d","ty":4}},"name":"0"}],"name":"Some"}}}},"name":"votes_against"},{"layout":{"leaf":{"key":"0xc1582d1d","ty":0}},"name":"start_block"}],"name":"Vote"}},"root_key":"0xc1582d1d"}},"name":"votes_by_proposal"},{"layout":{"leaf":{"key":"0x00000000","ty":1}},"name":"token_contract"},{"layout":{"leaf":{"key":"0x00000000","ty":9}},"name":"has_set_default_assets"}],"name":"DAO"}},"root_key":"0x00000000"}},"types":[{"id":0,"type":{"def":{"primitive":"u32"}}},{"id":1,"type":{"def":{"composite":{"fields":[{"type":2,"typeName":"[u8; 32]"}]}},"path":["ink_primitives","types","AccountId"]}},{"id":2,"type":{"def":{"array":{"len":32,"type":3}}}},{"id":3,"type":{"def":{"primitive":"u8"}}},{"id":4,"type":{"def":{"primitive":"u64"}}},{"id":5,"type":{"def":{"sequence":{"type":3}}}},{"id":6,"type":{"def":{"primitive":"u128"}}},{"id":7,"type":{"def":{"sequence":{"type":1}}}},{"id":8,"type":{"def":{"sequence":{"type":6}}}},{"id":9,"type":{"def":{"primitive":"bool"}}},{"id":10,"type":{"def":{"variant":{"variants":[{"fields":[{"type":11}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":11},{"name":"E","type":12}],"path":["Result"]}},{"id":11,"type":{"def":{"tuple":[]}}},{"id":12,"type":{"def":{"variant":{"variants":[{"index":1,"name":"CouldNotReadInput"}]}},"path":["ink_primitives","LangError"]}},{"id":13,"type":{"def":{"sequence":{"type":5}}}},{"id":14,"type":{"def":{"variant":{"variants":[{"fields":[{"type":15}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":15},{"name":"E","type":12}],"path":["Result"]}},{"id":15,"type":{"def":{"variant":{"variants":[{"fields":[{"type":11}],"index":0,"name":"Ok"},{"fields":[{"type":16}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":11},{"name":"E","type":16}],"path":["Result"]}},{"id":16,"type":{"def":{"variant":{"variants":[{"index":0,"name":"AlreadyVoted"},{"index":1,"name":"InvalidAsset"},{"index":2,"name":"ProposalNotFound"},{"index":3,"name":"AssetExists"},{"index":4,"name":"TokenMintingFailed"},{"index":5,"name":"TokenBurningFailed"},{"index":6,"name":"VotingHasEnded"}]}},"path":["dao","dao","Error"]}},{"id":17,"type":{"def":{"variant":{"variants":[{"index":0,"name":"Yes"},{"index":1,"name":"No"}]}},"path":["dao","dao","VoteType"]}},{"id":18,"type":{"def":{"variant":{"variants":[{"fields":[{"type":19}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":19},{"name":"E","type":12}],"path":["Result"]}},{"id":19,"type":{"def":{"composite":{"fields":[{"name":"voters","type":7,"typeName":"Vec"},{"name":"votes_for","type":20,"typeName":"Option"},{"name":"votes_against","type":20,"typeName":"Option"},{"name":"start_block","type":0,"typeName":"u32"}]}},"path":["dao","dao","Vote"]}},{"id":20,"type":{"def":{"variant":{"variants":[{"index":0,"name":"None"},{"fields":[{"type":4}],"index":1,"name":"Some"}]}},"params":[{"name":"T","type":4}],"path":["Option"]}},{"id":21,"type":{"def":{"variant":{"variants":[{"fields":[{"type":9}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":9},{"name":"E","type":12}],"path":["Result"]}},{"id":22,"type":{"def":{"variant":{"variants":[{"fields":[{"type":1}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":1},{"name":"E","type":12}],"path":["Result"]}},{"id":23,"type":{"def":{"variant":{"variants":[{"fields":[{"type":24}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":24},{"name":"E","type":12}],"path":["Result"]}},{"id":24,"type":{"def":{"variant":{"variants":[{"fields":[{"type":25}],"index":0,"name":"Ok"},{"fields":[{"type":16}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":25},{"name":"E","type":16}],"path":["Result"]}},{"id":25,"type":{"def":{"composite":{"fields":[{"name":"status","type":26,"typeName":"ProposalStatus"},{"name":"start_block","type":0,"typeName":"u32"},{"name":"duration","type":0,"typeName":"u32"},{"name":"proposer","type":1,"typeName":"AccountId"},{"name":"created_at","type":4,"typeName":"u64"},{"name":"proposal_cid","type":5,"typeName":"ContentIdentifier"},{"name":"proposal_id","type":6,"typeName":"u128"}]}},"path":["dao","dao","Proposal"]}},{"id":26,"type":{"def":{"variant":{"variants":[{"index":0,"name":"Pending"},{"index":1,"name":"Ongoing"},{"index":2,"name":"Approved"},{"index":3,"name":"Rejected"}]}},"path":["dao","dao","ProposalStatus"]}},{"id":27,"type":{"def":{"variant":{"variants":[{"fields":[{"type":28}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":28},{"name":"E","type":12}],"path":["Result"]}},{"id":28,"type":{"def":{"variant":{"variants":[{"fields":[{"type":5}],"index":0,"name":"Ok"},{"fields":[{"type":16}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":5},{"name":"E","type":16}],"path":["Result"]}},{"id":29,"type":{"def":{"variant":{"variants":[{"fields":[{"type":6}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":6},{"name":"E","type":12}],"path":["Result"]}},{"id":30,"type":{"def":{"variant":{"variants":[{"fields":[{"type":0}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":0},{"name":"E","type":12}],"path":["Result"]}},{"id":31,"type":{"def":{"variant":{"variants":[{"fields":[{"type":32}],"index":0,"name":"Ok"},{"fields":[{"type":12}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":32},{"name":"E","type":12}],"path":["Result"]}},{"id":32,"type":{"def":{"tuple":[7,0]}}},{"id":33,"type":{"def":{"composite":{"fields":[{"type":2,"typeName":"[u8; 32]"}]}},"path":["ink_primitives","types","Hash"]}},{"id":34,"type":{"def":{"variant":{}},"path":["ink_env","types","NoChainExtension"]}}],"version":"4"} \ No newline at end of file diff --git a/packages/contracts/deployments/dao/dao.wasm b/packages/contracts/deployments/dao/dao.wasm index bab1b05..0a12f9b 100644 Binary files a/packages/contracts/deployments/dao/dao.wasm and b/packages/contracts/deployments/dao/dao.wasm differ diff --git a/packages/contracts/deployments/dao/metadata.json b/packages/contracts/deployments/dao/metadata.json index 789e50c..8182a8e 100644 --- a/packages/contracts/deployments/dao/metadata.json +++ b/packages/contracts/deployments/dao/metadata.json @@ -1,6 +1,6 @@ { "source": { - "hash": "0x8d86c172a07874fbff8f638f318cd1d65987d95f97a420931eeba6a0bac1710a", + "hash": "0xc77723a95add53671b216f4b873ce38b2bccfa79780a346fc519d84ab62a39e1", "language": "ink! 4.3.0", "compiler": "rustc 1.69.0", "build_info": { @@ -37,7 +37,10 @@ "default": false, "docs": [ "The constructor of the contract.", - "supply initial asset to the DAO" + "supply initial asset to the DAO", + "", + "@param token_contract, the address of NFT wizard contract", + "@return an instantiated DAO contract" ], "label": "new", "payable": false, @@ -260,7 +263,15 @@ } ], "default": false, - "docs": [], + "docs": [ + " This is callable by the owner(s) of the DAO (this would ideally be a multisig)", + " This message does not need to be voted on", + " It can be used to set assets owned by the DAO owners at the start of Dapp", + "", + " @param initial_assets, a list of IPFS CIDs of assets to be minted", + " This would be minted and owned by the DAO owners", + " This call would toggle the status of the has_set_default_assets to true" + ], "label": "set_default_assets", "mutates": true, "payable": false,