tx · Hg5mvXuxgv8jDwGkJqSoUfyzNxHbvtwd6HEFGS1SyS2r 3N1acUf6EfjSRybWLQsk99Gd7RiS2DQME9Q: -0.04000000 Waves 2021.10.14 16:50 [1746012] smart account 3N1acUf6EfjSRybWLQsk99Gd7RiS2DQME9Q > SELF 0.00000000 Waves
{ "type": 13, "id": "Hg5mvXuxgv8jDwGkJqSoUfyzNxHbvtwd6HEFGS1SyS2r", "fee": 4000000, "feeAssetId": null, "timestamp": 1634219474245, "version": 2, "chainId": 84, "sender": "3N1acUf6EfjSRybWLQsk99Gd7RiS2DQME9Q", "senderPublicKey": "83iPAJVP46cHWYZXNdW5JwM2U8ZVXoQS3XtBkKv1Xgr3", "proofs": [ "4Jf6HHUbAE2jC9TqmeDiHBjyZDmaAPvic5KE9Y1kUEF72EoZUoRsWUtfXRr84XmUe2KjHGEHGcKorotiK56BZoWx" ], "script": "base64:AAIFAAAAAAAAAA0IAhIECgIICBIDCgEIAAAAAgAAAAAGb3JhY2xlCQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMCAAAABm9yYWNsZQIAAAAhTm8ga2V5IGJhc2VFeGNoYW5nZVJhdGUgd2FzIGZvdW5kAQAAAAt3cml0ZVN0cmluZwAAAAIAAAADa2V5AAAAC3N0cmluZ1ZhbHVlCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAANrZXkFAAAAC3N0cmluZ1ZhbHVlAAAAAgAAAAFpAQAAAAVzZXR1cAAAAAIAAAAGY29uZmlnAAAABm9yYWNsZQMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEJAAQdAAAAAgUAAAAEdGhpcwIAAAAFYWRtaW4JAARMAAAAAgkBAAAAC3dyaXRlU3RyaW5nAAAAAgIAAAAFYWRtaW4JAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkABEwAAAACCQEAAAALd3JpdGVTdHJpbmcAAAACAgAAAAZjb25maWcFAAAABmNvbmZpZwkABEwAAAACCQEAAAALd3JpdGVTdHJpbmcAAAACAgAAAAZvcmFjbGUFAAAABm9yYWNsZQUAAAADbmlsCQAAAgAAAAECAAAAFU9yYWNsZSBhbHJlYWR5IHNldHVwIQAAAAFpAQAAAAhnZXRQcmljZQAAAAEAAAAHYXNzZXRJZAQAAAAFcHJpY2UEAAAAByRtYXRjaDAFAAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABdAUAAAAHJG1hdGNoMAMJAAAAAAAAAgUAAAAHYXNzZXRJZAIAAAAFV0FWRVMAAAAAAAAAC+AAAAAAAAAAAGQAAAAAAAAAAAAJAAUUAAAAAgUAAAADbmlsBQAAAAVwcmljZQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V56aZ3zA==", "height": 1746012, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4GKTsQYLgV7rDut7s4aW9KtH64btsdhhE4GQ4E4LYtAo Next: DA7LZnhPj2H396iqiktmDjQRDThXi2Dpvr78FFRjZYQU Diff:
Old | New | Differences | |
---|---|---|---|
18 | 18 | let price = match assetId { | |
19 | 19 | case t: String => | |
20 | 20 | if ((assetId == "WAVES")) | |
21 | - | then | |
21 | + | then 3040 | |
22 | 22 | else 100 | |
23 | 23 | case _ => | |
24 | 24 | 0 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let oracle = valueOrErrorMessage(getStringValue(this, "oracle"), "No key baseExchangeRate was found") | |
5 | 5 | ||
6 | 6 | func writeString (key,stringValue) = StringEntry(key, stringValue) | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | @Callable(i) | |
10 | 10 | func setup (config,oracle) = if (!(isDefined(getString(this, "admin")))) | |
11 | 11 | then [writeString("admin", toBase58String(i.caller.bytes)), writeString("config", config), writeString("oracle", oracle)] | |
12 | 12 | else throw("Oracle already setup!") | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | ||
16 | 16 | @Callable(i) | |
17 | 17 | func getPrice (assetId) = { | |
18 | 18 | let price = match assetId { | |
19 | 19 | case t: String => | |
20 | 20 | if ((assetId == "WAVES")) | |
21 | - | then | |
21 | + | then 3040 | |
22 | 22 | else 100 | |
23 | 23 | case _ => | |
24 | 24 | 0 | |
25 | 25 | } | |
26 | 26 | $Tuple2(nil, price) | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | @Verifier(tx) | |
31 | 31 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
32 | 32 |
github/deemru/w8io/169f3d6 22.36 ms ◑