tx · J9XYKb6rZ6KeaJduDfb3sA6UBD89ZHy3vMccJf3gWzhu 3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi: -0.01400000 Waves 2019.08.29 10:15 [652185] smart account 3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi > SELF 0.00000000 Waves
{ "type": 13, "id": "J9XYKb6rZ6KeaJduDfb3sA6UBD89ZHy3vMccJf3gWzhu", "fee": 1400000, "feeAssetId": null, "timestamp": 1567063035595, "version": 1, "sender": "3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi", "senderPublicKey": "BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH", "proofs": [ "56oEfxuGgWUBupN8zGce4mdRfG2UjauFYmKHjW2CobT5dARhubUEsF2f5Zb26VHBpzyt3ubBgSCDDYGf8TZMazcs" ], "script": "base64:AAIDAAAAAAAAAAAAAAAIAAAAAA5vd25lclB1YmxpY0tleQEAAAAgnOTxzRGlQL/gVO1uf4r6ecWijHA9iBu9xK1V+iHbiGoAAAAABmJhbm5lcgIAAAA4KHJlKWRlcGxveSBtZXNzYWdlOiBhZGRlZCBkYXRhIGZ1bmN0aW9uYWxpdHkgKHRlc3RwaGFzZSkAAAAABGRhdGEJAQAAAAlEYXRhRW50cnkAAAACAgAAAANBZ2UAAAAAAAAAACEAAAAAA2tleQgFAAAABGRhdGEAAAADa2V5AAAAAAN2YWwIBQAAAARkYXRhAAAABXZhbHVlAQAAAAl3cml0ZURhdGEAAAACAAAAB2RhdGFLZXkAAAAJZGF0YVZhbHVlCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAdkYXRhS2V5BQAAAAlkYXRhVmFsdWUFAAAAA25pbAEAAAAHZ2V0RGF0YQAAAAEAAAAHZGF0YUtleQQAAAALZGF0YVBhY2thZ2UJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMFAAAAB2RhdGFLZ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AE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABBJc3N1ZVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAASUmVpc3N1ZVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBgdLRY1O", "chainId": 84, "height": 652185, "spentComplexity": 0 } View: original | compacted Prev: DdBzQrF2G2LHPC117WTU4wYnEkVyhHKy36VCvs2cRDLP Next: HhPfLTVr1iCp3kjxVDo3xHW5Dk3unwLfpRQ5Hj65QtCi Diff:
Old | New | Differences | |
---|---|---|---|
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let ownerPublicKey = base58'BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH' | |
5 | 5 | ||
6 | - | let banner = | |
6 | + | let banner = "(re)deploy message: added data functionality (testphase)" | |
7 | 7 | ||
8 | 8 | let data = DataEntry("Age", 33) | |
9 | 9 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let ownerPublicKey = base58'BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH' | |
5 | 5 | ||
6 | - | let banner = | |
6 | + | let banner = "(re)deploy message: added data functionality (testphase)" | |
7 | 7 | ||
8 | 8 | let data = DataEntry("Age", 33) | |
9 | 9 | ||
10 | 10 | let key = data.key | |
11 | 11 | ||
12 | 12 | let val = data.value | |
13 | 13 | ||
14 | 14 | func writeData (dataKey,dataValue) = WriteSet([DataEntry(dataKey, dataValue)]) | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func getData (dataKey) = { | |
18 | 18 | let dataPackage = getStringValue(this, dataKey) | |
19 | 19 | dataPackage | |
20 | 20 | } | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func issueDataRequest (sizing) = { | |
24 | 24 | let x = "y" | |
25 | 25 | x | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | @Callable(i) | |
30 | 30 | func dispense () = { | |
31 | 31 | let paid = extract(i.payment) | |
32 | 32 | let message = "default message for now" | |
33 | 33 | let sizing = if ((paid.amount == 100000000)) | |
34 | 34 | then "S" | |
35 | 35 | else if ((paid.amount == 200000000)) | |
36 | 36 | then "M" | |
37 | 37 | else if ((paid.amount == 400000000)) | |
38 | 38 | then "L" | |
39 | 39 | else "error" | |
40 | 40 | if ((sizing == "error")) | |
41 | 41 | then throw("Unrecognized sizing") | |
42 | 42 | else { | |
43 | 43 | let dataPackage = "x" | |
44 | 44 | TransferSet([ScriptTransfer(i.caller, paid.amount, unit)]) | |
45 | 45 | } | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | @Verifier(tx) | |
50 | 50 | func verify () = match tx { | |
51 | 51 | case d: SetScriptTransaction => | |
52 | 52 | sigVerify(tx.bodyBytes, tx.proofs[0], ownerPublicKey) | |
53 | 53 | case d: DataTransaction => | |
54 | 54 | true | |
55 | 55 | case d: TransferTransaction => | |
56 | 56 | true | |
57 | 57 | case d: IssueTransaction => | |
58 | 58 | true | |
59 | 59 | case d: ReissueTransaction => | |
60 | 60 | true | |
61 | 61 | case _ => | |
62 | 62 | false | |
63 | 63 | } | |
64 | 64 |
github/deemru/w8io/169f3d6 56.60 ms ◑