tx · 2vfX6a8K8XcqZFnNtivE8iVvgL5MKgXRX3u9MxRgCNK3 3N5K25SCwgJw2hE5LGqAZALL8W6eJxu1MG4: -0.01000000 Waves 2024.08.14 10:47 [3238182] smart account 3N5K25SCwgJw2hE5LGqAZALL8W6eJxu1MG4 > SELF 0.00000000 Waves
{ "type": 13, "id": "2vfX6a8K8XcqZFnNtivE8iVvgL5MKgXRX3u9MxRgCNK3", "fee": 1000000, "feeAssetId": null, "timestamp": 1723621656906, "version": 2, "chainId": 84, "sender": "3N5K25SCwgJw2hE5LGqAZALL8W6eJxu1MG4", "senderPublicKey": "9Qh79U2rQpgqYmAMC6n9qq852WD1SgccXuMoUG33MMt6", "proofs": [ "49k367g78dUKZVXEUVjnABT96uDSzLBZDpr7PJWTaJvJENGziZaEKHREfm8ki9tY1NteLehYauZSEH2et4w1gapn" ], "script": "base64:BgITCAISABIGCgQBCAgIEgUKAwgICAQABE5PTkUCBG5vbmUACWtleW93bmVyMQkApwgBASDjrdey1Io21qI8AxObYBZMNWPHMCK947HpXHsKae68IwAMbWludF9tZXNzYWdlAiZUaGFua3MgdG8gVXNpbmcgU1dSTSBNaW50aW5nIFNlcnZpY2VzLgELZ2V0U3RyQnlLZXkBA2tleQQDc3RyBAckbWF0Y2gwCQCdCAIFBHRoaXMFA2tleQMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAWEFByRtYXRjaDAFAWEFBE5PTkUFA3N0cgMBaQEKSXNzdWVfU1dSTQAEBWFzc2V0CQDCCAUCBFNXUk0CmANTV1JNIGlzIGEgZGVjZW50cmFsaXplZCBhcHByb2FjaCB0byBidWlsZGluZyBhbmQgdXRpbGl6aW5nIHRoZSBSZWRkY29pbiBCbG9ja2NoYWluIFRlY2hub2xvZ3kgd2hlcmUgU1dSTSB3b3JrcyBvbiBhIHJlc2VydmUgc3lzdGVtIG9mIFJERCBhcyBsYXllciBzb2x1dGlvbiBvbiBSREQgTmV0d29yayB0byBtaW50IGFuZCBCdXJuIFNXUk0gY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gkArAICBQpSRERfVHhuX0lEAgFfBQtTV1JNX1R4bl9JRAIBXwUHYWRkcmVzcwIBXwkApAMBBQtNaW50X0Ftb3VudAkApAMBBQ9OZXdfVHhuX0NvdW50ZXIJAMwIAgkBC1N0cmluZ0VudHJ5AgIHbWVzc2FnZQUMbWludF9tZXNzYWdlBQNuaWwBaQEGRGVsZXRlAwNLZXkES2V5MQRLZXkyCQDMCAIJAQtEZWxldGVFbnRyeQEFA0tleQkAzAgCCQELRGVsZXRlRW50cnkBBQRLZXkxCQDMCAIJAQtEZWxldGVFbnRyeQEFBEtleTIFA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXn/UtiK", "height": 3238182, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E1SXpfx2cBxccGGnN3yixkcF2L8DYyyn5M7Jrv7BPMxx Next: 3eTkiBCAUSZXEt2MHTxcKMz8B2fXJmUAWt1GuwE1pa9d Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = | |
4 | + | let a = "none" | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = addressFromPublicKey(base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr') | |
7 | 7 | ||
8 | - | @Callable(c) | |
8 | + | let c = "Thanks to Using SWRM Minting Services." | |
9 | + | ||
10 | + | func d (e) = { | |
11 | + | let f = { | |
12 | + | let g = getString(this, e) | |
13 | + | if ($isInstanceOf(g, "String")) | |
14 | + | then { | |
15 | + | let h = g | |
16 | + | h | |
17 | + | } | |
18 | + | else a | |
19 | + | } | |
20 | + | f | |
21 | + | } | |
22 | + | ||
23 | + | ||
24 | + | @Callable(i) | |
9 | 25 | func Issue_SWRM () = { | |
10 | - | let | |
11 | - | let | |
12 | - | if (( | |
13 | - | then throw((("This Address is not Authorized. Only " + toString( | |
14 | - | else [ | |
26 | + | let j = 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) | |
27 | + | let k = calculateAssetId(j) | |
28 | + | if ((i.caller != b)) | |
29 | + | then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it.")) | |
30 | + | else [j, Burn(k, 1), StringEntry("SWRM_Asset_ID", toBase58String(k))] | |
15 | 31 | } | |
16 | 32 | ||
17 | 33 | ||
18 | 34 | ||
19 | - | @Callable( | |
20 | - | func Mint_SWRM ( | |
21 | - | let | |
35 | + | @Callable(i) | |
36 | + | func Mint_SWRM (l,m,n,o) = { | |
37 | + | let p = if ((size(m) == 64)) | |
22 | 38 | then true | |
23 | 39 | else false | |
24 | - | let | |
40 | + | let q = if ((size(n) == 64)) | |
25 | 41 | then true | |
26 | 42 | else false | |
27 | - | let l = getString(((((((g + "_") + h) + "_") + i) + "_") + toString(f))) | |
28 | - | let m = getStringValue("SWRM_Asset_ID") | |
29 | - | let n = valueOrErrorMessage(assetInfo(fromBase58String(m)), (("Asset " + m) + " doesn't exist")) | |
30 | - | let o = n.name | |
31 | - | let p = n.decimals | |
32 | - | let q = { | |
33 | - | let r = getIntegerValue(this, "Txn_Counter") | |
34 | - | if ($isInstanceOf(r, "Int")) | |
43 | + | let r = getStringValue("SWRM_Asset_ID") | |
44 | + | let s = valueOrErrorMessage(assetInfo(fromBase58String(r)), (("Asset " + r) + " doesn't exist")) | |
45 | + | let t = s.name | |
46 | + | let u = s.decimals | |
47 | + | let v = { | |
48 | + | let g = getIntegerValue(this, "Txn_Counter") | |
49 | + | if ($isInstanceOf(g, "Int")) | |
35 | 50 | then { | |
36 | - | let | |
37 | - | | |
51 | + | let h = g | |
52 | + | h | |
38 | 53 | } | |
39 | 54 | else 0 | |
40 | 55 | } | |
41 | - | let | |
42 | - | if (( | |
43 | - | then throw((("This Address is not Authorized. Only " + toString( | |
44 | - | else if (( | |
56 | + | let w = (v + 1) | |
57 | + | if ((i.caller != b)) | |
58 | + | then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it.")) | |
59 | + | else if ((p == false)) | |
45 | 60 | then throw("RDD Hash Length is not valid.") | |
46 | - | else if (( | |
61 | + | else if ((q == false)) | |
47 | 62 | then throw("RDD Hash Length is not valid.") | |
48 | - | else if (( | |
63 | + | else if ((d(((((((m + "_") + n) + "_") + o) + "_") + toString(l))) != a)) | |
49 | 64 | then throw("Transaction Already Exists in Database.") | |
50 | - | else [Reissue(fromBase58String( | |
65 | + | else [Reissue(fromBase58String(r), l, true), ScriptTransfer(addressFromStringValue(o), l, fromBase58String(r)), IntegerEntry("Txn_Counter", w), StringEntry(((((((m + "_") + n) + "_") + o) + "_") + toString(l)), toString(w)), StringEntry("message", c)] | |
51 | 66 | } | |
52 | 67 | ||
53 | 68 | ||
54 | 69 | ||
55 | - | @Callable( | |
56 | - | func Delete ( | |
70 | + | @Callable(i) | |
71 | + | func Delete (x,y,z) = [DeleteEntry(x), DeleteEntry(y), DeleteEntry(z)] | |
57 | 72 | ||
58 | 73 | ||
59 | - | @Verifier( | |
60 | - | func | |
74 | + | @Verifier(A) | |
75 | + | func B () = sigVerify(A.bodyBytes, A.proofs[0], A.senderPublicKey) | |
61 | 76 |
github/deemru/w8io/026f985 35.47 ms ◑