tx · HSEBSju8vDq2EoNZQKGN5yxgAWySPN3kpGPb8sWdMHLH

3MrvweVea2oDxYWYt1MzJ9dX2DsCD1gx7xi:  -0.01400000 Waves

2022.12.04 13:49 [2345522] smart account 3MrvweVea2oDxYWYt1MzJ9dX2DsCD1gx7xi > SELF 0.00000000 Waves

{ "type": 13, "id": "HSEBSju8vDq2EoNZQKGN5yxgAWySPN3kpGPb8sWdMHLH", "fee": 1400000, "feeAssetId": null, "timestamp": 1670150978727, "version": 2, "chainId": 84, "sender": "3MrvweVea2oDxYWYt1MzJ9dX2DsCD1gx7xi", "senderPublicKey": "9Dv3qaeXDwKYKxsF8KgJRa8PmU7cJhabaDfVA1vTbiEF", "proofs": [ "4cAm9XKa2jJA7fJCgGjqn6nbCdd1Us6hDtMFT2k6Weevk5xaA5VKDXJ1WdLYhms5DpbEkHKWuFHQh1eBhyVhqrEu" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAABAAAAAAQTGljZW5zZUZlZUluVVNEVAAAAAAAATEtAAAAAAASTGljZW5zZUFzc2V0QW1vdW50AAAAAAAAAAABAAAAAA9BNEFMaWNlbnNlQXNzZXQBAAAAIOYr5gtWNKODZyZCO+W31X2tFtM9Ja2pfHQ+RU9rg62RAAAAAAtVU0RUQXNzZXRJRAEAAAAg9DTyRKCmlXCwOtkAGpfNfYYWHUJfNxVA8Rex0Yei1JcAAAABAAAAAWkBAAAADkxpY2Vuc2VNaW50aW5nAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAABNjaGVja0xpY2Vuc2VCYWxhbmNlCQAD8AAAAAIJAQAAAAdBZGRyZXNzAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwUAAAAPQTRBTGljZW5zZUFzc2V0AwkAAGYAAAACBQAAABNjaGVja0xpY2Vuc2VCYWxhbmNlAAAAAAAAAAABCQAAAgAAAAECAAAAKVlvdSBPd24gTXVsdGlwbGUgTGljZW5zZSBvbiBTYW1lIEFkZHJlc3MuAwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAtVU0RUQXNzZXRJRAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAmSW5jb3JyZWN0IGFzc2V0IGF0dGFjaGVkLCBwbGVhc2Ugc2VuZCAJAAJYAAAAAQUAAAALVVNEVEFzc2V0SUQCAAAACiAgKCBVU0RUKS4DCQEAAAACIT0AAAACCAUAAAADcG10AAAABmFtb3VudAUAAAAQTGljZW5zZUZlZUluVVNEVAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAA9SW5jb3JyZWN0IGFzc2V0IGFtb3VudCBhdHRhY2hlZCwgcGxlYXNlIGF0dGFjaCBleGFjdCAyMCBVU0RUIAkAAlgAAAABBQAAAAtVU0RUQXNzZXRJRAIAAAABLgkABEwAAAACCQEAAAAHUmVpc3N1ZQAAAAMFAAAAD0E0QUxpY2Vuc2VBc3NldAUAAAASTGljZW5zZUFzc2V0QW1vdW50BgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAEkxpY2Vuc2VBc3NldEFtb3VudAUAAAAPQTRBTGljZW5zZUFzc2V0BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlebpar3U=", "height": 2345522, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5NtV4nSfd756sgCegFY4KTrG8rK8aBzHaeTjRUpaj25B Next: J571hPC9eW9guopx1PQ12myat5SieJzyWCJ7pS5v7w5q Diff:
OldNewDifferences
1313 func LicenseMinting () = {
1414 let pmt = value(i.payments[0])
1515 let checkLicenseBalance = assetBalance(Address(i.caller.bytes), A4ALicenseAsset)
16- if ((checkLicenseBalance == 1))
17- then throw("You Already Have an Minting License.")
18- else if ((checkLicenseBalance > 1))
19- then throw("You Own Multiple License on Same Address.")
20- else if ((pmt.assetId != USDTAssetID))
21- then throw((("Incorrect asset attached, please send " + toBase58String(USDTAssetID)) + " ( USDT)."))
22- else if ((pmt.amount != LicenseFeeInUSDT))
23- then throw((("Incorrect asset amount attached, please attach exact 20 USDT " + toBase58String(USDTAssetID)) + "."))
24- else [Reissue(A4ALicenseAsset, LicenseAssetAmount, true), ScriptTransfer(i.caller, LicenseAssetAmount, A4ALicenseAsset)]
16+ if ((checkLicenseBalance > 1))
17+ then throw("You Own Multiple License on Same Address.")
18+ else if ((pmt.assetId != USDTAssetID))
19+ then throw((("Incorrect asset attached, please send " + toBase58String(USDTAssetID)) + " ( USDT)."))
20+ else if ((pmt.amount != LicenseFeeInUSDT))
21+ then throw((("Incorrect asset amount attached, please attach exact 20 USDT " + toBase58String(USDTAssetID)) + "."))
22+ else [Reissue(A4ALicenseAsset, LicenseAssetAmount, true), ScriptTransfer(i.caller, LicenseAssetAmount, A4ALicenseAsset)]
2523 }
2624
2725
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let LicenseFeeInUSDT = 20000000
55
66 let LicenseAssetAmount = 1
77
88 let A4ALicenseAsset = base58'GVVbVN9ufRzD4fTxRj47jZc25JnYUchw5RToneVec41W'
99
1010 let USDTAssetID = base58'HSHJecCLGF7DEPA23dJe6WwroaLeDnik5eptjxEJYvwY'
1111
1212 @Callable(i)
1313 func LicenseMinting () = {
1414 let pmt = value(i.payments[0])
1515 let checkLicenseBalance = assetBalance(Address(i.caller.bytes), A4ALicenseAsset)
16- if ((checkLicenseBalance == 1))
17- then throw("You Already Have an Minting License.")
18- else if ((checkLicenseBalance > 1))
19- then throw("You Own Multiple License on Same Address.")
20- else if ((pmt.assetId != USDTAssetID))
21- then throw((("Incorrect asset attached, please send " + toBase58String(USDTAssetID)) + " ( USDT)."))
22- else if ((pmt.amount != LicenseFeeInUSDT))
23- then throw((("Incorrect asset amount attached, please attach exact 20 USDT " + toBase58String(USDTAssetID)) + "."))
24- else [Reissue(A4ALicenseAsset, LicenseAssetAmount, true), ScriptTransfer(i.caller, LicenseAssetAmount, A4ALicenseAsset)]
16+ if ((checkLicenseBalance > 1))
17+ then throw("You Own Multiple License on Same Address.")
18+ else if ((pmt.assetId != USDTAssetID))
19+ then throw((("Incorrect asset attached, please send " + toBase58String(USDTAssetID)) + " ( USDT)."))
20+ else if ((pmt.amount != LicenseFeeInUSDT))
21+ then throw((("Incorrect asset amount attached, please attach exact 20 USDT " + toBase58String(USDTAssetID)) + "."))
22+ else [Reissue(A4ALicenseAsset, LicenseAssetAmount, true), ScriptTransfer(i.caller, LicenseAssetAmount, A4ALicenseAsset)]
2523 }
2624
2725
2826 @Verifier(tx)
2927 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3028

github/deemru/w8io/026f985 
29.05 ms