tx · 6CaNvsSRH7zr8zDkgwDCVTsC9BTGFDiEvQtwffvJEcLk
3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx: -0.01000000 Waves
2023.01.12 13:49 [2401632] smart account 3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx > SELF 0.00000000 Waves
{
"type": 13,
"id": "6CaNvsSRH7zr8zDkgwDCVTsC9BTGFDiEvQtwffvJEcLk",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1673520822012,
"version": 2,
"chainId": 84,
"sender": "3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx",
"senderPublicKey": "EKZmHJ5bK3qKKgRdq8rAamt9qrDbVMLARzRqXoQW258v",
"proofs": [
"2zwLUTGK5JftdJ6YqqefcUTsM9dbvFpK8RBT4y6bkbrLeGM6pkQPf9R3pMgEL2x4QZyaKZLCLPVRgfgnjcsgyATw"
],
"script": "base64:BgIICAISBAoCCAgAAQFpAQxmdW5kVHJhbnNmZXICDXJlY2VwaWVudEFkZHIHbWVzc2FnZQQGY2FsbGVyCAgFAWkGY2FsbGVyBWJ5dGVzBAdyZWNpdmVyCQDZBAEFDXJlY2VwaWVudEFkZHIEBmFtb3VudAgJAJEDAggFAWkIcGF5bWVudHMAAAZhbW91bnQJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkA2AQBBQZjYWxsZXICCV90cmFuc2ZlcgUGYW1vdW50CQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkA2AQBBQZjYWxsZXICDF90cmFuc2Zlcl90bwUNcmVjZXBpZW50QWRkcgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEFB3JlY2l2ZXIFBmFtb3VudAUEdW5pdAUDbmlsANTFhkU=",
"height": 2401632,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: BZaLPBEPKS3bH7CUbYfFz15pNmLHgeK4Bcy26Nq4sArV
Next: AMk9McQtsAe5QPxyRF471C8Gvzr8jjiSPW5p4FdR6ijJ
Diff:
Old | New | | Differences |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func fundTransfer (recepientAddr,message) = { |
---|
8 | 8 | | let caller = i.caller.bytes |
---|
9 | | - | [StringEntry((toBase58String(caller) + "_test"), message)] |
---|
| 9 | + | let reciver = fromBase58String(recepientAddr) |
---|
| 10 | + | let amount = i.payments[0].amount |
---|
| 11 | + | [IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, unit)] |
---|
10 | 12 | | } |
---|
11 | 13 | | |
---|
12 | 14 | | |
---|
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 fundTransfer (recepientAddr,message) = { |
---|
8 | 8 | | let caller = i.caller.bytes |
---|
9 | | - | [StringEntry((toBase58String(caller) + "_test"), message)] |
---|
| 9 | + | let reciver = fromBase58String(recepientAddr) |
---|
| 10 | + | let amount = i.payments[0].amount |
---|
| 11 | + | [IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, unit)] |
---|
10 | 12 | | } |
---|
11 | 13 | | |
---|
12 | 14 | | |
---|