tx · HXxJ3i5c3Ff6bi9wC3isje4ie3Kaj3HHgcYZ8jb1caYY
3MsKhh2tBJqUdyNakXBjdq3vL7uR5Yrz6Dc: -0.01400000 Waves
2021.08.30 02:13 [1680273] smart account 3MsKhh2tBJqUdyNakXBjdq3vL7uR5Yrz6Dc > SELF 0.00000000 Waves
{
"type": 13,
"id": "HXxJ3i5c3Ff6bi9wC3isje4ie3Kaj3HHgcYZ8jb1caYY",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1630278822590,
"version": 2,
"chainId": 84,
"sender": "3MsKhh2tBJqUdyNakXBjdq3vL7uR5Yrz6Dc",
"senderPublicKey": "793KuCHBzJorpP1hPfRJAsYdtU4pr9uYLTr8mChrzg5k",
"proofs": [
"5CYc4APioYGURzver46tQZd1k8Hi96jgi7zyYF9TaWuaojsFUmvQ7Rr9GEYmyiiccQzu99v4HPC48Y9ZDV7vQ5Us"
],
"script": "base64:AAIFAAAAAAAAAHMIAhIECgIICBocCgJhMRIWY29udHJvbENvbnRyYWN0QWRkcmVzcxoHCgJhMhIBaRoKCgJhMxIEYWRkchoPCgJhNBIJaGFzaGVkVXJpGg0KAmE1EgckbWF0Y2gwGggKAmE2EgJ0eBoMCgJhNxIGdmVyaWZ5AAAAAQAAAAACYTEBAAAAGgFUpPriMtr4Il6LN8Wh1b30UXiIzTGe+k+yAAAAAQAAAAJhMgEAAAAGYWRkUmVmAAAAAgAAAAJhMwAAAAJhNAMJAQAAAAIhPQAAAAIICAUAAAACYTIAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAAJhMQkAAAIAAAABAgAAAEVJdCdzIG9yYWNsZSBtZXRob2QgYW5kIGNhbiBiZSBjYWxsZWQgb25seSBieSBjb250cm9sIGNvbnRyYWN0IGFkZHJlc3MEAAAAAmE1CQAEHQAAAAIFAAAABHRoaXMFAAAAAmE0AwkAAAEAAAACBQAAAAJhNQIAAAAEVW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAJhNAUAAAACYTMFAAAAA25pbAkAAAIAAAABAgAAACpSZWYgZm9yIHNwZWNpZmllZCBoYXNoZWRVcmkgYWxyZWFkeSBleGlzdHMAAAABAAAAAmE2AQAAAAJhNwAAAAAJAAH0AAAAAwgFAAAAAmE2AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACYTYAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACYTYAAAAPc2VuZGVyUHVibGljS2V5SkqP9g==",
"height": 1680273,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 3sYKKTFa7M31R4nqVdixSG3ffYAdofxH5vTZFLp2BBEx
Next: 4U6JbE9NCSUJt8NamCadTDm98V1tMccbMWDNZ33aGwkb
Diff:
Old | New | | Differences |
---|
4 | 4 | | let controlContractAddress = base58'3N4xR95UqYH94X8cU4BGPCpPHB6wgMS8jSy' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func addRef (hashedUri,addr) = if ((i.caller.bytes != controlContractAddress)) |
---|
| 7 | + | func addRef (addr,hashedUri) = if ((i.caller.bytes != controlContractAddress)) |
---|
8 | 8 | | then throw("It's oracle method and can be called only by control contract address") |
---|
9 | 9 | | else match getString(this, hashedUri) { |
---|
10 | 10 | | case _: Unit => |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let controlContractAddress = base58'3N4xR95UqYH94X8cU4BGPCpPHB6wgMS8jSy' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func addRef (hashedUri,addr) = if ((i.caller.bytes != controlContractAddress)) |
---|
| 7 | + | func addRef (addr,hashedUri) = if ((i.caller.bytes != controlContractAddress)) |
---|
8 | 8 | | then throw("It's oracle method and can be called only by control contract address") |
---|
9 | 9 | | else match getString(this, hashedUri) { |
---|
10 | 10 | | case _: Unit => |
---|
11 | 11 | | [StringEntry(hashedUri, addr)] |
---|
12 | 12 | | case _ => |
---|
13 | 13 | | throw("Ref for specified hashedUri already exists") |
---|
14 | 14 | | } |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | @Verifier(tx) |
---|
18 | 18 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
19 | 19 | | |
---|