tx · He3qQYAotDYyBDLrrqX3LDvy9yHnm8knnzEHF35fHBd8 3NBTaQWocEgTPqF54fZR1Rr8vr5FczGtQGi: -0.01000000 Waves 2021.03.16 23:05 [1440728] smart account 3NBTaQWocEgTPqF54fZR1Rr8vr5FczGtQGi > SELF 0.00000000 Waves
{ "type": 13, "id": "He3qQYAotDYyBDLrrqX3LDvy9yHnm8knnzEHF35fHBd8", "fee": 1000000, "feeAssetId": null, "timestamp": 1615925194504, "version": 2, "chainId": 84, "sender": "3NBTaQWocEgTPqF54fZR1Rr8vr5FczGtQGi", "senderPublicKey": "GLPHtR6QPHrUisuaagr4XDucurAjnjoYnTfZfp8pXxT7", "proofs": [ "3ih263wzy7673jKNbG8CqZGRyxFC9Xgh2sUmX3uZAC65ytajsGYNcjTRH8eM57xhRAnVFWDiyZrZUwyMYQx3vhBY" ], "script": "base64:AAIEAAAAAAAAADMIAhIDCgEIEgQKAggIEgUKAwgICBIECgIICBIECgIICBIFCgMICAgSBAoCCAgSBAoCCAgAAAADAAAAAAtFTVRQWVNUUklORwIAAAAAAQAAABBnZXRTdHJpbmdGcm9tS2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAA3N0cgUAAAAHJG1hdGNoMAUAAAADc3RyBQAAAAtFTVRQWVNUUklORwEAAAANaXNWYWxpZFNlbmRlcgAAAAEAAAAGc2VuZGVyBAAAABVlbnRyeUZvclNlbmRlckFkZHJlc3MJAQAAABBnZXRTdHJpbmdGcm9tS2V5AAAAAQUAAAAGc2VuZGVyAwkAAAAAAAACBQAAABVlbnRyeUZvclNlbmRlckFkZHJlc3MFAAAAC0VNVFBZU1RSSU5HBwYAAAAIAAAAAWkBAAAAB2FkZFVzZXIAAAABAAAABG5hbWUEAAAABnNlbmRlcgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dG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ALX3Rhc2tTdGF0dXMCAAAABkNMT1NFRAUAAAADbmlsCQAAAgAAAAECAAAAIFNlbmRlciBub3QgYWxsb3dlZCB0byBhZGQgdXNlcnMhAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgH7QoMig==", "height": 1440728, "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 a = "" | |
5 | + | ||
6 | + | func b (c) = { | |
7 | + | let d = getString(this, c) | |
8 | + | if ($isInstanceOf(d, "String")) | |
9 | + | then { | |
10 | + | let e = d | |
11 | + | e | |
12 | + | } | |
13 | + | else a | |
14 | + | } | |
15 | + | ||
16 | + | ||
17 | + | func f (g) = { | |
18 | + | let h = b(g) | |
19 | + | if ((h == a)) | |
20 | + | then false | |
21 | + | else true | |
22 | + | } | |
23 | + | ||
24 | + | ||
25 | + | @Callable(i) | |
26 | + | func addUser (j) = { | |
27 | + | let g = toBase58String(i.caller.bytes) | |
28 | + | if (f(g)) | |
29 | + | then [StringEntry((toBase58String(i.transactionId) + "_user"), j)] | |
30 | + | else throw("Sender not allowed to add users!") | |
31 | + | } | |
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | @Callable(i) | |
36 | + | func addRequirement (k,l) = { | |
37 | + | let g = toBase58String(i.caller.bytes) | |
38 | + | if (f(g)) | |
39 | + | then [StringEntry((toBase58String(i.transactionId) + "_requirementName"), k), StringEntry((toBase58String(i.transactionId) + "_requirementDescription"), l)] | |
40 | + | else throw("Sender not allowed to add users!") | |
41 | + | } | |
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | @Callable(i) | |
46 | + | func addMilestone (m,n,o) = { | |
47 | + | let g = toBase58String(i.caller.bytes) | |
48 | + | if (f(g)) | |
49 | + | then [StringEntry((toBase58String(i.transactionId) + "_milestoneDef"), m), StringEntry((toBase58String(i.transactionId) + "_milestoneEstimatedDate"), n), StringEntry((toBase58String(i.transactionId) + "_milestoneCreatedDate"), o)] | |
50 | + | else throw("Sender not allowed to add users!") | |
51 | + | } | |
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | @Callable(i) | |
56 | + | func setMilestoneRequirementRelation (p,q) = { | |
57 | + | let g = toBase58String(i.caller.bytes) | |
58 | + | if (f(g)) | |
59 | + | then [StringEntry((((toBase58String(i.transactionId) + "_milestone_") + p) + "_requirement"), q)] | |
60 | + | else throw("Sender not allowed to add users!") | |
61 | + | } | |
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | @Callable(i) | |
66 | + | func addAcceptanceCriteria (r,s) = { | |
67 | + | let g = toBase58String(i.caller.bytes) | |
68 | + | if (f(g)) | |
69 | + | then [StringEntry((((toBase58String(i.transactionId) + "_requirement_") + r) + "_acceptancecriteria"), s)] | |
70 | + | else throw("Sender not allowed to add users!") | |
71 | + | } | |
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | @Callable(i) | |
76 | + | func addTask (r,t,u) = { | |
77 | + | let g = toBase58String(i.caller.bytes) | |
78 | + | if (f(g)) | |
79 | + | then [StringEntry((((toBase58String(i.transactionId) + "_requirement_") + r) + "_taskName"), t), StringEntry((((toBase58String(i.transactionId) + "_requirement_") + r) + "_taskDescription"), u), StringEntry((((toBase58String(i.transactionId) + "_requirement_") + r) + "_taskStatus"), "OPEN")] | |
80 | + | else throw("Sender not allowed to add users!") | |
81 | + | } | |
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | @Callable(i) | |
86 | + | func changeTasksStatusToInProgress (r,v) = { | |
87 | + | let g = toBase58String(i.caller.bytes) | |
88 | + | if (f(g)) | |
89 | + | then [StringEntry((((v + "_requirement_") + r) + "_taskStatus"), "IN PROGRESS")] | |
90 | + | else throw("Sender not allowed to add users!") | |
91 | + | } | |
92 | + | ||
93 | + | ||
94 | + | ||
95 | + | @Callable(i) | |
96 | + | func changeTasksStatusToClosed (r,v) = { | |
97 | + | let g = toBase58String(i.caller.bytes) | |
98 | + | if (f(g)) | |
99 | + | then [StringEntry((((v + "_requirement_") + r) + "_taskStatus"), "CLOSED")] | |
100 | + | else throw("Sender not allowed to add users!") | |
101 | + | } | |
102 | + | ||
103 | + | ||
104 | + | @Verifier(w) | |
105 | + | func x () = { | |
106 | + | let d = w | |
107 | + | false | |
108 | + | } | |
109 | + |
github/deemru/w8io/03bedc9 17.43 ms ◑![]()