tx · 7C2za23C3BN3vvSKoS6xwmUWvDhT7MX2xCSL6PbdPijM
3N4q2D5bh5sAL3b4PighYyKw2WshKCiFD4F: -0.01000000 Waves
2022.07.12 15:17 [2136499] smart account 3N4q2D5bh5sAL3b4PighYyKw2WshKCiFD4F > SELF 0.00000000 Waves
{
"type": 13,
"id": "7C2za23C3BN3vvSKoS6xwmUWvDhT7MX2xCSL6PbdPijM",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1657628305858,
"version": 2,
"chainId": 84,
"sender": "3N4q2D5bh5sAL3b4PighYyKw2WshKCiFD4F",
"senderPublicKey": "6VoJ7RierQefBKJH9a5RujzZsTuQorjhXSqtaopcxgRN",
"proofs": [
"VHubrsyebN8fwxZU5gjsSWa9btESBYW7fjP6SbkoNGLXJJdKNpA5xVTPQvRnKGUa7mpoDEGhc2SVq7Hut77bjwy"
],
"script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAgAAAAAFQWxpY2UJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTsvOelYKyff/JV5vXiL5ZpqasYoxeg4fUAAAAAA0JvYgkBAAAAB0FkZHJlc3MAAAABAQAAABoBVLzX1LnJHynOoTfh8b3gscCt7ThBTUk5MgAAAAEAAAABaQEAAAAMc3BsaXRCYWxhbmNlAAAAAAQAAAAOdHJhbnNmZXJBbW91bnQJAABpAAAAAgkBAAAADHdhdmVzQmFsYW5jZQAAAAEFAAAABHRoaXMAAAAAAAAAAAIJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAFQWxpY2UFAAAADnRyYW5zZmVyQW1vdW50BQAAAAR1bml0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAA0JvYgUAAAAOdHJhbnNmZXJBbW91bnQFAAAABHVuaXQFAAAAA25pbAAAAACuFJ3I",
"height": 2136499,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: ESGRsPpGSLQVy1EqX7SkuuMLvjQUuuPssHUKiqcLnPC1
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 5 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let Alice = Address(base58'3NBVqYXrapgJP9atQccdBPAgJPwHDKkh6A8') |
---|
4 | 5 | | |
---|
| 6 | + | let Bob = Address(base58'3N78bNBYhT6pt6nugc6ay1uW1nLEfnRWkJd') |
---|
5 | 7 | | |
---|
6 | 8 | | @Callable(i) |
---|
7 | | - | func testissue (address) = { |
---|
8 | | - | let asset = Issue("UberToken", "The ultimate token. One and only.", 1, 0, false) |
---|
9 | | - | let assetId = calculateAssetId(asset) |
---|
10 | | - | $Tuple2([StringEntry((address + "_di"), toBase58String(assetId)), asset, ScriptTransfer(value(addressFromString(address)), 1, assetId)], "") |
---|
| 9 | + | func splitBalance () = { |
---|
| 10 | + | let transferAmount = (wavesBalance(this) / 2) |
---|
| 11 | + | TransferSet([ScriptTransfer(Alice, transferAmount, unit), ScriptTransfer(Bob, transferAmount, unit)]) |
---|
11 | 12 | | } |
---|
12 | 13 | | |
---|
13 | 14 | | |
---|