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(i) |
---|
7 | | - | func main (valeur) = { |
---|
| 7 | + | func WriteNote (note) = { |
---|
8 | 8 | | let SenderAddress = toBase58String(i.caller.bytes) |
---|
9 | | - | if ((valeur >= 5)) |
---|
10 | | - | then WriteSet([DataEntry(SenderAddress, valeur)]) |
---|
11 | | - | else throw("valeur inférieure à 5") |
---|
| 9 | + | WriteSet([DataEntry(SenderAddress, note)]) |
---|
12 | 10 | | } |
---|
13 | 11 | | |
---|
| 12 | + | |
---|
| 13 | + | @Verifier(tx) |
---|
| 14 | + | func verify () = match tx { |
---|
| 15 | + | case t: TransferTransaction => |
---|
| 16 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 17 | + | case _ => |
---|
| 18 | + | false |
---|
| 19 | + | } |
---|
14 | 20 | | |
---|
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(i) |
---|
7 | | - | func main (valeur) = { |
---|
| 7 | + | func WriteNote (note) = { |
---|
8 | 8 | | let SenderAddress = toBase58String(i.caller.bytes) |
---|
9 | | - | if ((valeur >= 5)) |
---|
10 | | - | then WriteSet([DataEntry(SenderAddress, valeur)]) |
---|
11 | | - | else throw("valeur inférieure à 5") |
---|
| 9 | + | WriteSet([DataEntry(SenderAddress, note)]) |
---|
12 | 10 | | } |
---|
13 | 11 | | |
---|
| 12 | + | |
---|
| 13 | + | @Verifier(tx) |
---|
| 14 | + | func verify () = match tx { |
---|
| 15 | + | case t: TransferTransaction => |
---|
| 16 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 17 | + | case _ => |
---|
| 18 | + | false |
---|
| 19 | + | } |
---|
14 | 20 | | |
---|