tx · 2jC4c1qpaSAq8h8CfAnBoWgCqRvohgT7VopFCTPt1j3G 3MxZPzVdHQYNjp99N7VRuR4RLmJUqnDg9ok: -0.00500000 Waves 2022.08.18 21:26 [2190277] smart account 3MxZPzVdHQYNjp99N7VRuR4RLmJUqnDg9ok > SELF 0.00000000 Waves
{ "type": 13, "id": "2jC4c1qpaSAq8h8CfAnBoWgCqRvohgT7VopFCTPt1j3G", "fee": 500000, "feeAssetId": null, "timestamp": 1660847198921, "version": 2, "chainId": 84, "sender": "3MxZPzVdHQYNjp99N7VRuR4RLmJUqnDg9ok", "senderPublicKey": "A1pjoNRKAzNoU5LENmSXCwNcK2rfa9xvd3fzjagNw7ft", "proofs": [ "7kfNX5xVPHpjgvTuwGCqj3gAfxYgfmAWBERdNr63uPijx5jjivKwkhYtYz2iirqGoMuZUbZZJUw6AtrQ9w8hgWB" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEBAAAAAgAAAAALdXNkdEFzc2V0SWQBAAAAII7e2C74XKyveq5VW4zqnYfgv+LMufU1mGwmP9aMfGSJAAAAAAtjb2FsQXNzZXRJZAEAAAAgMeDV9UC3cemF7HoOb7evUrojvKZCHJ2aO5kl6ImGjuYAAAABAAAAAWkBAAAACG1pbnROYXppAAAAAQAAAAZhbW91bnQEAAAABmNhbGxlcgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAAAiE9AAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQkAAAIAAAABAgAAAB1Zb3Ugc2hvdWxkIHRvIHByb3ZpZGUgcGF5bWVudAMJAQAAAAIhPQAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQFAAAAC3VzZHRBc3NldElkCQAAAgAAAAECAAAAFllvdSBzaG91bGQgdG8gdXNlIFVTRFQDCQEAAAACIT0AAAACCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAZhbW91bnQJAABoAAAAAgUAAAAGYW1vdW50AAAAAAAAAAAFCQAAAgAAAAECAAAAFkludmFsaWQgcGF5bWVudCBhbW91bnQJAARMAAAAAgkBAAAAB1JlaXNzdWUAAAADBQAAAAtjb2FsQXNzZXRJZAUAAAAGYW1vdW50BgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAABmFtb3VudAUAAAALY29hbEFzc2V0SWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5zgbN7g==", "height": 2190277, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7ZQqF8V9Cu2uipNPbRddLXC4ryzvr6suLwWS8vjTedb5 Next: 5MYEEfKcGpupdM5LZGudDHYm6N4hDF7QUo1ZaFTfDHMi Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let usdtAssetId = base58'AchyiWrhJWfy4hiLrHyxZ8abUqS8fKz5hefDCtZ7yfbW' | |
5 | + | ||
6 | + | let coalAssetId = base58'4MhpjsP1MPpC49v6zBr7eAAEPZdmHWcrSqcSv8tZcpjo' | |
7 | + | ||
8 | + | @Callable(i) | |
9 | + | func mintNazi (amount) = { | |
10 | + | let caller = toBase58String(i.caller.bytes) | |
11 | + | if ((size(i.payments) != 1)) | |
12 | + | then throw("You should to provide payment") | |
13 | + | else if ((i.payments[0].assetId != usdtAssetId)) | |
14 | + | then throw("You should to use USDT") | |
15 | + | else if ((i.payments[0].amount != (amount * 5))) | |
16 | + | then throw("Invalid payment amount") | |
17 | + | else [Reissue(coalAssetId, amount, true), ScriptTransfer(i.caller, amount, coalAssetId)] | |
18 | + | } | |
19 | + | ||
20 | + | ||
21 | + | @Verifier(tx) | |
22 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
23 | + |
github/deemru/w8io/169f3d6 24.10 ms ◑