tx · 72uVtNn9q39vpbyBsUge7svEeCGVWFeb6eG1SZ1ExJsx
3N4TEQzMSjr8dNSXeexyKmteC6coHneTydX: -0.01000000 Waves
2021.06.10 21:46 [1564657] smart account 3N4TEQzMSjr8dNSXeexyKmteC6coHneTydX > SELF 0.00000000 Waves
{
"type": 13,
"id": "72uVtNn9q39vpbyBsUge7svEeCGVWFeb6eG1SZ1ExJsx",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1623350886265,
"version": 2,
"chainId": 84,
"sender": "3N4TEQzMSjr8dNSXeexyKmteC6coHneTydX",
"senderPublicKey": "BLYPM7pr6zCdxj9zzANneoGVcDEwBnQApCEnR3BkNm68",
"proofs": [
"5F6QapP7HbkavimNLgGn7JA7BwqZm4kjGWkZBVsuCU77H92mmDMum9uVzidcRBCdPxHN58trMi4j72K6LwSE86Hd"
],
"script": "base64:AAIFAAAAAAAAAAcIAhIDCgEBAAAAAAAAAAEAAAABaQEAAAAIZ2l2ZUF3YXkAAAABAAAAA2FnZQkABRQAAAACCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAADYWdlBQAAAAR1bml0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAAA2FnZQUAAAADbmlsBQAAAAR1bml0AAAAAQAAAAJ0eAEAAAAIdmVyaWZpZXIAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleWG4Ago=",
"height": 1564657,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 33Bpk4KFsnuM7F27Mwef9u5drNDTHfXNQMZmoX1d5MXC
Next: 83PCAKtcuBfDmNfHBs4BPV8CgmGKVbELKkm9RyrFjkFv
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | func getPayment (i) = if ((size(i.payments) == 0)) |
---|
5 | | - | then throw("Payment must be attached") |
---|
6 | | - | else { |
---|
7 | | - | let pmt = i.payments[0] |
---|
8 | | - | if (isDefined(pmt.assetId)) |
---|
9 | | - | then throw("This function accepts WAVES tokens only") |
---|
10 | | - | else pmt.amount |
---|
11 | | - | } |
---|
12 | 4 | | |
---|
13 | 5 | | |
---|
14 | 6 | | @Callable(i) |
---|
15 | | - | func pay () = { |
---|
16 | | - | let amount = getPayment(i) |
---|
17 | | - | $Tuple2([IntegerEntry(toBase58String(i.caller.bytes), amount)], unit) |
---|
18 | | - | } |
---|
| 7 | + | func giveAway (age) = $Tuple2([ScriptTransfer(i.caller, age, unit), IntegerEntry(toBase58String(i.caller.bytes), age)], unit) |
---|
19 | 8 | | |
---|
| 9 | + | |
---|
| 10 | + | @Verifier(tx) |
---|
| 11 | + | func verifier () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
20 | 12 | | |
---|