Load and save payment targets
This commit is contained in:
+3
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
package com.vitorpamplona.quartz.experimental.nipA3
|
||||
|
||||
import com.vitorpamplona.quartz.nip01Core.core.Address
|
||||
import com.vitorpamplona.quartz.nip01Core.core.BaseReplaceableEvent
|
||||
import com.vitorpamplona.quartz.nip01Core.core.HexKey
|
||||
import com.vitorpamplona.quartz.nip01Core.signers.NostrSigner
|
||||
@@ -36,6 +37,8 @@ class PaymentTargetsEvent(
|
||||
companion object {
|
||||
const val KIND = 10133
|
||||
|
||||
fun createAddress(pubKey: HexKey): Address = Address(KIND, pubKey, FIXED_D_TAG)
|
||||
|
||||
suspend fun updatePaymentTargets(
|
||||
earlierVersion: PaymentTargetsEvent,
|
||||
targets: List<PaymentTarget>,
|
||||
|
||||
Reference in New Issue
Block a user