tx · 7kcZB1etse27pmqEC4gPaLvyTEHCmPMmhH9FKc3z9TzR

3MsnFBX1La8i9WoAQetZcPaiQTqC4giPUde:  -0.01000000 Waves

2022.05.31 16:09 [2075879] smart account 3MsnFBX1La8i9WoAQetZcPaiQTqC4giPUde > SELF 0.00000000 Waves

{ "type": 13, "id": "7kcZB1etse27pmqEC4gPaLvyTEHCmPMmhH9FKc3z9TzR", "fee": 1000000, "feeAssetId": null, "timestamp": 1654002560028, "version": 2, "chainId": 84, "sender": "3MsnFBX1La8i9WoAQetZcPaiQTqC4giPUde", "senderPublicKey": "9tg59aPk9dET4s3sb4NY1zWHGtSKE7maNNvYe8aDBxZn", "proofs": [ "3xRVFDnR3jqC5Ge6qaZqR7cfPLgsyU3t4kTVCy7ETUWZf15E3osDAsZcT1iSzzcpbRVhLKCTKpiSHN8zXeB8K5SE" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEBAAAABAAAAAANUEFZTUVOVF9BU1NFVAEAAAAgrZ1IFoWReWfvw0p6hpnR3VDpBUk85P5AREeM4YPEwvQAAAAACkJBU0VfUFJJQ0UAAAAAAAL68IAAAAAABFBMVVMAAAAAAAAPQkABAAAAC2lzUGF5bWVudE9rAAAAAQAAAAFpBAAAABFhY2NlcHRhYmxlQXNzZXRJZAUAAAANUEFZTUVOVF9BU1NFVAMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABRQYXltZW50IG5vdCBhdHRhY2hlZAQAAAABcAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAIcHJpY2VLZXkCAAAACmxhc3RfcHJpY2UEAAAACmludGVnZXJWYWwJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQaAAAAAgUAAAAEdGhpcwUAAAAIcHJpY2VLZXkFAAAACkJBU0VfUFJJQ0UEAAAAByRtYXRjaDAIBQAAAAFwAAAAB2Fzc2V0SWQDCQAAAQAA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IT0AAAACCQAEtgAAAAEJAAGRAAAAAgUAAAAIc3BsaXR0ZXIAAAAAAAAAAAEFAAAAAmlkBAAAAAZpc3N1ZXIJAARCAAAABQUAAAAHTkZUTkFNRQkAASwAAAACAgAAAAxQT0tFTU9OX05GVF8JAAGkAAAAAQUAAAACaWQAAAAAAAAAAAEAAAAAAAAAAAAHBAAAAAhuZXdQcmljZQkAAGQAAAACBQAAAAppbnRlZ2VyVmFsBQAAAARQTFVTBAAAAANpZGEJAAQ4AAAAAQUAAAAGaXNzdWVyCQAETAAAAAIFAAAABmlzc3VlcgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABpAAAAAEFAAAAAmlkAgAAAAFfBQAAAAx3YWxsZXRTdHJpbmcCAAAABF9ORlQJAAJYAAAAAQUAAAADaWRhCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAAQUAAAADaWRhCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAAhwcmljZUtleQUAAAAIbmV3UHJpY2UFAAAAA25pbAkAAAIAAAABAgAAAB5hbHJlYWR5IG1pbnRlZCBieSBzb21lb25lIGVsc2UJAAACAAAAAQIAAAAeV3JvbmcgcGF5bWVudCBhbW91bnQgb3IgYXNzZXQuCQAAAgAAAAECAAAADG91dCBvZiByYW5nZQAAAABtilOS", "height": 2075879, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8VytVK5dwDaBeQxQLEvUXteFUEK9x1Dt8f4eDHNiF2ob Next: none Diff:
OldNewDifferences
5050 let s = Issue(q, ("POKEMON_NFT_" + toString(l)), 1, 0, false)
5151 let t = (i + c)
5252 let u = calculateAssetId(s)
53-[s, StringEntry(((("NFT_" + toString(l)) + "_") + m), toBase58String(u)), ScriptTransfer(e.caller, 1, u), IntegerEntry(h, t)]
53+[s, StringEntry((((toString(l) + "_") + m) + "_NFT"), toBase58String(u)), ScriptTransfer(e.caller, 1, u), IntegerEntry(h, t)]
5454 }
5555 else throw("already minted by someone else")
5656 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'CgidgEMbCKXXErgJXVyZCFRaK8SBNA73Jg8mNXALtVKh'
55
66 let b = 50000000
77
88 let c = 1000000
99
1010 func d (e) = {
1111 let f = a
1212 if ((size(e.payments) == 0))
1313 then throw("Payment not attached")
1414 else {
1515 let g = e.payments[0]
1616 let h = "last_price"
1717 let i = valueOrElse(getInteger(this, h), b)
1818 let j = g.assetId
1919 if ($isInstanceOf(j, "ByteVector"))
2020 then {
2121 let k = j
2222 if ((k == a))
2323 then (g.amount == i)
2424 else false
2525 }
2626 else throw("Wrong payment asset or min amount 50 USDN")
2727 }
2828 }
2929
3030
3131 @Callable(e)
3232 func mintPokemon (l) = {
3333 let m = toBase58String(e.caller.bytes)
3434 let h = "last_price"
3535 let i = valueOrElse(getInteger(this, h), b)
3636 if (if ((l > 0))
3737 then true
3838 else (151 >= l))
3939 then if (d(e))
4040 then {
4141 let n = (((toString(l) + "_") + m) + "_NFT")
4242 let o = valueOrElse(getString(this, n), "none")
4343 let p = ((toString(l) + "_w_") + m)
4444 let q = ("POKEMON_NFT_" + toString(l))
4545 let r = split("_", o)
4646 if (if ((o == "none"))
4747 then true
4848 else (parseInt(r[1]) != l))
4949 then {
5050 let s = Issue(q, ("POKEMON_NFT_" + toString(l)), 1, 0, false)
5151 let t = (i + c)
5252 let u = calculateAssetId(s)
53-[s, StringEntry(((("NFT_" + toString(l)) + "_") + m), toBase58String(u)), ScriptTransfer(e.caller, 1, u), IntegerEntry(h, t)]
53+[s, StringEntry((((toString(l) + "_") + m) + "_NFT"), toBase58String(u)), ScriptTransfer(e.caller, 1, u), IntegerEntry(h, t)]
5454 }
5555 else throw("already minted by someone else")
5656 }
5757 else throw("Wrong payment amount or asset.")
5858 else throw("out of range")
5959 }
6060
6161

github/deemru/w8io/169f3d6 
40.43 ms