mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2025-12-14 06:36:46 +00:00
feat: update zapEndpoint URL and remove unused function
Updated the zapEndpoint URL in the nostrZap.js file to direct towards the updated URL. Additionally, removed an unused function from the profile.blade.php file for cleaner code.
This commit is contained in:
@@ -25,7 +25,7 @@ export default (livewireComponent) => ({
|
|||||||
const amount = amountToPay * 1000;
|
const amount = amountToPay * 1000;
|
||||||
console.log('event', event);
|
console.log('event', event);
|
||||||
|
|
||||||
const zapEndpoint = 'https://getalby.com/lnurlp/portaleinundzwanzig/callback';
|
const zapEndpoint = 'https://pay.einundzwanzig.space/BTC/UILNURL/pay/i/98eo2PNNWByxqMCFZR5nzW';
|
||||||
|
|
||||||
const zapEvent = nip57.makeZapRequest({
|
const zapEvent = nip57.makeZapRequest({
|
||||||
profile: sender,
|
profile: sender,
|
||||||
|
|||||||
@@ -149,24 +149,6 @@ $save = function ($type) {
|
|||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
$createKind0 = function () {
|
|
||||||
$note = new NostrEvent();
|
|
||||||
$note->setKind(0);
|
|
||||||
$note->setContent('');
|
|
||||||
$note->setTags([
|
|
||||||
['display_name', 'Einundzwanzig Portal'],
|
|
||||||
['lud16', 'portaleinundzwanzig@getalby.com'],
|
|
||||||
['pubkey', 'daf83d92768b5d0005373f83e30d4203c0b747c170449e02fea611a0da125ee6'],
|
|
||||||
]);
|
|
||||||
$signer = new Sign();
|
|
||||||
$signer->signEvent($note, config('services.nostr'));
|
|
||||||
$eventMessage = new EventMessage($note);
|
|
||||||
$relayUrl = config('services.relay');
|
|
||||||
$relay = new Relay($relayUrl);
|
|
||||||
$relay->setMessage($eventMessage);
|
|
||||||
$result = $relay->send();
|
|
||||||
};
|
|
||||||
|
|
||||||
$createPaymentEvent = function () {
|
$createPaymentEvent = function () {
|
||||||
$note = new NostrEvent();
|
$note = new NostrEvent();
|
||||||
$note->setKind(32121);
|
$note->setKind(32121);
|
||||||
|
|||||||
Reference in New Issue
Block a user