tx · C2j1dbvqcUwAJF7Wz8RLPRRTgAC7YH3ziqHKQVMg6T9U
3MwwXqqNtNyPD1U9Rov5ygG9bCUGJeJMTy2: -0.01000000 Waves
2023.02.14 11:04 [2449028] smart account 3MwwXqqNtNyPD1U9Rov5ygG9bCUGJeJMTy2 > SELF 0.00000000 Waves
{
"type": 13,
"id": "C2j1dbvqcUwAJF7Wz8RLPRRTgAC7YH3ziqHKQVMg6T9U",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1676361892203,
"version": 2,
"chainId": 84,
"sender": "3MwwXqqNtNyPD1U9Rov5ygG9bCUGJeJMTy2",
"senderPublicKey": "GCbdokkxJFr9rj5258VmEVbDP4sQVUmXoiMz5hMRXa9S",
"proofs": [
"2R7X38Sgfdy2fwWjWaWwxtxrQXLmXYJ3JjzZ88jeBLuL5dXsVYvVpZjPfLGCwphFJqREiHSgyU8gEYzFhQyuH5GB"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAAAAAABAAAAAWkBAAAAC3JlZ1Byb3ZpZGVyAAAAAgAAAAhwcm92aWRlcgAAAARkYXRhBAAAAA1pc0tub3duQ2FsbGVyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAARoaXN0BQAAAAckbWF0Y2gwBQAAAARoaXN0AgAAAAV1bnNldAQAAAAEdFVTRAEAAAAgqyRKarZCRuvS/ON5sGG6w65pV01SespFHKdAHRGwKQ4DCQAAAAAAAAIFAAAADWlzS25vd25DYWxsZXICAAAABXVuc2V0CQAFFAAAAAIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAARkYXRhCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAA9CQAUAAAAEdFVTRAUAAAADbmlsBQAAAAR1bml0CQAAAgAAAAECAAAAFUNhbiBiZSB1c2VkIG9ubHkgb25jZQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleU2ui94=",
"height": 2449028,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 3SD2GnDfCWvFn6TMnSmWmzd6XGS63AhYT8ceYVkdJ568
Next: 62C8Dz4zKtZPKEdYXC3deU4CNAf9LP11qhyQoaHAZoTa
Diff:
Old | New | | Differences |
---|
12 | 12 | | "unset" |
---|
13 | 13 | | } |
---|
14 | 14 | | let tUSD = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85' |
---|
15 | | - | if ((isKnownCaller != "")) |
---|
| 15 | + | if ((isKnownCaller == "unset")) |
---|
16 | 16 | | then $Tuple2([StringEntry(toBase58String(i.caller.bytes), data), ScriptTransfer(i.caller, 1000000, tUSD)], unit) |
---|
17 | 17 | | else throw("Can be used only once") |
---|
18 | 18 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func regProvider (provider,data) = { |
---|
8 | 8 | | let isKnownCaller = match getString(this, toBase58String(i.caller.bytes)) { |
---|
9 | 9 | | case hist: String => |
---|
10 | 10 | | hist |
---|
11 | 11 | | case _ => |
---|
12 | 12 | | "unset" |
---|
13 | 13 | | } |
---|
14 | 14 | | let tUSD = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85' |
---|
15 | | - | if ((isKnownCaller != "")) |
---|
| 15 | + | if ((isKnownCaller == "unset")) |
---|
16 | 16 | | then $Tuple2([StringEntry(toBase58String(i.caller.bytes), data), ScriptTransfer(i.caller, 1000000, tUSD)], unit) |
---|
17 | 17 | | else throw("Can be used only once") |
---|
18 | 18 | | } |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|
21 | 21 | | @Verifier(tx) |
---|
22 | 22 | | func verify () = match tx { |
---|
23 | 23 | | case _ => |
---|
24 | 24 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
25 | 25 | | } |
---|
26 | 26 | | |
---|