tx · 5gBcHjRZgp4KYytFTRAVGzkW1Yz67hEZaT5Ta15ZFkKi

3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz:  -0.00800000 Waves

2023.02.13 10:10 [2447513] smart account 3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz > SELF 0.00000000 Waves

{ "type": 13, "id": "5gBcHjRZgp4KYytFTRAVGzkW1Yz67hEZaT5Ta15ZFkKi", "fee": 800000, "feeAssetId": null, "timestamp": 1676272242788, "version": 2, "chainId": 84, "sender": "3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz", "senderPublicKey": "C3v9sfZTmGuW7YXwjUKypU41QpFcHCoJxLpvdR4d3iSv", "proofs": [ "4H6PWfDu1P9nDjpEh1WeHjy7NLktiVqLncM4uqCTScCfoSzUDyCMtpe5hrzB3ZZkobAD3b7cbumtgZP8HCUAsjCZ", "WviCtUoxB3FPvir1kwBg8sk6D3gDQ65V58ZTwVcozu5NPxNjbfh1v6hXfR9g45rhjxN59K5GHkbNFLXoyKzxQe3" ], "script": "base64:BgImCAISBAoCAQgSBAoCCAgSAwoBCBIDCgEEEgMKAQgSAwoBCBIAEgAUAA9rUHJlZml4UG9vbE5hbWUCBXBvb2xfABFrUHJlZml4RGVwcmVjYXRlZAILZGVwcmVjYXRlZF8ABWtQYWlyAgVwYWlyXwAJa0Fzc2V0SWRBAgpBX2Fzc2V0X2lkAAlrQXNzZXRJZEICCkJfYXNzZXRfaWQAH2tMYXVuY2hwYWREYXRhVHJhbnNhY3Rpb25TdGF0dXMCIWxhdW5jaHBhZF9kYXRhX3RyYW5zYWN0aW9uX3N0YXR1cwATa0FjdGl2ZUFsbENvbnRyYWN0cwIUYWN0aXZlX2FsbF9jb250cmFjdHMADGtBZG1pblB1YktleQIKYWRtaW5fcHViXwANa0FkbWluUHViS2V5MQILYWRtaW5fcHViXzEADWtBZG1pblB1YktleTICC2FkbWluX3B1Yl8yAA1rQWRtaW5QdWJLZXkzAgthZG1pbl9wdWJfM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VkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkxAAEAAAQSYWRtaW5QdWJLZXkyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUMYWRtaW5QdWJLZXkyAAEAAAQSYWRtaW5QdWJLZXkzU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgUMYWRtaW5QdWJLZXkzAAEAAAkAZwIJAGQCCQBkAgUSYWRtaW5QdWJLZXkxU2lnbmVkBRJhZG1pblB1YktleTJTaWduZWQFEmFkbWluUHViS2V5M1NpZ25lZAACwuXPeA==", "height": 2447513, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4wHwuCTWLM1RV5n45fCHsqGGDKAzcEBso9jKpq6QMUw Next: zaEiy5hwG9GpbtybL1PbLBVuShBd4eRevJXYzS8EXPM Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "pool_"
55
66 let b = "deprecated_"
77
88 let c = "pair_"
99
1010 let d = "A_asset_id"
1111
1212 let e = "B_asset_id"
1313
1414 let f = "launchpad_data_transaction_status"
1515
1616 let g = "active_all_contracts"
1717
1818 let h = "admin_pub_"
1919
2020 let i = "admin_pub_1"
2121
2222 let j = "admin_pub_2"
2323
2424 let k = "admin_pub_3"
2525
2626 let l = "achievements_writers"
2727
2828 let m = fromBase58String(getStringValue(this, i))
2929
3030 let n = fromBase58String(getStringValue(this, j))
3131
3232 let o = fromBase58String(getStringValue(this, k))
3333
3434 let p = getBooleanValue(this, g)
3535
3636 func q (r) = if ((r.caller == this))
3737 then unit
3838 else throw("Only the Oracle itself can invoke this function")
3939
4040
4141 func s (t) = {
4242 let u = valueOrErrorMessage(getString(t, "version"), "Pool is not initialized")
4343 if ((u == "1.0.0"))
4444 then "cpmm"
4545 else if ((u == "2.0.0"))
4646 then "flat"
4747 else if ((u == "3.0.0"))
4848 then "multycurve"
4949 else throw("Unknown version of pool")
5050 }
5151
5252
5353 func v (w) = toString(valueOrErrorMessage(addressFromString(w), (("Can't parse \"" + w) + "\" as address")))
5454
5555
5656 func x (r) = if (containsElement([m, n, o], r.callerPublicKey))
5757 then unit
5858 else throw("Only admin can call this function")
5959
6060
6161 @Callable(r)
6262 func setAdmin (y,z) = valueOrElse(q(r), if (if ((0 > y))
6363 then (y > 3)
6464 else false)
6565 then throw("Wrong admin id")
6666 else [StringEntry((h + toString(y)), z)])
6767
6868
6969
7070 @Callable(r)
7171 func addPool (t,A) = valueOrElse(x(r), {
7272 let B = v(t)
7373 let C = (a + B)
7474 let D = getString(this, C)
7575 if (isDefined(D))
7676 then throw((((("Pool with address \"" + B) + "\" is already defined with name \"") + value(D)) + "\""))
7777 else ([StringEntry(C, A)] ++ (if ((s(value(addressFromString(t))) == "multycurve"))
7878 then nil
7979 else {
8080 let E = valueOrErrorMessage(getString(value(addressFromString(t)), d), "Asset id A is incorrect")
8181 let F = valueOrErrorMessage(getString(value(addressFromString(t)), e), "Asset id B is incorrect")
8282 [StringEntry((((c + E) + "_") + F), t)]
8383 }))
8484 })
8585
8686
8787
8888 @Callable(r)
8989 func setDeprecated (t) = valueOrElse(x(r), {
9090 let C = (a + t)
9191 if (!(isDefined(getString(this, C))))
9292 then throw(("Couldn't found pool with address " + t))
9393 else [BooleanEntry((b + t), true)]
9494 })
9595
9696
9797
9898 @Callable(r)
9999 func launchpadDataTransactionStatus (G) = valueOrElse(x(r), [BooleanEntry(f, G)])
100100
101101
102102
103103 @Callable(r)
104104 func addAchievementsWriter (w) = valueOrElse(x(r), {
105105 let H = valueOrElse(getString(this, l), "")
106106 let I = if ((H == ""))
107107 then nil
108108 else split(H, ",")
109109 [StringEntry(l, makeString((I :+ w), ","))]
110110 })
111111
112112
113113
114114 @Callable(r)
115115 func removeAchievementsWriter (w) = valueOrElse(x(r), {
116116 let H = split(valueOrElse(getString(this, l), ""), ",")
117117 let J = valueOrErrorMessage(indexOf(H, w), "Can't find address in the list")
118118 [StringEntry(l, makeString(removeByIndex(H, J), ","))]
119119 })
120120
121121
122122
123123 @Callable(r)
124124 func shutdownAllContracts () = valueOrElse(x(r), if (!(p))
125125 then throw("All contracts already shutdown")
126126 else [BooleanEntry(g, false)])
127127
128128
129129
130130 @Callable(r)
131131 func activateAllContracts () = valueOrElse(x(r), if (p)
132132 then throw("All contracts already active")
133133 else [BooleanEntry(g, true)])
134134
135135
136136 @Verifier(K)
137137 func L () = {
138138 let M = if (sigVerify(K.bodyBytes, K.proofs[0], m))
139139 then 1
140140 else 0
141141 let N = if (sigVerify(K.bodyBytes, K.proofs[1], n))
142142 then 1
143143 else 0
144144 let O = if (sigVerify(K.bodyBytes, K.proofs[2], o))
145145 then 1
146146 else 0
147147 (((M + N) + O) >= 2)
148148 }
149149

github/deemru/w8io/026f985 
29.62 ms