tx · 7BBbGfpRugqw61L7Y8M3J8nvi7vsUnA6GEmridsYaYt 3NA1S6uwLYcgcU5Rie6zWuKyn1wkBj3rtPx: -0.01000000 Waves 2022.04.01 08:21 [1989101] smart account 3NA1S6uwLYcgcU5Rie6zWuKyn1wkBj3rtPx > SELF 0.00000000 Waves
{ "type": 13, "id": "7BBbGfpRugqw61L7Y8M3J8nvi7vsUnA6GEmridsYaYt", "fee": 1000000, "feeAssetId": null, "timestamp": 1648790586153, "version": 2, "chainId": 84, "sender": "3NA1S6uwLYcgcU5Rie6zWuKyn1wkBj3rtPx", "senderPublicKey": "BEvKqo77hZXfjdJwYSy7cbmNjN6dL4yKhwZvJDFKPiee", "proofs": [ "2WgnsKqHw3c8VBejR2G7djbfjNJ6yNYXz5nFhBWk2wrXim4dvKGc4wPiRCAzsC5VXdxmDkNeALuDj4nGr3j35rCb" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAEdXNkbgEAAAAgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQAAAAAB3Nuc2J0SWQBAAAAILqDvGkp6waDXTwTuaKB/jW6h/tkvZs4MAj0Aq5ZzFKzAAAAAAlpc1N0b3BwZWQHAAAAAQAAAAFpAQAAAAROU0JUAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAAZhbW91bnQIBQAAAANwbXQAAAAGYW1vdW50AwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAR1c2RuCQAAAgAAAAECAAAAFmF0dGFjaCBVU0ROIHRva2VuIG9ubHkDBQAAAAlpc1N0b3BwZWQJAAACAAAAAQIAAAAZc21hcnQgY29udHJhY3QgaXMgb24gbG9jawQAAAAKc25zYnRJc3N1ZQkBAAAAB1JlaXNzdWUAAAADBQAAAAdzbnNidElkBQAAAAZhbW91bnQGCQAETAAAAAIFAAAACnNuc2J0SXNzdWUJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAZhbW91bnQFAAAAB3Nuc2J0SWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5KAOCXg==", "height": 1989101, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: AfSGbYqah4mgbsK6NeBe6QniotEtCECWtZrvrrT1EGx9 Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let usdn = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
5 | + | ||
6 | + | let snsbtId = base58'DZ5LhvfGCEAFRmfcrtdjhhiLESBfN7dMvM8FEFQc6Qr6' | |
7 | + | ||
8 | + | let isStopped = false | |
9 | + | ||
10 | + | @Callable(i) | |
11 | + | func NSBT () = { | |
12 | + | let pmt = value(i.payments[0]) | |
13 | + | let amount = pmt.amount | |
14 | + | if ((pmt.assetId != usdn)) | |
15 | + | then throw("attach USDN token only") | |
16 | + | else if (isStopped) | |
17 | + | then throw("smart contract is on lock") | |
18 | + | else { | |
19 | + | let snsbtIssue = Reissue(snsbtId, amount, true) | |
20 | + | [snsbtIssue, ScriptTransfer(i.caller, amount, snsbtId)] | |
21 | + | } | |
22 | + | } | |
23 | + | ||
24 | + | ||
25 | + | @Verifier(tx) | |
26 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
27 | + |
github/deemru/w8io/169f3d6 16.30 ms ◑