tx · BhAjtadKkXzfbsHus831NAoeAKdPXnP21oCQFmEviRPg

3MqxhXjG6DVDwFuLsaBz7sgt38iwHj9Da7f:  -0.00200000 Waves

2022.09.28 01:45 [2248152] smart account 3MqxhXjG6DVDwFuLsaBz7sgt38iwHj9Da7f > SELF 0.00000000 Waves

{ "type": 13, "id": "BhAjtadKkXzfbsHus831NAoeAKdPXnP21oCQFmEviRPg", "fee": 200000, "feeAssetId": null, "timestamp": 1664318758447, "version": 2, "chainId": 84, "sender": "3MqxhXjG6DVDwFuLsaBz7sgt38iwHj9Da7f", "senderPublicKey": "24F9Fvi53bZzs4e399kBtXVRriDkrJjjVpfMwrVBfX9N", "proofs": [ "5PF2e1eHamorRQHNNWVmuXbLqmhy1Px5RwdVgBUKK12c4ME6TiXR6i3HxbheYrYw3skDEszQnd2AHPHeeJzcSQV2" ], "script": "base64:BgIOCAISCgoICAgICAgICAgEABBhZG1pbl93YWxsZXRfb25lAiMzTjh4OW1iNDgxaTJrNmNHN1E5WFVWM2U1bnpoMW1kenNOeQAQYWRtaW5fd2FsbGV0X3R3bwIjM04zRENuZ2ppZGl2a0piVEp3RlRFdmJZUlRmZkNXVkJMQ0wAEmFkbWluX3dhbGxldF90aHJlZQIjM045MVZCa3RvVFBTQkw2TmtIUnNBTTFETFdIMlQ2cXZRcnMBFGNoZWNrX2FkbWluc193YWxsZXRzAQt1c2VyX3dhbGxldAMDAwkAAAIFC3VzZXJfd2FsbGV0BRBhZG1pbl93YWxsZXRfb25lBgkAAAIFC3VzZXJfd2FsbGV0BRBhZG1pbl93YWxsZXRfdHdvBgkAAAIFC3VzZXJfd2FsbGV0BRJhZG1pbl93YWxsZXRfdGhyZWUGBwEBaQENc2V0X3VzZXJfZGF0YQgGd2FsbGV0BG5hbWUKaW1hZ2VfbGluawpjb3Zlcl9saW5rA2JpbxBnb29nbGVfYW5hbHl0aWNzEHlhbmRleF9hbmFseXRpY3MFbm90ZXMDAwkAAAIJAKUIAQgFAWkGY2FsbGVyBQZ3YWxsZXQGCQEUY2hlY2tfYWRtaW5zX3dhbGxldHMBCQClCAEIBQFpBmNhbGxlcgkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKwCAgIFdXNlcl8FBndhbGxldAIHX2pvaW5lZAIDeWVzCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkArAICAgV1c2VyXwUGd2FsbGV0AgVfbmFtZQUEbmFtZQkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKwCAgIFdXNlcl8FBndhbGxldAIKX2ltYWdlTGluawUKaW1hZ2VfbGluawkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKwCAgIFdXNlcl8FBndhbGxldAIKX2NvdmVyTGluawUKY292ZXJfbGluawkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKwCAgIFdXNlcl8FBndhbGxldAIEX2JpbwUDYmlvCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkArAICAgV1c2VyXwUGd2FsbGV0AhBfZ29vZ2xlQW5hbHl0aWNzBRBnb29nbGVfYW5hbHl0aWNzCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkArAICAgV1c2VyXwUGd2FsbGV0AhBfeWFuZGV4QW5hbHl0aWNzBRB5YW5kZXhfYW5hbHl0aWNzCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkArAICAgV1c2VyXwUGd2FsbGV0AgZfbm90ZXMFBW5vdGVzBQNuaWwJAAIBAlJFUlJST1IgISwgc2V0X3VzZXJfZGF0YSwgTUVTU0FHRTogc29ycnkgeW91IGFyZSBub3QgYWxsb3cgdG8gaW52b2tlIHRoaXMgZnVuYWN0aW9uAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tlecxWnG8=", "height": 2248152, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FBynSxtBqir511tzuqMsEcoQy9waQUH7NWUE24CcmcpG Next: BV1oVxySumgCcsvjpB2tMYgs5qtdbeCCs3btfpUuiNzX Diff:
OldNewDifferences
1717
1818
1919 @Callable(i)
20-func set_user_data (wallet,name,image_link,cover_link,bio,google_analytics,yandex_analytics,notes) = if ((toString(i.caller) != wallet))
21- then throw("ERRROR !, set_user_data, MESSAGE: sorry you are not allow to invoke this funaction")
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)]
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)))
23+ then [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)]
24+ else throw("ERRROR !, set_user_data, MESSAGE: sorry you are not allow to invoke this funaction")
2525
2626
2727 @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)
20-func set_user_data (wallet,name,image_link,cover_link,bio,google_analytics,yandex_analytics,notes) = if ((toString(i.caller) != wallet))
21- then throw("ERRROR !, set_user_data, MESSAGE: sorry you are not allow to invoke this funaction")
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)]
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)))
23+ then [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)]
24+ else throw("ERRROR !, set_user_data, MESSAGE: sorry you are not allow to invoke this funaction")
2525
2626
2727 @Verifier(tx)
2828 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2929

github/deemru/w8io/026f985 
28.04 ms