tx · HkexnTdzdbuKeut16ByzeLxm9xPGo11zNUo2D9Bhwspp
3MpKvUfNxrgF7QotPjFwi8thMagSveNScKe: -0.01400000 Waves
2020.11.01 12:25 [1246070] smart account 3MpKvUfNxrgF7QotPjFwi8thMagSveNScKe > SELF 0.00000000 Waves
{
"type": 13,
"id": "HkexnTdzdbuKeut16ByzeLxm9xPGo11zNUo2D9Bhwspp",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1604222788559,
"version": 2,
"chainId": 84,
"sender": "3MpKvUfNxrgF7QotPjFwi8thMagSveNScKe",
"senderPublicKey": "9GE2xN4fms9YNDxR1hGg52RynqDd8125TA42g4X29ZV7",
"proofs": [
"4JJGspNmB1XEG1YMMEKVjV13zwCEtMmm713eLP6uQPuGZvSmAsjVdA368BusYEu1d3EMQSiNgKNUzwtg2m4vKRmo"
],
"script": "base64:AAIEAAAAAAAAAA8IAhIAEgQKAggIEgMKAQgAAAABAAAAAAJmSwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQkAAlkAAAABAgAAACxDWERuYWJIdWFQd3daUVJKdVJ6a0ZlRExQS295RFVjMWFRbmZNaVVQS3RIRgAAAAMAAAABaQEAAAAHb3BickJ1eQAAAAAEAAAACWJ1eWVyQWRkcgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAANwbXQIBQAAAAFpAAAACHBheW1lbnRzAwkAAAAAAAACCQABkAAAAAEFAAAAA3BtdAAAAAAAAAAAAAkAAAIAAAABAgAAACFQYXltZW50IGZvciBleGNoYW5nZSBpcyBtYW5kYXRvcnkJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAACZksAAAAAAAAPQkAFAAAABHVuaXQFAAAAA25pbAAAAAFpAQAAAAl0b2tlbkxpc3QAAAACAAAAB3Rva2VuSWQAAAAGdGlja2VyBAAAAARBZGRyCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACBQAAAARBZGRyCQAEJQAAAAEFAAAABHRoaXMJAAACAAAAAQIAAAAsVGhlIGFkZHJlc3MgaXMgbm90IGF1dGhvcml6ZWQgdG8gbGlzdCB0b2tlbnMJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAAHdG9rZW5JZAUAAAAGdGlja2VyCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAAmZLAAAAAAAAD0JABQAAAAR1bml0BQAAAANuaWwAAAABaQEAAAALdG9rZW5EZWxpc3QAAAABAAAAB3Rva2VuSWQEAAAABEFkZHIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAQAAAAIhPQAAAAIFAAAABEFkZHIJAAQlAAAAAQUAAAAEdGhpcwkAAAIAAAABAgAAAC5UaGUgYWRkcmVzcyBpcyBub3QgYXV0aG9yaXplZCB0byBkZWxpc3QgdG9rZW5zCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAB3Rva2VuSWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAACZksAAAAAAACYloAFAAAABHVuaXQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5DK8tLQ==",
"height": 1246070,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 457i7xw1p2w1NBhZgPzEBY7aGkf6JgEToT79HnKJZrwF
Next: 35nEB9DERw9yLRU4yCqTuYyxB7X73LVSpSJyxRdpemcv
Diff:
Old | New | | Differences |
---|
4 | 4 | | let fK = addressFromPublicKey(fromBase58String("CXDnabHuaPwwZQRJuRzkFeDLPKoyDUc1aQnfMiUPKtHF")) |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
| 7 | + | func opbrBuy () = { |
---|
| 8 | + | let buyerAddr = toBase58String(i.caller.bytes) |
---|
| 9 | + | let pmt = i.payments |
---|
| 10 | + | if ((size(pmt) == 0)) |
---|
| 11 | + | then throw("Payment for exchange is mandatory") |
---|
| 12 | + | else [ScriptTransfer(fK, 1000000, unit)] |
---|
| 13 | + | } |
---|
| 14 | + | |
---|
| 15 | + | |
---|
| 16 | + | |
---|
| 17 | + | @Callable(i) |
---|
7 | 18 | | func tokenList (tokenId,ticker) = { |
---|
8 | 19 | | let Addr = toBase58String(i.caller.bytes) |
---|
9 | 20 | | if ((Addr != toString(this))) |
---|
10 | | - | then throw("The address is not authorized to insert tokens") |
---|
| 21 | + | then throw("The address is not authorized to list tokens") |
---|
11 | 22 | | else [StringEntry(tokenId, ticker), ScriptTransfer(fK, 1000000, unit)] |
---|
12 | 23 | | } |
---|
13 | 24 | | |
---|
|
17 | 28 | | func tokenDelist (tokenId) = { |
---|
18 | 29 | | let Addr = toBase58String(i.caller.bytes) |
---|
19 | 30 | | if ((Addr != toString(this))) |
---|
20 | | - | then throw("The address is not authorized to delete tokens") |
---|
| 31 | + | then throw("The address is not authorized to delist tokens") |
---|
21 | 32 | | else [DeleteEntry(tokenId), ScriptTransfer(fK, 10000000, unit)] |
---|
22 | 33 | | } |
---|
23 | 34 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let fK = addressFromPublicKey(fromBase58String("CXDnabHuaPwwZQRJuRzkFeDLPKoyDUc1aQnfMiUPKtHF")) |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
| 7 | + | func opbrBuy () = { |
---|
| 8 | + | let buyerAddr = toBase58String(i.caller.bytes) |
---|
| 9 | + | let pmt = i.payments |
---|
| 10 | + | if ((size(pmt) == 0)) |
---|
| 11 | + | then throw("Payment for exchange is mandatory") |
---|
| 12 | + | else [ScriptTransfer(fK, 1000000, unit)] |
---|
| 13 | + | } |
---|
| 14 | + | |
---|
| 15 | + | |
---|
| 16 | + | |
---|
| 17 | + | @Callable(i) |
---|
7 | 18 | | func tokenList (tokenId,ticker) = { |
---|
8 | 19 | | let Addr = toBase58String(i.caller.bytes) |
---|
9 | 20 | | if ((Addr != toString(this))) |
---|
10 | | - | then throw("The address is not authorized to insert tokens") |
---|
| 21 | + | then throw("The address is not authorized to list tokens") |
---|
11 | 22 | | else [StringEntry(tokenId, ticker), ScriptTransfer(fK, 1000000, unit)] |
---|
12 | 23 | | } |
---|
13 | 24 | | |
---|
14 | 25 | | |
---|
15 | 26 | | |
---|
16 | 27 | | @Callable(i) |
---|
17 | 28 | | func tokenDelist (tokenId) = { |
---|
18 | 29 | | let Addr = toBase58String(i.caller.bytes) |
---|
19 | 30 | | if ((Addr != toString(this))) |
---|
20 | | - | then throw("The address is not authorized to delete tokens") |
---|
| 31 | + | then throw("The address is not authorized to delist tokens") |
---|
21 | 32 | | else [DeleteEntry(tokenId), ScriptTransfer(fK, 10000000, unit)] |
---|
22 | 33 | | } |
---|
23 | 34 | | |
---|
24 | 35 | | |
---|
25 | 36 | | @Verifier(tx) |
---|
26 | 37 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
27 | 38 | | |
---|