tx · DthZSH1gMzDMG9Yxhj6MTyBbre7KqTpniNoYcQSVeW5P

3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB:  -0.01400000 Waves

2021.05.26 13:02 [1542485] smart account 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB > SELF 0.00000000 Waves

{ "type": 13, "id": "DthZSH1gMzDMG9Yxhj6MTyBbre7KqTpniNoYcQSVeW5P", "fee": 1400000, "feeAssetId": null, "timestamp": 1622023388337, "version": 2, "chainId": 84, "sender": "3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB", "senderPublicKey": "CQ7vntBAYh2QZcKcqiiyEnQWWXsr98ysDptD23Wgxmvb", "proofs": [ "E2cJKyDi56rxmMX5wmbHkrSXpLefNwaswRayQFRqoLYjLMsmPE6scbgurxbZynuMkYsfqN5CLkjz7bDTMdsq9u2" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAgAAAAAIa2l0dGVuSWQCAAAALEd1b2JjSHZXOVdxb3Rua0dVajdKa3BjYlh0Z1ZmQjM3VEE0SmtnU2o5UWJiAQAAAApnZW5lcmF0aW9uAAAAAQAAAANudW0DAwkAAGYAAAACBQAAAANudW0AAAAAAAAAAAAGCQAAZwAAAAIAAAAAAAAAAGQFAAAAA251bQIAAAACRzEDAwkAAGYAAAACBQAAAANudW0AAAAAAAAAAGQGCQAAZwAAAAIAAAAAAAAAA4QFAAAAA251bQIAAAACRzICAAAAAkczAAAAAQAAAAFpAQAAAA9naXZlQmlydGhLaXR0ZW4AAAAABAAAAANwbXQJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAABXBtdElkCQACWAAAAAEJAQAAAAV2YWx1ZQAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAMJAQAAAAIhPQAAAAIFAAAABXBtdElkBQAAAAhraXR0ZW5JZAkAAAIAAAABAgAAABlQbGVhc2Ugc2VuZCBLaXR0ZW4gdG9rZW4uBAAAAAxraXR0Z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Xm+32uK", "height": 1542485, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AdysQvGg9eoyZnb6cQffiMisNBgJVDczND1uaywn4Bvg Next: 4U9nJ3jsAxdjVEBTSoMfVmFxVHbYZQ5Fe7V6L5rwk8xY Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let kittenId = "8LLpj6yQLUu37KUt3rVo1S69j2gWMbgbM6qqgt2ac1Vb"
4+let kittenId = "GuobcHvW9WqotnkGUj7JkpcbXtgVfB37TA4JkgSj9Qbb"
55
66 func generation (num) = if (if ((num > 0))
77 then true
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let kittenId = "8LLpj6yQLUu37KUt3rVo1S69j2gWMbgbM6qqgt2ac1Vb"
4+let kittenId = "GuobcHvW9WqotnkGUj7JkpcbXtgVfB37TA4JkgSj9Qbb"
55
66 func generation (num) = if (if ((num > 0))
77 then true
88 else (100 >= num))
99 then "G1"
1010 else if (if ((num > 100))
1111 then true
1212 else (900 >= num))
1313 then "G2"
1414 else "G3"
1515
1616
1717 @Callable(i)
1818 func giveBirthKitten () = {
1919 let pmt = i.payments[0]
2020 let pmtId = toBase58String(value(pmt.assetId))
2121 if ((pmtId != kittenId))
2222 then throw("Please send Kitten token.")
2323 else {
2424 let kittenAmount = pmt.amount
2525 let issueQuantity = match getInteger(this, "issueQuantity") {
2626 case a: Int =>
2727 a
2828 case _ =>
2929 0
3030 }
3131 let newQuantity = (issueQuantity + 1)
3232 let generationType = generation(newQuantity)
3333 if ((kittenAmount > 3))
3434 then throw("Amount of Kitten tokens sent is 3 tokens.")
3535 else if ((3 > kittenAmount))
3636 then throw("Amount of Kitten tokens sent is 3 tokens.")
3737 else {
3838 let kittenNft = Issue("Kitten(=^・^=)", ("generation:" + generationType), 1, 0, false)
3939 let kittenNftId = calculateAssetId(kittenNft)
4040 [kittenNft, ScriptTransfer(i.caller, 1, kittenNftId)]
4141 }
4242 }
4343 }
4444
4545
4646 @Verifier(tx)
4747 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4848

github/deemru/w8io/026f985 
29.69 ms