tx · HdZo8EowK54MQJKT7m5btAKF8p1ErPNMBVZF5XE6sPj6

3N1Qtfgygwf49ZA37QSYgttS65GrhwP2G1K:  -0.01000000 Waves

2023.04.10 21:43 [2528857] smart account 3N1Qtfgygwf49ZA37QSYgttS65GrhwP2G1K > SELF 0.00000000 Waves

{ "type": 13, "id": "HdZo8EowK54MQJKT7m5btAKF8p1ErPNMBVZF5XE6sPj6", "fee": 1000000, "feeAssetId": null, "timestamp": 1681152204566, "version": 2, "chainId": 84, "sender": "3N1Qtfgygwf49ZA37QSYgttS65GrhwP2G1K", "senderPublicKey": "EmiaRZ1fThYPQZXyrxxNVY94jfkr3cMCNJyk2GJZ768L", "proofs": [ "4a8bneCppzZCma745yxW5nUcS2FtGukW5t4ihkBET8hvP2Pe5j2RDD1D4LdTVZ7vhEjByCAVAvgqzS3z9ToUDNDF" ], "script": "base64:BgIHCAISAwoBCAMADnRvdGFsTWludGVkS2V5Ag50b3RhbE1pbnRlZEtleQEVdHJ5R2V0SW50ZWdlckV4dGVybmFsAgdhZGRyZXNzA2tleQQHJG1hdGNoMAkAmggCBQdhZGRyZXNzBQNrZXkDCQABAgUHJG1hdGNoMAIDSW50BAFiBQckbWF0Y2gwBQFiAAABDXRyeUdldEludGVnZXIBA2tleQkBFXRyeUdldEludGVnZXJFeHRlcm5hbAIFBHRoaXMFA2tleQEBaQEHbWludE5GVAENaXBmc0ltYWdlSGFzaAQDcG10AwkAAAIJAJADAQgFAWkIcGF5bWVudHMAAQkAkQMCCAUBaQhwYXltZW50cwAACQACAQIeUG9yIGZhdm9yLCBjaGVxdWUgbyBwYWdhbWVudG8hAwkBCWlzRGVmaW5lZAEIBQNwbXQHYXNzZXRJZAkAAgECFFBvciBmYXZvciwgc8OzIHdhdmVzAwkAZgIAAggFA3BtdAZhbW91bnQJAAIBAilQb3IgZmF2b3IsIHBlbG8gbWVub3MgMiB1bmlkYWRlcyBkZSB3YXZlcwQJcmVjaXBpZW50CAUBaQZjYWxsZXIEDGFtb3VudE1pbnRlZAkAZAIJAQ10cnlHZXRJbnRlZ2VyAQUOdG90YWxNaW50ZWRLZXkAAQQFYXNzZXQJAMIIBQkArAICAgdKVi1ORlQtCQCkAwEFDGFtb3VudE1pbnRlZAIPTkZUIGRvIHPDrW1ib2xvAAEAAAcEB2Fzc2V0SWQJALgIAQUFYXNzZXQJAMwIAgUFYXNzZXQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQDYBAEFB2Fzc2V0SWQCBV9pcGZzBQ1pcGZzSW1hZ2VIYXNoCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQ50b3RhbE1pbnRlZEtleQUMYW1vdW50TWludGVkCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFCXJlY2lwaWVudAABBQdhc3NldElkBQNuaWwAMYQEiw==", "height": 2528857, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3YiU9BnPdNzW4Ho1Kyrm4UcAiRCEPLT9pv4A2jKmZXnr Next: KcCmKYcV43mdcBrU8XAbEf2GvSnX3rGwFVrJCWKJYCb Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "totalMintedKey"
55
66 func b (c,d) = {
77 let e = getInteger(c, d)
88 if ($isInstanceOf(e, "Int"))
99 then {
1010 let f = e
1111 f
1212 }
1313 else 0
1414 }
1515
1616
1717 func g (d) = b(this, d)
1818
1919
2020 @Callable(h)
2121 func mintNFT (i) = {
2222 let j = if ((size(h.payments) == 1))
2323 then h.payments[0]
2424 else throw("Por favor, cheque o pagamento!")
2525 if (isDefined(j.assetId))
2626 then throw("Por favor, só waves")
2727 else if ((2 > j.amount))
2828 then throw("Por favor, pelo menos 2 unidades de waves")
2929 else {
3030 let k = h.caller
3131 let l = (g(a) + 1)
3232 let m = Issue(("JV-NFT-" + toString(l)), "NFT do símbolo", 1, 0, false)
3333 let n = calculateAssetId(m)
3434 [m, StringEntry((toBase58String(n) + "_ipfs"), i), IntegerEntry(a, l), ScriptTransfer(k, 1, n)]
3535 }
3636 }
3737
3838

github/deemru/w8io/169f3d6 
23.23 ms