tx · Ejf9QpLNWMfoA5FeLDEM6FdtfEd26YRhDs2uzC6WB8Ny
3MsCB4gHKSCgx52bNXXkXRAqT22NLH7ciaA: -0.01400000 Waves
2018.11.15 18:13 [377005] smart account 3MsCB4gHKSCgx52bNXXkXRAqT22NLH7ciaA > SELF 0.00000000 Waves
{
"type": 13,
"id": "Ejf9QpLNWMfoA5FeLDEM6FdtfEd26YRhDs2uzC6WB8Ny",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1542294892536,
"version": 1,
"sender": "3MsCB4gHKSCgx52bNXXkXRAqT22NLH7ciaA",
"senderPublicKey": "GfNrLWcr8Biphns5ZmtUi2GnGUQoKHTYdJVNr32oh2R9",
"proofs": [
"go5HFrZ6CpV2GkZtmgDKaBB4i3BHRvzWTZrwayYF3rJRpjqsfvHFf3ZkGXnDr6qR1pUPZ4jj99PMm6AnbQCJCB6"
],
"script": "base64:AQQAAAALbWFpbkFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNc0NCNGdIS1NDZ3g1MmJOWFhrWFJBcVQyMk5MSDdjaWFBBAAAABFtYWluQWRkcmVzc1B1YktleQEAAAAg6LQUyw1id1D+SaTpPNpSzV88cpVLAiVVqce1k+wUp1wEAAAAEm1haW5BZGRyZXNzU2lnbmVkMAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAABFtYWluQWRkcmVzc1B1YktleQAAAAAAAAAAAQAAAAAAAAAAAAQAAAASbWFpbkFkZHJlc3NTaWduZWQxAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAAEW1haW5BZGRyZXNzUHViS2V5AAAAAAAAAAABAAAAAAAAAAAABAAAABFtYWluQWRkcmVzc05vdGFyeQMJAAAAAAAAAgUAAAALbWFpbkFkZHJlc3MIBQAAAAJ0eAAAAAZzZW5kZXIGBwQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR0BQAAAAckbWF0Y2gwBAAAABBtYWluQWRkcmVzc1ZhbHVlCQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAggFAAAAAnR0AAAABnNlbmRlcgIAAAAJZ2FtZXZhbHVlBAAAAApnYW1lclZhbHVlCQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAggFAAAAAnR0AAAACXJlY2lwaWVudAIAAAAJZ2FtZXZhbHVlAwMFAAAAEW1haW5BZGRyZXNzTm90YXJ5CQAAZwAAAAIJAABkAAAAAgUAAAASbWFpbkFkZHJlc3NTaWduZWQwBQAAABJtYWluQWRkcmVzc1NpZ25lZDEAAAAAAAAAAAEHCQAAAAAAAAIFAAAACmdhbWVyVmFsdWUFAAAAEG1haW5BZGRyZXNzVmFsdWUHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAmR0BQAAAAckbWF0Y2gwCQAAZwAAAAIJAABkAAAAAgUAAAASbWFpbkFkZHJlc3NTaWduZWQwBQAAABJtYWluQWRkcmVzc1NpZ25lZDEAAAAAAAAAAAEEAAAABW90aGVyBQAAAAckbWF0Y2gwBgf8zeg=",
"chainId": 84,
"height": 377005,
"spentComplexity": 0
}
View: original | compacted
Prev: 5VEdYza9GjE9aUAB6FpWF6445JmL1NFDVqhqFFuxK7Mx
Next: 63AjqsncYm3SsQqLeQxkZiTJfAeR5EpHJ7paoHW4YWws
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let mainAddress = addressFromString("3MsCB4gHKSCgx52bNXXkXRAqT22NLH7ciaA") |
---|
| 4 | + | let mainAddressPubKey = base58'GfNrLWcr8Biphns5ZmtUi2GnGUQoKHTYdJVNr32oh2R9' |
---|
| 5 | + | let mainAddressSigned0 = if (sigVerify(tx.bodyBytes, tx.proofs[0], mainAddressPubKey)) |
---|
| 6 | + | then 1 |
---|
| 7 | + | else 0 |
---|
| 8 | + | let mainAddressSigned1 = if (sigVerify(tx.bodyBytes, tx.proofs[1], mainAddressPubKey)) |
---|
| 9 | + | then 1 |
---|
| 10 | + | else 0 |
---|
| 11 | + | let mainAddressNotary = if ((mainAddress == tx.sender)) |
---|
| 12 | + | then true |
---|
| 13 | + | else false |
---|
3 | 14 | | match tx { |
---|
4 | 15 | | case tt: TransferTransaction => |
---|
5 | | - | if ((5000 >= tt.amount)) |
---|
6 | | - | then true |
---|
| 16 | + | let mainAddressValue = extract(getInteger(tt.sender, "gamevalue")) |
---|
| 17 | + | let gamerValue = extract(getInteger(tt.recipient, "gamevalue")) |
---|
| 18 | + | if (if (mainAddressNotary) |
---|
| 19 | + | then ((mainAddressSigned0 + mainAddressSigned1) >= 1) |
---|
| 20 | + | else false) |
---|
| 21 | + | then (gamerValue == mainAddressValue) |
---|
7 | 22 | | else false |
---|
| 23 | + | case dt: DataTransaction => |
---|
| 24 | + | ((mainAddressSigned0 + mainAddressSigned1) >= 1) |
---|
8 | 25 | | case other => |
---|
9 | 26 | | true |
---|
10 | 27 | | } |
---|