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