tx · D8fxnkLp2vnyKehjgWEYHDq76VFxwMxTamwuBrepRBt1
3MvkyDr4VsmLhsQAg1CfMnsvbsAYJDBXJ1o: -0.01000000 Waves
2021.12.13 19:00 [1832695] smart account 3MvkyDr4VsmLhsQAg1CfMnsvbsAYJDBXJ1o > SELF 0.00000000 Waves
{
"type": 13,
"id": "D8fxnkLp2vnyKehjgWEYHDq76VFxwMxTamwuBrepRBt1",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1639411220478,
"version": 2,
"chainId": 84,
"sender": "3MvkyDr4VsmLhsQAg1CfMnsvbsAYJDBXJ1o",
"senderPublicKey": "EfgW9rhZvzmXU1Fcb1fJTgQzZWmyKDnKM3DkvfUh888x",
"proofs": [
"29NyGCq5TLKikv4qUGVVAC8WyGnU5un7sFsr5TQAbKZj8zhHjgHYybSdTNX8MArjAbmc8Ks9TFUgPqVfu3MDZaxo"
],
"script": "base64:AAIFAAAAAAAAAG8IAhIECgIICBobCgFhEhZjb250cm9sQ29udHJhY3RBZGRyZXNzGgYKAWISAWkaEQoBYxIMZW5jcnlwdGVkVXJpGgkKAWQSBGFkZHIaDAoBZRIHJG1hdGNoMBoHCgFmEgJ0eBoLCgFnEgZ2ZXJpZnkAAAABAAAAAAFhAQAAABoBVKT64jLa+CJeizfFodW99FF4iM0xnvpPsgAAAAEAAAABYgEAAAAGYWRkUmVmAAAAAgAAAAFjAAAAAWQDCQEAAAACIT0AAAACCAgFAAAAAWIAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAAFhCQAAAgAAAAECAAAAREl0J3MgYW4gb3JhY2xlIG1ldGhvZCBhbmQgY2FuIGJlIGNhbGxlZCBvbmx5IGJ5IHRoZSBjb250cm9sIGNvbnRyYWN0BAAAAAFlCQAEHQAAAAIFAAAABHRoaXMFAAAAAWMDCQAAAQAAAAIFAAAAAWUCAAAABFVuaXQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAABYwUAAAABZAUAAAADbmlsCQAAAgAAAAECAAAALVJlZiBmb3Igc3BlY2lmaWVkIGVuY3J5cHRlZFVyaSBhbHJlYWR5IGV4aXN0cwAAAAEAAAABZgEAAAABZwAAAAAJAAH0AAAAAwgFAAAAAWYAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAFmAAAABnByb29mcwAAAAAAAAAAAAgFAAAAAWYAAAAPc2VuZGVyUHVibGljS2V5qB8x8g==",
"height": 1832695,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: HUHqq7f67fSgE3VKu1gkVMxmCoXu1v8v1GjaqPt1WLsv
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 5 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let controlContractAddress = base58'3N4xR95UqYH94X8cU4BGPCpPHB6wgMS8jSy' |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func addRef (encryptedUri,addr) = if ((i.caller.bytes != controlContractAddress)) |
---|
| 8 | + | then throw("It's an oracle method and can be called only by the control contract") |
---|
| 9 | + | else match getString(this, encryptedUri) { |
---|
| 10 | + | case _: Unit => |
---|
| 11 | + | [StringEntry(encryptedUri, addr)] |
---|
| 12 | + | case _ => |
---|
| 13 | + | throw("Ref for specified encryptedUri already exists") |
---|
| 14 | + | } |
---|
| 15 | + | |
---|
| 16 | + | |
---|
| 17 | + | @Verifier(tx) |
---|
| 18 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 19 | + | |
---|