tx · 6TGTZvQPCotW33DxKmzoYEp2ua2bmYT722e7NkPrJBVq
3MxmaLXR298KL3G2kuMawxEpUFbmQRtQNy7: -0.01400000 Waves
2019.11.20 17:32 [773615] smart account 3MxmaLXR298KL3G2kuMawxEpUFbmQRtQNy7 > SELF 0.00000000 Waves
{
"type": 13,
"id": "6TGTZvQPCotW33DxKmzoYEp2ua2bmYT722e7NkPrJBVq",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1574260366997,
"version": 1,
"sender": "3MxmaLXR298KL3G2kuMawxEpUFbmQRtQNy7",
"senderPublicKey": "FguDAUH6ELooQNYn2B9BQfsiEpLUXJRXMdgwRxSoUB3H",
"proofs": [
"5m1JPCqU6G619VziG7wEAHd9bYGk8t2vCz8uNZvQWFUhoazS38e2nimGK7Df4CBvzY9nnWkYg3FsTKxxA3ckyYDY"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAAQAAAAAOb3duZXJQdWJsaWNrZXkBAAAAIDtO+S8FXnhkPFYK+NuKUwWN9TpuXi7efd9X8uMhqqZmAAAAAQAAAAFpAQAAAAlXcml0ZU5vdGUAAAABAAAABG5vdGUEAAAADVNlbmRlckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAFaEJDMTAJAABkAAAAAgUAAAAGaGVpZ2h0AAAAAAAAAAAKCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAA1TZW5kZXJBZGRyZXNzBQAAAAVoQkMxMAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAGB4hIgNY=",
"chainId": 84,
"height": 773615,
"spentComplexity": 0
}
View: original | compacted
Prev: D3yeoYvKe79UMusnd3YucjnonQjwdAY9Az3yESMEdCpm
Next: none
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | |
---|
| 4 | + | let ownerPublickey = base58'4zWu7xYWo5xE6XkGNYRb6qFrq9Q9Rdn1gcwh3yYfv9ho' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func WriteNote (note) = { |
---|
|
11 | 11 | | } |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
| 14 | + | @Verifier(tx) |
---|
| 15 | + | func verify () = match tx { |
---|
| 16 | + | case d: SetAssetScriptTransaction => |
---|
| 17 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 18 | + | case d: DataTransaction => |
---|
| 19 | + | true |
---|
| 20 | + | case _ => |
---|
| 21 | + | false |
---|
| 22 | + | } |
---|
| 23 | + | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | |
---|
| 4 | + | let ownerPublickey = base58'4zWu7xYWo5xE6XkGNYRb6qFrq9Q9Rdn1gcwh3yYfv9ho' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func WriteNote (note) = { |
---|
8 | 8 | | let SenderAddress = toBase58String(i.caller.bytes) |
---|
9 | 9 | | let hBC10 = (height + 10) |
---|
10 | 10 | | WriteSet([DataEntry(SenderAddress, hBC10)]) |
---|
11 | 11 | | } |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
| 14 | + | @Verifier(tx) |
---|
| 15 | + | func verify () = match tx { |
---|
| 16 | + | case d: SetAssetScriptTransaction => |
---|
| 17 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 18 | + | case d: DataTransaction => |
---|
| 19 | + | true |
---|
| 20 | + | case _ => |
---|
| 21 | + | false |
---|
| 22 | + | } |
---|
| 23 | + | |
---|