tx · 4zRFrq8ERgArhCBtYHBXDKBd9FiK7McUdiLQ4USZ9wJc
3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo: -0.01000000 Waves
2022.11.21 12:23 [2326690] smart account 3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo > SELF 0.00000000 Waves
{
"type": 13,
"id": "4zRFrq8ERgArhCBtYHBXDKBd9FiK7McUdiLQ4USZ9wJc",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1669022339895,
"version": 2,
"chainId": 84,
"sender": "3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo",
"senderPublicKey": "Kwu4LYBMntApXv8t7csxV23Kvc3tvak26wMKK56tA4V",
"proofs": [
"2urJFSNM2wcMrcC8wVyPjHNLPtLPVYYzDfMAQT6z3vpM8QXD9wzK5dzsrTH61zb3Ub9PdXSUBh9Jy7XytrSP7xAD"
],
"script": "base64:BgIECAISAAABAWkBCVRva25Jc3N1ZQAEBWFzc2V0CQDDCAcCBUFzaW1pAh5UaGlzIGlzIGEgYWR2ZXJ0aXNlbWVudCAgVG9rZW4AZAAABgUEdW5pdAAABAdhc3NldElkCQC4CAEFBWFzc2V0BAR1c2VyCQEHQWRkcmVzcwEBGgFUR+z0BSkBYWi7QP7cj+U4CmBkmZSDTs7wCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFBHVzZXIAAQUHYXNzZXRJZAUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleZLfsR4=",
"height": 2326690,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: Ft6JYFgnYHeq2p5xYUv36jUt7QCLVycrsmfw1CByV1Lb
Next: uWxMy61G73oRd3XFf5aquRqEmY2MpgQkbqHddBbVu6R
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func buynft (amountForOwner) = { |
---|
8 | | - | let ownerAddress = i.caller |
---|
9 | | - | let Alice = Address(base58'3N87gU3S3GtPPo5S7dzRehArERGGJh1jwFD') |
---|
10 | | - | [IntegerEntry("amountForOwner", amountForOwner), ScriptTransfer(Alice, amountForOwner, unit)] |
---|
| 7 | + | func ToknIssue () = { |
---|
| 8 | + | let asset = Issue("Asimi", "This is a advertisement Token", 100, 0, true, unit, 0) |
---|
| 9 | + | let assetId = calculateAssetId(asset) |
---|
| 10 | + | let user = Address(base58'3MvUPcLYNFkmNzkA2h8jVU1fVK416VCT3hR') |
---|
| 11 | + | [ScriptTransfer(user, 1, assetId)] |
---|
11 | 12 | | } |
---|
12 | 13 | | |
---|
| 14 | + | |
---|
| 15 | + | @Verifier(tx) |
---|
| 16 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
13 | 17 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func buynft (amountForOwner) = { |
---|
8 | | - | let ownerAddress = i.caller |
---|
9 | | - | let Alice = Address(base58'3N87gU3S3GtPPo5S7dzRehArERGGJh1jwFD') |
---|
10 | | - | [IntegerEntry("amountForOwner", amountForOwner), ScriptTransfer(Alice, amountForOwner, unit)] |
---|
| 7 | + | func ToknIssue () = { |
---|
| 8 | + | let asset = Issue("Asimi", "This is a advertisement Token", 100, 0, true, unit, 0) |
---|
| 9 | + | let assetId = calculateAssetId(asset) |
---|
| 10 | + | let user = Address(base58'3MvUPcLYNFkmNzkA2h8jVU1fVK416VCT3hR') |
---|
| 11 | + | [ScriptTransfer(user, 1, assetId)] |
---|
11 | 12 | | } |
---|
12 | 13 | | |
---|
| 14 | + | |
---|
| 15 | + | @Verifier(tx) |
---|
| 16 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
13 | 17 | | |
---|