tx · 3nn8xZpo7TLDHFA1qJRdifgLR8PyqSLYgA2dHk4K6peD
3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7: -0.01400000 Waves
2020.02.03 18:44 [883174] smart account 3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7 > SELF 0.00000000 Waves
{
"type": 13,
"id": "3nn8xZpo7TLDHFA1qJRdifgLR8PyqSLYgA2dHk4K6peD",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1580744621369,
"version": 1,
"sender": "3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7",
"senderPublicKey": "JAAzQjxgzdgjCEdwXpfgpoMVcDpJRs4WgA9eTKxJYitU",
"proofs": [
"3noY7mJMgppJ7LdZZMDZfSfq92k1um4552zn6ifbFaE3HLqhZDKkpt3jk9T4j6KE8pSrPCaqeLqWNEAn4oSwvygA"
],
"script": "base64:AAIDAAAAAAAAAAkIARIDCgECEgAAAAABAAAAABRyb290QWNjb3VudFB1YmxpY0tleQEAAAAg/vAzV0dUdrsrjEv+jGHwMOZenmxYuL7Qu1GZmdwslzUAAAACAAAAAWkBAAAAEXNldEFjY2VwdGVkUGxheWVyAAAAAQAAAA9wbGF5ZXJQdWJsaWNLZXkJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAJYAAAAAQUAAAAPcGxheWVyUHVibGljS2V5AAAAAAAAAAABBQAAAANuaWwAAAABaQEAAAAMcGxheWVySW52b2tlAAAAAAQAAAAPcGxheWVyUHVibGljS2V5CAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCQAEGwAAAAIFAAAABHRoaXMJAAJYAAAAAQUAAAAPcGxheWVyUHVibGljS2V5CQAAAgAAAAEJAAEsAAAAAgIAAAAZWW91IGFyZSBub3QgYWxsb3dlZCBoZXJlIAkAAlgAAAABBQAAAA9wbGF5ZXJQdWJsaWNLZXkJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAPcGxheWVyUHVibGljS2V5AAAAAAAADbugBQAAAAR1bml0BQAAAANuaWwAAAAAB8CjBg==",
"chainId": 84,
"height": 883174,
"spentComplexity": 0
}
View: original | compacted
Prev: 91ifaQ6dF7vMMZHhyAt3GUkh9Zm6wdnEXLjnVZB7KbR3
Next: GC7RwmKywwqmcMD6qNhsVLJFSU6H8uri6w5GYFiaopwS
Diff:
Old | New | | Differences |
---|
4 | 4 | | let rootAccountPublicKey = base58'JAAzQjxgzdgjCEdwXpfgpoMVcDpJRs4WgA9eTKxJYitU' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func setAcceptedPlayer (playerPublicKey) = if ((i.callerPublicKey != rootAccountPublicKey)) |
---|
8 | | - | then throw(((("error only root " + toBase58String(i.callerPublicKey)) + ", root is: ") + toBase58String(rootAccountPublicKey))) |
---|
9 | | - | else WriteSet([DataEntry(toBase58String(playerPublicKey), 1)]) |
---|
| 7 | + | func setAcceptedPlayer (playerPublicKey) = WriteSet([DataEntry(toBase58String(playerPublicKey), 1)]) |
---|
10 | 8 | | |
---|
11 | 9 | | |
---|
12 | 10 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let rootAccountPublicKey = base58'JAAzQjxgzdgjCEdwXpfgpoMVcDpJRs4WgA9eTKxJYitU' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func setAcceptedPlayer (playerPublicKey) = if ((i.callerPublicKey != rootAccountPublicKey)) |
---|
8 | | - | then throw(((("error only root " + toBase58String(i.callerPublicKey)) + ", root is: ") + toBase58String(rootAccountPublicKey))) |
---|
9 | | - | else WriteSet([DataEntry(toBase58String(playerPublicKey), 1)]) |
---|
| 7 | + | func setAcceptedPlayer (playerPublicKey) = WriteSet([DataEntry(toBase58String(playerPublicKey), 1)]) |
---|
10 | 8 | | |
---|
11 | 9 | | |
---|
12 | 10 | | |
---|
13 | 11 | | @Callable(i) |
---|
14 | 12 | | func playerInvoke () = { |
---|
15 | 13 | | let playerPublicKey = i.callerPublicKey |
---|
16 | 14 | | if (!(isDefined(getBoolean(this, toBase58String(playerPublicKey))))) |
---|
17 | 15 | | then throw(("You are not allowed here " + toBase58String(playerPublicKey))) |
---|
18 | 16 | | else ScriptResult(WriteSet(nil), TransferSet([ScriptTransfer(addressFromPublicKey(playerPublicKey), 900000, unit)])) |
---|
19 | 17 | | } |
---|
20 | 18 | | |
---|
21 | 19 | | |
---|