tx · 2yjW4bJTeTuPYiNMHhjSGbDT1iagWUhgKHNHkRMwMQRN 3N1bfGrC9iBWbv1Rhb64cccc3cQswW8VyCV: -0.01400000 Waves 2020.07.21 09:36 [1096861] smart account 3N1bfGrC9iBWbv1Rhb64cccc3cQswW8VyCV > SELF 0.00000000 Waves
{ "type": 13, "id": "2yjW4bJTeTuPYiNMHhjSGbDT1iagWUhgKHNHkRMwMQRN", "fee": 1400000, "feeAssetId": null, "timestamp": 1595313345363, "version": 1, "sender": "3N1bfGrC9iBWbv1Rhb64cccc3cQswW8VyCV", "senderPublicKey": "BF56eooJyMKnwSL3B65fqLBFPfubUbW6wdky9pCGQajE", "proofs": [ "4QSYhrPjunNEb1nDSHH3U6awmup4xSfdA8hotyiNL1yrvUKvWqaBJdGnAijdS7ahgDr7K9MV2S9TvbCkof9aWirH" ], "script": "base64:AAIDAAAAAAAAAAoIARIGCgQICAgIAAAAAwEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAAAQAAAAxnZXRCb29sQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEHAAAAAQAAAAFpAQAAAAxyZWdpc3RlclVzZXIAAAAEAAAABG5hbWUAAAALZGVzY3JpcHRpb24AAAAGc29jaWFsAAAABXRodW1iBAAAAApjYWxsZXJBZGRyCQAEJQAAAAEJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQQAAAACaWQJAAJYAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAQAAAAIY3JlYXRlT24IBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wBAAAAARqc29uCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAACHsiaWQiOiAiBQAAAAJpZAIAAAALIiwibmFtZSI6ICIFAAAABG5hbWUCAAAACyIsImRlc2MiOiAiBQAAAAtkZXNjcmlwdGlvbgIAAAANIiwic29jaWFsIjogIgUAAAAGc29jaWFsAgAAAAwiLCJ0aHVtYiI6ICIFAAAABXRodW1iAgAAAAIifQMJAAAAAAAAAgUAAAAEbmFtZQIAAAAACQAAAgAAAAEJAAEsAAAAAgIAAAALVG9uIGpzb24gPSAFAAAABGpzb24JAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAFdXNlcl8FAAAACmNhbGxlckFkZHIFAAAABGpzb24FAAAAA25pbAAAAACDBt4g", "chainId": 84, "height": 1096861, "spentComplexity": 0 } View: original | compacted Prev: none Next: 4MKMPVS2fNroh4Eu9rGne7XCupDKZ14YDz7xVogmAoyP Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func getNumberByKey (key) = match getInteger(this, key) { | |
5 | + | case a: Int => | |
6 | + | a | |
7 | + | case _ => | |
8 | + | 0 | |
9 | + | } | |
10 | + | ||
11 | + | ||
12 | + | func getStringByKey (key) = match getString(this, key) { | |
13 | + | case a: String => | |
14 | + | a | |
15 | + | case _ => | |
16 | + | "" | |
17 | + | } | |
18 | + | ||
19 | + | ||
20 | + | func getBoolByKey (key) = match getBoolean(this, key) { | |
21 | + | case a: Boolean => | |
22 | + | a | |
23 | + | case _ => | |
24 | + | false | |
25 | + | } | |
26 | + | ||
27 | + | ||
28 | + | @Callable(i) | |
29 | + | func registerUser (name,description,social,thumb) = { | |
30 | + | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
31 | + | let id = toBase58String(i.transactionId) | |
32 | + | let createOn = lastBlock.timestamp | |
33 | + | let json = (((((((((("{\"id\": \"" + id) + "\",\"name\": \"") + name) + "\",\"desc\": \"") + description) + "\",\"social\": \"") + social) + "\",\"thumb\": \"") + thumb) + "\"}") | |
34 | + | if ((name == "")) | |
35 | + | then throw(("Ton json = " + json)) | |
36 | + | else WriteSet([DataEntry(("user_" + callerAddr), json)]) | |
37 | + | } | |
38 | + | ||
39 | + |
github/deemru/w8io/169f3d6 27.61 ms ◑