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