tx · 72BacN9tJRXHNeYfVYhifrKcw85cKRac1yEshbhem43t
3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7: -0.01400000 Waves
2020.02.03 18:55 [883186] smart account 3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7 > SELF 0.00000000 Waves
{
"type": 13,
"id": "72BacN9tJRXHNeYfVYhifrKcw85cKRac1yEshbhem43t",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1580745345459,
"version": 1,
"sender": "3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7",
"senderPublicKey": "JAAzQjxgzdgjCEdwXpfgpoMVcDpJRs4WgA9eTKxJYitU",
"proofs": [
"3PgEMyLdKZCfmvfrFBd7uWeB3Xz3tya9UwFKzkwcSWno9mgPkFgHxCYZfU9pY2GZmJpZkuN5BVwgHrGy6u3vYP5T"
],
"script": "base64:AAIDAAAAAAAAAAkIARIDCgEIEgAAAAABAAAAABRyb290QWNjb3VudFB1YmxpY0tleQEAAAAg/vAzV0dUdrsrjEv+jGHwMOZenmxYuL7Qu1GZmdwslzUAAAACAAAAAWkBAAAAEXNldEFjY2VwdGVkUGxheWVyAAAAAQAAAA9wbGF5ZXJQdWJsaWNLZXkDCQEAAAACIT0AAAACCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkFAAAAFHJvb3RBY2NvdW50UHVibGljS2V5CQAAAgAAAAECAAAAD2Vycm9yIG9ubHkgcm9vdAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAPcGxheWVyUHVibGljS2V5AAAAAAAAAAABBQAAAANuaWwAAAABaQEAAAAMcGxheWVySW52b2tlAAAAAAQAAAAPcGxheWVyUHVibGljS2V5CAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCQAEGwAAAAIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAFHJvb3RBY2NvdW50UHVibGljS2V5CQACWAAAAAEFAAAAD3BsYXllclB1YmxpY0tleQkAAAIAAAABCQABLAAAAAICAAAAGVlvdSBhcmUgbm90IGFsbG93ZWQgaGVyZSAJAAJYAAAAAQUAAAAPcGxheWVyUHVibGljS2V5CQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAD3BsYXllclB1YmxpY0tleQAAAAAAAA27oAUAAAAEdW5pdAUAAAADbmlsAAAAAOxn8tU=",
"chainId": 84,
"height": 883186,
"spentComplexity": 0
}
View: original | compacted
Prev: GC7RwmKywwqmcMD6qNhsVLJFSU6H8uri6w5GYFiaopwS
Next: 6nZut37B63joHfwjf85w8BsNkNm7XfKEgNApgbnPriNj
Diff:
Old | New | | Differences |
---|
13 | 13 | | @Callable(i) |
---|
14 | 14 | | func playerInvoke () = { |
---|
15 | 15 | | let playerPublicKey = i.callerPublicKey |
---|
16 | | - | if (!(isDefined(getBoolean(this, toBase58String(playerPublicKey))))) |
---|
| 16 | + | if (!(isDefined(getBoolean(addressFromPublicKey(rootAccountPublicKey), toBase58String(playerPublicKey))))) |
---|
17 | 17 | | then throw(("You are not allowed here " + toBase58String(playerPublicKey))) |
---|
18 | 18 | | else ScriptResult(WriteSet(nil), TransferSet([ScriptTransfer(addressFromPublicKey(playerPublicKey), 900000, unit)])) |
---|
19 | 19 | | } |
---|
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 | 7 | | func setAcceptedPlayer (playerPublicKey) = if ((i.callerPublicKey != rootAccountPublicKey)) |
---|
8 | 8 | | then throw("error only root") |
---|
9 | 9 | | else WriteSet([DataEntry(playerPublicKey, 1)]) |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | |
---|
13 | 13 | | @Callable(i) |
---|
14 | 14 | | func playerInvoke () = { |
---|
15 | 15 | | let playerPublicKey = i.callerPublicKey |
---|
16 | | - | if (!(isDefined(getBoolean(this, toBase58String(playerPublicKey))))) |
---|
| 16 | + | if (!(isDefined(getBoolean(addressFromPublicKey(rootAccountPublicKey), toBase58String(playerPublicKey))))) |
---|
17 | 17 | | then throw(("You are not allowed here " + toBase58String(playerPublicKey))) |
---|
18 | 18 | | else ScriptResult(WriteSet(nil), TransferSet([ScriptTransfer(addressFromPublicKey(playerPublicKey), 900000, unit)])) |
---|
19 | 19 | | } |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|