tx · 8V9bQLexyksvaQ36m8JqzwiiJCjWTxHeGQDtpn5MB9Ux 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw: -0.00700000 Waves 2022.06.29 20:43 [2118051] smart account 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw > SELF 0.00000000 Waves
{ "type": 13, "id": "8V9bQLexyksvaQ36m8JqzwiiJCjWTxHeGQDtpn5MB9Ux", "fee": 700000, "feeAssetId": null, "timestamp": 1656524600351, "version": 2, "chainId": 84, "sender": "3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw", "senderPublicKey": "GTKqLSK6nuFkRdebB5SmTwTU2DnTeLMvhymCFfT2CxX2", "proofs": [ "5GZxBWthUypAsEM8WZ1Z7dbcUkZt1HiY4am8HEPH39ZZoeRRqjrmXf3LYiPBJpdLaeZLJtixLhby4rca5ujusEq2" ], "script": "base64:AAIFAAAAAAAAABcIAhIFCgMICAgSAwoBARIHCgUICAEBAQAAAAsAAAAABEJVc2QBAAAAIGsrEktRCjskKBCmlsxUo0LD8C59Qg7hhVJWuRyBH3UkAAAAAARVU0RUAQAAACAelAcTUnahJZX9yGGogl8Qf986Tym7/JpGP1r9Nk+fkQAAAAAEVVNEQwEAAAAgUjPZ4ZeIJuXiH8L96og0uId2o4yxg+/IYBx+ChJUJiUAAAAAA0JUQwEAAAAgbPpq/8XtqowLf7Uqk9KiDC+Cgtt0egSMU/v9Ex9zoP8AAAAAA0VUSAEAAAAgLiDD9uqKn4lRu7/oiBETNux+2MJCA3JlDVjNcyZCZYIAAAAAA0JOQgEAAAAgQnyvGYBO6gbAUKIMc3I0Nu0t3RwqcjgipjiYGOV8E04AAAAABFVTRE4BAAAAILYmKcME9c5TkaQOS3UkL2SMUbH6369UKb1I0h0qsqrRAAAAAARIQVNIAQAAACD5rl2FqqDB81weFWSW9S5FyKYquYAb4MpXXcAlqscPUAAAAAAES1VTRAEAAAAg1+9jQfE0Vf0cjpA9Jfb9hkQjLNxfTGu8B7HRQs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AAAADlBheW1lbnRBc3NldElkAwkAAAAAAAACBQAAAAZhbW91bnQAAAAAAAAAAAAJAAACAAAAAQIAAAAvVXNlcidzIGJhbGFuY2UgaXMgMCwgY2Fubm90IHJlYWxpemUgYW55IHBheW1lbnQJAAUUAAAAAgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACBQAAAARVc2VyAgAAAAhfUGF5bWVudAAAAAAAAAAAAAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAABFBZGRyZXNzRnJlZUxhbmNlcgkAAGkAAAACCQAAaAAAAAIFAAAADFRvRnJlZWxhbmNlcgUAAAAGYW1vdW50AAAAAAAAAABkBQAAAAlBc3NldFVzZWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAALQWRkcmVzc1VzZXIJAABpAAAAAgkAAGgAAAACBQAAAAZUb1VzZXIFAAAABmFtb3VudAAAAAAAAAAAZAUAAAAJQXNzZXRVc2VkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAACWRBcHBGcmVlcwkAAGkAAAACCQAAaAAAAAIFAAAACEFkbWluRmVlBQAAAAZhbW91bnQAAAAAAAAAAGQFAAAACUFzc2V0VXNlZAUAAAADbmlsBQAAAAlBc3NldFVzZWQAAAAABmOyVw==", "height": 2118051, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EDr6MnooQmhcZffEukVXtNNTnAdChHFrKVrbcY97ckLa Next: ELsgmzFSu45t4LusQxKdd7G6GF4PuCvA1Kus6sXs8cvM Diff:
Old | New | Differences | |
---|---|---|---|
15 | 15 | ||
16 | 16 | let g = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
17 | 17 | ||
18 | - | let h = base58' | |
18 | + | let h = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
19 | 19 | ||
20 | 20 | let i = base58'FXvNWA5Gfy8yLPHGScm6Gmn4DSZX9brFZ9qmEkPxAhGk' | |
21 | 21 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'8DLiYZjo3UUaRBTHU7Ayoqg4ihwb6YH1AfXrrhdjQ7K1' | |
5 | 5 | ||
6 | 6 | let b = base58'34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJ' | |
7 | 7 | ||
8 | 8 | let c = base58'6XtHjpXbs9RRJP2Sr9GUyVqzACcby9TkThHXnjVC5CDJ' | |
9 | 9 | ||
10 | 10 | let d = base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS' | |
11 | 11 | ||
12 | 12 | let e = base58'474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu' | |
13 | 13 | ||
14 | 14 | let f = base58'5UYBPpq4WoU5n4MwpFkgJnW3Fq4B1u3ukpK33ik4QerR' | |
15 | 15 | ||
16 | 16 | let g = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
17 | 17 | ||
18 | - | let h = base58' | |
18 | + | let h = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
19 | 19 | ||
20 | 20 | let i = base58'FXvNWA5Gfy8yLPHGScm6Gmn4DSZX9brFZ9qmEkPxAhGk' | |
21 | 21 | ||
22 | 22 | let j = base58'3PG1NyiC2rdgX46jb8c5zPGuEAzWXhr4L2W' | |
23 | 23 | ||
24 | 24 | let k = base58'3PLv5rYMqR4gSiP5ZSjrX2FStLhHTRgFPbb' | |
25 | 25 | ||
26 | 26 | @Callable(l) | |
27 | 27 | func DepositFunds (m,n,o) = { | |
28 | 28 | let p = (toBase58String(l.caller.bytes) + "_Payment") | |
29 | 29 | let q = { | |
30 | 30 | let r = getInteger(this, p) | |
31 | 31 | if ($isInstanceOf(r, "Int")) | |
32 | 32 | then { | |
33 | 33 | let s = r | |
34 | 34 | s | |
35 | 35 | } | |
36 | 36 | else 0 | |
37 | 37 | } | |
38 | 38 | if ((q != 0)) | |
39 | 39 | then throw("You have already deposited funds, deposits can only be done once") | |
40 | 40 | else { | |
41 | 41 | let t = if ((size(l.payments) == 1)) | |
42 | 42 | then l.payments[0] | |
43 | 43 | else throw("Attached payment is required") | |
44 | 44 | if (if (if (if (if (if (if (if (if (if (if ((0 >= t.amount)) | |
45 | 45 | then (t.assetId != a) | |
46 | 46 | else false) | |
47 | 47 | then (t.assetId != b) | |
48 | 48 | else false) | |
49 | 49 | then (t.assetId != c) | |
50 | 50 | else false) | |
51 | 51 | then (t.assetId != d) | |
52 | 52 | else false) | |
53 | 53 | then (t.assetId != e) | |
54 | 54 | else false) | |
55 | 55 | then (t.assetId != f) | |
56 | 56 | else false) | |
57 | 57 | then (t.assetId != g) | |
58 | 58 | else false) | |
59 | 59 | then (t.assetId != h) | |
60 | 60 | else false) | |
61 | 61 | then (t.assetId != i) | |
62 | 62 | else false) | |
63 | 63 | then isDefined(t.assetId) | |
64 | 64 | else false) | |
65 | 65 | then throw("Can only deposit accepted tokens, and amount should be positive") | |
66 | 66 | else if (if (if ((m == "")) | |
67 | 67 | then true | |
68 | 68 | else (n == "")) | |
69 | 69 | then true | |
70 | 70 | else (o == "")) | |
71 | 71 | then throw("Job Scope, Deliverables desc and Freelancer Wallet Address cannot be empty") | |
72 | 72 | else { | |
73 | 73 | let u = if (isDefined(t.assetId)) | |
74 | 74 | then toBase58String(value(t.assetId)) | |
75 | 75 | else "Waves" | |
76 | 76 | [StringEntry((toBase58String(l.caller.bytes) + "_Scope"), m), StringEntry((toBase58String(l.caller.bytes) + "_Deliv"), n), StringEntry((toBase58String(l.caller.bytes) + "_Asset"), u), StringEntry((toBase58String(l.caller.bytes) + "_Freelancer"), o), IntegerEntry((toBase58String(l.caller.bytes) + "_Payment"), t.amount)] | |
77 | 77 | } | |
78 | 78 | } | |
79 | 79 | } | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | ||
83 | 83 | @Callable(l) | |
84 | 84 | func PayFreelancer (v) = { | |
85 | 85 | let p = (toBase58String(l.caller.bytes) + "_Payment") | |
86 | 86 | let o = (toBase58String(l.caller.bytes) + "_Freelancer") | |
87 | 87 | let w = (toBase58String(l.caller.bytes) + "_Asset") | |
88 | 88 | let x = (toBase58String(l.caller.bytes) + "_Paidtrx") | |
89 | 89 | let q = { | |
90 | 90 | let r = getInteger(this, p) | |
91 | 91 | if ($isInstanceOf(r, "Int")) | |
92 | 92 | then { | |
93 | 93 | let s = r | |
94 | 94 | s | |
95 | 95 | } | |
96 | 96 | else 0 | |
97 | 97 | } | |
98 | 98 | let y = { | |
99 | 99 | let r = getInteger(this, x) | |
100 | 100 | if ($isInstanceOf(r, "Int")) | |
101 | 101 | then { | |
102 | 102 | let s = r | |
103 | 103 | s | |
104 | 104 | } | |
105 | 105 | else 0 | |
106 | 106 | } | |
107 | 107 | let z = getStringValue(this, o) | |
108 | 108 | let A = getStringValue(this, w) | |
109 | 109 | let B = if (if (if (if ((A == toBase58String(value(a)))) | |
110 | 110 | then true | |
111 | 111 | else (A == toBase58String(value(b)))) | |
112 | 112 | then true | |
113 | 113 | else (A == toBase58String(value(c)))) | |
114 | 114 | then true | |
115 | 115 | else (A == toBase58String(value(g)))) | |
116 | 116 | then 1000000 | |
117 | 117 | else 100000000 | |
118 | 118 | let C = addressFromStringValue(z) | |
119 | 119 | let D = Address(j) | |
120 | 120 | let u = if ((A == "Waves")) | |
121 | 121 | then unit | |
122 | 122 | else fromBase58String(A) | |
123 | 123 | if (if ((0 > (q - (v * B)))) | |
124 | 124 | then true | |
125 | 125 | else (q == 0)) | |
126 | 126 | then throw(("You do not have enough funds to make payment, your available funds are: " + toString((q / B)))) | |
127 | 127 | else if (if ((y >= 12)) | |
128 | 128 | then (q > 0) | |
129 | 129 | else false) | |
130 | 130 | then throw("You have already done 12 payments, you cannot make more payments") | |
131 | 131 | else { | |
132 | 132 | let E = if ((y == 11)) | |
133 | 133 | then 0 | |
134 | 134 | else (q - (v * B)) | |
135 | 135 | let F = if ((y == 11)) | |
136 | 136 | then ((95 * q) / 100) | |
137 | 137 | else (((95 * v) * B) / 100) | |
138 | 138 | let G = if ((y == 11)) | |
139 | 139 | then ((5 * q) / 100) | |
140 | 140 | else (((5 * v) * B) / 100) | |
141 | 141 | let H = if (if ((y == 11)) | |
142 | 142 | then true | |
143 | 143 | else (E == 0)) | |
144 | 144 | then 0 | |
145 | 145 | else (y + 1) | |
146 | 146 | $Tuple2([IntegerEntry((toBase58String(l.caller.bytes) + "_Payment"), E), IntegerEntry((toBase58String(l.caller.bytes) + "_Paidtrx"), H), IntegerEntry((toBase58String(l.caller.bytes) + "_Payment2Freelance"), F), ScriptTransfer(C, F, u), ScriptTransfer(D, G, u)], u) | |
147 | 147 | } | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | ||
152 | 152 | @Callable(l) | |
153 | 153 | func AdminTransfer (I,J,K,L,M) = if ((l.caller.bytes != k)) | |
154 | 154 | then throw("Only Admin can do this") | |
155 | 155 | else if ((((L + K) + M) != 100)) | |
156 | 156 | then throw("Total of Percentages cannot be different from 100%") | |
157 | 157 | else { | |
158 | 158 | let p = (I + "_Payment") | |
159 | 159 | let o = (I + "_Freelancer") | |
160 | 160 | let w = (I + "_Asset") | |
161 | 161 | let q = { | |
162 | 162 | let r = getInteger(this, p) | |
163 | 163 | if ($isInstanceOf(r, "Int")) | |
164 | 164 | then { | |
165 | 165 | let s = r | |
166 | 166 | s | |
167 | 167 | } | |
168 | 168 | else 0 | |
169 | 169 | } | |
170 | 170 | let z = getStringValue(this, o) | |
171 | 171 | let C = addressFromStringValue(z) | |
172 | 172 | let A = getStringValue(this, w) | |
173 | 173 | let D = Address(j) | |
174 | 174 | let N = addressFromStringValue(I) | |
175 | 175 | let u = if ((A == "Waves")) | |
176 | 176 | then unit | |
177 | 177 | else fromBase58String(A) | |
178 | 178 | if ((q == 0)) | |
179 | 179 | then throw("User's balance is 0, cannot realize any payment") | |
180 | 180 | else $Tuple2([IntegerEntry((I + "_Payment"), 0), ScriptTransfer(C, ((K * q) / 100), u), ScriptTransfer(N, ((L * q) / 100), u), ScriptTransfer(D, ((M * q) / 100), u)], u) | |
181 | 181 | } | |
182 | 182 | ||
183 | 183 |
github/deemru/w8io/169f3d6 48.52 ms ◑