tx · 2pUwbrsRqBuywErVUbHH9NcaKnw1kmzqNg7U6B2vxsfY
3MwLcJy3MSb2kq6dUaUR5uBgm8zCKZMjz2S: -0.01400000 Waves
2021.03.26 21:34 [1455077] smart account 3MwLcJy3MSb2kq6dUaUR5uBgm8zCKZMjz2S > SELF 0.00000000 Waves
{
"type": 13,
"id": "2pUwbrsRqBuywErVUbHH9NcaKnw1kmzqNg7U6B2vxsfY",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1616783682648,
"version": 2,
"chainId": 84,
"sender": "3MwLcJy3MSb2kq6dUaUR5uBgm8zCKZMjz2S",
"senderPublicKey": "CgByewRUvLk7UtWSfRMLSYw4Ap2wT5dcdVYKideqDp9M",
"proofs": [
"kKUYEYBwcr1QWK7mhrztFpFeZoB1hGR7aomqUt9dcbpPXRsXYynwRWGh4yL5yRNnHgE7Eyb8iiKmqecG5A24CHm"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAACQAAAAAOdG90YWxGZWVFdGhLZXkCAAAADXRvdGFsX2ZlZV9ldGgAAAAADnRvdGFsRmVlVXNkS2V5AgAAAA10b3RhbF9mZWVfdXNkAAAAABJ0b3RhbEZlZUR5enJhcHRLZXkCAAAAEXRvdGFsX2ZlZV9keXpyYXB0AAAAAA1vcmFjbGVBZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUvj/uzYkPvAWmBY0l0o79qoW9wh0kW3OWAQAAAAxnZXRGZWVBbW91bnQAAAABAAAABmFtb3VudAQAAAADZmVlCQAAawAAAAMFAAAABmFtb3VudAAAAAAAAAAAAwAAAAAAAAAAZAUAAAADZmVlAQAAAA1nZXRJbnRLZXlEYXRhAAAAAQAAAANrZXkEAAAAAXYJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AAAAAAAAAAAABQAAAAF2AQAAAA5nZXRUb3RhbEZlZUV0aAAAAAAJAQAAAA1nZXRJbnRLZXlEYXRhAAAAAQUAAAAOdG90YWxGZWVFdGhLZXkBAAAADmdldFRvdGFsRmVlVXNkAAAAAAkBAAAADWdldEludEtleURhdGEAAAABBQAAAA50b3RhbEZlZVVzZEtleQEAAAASZ2V0VG90YWxGZWVEeXpyYXB0AAAAAAkBAAAADWdldEludEtleURhdGEAAAABBQAAABJ0b3RhbEZlZUR5enJhcHRLZXkAAAABAAAAAWkBAAAABHRlc3QAAAAACQAAAgAAAAECAAAADWhlbGxvLCBzY3JpcHQAAAAAURTUFA==",
"height": 1455077,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 2aze6aCRWp6PrP1ytWvDywVTVXPWf5TFVxsEy4Fi3gSv
Next: ACVEotrYwkso5TiPA5hcEyT2QDcd2SvqDzwvL1RtFWxU
Diff:
Old | New | | Differences |
---|
6 | 6 | | let totalFeeUsdKey = "total_fee_usd" |
---|
7 | 7 | | |
---|
8 | 8 | | let totalFeeDyzraptKey = "total_fee_dyzrapt" |
---|
| 9 | + | |
---|
| 10 | + | let oracleAddress = Address(base58'3N7G2kVtBTh94aEnDHQ9dpi4EdsDxAiDXjB') |
---|
9 | 11 | | |
---|
10 | 12 | | func getFeeAmount (amount) = { |
---|
11 | 13 | | let fee = fraction(amount, 3, 100) |
---|
|
28 | 30 | | func getTotalFeeDyzrapt () = getIntKeyData(totalFeeDyzraptKey) |
---|
29 | 31 | | |
---|
30 | 32 | | |
---|
| 33 | + | @Callable(i) |
---|
| 34 | + | func test () = throw("hello, script") |
---|
| 35 | + | |
---|
31 | 36 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let totalFeeEthKey = "total_fee_eth" |
---|
5 | 5 | | |
---|
6 | 6 | | let totalFeeUsdKey = "total_fee_usd" |
---|
7 | 7 | | |
---|
8 | 8 | | let totalFeeDyzraptKey = "total_fee_dyzrapt" |
---|
| 9 | + | |
---|
| 10 | + | let oracleAddress = Address(base58'3N7G2kVtBTh94aEnDHQ9dpi4EdsDxAiDXjB') |
---|
9 | 11 | | |
---|
10 | 12 | | func getFeeAmount (amount) = { |
---|
11 | 13 | | let fee = fraction(amount, 3, 100) |
---|
12 | 14 | | fee |
---|
13 | 15 | | } |
---|
14 | 16 | | |
---|
15 | 17 | | |
---|
16 | 18 | | func getIntKeyData (key) = { |
---|
17 | 19 | | let v = valueOrElse(getInteger(this, key), 0) |
---|
18 | 20 | | v |
---|
19 | 21 | | } |
---|
20 | 22 | | |
---|
21 | 23 | | |
---|
22 | 24 | | func getTotalFeeEth () = getIntKeyData(totalFeeEthKey) |
---|
23 | 25 | | |
---|
24 | 26 | | |
---|
25 | 27 | | func getTotalFeeUsd () = getIntKeyData(totalFeeUsdKey) |
---|
26 | 28 | | |
---|
27 | 29 | | |
---|
28 | 30 | | func getTotalFeeDyzrapt () = getIntKeyData(totalFeeDyzraptKey) |
---|
29 | 31 | | |
---|
30 | 32 | | |
---|
| 33 | + | @Callable(i) |
---|
| 34 | + | func test () = throw("hello, script") |
---|
| 35 | + | |
---|
31 | 36 | | |
---|