tx · G3MK8bUADDKPPHJAwSinzJuXmxKLtcXYrM5pCurciFKt

3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi:  -0.01400000 Waves

2019.08.29 10:43 [652217] smart account 3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi > SELF 0.00000000 Waves

{ "type": 13, "id": "G3MK8bUADDKPPHJAwSinzJuXmxKLtcXYrM5pCurciFKt", "fee": 1400000, "feeAssetId": null, "timestamp": 1567064663348, "version": 1, "sender": "3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi", "senderPublicKey": "BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH", "proofs": [ "4qVojUAvkRP6UBNzNTNZ9eHZV1jfcKbpRwB8siGATSdq5BcNVNoyf5SAhJo5BPKtjPtwgp47ogx93Mv1xFz9zF7d" ], "script": "base64:AAIDAAAAAAAAAAAAAAAFAAAAAA5vd25lclB1YmxpY0tleQEAAAAgnOTxzRGlQL/gVO1uf4r6ecWijHA9iBu9xK1V+iHbiGoAAAAACmRlcGxveUluZm8CAAAAJGFkZGVkIGRhdGEgZnVuY3Rpb25hbGl0eSAodGVzdHBoYXNlKQEAAAAJd3JpdGVEYXRhAAAAAgAAAAdkYXRhS2V5AAAACWRhdGFWYWx1ZQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAHZGF0YUtleQUAAAAJZGF0YVZhbHVlBQAAAANuaWwBAAAAB2dldERhdGEAAAABAAAAB2RhdGFLZXkEAAAAC2RhdGFQYWNrYWdlCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzBQAAAAdkYXRhS2V5BQAAAAtkYXRhUGFja2FnZQEAAAAJZW1pdFRva2VuAAAAAwAAAAhyZWNlaXZlcgAAAA5kaXNwZW5zZUFtb3VudAAAAAphdHRhY2htZW50BAAAAAV0b2tlbgIAAAAGS0VLUy0xBQAAAAV0b2tlbgAAAAE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0Y2gwAgAAABBJc3N1ZVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAASUmVpc3N1ZVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBgewQm/L", "chainId": 84, "height": 652217, "spentComplexity": 0 } View: original | compacted Prev: HhPfLTVr1iCp3kjxVDo3xHW5Dk3unwLfpRQ5Hj65QtCi Next: 8AyCKdCUjVdBf7W9CDYqFqpqpigmeiLm7hL857jcxyfq Diff:
OldNewDifferences
44 let ownerPublicKey = base58'BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH'
55
66 let deployInfo = "added data functionality (testphase)"
7-
8-let data = DataEntry("Age", 33)
9-
10-let key = data.key
11-
12-let val = data.value
137
148 func writeData (dataKey,dataValue) = WriteSet([DataEntry(dataKey, dataValue)])
159
2014 }
2115
2216
23-func issueDataRequest (sizing) = {
24- let x = "y"
25- x
17+func emitToken (receiver,dispenseAmount,attachment) = {
18+ let token = "KEKS-1"
19+ token
2620 }
2721
2822
3024 func dispense () = {
3125 let paid = extract(i.payment)
3226 let message = "default message for now"
27+ let callerAccount = toBase58String(extract(i.callerPublicKey))
28+ let callerTxId = i.transactionId
3329 let sizing = if ((paid.amount == 100000000))
3430 then "S"
3531 else if ((paid.amount == 200000000))
3935 else "error"
4036 if ((sizing == "error"))
4137 then throw("Unrecognized sizing")
42- else {
43- let dataPackage = "x"
44- TransferSet([ScriptTransfer(i.caller, paid.amount, unit)])
45- }
38+ else writeData(callerAccount, message)
4639 }
4740
4841
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let ownerPublicKey = base58'BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH'
55
66 let deployInfo = "added data functionality (testphase)"
7-
8-let data = DataEntry("Age", 33)
9-
10-let key = data.key
11-
12-let val = data.value
137
148 func writeData (dataKey,dataValue) = WriteSet([DataEntry(dataKey, dataValue)])
159
1610
1711 func getData (dataKey) = {
1812 let dataPackage = getStringValue(this, dataKey)
1913 dataPackage
2014 }
2115
2216
23-func issueDataRequest (sizing) = {
24- let x = "y"
25- x
17+func emitToken (receiver,dispenseAmount,attachment) = {
18+ let token = "KEKS-1"
19+ token
2620 }
2721
2822
2923 @Callable(i)
3024 func dispense () = {
3125 let paid = extract(i.payment)
3226 let message = "default message for now"
27+ let callerAccount = toBase58String(extract(i.callerPublicKey))
28+ let callerTxId = i.transactionId
3329 let sizing = if ((paid.amount == 100000000))
3430 then "S"
3531 else if ((paid.amount == 200000000))
3632 then "M"
3733 else if ((paid.amount == 400000000))
3834 then "L"
3935 else "error"
4036 if ((sizing == "error"))
4137 then throw("Unrecognized sizing")
42- else {
43- let dataPackage = "x"
44- TransferSet([ScriptTransfer(i.caller, paid.amount, unit)])
45- }
38+ else writeData(callerAccount, message)
4639 }
4740
4841
4942 @Verifier(tx)
5043 func verify () = match tx {
5144 case d: SetScriptTransaction =>
5245 sigVerify(tx.bodyBytes, tx.proofs[0], ownerPublicKey)
5346 case d: DataTransaction =>
5447 true
5548 case d: TransferTransaction =>
5649 true
5750 case d: IssueTransaction =>
5851 true
5952 case d: ReissueTransaction =>
6053 true
6154 case _ =>
6255 false
6356 }
6457

github/deemru/w8io/169f3d6 
22.61 ms