tx · J8NT99tYiygC5ViLd86pK6ExCH3yG9T5MWgoyNTmF8JJ
3MvkyDr4VsmLhsQAg1CfMnsvbsAYJDBXJ1o: -0.01400000 Waves
2021.12.16 16:05 [1836850] smart account 3MvkyDr4VsmLhsQAg1CfMnsvbsAYJDBXJ1o > SELF 0.00000000 Waves
{
"type": 13,
"id": "J8NT99tYiygC5ViLd86pK6ExCH3yG9T5MWgoyNTmF8JJ",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1639659960713,
"version": 2,
"chainId": 84,
"sender": "3MvkyDr4VsmLhsQAg1CfMnsvbsAYJDBXJ1o",
"senderPublicKey": "EfgW9rhZvzmXU1Fcb1fJTgQzZWmyKDnKM3DkvfUh888x",
"proofs": [
"43brXwswcj6A3pqduXjpbF7btoR2ZiNKkhNougz3A6vYwwKcTw2FauV8WbASar8t7csx51F5uzvD4bMXEqeVLaqd"
],
"script": "base64:AAIFAAAAAAAAAG8IAhIECgIICBobCgFhEhZjb250cm9sQ29udHJhY3RBZGRyZXNzGgYKAWISAWkaCQoBYxIEYWRkchoRCgFkEgxlbmNyeXB0ZWRVcmkaDAoBZRIHJG1hdGNoMBoHCgFmEgJ0eBoLCgFnEgZ2ZXJpZnkAAAABAAAAAAFhAQAAABoBVKT64jLa+CJeizfFodW99FF4iM0xnvpPsgAAAAEAAAABYgEAAAAGYWRkUmVmAAAAAgAAAAFjAAAAAWQDCQEAAAACIT0AAAACCAgFAAAAAWIAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAAFhCQAAAgAAAAECAAAARUl0J3Mgb3JhY2xlIG1ldGhvZCBhbmQgY2FuIGJlIGNhbGxlZCBvbmx5IGJ5IGNvbnRyb2wgY29udHJhY3QgYWRkcmVzcwQAAAABZQkABB0AAAACBQAAAAR0aGlzBQAAAAFkAwkAAAEAAAACBQAAAAFlAgAAAARVbml0CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAAWQJAAEsAAAAAgkAASwAAAACBQAAAAFjAgAAAAE6CQACWAAAAAEIBQAAAAFiAAAADXRyYW5zYWN0aW9uSWQFAAAAA25pbAkAAAIAAAABAgAAAC1SZWYgZm9yIHNwZWNpZmllZCBlbmNyeXB0ZWRVcmkgYWxyZWFkeSBleGlzdHMAAAABAAAAAWYBAAAAAWcAAAAACQAB9AAAAAMIBQAAAAFmAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABZgAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAFmAAAAD3NlbmRlclB1YmxpY0tleRwsGx4=",
"height": 1836850,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: HUHqq7f67fSgE3VKu1gkVMxmCoXu1v8v1GjaqPt1WLsv
Next: Hh8khhjSvKvdYvuEW932RXzGpLC5ogSyHzf8PgqCHMYw
Diff:
Old | New | | Differences |
---|
4 | 4 | | let controlContractAddress = base58'3N4xR95UqYH94X8cU4BGPCpPHB6wgMS8jSy' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func addRef (addr,hashedUri) = if ((i.caller.bytes != controlContractAddress)) |
---|
| 7 | + | func addRef (addr,encryptedUri) = if ((i.caller.bytes != controlContractAddress)) |
---|
8 | 8 | | then throw("It's oracle method and can be called only by control contract address") |
---|
9 | | - | else match getString(this, hashedUri) { |
---|
| 9 | + | else match getString(this, encryptedUri) { |
---|
10 | 10 | | case _: Unit => |
---|
11 | | - | [StringEntry(hashedUri, ((addr + ":") + toBase58String(i.transactionId)))] |
---|
| 11 | + | [StringEntry(encryptedUri, ((addr + ":") + toBase58String(i.transactionId)))] |
---|
12 | 12 | | case _ => |
---|
13 | | - | throw("Ref for specified hashedUri already exists") |
---|
| 13 | + | throw("Ref for specified encryptedUri already exists") |
---|
14 | 14 | | } |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
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 (addr,hashedUri) = if ((i.caller.bytes != controlContractAddress)) |
---|
| 7 | + | func addRef (addr,encryptedUri) = if ((i.caller.bytes != controlContractAddress)) |
---|
8 | 8 | | then throw("It's oracle method and can be called only by control contract address") |
---|
9 | | - | else match getString(this, hashedUri) { |
---|
| 9 | + | else match getString(this, encryptedUri) { |
---|
10 | 10 | | case _: Unit => |
---|
11 | | - | [StringEntry(hashedUri, ((addr + ":") + toBase58String(i.transactionId)))] |
---|
| 11 | + | [StringEntry(encryptedUri, ((addr + ":") + toBase58String(i.transactionId)))] |
---|
12 | 12 | | case _ => |
---|
13 | | - | throw("Ref for specified hashedUri already exists") |
---|
| 13 | + | throw("Ref for specified encryptedUri 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 | | |
---|