tx · F1wCux4e8rdXMkiWEgy1KiNp2KuFJck96d3kL1ZjhqGe
3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F: -0.01000000 Waves
2022.12.20 14:42 [2368561] smart account 3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F > SELF 0.00000000 Waves
{
"type": 13,
"id": "F1wCux4e8rdXMkiWEgy1KiNp2KuFJck96d3kL1ZjhqGe",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1671536622406,
"version": 2,
"chainId": 84,
"sender": "3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F",
"senderPublicKey": "3V22YUj3GF4AeBxdWx8rgGdG4groE4W6P2s4sAkshe7R",
"proofs": [
"2NHycVEiV69fxUHas4hqu7XZKQsff3uawu1K1H2TZcqZGBBF1woVE7aNU7sAJNSeFh1jE53gEnPMcyQHU825mhZZ"
],
"script": "base64:BgILCAISABIDCgEIEgAAAwFpAQh3aXRoZHJhdwAEBmNhbGxlcggIBQFpBmNhbGxlcgVieXRlcwQGYW1vdW50CAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAMJAGYCAAAFBmFtb3VudAkAAgECHkNhbid0IHdpdGhkcmF3IG5lZ2F0aXZlIGFtb3VudAkAzAgCCQEMSW50ZWdlckVudHJ5AgIHX2Ftb3VudAUGYW1vdW50CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAQdBZGRyZXNzAQUGY2FsbGVyBQZhbW91bnQFBHVuaXQFA25pbAFpAQdkZXBvc2l0ARF1c2VyX3dhbGxldEFkcmVzcwQGY2FsbGVyCAgFAWkGY2FsbGVyBWJ5dGVzBAZhbW91bnQJAQV2YWx1ZQEICQCRAwIIBQFpCHBheW1lbnRzAAAGYW1vdW50AwkAZgIAAAUGYW1vdW50CQACAQIdQ2FuJ3QgZGVwb3NpdCBuZWdhdGl2ZSBhbW91bnQJAMwIAgkBC1N0cmluZ0VudHJ5AgISX3VzZXJfd2FsbGV0QWRyZXNzBRF1c2VyX3dhbGxldEFkcmVzcwkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEJANkEAQURdXNlcl93YWxsZXRBZHJlc3MFBmFtb3VudAUEdW5pdAUDbmlsAWkBA2J1eQAFA25pbABu95ne",
"height": 2368561,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: gUhQ2MtLnZHa1rEKZRZgBaP6Ai5sVC6rTVKdkkwpfMo
Next: 44XY89682n58QQTp2FBKCkCC166AyAvs3xjffedQmTn8
Diff:
Old | New | | Differences |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func withdraw () = { |
---|
8 | 8 | | let caller = i.caller.bytes |
---|
9 | | - | let amount = value(i.payments[0].amount) |
---|
| 9 | + | let amount = i.payments[0].amount |
---|
10 | 10 | | if ((0 > amount)) |
---|
11 | 11 | | then throw("Can't withdraw negative amount") |
---|
12 | 12 | | else [IntegerEntry("_amount", amount), ScriptTransfer(Address(caller), amount, unit)] |
---|
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 withdraw () = { |
---|
8 | 8 | | let caller = i.caller.bytes |
---|
9 | | - | let amount = value(i.payments[0].amount) |
---|
| 9 | + | let amount = i.payments[0].amount |
---|
10 | 10 | | if ((0 > amount)) |
---|
11 | 11 | | then throw("Can't withdraw negative amount") |
---|
12 | 12 | | else [IntegerEntry("_amount", amount), ScriptTransfer(Address(caller), amount, unit)] |
---|
13 | 13 | | } |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | @Callable(i) |
---|
18 | 18 | | func deposit (user_walletAdress) = { |
---|
19 | 19 | | let caller = i.caller.bytes |
---|
20 | 20 | | let amount = value(i.payments[0].amount) |
---|
21 | 21 | | if ((0 > amount)) |
---|
22 | 22 | | then throw("Can't deposit negative amount") |
---|
23 | 23 | | else [StringEntry("_user_walletAdress", user_walletAdress), ScriptTransfer(Address(fromBase58String(user_walletAdress)), amount, unit)] |
---|
24 | 24 | | } |
---|
25 | 25 | | |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|
28 | 28 | | @Callable(i) |
---|
29 | 29 | | func buy () = nil |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|