tx · 5qLna6md2qdnPnd5m7aKf61w9vPisHJBLVxDypi6ciju

3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa:  -0.01400000 Waves

2019.09.08 12:48 [666935] smart account 3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa > SELF 0.00000000 Waves

{ "type": 13, "id": "5qLna6md2qdnPnd5m7aKf61w9vPisHJBLVxDypi6ciju", "fee": 1400000, "feeAssetId": null, "timestamp": 1567936086590, "version": 1, "sender": "3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa", "senderPublicKey": "HktRLq8bnL31myXeh7WVXAuMw8Qb7yrhPfMVxucQVeU", "proofs": [ "g3L9dpX1HN9SjnVrWGSFpFsRACrBvMhsjmhNCjrTJ6weCyAzqCefnEThQD9NEfPRKkhV4V4rLMaBSGpgyMH918w" ], "script": "base64:AAIDAAAAAAAAAAAAAAABAAAAAAhudWxsSG9tZQIAAAABMAAAAAIAAAABaQEAAAAHc2V0aG9tZQAAAAEAAAAGaG9tZUlkBAAAAAxzZWxsZXJCYXNlNTgJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAFd3JpdGUJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADHNlbGxlckJhc2U1OAUAAAAGaG9tZUlkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAApzZXRob21lTG9nCQABLAAAAAIJAAEsAAAAAgUAAAAMc2VsbGVyQmFzZTU4AgAAAAQgLT4gBQAAAAZob21lSWQFAAAAA25pbAkBAAAADFNjcmlwdFJlc3VsdAAAAAIFAAAABXdyaXRlCQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAABaQEAAAAEbWFpbgAAAAIAAAAMc2VsbGVyVmVjdG9yAAAABmhvbWVJZAQAAAADcG10CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQDCQEAAAAJaXNEZ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JQcZwKrAe29u71oqQ8mSAGNi2rNi4hjw2q5Rn Next: 43i2cYiTgYqkdASn6FjCwcPDwkfJzyfvo1VyAtcZf4qk Diff:
OldNewDifferences
1313
1414
1515 @Callable(i)
16-func main (sellerPublicKey,homeId) = {
16+func main (sellerVector,homeId) = {
1717 let pmt = extract(i.payment)
1818 if (isDefined(pmt.assetId))
1919 then throw("payment is only waves")
2020 else {
2121 let buerBase58 = toBase58String(i.caller.bytes)
22- let sellerAddress = addressFromPublicKey(sellerPublicKey)
23- let sellerBase58 = toBase58String(sellerAddress.bytes)
22+ let sellerAddress = addressFromPublicKey(sellerVector)
23+ let sellerBase58 = toBase58String(sellerVector)
2424 match getString(this, sellerBase58) {
2525 case home: String =>
2626 let transfer = TransferSet([ScriptTransfer(sellerAddress, pmt.amount, pmt.assetId)])
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let nullHome = "0"
55
66 @Callable(i)
77 func sethome (homeId) = {
88 let sellerBase58 = toBase58String(i.caller.bytes)
99 let write = WriteSet([DataEntry(sellerBase58, homeId), DataEntry("sethomeLog", ((sellerBase58 + " -> ") + homeId))])
1010 ScriptResult(write, TransferSet(nil))
1111 }
1212
1313
1414
1515 @Callable(i)
16-func main (sellerPublicKey,homeId) = {
16+func main (sellerVector,homeId) = {
1717 let pmt = extract(i.payment)
1818 if (isDefined(pmt.assetId))
1919 then throw("payment is only waves")
2020 else {
2121 let buerBase58 = toBase58String(i.caller.bytes)
22- let sellerAddress = addressFromPublicKey(sellerPublicKey)
23- let sellerBase58 = toBase58String(sellerAddress.bytes)
22+ let sellerAddress = addressFromPublicKey(sellerVector)
23+ let sellerBase58 = toBase58String(sellerVector)
2424 match getString(this, sellerBase58) {
2525 case home: String =>
2626 let transfer = TransferSet([ScriptTransfer(sellerAddress, pmt.amount, pmt.assetId)])
2727 let write = WriteSet([DataEntry(sellerBase58, nullHome), DataEntry(buerBase58, homeId), DataEntry("mainLog", ((sellerBase58 + " -> ") + buerBase58))])
2828 ScriptResult(write, transfer)
2929 case _ =>
3030 throw("saller ")
3131 }
3232 }
3333 }
3434
3535

github/deemru/w8io/169f3d6 
25.31 ms