tx · FBynSxtBqir511tzuqMsEcoQy9waQUH7NWUE24CcmcpG 3MqxhXjG6DVDwFuLsaBz7sgt38iwHj9Da7f: -0.00200000 Waves 2022.09.28 01:41 [2248149] smart account 3MqxhXjG6DVDwFuLsaBz7sgt38iwHj9Da7f > SELF 0.00000000 Waves
{ "type": 13, "id": "FBynSxtBqir511tzuqMsEcoQy9waQUH7NWUE24CcmcpG", "fee": 200000, "feeAssetId": null, "timestamp": 1664318503843, "version": 2, "chainId": 84, "sender": "3MqxhXjG6DVDwFuLsaBz7sgt38iwHj9Da7f", "senderPublicKey": "24F9Fvi53bZzs4e399kBtXVRriDkrJjjVpfMwrVBfX9N", "proofs": [ "sT6pUd15vFLde5YKZamGf5RAiHHn4zCZYj3eqZuz99rXpRT9aMQ5UkrahJeq9y12BXZUQLwqqEcJsqQkAmK8FW7" ], "script": "base64:BgIOCAISCgoICAgICAgICAgEABBhZG1pbl93YWxsZXRfb25lAiMzTjh4OW1iNDgxaTJrNmNHN1E5WFVWM2U1bnpoMW1kenNOeQAQYWRtaW5fd2FsbGV0X3R3bwIjM04zRENuZ2ppZGl2a0piVEp3RlRFdmJZUlRmZkNXVkJMQ0wAEmFkbWluX3dhbGxldF90aHJlZQIjM045MVZCa3RvVFBTQkw2TmtIUnNBTTFETFdIMlQ2cXZRcnMBFGNoZWNrX2FkbWluc193YWxsZXRzAQt1c2VyX3dhbGxldAMDAwkAAAIFC3VzZXJfd2FsbGV0BRBhZG1pbl93YWxsZXRfb25lBgkAAAIFC3VzZXJfd2FsbGV0BRBhZG1pbl93YWxsZXRfdHdvBgkAAAIFC3VzZXJfd2FsbGV0BRJhZG1pbl93YWxsZXRfdGhyZWUGBwEBaQENc2V0X3VzZXJfZGF0YQgGd2FsbGV0BG5hbWUKaW1hZ2VfbGluawpjb3Zlcl9saW5rA2JpbxBnb29nbGVfYW5hbHl0aWNzEHlhbmRleF9hbmFseXRpY3MFbm90ZXMDCQECIT0CCQClCAEIBQFpBmNhbGxlcgUGd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kQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkqECok", "height": 2248149, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AuogJbWQkQK5mQyUBXTGtjs8ssdoJqQSPyz3BQGeQKJF Next: BhAjtadKkXzfbsHus831NAoeAKdPXnP21oCQFmEviRPg Diff:
Old | New | Differences | |
---|---|---|---|
19 | 19 | @Callable(i) | |
20 | 20 | func set_user_data (wallet,name,image_link,cover_link,bio,google_analytics,yandex_analytics,notes) = if ((toString(i.caller) != wallet)) | |
21 | 21 | then throw("ERRROR !, set_user_data, MESSAGE: sorry you are not allow to invoke this funaction") | |
22 | - | 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)] | |
22 | + | else if ((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)] | |
23 | 25 | ||
24 | 26 | ||
25 | 27 | @Verifier(tx) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let admin_wallet_one = "3N8x9mb481i2k6cG7Q9XUV3e5nzh1mdzsNy" | |
5 | 5 | ||
6 | 6 | let admin_wallet_two = "3N3DCngjidivkJbTJwFTEvbYRTffCWVBLCL" | |
7 | 7 | ||
8 | 8 | let admin_wallet_three = "3N91VBktoTPSBL6NkHRsAM1DLWH2T6qvQrs" | |
9 | 9 | ||
10 | 10 | func check_admins_wallets (user_wallet) = if (if (if ((user_wallet == admin_wallet_one)) | |
11 | 11 | then true | |
12 | 12 | else (user_wallet == admin_wallet_two)) | |
13 | 13 | then true | |
14 | 14 | else (user_wallet == admin_wallet_three)) | |
15 | 15 | then true | |
16 | 16 | else false | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | @Callable(i) | |
20 | 20 | func set_user_data (wallet,name,image_link,cover_link,bio,google_analytics,yandex_analytics,notes) = if ((toString(i.caller) != wallet)) | |
21 | 21 | then throw("ERRROR !, set_user_data, MESSAGE: sorry you are not allow to invoke this funaction") | |
22 | - | 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)] | |
22 | + | else if ((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)] | |
23 | 25 | ||
24 | 26 | ||
25 | 27 | @Verifier(tx) | |
26 | 28 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
27 | 29 |
github/deemru/w8io/169f3d6 24.67 ms ◑