tx · Dkh8G8uPEKVBx323vSWWnyQBdJAtgDN6QPzQZ8Zfq52o
3NCZ57kfAyy5g1u9wU6xpPATZaGHQsWtdii: -0.01400000 Waves
2020.12.25 17:34 [1324342] smart account 3NCZ57kfAyy5g1u9wU6xpPATZaGHQsWtdii > SELF 0.00000000 Waves
{
"type": 13,
"id": "Dkh8G8uPEKVBx323vSWWnyQBdJAtgDN6QPzQZ8Zfq52o",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1608906896317,
"version": 2,
"chainId": 84,
"sender": "3NCZ57kfAyy5g1u9wU6xpPATZaGHQsWtdii",
"senderPublicKey": "9qhZSTJv6GQKghqH88TBPU6rNvQWf6yXCL57T7C7oi7A",
"proofs": [
"3YwYVoBuyAVbhd1KLxMrQUpt3kVgmeXFHrw9oeZLYvhtPpekPk6Rqm8yLQmpT3gHcUAKas6bTEgYKPkNNG3fUAPn"
],
"script": "base64:AAIEAAAAAAAAAAoIAhIGCgQICAEEAAAAAgAAAAAEUEFSNwEAAAAgzlhA/ZjitMWTd+McxVJoK0GcLLGrEdV8aco355LpR4wAAAAACHN3YXBSYXRlAAAAAAAAAAABAAAAAQAAAAFpAQAAAAppc3N1ZUFzc2V0AAAABAAAAARuYW1lAAAAC2Rlc2NyaXB0aW9uAAAACGRlY2ltYWxzAAAAB3JlSXNzdWUEAAAAA3BtdAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAMJAQAAAAIhPQAAAAIIBQAAAANwbXQAAAAHYXNzZXRJZAUAAAAEUEFSNwkAAAIAAAABAgAAABR3b3JrcyB3aXRoIFBBUjcgb25seQQAAAALaXNzdWVBbW91bnQJAABoAAAAAggFAAAAA3BtdAAAAAZhbW91bnQFAAAACHN3YXBSYXRlBAAAAAVpc3N1ZQkABEIAAAAFBQAAAARuYW1lBQAAAAtkZXNjcmlwdGlvbgUAAAALaXNzdWVBbW91bnQFAAAACGRlY2ltYWxzBQAAAAdyZUlzc3VlBAAAAAJpZAkABDgAAAABBQAAAAVpc3N1ZQkABEwAAAACBQAAAAVpc3N1ZQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIIBQAAAAVpc3N1ZQAAAAhxdWFudGl0eQUAAAACaWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V52u5CzQ==",
"height": 1324342,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: DceYtsNB4uh5tvBkwxTzFfYmjTQPxWkeCoy8rNxUuoqV
Next: none
Diff:
Old | New | | Differences |
---|
6 | 6 | | let swapRate = 1 |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | | - | func issueAsset (name,description,amount,decimals,reIssue) = { |
---|
| 9 | + | func issueAsset (name,description,decimals,reIssue) = { |
---|
10 | 10 | | let pmt = i.payments[0] |
---|
11 | 11 | | if ((pmt.assetId != PAR7)) |
---|
12 | 12 | | then throw("works with PAR7 only") |
---|
13 | 13 | | else { |
---|
14 | | - | let swapAmount = (pmt.amount * swapRate) |
---|
15 | | - | let issue = Issue(name, description, amount, decimals, reIssue) |
---|
| 14 | + | let issueAmount = (pmt.amount * swapRate) |
---|
| 15 | + | let issue = Issue(name, description, issueAmount, decimals, reIssue) |
---|
16 | 16 | | let id = calculateAssetId(issue) |
---|
17 | 17 | | [issue, ScriptTransfer(i.caller, issue.quantity, id)] |
---|
18 | 18 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let PAR7 = base58'EtV3CXQ4wqm28WPB1KaBv5B9ke2bpXRZMutYNEJUQcXm' |
---|
5 | 5 | | |
---|
6 | 6 | | let swapRate = 1 |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | | - | func issueAsset (name,description,amount,decimals,reIssue) = { |
---|
| 9 | + | func issueAsset (name,description,decimals,reIssue) = { |
---|
10 | 10 | | let pmt = i.payments[0] |
---|
11 | 11 | | if ((pmt.assetId != PAR7)) |
---|
12 | 12 | | then throw("works with PAR7 only") |
---|
13 | 13 | | else { |
---|
14 | | - | let swapAmount = (pmt.amount * swapRate) |
---|
15 | | - | let issue = Issue(name, description, amount, decimals, reIssue) |
---|
| 14 | + | let issueAmount = (pmt.amount * swapRate) |
---|
| 15 | + | let issue = Issue(name, description, issueAmount, decimals, reIssue) |
---|
16 | 16 | | let id = calculateAssetId(issue) |
---|
17 | 17 | | [issue, ScriptTransfer(i.caller, issue.quantity, id)] |
---|
18 | 18 | | } |
---|
19 | 19 | | } |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|
22 | 22 | | @Verifier(tx) |
---|
23 | 23 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
24 | 24 | | |
---|