tx · 5bnDBrVhszrJvYEZw8Lr6dXvdNkNE3PuB9gM2bKdyF5i

3N5K25SCwgJw2hE5LGqAZALL8W6eJxu1MG4:  -0.01000000 Waves

2024.08.14 08:54 [3238071] smart account 3N5K25SCwgJw2hE5LGqAZALL8W6eJxu1MG4 > SELF 0.00000000 Waves

{ "type": 13, "id": "5bnDBrVhszrJvYEZw8Lr6dXvdNkNE3PuB9gM2bKdyF5i", "fee": 1000000, "feeAssetId": null, "timestamp": 1723614906182, "version": 2, "chainId": 84, "sender": "3N5K25SCwgJw2hE5LGqAZALL8W6eJxu1MG4", "senderPublicKey": "9Qh79U2rQpgqYmAMC6n9qq852WD1SgccXuMoUG33MMt6", "proofs": [ "3aZQEghSZPdy4MLvx5oK5pH6soYDvi7rMLQaXR64aKNarxnPFMTsChAvMntSLFVzJv9mhWyuuMwG1iAzARhunqm7" ], "script": "base64:BgIMCAISABIGCgQBCAgIAgAJa2V5b3duZXIxCQCnCAEBIC/MI9BPmHcpgjiz5B78lMslen9dOa5R2YaEtWjFpqZ7AAxtaW50X21lc3NhZ2UCJlRoYW5rcyB0byBVc2luZyBTV1JNIE1pbnRpbmcgU2VydmljZXMuAgFpAQpJc3N1ZV9TV1JNAAQFYXNzZXQJAMIIBQIEU1dSTQKYA1NXUk0gaXMgYSBkZWNlbnRyYWxpemVkIGFwcHJvYWNoIHRvIGJ1aWxkaW5nIGFuZCB1dGlsaXppbmcgdGhlIFJlZGRjb2luIEJsb2NrY2hhaW4gVGVjaG5vbG9neSB3aGVyZSBTV1JNIHdvcmtzIG9uIGEgcmVzZXJ2ZSBzeXN0ZW0gb2YgUkREIGFzIGxheWVyIHNvbHV0aW9uIG9uIFJERCBOZXR3b3JrIHRvIG1pbnQgYW5kIEJ1cm4gU1dSTSBhbG9uZyB3aXRoIHByb29mIG9uIGJvdGggc2lkZSBvZiBuZXR3b3JrLiBBbiBpbmRlcGVuZGVudCBwcm9qZWN0IG9yIFRva2VuIGhhdmluZyBubyBkaXJlY3Q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tUeG5fQ291bnRlcgULVHhuX0NvdW50ZXIJAMwIAgkBC1N0cmluZ0VudHJ5AgkApAMBBQ9OZXdfVHhuX0NvdW50ZXIJAKwCAgkArAICCQCsAgIJAKwCAgkArAICCQCsAgIFClJERF9UeG5fSUQCAV8FC1NXUk1fVHhuX0lEAgFfBQdhZGRyZXNzAgFfCQCkAwEFC01pbnRfQW1vdW50CQDMCAIJAQtTdHJpbmdFbnRyeQICB21lc3NhZ2UFDG1pbnRfbWVzc2FnZQUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleRfw4Pc=", "height": 3238071, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8CZn8e4r8gqwR1V1CxDX6to8rHHpZ1PiowXLubjbuzbu Next: EW65UFLpqBBk5JjX5Pv9eyDcg7Es1odLns4CeB5G7VvR Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let Treasury = addressFromPublicKey(base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr')
4+let keyowner1 = addressFromPublicKey(base58'4Dahqn4MYNrieo9AX8qLWNCseBQNc9skQY81h4DFoote')
5+
6+let mint_message = "Thanks to Using SWRM Minting Services."
57
68 @Callable(i)
79 func Issue_SWRM () = {
8- 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 on both side as a proof. 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)
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)
911 let assetId = calculateAssetId(asset)
10- if ((i.caller != Treasury))
11- then throw((("This Address is not Authorized. Only " + toString(Treasury)) + " is Authorized Address to Sign it."))
12+ if ((i.caller != keyowner1))
13+ then throw((("This Address is not Authorized. Only " + toString(keyowner1)) + " is Authorized Address to Sign it."))
1214 else [asset, Burn(assetId, 1), StringEntry("SWRM_Asset_ID", toBase58String(assetId))]
15+ }
16+
17+
18+
19+@Callable(i)
20+func Mint_SWRM (Mint_Amount,RDD_Txn_ID,SWRM_Txn_ID,address) = {
21+ let validate_RDD_Hash_Size = if ((size(RDD_Txn_ID) == 64))
22+ then true
23+ else false
24+ let validate_SWRM_Hash_Size = if ((size(SWRM_Txn_ID) == 64))
25+ then true
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
31+ let SWRM_AssetID = getStringValue("SWRM_Asset_ID")
32+ let info = valueOrErrorMessage(assetInfo(fromBase58String(SWRM_AssetID)), (("Asset " + SWRM_AssetID) + " doesn't exist"))
33+ let name = info.name
34+ let decimals = info.decimals
35+ let Txn_Counter = match getIntegerValue(this, "Txn_Counter") {
36+ case a: Int =>
37+ a
38+ case _ =>
39+ 0
40+ }
41+ let New_Txn_Counter = (Txn_Counter + 1)
42+ if ((i.caller != keyowner1))
43+ then throw((("This Address is not Authorized. Only " + toString(keyowner1)) + " is Authorized Address to Sign it."))
44+ else if ((validate_RDD_Hash_Size == false))
45+ then throw("RDD Hash Length is not valid.")
46+ else if ((validate_SWRM_Hash_Size == false))
47+ then throw("RDD Hash Length is not valid.")
48+ else if ((check_txn_already_Exists == true))
49+ then throw("Transaction Already Exists in Database.")
50+ else [Reissue(fromBase58String(SWRM_AssetID), Mint_Amount, true), ScriptTransfer(addressFromStringValue(address), Mint_Amount, fromBase58String(SWRM_AssetID)), IntegerEntry("Txn_Counter", Txn_Counter), StringEntry(toString(New_Txn_Counter), ((((((RDD_Txn_ID + "_") + SWRM_Txn_ID) + "_") + address) + "_") + toString(Mint_Amount))), StringEntry("message", mint_message)]
1351 }
1452
1553
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let Treasury = addressFromPublicKey(base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr')
4+let keyowner1 = addressFromPublicKey(base58'4Dahqn4MYNrieo9AX8qLWNCseBQNc9skQY81h4DFoote')
5+
6+let mint_message = "Thanks to Using SWRM Minting Services."
57
68 @Callable(i)
79 func Issue_SWRM () = {
8- 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 on both side as a proof. 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)
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)
911 let assetId = calculateAssetId(asset)
10- if ((i.caller != Treasury))
11- then throw((("This Address is not Authorized. Only " + toString(Treasury)) + " is Authorized Address to Sign it."))
12+ if ((i.caller != keyowner1))
13+ then throw((("This Address is not Authorized. Only " + toString(keyowner1)) + " is Authorized Address to Sign it."))
1214 else [asset, Burn(assetId, 1), StringEntry("SWRM_Asset_ID", toBase58String(assetId))]
15+ }
16+
17+
18+
19+@Callable(i)
20+func Mint_SWRM (Mint_Amount,RDD_Txn_ID,SWRM_Txn_ID,address) = {
21+ let validate_RDD_Hash_Size = if ((size(RDD_Txn_ID) == 64))
22+ then true
23+ else false
24+ let validate_SWRM_Hash_Size = if ((size(SWRM_Txn_ID) == 64))
25+ then true
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
31+ let SWRM_AssetID = getStringValue("SWRM_Asset_ID")
32+ let info = valueOrErrorMessage(assetInfo(fromBase58String(SWRM_AssetID)), (("Asset " + SWRM_AssetID) + " doesn't exist"))
33+ let name = info.name
34+ let decimals = info.decimals
35+ let Txn_Counter = match getIntegerValue(this, "Txn_Counter") {
36+ case a: Int =>
37+ a
38+ case _ =>
39+ 0
40+ }
41+ let New_Txn_Counter = (Txn_Counter + 1)
42+ if ((i.caller != keyowner1))
43+ then throw((("This Address is not Authorized. Only " + toString(keyowner1)) + " is Authorized Address to Sign it."))
44+ else if ((validate_RDD_Hash_Size == false))
45+ then throw("RDD Hash Length is not valid.")
46+ else if ((validate_SWRM_Hash_Size == false))
47+ then throw("RDD Hash Length is not valid.")
48+ else if ((check_txn_already_Exists == true))
49+ then throw("Transaction Already Exists in Database.")
50+ else [Reissue(fromBase58String(SWRM_AssetID), Mint_Amount, true), ScriptTransfer(addressFromStringValue(address), Mint_Amount, fromBase58String(SWRM_AssetID)), IntegerEntry("Txn_Counter", Txn_Counter), StringEntry(toString(New_Txn_Counter), ((((((RDD_Txn_ID + "_") + SWRM_Txn_ID) + "_") + address) + "_") + toString(Mint_Amount))), StringEntry("message", mint_message)]
1351 }
1452
1553
1654 @Verifier(tx)
1755 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
1856

github/deemru/w8io/026f985 
23.13 ms