tx · EFejbFENusveLWbRkdZuNkUxbHHmioE6CkfrAfP3nixu
3MqRnEd83AoPWjTCHP2PVpFpWg6KbBPCJyo: -0.01500000 Waves
2019.09.08 13:53 [667003] smart account 3MqRnEd83AoPWjTCHP2PVpFpWg6KbBPCJyo > SELF 0.00000000 Waves
{
"type": 13,
"id": "EFejbFENusveLWbRkdZuNkUxbHHmioE6CkfrAfP3nixu",
"fee": 1500000,
"feeAssetId": null,
"timestamp": 1567939994057,
"version": 1,
"sender": "3MqRnEd83AoPWjTCHP2PVpFpWg6KbBPCJyo",
"senderPublicKey": "C1VF5w6S6GzcSydWsAbL2czedDrjFAPUeyZ5HknvisxJ",
"proofs": [
"6muaimrWoMY7sU31eKb5a5N9GbBfdSq3rp8qx9yK5QgcNgqnAeYpESMvQJRLfRcd5TGpcNqg33XoVXaCMuTrz6M"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAQAAAAFpAQAAAAZ0ZWxsbWUAAAAABAAAAA1jYWxsZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABW15YWRyCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAECAAAAIzNOQWNvZVdkVVRXbjhjc1hKUEc0N3YxRmp0amNmcXhiNXR1BAAAAA9jb3JyZWN0UHJpY2VCVEMEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAFbXlhZHICAAAAC3dhdmVzX2J0Y184AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAAD2NvcnJlY3RQcmljZVVTRAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAVteWFkcgIAAAALd2F2ZXNfdXNkXzIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAA1jYWxsZXJBZGRyZXNzAgAAAARfQlRDBQAAAA9jb3JyZWN0UHJpY2VCVEMJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAANY2FsbGVyQWRkcmVzcwIAAAAEX1VTRAUAAAAPY29ycmVjdFByaWNlVVNEBQAAAANuaWwAAAAAqYGwug==",
"chainId": 84,
"height": 667003,
"spentComplexity": 0
}
View: original | compacted
Prev: 7DRkYGZQ6KW7S1uMiX2tBzKD1zGsq5umwjQ3eDYUs1gS
Next: G33SqMQNLwvpDeF2SYmk9g6r4LFJA6KHuYWCPAhe1cWw
Diff:
Old | New | | Differences |
---|
13 | 13 | | case _ => |
---|
14 | 14 | | 0 |
---|
15 | 15 | | } |
---|
16 | | - | WriteSet([DataEntry((callerAddress + "_BTC"), correctPriceBTC)]) |
---|
| 16 | + | let correctPriceUSD = match getInteger(myadr, "waves_usd_2") { |
---|
| 17 | + | case a: Int => |
---|
| 18 | + | a |
---|
| 19 | + | case _ => |
---|
| 20 | + | 0 |
---|
| 21 | + | } |
---|
| 22 | + | WriteSet([DataEntry((callerAddress + "_BTC"), correctPriceBTC), DataEntry((callerAddress + "_USD"), correctPriceUSD)]) |
---|
17 | 23 | | } |
---|
18 | 24 | | |
---|
19 | 25 | | |
---|
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(i) |
---|
7 | 7 | | func tellme () = { |
---|
8 | 8 | | let callerAddress = toBase58String(i.caller.bytes) |
---|
9 | 9 | | let myadr = addressFromStringValue("3NAcoeWdUTWn8csXJPG47v1Fjtjcfqxb5tu") |
---|
10 | 10 | | let correctPriceBTC = match getInteger(myadr, "waves_btc_8") { |
---|
11 | 11 | | case a: Int => |
---|
12 | 12 | | a |
---|
13 | 13 | | case _ => |
---|
14 | 14 | | 0 |
---|
15 | 15 | | } |
---|
16 | | - | WriteSet([DataEntry((callerAddress + "_BTC"), correctPriceBTC)]) |
---|
| 16 | + | let correctPriceUSD = match getInteger(myadr, "waves_usd_2") { |
---|
| 17 | + | case a: Int => |
---|
| 18 | + | a |
---|
| 19 | + | case _ => |
---|
| 20 | + | 0 |
---|
| 21 | + | } |
---|
| 22 | + | WriteSet([DataEntry((callerAddress + "_BTC"), correctPriceBTC), DataEntry((callerAddress + "_USD"), correctPriceUSD)]) |
---|
17 | 23 | | } |
---|
18 | 24 | | |
---|
19 | 25 | | |
---|