tx · APqifSqk7qCiAWwLGHX5EXpMyzvvvKDuXZED621nhpMH 3MqxhXjG6DVDwFuLsaBz7sgt38iwHj9Da7f: -0.00200000 Waves 2022.10.02 01:45 [2253910] smart account 3MqxhXjG6DVDwFuLsaBz7sgt38iwHj9Da7f > SELF 0.00000000 Waves
{ "type": 13, "id": "APqifSqk7qCiAWwLGHX5EXpMyzvvvKDuXZED621nhpMH", "fee": 200000, "feeAssetId": null, "timestamp": 1664664325509, "version": 2, "chainId": 84, "sender": "3MqxhXjG6DVDwFuLsaBz7sgt38iwHj9Da7f", "senderPublicKey": "24F9Fvi53bZzs4e399kBtXVRriDkrJjjVpfMwrVBfX9N", "proofs": [ "3K6m6je3kPKmxZFJrzBTFknZxFKfFJ2bTpuScGBotA6FLrRq8c6Eraz3zuDFZV4FMZANHYF2JgQ9FUr9yYyKHHVL" ], "script": "base64:BgIVCAISCgoICAgICAgICAgSBQoDCAgIBAAQYWRtaW5fd2FsbGV0X29uZQIjM044eDltYjQ4MWkyazZjRzdROVhVVjNlNW56aDFtZHpzTnkAEGFkbWluX3dhbGxldF90d28CIzNOM0RDbmdqaWRpdmtKYlRKd0ZURXZiWVJUZmZDV1ZCTENMABJhZG1pbl93YWxsZXRfdGhyZWUCIzNOOTFWQmt0b1RQU0JMNk5rSFJzQU0xRExXSDJUNnF2UXJzARRjaGVja19hZG1pbnNfd2FsbGV0cwELdXNlcl93YWxsZXQDAwMJAAACBQt1c2VyX3dhbGxldAUQYWRtaW5fd2FsbGV0X29uZQYJAAACBQt1c2VyX3dhbGxldAUQYWRtaW5fd2FsbGV0X3R3bwYJAAACBQt1c2VyX3dhbGxldAUSYWRtaW5fd2FsbGV0X3RocmVlBgcCAWkBDXNldF91c2VyX2RhdGEIBndhbGxldARuYW1lCmltYWdlX2xpbmsKY292ZXJfbGluawNiaW8QZ29vZ2xlX2FuYWx5dGljcxB5YW5kZXhfYW5hbHl0aWNzBW5vdGVzAwMJAAACCQClCAEIBQFpBmNhbGxlcgUG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maWVkAgN5ZXMJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgICBXVzZXJfBQZ3YWxsZXQCDl92ZXJpZmllZF9uYW1lBQRuYW1lCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkArAICAgV1c2VyXwUGd2FsbGV0Ag9fdmVyaWZpZWRfbm90ZXMFBW5vdGVzBQNuaWwJAAIBAlJFUlJST1IgISwgc2V0X3VzZXJfZGF0YSwgTUVTU0FHRTogc29ycnkgeW91IGFyZSBub3QgYWxsb3cgdG8gaW52b2tlIHRoaXMgZnVuYWN0aW9uAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleS9S6+k=", "height": 2253910, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BV1oVxySumgCcsvjpB2tMYgs5qtdbeCCs3btfpUuiNzX Next: FqUBem4VUHCqGmLUvBfBAHurotzita6ybYcCtzyhFEgQ Full:
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 (if ((toString(i.caller) == wallet)) | |
21 | 21 | then true | |
22 | 22 | else check_admins_wallets(toString(i.caller))) | |
23 | 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 | 24 | else throw("ERRROR !, set_user_data, MESSAGE: sorry you are not allow to invoke this funaction") | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | ||
28 | 28 | @Callable(i) | |
29 | 29 | func set_verified_user (wallet,name,notes) = if (check_admins_wallets(toString(i.caller))) | |
30 | 30 | then [StringEntry((("user_" + wallet) + "_verified"), "yes"), StringEntry((("user_" + wallet) + "_verified_name"), name), StringEntry((("user_" + wallet) + "_verified_notes"), notes)] | |
31 | 31 | else throw("ERRROR !, set_user_data, MESSAGE: sorry you are not allow to invoke this funaction") | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | @Verifier(tx) | |
35 | 35 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
36 | 36 |
github/deemru/w8io/026f985 39.28 ms ◑