tx · E1SXpfx2cBxccGGnN3yixkcF2L8DYyyn5M7Jrv7BPMxx 3N5K25SCwgJw2hE5LGqAZALL8W6eJxu1MG4: -0.01000000 Waves 2024.08.14 09:34 [3238109] smart account 3N5K25SCwgJw2hE5LGqAZALL8W6eJxu1MG4 > SELF 0.00000000 Waves
{ "type": 13, "id": "E1SXpfx2cBxccGGnN3yixkcF2L8DYyyn5M7Jrv7BPMxx", "fee": 1000000, "feeAssetId": null, "timestamp": 1723617274981, "version": 2, "chainId": 84, "sender": "3N5K25SCwgJw2hE5LGqAZALL8W6eJxu1MG4", "senderPublicKey": "9Qh79U2rQpgqYmAMC6n9qq852WD1SgccXuMoUG33MMt6", "proofs": [ "5FUEJ6dFbMjM1how2YFredsfmzWGfUabSPPdiev3yYk7Xtw5Ne5njoqwdhCzRGD6VTAEpdNKJo5AhioDh3V969YQ" ], "script": "base64:BgITCAISABIGCgQBCAgIEgUKAwgICAIACWtleW93bmVyMQkApwgBASDjrdey1Io21qI8AxObYBZMNWPHMCK947HpXHsKae68IwAMbWludF9tZXNzYWdlAiZUaGFua3MgdG8gVXNpbmcgU1dSTSBNaW50aW5nIFNlcnZpY2VzLgMBaQEKSXNzdWVfU1dSTQAEBWFzc2V0CQDCCAUCBFNXUk0CmANTV1JNIGlzIGEgZGVjZW50cmFsaXplZCBhcHByb2FjaCB0byBidWlsZGluZyBhbmQgdXRpbGl6aW5nIHRoZSBSZWRkY29pbiBCbG9ja2NoYWluIFRlY2hub2xvZ3kgd2hlcmUgU1dSTSB3b3JrcyBvbiBhIHJlc2VydmUgc3lzdGVtIG9mIFJERCBhcyBsYXllciBzb2x1dGlvbiBvbiBSREQgTmV0d29yayB0byBtaW50IGFuZCBCdXJuIFNXUk0gYWxvbmcgd2l0aCBwcm9vZiBvbiBib3RoIHNpZGUgb2YgbmV0d29yay4gQW4gaW5kZXBlbmRlbnQgcHJvamVjdCBvciBUb2tlbiBoYXZpbmcgbm8gZGlyZWN0IHBhcnRuZXJzaGlwIH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RERfVHhuX0lEAgFfBQtTV1JNX1R4bl9JRAIBXwUHYWRkcmVzcwIBXwkApAMBBQtNaW50X0Ftb3VudAkApAMBBQ9OZXdfVHhuX0NvdW50ZXIJAMwIAgkBC1N0cmluZ0VudHJ5AgIHbWVzc2FnZQUMbWludF9tZXNzYWdlBQNuaWwBaQEGRGVsZXRlAwNLZXkES2V5MQRLZXkyCQDMCAIJAQtEZWxldGVFbnRyeQEFA0tleQkAzAgCCQELRGVsZXRlRW50cnkBBQRLZXkxCQDMCAIJAQtEZWxldGVFbnRyeQEFBEtleTIFA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXnTgLZS", "height": 3238109, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DUrYdtL3Pp2YHy7ji3jYXDSppbiQdAsjw4quGpxrQTpH Next: 2vfX6a8K8XcqZFnNtivE8iVvgL5MKgXRX3u9MxRgCNK3 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 = getString(this, ((((((RDD_Txn_ID + "_") + SWRM_Txn_ID) + "_") + address) + "_") + toString(Mint_Amount))) | |
28 | - | let check_txn_already_Exists = if ((fetchtxn == ((((((RDD_Txn_ID + "_") + SWRM_Txn_ID) + "_") + address) + "_") + toString(Mint_Amount)))) | |
29 | - | then true | |
30 | - | else false | |
27 | + | let fetchtxn = getString(((((((RDD_Txn_ID + "_") + SWRM_Txn_ID) + "_") + address) + "_") + toString(Mint_Amount))) | |
31 | 28 | let SWRM_AssetID = getStringValue("SWRM_Asset_ID") | |
32 | 29 | let info = valueOrErrorMessage(assetInfo(fromBase58String(SWRM_AssetID)), (("Asset " + SWRM_AssetID) + " doesn't exist")) | |
33 | 30 | let name = info.name | |
45 | 42 | then throw("RDD Hash Length is not valid.") | |
46 | 43 | else if ((validate_SWRM_Hash_Size == false)) | |
47 | 44 | then throw("RDD Hash Length is not valid.") | |
48 | - | else if (( | |
45 | + | else if ((fetchtxn == ((((((RDD_Txn_ID + "_") + SWRM_Txn_ID) + "_") + address) + "_") + toString(Mint_Amount)))) | |
49 | 46 | then throw("Transaction Already Exists in Database.") | |
50 | 47 | else [Reissue(fromBase58String(SWRM_AssetID), Mint_Amount, true), ScriptTransfer(addressFromStringValue(address), Mint_Amount, fromBase58String(SWRM_AssetID)), IntegerEntry("Txn_Counter", New_Txn_Counter), StringEntry(((((((RDD_Txn_ID + "_") + SWRM_Txn_ID) + "_") + address) + "_") + toString(Mint_Amount)), toString(New_Txn_Counter)), StringEntry("message", mint_message)] | |
51 | 48 | } |
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 = getString(this, ((((((RDD_Txn_ID + "_") + SWRM_Txn_ID) + "_") + address) + "_") + toString(Mint_Amount))) | |
28 | - | let check_txn_already_Exists = if ((fetchtxn == ((((((RDD_Txn_ID + "_") + SWRM_Txn_ID) + "_") + address) + "_") + toString(Mint_Amount)))) | |
29 | - | then true | |
30 | - | else false | |
27 | + | let fetchtxn = getString(((((((RDD_Txn_ID + "_") + SWRM_Txn_ID) + "_") + address) + "_") + toString(Mint_Amount))) | |
31 | 28 | let SWRM_AssetID = getStringValue("SWRM_Asset_ID") | |
32 | 29 | let info = valueOrErrorMessage(assetInfo(fromBase58String(SWRM_AssetID)), (("Asset " + SWRM_AssetID) + " doesn't exist")) | |
33 | 30 | let name = info.name | |
34 | 31 | let decimals = info.decimals | |
35 | 32 | let Txn_Counter = match getIntegerValue(this, "Txn_Counter") { | |
36 | 33 | case a: Int => | |
37 | 34 | a | |
38 | 35 | case _ => | |
39 | 36 | 0 | |
40 | 37 | } | |
41 | 38 | let New_Txn_Counter = (Txn_Counter + 1) | |
42 | 39 | if ((i.caller != keyowner1)) | |
43 | 40 | then throw((("This Address is not Authorized. Only " + toString(keyowner1)) + " is Authorized Address to Sign it.")) | |
44 | 41 | else if ((validate_RDD_Hash_Size == false)) | |
45 | 42 | then throw("RDD Hash Length is not valid.") | |
46 | 43 | else if ((validate_SWRM_Hash_Size == false)) | |
47 | 44 | then throw("RDD Hash Length is not valid.") | |
48 | - | else if (( | |
45 | + | else if ((fetchtxn == ((((((RDD_Txn_ID + "_") + SWRM_Txn_ID) + "_") + address) + "_") + toString(Mint_Amount)))) | |
49 | 46 | then throw("Transaction Already Exists in Database.") | |
50 | 47 | else [Reissue(fromBase58String(SWRM_AssetID), Mint_Amount, true), ScriptTransfer(addressFromStringValue(address), Mint_Amount, fromBase58String(SWRM_AssetID)), IntegerEntry("Txn_Counter", New_Txn_Counter), StringEntry(((((((RDD_Txn_ID + "_") + SWRM_Txn_ID) + "_") + address) + "_") + toString(Mint_Amount)), toString(New_Txn_Counter)), StringEntry("message", mint_message)] | |
51 | 48 | } | |
52 | 49 | ||
53 | 50 | ||
54 | 51 | ||
55 | 52 | @Callable(i) | |
56 | 53 | func Delete (Key,Key1,Key2) = [DeleteEntry(Key), DeleteEntry(Key1), DeleteEntry(Key2)] | |
57 | 54 | ||
58 | 55 | ||
59 | 56 | @Verifier(tx) | |
60 | 57 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
61 | 58 |
github/deemru/w8io/026f985 48.42 ms ◑