3P9zcGahS2j6E8wo96g6wHDuQM6FXpEjCTF
1 Like
3P6xGfb6ZGWLDojjsyExPUZqT8z7LZxEUEX
win
Smart contract source code
let hashBytes = base58'59aguGcT6YgwAx22S4jLnW7GWCqdfhxTjNFUCA9S5ncr'
match tx {
case win:MassTransferTransaction =>
let hint = "Feel free to check the Waves Wall project"
sha256(win.attachment) == hashBytes
&& win.transfers[0].recipient == addressFromString("3PPPPPpPDKZYvBHmSB71PTwnepyWHMrNgfY")
&& win.transfers[0].amount >= win.transfers[1].amount / 10
case _ => false
}
The secret attachment is the commit id
Very nice competition, @bodrych, and very smart winner (who are you?) https://nodes.wavesnodes.com/transactions/info/4EdKvorBosJgSfv9cbfWB1GZd4xuTCqqVQBDW83hD2W8:
{
"type": 11,
"id": "4EdKvorBosJgSfv9cbfWB1GZd4xuTCqqVQBDW83hD2W8",
"sender": "3P9zcGahS2j6E8wo96g6wHDuQM6FXpEjCTF",
"senderPublicKey": "AJW41jKEyFEmhyyY5rMEVPQX5evTwxT3MiXTLKciiHK3",
"fee": 700000,
"timestamp": 1549257757252,
"proofs": [],
"version": 1,
"assetId": null,
"attachment": "3c1artkGwEJVKyiRWhDhcXoj8B5sBN5pcQSSkjWxaCLfboZJi3ZbhZ9",
"transferCount": 3,
"totalAmount": 700800002,
"transfers": [
{
"recipient": "3PPPPPpPDKZYvBHmSB71PTwnepyWHMrNgfY",
"amount": 0
},
{
"recipient": "3P6xGfb6ZGWLDojjsyExPUZqT8z7LZxEUEX",
"amount": 1
},
{
"recipient": "3P6xGfb6ZGWLDojjsyExPUZqT8z7LZxEUEX",
"amount": 700800001
}
],
"height": 1381101
}
1 Like