tx · 7L17JgdgHpMQ4uhmKdxtT7B8z2tcs5mnyRNYDhkQuyXP
3Mru3aDGTs5hhRmGnK4YtRHmjHWGxgxfTXj: -0.01400000 Waves
2022.03.05 18:33 [1950854] smart account 3Mru3aDGTs5hhRmGnK4YtRHmjHWGxgxfTXj > SELF 0.00000000 Waves
{
"type": 13,
"id": "7L17JgdgHpMQ4uhmKdxtT7B8z2tcs5mnyRNYDhkQuyXP",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1646494439489,
"version": 2,
"chainId": 84,
"sender": "3Mru3aDGTs5hhRmGnK4YtRHmjHWGxgxfTXj",
"senderPublicKey": "GVvfMT9ANQVuZNbpnUgjgfmAZzPsXpJFzZG6Rdufjvvx",
"proofs": [
"3zmQeNx6ZF9uAAzqKfBJzCmvmCucbKddDvAwgKcdq73yMcmYVKvDM63SpsPbhRTd262SQHemkymtzcCjk19qVtXo"
],
"script": "base64:AAIEAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAAAAAAAAgAAAAFpAQAAAAVDbGFpbQAAAAEAAAAPVHJhbnNhY3Rpb25IYXNoBAAAAApjdXJyZW50S2V5CQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQQAAAAPZmV0Y2hjdXJyZW50S2V5CQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzCQABLAAAAAIFAAAAD1RyYW5zYWN0aW9uSGFzaAIAAAAOX1NlbmRlcl9wdWJrZXkEAAAADGZldGNoQXNzZXRJRAkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwkAASwAAAACBQAAAA9UcmFuc2FjdGlvbkhhc2gCAAAAD19TZW5kZXJfQXNzZXRJRAQAAAALZmV0Y2hBbW91bnQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAPVHJhbnNhY3Rpb25IYXNoAgAAAA5fU2VuZGVyX2Ftb3VudAQAAAAM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GFzaAIAAAAOX1NlbmRlcl9TdGF0dXMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACBQAAAA9UcmFuc2FjdGlvbkhhc2gCAAAADl9TZW5kZXJfYW1vdW50CQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgUAAAAPVHJhbnNhY3Rpb25IYXNoAgAAAA5fU2VuZGVyX3B1YmtleQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5JDiqpw==",
"height": 1950854,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: J6EVE6RiH1bUctg2GC58HFVeW2scDr7KEL5T6HhR3S8o
Next: E82xHUvtzaCqc31ZkQm17CcaHYvAC3nRsHYqJ7jXrSo4
Diff:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 3 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
|
14 | 14 | | then throw("You are not an authorized user to Withdraw Funds or Wrong Public Key.") |
---|
15 | 15 | | else if ((fetchAmount == 0)) |
---|
16 | 16 | | then throw("You Already Have Withdraw Funds from This TxnID.") |
---|
17 | | - | else ScriptResult(WriteSet([DataEntry((TransactionHash + "_Sender_Status"), "WITHDRAW_COMPLETED"), DataEntry((TransactionHash + "_Sender_amount"), 0)]), TransferSet([ScriptTransfer(i.caller, ActualAmount, unit)])) |
---|
| 17 | + | else [StringEntry((TransactionHash + "_Sender_Status"), "WITHDRAW_COMPLETED"), IntegerEntry((TransactionHash + "_Sender_amount"), 0), ScriptTransfer(i.caller, ActualAmount, unit)] |
---|
18 | 18 | | } |
---|
| 19 | + | |
---|
| 20 | + | |
---|
| 21 | + | |
---|
| 22 | + | @Callable(i) |
---|
| 23 | + | func RemoveEntry (TransactionHash) = [DeleteEntry((TransactionHash + "_Sender_Address")), DeleteEntry((TransactionHash + "_Sender_AssetID")), DeleteEntry((TransactionHash + "_Sender_Status")), DeleteEntry((TransactionHash + "_Sender_amount")), DeleteEntry((TransactionHash + "_Sender_pubkey"))] |
---|
19 | 24 | | |
---|
20 | 25 | | |
---|
21 | 26 | | @Verifier(tx) |
---|
Full:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 3 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func Claim (TransactionHash) = { |
---|
8 | 8 | | let currentKey = toBase58String(i.callerPublicKey) |
---|
9 | 9 | | let fetchcurrentKey = getStringValue(this, (TransactionHash + "_Sender_pubkey")) |
---|
10 | 10 | | let fetchAssetID = getStringValue(this, (TransactionHash + "_Sender_AssetID")) |
---|
11 | 11 | | let fetchAmount = getIntegerValue(this, (TransactionHash + "_Sender_amount")) |
---|
12 | 12 | | let ActualAmount = fraction(100, fetchAmount, 1) |
---|
13 | 13 | | if ((currentKey != fetchcurrentKey)) |
---|
14 | 14 | | then throw("You are not an authorized user to Withdraw Funds or Wrong Public Key.") |
---|
15 | 15 | | else if ((fetchAmount == 0)) |
---|
16 | 16 | | then throw("You Already Have Withdraw Funds from This TxnID.") |
---|
17 | | - | else ScriptResult(WriteSet([DataEntry((TransactionHash + "_Sender_Status"), "WITHDRAW_COMPLETED"), DataEntry((TransactionHash + "_Sender_amount"), 0)]), TransferSet([ScriptTransfer(i.caller, ActualAmount, unit)])) |
---|
| 17 | + | else [StringEntry((TransactionHash + "_Sender_Status"), "WITHDRAW_COMPLETED"), IntegerEntry((TransactionHash + "_Sender_amount"), 0), ScriptTransfer(i.caller, ActualAmount, unit)] |
---|
18 | 18 | | } |
---|
| 19 | + | |
---|
| 20 | + | |
---|
| 21 | + | |
---|
| 22 | + | @Callable(i) |
---|
| 23 | + | func RemoveEntry (TransactionHash) = [DeleteEntry((TransactionHash + "_Sender_Address")), DeleteEntry((TransactionHash + "_Sender_AssetID")), DeleteEntry((TransactionHash + "_Sender_Status")), DeleteEntry((TransactionHash + "_Sender_amount")), DeleteEntry((TransactionHash + "_Sender_pubkey"))] |
---|
19 | 24 | | |
---|
20 | 25 | | |
---|
21 | 26 | | @Verifier(tx) |
---|
22 | 27 | | func verify () = match tx { |
---|
23 | 28 | | case _ => |
---|
24 | 29 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
25 | 30 | | } |
---|
26 | 31 | | |
---|