tx · FH8gwrze84pAeMSWJi55toowx1Xy8iDmvXWh7VFRPnuD
3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F: -0.01000000 Waves
2023.05.03 14:05 [2561488] smart account 3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F > SELF 0.00000000 Waves
{
"type": 13,
"id": "FH8gwrze84pAeMSWJi55toowx1Xy8iDmvXWh7VFRPnuD",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1683112038751,
"version": 2,
"chainId": 84,
"sender": "3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F",
"senderPublicKey": "3V22YUj3GF4AeBxdWx8rgGdG4groE4W6P2s4sAkshe7R",
"proofs": [
"5q8XVQ7jJSqBejSrvvytCSDobkF7gTYse4JbFE2FC67xRDJim7T7khusWjxtsKRukijMLsoD8HJaSFfmSCDkZQFh"
],
"script": "base64:BgIICAISBAoCCAgCAAV0ZWFtcwEghWOVo/OIjrDeDBeOCE6/mj+SuybbOuh2jhbcFCIqSH4ABVdBVkVTAQABAWkBDXRyYW5zZmVyVG9rZW4CDXJlY2VwaWVudEFkZHIHbWVzc2FnZQQGY2FsbGVyCAgFAWkGY2FsbGVyBWJ5dGVzBAdyZWNpdmVyCQDZBAEFDXJlY2VwaWVudEFkZHIEBmFtb3VudAgJAJEDAggFAWkIcGF5bWVudHMAAAZhbW91bnQEDXNlbmRlckJhbGFuY2UJAPAHAggFAWkGY2FsbGVyASCFY5Wj84iOsN4MF44ITr+aP5K7Jts66HaOFtwUIipIfgMJAAACCAkAkQMCCAUBaQhwYXltZW50cwAAB2Fzc2V0SWQFBXRlYW1zCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIJANgEAQUGY2FsbGVyAglfdHJhbnNmZXIFBmFtb3VudAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJANgEAQUGY2FsbGVyAgxfdHJhbnNmZXJfdG8FDXJlY2VwaWVudEFkZHIJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkBB0FkZHJlc3MBBQdyZWNpdmVyBQZhbW91bnQFBXRlYW1zBQNuaWwFA25pbAAigQB4",
"height": 2561488,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4TRcvo7w7e5486SzaQPPwiMicQ3Jnva5yxL4teTcSbFY
Next: 6P7QAhqmfRPRHbdZAwZhbbXFDWfpPuD6R5peoiCUEEL4
Diff:
Old | New | | Differences |
---|
10 | 10 | | let f = c.caller.bytes |
---|
11 | 11 | | let g = fromBase58String(d) |
---|
12 | 12 | | let h = c.payments[0].amount |
---|
| 13 | + | let i = assetBalance(c.caller, base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq') |
---|
13 | 14 | | if ((c.payments[0].assetId == a)) |
---|
14 | 15 | | then [IntegerEntry((toBase58String(f) + "_transfer"), h), StringEntry((toBase58String(f) + "_transfer_to"), d), ScriptTransfer(Address(g), h, a)] |
---|
15 | 16 | | else nil |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
5 | 5 | | |
---|
6 | 6 | | let b = base58'' |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(c) |
---|
9 | 9 | | func transferToken (d,e) = { |
---|
10 | 10 | | let f = c.caller.bytes |
---|
11 | 11 | | let g = fromBase58String(d) |
---|
12 | 12 | | let h = c.payments[0].amount |
---|
| 13 | + | let i = assetBalance(c.caller, base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq') |
---|
13 | 14 | | if ((c.payments[0].assetId == a)) |
---|
14 | 15 | | then [IntegerEntry((toBase58String(f) + "_transfer"), h), StringEntry((toBase58String(f) + "_transfer_to"), d), ScriptTransfer(Address(g), h, a)] |
---|
15 | 16 | | else nil |
---|
16 | 17 | | } |
---|
17 | 18 | | |
---|
18 | 19 | | |
---|