Skip to content

Commit facf895

Browse files
committed
fix more intellij warnings
1 parent e3ca762 commit facf895

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

NisApi.src.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!--suppress HtmlUnknownTag -->
12
<html>
23

34
<head>

index.html

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!--suppress HtmlUnknownTag -->
12
<html>
23
<head>
34
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
@@ -2388,7 +2389,7 @@ <h2 id="mosaics">Mosaics</h2>
23882389
mosaic name is 32 characters. Allowed characters are
23892390
<ol><li>a, b, c, ..., z, A, B, C, ..., Z, 0, 1, 2, ..., 9, ', _ , - </li></ol>
23902391
but the first character must be a letter from the alphabet.
2391-
</br></li>
2392+
<br/></li>
23922393
<li>
23932394
<b>description</b>: Each definition needs a description of the mosaic. The description may not exceed a length of 512 characters. There is no
23942395
limitation for the characters used in the description.
@@ -2403,7 +2404,7 @@ <h2 id="mosaics">Mosaics</h2>
24032404
<li><b>divisibility</b>: The divisibility determines up to what decimal place the mosaic can be divided into. Thus a divisibility of 3
24042405
means that a mosaic can be divided into smallest parts of 0.001 mosaics, i.e. milli mosaics is the smallest sub-unit.
24052406
When transferring mosaics via a transfer transaction the quantity transferred is given in multiples of those smallest parts.<br>
2406-
The divisibility must be in the range of 0 and 6. The default value is "0".</br></li>
2407+
The divisibility must be in the range of 0 and 6. The default value is "0".<br/></li>
24072408
<li><b>supplyMutable</b>: The creator can choose between a definition that allows a mosaic supply change at a later point or an immutable supply.
24082409
Allowed values for the property are "true" and "false". The default value is "false".</li>
24092410
<li><b>transferable</b>: The creator can choose if the mosaic definition should allow for transfers of the mosaic among accounts other than
@@ -2542,7 +2543,7 @@ <h1 id="initiating-transactions">Initiating transactions</h1>
25422543
<div class="warning">
25432544
The <span class="JSON">/transaction/prepare-announce</span> API
25442545
should be <br> used only on <strong>TRUSTED</strong> and <strong>LOCAL</strong> nodes!
2545-
</br></div>
2546+
<br/></div>
25462547
<p>Note: keep in mind, that NCC does <strong>NOT</strong>
25472548
use this API. It does all the transaction signing on it's own.
25482549
</p>
@@ -2656,7 +2657,7 @@ <h3 id="version-2-transfer-transactions">Version 2 transfer transactions</h3>
26562657
<p>However, version 2 transfer transaction are more powerful as they let you transfer mosaics too.<br>
26572658
Suppose you already have created a mosaic with id 'makoto.metals.silver * coin' with a divisibility of 0 and you want bundle the transfer
26582659
of those silver coin mosaics with a transfer of 100 XEM for each silver coin. For transferring 3 silver coin mosaics and 300 XEM with a single
2659-
transfer transaction you would issue a RequestPrepareAnnounce JSON object to NIS which looks like this:</br></p>
2660+
transfer transaction you would issue a RequestPrepareAnnounce JSON object to NIS which looks like this:<br/></p>
26602661
<pre><code class="JSON">
26612662
{
26622663
"transaction":
@@ -2786,7 +2787,7 @@ <h2 id="initiating-a-multisig-transaction">Initiating a multisig transaction</h2
27862787
Since the account <em>Alice</em> is a multisig account the transfer transaction
27872788
(in the JSON object the "otherTrans" structure) must be wrapped in
27882789
a multisig transaction (see <span><em>Appendix A:</em> <a href="#multisigTransaction">MultisigTransaction</a></span>).
2789-
The corresponding RequestPrepareAnnounce object would look similar to this (test network):</br></p>
2790+
The corresponding RequestPrepareAnnounce object would look similar to this (test network):<br/></p>
27902791
<pre><code class="JSON"> {
27912792
"transaction":
27922793
{
@@ -2863,7 +2864,7 @@ <h3 id="cosigning-multisig-transaction">Cosigning multisig transaction</h3>
28632864
two of the three cosignatories have signed the inner transfer transaction (<em>Bob</em>
28642865
indirectly signed by initiating the multisig transaction) and thus the
28652866
multisig transaction can be included in a block.
2866-
</br></p>
2867+
<br/></p>
28672868
<h2 id="adding-and-removing-cosignatories">Adding and removing cosignatories</h2>
28682869
<p>It is possible to modify the list of cosignatories for a multisig account. This is
28692870
done via a aggregate modification transaction wrapped in a multisig transaction.</p>
@@ -2921,7 +2922,7 @@ <h2 id="adding-and-removing-cosignatories">Adding and removing cosignatories</h2
29212922
transaction as above but this time with <span class="JSON">"modificationType"</span>
29222923
set to <b>2</b> (which means remove) and using a minimum cosignatories relative change value of <b>-1</b>.<br>
29232924
For removing a cosignatory <em>all</em> cosignatories except the one being removed need to sign the transaction.
2924-
Once approved by the network <em>Hachi</em> is no longer cosignatory of the multisig account <em>Alice.</em></br></p>
2925+
Once approved by the network <em>Hachi</em> is no longer cosignatory of the multisig account <em>Alice.</em><br/></p>
29252926
<div class="warning">
29262927
Removal of accounts is <strong>NOT</strong> final and might be subject of change
29272928
</div>
@@ -2931,7 +2932,7 @@ <h2 id="how-to-use-a-multisig-account">How to use a multisig account</h2>
29312932
If for instance all private keys of the cosignatories of a multisig account
29322933
reside on a single computer then the multisig account is essentially as good
29332934
as a normal account because if that computer gets compromised all private
2934-
keys are disclosed to the attacks at once.</br></p>
2935+
keys are disclosed to the attacks at once.<br/></p>
29352936
<p>It is therefore essential to have the private key of the cosignatories on
29362937
different computer preferably in different locations.</p>
29372938
<p>If you have read
@@ -2999,7 +3000,7 @@ <h2 id="provisioning-a-namespace">Provisioning a namespace</h2>
29993000
If NIS responses with a success message, the transaction is broadcasted to the network and will get included in a future block.
30003001
After the transaction is included in a block you can check that you are the owner of that namespace by issuing an /account/namespaces
30013002
request, see chapter xyz.
3002-
</br></p>
3003+
<br/></p>
30033004
<p>To rent the sub-namespace 'alice.vouchers' you need again send a RequestPrepareAnnounce JSON object to NIS which this time looks like this:</p>
30043005
<pre><code class="JSON">
30053006
{
@@ -3034,7 +3035,7 @@ <h3 id="creating-a-mosaic-definition">Creating a mosaic definition</h3>
30343035
<p>The basics of the NEM mosaic concept can be found in the chapter <a href="#mosaics">Mosaics</a>.<br>
30353036
To define and create a mosaic type you need to issue a <a href="#mosaicDefinitionCreationTransaction">MosaicDefinitionCreationTransaction</a>.
30363037
As usual this is done by sending a RequestPrepareAnnounce JSON object to NIS which in this case would look like this:
3037-
</br></p>
3038+
<br/></p>
30383039
<pre><code class="JSON">
30393040
{
30403041
"transaction":
@@ -3095,7 +3096,7 @@ <h3 id="creating-a-mosaic-definition">Creating a mosaic definition</h3>
30953096
The definition also implies a levy with each transfer. The levy section states that there is an additional fee of 10 XEM for each transfer. That fee
30963097
is send to the recipient with address TD3RXTHBLK6J3UD2BH2PXSOFLPWZOTR34WCG4HXH.<br>
30973098
This levy part of the transaction is optional. If that part is ommited no additional fee arises from transferring the mosaics.
3098-
</br></p>
3099+
<br/></p>
30993100
<p>Reasons for NIS now accepting the transactions are most likely:
31003101
<li>The transaction signer does not own the namespace that is specified in the mosaic definition or the namespace has expired.</li>
31013102
<li>A mosaic definition with the specified mosaic id already exists (see discussion below about altering mosaic definitions).</li>
@@ -3912,7 +3913,7 @@ <h2 id="transaction-fees">Transaction fees</h2>
39123913
Applying the above formula gives<br>
39133914
xemEquivalent = (8,999,999,999 * 15,000) / (1,000,000 * 1000) = 134999<br>
39143915
The result was rounded to the next smaller integer. Applying 1) to xemEquivalent gives (again after rounding) 72.<br>
3915-
So the fee is 72 * 1.25 XEM = 90 XEM.</br></br></br></br></br></br></p>
3916+
So the fee is 72 * 1.25 XEM = 90 XEM.<br/><br/><br/><br/><br/><br/></p>
39163917
<p>3) Fees for appending a message to a transaction:<br/>
39173918
If no message or an empty message is append it costs
39183919
0 XEM. Else the fee is calculated as<br/>

0 commit comments

Comments
 (0)