tx · 4QQS8K1rJGtzaZbHznVwyV5redYku5y5mLbW722jpScC

3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw:  -0.01000000 Waves

2023.02.06 13:26 [2437629] smart account 3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw > SELF 0.00000000 Waves

{ "type": 13, "id": "4QQS8K1rJGtzaZbHznVwyV5redYku5y5mLbW722jpScC", "fee": 1000000, "feeAssetId": null, "timestamp": 1675679296797, "version": 2, "chainId": 84, "sender": "3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw", "senderPublicKey": "4NDsd3dGKXuKLCoSbYvcWCX276K9ShP75cs9HTBMLJEN", "proofs": [ "2FWJXGBwGTZ1b14GvKDYgC89s9uqpWpCo8493hEtP7qmPVd56SX2BxMhYj2XtUju18mE88ZkHch2TC8U1Auvf2Qh" ], "script": "base64:BgIMCAISAwoBCBIDCgEIBwENdHJ5R2V0SW50ZWdlcgEDa2V5BAN2YWwEByRtYXRjaDAJAJoIAgUEdGhpcwUDa2V5AwkAAQIFByRtYXRjaDACA0ludAQBYgUHJG1hdGNoMAUBYgAABQN2YWwBDHRyeUdldFN0cmluZwEDa2V5BAN2YWwEByRtYXRjaDAJAJ0IAgUEdGhpcwUDa2V5AwkAAQIFByRtYXRjaDACBlN0cmluZwQBYgUHJG1hdGNoMAUBYgIABQN2YWwBB2lzT3duZXIBB2FkZHJlc3MJAAACBQdhZGRyZXNzBQR0aGlzAQhnZXRHcm91cAAEA3ZhbAQHJG1hdGNoMAkAnQgCBQR0aGlzAhV3b3JraW5nX2dyb3VwX21lbWJlcnMDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAFiBQckbWF0Y2gwBQFiAgAFA3ZhbAEKZ2V0TWVtYmVycwAEA3ZhbAQHJG1hdGNoMAkAnQgCBQR0aGlzAgtkYW9fbWVtYmVycwMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAWIFByRtYXRjaDAFAWICAAUDdmFsAQ1pc0dyb3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JvdXBfbWVtYmVyXwUNbWVtYmVyQWRkcmVzcwIHX3dlaWdodAABCQACAQIYVGhpcyB1c2VyIGFscmVhZHkgZXhpc3RzBAVncm91cAkBCGdldEdyb3VwAAQIbmV3R3JvdXAJAKwCAgkArAICBQVncm91cAIBOwUNbWVtYmVyQWRkcmVzcwQJZ3JvdXBTaXplCQENdHJ5R2V0SW50ZWdlcgECEndvcmtpbmdfZ3JvdXBfc2l6ZQQMbmV3R3JvdXBTaXplCQBkAgUJZ3JvdXBTaXplAAEJAMwIAgkBC1N0cmluZ0VudHJ5AgIVd29ya2luZ19ncm91cF9tZW1iZXJzBQhuZXdHcm91cAkAzAgCCQEMSW50ZWdlckVudHJ5AgISd29ya2luZ19ncm91cF9zaXplBQxuZXdHcm91cFNpemUJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkArAICAhV3b3JraW5nX2dyb3VwX21lbWJlcl8FDW1lbWJlckFkZHJlc3MCB193ZWlnaHQAAQUDbmlsAQJ0eAEQc3RhbmRhcmRWZXJpZmllcgAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXlQDT6M", "height": 2437629, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ne76Q2ub7mqDpCsRtGSt5s5xfxhkc4bghXmdyN7Jtar Next: 4qw8tjoqJaegrwwqaA516zMpnay7MycZwN4ABMFvt6wv Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+func a (b) = {
5+ let c = {
6+ let d = getInteger(this, b)
7+ if ($isInstanceOf(d, "Int"))
8+ then {
9+ let e = d
10+ e
11+ }
12+ else 0
13+ }
14+ c
15+ }
416
517
6-@Callable(a)
7-func mintNft (b) = {
8- let c = a.caller
9- let d = Issue("aaaaba", "swsdsds", 1, 0, false)
10- let e = calculateAssetId(d)
11- let f = Issue("bbbcbb", "sdfdsfdsfdsfd", 1, 0, false)
12- let g = calculateAssetId(f)
13-[d, f, StringEntry((toBase58String(e) + "_ipfs"), b), StringEntry((toBase58String(g) + "_ipfs"), b), ScriptTransfer(c, 1, e), ScriptTransfer(c, 1, g)]
18+func f (b) = {
19+ let c = {
20+ let d = getString(this, b)
21+ if ($isInstanceOf(d, "String"))
22+ then {
23+ let e = d
24+ e
25+ }
26+ else ""
27+ }
28+ c
1429 }
1530
31+
32+func g (h) = (h == this)
33+
34+
35+func i () = {
36+ let c = {
37+ let d = getString(this, "working_group_members")
38+ if ($isInstanceOf(d, "String"))
39+ then {
40+ let e = d
41+ e
42+ }
43+ else ""
44+ }
45+ c
46+ }
47+
48+
49+func j () = {
50+ let c = {
51+ let d = getString(this, "dao_members")
52+ if ($isInstanceOf(d, "String"))
53+ then {
54+ let e = d
55+ e
56+ }
57+ else ""
58+ }
59+ c
60+ }
61+
62+
63+func k (l) = (a((("working_group_member_" + toString(l)) + "_weight")) > 0)
64+
65+
66+func m (n) = (a((("dao_member_" + toString(n.caller)) + "_weight")) > 0)
67+
68+
69+@Callable(n)
70+func addDAOMember (o) = if (!(g(n.caller)))
71+ then throw("access only to the DAO owner")
72+ else if ((a((("dao_member_" + o) + "_weight")) == 1))
73+ then throw("This user already exists")
74+ else {
75+ let p = j()
76+ let q = ((p + ";") + o)
77+ let r = a("dao_size")
78+ let s = (r + 1)
79+[StringEntry("dao_members", q), IntegerEntry("dao_size", s), IntegerEntry((("dao_member_" + o) + "_weight"), 1)]
80+ }
81+
82+
83+
84+@Callable(n)
85+func addGroupMember (o) = if (!(g(n.caller)))
86+ then throw("access only to the DAO owner")
87+ else if ((a((("working_group_member_" + o) + "_weight")) == 1))
88+ then throw("This user already exists")
89+ else {
90+ let p = i()
91+ let q = ((p + ";") + o)
92+ let r = a("working_group_size")
93+ let s = (r + 1)
94+[StringEntry("working_group_members", q), IntegerEntry("working_group_size", s), IntegerEntry((("working_group_member_" + o) + "_weight"), 1)]
95+ }
96+
97+
98+@Verifier(t)
99+func u () = sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey)
16100

github/deemru/w8io/169f3d6 
37.63 ms