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:BgIOCAISCgoICAgICAgICAgEABBhZG1pbl93YWxsZXRfb25lAiMzTjh4OW1iNDgxaTJrNmNHN1E5WFVWM2U1bnpoMW1kenNOeQAQYWRtaW5fd2FsbGV0X3R3bwIjM04zRENuZ2ppZGl2a0piVEp3RlRFdmJZUlRmZkNXVkJMQ0wAEmFkbWluX3dhbGxldF90aHJlZQIjM045MVZCa3RvVFBTQkw2TmtIUnNBTTFETFdIMlQ2cXZRcnMBFGNoZWNrX2FkbWluc193YWxsZXRzAQt1c2VyX3dhbGxldAMDAwkAAAIFC3VzZXJfd2FsbGV0BRBhZG1pbl93YWxsZXRfb25lBgkAAAIFC3VzZXJfd2FsbGV0BRBhZG1pbl93YWxsZXRfdHdvBgkAAAIFC3VzZXJfd2FsbGV0BRJhZG1pbl93YWxsZXRfdGhyZWUGBwEBaQENc2V0X3VzZXJfZGF0YQgGd2FsbGV0BG5hbWUKaW1hZ2VfbGluawpjb3Zlcl9saW5rA2JpbxBnb29nbGVfYW5hbHl0aWNzEHlhbmRleF9hbmFseXRpY3MFbm90ZXMDCQECIT0CCQClCAEIBQFpBmNhbGxlcgUG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AkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkqECok", "height": 2248149, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AuogJbWQkQK5mQyUBXTGtjs8ssdoJqQSPyz3BQGeQKJF Next: BhAjtadKkXzfbsHus831NAoeAKdPXnP21oCQFmEviRPg Diff:
OldNewDifferences
1919 @Callable(i)
2020 func set_user_data (wallet,name,image_link,cover_link,bio,google_analytics,yandex_analytics,notes) = if ((toString(i.caller) != wallet))
2121 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)]
2325
2426
2527 @Verifier(tx)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let admin_wallet_one = "3N8x9mb481i2k6cG7Q9XUV3e5nzh1mdzsNy"
55
66 let admin_wallet_two = "3N3DCngjidivkJbTJwFTEvbYRTffCWVBLCL"
77
88 let admin_wallet_three = "3N91VBktoTPSBL6NkHRsAM1DLWH2T6qvQrs"
99
1010 func check_admins_wallets (user_wallet) = if (if (if ((user_wallet == admin_wallet_one))
1111 then true
1212 else (user_wallet == admin_wallet_two))
1313 then true
1414 else (user_wallet == admin_wallet_three))
1515 then true
1616 else false
1717
1818
1919 @Callable(i)
2020 func set_user_data (wallet,name,image_link,cover_link,bio,google_analytics,yandex_analytics,notes) = if ((toString(i.caller) != wallet))
2121 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)]
2325
2426
2527 @Verifier(tx)
2628 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2729

github/deemru/w8io/169f3d6 
47.30 ms