tx · 9GWtXTy7EgMrVQ49MWmdeBQWbtXfohnNJYgZHaFjh17e
3NB3s9ThU4TS5oL9AXFz4nHPdueaNrW5naF: -0.01400000 Waves
2019.10.07 17:02 [709457] smart account 3NB3s9ThU4TS5oL9AXFz4nHPdueaNrW5naF > SELF 0.00000000 Waves
{
"type": 13,
"id": "9GWtXTy7EgMrVQ49MWmdeBQWbtXfohnNJYgZHaFjh17e",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1570456974334,
"version": 1,
"sender": "3NB3s9ThU4TS5oL9AXFz4nHPdueaNrW5naF",
"senderPublicKey": "4zWu7xYWo5xE6XkGNYRb6qFrq9Q9Rdn1gcwh3yYfv9ho",
"proofs": [
"41k2tDWFSQcF1QZqmNX4b3mSZ1PNxhFFPfH15YgMfqdHxxDS9qQP1EZVio9d75Ngxyyc56uAZEJCwLWJuffytT8R"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAQAAAAFpAQAAAAlXcml0ZU5vdGUAAAABAAAABG5vdGUEAAAADVNlbmRlckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAANU2VuZGVyQWRkcmVzcwUAAAAEbm90ZQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5B7FI0DU=",
"chainId": 84,
"height": 709457,
"spentComplexity": 0
}
View: original | compacted
Prev: uw6nGRpSpVrzWgrFsDShu1DicuSqd4k26sg16taw5ev
Next: none
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | | - | func main (b) = { |
---|
| 7 | + | func WriteNote (b) = { |
---|
8 | 8 | | let c = toBase58String(a.caller.bytes) |
---|
9 | | - | if ((b >= 5)) |
---|
10 | | - | then WriteSet([DataEntry(c, b)]) |
---|
11 | | - | else throw("valeur inférieure à 5") |
---|
| 9 | + | WriteSet([DataEntry(c, b)]) |
---|
12 | 10 | | } |
---|
13 | 11 | | |
---|
| 12 | + | |
---|
| 13 | + | @Verifier(d) |
---|
| 14 | + | func e () = { |
---|
| 15 | + | let f = d |
---|
| 16 | + | if ($isInstanceOf(f, "TransferTransaction")) |
---|
| 17 | + | then { |
---|
| 18 | + | let g = f |
---|
| 19 | + | sigVerify(d.bodyBytes, d.proofs[0], d.senderPublicKey) |
---|
| 20 | + | } |
---|
| 21 | + | else false |
---|
| 22 | + | } |
---|
14 | 23 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | | - | func main (b) = { |
---|
| 7 | + | func WriteNote (b) = { |
---|
8 | 8 | | let c = toBase58String(a.caller.bytes) |
---|
9 | | - | if ((b >= 5)) |
---|
10 | | - | then WriteSet([DataEntry(c, b)]) |
---|
11 | | - | else throw("valeur inférieure à 5") |
---|
| 9 | + | WriteSet([DataEntry(c, b)]) |
---|
12 | 10 | | } |
---|
13 | 11 | | |
---|
| 12 | + | |
---|
| 13 | + | @Verifier(d) |
---|
| 14 | + | func e () = { |
---|
| 15 | + | let f = d |
---|
| 16 | + | if ($isInstanceOf(f, "TransferTransaction")) |
---|
| 17 | + | then { |
---|
| 18 | + | let g = f |
---|
| 19 | + | sigVerify(d.bodyBytes, d.proofs[0], d.senderPublicKey) |
---|
| 20 | + | } |
---|
| 21 | + | else false |
---|
| 22 | + | } |
---|
14 | 23 | | |
---|