tx · GXVSw295Mq3c7xDmCec3N8RYLxGx4rL5XY5ChvSGS5FJ
3MpKvUfNxrgF7QotPjFwi8thMagSveNScKe: -0.01400000 Waves
2020.11.01 10:55 [1245975] smart account 3MpKvUfNxrgF7QotPjFwi8thMagSveNScKe > SELF 0.00000000 Waves
{
"type": 13,
"id": "GXVSw295Mq3c7xDmCec3N8RYLxGx4rL5XY5ChvSGS5FJ",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1604217331186,
"version": 2,
"chainId": 84,
"sender": "3MpKvUfNxrgF7QotPjFwi8thMagSveNScKe",
"senderPublicKey": "9GE2xN4fms9YNDxR1hGg52RynqDd8125TA42g4X29ZV7",
"proofs": [
"4nZMqV44dZzMu2NUAke7cVpk2vfVvibxNb8hdXMTMRrA6H9fh2Xxw8Ww28W5dDSmAUpokJUtLJd9ZxniCazo482L"
],
"script": "base64:AAIEAAAAAAAAAA0IAhIECgIICBIDCgEIAAAAAQAAAAACZksJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAJZAAAAAQIAAAAsQ1hEbmFiSHVhUHd3WlFSSnVSemtGZURMUEtveURVYzFhUW5mTWlVUEt0SEYAAAACAAAAAWkBAAAACXRva2VuTGlzdAAAAAIAAAAHdG9rZW5JZAAAAAZ0aWNrZXIEAAAABEFkZHIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAQAAAAIhPQAAAAIFAAAABEFkZHIJAAQlAAAAAQUAAAAEdGhpcwkAAAIAAAABAgAAAC5UaGUgYWRkcmVzcyBpcyBub3QgYXV0aG9yaXplZCB0byBpbnNlcnQgdG9rZW5zCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAB3Rva2VuSWQFAAAABnRpY2tlcgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAJmSwAAAAAAAAAAAQUAAAAEdW5pdAUAAAADbmlsAAAAAWkBAAAAC3Rva2VuRGVsaXN0AAAAAQAAAAd0b2tlbklkBAAAAARBZGRyCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACBQAAAARBZGRyCQAEJQAAAAEFAAAABHRoaXMJAAACAAAAAQIAAAAuVGhlIGFkZHJlc3MgaXMgbm90IGF1dGhvcml6ZWQgdG8gZGVsZXRlIHRva2VucwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAd0b2tlbklkBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleerFVw0=",
"height": 1245975,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 681i6Z6RwUUU7xQsiYAJfDaG1SYLqKPqmsTaRA9cR4yT
Next: 457i7xw1p2w1NBhZgPzEBY7aGkf6JgEToT79HnKJZrwF
Diff:
Old | New | | Differences |
---|
8 | 8 | | let Addr = toBase58String(i.caller.bytes) |
---|
9 | 9 | | if ((Addr != toString(this))) |
---|
10 | 10 | | then throw("The address is not authorized to insert tokens") |
---|
11 | | - | else [StringEntry(tokenId, ticker), ScriptTransfer(i.caller, 1, fromBase58String(""))] |
---|
| 11 | + | else [StringEntry(tokenId, ticker), ScriptTransfer(fK, 1, unit)] |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
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 | 7 | | func tokenList (tokenId,ticker) = { |
---|
8 | 8 | | let Addr = toBase58String(i.caller.bytes) |
---|
9 | 9 | | if ((Addr != toString(this))) |
---|
10 | 10 | | then throw("The address is not authorized to insert tokens") |
---|
11 | | - | else [StringEntry(tokenId, ticker), ScriptTransfer(i.caller, 1, fromBase58String(""))] |
---|
| 11 | + | else [StringEntry(tokenId, ticker), ScriptTransfer(fK, 1, unit)] |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | @Callable(i) |
---|
17 | 17 | | func tokenDelist (tokenId) = { |
---|
18 | 18 | | let Addr = toBase58String(i.caller.bytes) |
---|
19 | 19 | | if ((Addr != toString(this))) |
---|
20 | 20 | | then throw("The address is not authorized to delete tokens") |
---|
21 | 21 | | else [DeleteEntry(tokenId)] |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | @Verifier(tx) |
---|
26 | 26 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
27 | 27 | | |
---|