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:
Old | New | Differences | |
---|---|---|---|
17 | 17 | ||
18 | 18 | ||
19 | 19 | @Callable(i) | |
20 | - | func set_user_data (wallet,name,image_link,cover_link,bio,google_analytics,yandex_analytics,notes) = if ((toString(i.caller) | |
21 | - | then | |
22 | - | else | |
23 | - | ||
24 | - | ||
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") | |
25 | 25 | ||
26 | 26 | ||
27 | 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 | - | func set_user_data (wallet,name,image_link,cover_link,bio,google_analytics,yandex_analytics,notes) = if ((toString(i.caller) | |
21 | - | then | |
22 | - | else | |
23 | - | ||
24 | - | ||
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") | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | @Verifier(tx) | |
28 | 28 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
29 | 29 |
github/deemru/w8io/026f985 28.04 ms ◑