tx · 8Cx1HAbJUpWtxcSnu3NHbsMp3tVyZoAU9PEpbRpLugcm 3MqsDXvFU9WM8hEzCcrw2aVGtVimCgbNeXD: -0.00700000 Waves 2024.04.24 10:03 [3076592] smart account 3MqsDXvFU9WM8hEzCcrw2aVGtVimCgbNeXD > SELF 0.00000000 Waves
{ "type": 13, "id": "8Cx1HAbJUpWtxcSnu3NHbsMp3tVyZoAU9PEpbRpLugcm", "fee": 700000, "feeAssetId": null, "timestamp": 1713942227226, "version": 1, "sender": "3MqsDXvFU9WM8hEzCcrw2aVGtVimCgbNeXD", "senderPublicKey": "4dNR2Up6mpwUEcy9WQuE2wAzR7HRURa6Pk9jrFKgcHqB", "proofs": [ "eiLBiTtFafoDzTwwgPr1pRnqtqsbqQQMkug2WYSCvzSzixhUDtkiRMfZ8wvdUiPxnKMHsHgCd7nbe2qJR4GxPC5" ], "script": "base64:BgISCAISBAoCCAQSAwoBCBIDCgEIDgAQY29udHJhY3RGaWxlbmFtZQIOZm9yY2VzdG9wLnJpZGUAA1NFUAICX18BB3dyYXBFcnIBA21zZwkAuQkCCQDMCAIFEGNvbnRyYWN0RmlsZW5hbWUJAMwIAgICOiAJAMwIAgUDbXNnBQNuaWwCAAEIdGhyb3dFcnIBA21zZwkAAgEJAQd3cmFwRXJyAQUDbXNnARZrZXlNYW5hZ2VyVmF1bHRBZGRyZXNzAAkAuQkCCQDMCAICAiVzCQDMCAICE21hbmFnZXJWYXVsdEFkZHJlc3MFA25pbAUDU0VQARNrZXlNYW5hZ2VyUHVibGljS2V5AAkAuQkCCQDMCAICAiVzCQDMCAICEG1hbmFnZXJQdWJsaWNLZXkFA25pbAUDU0VQARFrZXlQZXJtaXNzaW9uTGlzdAAJALkJAgkAzAgCAgIlcwkAzAgCAhNmb3JjZVN0b3BQZXJtaXNzaW9uBQNuaWwFA1NFUAEMa2V5Rm9yY2VTdG9wAQdhZGRyZXNzCQC5CQIJAMwIAgIEJXMlcwkAzAgCAghkaXNhYmxlZAkAzAgC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hZ2UCCQDPCAIFDnBlcm1pc3Npb25MaXN0BQdhZGRyZXNzCQCsAgIFB2FkZHJlc3MJAQd3cmFwRXJyAQILbm90IGluIGxpc3QEB25ld0xpc3QJANEIAgUOcGVybWlzc2lvbkxpc3QFB3JfaW5kZXgEDW5ld0xpc3RTdHJpbmcJALkJAgUHbmV3TGlzdAUDU0VQCQDMCAIJAQtTdHJpbmdFbnRyeQIJARFrZXlQZXJtaXNzaW9uTGlzdAAFDW5ld0xpc3RTdHJpbmcFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAED3RhcmdldFB1YmxpY0tleQQHJG1hdGNoMAkBFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEAnBrBQckbWF0Y2gwBQJwawMJAAECBQckbWF0Y2gwAgRVbml0CAUCdHgPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFD3RhcmdldFB1YmxpY0tleRUwdvk=", "chainId": 84, "height": 3076592, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 76P5DacsbzZJgyU8699u2EDCk99F6FiquQyANm7cDgMC Next: EJ2n5W4ojcrQFpNA5Tk8LhNzb14NWrMdYwfT4r1nLX2H Diff:
Old | New | Differences | |
---|---|---|---|
20 | 20 | func h () = makeString(["%s", "forceStopPermission"], b) | |
21 | 21 | ||
22 | 22 | ||
23 | - | func i (j) = makeString(["%s%s", " | |
23 | + | func i (j) = makeString(["%s%s", "disabled", j], b) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | let k = split(valueOrElse(getString(this, h()), ""), b) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "forcestop.ride" | |
5 | 5 | ||
6 | 6 | let b = "__" | |
7 | 7 | ||
8 | 8 | func c (d) = makeString([a, ": ", d], "") | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | func e (d) = throw(c(d)) | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func f () = makeString(["%s", "managerVaultAddress"], b) | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func g () = makeString(["%s", "managerPublicKey"], b) | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func h () = makeString(["%s", "forceStopPermission"], b) | |
21 | 21 | ||
22 | 22 | ||
23 | - | func i (j) = makeString(["%s%s", " | |
23 | + | func i (j) = makeString(["%s%s", "disabled", j], b) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | let k = split(valueOrElse(getString(this, h()), ""), b) | |
27 | 27 | ||
28 | 28 | let l = e("Permission denied") | |
29 | 29 | ||
30 | 30 | func m () = { | |
31 | 31 | let n = getString(f()) | |
32 | 32 | if ($isInstanceOf(n, "String")) | |
33 | 33 | then { | |
34 | 34 | let o = n | |
35 | 35 | addressFromStringValue(o) | |
36 | 36 | } | |
37 | 37 | else this | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func p () = { | |
42 | 42 | let q = m() | |
43 | 43 | let n = getString(q, g()) | |
44 | 44 | if ($isInstanceOf(n, "String")) | |
45 | 45 | then { | |
46 | 46 | let o = n | |
47 | 47 | fromBase58String(o) | |
48 | 48 | } | |
49 | 49 | else if ($isInstanceOf(n, "Unit")) | |
50 | 50 | then unit | |
51 | 51 | else throw("Match error") | |
52 | 52 | } | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func r (s) = if ((s.caller == this)) | |
56 | 56 | then true | |
57 | 57 | else l | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func t (s) = { | |
61 | 61 | let n = p() | |
62 | 62 | if ($isInstanceOf(n, "ByteVector")) | |
63 | 63 | then { | |
64 | 64 | let u = n | |
65 | 65 | if ((s.callerPublicKey == u)) | |
66 | 66 | then true | |
67 | 67 | else l | |
68 | 68 | } | |
69 | 69 | else if ($isInstanceOf(n, "Unit")) | |
70 | 70 | then r(s) | |
71 | 71 | else throw("Match error") | |
72 | 72 | } | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | @Callable(s) | |
76 | 76 | func forceStopContract (j,v) = { | |
77 | 77 | let w = toString(s.caller) | |
78 | 78 | let x = [if (containsElement(k, w)) | |
79 | 79 | then true | |
80 | 80 | else t(s)] | |
81 | 81 | if ((x == x)) | |
82 | 82 | then [BooleanEntry(i(j), v)] | |
83 | 83 | else throw("Strict value is not equal to itself.") | |
84 | 84 | } | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | ||
88 | 88 | @Callable(s) | |
89 | 89 | func addPermission (j) = { | |
90 | 90 | let x = [t(s), if (!(containsElement(k, j))) | |
91 | 91 | then true | |
92 | 92 | else e("already in permission list")] | |
93 | 93 | if ((x == x)) | |
94 | 94 | then { | |
95 | 95 | let y = (k :+ j) | |
96 | 96 | let z = makeString(y, b) | |
97 | 97 | [StringEntry(h(), z)] | |
98 | 98 | } | |
99 | 99 | else throw("Strict value is not equal to itself.") | |
100 | 100 | } | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | ||
104 | 104 | @Callable(s) | |
105 | 105 | func removePermission (j) = { | |
106 | 106 | let x = [t(s), if (containsElement(k, j)) | |
107 | 107 | then true | |
108 | 108 | else e("not in permission list")] | |
109 | 109 | if ((x == x)) | |
110 | 110 | then { | |
111 | 111 | let A = valueOrErrorMessage(indexOf(k, j), (j + c("not in list"))) | |
112 | 112 | let y = removeByIndex(k, A) | |
113 | 113 | let z = makeString(y, b) | |
114 | 114 | [StringEntry(h(), z)] | |
115 | 115 | } | |
116 | 116 | else throw("Strict value is not equal to itself.") | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | @Verifier(B) | |
121 | 121 | func C () = { | |
122 | 122 | let D = { | |
123 | 123 | let n = p() | |
124 | 124 | if ($isInstanceOf(n, "ByteVector")) | |
125 | 125 | then { | |
126 | 126 | let u = n | |
127 | 127 | u | |
128 | 128 | } | |
129 | 129 | else if ($isInstanceOf(n, "Unit")) | |
130 | 130 | then B.senderPublicKey | |
131 | 131 | else throw("Match error") | |
132 | 132 | } | |
133 | 133 | sigVerify(B.bodyBytes, B.proofs[0], D) | |
134 | 134 | } | |
135 | 135 |
github/deemru/w8io/169f3d6 42.82 ms ◑