tx · EjNWTXavRbUh9P3twmQDF3yGkDpqP8QMygUqfmW7iNPs

3N2kVUxYqFz4rHNgnVr7ffhsnC7DptJ1BzH:  -0.01000000 Waves

2023.04.23 04:49 [2546557] smart account 3N2kVUxYqFz4rHNgnVr7ffhsnC7DptJ1BzH > SELF 0.00000000 Waves

{ "type": 13, "id": "EjNWTXavRbUh9P3twmQDF3yGkDpqP8QMygUqfmW7iNPs", "fee": 1000000, "feeAssetId": null, "timestamp": 1682214625858, "version": 2, "chainId": 84, "sender": "3N2kVUxYqFz4rHNgnVr7ffhsnC7DptJ1BzH", "senderPublicKey": "8cCvpHrqwPyT7CYYANjtE4ZUgLzCDCqFDMVAX5RRZMPN", "proofs": [ "3wCRWNtfjf7bHiP9Rd3VYJ1xbkMPjebFn9RA6GQxePa2HsvXvf9r5xR8i9phnDkWq7Y2fpWBRChHTz4e9ymvmZJ4" ], "script": "base64:BgJNCAISBwoFCAgICAgSDAoKCAgICAgICAgICBIECgIICBIMCgoICAgICAgICAgIEggKBggICAgICBIDCgEIEgMKAQgSBAoCCAgSBAoCCAgFABBhZG1pbl93YWxsZXRfb25lAiMzTXBEZkRUMzU5cVNTbU5GWm5NZW9QUXB5SkEyVTFLNTF1NQAQYWRtaW5fd2FsbGV0X3R3bwIjM04zRENuZ2ppZGl2a0piVEp3RlRFdmJZUlRmZkNXVkJMQ0wAEmFkbWluX3dhbGxldF90aHJlZQIjM044eDltYjQ4MWkyazZjRzdROVhVVjNlNW56aDFtZHpzTnkBFGNoZWNrX2FkbWluc193YWxsZXRzAQt1c2VyX3dhbGxldAMDAwkAAAIFC3VzZXJfd2FsbGV0BRBhZG1pbl93YWxsZXRfb25lBgkAAAIFC3VzZXJfd2FsbGV0BRBhZG1pbl93YWxsZXRfdHdvBgkAAAIFC3VzZXJfd2FsbGV0BRJhZG1pbl93YWxsZXRfdGhyZWUGBwENdHJ5R2V0SW50ZWdlcgEDa2V5BAckbWF0Y2gwCQCaCAIFBHRoaXMFA2tleQMJAA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", "height": 2546557, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5anrxs2uvATurPbsEwXJxJZYAY9aP55fQDXqqhr4cLVr Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "3MpDfDT359qSSmNFZnMeoPQpyJA2U1K51u5"
55
66 let b = "3N3DCngjidivkJbTJwFTEvbYRTffCWVBLCL"
77
88 let c = "3N8x9mb481i2k6cG7Q9XUV3e5nzh1mdzsNy"
99
1010 func d (e) = if (if (if ((e == a))
1111 then true
1212 else (e == b))
1313 then true
1414 else (e == c))
1515 then true
1616 else false
1717
1818
1919 func f (g) = {
2020 let h = getInteger(this, g)
2121 if ($isInstanceOf(h, "Int"))
2222 then {
2323 let i = h
2424 i
2525 }
2626 else 0
2727 }
2828
2929
3030 @Callable(j)
3131 func add_blog (k,l,m,n,o) = if (if ((toString(j.caller) == k))
3232 then true
3333 else d(toString(j.caller)))
3434 then {
3535 let p = toBase58String(j.transactionId)
3636 let q = lastBlock
3737 let r = q.timestamp
3838 let s = f((("user_" + k) + "_blog_id"))
3939 let t = (s + 1)
4040 [StringEntry((("blog_" + p) + "_publisher"), k), StringEntry((("blog_" + p) + "_arweave_tx_id"), m), StringEntry((("blog_" + p) + "_signature"), n), StringEntry((("blog_" + p) + "_blog_cover"), o), StringEntry((("blog_" + p) + "_titel"), l), StringEntry(((("user_" + k) + "_blog") + toString(t)), p), IntegerEntry((("user_" + k) + "_blog_id"), t), IntegerEntry((("blog_" + p) + "_publish_time"), r)]
4141 }
4242 else throw("ERRROR !, add_blog, MESSAGE: sorry you are not allow to invoke this funaction")
4343
4444
4545
4646 @Callable(j)
4747 func add_story (k,l,m,n,u,v,w,x,y,z) = if (if ((toString(j.caller) == k))
4848 then true
4949 else d(toString(j.caller)))
5050 then {
5151 let p = toBase58String(j.transactionId)
5252 let q = lastBlock
5353 let r = q.timestamp
5454 let A = f((("user_" + k) + "_story_id"))
5555 let B = (A + 1)
5656 [StringEntry((("story_" + p) + "_publisher"), k), StringEntry((("story_" + p) + "_arweave_tx_id"), m), StringEntry((("story_" + p) + "_signature"), n), StringEntry((("story_" + p) + "_story_cover"), u), StringEntry((("story_" + p) + "_titel"), l), StringEntry((("story_" + p) + "_description"), v), StringEntry((("story_" + p) + "_tags"), w), StringEntry((("story_" + p) + "_language"), x), StringEntry((("story_" + p) + "_categorys"), y), StringEntry((("story_" + p) + "_status"), z), StringEntry(((("user_" + k) + "_story") + toString(B)), p), IntegerEntry((("user_" + k) + "_story_id"), B), IntegerEntry((("story_" + p) + "_publish_time"), r)]
5757 }
5858 else throw("ERRROR !, add_story, MESSAGE: sorry you are not allow to invoke this funaction")
5959
6060
6161
6262 @Callable(j)
6363 func add_chapter (C,D) = {
6464 let E = f((("story_" + C) + "_last_chapter_id"))
6565 let p = toBase58String(j.transactionId)
6666 let q = lastBlock
6767 let r = q.timestamp
6868 [StringEntry(((("story_" + C) + "_chapter_") + toString(E)), p), StringEntry((("chapter_" + p) + "_arweave_tx_id"), D), StringEntry((("chapter_" + p) + "_story_tx_id"), C), IntegerEntry((("chapter_" + p) + "_id"), E), IntegerEntry((("story_" + C) + "_last_chapter_id"), (E + 1)), IntegerEntry((("chapter_" + p) + "_publish_time"), r)]
6969 }
7070
7171
7272
7373 @Callable(j)
7474 func set_user_data (F,G,H,I,J,K,L,M,N,O) = if (if ((toString(j.caller) == F))
7575 then true
7676 else d(toString(j.caller)))
7777 then [StringEntry((("user_" + F) + "_joined"), "yes"), StringEntry((("user_" + F) + "_name"), G), StringEntry((("user_" + F) + "_imageLink"), H), StringEntry((("user_" + F) + "_coverLink"), I), StringEntry((("user_" + F) + "_bio"), J), StringEntry((("user_" + F) + "_googleAnalytics"), K), StringEntry((("user_" + F) + "_yandexAnalytics"), N), StringEntry((("user_" + F) + "_twitter"), L), StringEntry((("user_" + F) + "_telegram"), M), StringEntry((("user_" + F) + "_notes"), O)]
7878 else throw("ERRROR !, set_user_data, MESSAGE: sorry you are not allow to invoke this funaction")
7979
8080
8181
8282 @Callable(j)
8383 func set_verified_user (F,G,L,M,P,O) = if (d(toString(j.caller)))
8484 then [StringEntry((("user_" + F) + "_verified"), "yes"), StringEntry((("user_" + F) + "_verified_name"), G), StringEntry((("user_" + F) + "_verified_twitter"), L), StringEntry((("user_" + F) + "_verified_telegram"), M), StringEntry((("user_" + F) + "_verified_notes"), O)]
8585 else throw("ERRROR !, set_verified_user, MESSAGE: sorry you are not allow to invoke this funaction")
8686
8787
8888
8989 @Callable(j)
9090 func follow_user (F) = {
9191 let Q = toString(j.caller)
9292 [StringEntry(((("user_" + F) + "_followed_by_") + Q), "yes"), StringEntry(((("user_" + Q) + "_follow_") + F), "yes")]
9393 }
9494
9595
9696
9797 @Callable(j)
9898 func un_follow_user (F) = {
9999 let Q = toString(j.caller)
100100 [DeleteEntry(((("user_" + F) + "_followed_by_") + Q)), DeleteEntry(((("user_" + Q) + "_follow_") + F))]
101101 }
102102
103103
104104
105105 @Callable(j)
106106 func add_blog_to_favorites (F,R) = if (if ((toString(j.caller) == F))
107107 then true
108108 else d(toString(j.caller)))
109109 then {
110110 let S = f((("blog_" + R) + "_favorite_id"))
111111 let T = f((("user_" + F) + "_favorite_id"))
112112 [StringEntry(((("user_" + F) + "_blog_favorite_") + toString(T)), R), StringEntry(((("blog_" + R) + "_favorite_") + toString(S)), F), IntegerEntry((("blog_" + R) + "_favorite_id"), (S + 1)), IntegerEntry((("user_" + F) + "_favorite_id"), (T + 1))]
113113 }
114114 else throw("ERRROR !, add_to_favorites, MESSAGE: sorry you are not allow to invoke this funaction")
115115
116116
117117
118118 @Callable(j)
119119 func add_story_to_favorites (F,C) = if (if ((toString(j.caller) == F))
120120 then true
121121 else d(toString(j.caller)))
122122 then {
123123 let S = f((("story_" + C) + "_favorite_id"))
124124 let T = f((("user_" + F) + "_favorite_id"))
125125 [StringEntry(((("user_" + F) + "_story_favorite_") + toString(T)), C), StringEntry(((("story_" + C) + "_favorite_") + toString(S)), F), IntegerEntry((("story_" + C) + "_favorite_id"), (S + 1)), IntegerEntry((("user_" + F) + "_favorite_id"), (T + 1))]
126126 }
127127 else throw("ERRROR !, add_to_favorites, MESSAGE: sorry you are not allow to invoke this funaction")
128128
129129
130130 @Verifier(U)
131131 func V () = sigVerify(U.bodyBytes, U.proofs[0], U.senderPublicKey)
132132

github/deemru/w8io/169f3d6 
33.94 ms