tx · DA7LZnhPj2H396iqiktmDjQRDThXi2Dpvr78FFRjZYQU

3N1acUf6EfjSRybWLQsk99Gd7RiS2DQME9Q:  -0.05000000 Waves

2021.10.14 22:05 [1746343] smart account 3N1acUf6EfjSRybWLQsk99Gd7RiS2DQME9Q > SELF 0.00000000 Waves

{ "type": 13, "id": "DA7LZnhPj2H396iqiktmDjQRDThXi2Dpvr78FFRjZYQU", "fee": 5000000, "feeAssetId": null, "timestamp": 1634238340445, "version": 2, "chainId": 84, "sender": "3N1acUf6EfjSRybWLQsk99Gd7RiS2DQME9Q", "senderPublicKey": "83iPAJVP46cHWYZXNdW5JwM2U8ZVXoQS3XtBkKv1Xgr3", "proofs": [ "2aHWZAsh8JUYcmTUUfG5JHnHKZUX79gnPBcdeHbnDDz4Lm8E5zGDg75QSXYepzaRtkVTbQv99RP3eqGNgYr1BED8" ], "script": "base64:AAIFAAAAAAAAAA0IAhIECgIICBIDCgEIAAAAAgAAAAAGb3JhY2xlCQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMCAAAABm9yYWNsZQIAAAAhTm8ga2V5IGJhc2VFeGNoYW5nZVJhdGUgd2FzIGZvdW5kAQAAAAt3cml0ZVN0cmluZwAAAAIAAAADa2V5AAAAC3N0cmluZ1ZhbHVlCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAANrZXkFAAAAC3N0cmluZ1ZhbHVlAAAAAgAAAAFpAQAAAAVzZXR1cAAAAAIAAAAGY29uZmlnAAAABm9yYWNsZQMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEJAAQdAAAAAgUAAAAEdGhpcwIAAAAFYWRtaW4JAARMAAAAAgkBAAAAC3dyaXRlU3RyaW5nAAAAAgIAAAAFYWRtaW4JAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkABEwAAAACCQEAAAALd3JpdGVTdHJpbmcAAAACAgAAAAZjb25maWcFAAAABmNvbmZpZwkABEwAAAACCQEAAAALd3JpdGVTdHJpbmcAAAACAgAAAAZvcmFjbGUFAAAABm9yYWNsZQUAAAADbmlsCQAAAgAAAAECAAAAFU9yYWNsZSBhbHJlYWR5IHNldHVwIQAAAAFpAQAAAAhnZXRQcmljZQAAAAEAAAAHYXNzZXRJZAQAAAAFcHJpY2UEAAAAByRtYXRjaDAFAAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABdAUAAAAHJG1hdGNoMAMJAAAAAAAAAgUAAAAHYXNzZXRJZAIAAAAFV0FWRVMAAAAAAAAACcQAAAAAAAAAAGQAAAAAAAAAAAAJAAUUAAAAAgUAAAADbmlsBQAAAAVwcmljZQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5eL5ebQ==", "height": 1746343, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hg5mvXuxgv8jDwGkJqSoUfyzNxHbvtwd6HEFGS1SyS2r Next: Frtmo5sNA4TKki811bRZUyhAJesvRzYQy879d2TPcARZ Diff:
OldNewDifferences
1818 let price = match assetId {
1919 case t: String =>
2020 if ((assetId == "WAVES"))
21- then 3040
21+ then 2500
2222 else 100
2323 case _ =>
2424 0
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let oracle = valueOrErrorMessage(getStringValue(this, "oracle"), "No key baseExchangeRate was found")
55
66 func writeString (key,stringValue) = StringEntry(key, stringValue)
77
88
99 @Callable(i)
1010 func setup (config,oracle) = if (!(isDefined(getString(this, "admin"))))
1111 then [writeString("admin", toBase58String(i.caller.bytes)), writeString("config", config), writeString("oracle", oracle)]
1212 else throw("Oracle already setup!")
1313
1414
1515
1616 @Callable(i)
1717 func getPrice (assetId) = {
1818 let price = match assetId {
1919 case t: String =>
2020 if ((assetId == "WAVES"))
21- then 3040
21+ then 2500
2222 else 100
2323 case _ =>
2424 0
2525 }
2626 $Tuple2(nil, price)
2727 }
2828
2929
3030 @Verifier(tx)
3131 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3232

github/deemru/w8io/169f3d6 
19.82 ms