tx · CkBxjYGa3xrvDHD9jtyi9xZZb3uqY5JRsExNJBBmWf8b
3NBU8TThHH5YUSk26iGEGU1jHM7vSR3ZTPx: -0.01000000 Waves
2024.10.10 07:23 [3320256] smart account 3NBU8TThHH5YUSk26iGEGU1jHM7vSR3ZTPx > SELF 0.00000000 Waves
{
"type": 13,
"id": "CkBxjYGa3xrvDHD9jtyi9xZZb3uqY5JRsExNJBBmWf8b",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1728534225689,
"version": 2,
"chainId": 84,
"sender": "3NBU8TThHH5YUSk26iGEGU1jHM7vSR3ZTPx",
"senderPublicKey": "9rzJ1VRwbiG3nvL1vPf5qXCmzWG6tWwUSNxrpP68pxsw",
"proofs": [
"3pWZMucSihNa7Sye4AjXN3vRj2GEo75ec3kWL2FThj6BhDRiKq5hSu2gvQiTXzkEEfhUYFXjxV2qyr8pvwQfAKpo"
],
"script": "base64:AAIFAAAAAAAAABEIAhIDCgEIEgMKAQgSAwoBAQAAAAIAAAAADmJyaWRnZV9hZGRyZXNzCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMCAAAADmJyaWRnZV9hZGRyZXNzAgAAAAAAAAAAC2JhaV9hc3NldGlkCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMCAAAAC2JhaV9hc3NldGlkAgAAAAAAAAADAAAAAWkBAAAAE3NldEF1dGhvcml6ZWRCcmlkZ2UAAAABAAAAB2FkZHJlc3MDCQAAAAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkAAlgAAAABCAUAAAAEdGhpcwAAAAVieXRlcwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAA5icmlkZ2VfYWRkcmVzcwUAAAAHYWRkcmVzcwUAAAADbmlsCQAAAgAAAAECAAAAIllvdSBhcmUgbm90IGFsbG93ZWQgdG8gY2hhbmdlIHRoaXMAAAABaQEAAAAUc2V0QXV0aG9yaXplZEFzc2l0SWQAAAABAAAAB2Fzc2V0SWQDCQAAAAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkAAlgAAAABCAUAAAAEdGhpcwAAAAVieXRlcwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAtiYWlfYXNzZXRpZAUAAAAHYXNzZXRJZAUAAAADbmlsCQAAAgAAAAECAAAAIllvdSBhcmUgbm90IGFsbG93ZWQgdG8gY2hhbmdlIHRoaXMAAAABaQEAAAAId2l0aGRyYXcAAAABAAAABmFtb3VudAMJAAAAAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAA5icmlkZ2VfYWRkcmVzcwkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAABmFtb3VudAkAAlkAAAABBQAAAAtiYWlfYXNzZXRpZAUAAAADbmlsCQAAAgAAAAECAAAAIllvdSBhcmUgbm90IGFsbG93ZWQgdG8gY2hhbmdlIHRoaXMAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tledOmb2g=",
"height": 3320256,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 1s6gqQUuQpK962E4QwHtDNsVXMHDdE7XPeH89cGaXbT
Next: none
Diff:
Old | New | | Differences |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let bridge_address = valueOrElse(getString(this, "bridge_address"), "") |
---|
5 | 5 | | |
---|
6 | | - | let bai_assetid = valueOrElse(getString(this, "bridge_address"), "") |
---|
| 6 | + | let bai_assetid = valueOrElse(getString(this, "bai_assetid"), "") |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func setAuthorizedBridge (address) = if ((toBase58String(i.caller.bytes) == toBase58String(this.bytes))) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let bridge_address = valueOrElse(getString(this, "bridge_address"), "") |
---|
5 | 5 | | |
---|
6 | | - | let bai_assetid = valueOrElse(getString(this, "bridge_address"), "") |
---|
| 6 | + | let bai_assetid = valueOrElse(getString(this, "bai_assetid"), "") |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func setAuthorizedBridge (address) = if ((toBase58String(i.caller.bytes) == toBase58String(this.bytes))) |
---|
10 | 10 | | then [StringEntry("bridge_address", address)] |
---|
11 | 11 | | else throw("You are not allowed to change this") |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
16 | 16 | | func setAuthorizedAssitId (assetId) = if ((toBase58String(i.caller.bytes) == toBase58String(this.bytes))) |
---|
17 | 17 | | then [StringEntry("bai_assetid", assetId)] |
---|
18 | 18 | | else throw("You are not allowed to change this") |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|
22 | 22 | | @Callable(i) |
---|
23 | 23 | | func withdraw (amount) = if ((toBase58String(i.caller.bytes) == bridge_address)) |
---|
24 | 24 | | then [ScriptTransfer(i.caller, amount, fromBase58String(bai_assetid))] |
---|
25 | 25 | | else throw("You are not allowed to change this") |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|
28 | 28 | | @Verifier(tx) |
---|
29 | 29 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
30 | 30 | | |
---|