tx · DSbNkHRiLA3BEZH1mgsNCpzAchp6tpGLd57B1TcvLbVS
3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7: -0.01400000 Waves
2020.02.03 17:56 [883123] smart account 3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7 > SELF 0.00000000 Waves
{
"type": 13,
"id": "DSbNkHRiLA3BEZH1mgsNCpzAchp6tpGLd57B1TcvLbVS",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1580741764893,
"version": 1,
"sender": "3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7",
"senderPublicKey": "JAAzQjxgzdgjCEdwXpfgpoMVcDpJRs4WgA9eTKxJYitU",
"proofs": [
"3t8SpiWxMN8Bh2kPVJQcaE37Hpv82T7NpFpbboyszmFSHaABXWPRp8uhppBC2WYjvEohwkDNhh4KmZ23tqbXhDsY"
],
"script": "base64:AAIDAAAAAAAAAAkIARIDCgECEgAAAAABAAAAABRyb290QWNjb3VudFB1YmxpY0tleQEAAAAAAAAAAgAAAAFpAQAAABFzZXRBY2NlcHRlZFBsYXllcgAAAAEAAAAPcGxheWVyUHVibGljS2V5AwkBAAAAAiE9AAAAAggFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BQAAABRyb290QWNjb3VudFB1YmxpY0tleQkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAABBlcnJvciBvbmx5IHJvb3QgCQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQIAAAALLCByb290IGlzOiAJAAJYAAAAAQUAAAAUcm9vdEFjY291bnRQdWJsaWNLZXkJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAJYAAAAAQUAAAAPcGxheWVyUHVibGljS2V5AAAAAAAAAAABBQAAAANuaWwAAAABaQEAAAAMcGxheWVySW52b2tlAAAAAAQAAAAPcGxheWVyUHVibGljS2V5CAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCQAEGwAAAAIFAAAABHRoaXMJAAJYAAAAAQUAAAAPcGxheWVyUHVibGljS2V5CQAAAgAAAAEJAAEsAAAAAgIAAAAZWW91IGFyZSBub3QgYWxsb3dlZCBoZXJlIAkAAlgAAAABBQAAAA9wbGF5ZXJQdWJsaWNLZXkJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAPcGxheWVyUHVibGljS2V5AAAAAAAADbugBQAAAAR1bml0BQAAAANuaWwAAAAAUHl7TQ==",
"chainId": 84,
"height": 883123,
"spentComplexity": 0
}
View: original | compacted
Prev: 62diHg2dsFP3RDttKz8oQ3C7USPVoDqKbFEp5qW9fprQ
Next: GE1DnjiCcXApsqeoyU3zyrwso9Fu8e2eUkPrSDUTccA5
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func setAcceptedPlayer (playerPublicKey) = if ((i.callerPublicKey != rootAccountPublicKey)) |
---|
8 | | - | then throw(("error only root " + toBase58String(i.callerPublicKey))) |
---|
| 8 | + | then throw(((("error only root " + toBase58String(i.callerPublicKey)) + ", root is: ") + toBase58String(rootAccountPublicKey))) |
---|
9 | 9 | | else WriteSet([DataEntry(toBase58String(playerPublicKey), 1)]) |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let rootAccountPublicKey = base58'' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func setAcceptedPlayer (playerPublicKey) = if ((i.callerPublicKey != rootAccountPublicKey)) |
---|
8 | | - | then throw(("error only root " + toBase58String(i.callerPublicKey))) |
---|
| 8 | + | then throw(((("error only root " + toBase58String(i.callerPublicKey)) + ", root is: ") + toBase58String(rootAccountPublicKey))) |
---|
9 | 9 | | else WriteSet([DataEntry(toBase58String(playerPublicKey), 1)]) |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | |
---|
13 | 13 | | @Callable(i) |
---|
14 | 14 | | func playerInvoke () = { |
---|
15 | 15 | | let playerPublicKey = i.callerPublicKey |
---|
16 | 16 | | if (!(isDefined(getBoolean(this, 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 | | |
---|