tx · 3VKqRx4Uzk77ktaLWwwxj5dDeVSpm8e1Vk2PCADF1MGV
3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2: -0.01000000 Waves
2019.09.02 13:58 [658244] smart account 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2 > SELF 0.00000000 Waves
{
"type": 13,
"id": "3VKqRx4Uzk77ktaLWwwxj5dDeVSpm8e1Vk2PCADF1MGV",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1567421174584,
"version": 1,
"sender": "3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2",
"senderPublicKey": "8y2Uc9uYf5gRD6Dzm1aC73zYe3LZvtVDUVAnAhNdN2mg",
"proofs": [
"37UfR8gv86kRjufCEvjg6SrBWe2scfexCypzymu9b5CmDRheVV4XLCjN4SwMsHwSYzsMwZUXaV9si3uW1kvPnaCZ"
],
"script": "base64:AAIDAAAAAAAAAAAAAAABAAAAAAR3QlRDAQAAAAEAAAAAAQAAAAFpAQAAAAhmdW5jdGlvbgAAAAEAAAAQYXVjdGlvbkFzc2V0TmFtZQQAAAADcG10CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQEAAAAB2Fzc2V0SWQIBQAAAANwbXQAAAAHYXNzZXRJZAQAAAAMQXNzZXRJZENoZWNrAwkAAAAAAAACBQAAABBhdWN0aW9uQXNzZXROYW1lAgAAAAVXQVZFUwUAAAAEdW5pdAMJAAAAAAAAAgUAAAAQYXVjdGlvbkFzc2V0TmFtZQIAAAADQlRDBQAAAAR3QlRDCQAAAgAAAAECAAAAEkluY29ycmVjdCBBc3NldCBJZAkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAABWFzc2V0BQAAABBhdWN0aW9uQXNzZXROYW1lBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAAABBQAAAAxBc3NldElkQ2hlY2sFAAAAA25pbAAAAABHppio",
"chainId": 84,
"height": 658244,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: CELRGYBHp7rymFnbB5mrNQuEznF64AbNmaCm7zzytQ6G
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let wBTC = base58'1' |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func function (auctionAssetName) = { |
---|
| 8 | + | let pmt = extract(i.payment) |
---|
| 9 | + | let assetId = pmt.assetId |
---|
| 10 | + | let AssetIdCheck = if ((auctionAssetName == "WAVES")) |
---|
| 11 | + | then unit |
---|
| 12 | + | else if ((auctionAssetName == "BTC")) |
---|
| 13 | + | then wBTC |
---|
| 14 | + | else throw("Incorrect Asset Id") |
---|
| 15 | + | ScriptResult(WriteSet([DataEntry("asset", auctionAssetName)]), TransferSet([ScriptTransfer(i.caller, 1, AssetIdCheck)])) |
---|
| 16 | + | } |
---|
| 17 | + | |
---|
| 18 | + | |
---|