tx · BL6WzUzS4V8iZKh2LgsAyKSWESevFWsYFikKHAZPw6cB 3N2me6psvxFDQgqi18wBLSt6cRxWWEiMEt2: -0.01000000 Waves 2021.03.18 18:11 [1443337] smart account 3N2me6psvxFDQgqi18wBLSt6cRxWWEiMEt2 > SELF 0.00000000 Waves
{ "type": 13, "id": "BL6WzUzS4V8iZKh2LgsAyKSWESevFWsYFikKHAZPw6cB", "fee": 1000000, "feeAssetId": null, "timestamp": 1616080339478, "version": 2, "chainId": 84, "sender": "3N2me6psvxFDQgqi18wBLSt6cRxWWEiMEt2", "senderPublicKey": "DuyN9NT6MPnqGAZBnw2ExqZAiE6fsKkhu1wwAmxqhane", "proofs": [ "EiJARZNGGQSc5vGB4VSDMHZPbbVQNKXwuRdRRuCaZSNfms3kfVGaL1wkw3yodnTsjsyJqLgAL9rDR7pbko9WVCQ" ], "script": "base64:AAIEAAAAAAAAADwIAhIDCgEIEgQKAggIEgYKBAgICAESBAoCCAgSBAoCCAgSBgoECAgBCBIFCgMICAgSBAoCCAgSBAoCCAgAAAADAAAAAAtFTVRQWVNUUklORwIAAAAAAQAAABBnZXRTdHJpbmdGcm9tS2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAA3N0cgUAAAAHJG1hdGNoMAUAAAADc3RyBQAAAAtFTVRQWVNUUklORwEAAAANaXNWYWxpZFNlbmRlcgAAAAEAAAAGc2VuZGVyBAAAABVlbnRyeUZvclNlbmRlckFkZHJlc3MJAQAAABBnZXRTdHJpbmdGcm9tS2V5AAAAAQUAAAAGc2VuZGVyAwkAAAAAAAACBQAAABVlbnRyeUZvclNlbmRlckFkZHJlc3MFAAAAC0VNVFBZU1RSSU5HBwYAAAAJAAAAAWkBAAAAB2FkZFVzZXIAAAABAAAABG5hbWUEAAAABnNlbmRlcgkAAlgAAAABCAgFAAAAAWkAAAAG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8FAAAAEnJlcXVpcmVtZW50QWRkcmVzcwIAAAALX3Rhc2tTdGF0dXMCAAAABkNMT1NFRAUAAAADbmlsCQAAAgAAAAECAAAAKVNlbmRlciBub3QgYWxsb3dlZCB0byBjaGFuZ2UgdGFzayBzdGF0dXMhAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgHBOJQIg==", "height": 1443337, "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,p) = { | |
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), IntegerEntry((toBase58String(i.transactionId) + "_milestonePrice"), p)] | |
50 | + | else throw("Sender not allowed to add users!") | |
51 | + | } | |
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | @Callable(i) | |
56 | + | func setMilestoneRequirementRelation (q,r) = { | |
57 | + | let g = toBase58String(i.caller.bytes) | |
58 | + | if (f(g)) | |
59 | + | then [StringEntry((((toBase58String(i.transactionId) + "_milestone_") + q) + "_requirement"), r)] | |
60 | + | else throw("Sender not allowed to add users!") | |
61 | + | } | |
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | @Callable(i) | |
66 | + | func addAcceptanceCriteria (s,t) = { | |
67 | + | let g = toBase58String(i.caller.bytes) | |
68 | + | if (f(g)) | |
69 | + | then [StringEntry((((toBase58String(i.transactionId) + "_requirement_") + s) + "_acceptancecriteria"), t)] | |
70 | + | else throw("Sender not allowed to add users!") | |
71 | + | } | |
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | @Callable(i) | |
76 | + | func addCommit (s,u,v,w) = { | |
77 | + | let g = toBase58String(i.caller.bytes) | |
78 | + | if (f(g)) | |
79 | + | then [IntegerEntry((((((((toBase58String(i.transactionId) + "_requirement_") + s) + "_task_") + u) + "_user_") + g) + "_commitRows"), v), StringEntry((((((((toBase58String(i.transactionId) + "_requirement_") + s) + "_task_") + u) + "_user_") + g) + "_commitCreated"), w)] | |
80 | + | else throw("Sender not allowed to add commits!") | |
81 | + | } | |
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | @Callable(i) | |
86 | + | func addTask (s,x,y) = { | |
87 | + | let g = toBase58String(i.caller.bytes) | |
88 | + | if (f(g)) | |
89 | + | then [StringEntry((((toBase58String(i.transactionId) + "_requirement_") + s) + "_taskName"), x), StringEntry((((toBase58String(i.transactionId) + "_requirement_") + s) + "_taskDescription"), y), StringEntry((((toBase58String(i.transactionId) + "_requirement_") + s) + "_taskStatus"), "OPEN")] | |
90 | + | else throw("Sender not allowed to add task!") | |
91 | + | } | |
92 | + | ||
93 | + | ||
94 | + | ||
95 | + | @Callable(i) | |
96 | + | func changeTasksStatusToInProgress (s,u) = { | |
97 | + | let g = toBase58String(i.caller.bytes) | |
98 | + | if (f(g)) | |
99 | + | then [StringEntry((((u + "_requirement_") + s) + "_taskStatus"), "IN PROGRESS")] | |
100 | + | else throw("Sender not allowed to add users!") | |
101 | + | } | |
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | @Callable(i) | |
106 | + | func changeTasksStatusClosed (s,u) = { | |
107 | + | let g = toBase58String(i.caller.bytes) | |
108 | + | if (f(g)) | |
109 | + | then [StringEntry((((u + "_requirement_") + s) + "_taskStatus"), "CLOSED")] | |
110 | + | else throw("Sender not allowed to change task status!") | |
111 | + | } | |
112 | + | ||
113 | + | ||
114 | + | @Verifier(z) | |
115 | + | func A () = { | |
116 | + | let d = z | |
117 | + | false | |
118 | + | } | |
119 | + |
github/deemru/w8io/03bedc9 25.21 ms ◑![]()