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