tx · CK9rYNCQUkEfHUZnscJPpS58v6NGepGfGLTgmKDrUxSz
3MsqcsQSU3FeyxcMjrRQHcM8pTGrHu8yyWX: -0.01500000 Waves
2019.09.07 23:04 [666125] smart account 3MsqcsQSU3FeyxcMjrRQHcM8pTGrHu8yyWX > SELF 0.00000000 Waves
{
"type": 13,
"id": "CK9rYNCQUkEfHUZnscJPpS58v6NGepGfGLTgmKDrUxSz",
"fee": 1500000,
"feeAssetId": null,
"timestamp": 1567886690175,
"version": 1,
"sender": "3MsqcsQSU3FeyxcMjrRQHcM8pTGrHu8yyWX",
"senderPublicKey": "D1oc84fv4treBFDLvPS9vQdrs7A9HwTHxaeK9C7nHRTH",
"proofs": [
"3skrxj8bGc3TEV2yznCU4qveAKDaPNiCcR4Q5e2uaqLBp2t2AB89NtDxjfGzVtX25W9TRmfTpw46rA3fm7MXAeEN"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAQAAAAFpAQAAAAtjcmVhdGVPcmRlcgAAAAEAAAAFcHJpY2UEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAIllvdSBuZWVkIHRvIHVzZSB0b2tlbklkLCBub3Qgd2F2ZXMEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAHYXNzZXRJZAkAAlgAAAABCQEAAAAHZXh0cmFjdAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADGFzc2V0QW1vdW50XwUAAAAKY3VycmVudEtleQIAAAABXwUAAAAHYXNzZXRJZAIAAAABXwkAAaQAAAABBQAAAAZoZWlnaHQIBQAAAANwbXQAAAAGYW1vdW50CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAALYXNzZXRQcmljZV8FAAAACmN1cnJlbnRLZXkCAAAAAV8FAAAAB2Fzc2V0SWQCAAAAAV8JAAGkAAAAAQUAAAAGaGVpZ2h0BQAAAAVwcmljZQUAAAADbmlsAAAAAF02AqQ=",
"chainId": 84,
"height": 666125,
"spentComplexity": 0
}
View: original | compacted
Prev: 5YduKMkLzpcmLdPy3xGVZXshisWU8wFZPcagTCAi7uwS
Next: 7juMp9cxW3aQCfDpbr6GQUTuCUJ8wmLJRu8PZSHX7aA1
Diff:
Old | New | | Differences |
---|
11 | 11 | | else { |
---|
12 | 12 | | let d = toBase58String(a.caller.bytes) |
---|
13 | 13 | | let e = toBase58String(extract(c.assetId)) |
---|
14 | | - | WriteSet([DataEntry(((d + "_") + e), c.amount), DataEntry(((("assetPrice_" + d) + "_") + e), b)]) |
---|
| 14 | + | WriteSet([DataEntry(((((("assetAmount_" + d) + "_") + e) + "_") + toString(height)), c.amount), DataEntry(((((("assetPrice_" + d) + "_") + e) + "_") + toString(height)), b)]) |
---|
15 | 15 | | } |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func createOrder (b) = { |
---|
8 | 8 | | let c = extract(a.payment) |
---|
9 | 9 | | if (!(isDefined(c.assetId))) |
---|
10 | 10 | | then throw("You need to use tokenId, not waves") |
---|
11 | 11 | | else { |
---|
12 | 12 | | let d = toBase58String(a.caller.bytes) |
---|
13 | 13 | | let e = toBase58String(extract(c.assetId)) |
---|
14 | | - | WriteSet([DataEntry(((d + "_") + e), c.amount), DataEntry(((("assetPrice_" + d) + "_") + e), b)]) |
---|
| 14 | + | WriteSet([DataEntry(((((("assetAmount_" + d) + "_") + e) + "_") + toString(height)), c.amount), DataEntry(((((("assetPrice_" + d) + "_") + e) + "_") + toString(height)), b)]) |
---|
15 | 15 | | } |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|