tx · 2Xic7DN3dJWEroAcKrRmZ57qNyg8gK6sG2DVJ9mXHLHG
3N8uQmX3Esj6vdK2aZSFYLh3WpNfAxW9EeL: -0.01400000 Waves
2021.04.05 22:23 [1469560] smart account 3N8uQmX3Esj6vdK2aZSFYLh3WpNfAxW9EeL > SELF 0.00000000 Waves
{
"type": 13,
"id": "2Xic7DN3dJWEroAcKrRmZ57qNyg8gK6sG2DVJ9mXHLHG",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1617650630628,
"version": 2,
"chainId": 84,
"sender": "3N8uQmX3Esj6vdK2aZSFYLh3WpNfAxW9EeL",
"senderPublicKey": "AhjTu5SRpw4dBJCiJx8UnBvEj3kPX7QYF23MEsJGtT1t",
"proofs": [
"5bcY6acQM5LMuSE5XYSBgWFRWuJDtjqFRer6NhCJoWTW6aYGKHBCFejNSHuCUTtz8dNn7GY5E8vApdmtLiBm4eYV"
],
"script": "base64:AAIEAAAAAAAAAAwIAhIDCgEBEgMKAQEAAAAAAAAAAgAAAAFpAQAAAAdSZUlzc3VlAAAAAQAAAAhRdWFudGl0eQQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAAdhc3NldGlkAQAAAAMBuXsDCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAALkluY29ycmVjdCBhc3NldCBhdHRhY2hlZCwgcGxlYXNlIHNlbmQgVE4gb25seS4JAARMAAAAAgkBAAAAB1JlaXNzdWUAAAADBQAAAAdhc3NldGlkBQAAAAhRdWFudGl0eQYJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCAUAAAADcG10AAAABmFtb3VudAUAAAAHYXNzZXRpZAUAAAADbmlsAAAAAWkBAAAABEJ1cm4AAAABAAAACFF1YW50aXR5BAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAAB2Fzc2V0aWQBAAAAAwG5ewMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAuSW5jb3JyZWN0IGFzc2V0IGF0dGFjaGVkLCBwbGVhc2Ugc2VuZCBUTiBvbmx5LgkABEwAAAACCQEAAAAEQnVybgAAAAIFAAAAB2Fzc2V0aWQFAAAACFF1YW50aXR5CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcggFAAAAA3BtdAAAAAZhbW91bnQFAAAABHVuaXQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAYHVlartQ==",
"height": 1469560,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: EfG5vssTTwgqc4CbDmw7MFcGkMXKSVjqREPK3BLx6Yb5
Next: none
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | | - | func Create () = { |
---|
8 | | - | let b = Issue("Wippe", "A Token Based on Real Collateral of TN. 1 Wippe = 1TN Locked in Smart Contract. You can ReIssue Any Quantity of Tokens Only Against 1:1 Collateral.", 5, 0, true, unit, 0) |
---|
9 | | - | let c = calculateAssetId(b) |
---|
10 | | - | [b, ScriptTransfer(a.caller, 5, c)] |
---|
| 7 | + | func ReIssue (b) = { |
---|
| 8 | + | let c = value(a.payments[0]) |
---|
| 9 | + | let d = base58'abc' |
---|
| 10 | + | if (isDefined(c.assetId)) |
---|
| 11 | + | then throw("Incorrect asset attached, please send TN only.") |
---|
| 12 | + | else [Reissue(d, b, true), ScriptTransfer(a.caller, c.amount, d)] |
---|
11 | 13 | | } |
---|
12 | 14 | | |
---|
| 15 | + | |
---|
| 16 | + | |
---|
| 17 | + | @Callable(a) |
---|
| 18 | + | func Burn (b) = { |
---|
| 19 | + | let c = value(a.payments[0]) |
---|
| 20 | + | let d = base58'abc' |
---|
| 21 | + | if (isDefined(c.assetId)) |
---|
| 22 | + | then throw("Incorrect asset attached, please send TN only.") |
---|
| 23 | + | else [Burn(d, b), ScriptTransfer(a.caller, c.amount, unit)] |
---|
| 24 | + | } |
---|
| 25 | + | |
---|
| 26 | + | |
---|
| 27 | + | @Verifier(e) |
---|
| 28 | + | func f () = { |
---|
| 29 | + | let g = e |
---|
| 30 | + | if ($isInstanceOf(g, "InvokeScriptTransaction")) |
---|
| 31 | + | then { |
---|
| 32 | + | let h = g |
---|
| 33 | + | true |
---|
| 34 | + | } |
---|
| 35 | + | else false |
---|
| 36 | + | } |
---|
13 | 37 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | | - | func Create () = { |
---|
8 | | - | let b = Issue("Wippe", "A Token Based on Real Collateral of TN. 1 Wippe = 1TN Locked in Smart Contract. You can ReIssue Any Quantity of Tokens Only Against 1:1 Collateral.", 5, 0, true, unit, 0) |
---|
9 | | - | let c = calculateAssetId(b) |
---|
10 | | - | [b, ScriptTransfer(a.caller, 5, c)] |
---|
| 7 | + | func ReIssue (b) = { |
---|
| 8 | + | let c = value(a.payments[0]) |
---|
| 9 | + | let d = base58'abc' |
---|
| 10 | + | if (isDefined(c.assetId)) |
---|
| 11 | + | then throw("Incorrect asset attached, please send TN only.") |
---|
| 12 | + | else [Reissue(d, b, true), ScriptTransfer(a.caller, c.amount, d)] |
---|
11 | 13 | | } |
---|
12 | 14 | | |
---|
| 15 | + | |
---|
| 16 | + | |
---|
| 17 | + | @Callable(a) |
---|
| 18 | + | func Burn (b) = { |
---|
| 19 | + | let c = value(a.payments[0]) |
---|
| 20 | + | let d = base58'abc' |
---|
| 21 | + | if (isDefined(c.assetId)) |
---|
| 22 | + | then throw("Incorrect asset attached, please send TN only.") |
---|
| 23 | + | else [Burn(d, b), ScriptTransfer(a.caller, c.amount, unit)] |
---|
| 24 | + | } |
---|
| 25 | + | |
---|
| 26 | + | |
---|
| 27 | + | @Verifier(e) |
---|
| 28 | + | func f () = { |
---|
| 29 | + | let g = e |
---|
| 30 | + | if ($isInstanceOf(g, "InvokeScriptTransaction")) |
---|
| 31 | + | then { |
---|
| 32 | + | let h = g |
---|
| 33 | + | true |
---|
| 34 | + | } |
---|
| 35 | + | else false |
---|
| 36 | + | } |
---|
13 | 37 | | |
---|