tx · 8ynsf8TJY22koQMP3obUDcmtMZEg37jUKzdJ4foLg8bb
3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx: -0.01000000 Waves
2023.05.28 14:55 [2597787] smart account 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx > SELF 0.00000000 Waves
{
"type": 13,
"id": "8ynsf8TJY22koQMP3obUDcmtMZEg37jUKzdJ4foLg8bb",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1685274952231,
"version": 2,
"chainId": 84,
"sender": "3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx",
"senderPublicKey": "2NK7BrUZMvnHzAoHnJfz3FuDBP5zYUNoxshB49AH2kbc",
"proofs": [
"5dj9eAh1zpNx1bNhd9VHG4LNyF1LT5Nnq6mApAyM1gyYYJF5GLbmHcHNRXV2RsqKcbAAxNyVfEpjAvDXvA58rcDH"
],
"script": "base64:BgIJCAISABIDCgEBAAIBaQENdG9rZW5Jc3N1YW5jZQAEBG5hbWUCCkJlYnJhVG9rZW4EDmxlbmRlc2NyaXB0aW9uAg9CZWJyYSBieSBLcmluZ2UECHF1YW50aXR5AICt4gQECGRlY2ltYWxzAAAEDGlzUmVpc3N1YWJsZQYECmlzc3VlQmVicmEJAMMIBwUEbmFtZQUObGVuZGVzY3JpcHRpb24FCHF1YW50aXR5BQhkZWNpbWFscwUMaXNSZWlzc3VhYmxlBQR1bml0AAAEB2Fzc2V0SWQJALgIAQUKaXNzdWVCZWJyYQQJa25ld1Rva2VuAgVUb2tlbgQLZ2V0TmV3VG9rZW4JARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAnQgCBQR0aGlzBQlrbmV3VG9rZW4CGUJlYnJhVG9rZW4gaXMgbm90IGRlZmluZWQECXJlY2lwaWVudAgFAWkGY2FsbGVyCQDMCAIFCmlzc3VlQmVicmEJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUJcmVjaXBpZW50ANAPBQdhc3NldElkBQNuaWwBaQENdG9rZW5UcmFuc2ZlcgEGYW1vdW50BAlyZWNpcGllbnQJANgEAQgIBQFpBmNhbGxlcgVieXRlcwUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleaotgyQ=",
"height": 2597787,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: Huj8U4pda59oypqYfpm2Yck5SPxp7XYZvSQuN1XEpwwS
Next: Cmnhk6hVRGhZbnRHB8ixYNbtU32h8XfynuBeBgHYnfgA
Diff:
Old | New | | Differences |
---|
10 | 10 | | let quantity = 10000000 |
---|
11 | 11 | | let decimals = 0 |
---|
12 | 12 | | let isReissuable = true |
---|
13 | | - | let assetBebra = Issue(name, lendescription, quantity, decimals, isReissuable, unit, 0) |
---|
14 | | - | let assetId = calculateAssetId(assetBebra) |
---|
| 13 | + | let issueBebra = Issue(name, lendescription, quantity, decimals, isReissuable, unit, 0) |
---|
| 14 | + | let assetId = calculateAssetId(issueBebra) |
---|
15 | 15 | | let knewToken = "Token" |
---|
16 | | - | let newToken = valueOrErrorMessage(getString(this, knewToken), "BebraToken is not defined") |
---|
| 16 | + | let getNewToken = valueOrErrorMessage(getString(this, knewToken), "BebraToken is not defined") |
---|
17 | 17 | | let recipient = i.caller |
---|
18 | | - | [assetBebra, StringEntry(knewToken, newToken), ScriptTransfer(recipient, 2000, assetId)] |
---|
| 18 | + | [issueBebra, ScriptTransfer(recipient, 2000, assetId)] |
---|
19 | 19 | | } |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func tokenIssuance () = { |
---|
8 | 8 | | let name = "BebraToken" |
---|
9 | 9 | | let lendescription = "Bebra by Kringe" |
---|
10 | 10 | | let quantity = 10000000 |
---|
11 | 11 | | let decimals = 0 |
---|
12 | 12 | | let isReissuable = true |
---|
13 | | - | let assetBebra = Issue(name, lendescription, quantity, decimals, isReissuable, unit, 0) |
---|
14 | | - | let assetId = calculateAssetId(assetBebra) |
---|
| 13 | + | let issueBebra = Issue(name, lendescription, quantity, decimals, isReissuable, unit, 0) |
---|
| 14 | + | let assetId = calculateAssetId(issueBebra) |
---|
15 | 15 | | let knewToken = "Token" |
---|
16 | | - | let newToken = valueOrErrorMessage(getString(this, knewToken), "BebraToken is not defined") |
---|
| 16 | + | let getNewToken = valueOrErrorMessage(getString(this, knewToken), "BebraToken is not defined") |
---|
17 | 17 | | let recipient = i.caller |
---|
18 | | - | [assetBebra, StringEntry(knewToken, newToken), ScriptTransfer(recipient, 2000, assetId)] |
---|
| 18 | + | [issueBebra, ScriptTransfer(recipient, 2000, assetId)] |
---|
19 | 19 | | } |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
23 | 23 | | @Callable(i) |
---|
24 | 24 | | func tokenTransfer (amount) = { |
---|
25 | 25 | | let recipient = toBase58String(i.caller.bytes) |
---|
26 | 26 | | nil |
---|
27 | 27 | | } |
---|
28 | 28 | | |
---|
29 | 29 | | |
---|
30 | 30 | | @Verifier(tx) |
---|
31 | 31 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
32 | 32 | | |
---|