tx · 3VJ8ArHoc7QGDyqZ3WCjKJFoCj6fF7qg6xvcVrT9SxYw

3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw:  -0.01000000 Waves

2023.02.09 13:58 [2442002] smart account 3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw > SELF 0.00000000 Waves

{ "type": 13, "id": "3VJ8ArHoc7QGDyqZ3WCjKJFoCj6fF7qg6xvcVrT9SxYw", "fee": 1000000, "feeAssetId": null, "timestamp": 1675940455830, "version": 2, "chainId": 84, "sender": "3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw", "senderPublicKey": "4NDsd3dGKXuKLCoSbYvcWCX276K9ShP75cs9HTBMLJEN", "proofs": [ "2vc2pTWebyWc5Dq64j6fWMnPzk394MxLKz498QF1CEvgsWq2fwb4pWGK3rL5xS2THAC1ZAWWTAPVMjCjrXUhmajS" ], "script": "base64:BgIHCAISAwoBCAABAWkBB21pbnROZnQBDWlwZnNJbWFnZUhhc2gECXJlY2lwaWVudAgFAWkGY2FsbGVyBAZhc3NldDEJAMIIBQIGYWFhYWJhAgdzd3Nkc2RzAAEAAAcECGFzc2V0SWQxCQC4CAEFBmFzc2V0MQQGYXNzZXQyCQDCCAUCBmJiYmNiYgINc2RmZHNmZHNmZHNmZAABAAAHBAhhc3NldElkMgkAuAgBBQZhc3NldDIJAMwIAgUGYXNzZXQxCQDMCAIFBmFzc2V0MgkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJANgEAQUIYXNzZXRJZDECBV9pcGZzBQ1pcGZzSW1hZ2VIYXNoCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkA2AQBBQhhc3NldElkMgIFX2lwZnMFDWlwZnNJbWFnZUhhc2gJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUJcmVjaXBpZW50AAEFCGFzc2V0SWQxCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFCXJlY2lwaWVudAABBQhhc3NldElkMgUDbmlsAIwV8xg=", "height": 2442002, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9vCXgQVCJt3XRxQGbt4dchuf5BckHTUMxPiygnRatLuY Next: 4jc1RHkFmqwuHXujzNABj8vs2a35X9kMfs7eTbB1bJLC Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq'
5-
6-let WAVES = base58''
7-
8-@Callable(i)
9-func AcceptRequest (recepientAddr,message) = {
10- let caller = i.caller.bytes
11- let reciver = fromBase58String(recepientAddr)
12- let amount = i.payments[0].amount
13- if ((i.payments[0].assetId == teams))
14- then [IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, teams)]
15- else nil
16- }
17-
184
195
206 @Callable(i)
21-func sendRequest (recepientAddr,amount,message) = {
22- let caller = i.caller.bytes
23- let reciver = fromBase58String(recepientAddr)
24-[StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, unit)]
7+func mintNft (ipfsImageHash) = {
8+ let recipient = i.caller
9+ let asset1 = Issue("aaaaba", "swsdsds", 1, 0, false)
10+ let assetId1 = calculateAssetId(asset1)
11+ let asset2 = Issue("bbbcbb", "sdfdsfdsfdsfd", 1, 0, false)
12+ let assetId2 = calculateAssetId(asset2)
13+[asset1, asset2, StringEntry((toBase58String(assetId1) + "_ipfs"), ipfsImageHash), StringEntry((toBase58String(assetId2) + "_ipfs"), ipfsImageHash), ScriptTransfer(recipient, 1, assetId1), ScriptTransfer(recipient, 1, assetId2)]
2514 }
2615
2716

github/deemru/w8io/026f985 
23.04 ms