tx · Y13U7Tdyuh6ThGVUuqwm7PbyP3G5PyDA1DxUHtjqSsb 3N5K25SCwgJw2hE5LGqAZALL8W6eJxu1MG4: -0.01000000 Waves 2024.08.14 09:12 [3238088] smart account 3N5K25SCwgJw2hE5LGqAZALL8W6eJxu1MG4 > SELF 0.00000000 Waves
{ "type": 13, "id": "Y13U7Tdyuh6ThGVUuqwm7PbyP3G5PyDA1DxUHtjqSsb", "fee": 1000000, "feeAssetId": null, "timestamp": 1723615968942, "version": 2, "chainId": 84, "sender": "3N5K25SCwgJw2hE5LGqAZALL8W6eJxu1MG4", "senderPublicKey": "9Qh79U2rQpgqYmAMC6n9qq852WD1SgccXuMoUG33MMt6", "proofs": [ "2KPbaKyma89qUgQZRKrib63HPCaETLKsgLTMZ8DgSqEeKDznS6NMf1KRvAQV7rVekivQcxx2Tv4VCLiGZY3wtJX5" ], "script": "base64:BgIMCAISABIGCgQBCAgIAgAJa2V5b3duZXIxCQCnCAEBIOOt17LUijbWojwDE5tgFkw1Y8cwIr3jselcewpp7rwjAAxtaW50X21lc3NhZ2UCJlRoYW5rcyB0byBVc2luZyBTV1JNIE1pbnRpbmcgU2VydmljZXMuAgFpAQpJc3N1ZV9TV1JNAAQFYXNzZXQJAMIIBQIEU1dSTQKYA1NXUk0gaXMgYSBkZWNlbnRyYWxpemVkIGFwcHJvYWNoIHRvIGJ1aWxkaW5nIGFuZCB1dGlsaXppbmcgdGhlIFJlZGRjb2luIEJsb2NrY2hhaW4gVGVjaG5vbG9neSB3aGVyZSBTV1JNIHdvcmtzIG9uIGEgcmVzZXJ2ZSBzeXN0ZW0gb2YgUkREIGFzIGxheWVyIHNvbHV0aW9uIG9uIFJERCBOZXR3b3JrIHRvIG1pbnQgYW5kIEJ1cm4gU1dSTSBhbG9uZyB3aXRoIHByb29mIG9uIGJvdGggc2lkZSBvZiBuZXR3b3JrLiBBbiBpbmRlcGVuZGVudCBwcm9qZWN0IG9yIFRva2VuIGhhdmluZyBubyBkaXJlY3QgcG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ZWdlckVudHJ5AgILVHhuX0NvdW50ZXIFD05ld19UeG5fQ291bnRlcgkAzAgCCQELU3RyaW5nRW50cnkCCQCkAwEFD05ld19UeG5fQ291bnRlcgkArAICCQCsAgIJAKwCAgkArAICCQCsAgIJAKwCAgUKUkREX1R4bl9JRAIBXwULU1dSTV9UeG5fSUQCAV8FB2FkZHJlc3MCAV8JAKQDAQULTWludF9BbW91bnQJAMwIAgkBC1N0cmluZ0VudHJ5AgIHbWVzc2FnZQUMbWludF9tZXNzYWdlBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5ZGa9lQ==", "height": 3238088, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7eFP29V3YdyvF1tyMVZzKYsPqty1Vg54dpTerNYGXPoj Next: DUrYdtL3Pp2YHy7ji3jYXDSppbiQdAsjw4quGpxrQTpH Diff:
Old | New | Differences | |
---|---|---|---|
24 | 24 | let validate_SWRM_Hash_Size = if ((size(SWRM_Txn_ID) == 64)) | |
25 | 25 | then true | |
26 | 26 | else false | |
27 | - | let fetchtxn = | |
27 | + | let fetchtxn = getStringValue(this, ((((((RDD_Txn_ID + "_") + SWRM_Txn_ID) + "_") + address) + "_") + toString(Mint_Amount))) | |
28 | 28 | let check_txn_already_Exists = if ((fetchtxn == ((((((RDD_Txn_ID + "_") + SWRM_Txn_ID) + "_") + address) + "_") + toString(Mint_Amount)))) | |
29 | 29 | then true | |
30 | 30 | else false |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let keyowner1 = addressFromPublicKey(base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr') | |
5 | 5 | ||
6 | 6 | let mint_message = "Thanks to Using SWRM Minting Services." | |
7 | 7 | ||
8 | 8 | @Callable(i) | |
9 | 9 | func Issue_SWRM () = { | |
10 | 10 | let asset = Issue("SWRM", "SWRM is a decentralized approach to building and utilizing the Reddcoin Blockchain Technology where SWRM works on a reserve system of RDD as layer solution on RDD Network to mint and Burn SWRM along with proof on both side of network. An independent project or Token having no direct partnership relation or development connection with Reddcoin Core Team outside the use of the RDD currency for transactions.", 1, 6, true) | |
11 | 11 | let assetId = calculateAssetId(asset) | |
12 | 12 | if ((i.caller != keyowner1)) | |
13 | 13 | then throw((("This Address is not Authorized. Only " + toString(keyowner1)) + " is Authorized Address to Sign it.")) | |
14 | 14 | else [asset, Burn(assetId, 1), StringEntry("SWRM_Asset_ID", toBase58String(assetId))] | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | ||
19 | 19 | @Callable(i) | |
20 | 20 | func Mint_SWRM (Mint_Amount,RDD_Txn_ID,SWRM_Txn_ID,address) = { | |
21 | 21 | let validate_RDD_Hash_Size = if ((size(RDD_Txn_ID) == 64)) | |
22 | 22 | then true | |
23 | 23 | else false | |
24 | 24 | let validate_SWRM_Hash_Size = if ((size(SWRM_Txn_ID) == 64)) | |
25 | 25 | then true | |
26 | 26 | else false | |
27 | - | let fetchtxn = | |
27 | + | let fetchtxn = getStringValue(this, ((((((RDD_Txn_ID + "_") + SWRM_Txn_ID) + "_") + address) + "_") + toString(Mint_Amount))) | |
28 | 28 | let check_txn_already_Exists = if ((fetchtxn == ((((((RDD_Txn_ID + "_") + SWRM_Txn_ID) + "_") + address) + "_") + toString(Mint_Amount)))) | |
29 | 29 | then true | |
30 | 30 | else false | |
31 | 31 | let SWRM_AssetID = getStringValue("SWRM_Asset_ID") | |
32 | 32 | let info = valueOrErrorMessage(assetInfo(fromBase58String(SWRM_AssetID)), (("Asset " + SWRM_AssetID) + " doesn't exist")) | |
33 | 33 | let name = info.name | |
34 | 34 | let decimals = info.decimals | |
35 | 35 | let Txn_Counter = match getIntegerValue(this, "Txn_Counter") { | |
36 | 36 | case a: Int => | |
37 | 37 | a | |
38 | 38 | case _ => | |
39 | 39 | 0 | |
40 | 40 | } | |
41 | 41 | let New_Txn_Counter = (Txn_Counter + 1) | |
42 | 42 | if ((i.caller != keyowner1)) | |
43 | 43 | then throw((("This Address is not Authorized. Only " + toString(keyowner1)) + " is Authorized Address to Sign it.")) | |
44 | 44 | else if ((validate_RDD_Hash_Size == false)) | |
45 | 45 | then throw("RDD Hash Length is not valid.") | |
46 | 46 | else if ((validate_SWRM_Hash_Size == false)) | |
47 | 47 | then throw("RDD Hash Length is not valid.") | |
48 | 48 | else if ((check_txn_already_Exists == true)) | |
49 | 49 | then throw("Transaction Already Exists in Database.") | |
50 | 50 | else [Reissue(fromBase58String(SWRM_AssetID), Mint_Amount, true), ScriptTransfer(addressFromStringValue(address), Mint_Amount, fromBase58String(SWRM_AssetID)), IntegerEntry("Txn_Counter", New_Txn_Counter), StringEntry(toString(New_Txn_Counter), ((((((RDD_Txn_ID + "_") + SWRM_Txn_ID) + "_") + address) + "_") + toString(Mint_Amount))), StringEntry("message", mint_message)] | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | @Verifier(tx) | |
55 | 55 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
56 | 56 |
github/deemru/w8io/026f985 264.83 ms ◑