tx · 2PJDHrZ5Vym9w1GemzEt3rLVMWAi1teH6Jcs6kypEM1w
3N3qBxgLvTJwhhJT5Gb7pG5psvXmAMayktB: -0.01000000 Waves
2022.01.13 16:41 [1877255] smart account 3N3qBxgLvTJwhhJT5Gb7pG5psvXmAMayktB > SELF 0.00000000 Waves
{
"type": 13,
"id": "2PJDHrZ5Vym9w1GemzEt3rLVMWAi1teH6Jcs6kypEM1w",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1642081331963,
"version": 2,
"chainId": 84,
"sender": "3N3qBxgLvTJwhhJT5Gb7pG5psvXmAMayktB",
"senderPublicKey": "e8wMf2xB8k7aYu7Vrw368TnmW8cCwLMdChfYhZSF1Td",
"proofs": [
"22itAh3m5GMXjcGWLC15faQdUmxGdtPPx2Zg2JGyDPZPL9uiMZUnwh4CZT9FcRTAkygKCNzfzbP5WHcf4W9T73Xd"
],
"script": "base64:AAIDAAAAAAAAAA4IARoKCgFhEgVvd25lcgAAAAEAAAAAAWEBAAAAIAmDdutL8Xhj0g4U9uKjUb1gFuwW1MbFdiFHdPTo8rBIAAAAAAAAAADiAU3y",
"height": 1877255,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5sL2rSfsjekP8h9L9tvNWuZJbrEbcDGCKysJjdPKadvy
Next: none
Diff:
Old | New | | Differences |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let owner = base58'e8wMf2xB8k7aYu7Vrw368TnmW8cCwLMdChfYhZSF1Td' |
---|
5 | 5 | | |
---|
6 | | - | @Callable(i) |
---|
7 | | - | func vote (v) = { |
---|
8 | | - | let dataFromStorage = getString(this, toBase58String(i.callerPublicKey)) |
---|
9 | | - | if (isDefined(dataFromStorage)) |
---|
10 | | - | then throw("Вы уже голосовали") |
---|
11 | | - | else WriteSet([DataEntry(toBase58String(i.callerPublicKey), v)]) |
---|
12 | | - | } |
---|
13 | | - | |
---|
14 | | - | |
---|
15 | | - | @Verifier(tx) |
---|
16 | | - | func verify () = match tx { |
---|
17 | | - | case t: SetScriptTransaction => |
---|
18 | | - | sigVerify(tx.bodyBytes, tx.proofs[0], owner) |
---|
19 | | - | case c: InvokeScriptTransaction => |
---|
20 | | - | true |
---|
21 | | - | case d: DataTransaction => |
---|
22 | | - | true |
---|
23 | | - | case _ => |
---|
24 | | - | false |
---|
25 | | - | } |
---|
26 | 6 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let owner = base58'e8wMf2xB8k7aYu7Vrw368TnmW8cCwLMdChfYhZSF1Td' |
---|
5 | 5 | | |
---|
6 | | - | @Callable(i) |
---|
7 | | - | func vote (v) = { |
---|
8 | | - | let dataFromStorage = getString(this, toBase58String(i.callerPublicKey)) |
---|
9 | | - | if (isDefined(dataFromStorage)) |
---|
10 | | - | then throw("Вы уже голосовали") |
---|
11 | | - | else WriteSet([DataEntry(toBase58String(i.callerPublicKey), v)]) |
---|
12 | | - | } |
---|
13 | | - | |
---|
14 | | - | |
---|
15 | | - | @Verifier(tx) |
---|
16 | | - | func verify () = match tx { |
---|
17 | | - | case t: SetScriptTransaction => |
---|
18 | | - | sigVerify(tx.bodyBytes, tx.proofs[0], owner) |
---|
19 | | - | case c: InvokeScriptTransaction => |
---|
20 | | - | true |
---|
21 | | - | case d: DataTransaction => |
---|
22 | | - | true |
---|
23 | | - | case _ => |
---|
24 | | - | false |
---|
25 | | - | } |
---|
26 | 6 | | |
---|