tx · AbN2LdJcgY1gccNLV4va98KMXXjdkY7KSE3wrNkrGGZz 3MqxhXjG6DVDwFuLsaBz7sgt38iwHj9Da7f: -0.00200000 Waves 2022.09.28 01:26 [2248138] smart account 3MqxhXjG6DVDwFuLsaBz7sgt38iwHj9Da7f > SELF 0.00000000 Waves
{ "type": 13, "id": "AbN2LdJcgY1gccNLV4va98KMXXjdkY7KSE3wrNkrGGZz", "fee": 200000, "feeAssetId": null, "timestamp": 1664317604098, "version": 2, "chainId": 84, "sender": "3MqxhXjG6DVDwFuLsaBz7sgt38iwHj9Da7f", "senderPublicKey": "24F9Fvi53bZzs4e399kBtXVRriDkrJjjVpfMwrVBfX9N", "proofs": [ "5WG14CMPiASDAuU8nqkgRqcMAhJ1DWQgFCprFy5XUogpBp2sXHMVheLE1RYXpZaFzC6LJKVZmLAEgnvqcj3WX9KT" ], "script": "base64:BgIOCAISCgoICAgICAgICAgEABBhZG1pbl93YWxsZXRfb25lAiMzTjh4OW1iNDgxaTJrNmNHN1E5WFVWM2U1bnpoMW1kenNOeQAQYWRtaW5fd2FsbGV0X3R3bwIjM04zRENuZ2ppZGl2a0piVEp3RlRFdmJZUlRmZkNXVkJMQ0wAEmFkbWluX3dhbGxldF90aHJlZQIjM045MVZCa3RvVFBTQkw2TmtIUnNBTTFETFdIMlQ2cXZRcnMBFGNoZWNrX2FkbWluc193YWxsZXRzAQt1c2VyX3dhbGxldAMDAwkAAAIFC3VzZXJfd2FsbGV0BRBhZG1pbl93YWxsZXRfb25lBgkAAAIFC3VzZXJfd2FsbGV0BRBhZG1pbl93YWxsZXRfdHdvBgkAAAIFC3VzZXJfd2FsbGV0BRJhZG1pbl93YWxsZXRfdGhyZWUGBwEBaQENc2V0X3VzZXJfZGF0YQgGd2FsbGV0BG5hbWUKaW1hZ2VfbGluawpjb3Zlcl9saW5rA2JpbxBnb29nbGVfYW5hbHl0aWNzEHlhbmRleF9hbmFseXRpY3MFbm90ZXMDAwkBAiE9AgkApQgBCAUBaQZj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: DdnAsh53hRC7HSKKqVgtpeDaU48XkU5HZBvP6w3PsyRt Next: AuogJbWQkQK5mQyUBXTGtjs8ssdoJqQSPyz3BQGeQKJF Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let admin_wallet_one = "3N8x9mb481i2k6cG7Q9XUV3e5nzh1mdzsNy" | |
5 | + | ||
6 | + | let admin_wallet_two = "3N3DCngjidivkJbTJwFTEvbYRTffCWVBLCL" | |
7 | + | ||
8 | + | let admin_wallet_three = "3N91VBktoTPSBL6NkHRsAM1DLWH2T6qvQrs" | |
9 | + | ||
10 | + | func check_admins_wallets (user_wallet) = if (if (if ((user_wallet == admin_wallet_one)) | |
11 | + | then true | |
12 | + | else (user_wallet == admin_wallet_two)) | |
13 | + | then true | |
14 | + | else (user_wallet == admin_wallet_three)) | |
15 | + | then true | |
16 | + | else false | |
4 | 17 | ||
5 | 18 | ||
6 | 19 | @Callable(i) | |
7 | - | func set_user_data (wallet,name,image_link,cover_link,bio,google_analytics,yandex_analytics,notes) = [StringEntry("user: ", wallet), StringEntry((("user_" + wallet) + "_name"), name), StringEntry((("user_" + wallet) + "_imageLink"), image_link), StringEntry((("user_" + wallet) + "_coverLink"), cover_link), StringEntry((("user_" + wallet) + "_bio"), bio), StringEntry((("user_" + wallet) + "_googleAnalytics"), google_analytics), StringEntry((("user_" + wallet) + "_yandexAnalytics"), yandex_analytics), StringEntry((("user_" + wallet) + "_notes"), notes)] | |
20 | + | func set_user_data (wallet,name,image_link,cover_link,bio,google_analytics,yandex_analytics,notes) = if (if ((toString(i.caller) != wallet)) | |
21 | + | then true | |
22 | + | else (check_admins_wallets(toString(i.caller)) == false)) | |
23 | + | then throw("ERRROR !, set_user_data, MESSAGE: sorry you are not allow to invoke this funaction") | |
24 | + | else [StringEntry((("user_" + wallet) + "_joined"), "yes"), StringEntry((("user_" + wallet) + "_name"), name), StringEntry((("user_" + wallet) + "_imageLink"), image_link), StringEntry((("user_" + wallet) + "_coverLink"), cover_link), StringEntry((("user_" + wallet) + "_bio"), bio), StringEntry((("user_" + wallet) + "_googleAnalytics"), google_analytics), StringEntry((("user_" + wallet) + "_yandexAnalytics"), yandex_analytics), StringEntry((("user_" + wallet) + "_notes"), notes)] | |
8 | 25 | ||
9 | 26 | ||
10 | 27 | @Verifier(tx) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let admin_wallet_one = "3N8x9mb481i2k6cG7Q9XUV3e5nzh1mdzsNy" | |
5 | + | ||
6 | + | let admin_wallet_two = "3N3DCngjidivkJbTJwFTEvbYRTffCWVBLCL" | |
7 | + | ||
8 | + | let admin_wallet_three = "3N91VBktoTPSBL6NkHRsAM1DLWH2T6qvQrs" | |
9 | + | ||
10 | + | func check_admins_wallets (user_wallet) = if (if (if ((user_wallet == admin_wallet_one)) | |
11 | + | then true | |
12 | + | else (user_wallet == admin_wallet_two)) | |
13 | + | then true | |
14 | + | else (user_wallet == admin_wallet_three)) | |
15 | + | then true | |
16 | + | else false | |
4 | 17 | ||
5 | 18 | ||
6 | 19 | @Callable(i) | |
7 | - | func set_user_data (wallet,name,image_link,cover_link,bio,google_analytics,yandex_analytics,notes) = [StringEntry("user: ", wallet), StringEntry((("user_" + wallet) + "_name"), name), StringEntry((("user_" + wallet) + "_imageLink"), image_link), StringEntry((("user_" + wallet) + "_coverLink"), cover_link), StringEntry((("user_" + wallet) + "_bio"), bio), StringEntry((("user_" + wallet) + "_googleAnalytics"), google_analytics), StringEntry((("user_" + wallet) + "_yandexAnalytics"), yandex_analytics), StringEntry((("user_" + wallet) + "_notes"), notes)] | |
20 | + | func set_user_data (wallet,name,image_link,cover_link,bio,google_analytics,yandex_analytics,notes) = if (if ((toString(i.caller) != wallet)) | |
21 | + | then true | |
22 | + | else (check_admins_wallets(toString(i.caller)) == false)) | |
23 | + | then throw("ERRROR !, set_user_data, MESSAGE: sorry you are not allow to invoke this funaction") | |
24 | + | else [StringEntry((("user_" + wallet) + "_joined"), "yes"), StringEntry((("user_" + wallet) + "_name"), name), StringEntry((("user_" + wallet) + "_imageLink"), image_link), StringEntry((("user_" + wallet) + "_coverLink"), cover_link), StringEntry((("user_" + wallet) + "_bio"), bio), StringEntry((("user_" + wallet) + "_googleAnalytics"), google_analytics), StringEntry((("user_" + wallet) + "_yandexAnalytics"), yandex_analytics), StringEntry((("user_" + wallet) + "_notes"), notes)] | |
8 | 25 | ||
9 | 26 | ||
10 | 27 | @Verifier(tx) | |
11 | 28 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
12 | 29 |
github/deemru/w8io/026f985 27.36 ms ◑