tx · Do8m2rJq8A9WGvCKkEMCGAAvN2u13pykLtikjU6vEWsG
3N88RCNRRqH1tr96V7DQBnafuHZLfA2jVTR: -0.01400000 Waves
2021.09.01 15:19 [1683964] smart account 3N88RCNRRqH1tr96V7DQBnafuHZLfA2jVTR > SELF 0.00000000 Waves
{
"type": 13,
"id": "Do8m2rJq8A9WGvCKkEMCGAAvN2u13pykLtikjU6vEWsG",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1630498816159,
"version": 2,
"chainId": 84,
"sender": "3N88RCNRRqH1tr96V7DQBnafuHZLfA2jVTR",
"senderPublicKey": "2oN6nNjjqGRnqgNMW7yk2Vx5d8sifvdgjcoKoAHiDZDy",
"proofs": [
"Zob7Ypiqw38jAg3fWspcQC5uK1UXgGEbuLhkbKcwSJtnnK6sNGu4ut9p5fngQT4jk5X897RTWADXUT5pRPVq1RJ"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAEY2FsbAAAAAAEAAAACXNoYXJlTmFtZQIAAAACc24EAAAAEHNoYXJlRGVzY3JpcHRpb24JAAEsAAAAAgIAAAAuU2hhcmVUb2tlbiBvZiBTd29wRmkgcHJvdG9jb2wgZm9yICBhdCBhZGRyZXNzIAkABCUAAAABBQAAAAR0aGlzBAAAAA1zaGFyZURlY2ltYWxzCQAAaQAAAAIJAABkAAAAAgAAAAAAAAAABgAAAAAAAAAABwAAAAAAAAAAAgQAAAAEYXJnMQkAAGwAAAAGAAAAAAAAD0JAAAAAAAAAAAAGAAAAAAAAAAAFAAAAAAAAAAABAAAAAAAAAAAGBQAAAARET1dOBAAAAARhcmcyCQAAbAAAAAYAAAAAAACYloAAAAAAAAAAAAcAAAAAAAAAAAUAAAAAAAAAAAEAAAAAAAAAAAcFAAAABERPV04EAAAABGFyZzMJAABsAAAABgAAAAAAAAAACgAAAAAAAAAAAAUAAAANc2hhcmVEZWNpbWFscwAAAAAAAAAAAAAAAAAAAAAAAAUAAAAERE9XTgQAAAASc2hhcmVJbml0aWFsU3VwcGx5CQAAawAAAAMFAAAABGFyZzEFAAAABGFyZzIFAAAABGFyZzMEAAAACnNoYXJlSXNzdWUJAARCAAAABQUAAAAJc2hhcmVOYW1lBQAAABBzaGFyZURlc2NyaXB0aW9uBQAAABJzaGFyZUluaXRpYWxTdXBwbHkFAAAADXNoYXJlRGVjaW1hbHMGBAAAAAxzaGFyZUlzc3VlSWQJAAQ4AAAAAQUAAAAKc2hhcmVJc3N1ZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFYXJnczEFAAAABGFyZzEJAARMAAAAAgUAAAAKc2hhcmVJc3N1ZQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAEnNoYXJlSW5pdGlhbFN1cHBseQUAAAAMc2hhcmVJc3N1ZUlkBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleXJPwho=",
"height": 1683964,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 7kEGSZuMKgmkzyYXJkkZ6cseHgLUX9aF8iowW4eVDqkG
Next: none
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func call () = { |
---|
| 8 | + | let shareName = "sn" |
---|
| 9 | + | let shareDescription = ("ShareToken of SwopFi protocol for at address " + toString(this)) |
---|
| 10 | + | let shareDecimals = ((6 + 7) / 2) |
---|
8 | 11 | | let arg1 = pow(1000000, 6, 5, 1, 6, DOWN) |
---|
9 | 12 | | let arg2 = pow(10000000, 7, 5, 1, 7, DOWN) |
---|
10 | | - | let shareDecimals = ((6 + 7) / 2) |
---|
11 | 13 | | let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN) |
---|
12 | 14 | | let shareInitialSupply = fraction(arg1, arg2, arg3) |
---|
13 | | - | [IntegerEntry("args1", arg1), IntegerEntry("args2", arg1), IntegerEntry("args3", arg1)] |
---|
| 15 | + | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) |
---|
| 16 | + | let shareIssueId = calculateAssetId(shareIssue) |
---|
| 17 | + | [IntegerEntry("args1", arg1), shareIssue, ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)] |
---|
14 | 18 | | } |
---|
15 | 19 | | |
---|
16 | 20 | | |
---|
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(i) |
---|
7 | 7 | | func call () = { |
---|
| 8 | + | let shareName = "sn" |
---|
| 9 | + | let shareDescription = ("ShareToken of SwopFi protocol for at address " + toString(this)) |
---|
| 10 | + | let shareDecimals = ((6 + 7) / 2) |
---|
8 | 11 | | let arg1 = pow(1000000, 6, 5, 1, 6, DOWN) |
---|
9 | 12 | | let arg2 = pow(10000000, 7, 5, 1, 7, DOWN) |
---|
10 | | - | let shareDecimals = ((6 + 7) / 2) |
---|
11 | 13 | | let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN) |
---|
12 | 14 | | let shareInitialSupply = fraction(arg1, arg2, arg3) |
---|
13 | | - | [IntegerEntry("args1", arg1), IntegerEntry("args2", arg1), IntegerEntry("args3", arg1)] |
---|
| 15 | + | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) |
---|
| 16 | + | let shareIssueId = calculateAssetId(shareIssue) |
---|
| 17 | + | [IntegerEntry("args1", arg1), shareIssue, ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)] |
---|
14 | 18 | | } |
---|
15 | 19 | | |
---|
16 | 20 | | |
---|
17 | 21 | | @Verifier(tx) |
---|
18 | 22 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
19 | 23 | | |
---|