Skip to content

Commit

Permalink
Update range order
Browse files Browse the repository at this point in the history
  • Loading branch information
grunch committed Jun 20, 2024
1 parent 6625149 commit 78bf2c5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ <h2 id="mostro-response"><a class="header" href="#mostro-response">Mostro respon
]
</code></pre>
<h2 id="buyer-sends-ln-invoice"><a class="header" href="#buyer-sends-ln-invoice">Buyer sends LN invoice</a></h2>
<p>The buyer sends a nip 04 event to Mostro with the lightning invoice, the action should be the same the buyer just received in the last message from Mostro (<code>add-invoice</code>), here the unencrypted content of the event:</p>
<p>The buyer sends a nip 04 event to Mostro with the lightning invoice, the action should be the same the buyer just received in the last message from Mostro (<code>add-invoice</code>), here the unencrypted content of the event for an invoice with no amount:</p>
<pre><code class="language-json">{
&quot;order&quot;: {
&quot;version&quot;: 1,
Expand All @@ -677,12 +677,14 @@ <h2 id="buyer-sends-ln-invoice"><a class="header" href="#buyer-sends-ln-invoice"
&quot;content&quot;: {
&quot;payment_request&quot;: [
null,
&quot;lnbcrt78510n1pj59wmepp50677g8tffdqa2p8882y0x6newny5vtz0hjuyngdwv226nanv4uzsdqqcqzzsxqyz5vqsp5skn973360gp4yhlpmefwvul5hs58lkkl3u3ujvt57elmp4zugp4q9qyyssqw4nzlr72w28k4waycf27qvgzc9sp79sqlw83j56txltz4va44j7jda23ydcujj9y5k6k0rn5ms84w8wmcmcyk5g3mhpqepf7envhdccp72nz6e&quot;
&quot;lnbcrt1pn9dvx0pp5935mskms2uf8wx90m8dlr60ytwn5vxy0e65ls42h7y7exweyvekqdqqcqzzsxqyz5vqsp5xjmllv4ta7jkuc5nfgqp8qjc3amzfewmlycpkkggr7q2y5mjfldq9qyyssqncpf3vm8hwujutqc99f0vy45zh8es54mn6u99q9t6rwm0q80dxszskzrp24y46lxqkc7ly9p80t6lalc8x8xhsn49yhy70a7wqyygugpv7chqs&quot;,
3922
]
}
}
}
</code></pre>
<p>If the invoice includes an amount, the last element of the <code>payment_request</code> array should be set to <code>null</code>.</p>
<h2 id="mostro-response-1"><a class="header" href="#mostro-response-1">Mostro response</a></h2>
<p>Mostro send a nip 04 event to the buyer with a wrapped <code>order</code> in the content, it would look like this:</p>
<pre><code class="language-json">{
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions take_sell.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ <h2 id="mostro-response"><a class="header" href="#mostro-response">Mostro respon
]
</code></pre>
<h2 id="buyer-sends-ln-invoice"><a class="header" href="#buyer-sends-ln-invoice">Buyer sends LN invoice</a></h2>
<p>The buyer sends a nip 04 event to Mostro with the lightning invoice, the action should be the same the buyer just received in the last message from Mostro (<code>add-invoice</code>), here the unencrypted content of the event:</p>
<p>The buyer sends a nip 04 event to Mostro with the lightning invoice, the action should be the same the buyer just received in the last message from Mostro (<code>add-invoice</code>), here the unencrypted content of the event for an invoice with no amount:</p>
<pre><code class="language-json">{
&quot;order&quot;: {
&quot;version&quot;: 1,
Expand All @@ -256,12 +256,14 @@ <h2 id="buyer-sends-ln-invoice"><a class="header" href="#buyer-sends-ln-invoice"
&quot;content&quot;: {
&quot;payment_request&quot;: [
null,
&quot;lnbcrt78510n1pj59wmepp50677g8tffdqa2p8882y0x6newny5vtz0hjuyngdwv226nanv4uzsdqqcqzzsxqyz5vqsp5skn973360gp4yhlpmefwvul5hs58lkkl3u3ujvt57elmp4zugp4q9qyyssqw4nzlr72w28k4waycf27qvgzc9sp79sqlw83j56txltz4va44j7jda23ydcujj9y5k6k0rn5ms84w8wmcmcyk5g3mhpqepf7envhdccp72nz6e&quot;
&quot;lnbcrt1pn9dvx0pp5935mskms2uf8wx90m8dlr60ytwn5vxy0e65ls42h7y7exweyvekqdqqcqzzsxqyz5vqsp5xjmllv4ta7jkuc5nfgqp8qjc3amzfewmlycpkkggr7q2y5mjfldq9qyyssqncpf3vm8hwujutqc99f0vy45zh8es54mn6u99q9t6rwm0q80dxszskzrp24y46lxqkc7ly9p80t6lalc8x8xhsn49yhy70a7wqyygugpv7chqs&quot;,
3922
]
}
}
}
</code></pre>
<p>If the invoice includes an amount, the last element of the <code>payment_request</code> array should be set to <code>null</code>.</p>
<h2 id="mostro-response-1"><a class="header" href="#mostro-response-1">Mostro response</a></h2>
<p>Mostro send a nip 04 event to the buyer with a wrapped <code>order</code> in the content, it would look like this:</p>
<pre><code class="language-json">{
Expand Down

0 comments on commit 78bf2c5

Please sign in to comment.