tx · 97jvZ2KG5rthzD4w6oKonTTm75CFscADpgyvmK72as3f

3NARWzNaChSw8Mpf8CZYavL4QWQvk3KUU8b:  -0.01400000 Waves

2019.08.20 00:30 [638590] smart account 3NARWzNaChSw8Mpf8CZYavL4QWQvk3KUU8b > SELF 0.00000000 Waves

{ "type": 13, "id": "97jvZ2KG5rthzD4w6oKonTTm75CFscADpgyvmK72as3f", "fee": 1400000, "feeAssetId": null, "timestamp": 1566250203744, "version": 1, "sender": "3NARWzNaChSw8Mpf8CZYavL4QWQvk3KUU8b", "senderPublicKey": "848RkjzRcJfyWuhGbq8NUFoLMpeDW8NbKu36H3SouHzF", "proofs": [ "5UC9FSPS1hXpyceLmE5PeBK28XZ7QAMGvwvg977hXB4SQQXVeScjB8T5AgY3rdXYaAiygnHCinfTTDX7banzTmFg" ], "script": "base64:AAIDAAAAAAAAAAAAAAAFAAAAAAp3YXZlc1Rva2VuBQAAAAR1bml0AQAAAAlwYXltZW50T2YAAAABAAAAA2tleQkAASwAAAACAgAAAAtwYXltZW50X29mXwUAAAADa2V5AQAAAAhzdGF0dXNPZgAAAAEAAAADa2V5CQABLAAAAAICAAAACnN0YXR1c19vZl8FAAAAA2tleQAAAAAFb3duZXIJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTg86BxmqbXn0VCYdClvCRxLh2SvKgdo1wBAAAAEGlzUGF5bWVudFBlbmRpbmcAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzCQEAAAAIc3RhdHVzT2YAAAABBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABcwUAAAAHJG1hdGNoMAkAAAAAAAACBQAAAAFzAgAAAAdwZW5kaW5nBwAAAAQAAAABaQEAAAAQc2V0V2FpdFRvUGF5bWVudAAAAAIAAAADa2V5AAAAB3BheW1lbnQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAA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: YzUa1XsTrv1uTjeBJa3SCHfA394pEuhvJPrkfybqyfQ Diff:
OldNewDifferences
5656
5757
5858 @Callable(i)
59-func transfer (m,j) = {
59+func transfer (m) = {
6060 let g = i.payment
6161 if ($isInstanceOf(g, "AttachedPayment"))
6262 then {
6767 if ($isInstanceOf(n, "Address"))
6868 then {
6969 let o = n
70- TransferSet([ScriptTransfer(o, j, a)])
70+ TransferSet([ScriptTransfer(o, k.amount, a)])
7171 }
7272 else throw("invalin address")
7373 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = unit
55
66 func b (c) = ("payment_of_" + c)
77
88
99 func d (c) = ("status_of_" + c)
1010
1111
1212 let e = Address(base58'3NARWzNaChSw8Mpf8CZYavL4QWQvk3KUU8b')
1313
1414 func f (c) = {
1515 let g = getString(this, d(c))
1616 if ($isInstanceOf(g, "String"))
1717 then {
1818 let h = g
1919 (h == "pending")
2020 }
2121 else false
2222 }
2323
2424
2525 @Callable(i)
2626 func setWaitToPayment (c,j) = WriteSet([DataEntry(d(c), "pending"), DataEntry(b(c), j)])
2727
2828
2929
3030 @Callable(i)
3131 func pay (c) = if (f(c))
3232 then {
3333 let g = i.payment
3434 if ($isInstanceOf(g, "AttachedPayment"))
3535 then {
3636 let k = g
3737 if ((k.assetId == a))
3838 then {
3939 let l = WriteSet([DataEntry(d(c), "paid")])
4040 let j = extract(getInteger(this, b(c)))
4141 ScriptResult(l, TransferSet([ScriptTransfer(e, j, a)]))
4242 }
4343 else throw(("can only WAVES, but got " + toBase58String(value(k.assetId))))
4444 }
4545 else throw("payment in assetTokens must be attached")
4646 }
4747 else throw("Order already has been payed or rejected")
4848
4949
5050
5151 @Callable(i)
5252 func reject (c) = if (f(c))
5353 then WriteSet([DataEntry(d(c), "rejected")])
5454 else throw("Order already has been payed or rejected")
5555
5656
5757
5858 @Callable(i)
59-func transfer (m,j) = {
59+func transfer (m) = {
6060 let g = i.payment
6161 if ($isInstanceOf(g, "AttachedPayment"))
6262 then {
6363 let k = g
6464 if ((k.assetId == a))
6565 then {
6666 let n = addressFromString(m)
6767 if ($isInstanceOf(n, "Address"))
6868 then {
6969 let o = n
70- TransferSet([ScriptTransfer(o, j, a)])
70+ TransferSet([ScriptTransfer(o, k.amount, a)])
7171 }
7272 else throw("invalin address")
7373 }
7474 else throw(("can only WAVES, but got " + toBase58String(value(k.assetId))))
7575 }
7676 else throw("payment in assetTokens must be attached")
7777 }
7878
7979

github/deemru/w8io/026f985 
22.46 ms