tx · BGLE6RbFfjy1FfHgArANduoTiExtEHhYjMJeLmWAjwJw
3N47VNUyRs9LtYQjfh1wXoonwtxrk351iQ4: -0.01400000 Waves
2021.05.15 22:52 [1527246] smart account 3N47VNUyRs9LtYQjfh1wXoonwtxrk351iQ4 > SELF 0.00000000 Waves
{
"type": 13,
"id": "BGLE6RbFfjy1FfHgArANduoTiExtEHhYjMJeLmWAjwJw",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1621108364729,
"version": 2,
"chainId": 84,
"sender": "3N47VNUyRs9LtYQjfh1wXoonwtxrk351iQ4",
"senderPublicKey": "6L6mk8eadmViy8hb3fDkBs1maSLoVepN2mVL4wom2pus",
"proofs": [
"63NJu6d2dFQUKAfJQyHEzHs1wr6uGpo6kzbCvAw6QLh4FCY3oSnJqgAuMzLomVRqsibqHauDpbXkBdNMbSqbnQLP"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAABQAAAAAMSXNCbG9ja2VkS2V5AgAAAAppc19ibG9ja2VkAAAAABVNaW5XYXZlc1N3YXBBbW91bnRLZXkCAAAAFW1pbl93YXZlc19zd2FwX2Ftb3VudAAAAAAMc3BvbnNvclRva2VuAQAAACCKKZuoP6lfFmxrqYQcUrketdDBz2UMb3LD63UVrxSxsAAAAAASbWluV2F2ZXNTd2FwQW1vdW50CQEAAAALdmFsdWVPckVsc2UAAAACCQAEGgAAAAIFAAAABHRoaXMFAAAAFU1pbldhdmVzU3dhcEFtb3VudEtleQAAAAAAAAAAAAAAAAAJaXNCbG9ja2VkCQEAAAALdmFsdWVPckVsc2UAAAACCQAEGwAAAAIFAAAABHRoaXMFAAAADElzQmxvY2tlZEtleQcAAAABAAAAAWkBAAAACGJ1eUFzc2V0AAAAAAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAA+gFAAAADHNwb25zb3JUb2tlbgUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkVvVF8",
"height": 1527246,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: A2e8DLxedk517t6rAfjb4LccxUXwFA1zDQuTsaxPjbgS
Next: FyxKMz4QCTxzeQ6BFyrStqBK9ufSB15t4CyVZhc92weQ
Diff:
Old | New | | Differences |
---|
12 | 12 | | let isBlocked = valueOrElse(getBoolean(this, IsBlockedKey), false) |
---|
13 | 13 | | |
---|
14 | 14 | | @Callable(i) |
---|
15 | | - | func buyAsset () = { |
---|
16 | | - | let pmt = value(i.payments[0]) |
---|
17 | | - | let pmtAssetId = value(pmt.assetId) |
---|
18 | | - | let callerPub58Str = toBase58String(i.callerPublicKey) |
---|
19 | | - | if (isBlocked) |
---|
20 | | - | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") |
---|
21 | | - | else [ScriptTransfer(i.caller, 1000, sponsorToken)] |
---|
22 | | - | } |
---|
| 15 | + | func buyAsset () = [ScriptTransfer(i.caller, 1000, sponsorToken)] |
---|
23 | 16 | | |
---|
24 | 17 | | |
---|
25 | 18 | | @Verifier(tx) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let IsBlockedKey = "is_blocked" |
---|
5 | 5 | | |
---|
6 | 6 | | let MinWavesSwapAmountKey = "min_waves_swap_amount" |
---|
7 | 7 | | |
---|
8 | 8 | | let sponsorToken = base58'AJL4X2MaR3QZski33QRMeFZLonS6BnkcR1X72MJW8e31' |
---|
9 | 9 | | |
---|
10 | 10 | | let minWavesSwapAmount = valueOrElse(getInteger(this, MinWavesSwapAmountKey), 0) |
---|
11 | 11 | | |
---|
12 | 12 | | let isBlocked = valueOrElse(getBoolean(this, IsBlockedKey), false) |
---|
13 | 13 | | |
---|
14 | 14 | | @Callable(i) |
---|
15 | | - | func buyAsset () = { |
---|
16 | | - | let pmt = value(i.payments[0]) |
---|
17 | | - | let pmtAssetId = value(pmt.assetId) |
---|
18 | | - | let callerPub58Str = toBase58String(i.callerPublicKey) |
---|
19 | | - | if (isBlocked) |
---|
20 | | - | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") |
---|
21 | | - | else [ScriptTransfer(i.caller, 1000, sponsorToken)] |
---|
22 | | - | } |
---|
| 15 | + | func buyAsset () = [ScriptTransfer(i.caller, 1000, sponsorToken)] |
---|
23 | 16 | | |
---|
24 | 17 | | |
---|
25 | 18 | | @Verifier(tx) |
---|
26 | 19 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
27 | 20 | | |
---|