tx · GuXj7CrFSuzwYKzMNkRHczMy1CbbCcmu8y51NjZGxxW5
3N1hrmiXcrfodNXHfoar8uNkBZEKPAGq5yR: -0.01000000 Waves
2023.05.30 16:39 [2600771] smart account 3N1hrmiXcrfodNXHfoar8uNkBZEKPAGq5yR > SELF 0.00000000 Waves
{
"type": 13,
"id": "GuXj7CrFSuzwYKzMNkRHczMy1CbbCcmu8y51NjZGxxW5",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1685453985117,
"version": 2,
"chainId": 84,
"sender": "3N1hrmiXcrfodNXHfoar8uNkBZEKPAGq5yR",
"senderPublicKey": "GP66F4kgVMbC7uyGiB6JeXvJFRco3fTdGeaUFSmf7YbB",
"proofs": [
"53GTUAGrpkm2sz2BfjpN9r3h8NbKG9A5a1ngmtiHzEeMofk6npSa37hwUPA9KDwv6Kipsv39tRiiL5cU7TgT9wvv"
],
"script": "base64:BgIGCAISABIAAQAIa2Fzc2V0SWQCB0Fzc2V0SUQCAWkBDXRva2VuSXNzdWFuY2UABARuYW1lAgpCZWJyYVRva2VuBA5sZW5kZXNjcmlwdGlvbgIPQmVicmEgYnkgS3JpbmdlBAhxdWFudGl0eQCgjQYECGRlY2ltYWxzAAMEDGlzUmVpc3N1YWJsZQYECmlzc3VlQmVicmEJAMMIBwUEbmFtZQUObGVuZGVzY3JpcHRpb24FCHF1YW50aXR5BQhkZWNpbWFscwUMaXNSZWlzc3VhYmxlBQR1bml0AAAEB2Fzc2V0SWQJALgIAQUKaXNzdWVCZWJyYQQJa25ld1Rva2VuAgVUb2tlbgQLZ2V0TmV3VG9rZW4JARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAnQgCBQR0aGlzBQlrbmV3VG9rZW4CGUJlYnJhVG9rZW4gaXMgbm90IGRlZmluZWQJAMwIAgUKaXNzdWVCZWJyYQkAzAgCCQELQmluYXJ5RW50cnkCBQhrYXNzZXRJZAUHYXNzZXRJZAkAzAgCCQELU3RyaW5nRW50cnkCBQlrbmV3VG9rZW4IBQppc3N1ZUJlYnJhBG5hbWUFA25pbAFpAQtzZW5kZXJUb2tlbgAEAWYJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkBEUBleHRyTmF0aXZlKDEwNTIpAgUEdGhpcwUIa2Fzc2V0SWQCBWVycm9yCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgAUBQFmBQNuaWwAf4Bnlw==",
"height": 2600771,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5MyUCrK7TBQWkCjCbTj94HVHdgPxsda2QNBR2wpqWEt8
Next: EeZW34g4ZwfvWo8KUFyqaHnjC3yipgE5HFWWuKQZNghv
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | |
---|
| 4 | + | let kassetId = "AssetID" |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func tokenIssuance () = { |
---|
8 | 8 | | let name = "BebraToken" |
---|
9 | 9 | | let lendescription = "Bebra by Kringe" |
---|
10 | | - | let quantity = 10000 |
---|
| 10 | + | let quantity = 100000 |
---|
11 | 11 | | let decimals = 3 |
---|
12 | 12 | | let isReissuable = true |
---|
13 | 13 | | let issueBebra = Issue(name, lendescription, quantity, decimals, isReissuable, unit, 0) |
---|
14 | 14 | | let assetId = calculateAssetId(issueBebra) |
---|
15 | 15 | | let knewToken = "Token" |
---|
16 | | - | let kassetId = "Asset ID" |
---|
17 | 16 | | let getNewToken = valueOrErrorMessage(getString(this, knewToken), "BebraToken is not defined") |
---|
18 | 17 | | [issueBebra, BinaryEntry(kassetId, assetId), StringEntry(knewToken, issueBebra.name)] |
---|
19 | 18 | | } |
---|
|
21 | 20 | | |
---|
22 | 21 | | |
---|
23 | 22 | | @Callable(i) |
---|
24 | | - | func senderToken (assetId) = { |
---|
25 | | - | let recipient = i.caller |
---|
26 | | - | [ScriptTransfer(recipient, 20, assetId)] |
---|
| 23 | + | func senderToken () = { |
---|
| 24 | + | let f = valueOrErrorMessage(getBinaryValue(this, kassetId), "error") |
---|
| 25 | + | [ScriptTransfer(i.caller, 20, f)] |
---|
27 | 26 | | } |
---|
28 | 27 | | |
---|
29 | | - | |
---|
30 | | - | @Verifier(tx) |
---|
31 | | - | func verify () = true |
---|
32 | 28 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | |
---|
| 4 | + | let kassetId = "AssetID" |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func tokenIssuance () = { |
---|
8 | 8 | | let name = "BebraToken" |
---|
9 | 9 | | let lendescription = "Bebra by Kringe" |
---|
10 | | - | let quantity = 10000 |
---|
| 10 | + | let quantity = 100000 |
---|
11 | 11 | | let decimals = 3 |
---|
12 | 12 | | let isReissuable = true |
---|
13 | 13 | | let issueBebra = Issue(name, lendescription, quantity, decimals, isReissuable, unit, 0) |
---|
14 | 14 | | let assetId = calculateAssetId(issueBebra) |
---|
15 | 15 | | let knewToken = "Token" |
---|
16 | | - | let kassetId = "Asset ID" |
---|
17 | 16 | | let getNewToken = valueOrErrorMessage(getString(this, knewToken), "BebraToken is not defined") |
---|
18 | 17 | | [issueBebra, BinaryEntry(kassetId, assetId), StringEntry(knewToken, issueBebra.name)] |
---|
19 | 18 | | } |
---|
20 | 19 | | |
---|
21 | 20 | | |
---|
22 | 21 | | |
---|
23 | 22 | | @Callable(i) |
---|
24 | | - | func senderToken (assetId) = { |
---|
25 | | - | let recipient = i.caller |
---|
26 | | - | [ScriptTransfer(recipient, 20, assetId)] |
---|
| 23 | + | func senderToken () = { |
---|
| 24 | + | let f = valueOrErrorMessage(getBinaryValue(this, kassetId), "error") |
---|
| 25 | + | [ScriptTransfer(i.caller, 20, f)] |
---|
27 | 26 | | } |
---|
28 | 27 | | |
---|
29 | | - | |
---|
30 | | - | @Verifier(tx) |
---|
31 | | - | func verify () = true |
---|
32 | 28 | | |
---|