tx · 5VZMS3VSepFaPs65eFmCZ8nY85aDsUNjkcLPkmXr6zNp

3Mup4uG7mXS2N9Fuk3JtEpoKKmzA2PtQcUY:  -0.01400000 Waves

2019.09.23 17:47 [689134] smart account 3Mup4uG7mXS2N9Fuk3JtEpoKKmzA2PtQcUY > SELF 0.00000000 Waves

{ "type": 13, "id": "5VZMS3VSepFaPs65eFmCZ8nY85aDsUNjkcLPkmXr6zNp", "fee": 1400000, "feeAssetId": null, "timestamp": 1569250079070, "version": 1, "sender": "3Mup4uG7mXS2N9Fuk3JtEpoKKmzA2PtQcUY", "senderPublicKey": "6VdgiscuZ9B1c2urnAVPPVaCS5afNjzf1RpG2SS3GUy6", "proofs": [ "2qGdWWToRP1KCYcEAbZc7NZbqEt7dDcftKSQTyEgvX8hnj74nhAsTsCoesbUA7rirduAJLgANfTAfXadUTe1D9Dh" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAA1hY2NlcHRlZFRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAAMY3VycmVudFByaWNlAAAAAFF9oCwAAAAAAARiYW5rAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAEAAAAGaW52b2tlAQAAABFmaWxlQ2VydGlmaWNhdGlvbgAAAAIAAAAEaGFzaAAAAAV0aXRsZQQAAAAHcGF5bWVudAkBAAAAB2V4dHJhY3QAAAABCAUAAAAGaW52b2tlAAAAB3BheW1lbnQEAAAABmFtb3VudAkBAAAAB2V4dHJhY3QAAAABCAUAAAAHcGF5bWVudAAAAAZhbW91bnQEAAAAAmlkCQEAAAAHZXh0cmFjdAAAAAEIBQAAAAZpbnZva2UAAAANdHJhbnNhY3Rpb25JZAQAAAAOcGF5bWVudEFzc2V0SWQDCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAB3BheW1lbnQAAAAHYXNzZXRJZAkBAAAAB2V4dHJhY3QAAAABCAUAAAAHcGF5bWVudAAAAAdhc3NldElkCQAAAgAAAAECAAAAIFdhdmVzIGlzIG5vdCBhY2NlcHRlZCBhcyBwYXltZW50AwkBAAAAAiE9AAAAAgUAAAAOcGF5bWVudEFzc2V0SWQFAAAADWFjY2VwdGVkVG9rZW4JAAACAAAAAQIAAAAvT25seSBwYXltZW50cyBpbiBTSUdOIGFyZSBhbGxvd2VkIGF0IHRoZSBtb21lbnQDCQEAAAACIT0AAAACBQAAAAZhbW91bnQFAAAADGN1cnJlbnRQcmljZQkAAAIAAAABAgAAABJUaGUgcHJpY2UgaXMgd3JvbmcJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAZ0aXRsZV8JAAJYAAAAAQUAAAACaWQCAAAAAV8JAAJYAAAAAQgIBQAAAAZpbnZva2UAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAAV0aXRsZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAFaGFzaF8JAAJYAAAAAQUAAAACaWQCAAAAAV8JAAJYAAAAAQgIBQAAAAZpbnZva2UAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAARoYXNoBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAARiYW5rBQAAAAZhbW91bnQFAAAADWFjY2VwdGVkVG9rZW4FAAAAA25pbAAAAADmZEj6", "chainId": 84, "height": 689134, "spentComplexity": 0 } View: original | compacted Prev: none Next: 3QHfLGjZJPqW5QLD2PNjyp9je3GHAJCf2DHEHBjdBRLx Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let acceptedToken = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
5+
6+let currentPrice = 350000000000
7+
8+let bank = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
9+
10+@Callable(invoke)
11+func fileCertification (hash,title) = {
12+ let payment = extract(invoke.payment)
13+ let amount = extract(payment.amount)
14+ let id = extract(invoke.transactionId)
15+ let paymentAssetId = if (isDefined(payment.assetId))
16+ then extract(payment.assetId)
17+ else throw("Waves is not accepted as payment")
18+ if ((paymentAssetId != acceptedToken))
19+ then throw("Only payments in SIGN are allowed at the moment")
20+ else if ((amount != currentPrice))
21+ then throw("The price is wrong")
22+ else ScriptResult(WriteSet([DataEntry(((("title_" + toBase58String(id)) + "_") + toBase58String(invoke.caller.bytes)), title), DataEntry(((("hash_" + toBase58String(id)) + "_") + toBase58String(invoke.caller.bytes)), hash)]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken)]))
23+ }
24+
25+

github/deemru/w8io/169f3d6 
16.92 ms