tx · 6gyz4HWQhhL4V75kar9psRk4Rq65ZVEbMmShGB3M1G7v
3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn: -0.00500000 Waves
2023.03.20 19:41 [2498584] invoke 3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn > 3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn init()
3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn: baseURI: "@Callable(i) func mint(to: String, tokenURI: String) = { let tokenId = totalAmount + 1 let preName = symbol+"#"+toString(tokenId) let name = if (preName.size() <= 16) then preName else toString(tokenId) let json = invoke(dAppJson, "makeJSON", [["tokenURI"], [tokenURI]], []).exactAs[String] let asset = Issue(name, json, 1, 0, false, unit, height) let assetId = calculateAssetId(asset) let toAddress = Address(fromBase58String(to)) strict transfer = transferOrNot(toAddress, assetId) [ asset, transfer, IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI) ] }" -> "ipfs://QmcsX1EprrBwjPRT7dyDWvmGX7zvcRsmKKDaMTiFbSsZh2/"
3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn: totalAmount: 0
3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn: description: "Waves Punks. Test collection"
3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn: symbol: "WP"
3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn: collectionName: "Waves Punks"
{
"type": 16,
"id": "6gyz4HWQhhL4V75kar9psRk4Rq65ZVEbMmShGB3M1G7v",
"fee": 500000,
"feeAssetId": null,
"timestamp": 1679330543476,
"version": 2,
"chainId": 84,
"sender": "3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn",
"senderPublicKey": "CZeucjRLCKrkiP9zuj9KbLe23Wv9DywFzHBqNDnte51B",
"proofs": [
"5BshwBYiAjLKCSYY3zUzGafBbTgAGiH7MVuUsCmR36ftiRbtij7qi6fcsMgywathr6bzEM15QU9mXLKss8UUZ5p7"
],
"dApp": "3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn",
"payment": [],
"call": {
"function": "init",
"args": [
{
"type": "string",
"value": "Waves Punks"
},
{
"type": "string",
"value": "WP"
},
{
"type": "string",
"value": "Waves Punks. Test collection"
},
{
"type": "string",
"value": "ipfs://QmcsX1EprrBwjPRT7dyDWvmGX7zvcRsmKKDaMTiFbSsZh2/"
}
]
},
"height": 2498584,
"applicationStatus": "succeeded",
"spentComplexity": 13,
"stateChanges": {
"data": [
{
"key": "collectionName",
"type": "string",
"value": "Waves Punks"
},
{
"key": "symbol",
"type": "string",
"value": "WP"
},
{
"key": "description",
"type": "string",
"value": "Waves Punks. Test collection"
},
{
"key": "totalAmount",
"type": "integer",
"value": 0
},
{
"key": "baseURI",
"type": "string",
"value": "ipfs://QmcsX1EprrBwjPRT7dyDWvmGX7zvcRsmKKDaMTiFbSsZh2/"
}
],
"transfers": [],
"issues": [],
"reissues": [],
"burns": [],
"sponsorFees": [],
"leases": [],
"leaseCancels": [],
"invokes": []
}
}