tx · 8NfALHgwMxkYDH8F4Qa8p21nZt8DXTfgAUebbdqhVibR 3N6gF7NyupjCdi74rKjeFAtAtuQWVPqeHTL: -0.01000000 Waves 2021.04.05 20:58 [1469482] smart account 3N6gF7NyupjCdi74rKjeFAtAtuQWVPqeHTL > SELF 0.00000000 Waves
{ "type": 13, "id": "8NfALHgwMxkYDH8F4Qa8p21nZt8DXTfgAUebbdqhVibR", "fee": 1000000, "feeAssetId": null, "timestamp": 1617645608693, "version": 2, "chainId": 84, "sender": "3N6gF7NyupjCdi74rKjeFAtAtuQWVPqeHTL", "senderPublicKey": "J725jYwG4B4KBuPPaBpb54ot1QHmKsZrRZ6wPfP8kPab", "proofs": [ "64LifjBEPExWG4eYYnS4nxTosVNEaitAiZQsVLcoPQZ3j37V3JVGfCMFDH5SyVkgCo6kuU5quAQoPPQkBk9DTgqV" ], "script": "base64:AAIEAAAAAAAAAEgIAhIECgIICBIECgIICBIGCgQICAgBEgMKAQgSBAoCCAgSBAoCCAgSBAoCCAgSBgoECAgBCBIFCgMICAgSBAoCCAgSBAoCCAgAAAADAAAAAAtFTVRQWVNUUklORwIAAAAAAQAAABBnZXRTdHJpbmdGcm9tS2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAA3N0cgUAAAAHJG1hdGNoMAUAAAADc3RyBQAAAAtFTVRQWVNUUklORwEAAAANaXNWYWxpZFNlbmRlcgAAAAEAAAAGc2VuZGVyBAAAABVlbnRyeUZvclNlbmRlckFkZHJlc3MJAQAAABBnZXRTdHJpbmdGcm9tS2V5AAAAAQUAAAAGc2VuZGVyAwkAAAAAAAACBQAAABVlbnRyeUZvclNlbmRlckFkZHJlc3MFAAAAC0VNVFBZU1RSSU5HBwYAAAALAAAAAWkBAAAAB2FkZFVzZXIAAAACAAAAC3VzZXJBZGRyZXNzAAAABG5hbWUEAAAAB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tBZGRyZXNzBAAAAAZzZW5kZXIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAQAAAA1pc1ZhbGlkU2VuZGVyAAAAAQUAAAAGc2VuZGVyCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAAC3Rhc2tBZGRyZXNzAgAAAA1fcmVxdWlyZW1lbnRfBQAAABJyZXF1aXJlbWVudEFkZHJlc3MCAAAAC190YXNrU3RhdHVzAgAAAAZDTE9TRUQFAAAAA25pbAkAAAIAAAABAgAAAClTZW5kZXIgbm90IGFsbG93ZWQgdG8gY2hhbmdlIHRhc2sgc3RhdHVzIQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4B7bqDzI=", "height": 1469482, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let EMTPYSTRING = "" | |
5 | + | ||
6 | + | func getStringFromKey (key) = match getString(this, key) { | |
7 | + | case str: String => | |
8 | + | str | |
9 | + | case _ => | |
10 | + | EMTPYSTRING | |
11 | + | } | |
12 | + | ||
13 | + | ||
14 | + | func isValidSender (sender) = { | |
15 | + | let entryForSenderAddress = getStringFromKey(sender) | |
16 | + | if ((entryForSenderAddress == EMTPYSTRING)) | |
17 | + | then false | |
18 | + | else true | |
19 | + | } | |
20 | + | ||
21 | + | ||
22 | + | @Callable(i) | |
23 | + | func addUser (userAddress,name) = { | |
24 | + | let sender = toBase58String(i.caller.bytes) | |
25 | + | if (isValidSender(sender)) | |
26 | + | then [StringEntry(userAddress, "user"), StringEntry((userAddress + "_user"), name)] | |
27 | + | else throw("Sender not allowed to add users!") | |
28 | + | } | |
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | @Callable(i) | |
33 | + | func addRequirement (requirement,requirementDescription) = { | |
34 | + | let sender = toBase58String(i.caller.bytes) | |
35 | + | if (isValidSender(sender)) | |
36 | + | then [StringEntry((toBase58String(i.transactionId) + "_requirementName"), requirement), StringEntry((toBase58String(i.transactionId) + "_requirementDescription"), requirementDescription)] | |
37 | + | else throw("Sender not allowed to add users!") | |
38 | + | } | |
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | @Callable(i) | |
43 | + | func addMilestone (milestone,estimatedDate,createdDate,price) = { | |
44 | + | let sender = toBase58String(i.caller.bytes) | |
45 | + | if (isValidSender(sender)) | |
46 | + | then [StringEntry((toBase58String(i.transactionId) + "_milestoneDef"), milestone), StringEntry((toBase58String(i.transactionId) + "_milestoneEstimatedDate"), estimatedDate), StringEntry((toBase58String(i.transactionId) + "_milestoneCreatedDate"), createdDate), IntegerEntry((toBase58String(i.transactionId) + "_milestonePrice"), price), BooleanEntry((toBase58String(i.transactionId) + "_milestoneDone"), false)] | |
47 | + | else throw("Sender not allowed to add users!") | |
48 | + | } | |
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | @Callable(i) | |
53 | + | func markMilestoneAsDone (milestoneAddress) = { | |
54 | + | let sender = toBase58String(i.caller.bytes) | |
55 | + | if (isValidSender(sender)) | |
56 | + | then [BooleanEntry((milestoneAddress + "_milestoneDone"), true)] | |
57 | + | else throw("Sender not allowed to add users!") | |
58 | + | } | |
59 | + | ||
60 | + | ||
61 | + | ||
62 | + | @Callable(i) | |
63 | + | func setMilestoneRequirementRelation (milestoneTransactionId,requirementTransactionId) = { | |
64 | + | let sender = toBase58String(i.caller.bytes) | |
65 | + | if (isValidSender(sender)) | |
66 | + | then [StringEntry((((toBase58String(i.transactionId) + "_milestone_") + milestoneTransactionId) + "_requirement"), requirementTransactionId)] | |
67 | + | else throw("Sender not allowed to add users!") | |
68 | + | } | |
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | @Callable(i) | |
73 | + | func addAcceptanceCriteria (requirementAddress,acceptanceCriteria) = { | |
74 | + | let sender = toBase58String(i.caller.bytes) | |
75 | + | if (isValidSender(sender)) | |
76 | + | then [StringEntry((((toBase58String(i.transactionId) + "_requirement_") + requirementAddress) + "_acceptancecriteria"), acceptanceCriteria), BooleanEntry((((toBase58String(i.transactionId) + "_requirement_") + requirementAddress) + "_acceptancecriteriaSolved"), false)] | |
77 | + | else throw("Sender not allowed to add users!") | |
78 | + | } | |
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | @Callable(i) | |
83 | + | func markAcceptanceCriteriaAsSolved (requirementAddress,acceptanceCriteriaAddress) = { | |
84 | + | let sender = toBase58String(i.caller.bytes) | |
85 | + | if (isValidSender(sender)) | |
86 | + | then [BooleanEntry((((acceptanceCriteriaAddress + "_requirement_") + requirementAddress) + "_acceptancecriteriaSolved"), true)] | |
87 | + | else throw("Sender not allowed to add users!") | |
88 | + | } | |
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | @Callable(i) | |
93 | + | func addCommit (requirementAddress,taskAddress,amountCodeRows,createdAt) = { | |
94 | + | let sender = toBase58String(i.caller.bytes) | |
95 | + | if (isValidSender(sender)) | |
96 | + | then [IntegerEntry((((((((toBase58String(i.transactionId) + "_requirement_") + requirementAddress) + "_task_") + taskAddress) + "_user_") + sender) + "_commitRows"), amountCodeRows), StringEntry((((((((toBase58String(i.transactionId) + "_requirement_") + requirementAddress) + "_task_") + taskAddress) + "_user_") + sender) + "_commitCreated"), createdAt)] | |
97 | + | else throw("Sender not allowed to add commits!") | |
98 | + | } | |
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | @Callable(i) | |
103 | + | func addTask (requirementAddress,taskname,taskdescrription) = { | |
104 | + | let sender = toBase58String(i.caller.bytes) | |
105 | + | if (isValidSender(sender)) | |
106 | + | then [StringEntry((((toBase58String(i.transactionId) + "_requirement_") + requirementAddress) + "_taskName"), taskname), StringEntry((((toBase58String(i.transactionId) + "_requirement_") + requirementAddress) + "_taskDescription"), taskdescrription), StringEntry((((toBase58String(i.transactionId) + "_requirement_") + requirementAddress) + "_taskStatus"), "OPEN")] | |
107 | + | else throw("Sender not allowed to add task!") | |
108 | + | } | |
109 | + | ||
110 | + | ||
111 | + | ||
112 | + | @Callable(i) | |
113 | + | func changeTasksStatusToInProgress (requirementAddress,taskAddress) = { | |
114 | + | let sender = toBase58String(i.caller.bytes) | |
115 | + | if (isValidSender(sender)) | |
116 | + | then [StringEntry((((taskAddress + "_requirement_") + requirementAddress) + "_taskStatus"), "IN PROGRESS")] | |
117 | + | else throw("Sender not allowed to add users!") | |
118 | + | } | |
119 | + | ||
120 | + | ||
121 | + | ||
122 | + | @Callable(i) | |
123 | + | func changeTasksStatusClosed (requirementAddress,taskAddress) = { | |
124 | + | let sender = toBase58String(i.caller.bytes) | |
125 | + | if (isValidSender(sender)) | |
126 | + | then [StringEntry((((taskAddress + "_requirement_") + requirementAddress) + "_taskStatus"), "CLOSED")] | |
127 | + | else throw("Sender not allowed to change task status!") | |
128 | + | } | |
129 | + | ||
130 | + | ||
131 | + | @Verifier(tx) | |
132 | + | func verify () = match tx { | |
133 | + | case _ => | |
134 | + | false | |
135 | + | } | |
136 | + |
github/deemru/w8io/169f3d6 33.25 ms ◑